1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Change ssl_own_cert to work on ssl_config

This commit is contained in:
Manuel Pégourié-Gonnard
2015-05-10 23:17:17 +02:00
parent 1af6c8500b
commit 17a40cd255
10 changed files with 13 additions and 13 deletions

View File

@ -216,7 +216,7 @@ int main( void )
#endif
mbedtls_ssl_set_ca_chain( &conf, srvcert.next, NULL );
if( ( ret = mbedtls_ssl_set_own_cert( &ssl, &srvcert, &pkey ) ) != 0 )
if( ( ret = mbedtls_ssl_set_own_cert( &conf, &srvcert, &pkey ) ) != 0 )
{
printf( " failed\n ! mbedtls_ssl_set_own_cert returned %d\n\n", ret );
goto exit;