mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-24 05:00:45 -04:00
Fix the build without MBEDTLS_DEBUG_C
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
7cdf563a7d
commit
d973387666
@ -3040,6 +3040,9 @@ void recombine_server_first_flight(int version,
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
mbedtls_test_ssl_log_pattern cli_pattern = { .pattern = client_log };
|
||||
mbedtls_test_ssl_log_pattern srv_pattern = { .pattern = server_log };
|
||||
#else
|
||||
(void) client_log;
|
||||
(void) server_log;
|
||||
#endif
|
||||
int ret = 0;
|
||||
|
||||
@ -3053,8 +3056,6 @@ void recombine_server_first_flight(int version,
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
client_options.cli_log_obj = &cli_pattern;
|
||||
client_options.cli_log_fun = mbedtls_test_ssl_log_analyzer;
|
||||
#else
|
||||
(void) cli_pattern;
|
||||
#endif
|
||||
TEST_EQUAL(mbedtls_test_ssl_endpoint_init(&client, MBEDTLS_SSL_IS_CLIENT,
|
||||
&client_options, NULL, NULL,
|
||||
@ -3069,8 +3070,6 @@ void recombine_server_first_flight(int version,
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
server_options.srv_log_obj = &srv_pattern;
|
||||
server_options.srv_log_fun = mbedtls_test_ssl_log_analyzer;
|
||||
#else
|
||||
(void) srv_pattern;
|
||||
#endif
|
||||
TEST_EQUAL(mbedtls_test_ssl_endpoint_init(&server, MBEDTLS_SSL_IS_SERVER,
|
||||
&server_options, NULL, NULL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user