Debian Codegraph @

debian/rust-vendor/aws-lc-sys/aws-lc/crypto/x509/ext_dat.h

raw
1 // Written by Dr Stephen N Henson ([email protected]) for the OpenSSL project 1999.
2 // Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
4
5 // This file contains a table of "standard" extensions
6
7 #if defined(__cplusplus)
8 extern "C" {
9 #endif
10
11 extern const X509V3_EXT_METHOD v3_bcons, v3_nscert, v3_key_usage, v3_ext_ku;
12 extern const X509V3_EXT_METHOD v3_info, v3_sinfo;
13 extern const X509V3_EXT_METHOD v3_ns_ia5_list[], v3_alt[], v3_skey_id,
14 v3_akey_id;
15 extern const X509V3_EXT_METHOD v3_crl_num, v3_crl_reason, v3_crl_invdate;
16 extern const X509V3_EXT_METHOD v3_delta_crl, v3_cpols, v3_crld, v3_freshest_crl;
17 extern const X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_accresp, v3_ocsp_acutoff;
18 extern const X509V3_EXT_METHOD v3_ocsp_crlid, v3_ocsp_nocheck,
19 v3_ocsp_serviceloc;
20 extern const X509V3_EXT_METHOD v3_crl_hold;
21 extern const X509V3_EXT_METHOD v3_policy_mappings, v3_policy_constraints;
22 extern const X509V3_EXT_METHOD v3_name_constraints, v3_inhibit_anyp, v3_idp;
23 extern const X509V3_EXT_METHOD v3_addr, v3_asid;
24
25 // This table will be searched using OBJ_bsearch so it *must* kept in order
26 // of the ext_nid values.
27
28 // TODO(fork): OCSP support
29 #define OPENSSL_NO_OCSP
30
31 static const X509V3_EXT_METHOD *const standard_exts[] = {
32 &v3_nscert,
33 &v3_ns_ia5_list[0],
34 &v3_ns_ia5_list[1],
35 &v3_ns_ia5_list[2],
36 &v3_ns_ia5_list[3],
37 &v3_ns_ia5_list[4],
38 &v3_ns_ia5_list[5],
39 &v3_ns_ia5_list[6],
40 &v3_skey_id,
41 &v3_key_usage,
42 &v3_alt[0],
43 &v3_alt[1],
44 &v3_bcons,
45 &v3_crl_num,
46 &v3_cpols,
47 &v3_akey_id,
48 &v3_crld,
49 &v3_ext_ku,
50 &v3_delta_crl,
51 &v3_crl_reason,
52 &v3_crl_invdate,
53 &v3_info,
54 &v3_ocsp_nonce,
55 #ifndef OPENSSL_NO_OCSP
56 &v3_ocsp_crlid,
57 &v3_ocsp_accresp,
58 &v3_ocsp_acutoff,
59 &v3_ocsp_serviceloc,
60 #endif
61 &v3_ocsp_nocheck,
62 &v3_sinfo,
63 &v3_policy_constraints,
64 #ifndef OPENSSL_NO_OCSP
65 &v3_crl_hold,
66 #endif
67 &v3_name_constraints,
68 &v3_policy_mappings,
69 &v3_inhibit_anyp,
70 &v3_idp,
71 &v3_alt[2],
72 &v3_freshest_crl,
73 };
74
75 // Number of standard extensions
76
77 #define STANDARD_EXTENSION_COUNT \
78 (sizeof(standard_exts) / sizeof(X509V3_EXT_METHOD *))
79
80 #if defined(__cplusplus)
81 } // extern C
82 #endif