Skip to content

Commit

Permalink
Bug 1311701 - Allow unknown extensions in TLS 1.3 NewSessionTicket. r=mt
Browse files Browse the repository at this point in the history
Reviewers: mt

Reviewed By: mt

Differential Revision: https://nss-dev.phacility.com/D101
  • Loading branch information
ekr committed Oct 20, 2016
1 parent a8dacae commit 75198ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion external_tests/nss_bogo_shim/config.json
@@ -1,6 +1,5 @@
{
"DisabledTests": {
"TLS13-CustomTicketExtension":"Draft version mismatch (NSS=15, BoGo=14)",
"FallbackSCSV-VersionMatch":"Draft version mismatch (NSS=15, BoGo=14)",
"*KeyUpdate*":"KeyUpdate Unimplemented",
"ClientAuth-NoFallback-TLS13":"Disagreement about alerts. Bug 1294975",
Expand Down
7 changes: 4 additions & 3 deletions lib/ssl/tls13con.c
Expand Up @@ -3810,9 +3810,10 @@ tls13_ExtensionAllowed(PRUint16 extension, SSL3HandshakeType message)
break;
}
if (i == PR_ARRAY_SIZE(KnownExtensions)) {
/* We have never heard of this extension which is OK on
* the server but not the client. */
return message == client_hello;
/* We have never heard of this extension which is OK
* in client_hello and new_session_ticket. */
return (message == client_hello) ||
(message == new_session_ticket);
}

switch (KnownExtensions[i].status) {
Expand Down

0 comments on commit 75198ed

Please sign in to comment.