|
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_defaultcrlchecker.h |
|
6 * |
|
7 * Header file for default CRL function |
|
8 * |
|
9 */ |
|
10 |
|
11 #ifndef _PKIX_CRLCHECKER_H |
|
12 #define _PKIX_CRLCHECKER_H |
|
13 |
|
14 #include "pkixt.h" |
|
15 #include "pkix_revocationmethod.h" |
|
16 #include "pkix_crlsel.h" |
|
17 |
|
18 #ifdef __cplusplus |
|
19 extern "C" { |
|
20 #endif |
|
21 |
|
22 /* NOTE: nbio logic removed. Will be replaced later. */ |
|
23 |
|
24 PKIX_Error * |
|
25 pkix_CrlChecker_CheckLocal( |
|
26 PKIX_PL_Cert *cert, |
|
27 PKIX_PL_Cert *issuer, |
|
28 PKIX_PL_Date *date, |
|
29 pkix_RevocationMethod *checkerObject, |
|
30 PKIX_ProcessingParams *procParams, |
|
31 PKIX_UInt32 methodFlags, |
|
32 PKIX_Boolean chainVerificationState, |
|
33 PKIX_RevocationStatus *pRevStatus, |
|
34 PKIX_UInt32 *reasonCode, |
|
35 void *plContext); |
|
36 |
|
37 PKIX_Error * |
|
38 pkix_CrlChecker_CheckExternal( |
|
39 PKIX_PL_Cert *cert, |
|
40 PKIX_PL_Cert *issuer, |
|
41 PKIX_PL_Date *date, |
|
42 pkix_RevocationMethod *checkerObject, |
|
43 PKIX_ProcessingParams *procParams, |
|
44 PKIX_UInt32 methodFlags, |
|
45 PKIX_RevocationStatus *pRevStatus, |
|
46 PKIX_UInt32 *reasonCode, |
|
47 void **pNBIOContext, |
|
48 void *plContext); |
|
49 |
|
50 PKIX_Error * |
|
51 pkix_CrlChecker_Create(PKIX_RevocationMethodType methodType, |
|
52 PKIX_UInt32 flags, |
|
53 PKIX_UInt32 priority, |
|
54 pkix_LocalRevocationCheckFn localRevChecker, |
|
55 pkix_ExternalRevocationCheckFn externalRevChecker, |
|
56 PKIX_List *certStores, |
|
57 PKIX_PL_VerifyCallback crlVerifyFn, |
|
58 pkix_RevocationMethod **pChecker, |
|
59 void *plContext); |
|
60 |
|
61 PKIX_Error * |
|
62 pkix_CrlChecker_RegisterSelf(void *plContext); |
|
63 |
|
64 #ifdef __cplusplus |
|
65 } |
|
66 #endif |
|
67 |
|
68 #endif /* _PKIX_CRLCHECKER_H */ |