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_pk11certstore.c | 5 * pkix_pl_pk11certstore.c |
6 * | 6 * |
7 * PKCS11CertStore Function Definitions | 7 * PKCS11CertStore Function Definitions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 PRTime prtime = 0; | 150 PRTime prtime = 0; |
151 PKIX_PL_X500Name *subjectName = NULL; | 151 PKIX_PL_X500Name *subjectName = NULL; |
152 PKIX_PL_Date *certValid = NULL; | 152 PKIX_PL_Date *certValid = NULL; |
153 PKIX_List *certList = NULL; | 153 PKIX_List *certList = NULL; |
154 PKIX_PL_Cert *cert = NULL; | 154 PKIX_PL_Cert *cert = NULL; |
155 CERTCertList *pk11CertList = NULL; | 155 CERTCertList *pk11CertList = NULL; |
156 CERTCertListNode *node = NULL; | 156 CERTCertListNode *node = NULL; |
157 CERTCertificate *nssCert = NULL; | 157 CERTCertificate *nssCert = NULL; |
158 CERTCertDBHandle *dbHandle = NULL; | 158 CERTCertDBHandle *dbHandle = NULL; |
159 | 159 |
160 PRArenaPool *arena = NULL; | 160 PLArenaPool *arena = NULL; |
161 SECItem *nameItem = NULL; | 161 SECItem *nameItem = NULL; |
162 void *wincx = NULL; | 162 void *wincx = NULL; |
163 | 163 |
164 PKIX_ENTER(CERTSTORE, "pkix_pl_Pk11CertStore_CertQuery"); | 164 PKIX_ENTER(CERTSTORE, "pkix_pl_Pk11CertStore_CertQuery"); |
165 PKIX_NULLCHECK_TWO(params, pSelected); | 165 PKIX_NULLCHECK_TWO(params, pSelected); |
166 | 166 |
167 /* avoid multiple calls to retrieve a constant */ | 167 /* avoid multiple calls to retrieve a constant */ |
168 PKIX_PL_NSSCALLRV(CERTSTORE, dbHandle, CERT_GetDefaultCertDB, ()); | 168 PKIX_PL_NSSCALLRV(CERTSTORE, dbHandle, CERT_GetDefaultCertDB, ()); |
169 | 169 |
170 /* | 170 /* |
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 &certStore, | 1040 &certStore, |
1041 plContext), | 1041 plContext), |
1042 PKIX_CERTSTORECREATEFAILED); | 1042 PKIX_CERTSTORECREATEFAILED); |
1043 | 1043 |
1044 *pCertStore = certStore; | 1044 *pCertStore = certStore; |
1045 | 1045 |
1046 cleanup: | 1046 cleanup: |
1047 | 1047 |
1048 PKIX_RETURN(CERTSTORE); | 1048 PKIX_RETURN(CERTSTORE); |
1049 } | 1049 } |
OLD | NEW |