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

Unified Diff: nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspcertid.c

Issue 105893015: Update third_party/nss to NSS 3.15.4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Remove SVN property on new file nss/lib/freebl/rsapkcs.c 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
Index: nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspcertid.c
===================================================================
--- nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspcertid.c (revision 239365)
+++ nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspcertid.c (working copy)
@@ -184,6 +184,7 @@
PRTime time = 0;
SECStatus rv;
SECStatus rvOcsp;
+ OCSPFreshness freshness;
PKIX_ENTER(DATE, "PKIX_PL_OcspCertID_GetFreshCacheStatus");
PKIX_NULLCHECK_THREE(cid, hasFreshStatus, statusIsGood);
@@ -195,11 +196,11 @@
time = PR_Now();
}
- rv = ocsp_GetCachedOCSPResponseStatusIfFresh(
+ rv = ocsp_GetCachedOCSPResponseStatus(
cid->certID, time, PR_TRUE, /*ignoreGlobalOcspFailureSetting*/
- &rvOcsp, missingResponseError);
+ &rvOcsp, missingResponseError, &freshness);
- *hasFreshStatus = (rv == SECSuccess);
+ *hasFreshStatus = (rv == SECSuccess && freshness == ocspFresh);
if (*hasFreshStatus) {
*statusIsGood = (rvOcsp == SECSuccess);
}
« no previous file with comments | « nss/lib/libpkix/pkix/checker/pkix_ocspchecker.c ('k') | nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspresponse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698