mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-18 04:41:52 +00:00
Keep EtM state across renegotiations
This commit is contained in:
parent
169dd6a514
commit
1a03473576
|
@ -3248,6 +3248,12 @@ void ssl_handshake_wrapup( ssl_context *ssl )
|
||||||
|
|
||||||
if( ssl->session )
|
if( ssl->session )
|
||||||
{
|
{
|
||||||
|
#if defined(POLARSSL_SSL_ENCRYPT_THEN_MAC)
|
||||||
|
/* RFC 7366 3.1: keep the EtM state */
|
||||||
|
ssl->session_negotiate->encrypt_then_mac =
|
||||||
|
ssl->session->encrypt_then_mac;
|
||||||
|
#endif
|
||||||
|
|
||||||
ssl_session_free( ssl->session );
|
ssl_session_free( ssl->session );
|
||||||
polarssl_free( ssl->session );
|
polarssl_free( ssl->session );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue