|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 /* |
|
5 * pkix_ocspchecker.h |
|
6 * |
|
7 * OcspChecker Object Type Definition |
|
8 * |
|
9 */ |
|
10 |
|
11 #ifndef _PKIX_OCSPCHECKER_H |
|
12 #define _PKIX_OCSPCHECKER_H |
|
13 |
|
14 #include "pkix_tools.h" |
|
15 #include "pkix_revocationmethod.h" |
|
16 |
|
17 #ifdef __cplusplus |
|
18 extern "C" { |
|
19 #endif |
|
20 |
|
21 /* NOTE: nbio logic removed. Will be replaced later. */ |
|
22 |
|
23 PKIX_Error * |
|
24 pkix_OcspChecker_CheckLocal( |
|
25 PKIX_PL_Cert *cert, |
|
26 PKIX_PL_Cert *issuer, |
|
27 PKIX_PL_Date *date, |
|
28 pkix_RevocationMethod *checkerObject, |
|
29 PKIX_ProcessingParams *procParams, |
|
30 PKIX_UInt32 methodFlags, |
|
31 PKIX_Boolean chainVerificationState, |
|
32 PKIX_RevocationStatus *pRevStatus, |
|
33 PKIX_UInt32 *reasonCode, |
|
34 void *plContext); |
|
35 |
|
36 PKIX_Error * |
|
37 pkix_OcspChecker_CheckExternal( |
|
38 PKIX_PL_Cert *cert, |
|
39 PKIX_PL_Cert *issuer, |
|
40 PKIX_PL_Date *date, |
|
41 pkix_RevocationMethod *checkerObject, |
|
42 PKIX_ProcessingParams *procParams, |
|
43 PKIX_UInt32 methodFlags, |
|
44 PKIX_RevocationStatus *pRevStatus, |
|
45 PKIX_UInt32 *reasonCode, |
|
46 void **pNBIOContext, |
|
47 void *plContext); |
|
48 |
|
49 PKIX_Error * |
|
50 pkix_OcspChecker_Create(PKIX_RevocationMethodType methodType, |
|
51 PKIX_UInt32 flags, |
|
52 PKIX_UInt32 priority, |
|
53 pkix_LocalRevocationCheckFn localRevChecker, |
|
54 pkix_ExternalRevocationCheckFn externalRevChecker, |
|
55 PKIX_PL_VerifyCallback certVerifyFn, |
|
56 pkix_RevocationMethod **pChecker, |
|
57 void *plContext); |
|
58 |
|
59 /* see source file for function documentation */ |
|
60 |
|
61 PKIX_Error *pkix_OcspChecker_RegisterSelf(void *plContext); |
|
62 |
|
63 #ifdef __cplusplus |
|
64 } |
|
65 #endif |
|
66 |
|
67 #endif /* _PKIX_OCSPCHECKER_H */ |