add the function ERR remove state and test for it

This commit is contained in:
Jacob Barthelmeh
2017-03-08 13:50:38 -07:00
parent 2e6f97621a
commit e9f3d7f898
4 changed files with 78 additions and 7 deletions

View File

@@ -14138,6 +14138,21 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md)
}
/* frees all nodes in the current threads error queue
*
* id thread id. ERR_remove_state is depriciated and id is ignored. The
* current threads queue will be free'd.
*/
void wolfSSL_ERR_remove_state(unsigned long id)
{
WOLFSSL_ENTER("wolfSSL_ERR_remove_state");
(void)id;
if (wc_ERR_remove_state() != 0) {
WOLFSSL_MSG("Error with removing the state");
}
}
int wolfSSL_RAND_status(void)
{
return WOLFSSL_SUCCESS; /* wolfCrypt provides enough seed internally */
@@ -14313,13 +14328,6 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md)
}
void wolfSSL_ERR_remove_state(unsigned long state)
{
/* TODO: GetErrors().Remove(); */
(void)state;
}
void wolfSSL_EVP_cleanup(void)
{
/* nothing to do here */