1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Change ssl_set_psk() to act on ssl_config

This commit is contained in:
Manuel Pégourié-Gonnard
2015-05-07 17:07:50 +01:00
parent 4b68296626
commit 120fdbdb3d
4 changed files with 16 additions and 16 deletions

View File

@@ -1173,7 +1173,7 @@ int main( int argc, char *argv[] )
#endif
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED)
if( ( ret = mbedtls_ssl_set_psk( &ssl, psk, psk_len,
if( ( ret = mbedtls_ssl_set_psk( &conf, psk, psk_len,
(const unsigned char *) opt.psk_identity,
strlen( opt.psk_identity ) ) ) != 0 )
{