mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
Change ssl_set_psk() to act on ssl_config
This commit is contained in:
parent
4b68296626
commit
120fdbdb3d
4 changed files with 16 additions and 16 deletions
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue