1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/libpkix/pkix/checker/pkix_targetcertchecker.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 +/* 1.8 + * pkix_targetcertchecker.h 1.9 + * 1.10 + * Header file for validate target cert function 1.11 + * 1.12 + */ 1.13 + 1.14 +#ifndef _PKIX_TARGETCERTCHECKER_H 1.15 +#define _PKIX_TARGETCERTCHECKER_H 1.16 + 1.17 +#include "pkix_tools.h" 1.18 + 1.19 +#ifdef __cplusplus 1.20 +extern "C" { 1.21 +#endif 1.22 + 1.23 +typedef struct pkix_TargetCertCheckerState pkix_TargetCertCheckerState; 1.24 + 1.25 +struct pkix_TargetCertCheckerState { 1.26 + PKIX_CertSelector *certSelector; 1.27 + PKIX_List *pathToNameList; 1.28 + PKIX_List *extKeyUsageList; /* List of PKIX_PL_OID */ 1.29 + PKIX_List *subjAltNameList; 1.30 + PKIX_Boolean subjAltNameMatchAll; 1.31 + PKIX_UInt32 certsRemaining; 1.32 + PKIX_PL_OID *extKeyUsageOID; 1.33 + PKIX_PL_OID *subjAltNameOID; 1.34 +}; 1.35 + 1.36 +PKIX_Error * 1.37 +pkix_TargetCertChecker_Initialize( 1.38 + PKIX_CertSelector *certSelector, 1.39 + PKIX_UInt32 certsRemaining, 1.40 + PKIX_CertChainChecker **pChecker, 1.41 + void *plContext); 1.42 + 1.43 +PKIX_Error * 1.44 +pkix_TargetCertCheckerState_RegisterSelf(void *plContext); 1.45 + 1.46 +#ifdef __cplusplus 1.47 +} 1.48 +#endif 1.49 + 1.50 +#endif /* _PKIX_TARGETCERTCHECKER_H */