commit | 1a03473576f150468c6b2e4ff206db5bb14b1c88 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Nov 04 17:36:18 2014 +0100 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Nov 05 16:00:50 2014 +0100 |
tree | dc061fb0c5ea7475bf7b84d91132f32786e43812 | |
parent | 169dd6a514142902665f5f9890f338bb251d2a46 [diff] [blame] |
Keep EtM state across renegotiations
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 8c981cf..b608e5c 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -3248,6 +3248,12 @@ 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 ); polarssl_free( ssl->session ); }