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_ocspchecker.c | 5 * pkix_ocspchecker.c |
6 * | 6 * |
7 * OcspChecker Object Functions | 7 * OcspChecker Object Functions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 PKIX_Error * | 140 PKIX_Error * |
141 pkix_OcspChecker_CheckLocal( | 141 pkix_OcspChecker_CheckLocal( |
142 PKIX_PL_Cert *cert, | 142 PKIX_PL_Cert *cert, |
143 PKIX_PL_Cert *issuer, | 143 PKIX_PL_Cert *issuer, |
144 PKIX_PL_Date *date, | 144 PKIX_PL_Date *date, |
145 pkix_RevocationMethod *checkerObject, | 145 pkix_RevocationMethod *checkerObject, |
146 PKIX_ProcessingParams *procParams, | 146 PKIX_ProcessingParams *procParams, |
147 PKIX_UInt32 methodFlags, | 147 PKIX_UInt32 methodFlags, |
148 PKIX_Boolean chainVerificationState, | 148 PKIX_Boolean chainVerificationState, |
149 PKIX_RevocationStatus *pRevStatus, | 149 PKIX_RevocationStatus *pRevStatus, |
150 PKIX_UInt32 *pReasonCode, | 150 CERTCRLEntryReasonCode *pReasonCode, |
151 void *plContext) | 151 void *plContext) |
152 { | 152 { |
153 PKIX_PL_OcspCertID *cid = NULL; | 153 PKIX_PL_OcspCertID *cid = NULL; |
154 PKIX_Boolean hasFreshStatus = PKIX_FALSE; | 154 PKIX_Boolean hasFreshStatus = PKIX_FALSE; |
155 PKIX_Boolean statusIsGood = PKIX_FALSE; | 155 PKIX_Boolean statusIsGood = PKIX_FALSE; |
156 SECErrorCodes resultCode = SEC_ERROR_REVOKED_CERTIFICATE_OCSP; | 156 SECErrorCodes resultCode = SEC_ERROR_REVOKED_CERTIFICATE_OCSP; |
157 PKIX_RevocationStatus revStatus = PKIX_RevStatus_NoInfo; | 157 PKIX_RevocationStatus revStatus = PKIX_RevStatus_NoInfo; |
158 | 158 |
159 PKIX_ENTER(OCSPCHECKER, "pkix_OcspChecker_CheckLocal"); | 159 PKIX_ENTER(OCSPCHECKER, "pkix_OcspChecker_CheckLocal"); |
160 | 160 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 */ | 215 */ |
216 PKIX_Error * | 216 PKIX_Error * |
217 pkix_OcspChecker_CheckExternal( | 217 pkix_OcspChecker_CheckExternal( |
218 PKIX_PL_Cert *cert, | 218 PKIX_PL_Cert *cert, |
219 PKIX_PL_Cert *issuer, | 219 PKIX_PL_Cert *issuer, |
220 PKIX_PL_Date *date, | 220 PKIX_PL_Date *date, |
221 pkix_RevocationMethod *checkerObject, | 221 pkix_RevocationMethod *checkerObject, |
222 PKIX_ProcessingParams *procParams, | 222 PKIX_ProcessingParams *procParams, |
223 PKIX_UInt32 methodFlags, | 223 PKIX_UInt32 methodFlags, |
224 PKIX_RevocationStatus *pRevStatus, | 224 PKIX_RevocationStatus *pRevStatus, |
225 PKIX_UInt32 *pReasonCode, | 225 CERTCRLEntryReasonCode *pReasonCode, |
226 void **pNBIOContext, | 226 void **pNBIOContext, |
227 void *plContext) | 227 void *plContext) |
228 { | 228 { |
229 SECErrorCodes resultCode = SEC_ERROR_REVOKED_CERTIFICATE_OCSP; | 229 SECErrorCodes resultCode = SEC_ERROR_REVOKED_CERTIFICATE_OCSP; |
230 PKIX_Boolean uriFound = PKIX_FALSE; | 230 PKIX_Boolean uriFound = PKIX_FALSE; |
231 PKIX_Boolean passed = PKIX_TRUE; | 231 PKIX_Boolean passed = PKIX_TRUE; |
232 pkix_OcspChecker *checker = NULL; | 232 pkix_OcspChecker *checker = NULL; |
233 PKIX_PL_OcspCertID *cid = NULL; | 233 PKIX_PL_OcspCertID *cid = NULL; |
234 PKIX_PL_OcspRequest *request = NULL; | 234 PKIX_PL_OcspRequest *request = NULL; |
235 PKIX_PL_OcspResponse *response = NULL; | 235 PKIX_PL_OcspResponse *response = NULL; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 *pReasonCode = crlEntryReasonUnspecified; | 410 *pReasonCode = crlEntryReasonUnspecified; |
411 | 411 |
412 PKIX_DECREF(cid); | 412 PKIX_DECREF(cid); |
413 PKIX_DECREF(request); | 413 PKIX_DECREF(request); |
414 PKIX_DECREF(response); | 414 PKIX_DECREF(response); |
415 | 415 |
416 PKIX_RETURN(OCSPCHECKER); | 416 PKIX_RETURN(OCSPCHECKER); |
417 } | 417 } |
418 | 418 |
419 | 419 |
OLD | NEW |