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_comcertselparams.h andre@0: * andre@0: * ComCertSelParams Object Type Definition andre@0: * andre@0: */ andre@0: andre@0: #ifndef _PKIX_COMCERTSELPARAMS_H andre@0: #define _PKIX_COMCERTSELPARAMS_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: /* andre@0: * pathToNamesConstraint is Name Constraints generated based on the andre@0: * pathToNames. We save a cached copy to save regeneration for each andre@0: * check. SubjAltNames also has its cache, since SubjAltNames are andre@0: * verified by checker, its cache copy is stored in checkerstate. andre@0: */ andre@0: struct PKIX_ComCertSelParamsStruct { andre@0: PKIX_Int32 version; andre@0: PKIX_Int32 minPathLength; andre@0: PKIX_Boolean matchAllSubjAltNames; andre@0: PKIX_PL_X500Name *subject; andre@0: PKIX_List *policies; /* List of PKIX_PL_OID */ andre@0: PKIX_PL_Cert *cert; andre@0: PKIX_PL_CertNameConstraints *nameConstraints; andre@0: PKIX_List *pathToNames; /* List of PKIX_PL_GeneralNames */ andre@0: PKIX_List *subjAltNames; /* List of PKIX_PL_GeneralNames */ andre@0: PKIX_List *extKeyUsage; /* List of PKIX_PL_OID */ andre@0: PKIX_UInt32 keyUsage; andre@0: PKIX_PL_Date *date; andre@0: PKIX_PL_Date *certValid; andre@0: PKIX_PL_X500Name *issuer; andre@0: PKIX_PL_BigInt *serialNumber; andre@0: PKIX_PL_ByteArray *authKeyId; andre@0: PKIX_PL_ByteArray *subjKeyId; andre@0: PKIX_PL_PublicKey *subjPubKey; andre@0: PKIX_PL_OID *subjPKAlgId; andre@0: PKIX_Boolean leafCertFlag; andre@0: }; andre@0: andre@0: /* see source file for function documentation */ andre@0: andre@0: PKIX_Error *pkix_ComCertSelParams_RegisterSelf(void *plContext); andre@0: andre@0: #ifdef __cplusplus andre@0: } andre@0: #endif andre@0: andre@0: #endif /* _PKIX_COMCERTSELPARAMS_H */