Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | /* |
michael@0 | 5 | * pkix_targetcertchecker.h |
michael@0 | 6 | * |
michael@0 | 7 | * Header file for validate target cert function |
michael@0 | 8 | * |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | #ifndef _PKIX_TARGETCERTCHECKER_H |
michael@0 | 12 | #define _PKIX_TARGETCERTCHECKER_H |
michael@0 | 13 | |
michael@0 | 14 | #include "pkix_tools.h" |
michael@0 | 15 | |
michael@0 | 16 | #ifdef __cplusplus |
michael@0 | 17 | extern "C" { |
michael@0 | 18 | #endif |
michael@0 | 19 | |
michael@0 | 20 | typedef struct pkix_TargetCertCheckerState pkix_TargetCertCheckerState; |
michael@0 | 21 | |
michael@0 | 22 | struct pkix_TargetCertCheckerState { |
michael@0 | 23 | PKIX_CertSelector *certSelector; |
michael@0 | 24 | PKIX_List *pathToNameList; |
michael@0 | 25 | PKIX_List *extKeyUsageList; /* List of PKIX_PL_OID */ |
michael@0 | 26 | PKIX_List *subjAltNameList; |
michael@0 | 27 | PKIX_Boolean subjAltNameMatchAll; |
michael@0 | 28 | PKIX_UInt32 certsRemaining; |
michael@0 | 29 | PKIX_PL_OID *extKeyUsageOID; |
michael@0 | 30 | PKIX_PL_OID *subjAltNameOID; |
michael@0 | 31 | }; |
michael@0 | 32 | |
michael@0 | 33 | PKIX_Error * |
michael@0 | 34 | pkix_TargetCertChecker_Initialize( |
michael@0 | 35 | PKIX_CertSelector *certSelector, |
michael@0 | 36 | PKIX_UInt32 certsRemaining, |
michael@0 | 37 | PKIX_CertChainChecker **pChecker, |
michael@0 | 38 | void *plContext); |
michael@0 | 39 | |
michael@0 | 40 | PKIX_Error * |
michael@0 | 41 | pkix_TargetCertCheckerState_RegisterSelf(void *plContext); |
michael@0 | 42 | |
michael@0 | 43 | #ifdef __cplusplus |
michael@0 | 44 | } |
michael@0 | 45 | #endif |
michael@0 | 46 | |
michael@0 | 47 | #endif /* _PKIX_TARGETCERTCHECKER_H */ |