Debian Codegraph @

debian/rust-vendor/openssl-src/openssl/crypto/x509/standard_exts.h

raw
1 /*
2 * Copyright 1999-2025 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 &ossl_v3_crl_invdate,
38 &ossl_v3_sxnet,
39 &ossl_v3_info,
40 &ossl_v3_audit_identity,
41 #ifndef OPENSSL_NO_RFC3779
42 &ossl_v3_addr,
43 &ossl_v3_asid,
44 #endif
45 #ifndef OPENSSL_NO_OCSP
46 &ossl_v3_ocsp_nonce,
47 &ossl_v3_ocsp_crlid,
48 &ossl_v3_ocsp_accresp,
49 &ossl_v3_ocsp_nocheck,
50 &ossl_v3_ocsp_acutoff,
51 &ossl_v3_ocsp_serviceloc,
52 #endif
53 &ossl_v3_sinfo,
54 &ossl_v3_policy_constraints,
55 &ossl_v3_targeting_information,
56 &ossl_v3_no_rev_avail,
57 &ossl_v3_crl_hold,
58 &ossl_v3_pci,
59 &ossl_v3_name_constraints,
60 &ossl_v3_policy_mappings,
61 &ossl_v3_inhibit_anyp,
62 &ossl_v3_subj_dir_attrs,
63 &ossl_v3_idp,
64 &ossl_v3_alt[2],
65 &ossl_v3_freshest_crl,
66 #ifndef OPENSSL_NO_CT
67 &ossl_v3_ct_scts[0],
68 &ossl_v3_ct_scts[1],
69 &ossl_v3_ct_scts[2],
70 #endif
71 &ossl_v3_utf8_list[0],
72 &ossl_v3_issuer_sign_tool,
73 &ossl_v3_tls_feature,
74 &ossl_v3_ext_admission,
75 &ossl_v3_authority_attribute_identifier,
76 &ossl_v3_role_spec_cert_identifier,
77 &ossl_v3_battcons,
78 &ossl_v3_delegated_name_constraints,
79 &ossl_v3_time_specification,
80 &ossl_v3_attribute_descriptor,
81 &ossl_v3_user_notice,
82 &ossl_v3_soa_identifier,
83 &ossl_v3_acc_cert_policies,
84 &ossl_v3_acc_priv_policies,
85 &ossl_v3_indirect_issuer,
86 &ossl_v3_no_assertion,
87 &ossl_v3_aa_issuing_dist_point,
88 &ossl_v3_issued_on_behalf_of,
89 &ossl_v3_single_use,
90 &ossl_v3_group_ac,
91 &ossl_v3_allowed_attribute_assignments,
92 &ossl_v3_attribute_mappings,
93 &ossl_v3_holder_name_constraints,
94 &ossl_v3_associated_info,
95 };
96
97 /* Number of standard extensions */
98
99 #define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)