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

Side by Side Diff: nss/lib/certhigh/certvfypkix.c

Issue 16132005: Allow NSS to be built with NO_NSPR_10_SUPPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 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 | « nss/lib/certhigh/certvfy.c ('k') | nss/lib/certhigh/crlv2.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * nss_pkix_proxy.h 5 * nss_pkix_proxy.h
6 * 6 *
7 * PKIX - NSS proxy functions 7 * PKIX - NSS proxy functions
8 * 8 *
9 * NOTE: All structures, functions, data types are parts of library private 9 * NOTE: All structures, functions, data types are parts of library private
10 * api and are subjects to change in any following releases. 10 * api and are subjects to change in any following releases.
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 * Returns NULL if the function succeeds. 643 * Returns NULL if the function succeeds.
644 * Returns a Cert Verify Error if the function fails in an unrecoverable way. 644 * Returns a Cert Verify Error if the function fails in an unrecoverable way.
645 * Returns a Fatal Error if the function fails in an unrecoverable way. 645 * Returns a Fatal Error if the function fails in an unrecoverable way.
646 */ 646 */
647 static PKIX_Error* 647 static PKIX_Error*
648 cert_PkixToNssCertsChain( 648 cert_PkixToNssCertsChain(
649 PKIX_List *pkixCertChain, 649 PKIX_List *pkixCertChain,
650 CERTCertList **pvalidChain, 650 CERTCertList **pvalidChain,
651 void *plContext) 651 void *plContext)
652 { 652 {
653 PRArenaPool *arena = NULL; 653 PLArenaPool *arena = NULL;
654 CERTCertificate *nssCert = NULL; 654 CERTCertificate *nssCert = NULL;
655 CERTCertList *validChain = NULL; 655 CERTCertList *validChain = NULL;
656 PKIX_PL_Object *certItem = NULL; 656 PKIX_PL_Object *certItem = NULL;
657 PKIX_UInt32 length = 0; 657 PKIX_UInt32 length = 0;
658 PKIX_UInt32 i = 0; 658 PKIX_UInt32 i = 0;
659 659
660 PKIX_ENTER(CERTVFYPKIX, "cert_PkixToNssCertsChain"); 660 PKIX_ENTER(CERTVFYPKIX, "cert_PkixToNssCertsChain");
661 PKIX_NULLCHECK_ONE(pvalidChain); 661 PKIX_NULLCHECK_ONE(pvalidChain);
662 662
663 if (pkixCertChain == NULL) { 663 if (pkixCertChain == NULL) {
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 2316
2317 } while (errorGenerated); 2317 } while (errorGenerated);
2318 2318
2319 runningLeakTest = PKIX_FALSE; 2319 runningLeakTest = PKIX_FALSE;
2320 PR_ATOMIC_DECREMENT(&parallelFnInvocationCount); 2320 PR_ATOMIC_DECREMENT(&parallelFnInvocationCount);
2321 usePKIXValidationEngine = savedUsePkixEngFlag; 2321 usePKIXValidationEngine = savedUsePkixEngFlag;
2322 #endif /* PKIX_OBJECT_LEAK_TEST */ 2322 #endif /* PKIX_OBJECT_LEAK_TEST */
2323 2323
2324 return r; 2324 return r;
2325 } 2325 }
OLDNEW
« no previous file with comments | « nss/lib/certhigh/certvfy.c ('k') | nss/lib/certhigh/crlv2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698