1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/libpkix/pkix/checker/pkix_ocspchecker.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,67 @@ 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_ocspchecker.h 1.9 + * 1.10 + * OcspChecker Object Type Definition 1.11 + * 1.12 + */ 1.13 + 1.14 +#ifndef _PKIX_OCSPCHECKER_H 1.15 +#define _PKIX_OCSPCHECKER_H 1.16 + 1.17 +#include "pkix_tools.h" 1.18 +#include "pkix_revocationmethod.h" 1.19 + 1.20 +#ifdef __cplusplus 1.21 +extern "C" { 1.22 +#endif 1.23 + 1.24 +/* NOTE: nbio logic removed. Will be replaced later. */ 1.25 + 1.26 +PKIX_Error * 1.27 +pkix_OcspChecker_CheckLocal( 1.28 + PKIX_PL_Cert *cert, 1.29 + PKIX_PL_Cert *issuer, 1.30 + PKIX_PL_Date *date, 1.31 + pkix_RevocationMethod *checkerObject, 1.32 + PKIX_ProcessingParams *procParams, 1.33 + PKIX_UInt32 methodFlags, 1.34 + PKIX_Boolean chainVerificationState, 1.35 + PKIX_RevocationStatus *pRevStatus, 1.36 + PKIX_UInt32 *reasonCode, 1.37 + void *plContext); 1.38 + 1.39 +PKIX_Error * 1.40 +pkix_OcspChecker_CheckExternal( 1.41 + PKIX_PL_Cert *cert, 1.42 + PKIX_PL_Cert *issuer, 1.43 + PKIX_PL_Date *date, 1.44 + pkix_RevocationMethod *checkerObject, 1.45 + PKIX_ProcessingParams *procParams, 1.46 + PKIX_UInt32 methodFlags, 1.47 + PKIX_RevocationStatus *pRevStatus, 1.48 + PKIX_UInt32 *reasonCode, 1.49 + void **pNBIOContext, 1.50 + void *plContext); 1.51 + 1.52 +PKIX_Error * 1.53 +pkix_OcspChecker_Create(PKIX_RevocationMethodType methodType, 1.54 + PKIX_UInt32 flags, 1.55 + PKIX_UInt32 priority, 1.56 + pkix_LocalRevocationCheckFn localRevChecker, 1.57 + pkix_ExternalRevocationCheckFn externalRevChecker, 1.58 + PKIX_PL_VerifyCallback certVerifyFn, 1.59 + pkix_RevocationMethod **pChecker, 1.60 + void *plContext); 1.61 + 1.62 +/* see source file for function documentation */ 1.63 + 1.64 +PKIX_Error *pkix_OcspChecker_RegisterSelf(void *plContext); 1.65 + 1.66 +#ifdef __cplusplus 1.67 +} 1.68 +#endif 1.69 + 1.70 +#endif /* _PKIX_OCSPCHECKER_H */