michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: /* michael@0: * pkix_targetcertchecker.h michael@0: * michael@0: * Header file for validate target cert function michael@0: * michael@0: */ michael@0: michael@0: #ifndef _PKIX_TARGETCERTCHECKER_H michael@0: #define _PKIX_TARGETCERTCHECKER_H michael@0: michael@0: #include "pkix_tools.h" michael@0: michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: michael@0: typedef struct pkix_TargetCertCheckerState pkix_TargetCertCheckerState; michael@0: michael@0: struct pkix_TargetCertCheckerState { michael@0: PKIX_CertSelector *certSelector; michael@0: PKIX_List *pathToNameList; michael@0: PKIX_List *extKeyUsageList; /* List of PKIX_PL_OID */ michael@0: PKIX_List *subjAltNameList; michael@0: PKIX_Boolean subjAltNameMatchAll; michael@0: PKIX_UInt32 certsRemaining; michael@0: PKIX_PL_OID *extKeyUsageOID; michael@0: PKIX_PL_OID *subjAltNameOID; michael@0: }; michael@0: michael@0: PKIX_Error * michael@0: pkix_TargetCertChecker_Initialize( michael@0: PKIX_CertSelector *certSelector, michael@0: PKIX_UInt32 certsRemaining, michael@0: PKIX_CertChainChecker **pChecker, michael@0: void *plContext); michael@0: michael@0: PKIX_Error * michael@0: pkix_TargetCertCheckerState_RegisterSelf(void *plContext); michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: michael@0: #endif /* _PKIX_TARGETCERTCHECKER_H */