]> git.saurik.com Git - apple/security.git/blob - trust/headers/oids.h
Security-59754.80.3.tar.gz
[apple/security.git] / trust / headers / oids.h
1 /*
2 * Copyright (c) 2005-2009,2011-2016 Apple Inc. All Rights Reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24
25 /*
26 * oids.h - declaration of OID consts
27 *
28 */
29
30 /* We need to guard against the other copy of libDER.
31 * This is outside this header's guards because DERItem.h currently guards
32 * the DERItem type against this header (legacy from when this header also
33 * defined the type). */
34 #ifndef _LIB_DER_H_
35 #include <libDER/DERItem.h>
36 #endif /* _LIB_DER_H_ */
37
38 #ifndef _SECURITY_OIDS_H_
39 #define _SECURITY_OIDS_H_
40
41 #include <stdint.h>
42 #include <string.h>
43
44 __BEGIN_DECLS
45
46 /* Algorithm oids. */
47 extern const DERItem
48 oidRsa, /* PKCS1 RSA encryption, used to identify RSA keys */
49 oidMd2Rsa, /* PKCS1 md2withRSAEncryption signature alg */
50 oidMd4Rsa, /* PKCS1 md4withRSAEncryption signature alg */
51 oidMd5Rsa, /* PKCS1 md5withRSAEncryption signature alg */
52 oidSha1Rsa, /* PKCS1 sha1withRSAEncryption signature alg */
53 oidSha256Rsa, /* PKCS1 sha256WithRSAEncryption signature alg */
54 oidSha384Rsa, /* PKCS1 sha384WithRSAEncryption signature alg */
55 oidSha512Rsa, /* PKCS1 sha512WithRSAEncryption signature alg */
56 oidSha224Rsa, /* PKCS1 sha224WithRSAEncryption signature alg */
57 oidEcPubKey, /* ECDH or ECDSA public key in a certificate */
58 oidSha1Ecdsa, /* ECDSA with SHA1 signature alg */
59 oidSha224Ecdsa, /* ECDSA with SHA224 signature alg */
60 oidSha256Ecdsa, /* ECDSA with SHA256 signature alg */
61 oidSha384Ecdsa, /* ECDSA with SHA384 signature alg */
62 oidSha512Ecdsa, /* ECDSA with SHA512 signature alg */
63 oidSha1Dsa, /* ANSI X9.57 DSA with SHA1 signature alg */
64 oidMd2, /* OID_RSA_HASH 2 */
65 oidMd4, /* OID_RSA_HASH 4 */
66 oidMd5, /* OID_RSA_HASH 5 */
67 oidSha1, /* OID_OIW_ALGORITHM 26 */
68 oidSha1DsaOIW, /* OID_OIW_ALGORITHM 27 */
69 oidSha1DsaCommonOIW,/* OID_OIW_ALGORITHM 28 */
70 oidSha1RsaOIW, /* OID_OIW_ALGORITHM 29 */
71 oidSha256, /* OID_NIST_HASHALG 1 */
72 oidSha384, /* OID_NIST_HASHALG 2 */
73 oidSha512, /* OID_NIST_HASHALG 3 */
74 oidSha224, /* OID_NIST_HASHALG 4 */
75 oidFee, /* APPLE_ALG_OID 1 */
76 oidMd5Fee, /* APPLE_ALG_OID 3 */
77 oidSha1Fee, /* APPLE_ALG_OID 4 */
78 oidEcPrime192v1, /* OID_EC_CURVE 1 prime192v1/secp192r1/ansiX9p192r1*/
79 oidEcPrime256v1, /* OID_EC_CURVE 7 prime256v1/secp256r1*/
80 oidAnsip384r1, /* OID_CERTICOM_EC_CURVE 34 ansip384r1/secp384r1*/
81 oidAnsip521r1; /* OID_CERTICOM_EC_CURVE 35 ansip521r1/secp521r1*/
82
83 /* Standard X.509 Cert and CRL extensions. */
84 extern const DERItem
85 oidSubjectKeyIdentifier,
86 oidKeyUsage,
87 oidPrivateKeyUsagePeriod,
88 oidSubjectAltName,
89 oidIssuerAltName,
90 oidBasicConstraints,
91 oidNameConstraints,
92 oidCrlDistributionPoints,
93 oidCertificatePolicies,
94 oidAnyPolicy,
95 oidPolicyMappings,
96 oidAuthorityKeyIdentifier,
97 oidPolicyConstraints,
98 oidExtendedKeyUsage,
99 oidAnyExtendedKeyUsage,
100 oidInhibitAnyPolicy,
101 oidAuthorityInfoAccess,
102 oidSubjectInfoAccess,
103 oidAdOCSP,
104 oidAdCAIssuer,
105 oidNetscapeCertType,
106 oidEntrustVersInfo,
107 oidMSNTPrincipalName;
108
109 /* Policy Qualifier IDs for Internet policy qualifiers. */
110 extern const DERItem
111 oidQtCps,
112 oidQtUNotice;
113
114 /* X.501 Name IDs. */
115 extern const DERItem
116 oidCommonName,
117 oidCountryName,
118 oidLocalityName,
119 oidStateOrProvinceName,
120 oidOrganizationName,
121 oidOrganizationalUnitName,
122 oidDescription,
123 oidEmailAddress,
124 oidFriendlyName,
125 oidLocalKeyId;
126
127 /* X.509 Extended Key Usages */
128 extern const DERItem
129 oidExtendedKeyUsageServerAuth,
130 oidExtendedKeyUsageClientAuth,
131 oidExtendedKeyUsageCodeSigning,
132 oidExtendedKeyUsageEmailProtection,
133 oidExtendedKeyUsageTimeStamping,
134 oidExtendedKeyUsageOCSPSigning,
135 oidExtendedKeyUsageIPSec,
136 oidExtendedKeyUsageMicrosoftSGC,
137 oidExtendedKeyUsageNetscapeSGC;
138
139 /* Google Certificate Transparency OIDs */
140 extern const DERItem
141 oidGoogleEmbeddedSignedCertificateTimestamp,
142 oidGoogleOCSPSignedCertificateTimestamp;
143
144 __END_DECLS
145
146 #endif /* _SECURITY_OIDS_H_ */