Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Unified Diff: net/third_party/nss/patches/ignorechangecipherspec.patch

Issue 319573002: Ignore out-of-order DTLS ChangeCipherSpec. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/third_party/nss/README.chromium ('k') | net/third_party/nss/ssl/ssl3con.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/third_party/nss/patches/ignorechangecipherspec.patch
===================================================================
--- net/third_party/nss/patches/ignorechangecipherspec.patch (revision 0)
+++ net/third_party/nss/patches/ignorechangecipherspec.patch (revision 0)
@@ -0,0 +1,19 @@
+Index: ssl/ssl3con.c
+===================================================================
+--- ssl/ssl3con.c (revision 274314)
++++ ssl/ssl3con.c (working copy)
+@@ -3621,6 +3621,14 @@
+ SSL_GETPID(), ss->fd));
+
+ if (ws != wait_change_cipher) {
++ if (IS_DTLS(ss)) {
++ /* Ignore this because it's out of order. */
++ SSL_TRC(3, ("%d: SSL3[%d]: discard out of order "
++ "DTLS change_cipher_spec",
++ SSL_GETPID(), ss->fd));
++ buf->len = 0;
++ return SECSuccess;
++ }
+ (void)SSL3_SendAlert(ss, alert_fatal, unexpected_message);
+ PORT_SetError(SSL_ERROR_RX_UNEXPECTED_CHANGE_CIPHER);
+ return SECFailure;
« no previous file with comments | « net/third_party/nss/README.chromium ('k') | net/third_party/nss/ssl/ssl3con.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698