fix various issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/ssl_msg.c b/library/ssl_msg.c
index c9ef8e4..d1e8887 100644
--- a/library/ssl_msg.c
+++ b/library/ssl_msg.c
@@ -5102,7 +5102,6 @@
#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 7723363..f141f03 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -3482,13 +3482,14 @@
* // 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 @@
mbedtls_free( ssl->transform );
}
-
if( ssl->handshake )
{
mbedtls_ssl_handshake_free( ssl );