mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
fix various issues
- wrong typo in comments - replace psk null check with key_exchange_mode check - set psk NULL when error return in export hs psk Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
@@ -1860,9 +1860,9 @@ int main( int argc, char *argv[] )
|
||||
opt.tls13_kex_modes = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL;
|
||||
else if( strcmp( q, "all" ) == 0 )
|
||||
opt.tls13_kex_modes = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_ALL;
|
||||
/* `psk_or_ephemeral` exists in theory and is not recommend in practise.
|
||||
/* `psk_or_ephemeral` exists in theory and is not recommended in practice.
|
||||
* In server side, if needed extensions are received, psk or ephemeral
|
||||
* mode will be set. Add this mode only for test purpose to improve
|
||||
* mode will be set. Add this mode only for test purposes to improve
|
||||
* test coverage.
|
||||
*/
|
||||
else if( strcmp( q, "psk_or_ephemeral" ) == 0 )
|
||||
|
Reference in New Issue
Block a user