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

Side by Side Diff: nss/lib/libpkix/pkix/checker/pkix_crlchecker.c

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years 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
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 * pkix_defaultcrlchecker.c 5 * pkix_defaultcrlchecker.c
6 * 6 *
7 * Functions for default CRL Checkers 7 * Functions for default CRL Checkers
8 * 8 *
9 */ 9 */
10 #include "pkix.h" 10 #include "pkix.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 PKIX_Error * 188 PKIX_Error *
189 pkix_CrlChecker_CheckLocal( 189 pkix_CrlChecker_CheckLocal(
190 PKIX_PL_Cert *cert, 190 PKIX_PL_Cert *cert,
191 PKIX_PL_Cert *issuer, 191 PKIX_PL_Cert *issuer,
192 PKIX_PL_Date *date, 192 PKIX_PL_Date *date,
193 pkix_RevocationMethod *checkerObject, 193 pkix_RevocationMethod *checkerObject,
194 PKIX_ProcessingParams *procParams, 194 PKIX_ProcessingParams *procParams,
195 PKIX_UInt32 methodFlags, 195 PKIX_UInt32 methodFlags,
196 PKIX_Boolean chainVerificationState, 196 PKIX_Boolean chainVerificationState,
197 PKIX_RevocationStatus *pRevStatus, 197 PKIX_RevocationStatus *pRevStatus,
198 PKIX_UInt32 *pReasonCode, 198 CERTCRLEntryReasonCode *pReasonCode,
199 void *plContext) 199 void *plContext)
200 { 200 {
201 PKIX_CertStore_CheckRevokationByCrlCallback storeCheckRevocationFn; 201 PKIX_CertStore_CheckRevokationByCrlCallback storeCheckRevocationFn;
202 PKIX_CertStore *certStore = NULL; 202 PKIX_CertStore *certStore = NULL;
203 pkix_CrlChecker *state = NULL; 203 pkix_CrlChecker *state = NULL;
204 PKIX_UInt32 crlStoreIndex = 0; 204 PKIX_UInt32 crlStoreIndex = 0;
205 PKIX_UInt32 numCrlStores = 0; 205 PKIX_UInt32 numCrlStores = 0;
206 PKIX_Boolean storeIsLocal = PKIX_FALSE; 206 PKIX_Boolean storeIsLocal = PKIX_FALSE;
207 PKIX_RevocationStatus revStatus = PKIX_RevStatus_NoInfo; 207 PKIX_RevocationStatus revStatus = PKIX_RevStatus_NoInfo;
208 208
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 */ 287 */
288 PKIX_Error * 288 PKIX_Error *
289 pkix_CrlChecker_CheckExternal( 289 pkix_CrlChecker_CheckExternal(
290 PKIX_PL_Cert *cert, 290 PKIX_PL_Cert *cert,
291 PKIX_PL_Cert *issuer, 291 PKIX_PL_Cert *issuer,
292 PKIX_PL_Date *date, 292 PKIX_PL_Date *date,
293 pkix_RevocationMethod *checkerObject, 293 pkix_RevocationMethod *checkerObject,
294 PKIX_ProcessingParams *procParams, 294 PKIX_ProcessingParams *procParams,
295 PKIX_UInt32 methodFlags, 295 PKIX_UInt32 methodFlags,
296 PKIX_RevocationStatus *pRevStatus, 296 PKIX_RevocationStatus *pRevStatus,
297 PKIX_UInt32 *pReasonCode, 297 CERTCRLEntryReasonCode *pReasonCode,
298 void **pNBIOContext, 298 void **pNBIOContext,
299 void *plContext) 299 void *plContext)
300 { 300 {
301 PKIX_CertStore_CheckRevokationByCrlCallback storeCheckRevocationFn = NULL; 301 PKIX_CertStore_CheckRevokationByCrlCallback storeCheckRevocationFn = NULL;
302 PKIX_CertStore_ImportCrlCallback storeImportCrlFn = NULL; 302 PKIX_CertStore_ImportCrlCallback storeImportCrlFn = NULL;
303 PKIX_RevocationStatus revStatus = PKIX_RevStatus_NoInfo; 303 PKIX_RevocationStatus revStatus = PKIX_RevStatus_NoInfo;
304 PKIX_CertStore *certStore = NULL; 304 PKIX_CertStore *certStore = NULL;
305 PKIX_CertStore *localStore = NULL; 305 PKIX_CertStore *localStore = NULL;
306 PKIX_CRLSelector *crlSelector = NULL; 306 PKIX_CRLSelector *crlSelector = NULL;
307 PKIX_PL_X500Name *issuerName = NULL; 307 PKIX_PL_X500Name *issuerName = NULL;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 429
430 PKIX_DECREF(dpList); 430 PKIX_DECREF(dpList);
431 PKIX_DECREF(crlList); 431 PKIX_DECREF(crlList);
432 PKIX_DECREF(certStore); 432 PKIX_DECREF(certStore);
433 PKIX_DECREF(issuerName); 433 PKIX_DECREF(issuerName);
434 PKIX_DECREF(localStore); 434 PKIX_DECREF(localStore);
435 PKIX_DECREF(crlSelector); 435 PKIX_DECREF(crlSelector);
436 436
437 PKIX_RETURN(CERTCHAINCHECKER); 437 PKIX_RETURN(CERTCHAINCHECKER);
438 } 438 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698