forked from wolfSSL/wolfssl
fix secure renegotiation build
This commit is contained in:
@ -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");
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user