xref: /openssl/crypto/x509/standard_exts.h (revision 2b735fe2)
1 /*
2  * Copyright 1999-2023 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 #ifndef OPENSSL_NO_RFC3779
43     &ossl_v3_addr,
44     &ossl_v3_asid,
45 #endif
46 #ifndef OPENSSL_NO_OCSP
47     &ossl_v3_ocsp_nonce,
48     &ossl_v3_ocsp_crlid,
49     &ossl_v3_ocsp_accresp,
50     &ossl_v3_ocsp_nocheck,
51     &ossl_v3_ocsp_acutoff,
52     &ossl_v3_ocsp_serviceloc,
53 #endif
54     &ossl_v3_sinfo,
55     &ossl_v3_policy_constraints,
56     &ossl_v3_targeting_information,
57     &ossl_v3_no_rev_avail,
58 #ifndef OPENSSL_NO_OCSP
59     &ossl_v3_crl_hold,
60 #endif
61     &ossl_v3_pci,
62     &ossl_v3_name_constraints,
63     &ossl_v3_policy_mappings,
64     &ossl_v3_inhibit_anyp,
65     &ossl_v3_subj_dir_attrs,
66     &ossl_v3_idp,
67     &ossl_v3_alt[2],
68     &ossl_v3_freshest_crl,
69 #ifndef OPENSSL_NO_CT
70     &ossl_v3_ct_scts[0],
71     &ossl_v3_ct_scts[1],
72     &ossl_v3_ct_scts[2],
73 #endif
74     &ossl_v3_utf8_list[0],
75     &ossl_v3_issuer_sign_tool,
76     &ossl_v3_tls_feature,
77     &ossl_v3_ext_admission,
78     &ossl_v3_delegated_name_constraints,
79     &ossl_v3_soa_identifier,
80     &ossl_v3_acc_cert_policies,
81     &ossl_v3_acc_priv_policies,
82     &ossl_v3_indirect_issuer,
83     &ossl_v3_no_assertion,
84     &ossl_v3_single_use,
85     &ossl_v3_group_ac,
86     &ossl_v3_holder_name_constraints,
87     &ossl_v3_associated_info,
88 };
89 
90 /* Number of standard extensions */
91 
92 #define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)
93 
94