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 | 20 |
21 #ifdef __cplusplus | 21 #ifdef __cplusplus |
22 extern "C" { | 22 extern "C" { |
23 #endif | 23 #endif |
24 | 24 |
25 #define MAX_OCSP_RESPONSE_LEN (64*1024) | 25 #define MAX_OCSP_RESPONSE_LEN (64*1024) |
26 | 26 |
27 struct PKIX_PL_OcspResponseStruct{ | 27 struct PKIX_PL_OcspResponseStruct{ |
28 PRArenaPool *arena; | 28 PLArenaPool *arena; |
29 const PKIX_PL_OcspRequest *request; | 29 const PKIX_PL_OcspRequest *request; |
30 const SEC_HttpClientFcn *httpClient; | 30 const SEC_HttpClientFcn *httpClient; |
31 SEC_HTTP_SERVER_SESSION serverSession; | 31 SEC_HTTP_SERVER_SESSION serverSession; |
32 SEC_HTTP_REQUEST_SESSION sessionRequest; | 32 SEC_HTTP_REQUEST_SESSION sessionRequest; |
33 PKIX_PL_VerifyCallback verifyFcn; | 33 PKIX_PL_VerifyCallback verifyFcn; |
34 SECItem *encodedResponse; | 34 SECItem *encodedResponse; |
35 CERTCertDBHandle *handle; | 35 CERTCertDBHandle *handle; |
36 int64 producedAt; | 36 PRTime producedAt; |
37 PKIX_PL_Date *producedAtDate; | 37 PKIX_PL_Date *producedAtDate; |
38 PKIX_PL_Cert *pkixSignerCert; | 38 PKIX_PL_Cert *pkixSignerCert; |
39 CERTOCSPResponse *nssOCSPResponse; | 39 CERTOCSPResponse *nssOCSPResponse; |
40 CERTCertificate *signerCert; | 40 CERTCertificate *signerCert; |
41 }; | 41 }; |
42 | 42 |
43 /* see source file for function documentation */ | 43 /* see source file for function documentation */ |
44 | 44 |
45 PKIX_Error *pkix_pl_OcspResponse_RegisterSelf(void *plContext); | 45 PKIX_Error *pkix_pl_OcspResponse_RegisterSelf(void *plContext); |
46 | 46 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void **pState, | 94 void **pState, |
95 PKIX_BuildResult **pBuildResult, | 95 PKIX_BuildResult **pBuildResult, |
96 PKIX_VerifyNode **pVerifyTree, | 96 PKIX_VerifyNode **pVerifyTree, |
97 void *plContext); | 97 void *plContext); |
98 | 98 |
99 #ifdef __cplusplus | 99 #ifdef __cplusplus |
100 } | 100 } |
101 #endif | 101 #endif |
102 | 102 |
103 #endif /* _PKIX_PL_OCSPRESPONSE_H */ | 103 #endif /* _PKIX_PL_OCSPRESPONSE_H */ |
OLD | NEW |