summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/ext_dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/ext_dat.h')
-rw-r--r--src/lib/libcrypto/x509/ext_dat.h77
1 files changed, 1 insertions, 76 deletions
diff --git a/src/lib/libcrypto/x509/ext_dat.h b/src/lib/libcrypto/x509/ext_dat.h
index 253f1f844c..bbd6ccf0a3 100644
--- a/src/lib/libcrypto/x509/ext_dat.h
+++ b/src/lib/libcrypto/x509/ext_dat.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ext_dat.h,v 1.5 2023/04/16 07:49:36 tb Exp $ */ 1/* $OpenBSD: ext_dat.h,v 1.6 2023/04/16 11:52:52 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -62,81 +62,6 @@ __BEGIN_HIDDEN_DECLS
62 62
63/* This file contains a table of "standard" extensions */ 63/* This file contains a table of "standard" extensions */
64 64
65extern X509V3_EXT_METHOD v3_bcons, v3_nscert, v3_key_usage, v3_ext_ku;
66extern X509V3_EXT_METHOD v3_pkey_usage_period, v3_sxnet, v3_info, v3_sinfo;
67extern X509V3_EXT_METHOD v3_ns_ia5_list[], v3_alt[], v3_skey_id, v3_akey_id;
68extern X509V3_EXT_METHOD v3_crl_num, v3_crl_reason, v3_crl_invdate;
69extern X509V3_EXT_METHOD v3_delta_crl, v3_cpols, v3_crld, v3_freshest_crl;
70extern X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_accresp, v3_ocsp_acutoff;
71extern X509V3_EXT_METHOD v3_ocsp_crlid, v3_ocsp_nocheck, v3_ocsp_serviceloc;
72extern X509V3_EXT_METHOD v3_crl_hold;
73extern X509V3_EXT_METHOD v3_policy_mappings, v3_policy_constraints;
74extern X509V3_EXT_METHOD v3_name_constraints, v3_inhibit_anyp, v3_idp;
75extern const X509V3_EXT_METHOD v3_addr, v3_asid;
76extern const X509V3_EXT_METHOD v3_ct_scts[3];
77
78/* This table will be searched using OBJ_bsearch so it *must* kept in
79 * order of the ext_nid values.
80 */
81
82static const X509V3_EXT_METHOD *standard_exts[] = {
83 &v3_nscert,
84 &v3_ns_ia5_list[0],
85 &v3_ns_ia5_list[1],
86 &v3_ns_ia5_list[2],
87 &v3_ns_ia5_list[3],
88 &v3_ns_ia5_list[4],
89 &v3_ns_ia5_list[5],
90 &v3_ns_ia5_list[6],
91 &v3_skey_id,
92 &v3_key_usage,
93 &v3_pkey_usage_period,
94 &v3_alt[0],
95 &v3_alt[1],
96 &v3_bcons,
97 &v3_crl_num,
98 &v3_cpols,
99 &v3_akey_id,
100 &v3_crld,
101 &v3_ext_ku,
102 &v3_delta_crl,
103 &v3_crl_reason,
104#ifndef OPENSSL_NO_OCSP
105 &v3_crl_invdate,
106#endif
107 &v3_sxnet,
108 &v3_info,
109#ifndef OPENSSL_NO_RFC3779
110 &v3_addr,
111 &v3_asid,
112#endif
113#ifndef OPENSSL_NO_OCSP
114 &v3_ocsp_nonce,
115 &v3_ocsp_crlid,
116 &v3_ocsp_accresp,
117 &v3_ocsp_nocheck,
118 &v3_ocsp_acutoff,
119 &v3_ocsp_serviceloc,
120#endif
121 &v3_sinfo,
122 &v3_policy_constraints,
123#ifndef OPENSSL_NO_OCSP
124 &v3_crl_hold,
125#endif
126 &v3_name_constraints,
127 &v3_policy_mappings,
128 &v3_inhibit_anyp,
129 &v3_idp,
130 &v3_alt[2],
131 &v3_freshest_crl,
132#ifndef OPENSSL_NO_CT
133 &v3_ct_scts[0],
134 &v3_ct_scts[1],
135 &v3_ct_scts[2],
136#endif
137};
138
139/* Number of standard extensions */ 65/* Number of standard extensions */
140#define STANDARD_EXTENSION_COUNT (sizeof(standard_exts)/sizeof(X509V3_EXT_METHOD *))
141 66
142__END_HIDDEN_DECLS 67__END_HIDDEN_DECLS