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_ocspchecker.h michael@0: * michael@0: * OcspChecker Object Type Definition michael@0: * michael@0: */ michael@0: michael@0: #ifndef _PKIX_OCSPCHECKER_H michael@0: #define _PKIX_OCSPCHECKER_H michael@0: michael@0: #include "pkix_tools.h" michael@0: #include "pkix_revocationmethod.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_OcspChecker_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_OcspChecker_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_OcspChecker_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_PL_VerifyCallback certVerifyFn, michael@0: pkix_RevocationMethod **pChecker, michael@0: void *plContext); michael@0: michael@0: /* see source file for function documentation */ michael@0: michael@0: PKIX_Error *pkix_OcspChecker_RegisterSelf(void *plContext); michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: michael@0: #endif /* _PKIX_OCSPCHECKER_H */