diff --git a/library/ssl_msg.c b/library/ssl_msg.c index c9ef8e49d7..d1e8887d72 100644 --- a/library/ssl_msg.c +++ b/library/ssl_msg.c @@ -5102,7 +5102,6 @@ int mbedtls_ssl_parse_change_cipher_spec( mbedtls_ssl_context *ssl ) #endif ssl->session_in = ssl->session_negotiate; - #if defined(MBEDTLS_SSL_PROTO_DTLS) if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM ) { diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 7723363dfe..f141f03ec0 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -3482,13 +3482,14 @@ static unsigned char ssl_serialized_session_header[] = { * // the structure of mbedtls_ssl_session. * * uint8_t minor_ver; // Protocol minor version. Possible values: - * // - TLS 1.2 (3) + * // - TLS 1.2 (0x0303) + * // - TLS 1.3 (0x0304) * * select (serialized_session.tls_version) { * * case MBEDTLS_SSL_VERSION_TLS1_2: * serialized_session_tls12 data; - * case MBEDTLS_SSL_MINOR_VERSION_4: + * case MBEDTLS_SSL_VERSION_TLS1_3: * serialized_session_tls13 data; * * }; @@ -4766,7 +4767,6 @@ void mbedtls_ssl_free( mbedtls_ssl_context *ssl ) mbedtls_free( ssl->transform ); } - if( ssl->handshake ) { mbedtls_ssl_handshake_free( ssl );