forked from wolfSSL/wolfssl
better compatibility with printing errors to a file
This commit is contained in:
10
src/ssl.c
10
src/ssl.c
@@ -2721,6 +2721,12 @@ void wolfSSL_ERR_print_errors_fp(FILE* fp, int err)
|
||||
fprintf(fp, "%s", data);
|
||||
}
|
||||
|
||||
#if defined(OPENSSL_EXTRA) || defined(DEBUG_WOLFSSL_VERBOSE)
|
||||
void wolfSSL_ERR_dump_errors_fp(FILE* fp)
|
||||
{
|
||||
wc_ERR_print_errors_fp(fp);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -8288,6 +8294,10 @@ int wolfSSL_Cleanup(void)
|
||||
wc_ecc_fp_free();
|
||||
#endif
|
||||
|
||||
if (wolfCrypt_Cleanup() != 0) {
|
||||
WOLFSSL_MSG("Error with wolfCrypt_Cleanup call");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user