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_pl_crldp.c | 5 * pkix_pl_crldp.c |
6 * | 6 * |
7 * Crl DP Object Functions | 7 * Crl DP Object Functions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 | 68 |
69 | 69 |
70 PKIX_Error * | 70 PKIX_Error * |
71 pkix_pl_CrlDp_Create( | 71 pkix_pl_CrlDp_Create( |
72 const CRLDistributionPoint *dp, | 72 const CRLDistributionPoint *dp, |
73 const CERTName *certIssuerName, | 73 const CERTName *certIssuerName, |
74 pkix_pl_CrlDp **pPkixDP, | 74 pkix_pl_CrlDp **pPkixDP, |
75 void *plContext) | 75 void *plContext) |
76 { | 76 { |
77 PRArenaPool *rdnArena = NULL; | 77 PLArenaPool *rdnArena = NULL; |
78 CERTName *issuerNameCopy = NULL; | 78 CERTName *issuerNameCopy = NULL; |
79 pkix_pl_CrlDp *dpl = NULL; | 79 pkix_pl_CrlDp *dpl = NULL; |
80 | 80 |
81 /* Need to save the following info to update crl cache: | 81 /* Need to save the following info to update crl cache: |
82 * - reasons if partitioned(but can not return revocation check | 82 * - reasons if partitioned(but can not return revocation check |
83 * success if not all crl are downloaded) | 83 * success if not all crl are downloaded) |
84 * - issuer name if different from issuer of the cert | 84 * - issuer name if different from issuer of the cert |
85 * - url to upload a crl if needed. | 85 * - url to upload a crl if needed. |
86 * */ | 86 * */ |
87 PKIX_ENTER(CRLDP, "pkix_pl_CrlDp_Create"); | 87 PKIX_ENTER(CRLDP, "pkix_pl_CrlDp_Create"); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 dpl = NULL; | 142 dpl = NULL; |
143 | 143 |
144 cleanup: | 144 cleanup: |
145 if (rdnArena) { | 145 if (rdnArena) { |
146 PORT_FreeArena(rdnArena, PR_FALSE); | 146 PORT_FreeArena(rdnArena, PR_FALSE); |
147 } | 147 } |
148 PKIX_DECREF(dpl); | 148 PKIX_DECREF(dpl); |
149 | 149 |
150 PKIX_RETURN(CRLDP); | 150 PKIX_RETURN(CRLDP); |
151 } | 151 } |
OLD | NEW |