Change ssl_own_cert to work on ssl_config
This commit is contained in:
parent
1af6c8500b
commit
17a40cd255
10 changed files with 13 additions and 13 deletions
|
@ -189,7 +189,7 @@ static void *handle_ssl_connection( void *data )
|
|||
#endif
|
||||
|
||||
mbedtls_ssl_set_ca_chain( &conf, thread_info->ca_chain, NULL );
|
||||
if( ( ret = mbedtls_ssl_set_own_cert( &ssl, thread_info->server_cert, thread_info->server_key ) ) != 0 )
|
||||
if( ( ret = mbedtls_ssl_set_own_cert( &conf, thread_info->server_cert, thread_info->server_key ) ) != 0 )
|
||||
{
|
||||
mbedtls_printf( " failed\n ! mbedtls_ssl_set_own_cert returned %d\n\n", ret );
|
||||
goto thread_exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue