OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* | 4 /* |
5 * pkix_build.c | 5 * pkix_build.c |
6 * | 6 * |
7 * Top level buildChain function | 7 * Top level buildChain function |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 &nbioContext, &subjPubKey, &policyTree, NULL, | 1341 &nbioContext, &subjPubKey, &policyTree, NULL, |
1342 plContext); | 1342 plContext); |
1343 | 1343 |
1344 if (nbioContext != NULL) { | 1344 if (nbioContext != NULL) { |
1345 *pNBIOContext = nbioContext; | 1345 *pNBIOContext = nbioContext; |
1346 goto cleanup; | 1346 goto cleanup; |
1347 } | 1347 } |
1348 | 1348 |
1349 ERROR_CHECK(PKIX_CHECKCHAINFAILED); | 1349 ERROR_CHECK(PKIX_CHECKCHAINFAILED); |
1350 | 1350 |
1351 if (state->reasonCode != 0) { | 1351 /* XXX Remove this assertion after 2014-12-31. See bug 946984. */ |
1352 PKIX_ERROR(PKIX_CHAINREJECTEDBYREVOCATIONCHECKER); | 1352 PORT_Assert(state->reasonCode == 0); |
1353 } | |
1354 | 1353 |
1355 PKIX_CHECK(pkix_ValidateResult_Create | 1354 PKIX_CHECK(pkix_ValidateResult_Create |
1356 (subjPubKey, anchor, policyTree, &valResult, plContext), | 1355 (subjPubKey, anchor, policyTree, &valResult, plContext), |
1357 PKIX_VALIDATERESULTCREATEFAILED); | 1356 PKIX_VALIDATERESULTCREATEFAILED); |
1358 | 1357 |
1359 *pValResult = valResult; | 1358 *pValResult = valResult; |
1360 valResult = NULL; | 1359 valResult = NULL; |
1361 | 1360 |
1362 cleanup: | 1361 cleanup: |
1363 PKIX_DECREF(subjPubKey); | 1362 PKIX_DECREF(subjPubKey); |
(...skipping 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3847 *pBuildResult = buildResult; | 3846 *pBuildResult = buildResult; |
3848 buildResult = NULL; | 3847 buildResult = NULL; |
3849 } | 3848 } |
3850 | 3849 |
3851 cleanup: | 3850 cleanup: |
3852 PKIX_DECREF(buildResult); | 3851 PKIX_DECREF(buildResult); |
3853 PKIX_DECREF(state); | 3852 PKIX_DECREF(state); |
3854 | 3853 |
3855 PKIX_RETURN(BUILD); | 3854 PKIX_RETURN(BUILD); |
3856 } | 3855 } |
OLD | NEW |