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

Unified Diff: net/third_party/nss/ssl/sslcon.c

Issue 111853013: Update net/third_party/nss to NSS 3.15.4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update the comment in sslenum.c for the two CHACHA20 cipher suites Created 6 years, 11 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/ssl/sslauth.c ('k') | net/third_party/nss/ssl/sslenum.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/third_party/nss/ssl/sslcon.c
===================================================================
--- net/third_party/nss/ssl/sslcon.c (revision 242942)
+++ net/third_party/nss/ssl/sslcon.c (working copy)
@@ -20,7 +20,6 @@
#include "prinit.h"
#include "prtime.h" /* for PR_Now() */
-#define XXX
static PRBool policyWasSet;
/* This ordered list is indexed by (SSL_CK_xx * 3) */
@@ -628,8 +627,9 @@
(*ss->sec.uncache)(sid);
rv = (SECStatus)sent;
} else if (!ss->opt.noCache) {
- /* Put the sid in session-id cache, (may already be there) */
- (*ss->sec.cache)(sid);
+ if (sid->cached == never_cached) {
+ (*ss->sec.cache)(sid);
+ }
rv = SECSuccess;
}
ssl_FreeSID(sid);
@@ -2171,7 +2171,7 @@
sid->peerCert = CERT_DupCertificate(ss->sec.peerCert);
}
- if (!ss->opt.noCache)
+ if (!ss->opt.noCache && sid->cached == never_cached)
(*ss->sec.cache)(sid);
}
« no previous file with comments | « net/third_party/nss/ssl/sslauth.c ('k') | net/third_party/nss/ssl/sslenum.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698