Merge pull request #6703 from yuhaoth/pr/tls13-misc-from-prototype

TLS 1.3: Upstream misc fix from prototype
This commit is contained in:
Gilles Peskine 2023-01-05 14:35:54 +01:00 committed by GitHub
commit cd0a565644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 59 additions and 40 deletions

View file

@ -5094,7 +5094,9 @@ int mbedtls_ssl_parse_change_cipher_spec( mbedtls_ssl_context *ssl )
* data.
*/
MBEDTLS_SSL_DEBUG_MSG( 3, ( "switching to new transform spec for inbound data" ) );
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
ssl->transform_in = ssl->transform_negotiate;
#endif
ssl->session_in = ssl->session_negotiate;
#if defined(MBEDTLS_SSL_PROTO_DTLS)