andre@0: /* This Source Code Form is subject to the terms of the Mozilla Public andre@0: * License, v. 2.0. If a copy of the MPL was not distributed with this andre@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ andre@0: /* andre@0: * pkix_pl_nsscontext.h andre@0: * andre@0: * NSSContext Object Type Definition andre@0: * andre@0: */ andre@0: andre@0: andre@0: #ifndef _PKIX_PL_NSSCONTEXT_H andre@0: #define _PKIX_PL_NSSCONTEXT_H andre@0: andre@0: #include "pkix_pl_common.h" andre@0: andre@0: #ifdef __cplusplus andre@0: extern "C" { andre@0: #endif andre@0: andre@0: struct PKIX_PL_NssContextStruct { andre@0: SECCertificateUsage certificateUsage; andre@0: PLArenaPool *arena; andre@0: void *wincx; andre@0: PKIX_UInt32 timeoutSeconds; andre@0: PKIX_UInt32 maxResponseLength; andre@0: PRTime crlReloadDelay; andre@0: PRTime badDerCrlReloadDelay; andre@0: CERTChainVerifyCallback chainVerifyCallback; andre@0: }; andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_NssContext_GetCertUsage andre@0: (PKIX_PL_NssContext *nssContext, SECCertificateUsage *pCertUsage); andre@0: andre@0: /* XXX move the setter into the public header. */ andre@0: PKIX_Error * andre@0: pkix_pl_NssContext_SetCertUsage andre@0: (SECCertificateUsage certUsage, PKIX_PL_NssContext *nssContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_NssContext_GetWincx(PKIX_PL_NssContext *nssContext, void **pWincx); andre@0: andre@0: /* XXX move the setter into the public header. */ andre@0: PKIX_Error * andre@0: pkix_pl_NssContext_SetWincx(void *wincx, PKIX_PL_NssContext *nssContext); andre@0: andre@0: #ifdef __cplusplus andre@0: } andre@0: #endif andre@0: andre@0: #endif /* _PKIX_PL_NSSCONTEXT_H */