X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/9540bcf2addf37f08505454247f5687b68d340c7..1c519e07b908a314ce7bdfceb6baa9e18e302dfc:/src/src/tls-gnu.c?ds=sidebyside diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c index 837b991df..69a8bd6f4 100644 --- a/src/src/tls-gnu.c +++ b/src/src/tls-gnu.c @@ -2529,6 +2529,9 @@ if (rc != GNUTLS_E_SUCCESS) return FAIL; } +if (gnutls_session_get_flags(state->session) & GNUTLS_SFLAGS_EXT_MASTER_SECRET) + tls_in.ext_master_secret = TRUE; + #ifdef EXPERIMENTAL_TLS_RESUME tls_server_resume_posthandshake(state); #endif @@ -2998,6 +3001,9 @@ if (!verify_certificate(state, errstr)) return FALSE; } +if (gnutls_session_get_flags(state->session) & GNUTLS_SFLAGS_EXT_MASTER_SECRET) + tlsp->ext_master_secret = TRUE; + #ifndef DISABLE_OCSP if (request_ocsp) {