better compatibility with printing errors to a file

This commit is contained in:
Jacob Barthelmeh
2017-01-06 14:29:16 -07:00
parent c20a35f1db
commit dcb9ef6651
11 changed files with 267 additions and 20 deletions

View File

@@ -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;
}