Update serialized session description with ALPN information
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index e6023c0..ae42cf3 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -3737,25 +3737,6 @@
/* Serialization of TLS 1.3 sessions:
*
* For more detail, see the description of ssl_session_save().
- * struct {
- * opaque hostname<0..2^16-1>;
- * uint64 ticket_reception_time;
- * uint32 ticket_lifetime;
- * opaque ticket<1..2^16-1>;
- * } ClientOnlyData;
- *
- * struct {
- * uint32 ticket_age_add;
- * uint8 ticket_flags;
- * opaque resumption_key<0..255>;
- * uint32 max_early_data_size;
- * uint16 record_size_limit;
- * select ( endpoint ) {
- * case client: ClientOnlyData;
- * case server: uint64 ticket_creation_time;
- * };
- * } serialized_session_tls13;
- *
*/
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
MBEDTLS_CHECK_RETURN_CRITICAL
@@ -4244,6 +4225,10 @@
* #if defined(MBEDTLS_HAVE_TIME)
* case server: uint64 ticket_creation_time;
* #endif
+ * #if defined(MBEDTLS_SSL_EARLY_DATA) && defined(MBEDTLS_SSL_ALPN)
+ * uint8 alpn_len;
+ * opaque ticket_alpn<0..255>;
+ * #endif
* };
* } serialized_session_tls13;
*