Skip to content

Commit e80818e

Browse files
committed
[tls] Disable renegotiation unless extended master secret is used
RFC 7627 states that renegotiation becomes no longer secure under various circumstances when the non-extended master secret is used. The description of the precise set of circumstances is spread across various points within the document and is not entirely clear. Avoid a superset of the circumstances in which renegotiation apparently becomes insecure by refusing renegotiation completely unless the extended master secret is used. Signed-off-by: Michael Brown <[email protected]>
1 parent 5750435 commit e80818e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ static int tls_new_hello_request ( struct tls_connection *tls,
20822082
}
20832083

20842084
/* Fail unless server supports secure renegotiation */
2085-
if ( ! tls->secure_renegotiation ) {
2085+
if ( ! ( tls->secure_renegotiation && tls->extended_master_secret ) ) {
20862086
DBGC ( tls, "TLS %p refusing to renegotiate insecurely\n",
20872087
tls );
20882088
return -EPERM_RENEG_INSECURE;

0 commit comments

Comments
 (0)