Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 */
11 #ifndef _PKIX_SIGNATURECHECKER_H
12 #define _PKIX_SIGNATURECHECKER_H
14 #include "pkix_tools.h"
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
20 typedef struct pkix_SignatureCheckerState pkix_SignatureCheckerState;
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 };
30 PKIX_Error *
31 pkix_SignatureChecker_Initialize(
32 PKIX_PL_PublicKey *trustedPubKey,
33 PKIX_UInt32 certsRemaining,
34 PKIX_CertChainChecker **pChecker,
35 void *plContext);
37 PKIX_Error *
38 pkix_SignatureCheckerState_RegisterSelf(void *plContext);
40 #ifdef __cplusplus
41 }
42 #endif
44 #endif /* _PKIX_SIGNATURECHECKER_H */