Chromium Code Reviews

Unified Diff: mozilla/security/nss/lib/libpkix/pkix/top/pkix_build.c

Issue 12197027: Merge NSS_3_14_2_RTM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: mozilla/security/nss/lib/libpkix/pkix/top/pkix_build.c
===================================================================
--- mozilla/security/nss/lib/libpkix/pkix/top/pkix_build.c (revision 180567)
+++ mozilla/security/nss/lib/libpkix/pkix/top/pkix_build.c (working copy)
@@ -263,6 +263,8 @@
parentState->buildConstants.revChecker;
state->buildConstants.aiaMgr =
parentState->buildConstants.aiaMgr;
+ state->buildConstants.trustOnlyUserAnchors =
+ parentState->buildConstants.trustOnlyUserAnchors;
}
*pState = state;
@@ -847,10 +849,8 @@
PKIX_INCREF(state->candidateCert);
candidateCert = state->candidateCert;
- /* If user defined trust anchor list is not empty, do not
- * trust any certs except to the ones that are in the list */
if (state->buildConstants.numAnchors) {
- trustOnlyUserAnchors = PKIX_TRUE;
+ trustOnlyUserAnchors = state->buildConstants.trustOnlyUserAnchors;
}
PKIX_CHECK(
@@ -3477,7 +3477,9 @@
buildConstants.hintCerts = hintCerts;
buildConstants.revChecker = revChecker;
buildConstants.aiaMgr = aiaMgr;
-
+ buildConstants.trustOnlyUserAnchors =
+ procParams->useOnlyTrustAnchors;
+
PKIX_CHECK(pkix_Build_GetResourceLimits(&buildConstants, plContext),
PKIX_BUILDGETRESOURCELIMITSFAILED);
@@ -3524,6 +3526,8 @@
state->buildConstants.revChecker = buildConstants.revChecker;
state->buildConstants.aiaMgr = buildConstants.aiaMgr;
aiaMgr = NULL;
+ state->buildConstants.trustOnlyUserAnchors =
+ buildConstants.trustOnlyUserAnchors;
if (buildConstants.maxTime != 0) {
PKIX_CHECK(PKIX_PL_Date_Create_CurrentOffBySeconds

Powered by Google App Engine