fix c89 build on windows

pull/379/head
Jacob Barthelmeh 2016-04-06 11:16:40 -06:00
parent 9f86a91dbd
commit 85a9c55048
3 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,6 @@
#define CYASSL_MAX_16BIT WOLFSSL_MAX_16BIT
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
#define cyassl_word wolfssl_word
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
#endif /* CTAO_CRYPT_TYPES_H */

View File

@ -279,8 +279,8 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
} while (ret != SSL_SUCCESS && err == WC_PENDING_E);
if (ret != SSL_SUCCESS) {
err = CyaSSL_get_error(ssl, 0);
char buffer[CYASSL_MAX_ERROR_SZ];
err = CyaSSL_get_error(ssl, 0);
printf("error = %d, %s\n", err, CyaSSL_ERR_error_string(err, buffer));
printf("SSL_accept failed\n");
CyaSSL_free(ssl);

View File

@ -868,8 +868,8 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
} while (ret != SSL_SUCCESS && err == WC_PENDING_E);
if (ret != SSL_SUCCESS) {
err = SSL_get_error(ssl, 0);
char buffer[CYASSL_MAX_ERROR_SZ];
err = SSL_get_error(ssl, 0);
printf("error = %d, %s\n", err, ERR_error_string(err, buffer));
err_sys("SSL_accept failed");
}