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