1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/libpkix/pkix/checker/pkix_crlchecker.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,68 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 +/* 1.8 + * pkix_defaultcrlchecker.h 1.9 + * 1.10 + * Header file for default CRL function 1.11 + * 1.12 + */ 1.13 + 1.14 +#ifndef _PKIX_CRLCHECKER_H 1.15 +#define _PKIX_CRLCHECKER_H 1.16 + 1.17 +#include "pkixt.h" 1.18 +#include "pkix_revocationmethod.h" 1.19 +#include "pkix_crlsel.h" 1.20 + 1.21 +#ifdef __cplusplus 1.22 +extern "C" { 1.23 +#endif 1.24 + 1.25 +/* NOTE: nbio logic removed. Will be replaced later. */ 1.26 + 1.27 +PKIX_Error * 1.28 +pkix_CrlChecker_CheckLocal( 1.29 + PKIX_PL_Cert *cert, 1.30 + PKIX_PL_Cert *issuer, 1.31 + PKIX_PL_Date *date, 1.32 + pkix_RevocationMethod *checkerObject, 1.33 + PKIX_ProcessingParams *procParams, 1.34 + PKIX_UInt32 methodFlags, 1.35 + PKIX_Boolean chainVerificationState, 1.36 + PKIX_RevocationStatus *pRevStatus, 1.37 + PKIX_UInt32 *reasonCode, 1.38 + void *plContext); 1.39 + 1.40 +PKIX_Error * 1.41 +pkix_CrlChecker_CheckExternal( 1.42 + PKIX_PL_Cert *cert, 1.43 + PKIX_PL_Cert *issuer, 1.44 + PKIX_PL_Date *date, 1.45 + pkix_RevocationMethod *checkerObject, 1.46 + PKIX_ProcessingParams *procParams, 1.47 + PKIX_UInt32 methodFlags, 1.48 + PKIX_RevocationStatus *pRevStatus, 1.49 + PKIX_UInt32 *reasonCode, 1.50 + void **pNBIOContext, 1.51 + void *plContext); 1.52 + 1.53 +PKIX_Error * 1.54 +pkix_CrlChecker_Create(PKIX_RevocationMethodType methodType, 1.55 + PKIX_UInt32 flags, 1.56 + PKIX_UInt32 priority, 1.57 + pkix_LocalRevocationCheckFn localRevChecker, 1.58 + pkix_ExternalRevocationCheckFn externalRevChecker, 1.59 + PKIX_List *certStores, 1.60 + PKIX_PL_VerifyCallback crlVerifyFn, 1.61 + pkix_RevocationMethod **pChecker, 1.62 + void *plContext); 1.63 + 1.64 +PKIX_Error * 1.65 +pkix_CrlChecker_RegisterSelf(void *plContext); 1.66 + 1.67 +#ifdef __cplusplus 1.68 +} 1.69 +#endif 1.70 + 1.71 +#endif /* _PKIX_CRLCHECKER_H */