OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 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 | 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/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* | 4 /* |
5 * pkix_pl_ocspresponse.h | 5 * pkix_pl_ocspresponse.h |
6 * | 6 * |
7 * OcspResponse Object Definitions | 7 * OcspResponse Object Definitions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
11 #ifndef _PKIX_PL_OCSPRESPONSE_H | 11 #ifndef _PKIX_PL_OCSPRESPONSE_H |
12 #define _PKIX_PL_OCSPRESPONSE_H | 12 #define _PKIX_PL_OCSPRESPONSE_H |
13 | 13 |
14 #include "pkix_pl_common.h" | 14 #include "pkix_pl_common.h" |
15 #include "pkix_pl_ocspcertid.h" | 15 #include "pkix_pl_ocspcertid.h" |
16 #include "hasht.h" | 16 #include "hasht.h" |
17 #include "cryptohi.h" | 17 #include "cryptohi.h" |
18 #include "ocspti.h" | 18 #include "ocspti.h" |
19 #include "ocspi.h" | 19 #include "ocspi.h" |
| 20 #include "plbase64.h" |
20 | 21 |
21 #ifdef __cplusplus | 22 #ifdef __cplusplus |
22 extern "C" { | 23 extern "C" { |
23 #endif | 24 #endif |
24 | 25 |
25 #define MAX_OCSP_RESPONSE_LEN (64*1024) | 26 #define MAX_OCSP_RESPONSE_LEN (64*1024) |
26 | 27 |
27 struct PKIX_PL_OcspResponseStruct{ | 28 struct PKIX_PL_OcspResponseStruct{ |
28 PLArenaPool *arena; | 29 PLArenaPool *arena; |
29 const PKIX_PL_OcspRequest *request; | 30 const PKIX_PL_OcspRequest *request; |
(...skipping 10 matching lines...) Expand all Loading... |
40 CERTCertificate *signerCert; | 41 CERTCertificate *signerCert; |
41 }; | 42 }; |
42 | 43 |
43 /* see source file for function documentation */ | 44 /* see source file for function documentation */ |
44 | 45 |
45 PKIX_Error *pkix_pl_OcspResponse_RegisterSelf(void *plContext); | 46 PKIX_Error *pkix_pl_OcspResponse_RegisterSelf(void *plContext); |
46 | 47 |
47 PKIX_Error * | 48 PKIX_Error * |
48 pkix_pl_OcspResponse_Create( | 49 pkix_pl_OcspResponse_Create( |
49 PKIX_PL_OcspRequest *request, | 50 PKIX_PL_OcspRequest *request, |
| 51 const char *httpMechanism, |
50 void *responder, | 52 void *responder, |
51 PKIX_PL_VerifyCallback verifyFcn, | 53 PKIX_PL_VerifyCallback verifyFcn, |
52 void **pNBIOContext, | 54 void **pNBIOContext, |
53 PKIX_PL_OcspResponse **pResponse, | 55 PKIX_PL_OcspResponse **pResponse, |
54 void *plContext); | 56 void *plContext); |
55 | 57 |
56 PKIX_Error * | 58 PKIX_Error * |
57 pkix_pl_OcspResponse_Decode( | 59 pkix_pl_OcspResponse_Decode( |
58 PKIX_PL_OcspResponse *response, | 60 PKIX_PL_OcspResponse *response, |
59 PKIX_Boolean *passed, | 61 PKIX_Boolean *passed, |
(...skipping 13 matching lines...) Expand all Loading... |
73 PKIX_PL_Cert *cert, | 75 PKIX_PL_Cert *cert, |
74 PKIX_ProcessingParams *procParams, | 76 PKIX_ProcessingParams *procParams, |
75 PKIX_Boolean *pPassed, | 77 PKIX_Boolean *pPassed, |
76 void **pNBIOContext, | 78 void **pNBIOContext, |
77 void *plContext); | 79 void *plContext); |
78 | 80 |
79 PKIX_Error * | 81 PKIX_Error * |
80 pkix_pl_OcspResponse_GetStatusForCert( | 82 pkix_pl_OcspResponse_GetStatusForCert( |
81 PKIX_PL_OcspCertID *cid, | 83 PKIX_PL_OcspCertID *cid, |
82 PKIX_PL_OcspResponse *response, | 84 PKIX_PL_OcspResponse *response, |
| 85 PKIX_Boolean allowCachingOfFailures, |
83 PKIX_PL_Date *validity, | 86 PKIX_PL_Date *validity, |
84 PKIX_Boolean *pPassed, | 87 PKIX_Boolean *pPassed, |
85 SECErrorCodes *pReturnCode, | 88 SECErrorCodes *pReturnCode, |
86 void *plContext); | 89 void *plContext); |
87 | 90 |
88 PKIX_Error * | 91 PKIX_Error * |
89 PKIX_PL_OcspResponse_UseBuildChain( | 92 PKIX_PL_OcspResponse_UseBuildChain( |
90 PKIX_PL_Cert *signerCert, | 93 PKIX_PL_Cert *signerCert, |
91 PKIX_PL_Date *producedAt, | 94 PKIX_PL_Date *producedAt, |
92 PKIX_ProcessingParams *procParams, | 95 PKIX_ProcessingParams *procParams, |
93 void **pNBIOContext, | 96 void **pNBIOContext, |
94 void **pState, | 97 void **pState, |
95 PKIX_BuildResult **pBuildResult, | 98 PKIX_BuildResult **pBuildResult, |
96 PKIX_VerifyNode **pVerifyTree, | 99 PKIX_VerifyNode **pVerifyTree, |
97 void *plContext); | 100 void *plContext); |
98 | 101 |
99 #ifdef __cplusplus | 102 #ifdef __cplusplus |
100 } | 103 } |
101 #endif | 104 #endif |
102 | 105 |
103 #endif /* _PKIX_PL_OCSPRESPONSE_H */ | 106 #endif /* _PKIX_PL_OCSPRESPONSE_H */ |
OLD | NEW |