tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pkix_pl_nsscontext.h (1605B)


      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        PKIX_Boolean certSignatureCheck;
     31 };
     32 
     33 PKIX_Error *
     34 pkix_pl_NssContext_GetCertUsage
     35        (PKIX_PL_NssContext *nssContext, SECCertificateUsage *pCertUsage);
     36 
     37 /* XXX move the setter into the public header. */
     38 PKIX_Error *
     39 pkix_pl_NssContext_SetCertUsage
     40        (SECCertificateUsage certUsage, PKIX_PL_NssContext *nssContext);
     41 
     42 PKIX_Error *
     43 pkix_pl_NssContext_GetCertSignatureCheck
     44        (PKIX_PL_NssContext *nssContext, PKIX_Boolean *pCheckSig);
     45 
     46 PKIX_Error *
     47 pkix_pl_NssContext_SetCertSignatureCheck
     48        (PKIX_Boolean checkSig, PKIX_PL_NssContext *nssContext);
     49 
     50 PKIX_Error *
     51 pkix_pl_NssContext_GetWincx(PKIX_PL_NssContext *nssContext, void **pWincx);
     52 
     53 /* XXX move the setter into the public header. */
     54 PKIX_Error *
     55 pkix_pl_NssContext_SetWincx(void *wincx, PKIX_PL_NssContext *nssContext);
     56 
     57 #ifdef __cplusplus
     58 }
     59 #endif
     60 
     61 #endif /* _PKIX_PL_NSSCONTEXT_H */