944f4de02eb5323ba1bfe0a074e034a36415ef2f
[openssl.git] / crypto / x509v3 / standard_exts.h
1 /*
2  * Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (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     &v3_nscert,
17     &v3_ns_ia5_list[0],
18     &v3_ns_ia5_list[1],
19     &v3_ns_ia5_list[2],
20     &v3_ns_ia5_list[3],
21     &v3_ns_ia5_list[4],
22     &v3_ns_ia5_list[5],
23     &v3_ns_ia5_list[6],
24     &v3_skey_id,
25     &v3_key_usage,
26     &v3_pkey_usage_period,
27     &v3_alt[0],
28     &v3_alt[1],
29     &v3_bcons,
30     &v3_crl_num,
31     &v3_cpols,
32     &v3_akey_id,
33     &v3_crld,
34     &v3_ext_ku,
35     &v3_delta_crl,
36     &v3_crl_reason,
37 #ifndef OPENSSL_NO_OCSP
38     &v3_crl_invdate,
39 #endif
40     &v3_sxnet,
41     &v3_info,
42 #ifndef OPENSSL_NO_RFC3779
43     &v3_addr,
44     &v3_asid,
45 #endif
46 #ifndef OPENSSL_NO_OCSP
47     &v3_ocsp_nonce,
48     &v3_ocsp_crlid,
49     &v3_ocsp_accresp,
50     &v3_ocsp_nocheck,
51     &v3_ocsp_acutoff,
52     &v3_ocsp_serviceloc,
53 #endif
54     &v3_sinfo,
55     &v3_policy_constraints,
56 #ifndef OPENSSL_NO_OCSP
57     &v3_crl_hold,
58 #endif
59     &v3_pci,
60     &v3_name_constraints,
61     &v3_policy_mappings,
62     &v3_inhibit_anyp,
63     &v3_idp,
64     &v3_alt[2],
65     &v3_freshest_crl,
66 #ifndef OPENSSL_NO_CT
67     &v3_ct_scts[0],
68     &v3_ct_scts[1],
69     &v3_ct_scts[2],
70 #endif
71     &v3_tls_feature,
72     &v3_ext_admission
73 };
74
75 /* Number of standard extensions */
76
77 #define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)
78