xref: /openssl/crypto/x509/standard_exts.h (revision bda7b3ed)
1 /*
2  * Copyright 1999-2024 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 /*
11  * This table will be searched using OBJ_bsearch so it *must* kept in order
12  * of the ext_nid values.
13  */
14 
15 static const X509V3_EXT_METHOD *standard_exts[] = {
16     &ossl_v3_nscert,
17     &ossl_v3_ns_ia5_list[0],
18     &ossl_v3_ns_ia5_list[1],
19     &ossl_v3_ns_ia5_list[2],
20     &ossl_v3_ns_ia5_list[3],
21     &ossl_v3_ns_ia5_list[4],
22     &ossl_v3_ns_ia5_list[5],
23     &ossl_v3_ns_ia5_list[6],
24     &ossl_v3_skey_id,
25     &ossl_v3_key_usage,
26     &ossl_v3_pkey_usage_period,
27     &ossl_v3_alt[0],
28     &ossl_v3_alt[1],
29     &ossl_v3_bcons,
30     &ossl_v3_crl_num,
31     &ossl_v3_cpols,
32     &ossl_v3_akey_id,
33     &ossl_v3_crld,
34     &ossl_v3_ext_ku,
35     &ossl_v3_delta_crl,
36     &ossl_v3_crl_reason,
37 #ifndef OPENSSL_NO_OCSP
38     &ossl_v3_crl_invdate,
39 #endif
40     &ossl_v3_sxnet,
41     &ossl_v3_info,
42     &ossl_v3_audit_identity,
43 #ifndef OPENSSL_NO_RFC3779
44     &ossl_v3_addr,
45     &ossl_v3_asid,
46 #endif
47 #ifndef OPENSSL_NO_OCSP
48     &ossl_v3_ocsp_nonce,
49     &ossl_v3_ocsp_crlid,
50     &ossl_v3_ocsp_accresp,
51     &ossl_v3_ocsp_nocheck,
52     &ossl_v3_ocsp_acutoff,
53     &ossl_v3_ocsp_serviceloc,
54 #endif
55     &ossl_v3_sinfo,
56     &ossl_v3_policy_constraints,
57     &ossl_v3_targeting_information,
58     &ossl_v3_no_rev_avail,
59 #ifndef OPENSSL_NO_OCSP
60     &ossl_v3_crl_hold,
61 #endif
62     &ossl_v3_pci,
63     &ossl_v3_name_constraints,
64     &ossl_v3_policy_mappings,
65     &ossl_v3_inhibit_anyp,
66     &ossl_v3_subj_dir_attrs,
67     &ossl_v3_idp,
68     &ossl_v3_alt[2],
69     &ossl_v3_freshest_crl,
70 #ifndef OPENSSL_NO_CT
71     &ossl_v3_ct_scts[0],
72     &ossl_v3_ct_scts[1],
73     &ossl_v3_ct_scts[2],
74 #endif
75     &ossl_v3_utf8_list[0],
76     &ossl_v3_issuer_sign_tool,
77     &ossl_v3_tls_feature,
78     &ossl_v3_ext_admission,
79     &ossl_v3_authority_attribute_identifier,
80     &ossl_v3_role_spec_cert_identifier,
81     &ossl_v3_battcons,
82     &ossl_v3_delegated_name_constraints,
83     &ossl_v3_user_notice,
84     &ossl_v3_soa_identifier,
85     &ossl_v3_acc_cert_policies,
86     &ossl_v3_acc_priv_policies,
87     &ossl_v3_indirect_issuer,
88     &ossl_v3_no_assertion,
89     &ossl_v3_issued_on_behalf_of,
90     &ossl_v3_single_use,
91     &ossl_v3_group_ac,
92     &ossl_v3_holder_name_constraints,
93     &ossl_v3_associated_info,
94 };
95 
96 /* Number of standard extensions */
97 
98 #define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)
99 
100