tor-browser

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

pkix_signaturechecker.h (1119B)


      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_signaturechecker.h
      6 *
      7 * Header file for validate signature function
      8 *
      9 */
     10 
     11 #ifndef _PKIX_SIGNATURECHECKER_H
     12 #define _PKIX_SIGNATURECHECKER_H
     13 
     14 #include "pkix_tools.h"
     15 
     16 #ifdef __cplusplus
     17 extern "C" {
     18 #endif
     19 
     20 typedef struct pkix_SignatureCheckerState pkix_SignatureCheckerState;
     21 
     22 struct pkix_SignatureCheckerState {
     23        PKIX_Boolean prevCertCertSign;
     24        PKIX_UInt32 certsRemaining;
     25        PKIX_PL_PublicKey *prevPublicKey; /* Subject PubKey of last cert */
     26        PKIX_List *prevPublicKeyList; /* of PKIX_PL_PublicKey */
     27        PKIX_PL_OID *keyUsageOID;
     28 };
     29 
     30 PKIX_Error *
     31 pkix_SignatureChecker_Initialize(
     32        PKIX_PL_PublicKey *trustedPubKey,
     33        PKIX_UInt32 certsRemaining,
     34        PKIX_CertChainChecker **pChecker,
     35        void *plContext);
     36 
     37 PKIX_Error *
     38 pkix_SignatureCheckerState_RegisterSelf(void *plContext);
     39 
     40 #ifdef __cplusplus
     41 }
     42 #endif
     43 
     44 #endif /* _PKIX_SIGNATURECHECKER_H */