fix secure renegotiation build

This commit is contained in:
Jacob Barthelmeh
2016-06-23 13:10:39 -06:00
parent 02ef518a75
commit 0b91e000bb
2 changed files with 2 additions and 2 deletions

View File

@ -1406,8 +1406,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
" nonblocking yet");
} else {
if (wolfSSL_Rehandshake(ssl) != SSL_SUCCESS) {
int err = wolfSSL_get_error(ssl, 0);
char buffer[WOLFSSL_MAX_ERROR_SZ];
err = wolfSSL_get_error(ssl, 0);
printf("err = %d, %s\n", err,
wolfSSL_ERR_error_string(err, buffer));
err_sys("wolfSSL_Rehandshake failed");

View File

@ -3077,7 +3077,7 @@ int TLSX_UseSecureRenegotiation(TLSX** extensions, void* heap)
}
#define SCR_FREE_ALL(data) XFREE(data, NULL, DYNAMIC_TYPE_TLSX)
#define SCR_FREE_ALL(data, heap) XFREE(data, (heap), DYNAMIC_TYPE_TLSX)
#define SCR_GET_SIZE TLSX_SecureRenegotiation_GetSize
#define SCR_WRITE TLSX_SecureRenegotiation_Write
#define SCR_PARSE TLSX_SecureRenegotiation_Parse