Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | /* |
michael@0 | 5 | * pkix_defaultcrlchecker.h |
michael@0 | 6 | * |
michael@0 | 7 | * Header file for default CRL function |
michael@0 | 8 | * |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | #ifndef _PKIX_CRLCHECKER_H |
michael@0 | 12 | #define _PKIX_CRLCHECKER_H |
michael@0 | 13 | |
michael@0 | 14 | #include "pkixt.h" |
michael@0 | 15 | #include "pkix_revocationmethod.h" |
michael@0 | 16 | #include "pkix_crlsel.h" |
michael@0 | 17 | |
michael@0 | 18 | #ifdef __cplusplus |
michael@0 | 19 | extern "C" { |
michael@0 | 20 | #endif |
michael@0 | 21 | |
michael@0 | 22 | /* NOTE: nbio logic removed. Will be replaced later. */ |
michael@0 | 23 | |
michael@0 | 24 | PKIX_Error * |
michael@0 | 25 | pkix_CrlChecker_CheckLocal( |
michael@0 | 26 | PKIX_PL_Cert *cert, |
michael@0 | 27 | PKIX_PL_Cert *issuer, |
michael@0 | 28 | PKIX_PL_Date *date, |
michael@0 | 29 | pkix_RevocationMethod *checkerObject, |
michael@0 | 30 | PKIX_ProcessingParams *procParams, |
michael@0 | 31 | PKIX_UInt32 methodFlags, |
michael@0 | 32 | PKIX_Boolean chainVerificationState, |
michael@0 | 33 | PKIX_RevocationStatus *pRevStatus, |
michael@0 | 34 | PKIX_UInt32 *reasonCode, |
michael@0 | 35 | void *plContext); |
michael@0 | 36 | |
michael@0 | 37 | PKIX_Error * |
michael@0 | 38 | pkix_CrlChecker_CheckExternal( |
michael@0 | 39 | PKIX_PL_Cert *cert, |
michael@0 | 40 | PKIX_PL_Cert *issuer, |
michael@0 | 41 | PKIX_PL_Date *date, |
michael@0 | 42 | pkix_RevocationMethod *checkerObject, |
michael@0 | 43 | PKIX_ProcessingParams *procParams, |
michael@0 | 44 | PKIX_UInt32 methodFlags, |
michael@0 | 45 | PKIX_RevocationStatus *pRevStatus, |
michael@0 | 46 | PKIX_UInt32 *reasonCode, |
michael@0 | 47 | void **pNBIOContext, |
michael@0 | 48 | void *plContext); |
michael@0 | 49 | |
michael@0 | 50 | PKIX_Error * |
michael@0 | 51 | pkix_CrlChecker_Create(PKIX_RevocationMethodType methodType, |
michael@0 | 52 | PKIX_UInt32 flags, |
michael@0 | 53 | PKIX_UInt32 priority, |
michael@0 | 54 | pkix_LocalRevocationCheckFn localRevChecker, |
michael@0 | 55 | pkix_ExternalRevocationCheckFn externalRevChecker, |
michael@0 | 56 | PKIX_List *certStores, |
michael@0 | 57 | PKIX_PL_VerifyCallback crlVerifyFn, |
michael@0 | 58 | pkix_RevocationMethod **pChecker, |
michael@0 | 59 | void *plContext); |
michael@0 | 60 | |
michael@0 | 61 | PKIX_Error * |
michael@0 | 62 | pkix_CrlChecker_RegisterSelf(void *plContext); |
michael@0 | 63 | |
michael@0 | 64 | #ifdef __cplusplus |
michael@0 | 65 | } |
michael@0 | 66 | #endif |
michael@0 | 67 | |
michael@0 | 68 | #endif /* _PKIX_CRLCHECKER_H */ |