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 * 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 Loading... |
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 Loading... |
2316 | 2316 |
2317 } while (errorGenerated); | 2317 } while (errorGenerated); |
2318 | 2318 |
2319 runningLeakTest = PKIX_FALSE; | 2319 runningLeakTest = PKIX_FALSE; |
2320 PR_ATOMIC_DECREMENT(¶llelFnInvocationCount); | 2320 PR_ATOMIC_DECREMENT(¶llelFnInvocationCount); |
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 } |
OLD | NEW |