BIO s_socket and BN mod exp

This commit is contained in:
Jacob Barthelmeh
2016-12-01 14:07:50 -07:00
parent e741a24089
commit 2daeecdb90
10 changed files with 194 additions and 58 deletions

View File

@@ -217,7 +217,6 @@ void WOLFSSL_ERROR(int error)
{
if (loggingEnabled) {
char buffer[80];
sprintf(buffer, "wolfSSL error occurred, error = %d", error);
#if defined(OPENSSL_EXTRA) || defined(DEBUG_WOLFSSL_VERBOSE)
(void)usrCtx; /* a user ctx for future flexibility */
(void)func;
@@ -228,7 +227,10 @@ void WOLFSSL_ERROR(int error)
if (XSTRLEN(file) < sizeof(file)) {
XSTRNCPY((char*)wc_last_error_file, file, XSTRLEN(file));
}
sprintf(buffer, "%s line:%d file:%s", buffer, line, file);
sprintf(buffer, "wolfSSL error occurred, error = %d line:%d file:%s",
error, line, file);
#else
sprintf(buffer, "wolfSSL error occurred, error = %d", error);
#endif
wolfssl_log(ERROR_LOG , buffer);
}