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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Index: ssl/ssl3con.c
2 ===================================================================
3 --- ssl/ssl3con.c (revision 274314)
4 +++ ssl/ssl3con.c (working copy)
5 @@ -3621,6 +3621,14 @@
6 SSL_GETPID(), ss->fd));
7
8 if (ws != wait_change_cipher) {
9 + if (IS_DTLS(ss)) {
10 + /* Ignore this because it's out of order. */
11 + SSL_TRC(3, ("%d: SSL3[%d]: discard out of order "
12 + "DTLS change_cipher_spec",
13 + SSL_GETPID(), ss->fd));
14 + buf->len = 0;
15 + return SECSuccess;
16 + }
17 (void)SSL3_SendAlert(ss, alert_fatal, unexpected_message);
18 PORT_SetError(SSL_ERROR_RX_UNEXPECTED_CHANGE_CIPHER);
19 return SECFailure;
OLDNEW
« 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