1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/libpkix/pkix/certsel/pkix_comcertselparams.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,57 @@ 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_comcertselparams.h 1.9 + * 1.10 + * ComCertSelParams Object Type Definition 1.11 + * 1.12 + */ 1.13 + 1.14 +#ifndef _PKIX_COMCERTSELPARAMS_H 1.15 +#define _PKIX_COMCERTSELPARAMS_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 +/* 1.24 + * pathToNamesConstraint is Name Constraints generated based on the 1.25 + * pathToNames. We save a cached copy to save regeneration for each 1.26 + * check. SubjAltNames also has its cache, since SubjAltNames are 1.27 + * verified by checker, its cache copy is stored in checkerstate. 1.28 + */ 1.29 +struct PKIX_ComCertSelParamsStruct { 1.30 + PKIX_Int32 version; 1.31 + PKIX_Int32 minPathLength; 1.32 + PKIX_Boolean matchAllSubjAltNames; 1.33 + PKIX_PL_X500Name *subject; 1.34 + PKIX_List *policies; /* List of PKIX_PL_OID */ 1.35 + PKIX_PL_Cert *cert; 1.36 + PKIX_PL_CertNameConstraints *nameConstraints; 1.37 + PKIX_List *pathToNames; /* List of PKIX_PL_GeneralNames */ 1.38 + PKIX_List *subjAltNames; /* List of PKIX_PL_GeneralNames */ 1.39 + PKIX_List *extKeyUsage; /* List of PKIX_PL_OID */ 1.40 + PKIX_UInt32 keyUsage; 1.41 + PKIX_PL_Date *date; 1.42 + PKIX_PL_Date *certValid; 1.43 + PKIX_PL_X500Name *issuer; 1.44 + PKIX_PL_BigInt *serialNumber; 1.45 + PKIX_PL_ByteArray *authKeyId; 1.46 + PKIX_PL_ByteArray *subjKeyId; 1.47 + PKIX_PL_PublicKey *subjPubKey; 1.48 + PKIX_PL_OID *subjPKAlgId; 1.49 + PKIX_Boolean leafCertFlag; 1.50 +}; 1.51 + 1.52 +/* see source file for function documentation */ 1.53 + 1.54 +PKIX_Error *pkix_ComCertSelParams_RegisterSelf(void *plContext); 1.55 + 1.56 +#ifdef __cplusplus 1.57 +} 1.58 +#endif 1.59 + 1.60 +#endif /* _PKIX_COMCERTSELPARAMS_H */