mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-11 11:27:24 +00:00
Set ciphersuite info and kex mode in set_session in re-connection
Signed-off-by: Xiaokang Qian <[email protected]>
This commit is contained in:
@@ -1676,6 +1676,7 @@ int mbedtls_ssl_set_session(mbedtls_ssl_context *ssl, const mbedtls_ssl_session
|
||||
session->ciphersuite));
|
||||
return MBEDTLS_ERR_SSL_BAD_INPUT_DATA;
|
||||
}
|
||||
ssl->handshake->ciphersuite_info = ciphersuite_info;
|
||||
}
|
||||
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 */
|
||||
|
||||
@@ -1685,6 +1686,7 @@ int mbedtls_ssl_set_session(mbedtls_ssl_context *ssl, const mbedtls_ssl_session
|
||||
}
|
||||
|
||||
ssl->handshake->resume = 1;
|
||||
ssl->handshake->key_exchange_mode = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user