mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-10 15:45:34 +00:00
fix various issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
141bbe7bee
commit
0c2a738c23
@ -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 )
|
||||
{
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user