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_nsscontext.h | 5 * pkix_pl_nsscontext.h |
6 * | 6 * |
7 * NSSContext Object Type Definition | 7 * NSSContext Object Type Definition |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
11 | 11 |
12 #ifndef _PKIX_PL_NSSCONTEXT_H | 12 #ifndef _PKIX_PL_NSSCONTEXT_H |
13 #define _PKIX_PL_NSSCONTEXT_H | 13 #define _PKIX_PL_NSSCONTEXT_H |
14 | 14 |
15 #include "pkix_pl_common.h" | 15 #include "pkix_pl_common.h" |
16 | 16 |
17 #ifdef __cplusplus | 17 #ifdef __cplusplus |
18 extern "C" { | 18 extern "C" { |
19 #endif | 19 #endif |
20 | 20 |
21 struct PKIX_PL_NssContextStruct { | 21 struct PKIX_PL_NssContextStruct { |
22 SECCertificateUsage certificateUsage; | 22 SECCertificateUsage certificateUsage; |
23 PRArenaPool *arena; | 23 PLArenaPool *arena; |
24 void *wincx; | 24 void *wincx; |
25 PKIX_UInt32 timeoutSeconds; | 25 PKIX_UInt32 timeoutSeconds; |
26 PKIX_UInt32 maxResponseLength; | 26 PKIX_UInt32 maxResponseLength; |
27 PRTime crlReloadDelay; | 27 PRTime crlReloadDelay; |
28 PRTime badDerCrlReloadDelay; | 28 PRTime badDerCrlReloadDelay; |
29 CERTChainVerifyCallback chainVerifyCallback; | 29 CERTChainVerifyCallback chainVerifyCallback; |
30 }; | 30 }; |
31 | 31 |
32 PKIX_Error * | 32 PKIX_Error * |
33 pkix_pl_NssContext_GetCertUsage | 33 pkix_pl_NssContext_GetCertUsage |
34 (PKIX_PL_NssContext *nssContext, SECCertificateUsage *pCertUsage); | 34 (PKIX_PL_NssContext *nssContext, SECCertificateUsage *pCertUsage); |
35 | 35 |
36 /* XXX move the setter into the public header. */ | 36 /* XXX move the setter into the public header. */ |
37 PKIX_Error * | 37 PKIX_Error * |
38 pkix_pl_NssContext_SetCertUsage | 38 pkix_pl_NssContext_SetCertUsage |
39 (SECCertificateUsage certUsage, PKIX_PL_NssContext *nssContext); | 39 (SECCertificateUsage certUsage, PKIX_PL_NssContext *nssContext); |
40 | 40 |
41 PKIX_Error * | 41 PKIX_Error * |
42 pkix_pl_NssContext_GetWincx(PKIX_PL_NssContext *nssContext, void **pWincx); | 42 pkix_pl_NssContext_GetWincx(PKIX_PL_NssContext *nssContext, void **pWincx); |
43 | 43 |
44 /* XXX move the setter into the public header. */ | 44 /* XXX move the setter into the public header. */ |
45 PKIX_Error * | 45 PKIX_Error * |
46 pkix_pl_NssContext_SetWincx(void *wincx, PKIX_PL_NssContext *nssContext); | 46 pkix_pl_NssContext_SetWincx(void *wincx, PKIX_PL_NssContext *nssContext); |
47 | 47 |
48 #ifdef __cplusplus | 48 #ifdef __cplusplus |
49 } | 49 } |
50 #endif | 50 #endif |
51 | 51 |
52 #endif /* _PKIX_PL_NSSCONTEXT_H */ | 52 #endif /* _PKIX_PL_NSSCONTEXT_H */ |
OLD | NEW |