michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: /* michael@0: * pkix_defaultcrlchecker.h michael@0: * michael@0: * Header file for default CRL function michael@0: * michael@0: */ michael@0: michael@0: #ifndef _PKIX_CRLCHECKER_H michael@0: #define _PKIX_CRLCHECKER_H michael@0: michael@0: #include "pkixt.h" michael@0: #include "pkix_revocationmethod.h" michael@0: #include "pkix_crlsel.h" michael@0: michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: michael@0: /* NOTE: nbio logic removed. Will be replaced later. */ michael@0: michael@0: PKIX_Error * michael@0: pkix_CrlChecker_CheckLocal( michael@0: PKIX_PL_Cert *cert, michael@0: PKIX_PL_Cert *issuer, michael@0: PKIX_PL_Date *date, michael@0: pkix_RevocationMethod *checkerObject, michael@0: PKIX_ProcessingParams *procParams, michael@0: PKIX_UInt32 methodFlags, michael@0: PKIX_Boolean chainVerificationState, michael@0: PKIX_RevocationStatus *pRevStatus, michael@0: PKIX_UInt32 *reasonCode, michael@0: void *plContext); michael@0: michael@0: PKIX_Error * michael@0: pkix_CrlChecker_CheckExternal( michael@0: PKIX_PL_Cert *cert, michael@0: PKIX_PL_Cert *issuer, michael@0: PKIX_PL_Date *date, michael@0: pkix_RevocationMethod *checkerObject, michael@0: PKIX_ProcessingParams *procParams, michael@0: PKIX_UInt32 methodFlags, michael@0: PKIX_RevocationStatus *pRevStatus, michael@0: PKIX_UInt32 *reasonCode, michael@0: void **pNBIOContext, michael@0: void *plContext); michael@0: michael@0: PKIX_Error * michael@0: pkix_CrlChecker_Create(PKIX_RevocationMethodType methodType, michael@0: PKIX_UInt32 flags, michael@0: PKIX_UInt32 priority, michael@0: pkix_LocalRevocationCheckFn localRevChecker, michael@0: pkix_ExternalRevocationCheckFn externalRevChecker, michael@0: PKIX_List *certStores, michael@0: PKIX_PL_VerifyCallback crlVerifyFn, michael@0: pkix_RevocationMethod **pChecker, michael@0: void *plContext); michael@0: michael@0: PKIX_Error * michael@0: pkix_CrlChecker_RegisterSelf(void *plContext); michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: michael@0: #endif /* _PKIX_CRLCHECKER_H */