From ff1ce269d0eef5d5bfe09a027ffa4c6b06350892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teppo=20J=C3=A4rvelin?= Date: Mon, 14 Oct 2019 08:14:34 +0300 Subject: [PATCH] Fixed to compile: ssl_async_keys is not a pointer but was treated that way when giving to functions. --- programs/ssl/ssl_server2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index aaec43402..459216341 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -3006,7 +3006,7 @@ int main( int argc, char *argv[] ) #if defined(MBEDTLS_SSL_ASYNC_PRIVATE) if( opt.async_private_delay1 >= 0 ) { - ret = ssl_async_set_key( ssl_async_keys, srvcert, pk, 0, + ret = ssl_async_set_key( &ssl_async_keys, srvcert, pk, 0, opt.async_private_delay1 ); if( ret < 0 ) { @@ -3029,7 +3029,7 @@ int main( int argc, char *argv[] ) #if defined(MBEDTLS_SSL_ASYNC_PRIVATE) if( opt.async_private_delay2 >= 0 ) { - ret = ssl_async_set_key( ssl_async_keys, srvcert2, pk, 0, + ret = ssl_async_set_key( &ssl_async_keys, srvcert2, pk, 0, opt.async_private_delay2 ); if( ret < 0 ) { @@ -3075,7 +3075,7 @@ int main( int argc, char *argv[] ) decrypt, ssl_async_resume, ssl_async_cancel, - ssl_async_keys ); + &ssl_async_keys ); } #endif /* MBEDTLS_SSL_ASYNC_PRIVATE */ #endif /* MBEDTLS_X509_CRT_PARSE_C */ @@ -3090,7 +3090,7 @@ int main( int argc, char *argv[] ) sni_entry *cur; for( cur = sni_info; cur != NULL; cur = cur->next ) { - ret = ssl_async_set_key( ssl_async_keys, + ret = ssl_async_set_key( &ssl_async_keys, cur->cert, cur->key, 1, opt.async_private_delay2 ); if( ret < 0 )