forked from wolfSSL/wolfssl
add the function ERR remove state and test for it
This commit is contained in:
22
src/ssl.c
22
src/ssl.c
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user