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