1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Add server only guards for psk callback

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu
2022-08-12 13:56:53 +08:00
parent 80ca44f33c
commit 8897c07075
3 changed files with 9 additions and 1 deletions

View File

@ -2184,8 +2184,9 @@ void perform_handshake( handshake_test_options *options )
options->psk_str->len,
(const unsigned char *) psk_identity,
strlen( psk_identity ) ) == 0 );
#if defined(MBEDTLS_SSL_SRV_C)
mbedtls_ssl_conf_psk_cb( &server.conf, psk_dummy_callback, NULL );
#endif
}
#endif
#if defined(MBEDTLS_SSL_RENEGOTIATION)