Add comment regarding the wire-version used in TLS 1.3 records

Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
Hanno Becker 2021-04-20 05:35:28 +01:00
parent edd5bf0a95
commit 41537452f4

View file

@ -3996,6 +3996,8 @@ void ssl_tls1_3_record_protection( int ciphersuite,
ASSERT_ALLOC( buf, ciphertext->len );
rec.type = MBEDTLS_SSL_MSG_APPLICATION_DATA;
/* TLS 1.3 uses the version identifier from TLS 1.2 on the wire. */
mbedtls_ssl_write_version( MBEDTLS_SSL_MAJOR_VERSION_3,
MBEDTLS_SSL_MINOR_VERSION_3,
MBEDTLS_SSL_TRANSPORT_STREAM,