2016-10-28 03:42:45 +08:00
|
|
|
/*
|
2023-09-28 21:23:29 +08:00
|
|
|
* Copyright 1999-2023 The OpenSSL Project Authors. All Rights Reserved.
|
2016-10-28 03:42:45 +08:00
|
|
|
*
|
2018-12-06 21:00:54 +08:00
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-10-28 03:42:45 +08:00
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This table will be searched using OBJ_bsearch so it *must* kept in order
|
|
|
|
* of the ext_nid values.
|
|
|
|
*/
|
|
|
|
|
|
|
|
static const X509V3_EXT_METHOD *standard_exts[] = {
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_nscert,
|
|
|
|
&ossl_v3_ns_ia5_list[0],
|
|
|
|
&ossl_v3_ns_ia5_list[1],
|
|
|
|
&ossl_v3_ns_ia5_list[2],
|
|
|
|
&ossl_v3_ns_ia5_list[3],
|
|
|
|
&ossl_v3_ns_ia5_list[4],
|
|
|
|
&ossl_v3_ns_ia5_list[5],
|
|
|
|
&ossl_v3_ns_ia5_list[6],
|
|
|
|
&ossl_v3_skey_id,
|
|
|
|
&ossl_v3_key_usage,
|
|
|
|
&ossl_v3_pkey_usage_period,
|
|
|
|
&ossl_v3_alt[0],
|
|
|
|
&ossl_v3_alt[1],
|
|
|
|
&ossl_v3_bcons,
|
|
|
|
&ossl_v3_crl_num,
|
|
|
|
&ossl_v3_cpols,
|
|
|
|
&ossl_v3_akey_id,
|
|
|
|
&ossl_v3_crld,
|
|
|
|
&ossl_v3_ext_ku,
|
|
|
|
&ossl_v3_delta_crl,
|
|
|
|
&ossl_v3_crl_reason,
|
2016-10-28 03:42:45 +08:00
|
|
|
#ifndef OPENSSL_NO_OCSP
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_crl_invdate,
|
2016-10-28 03:42:45 +08:00
|
|
|
#endif
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_sxnet,
|
|
|
|
&ossl_v3_info,
|
2016-10-28 03:42:45 +08:00
|
|
|
#ifndef OPENSSL_NO_RFC3779
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_addr,
|
|
|
|
&ossl_v3_asid,
|
2016-10-28 03:42:45 +08:00
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_OCSP
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_ocsp_nonce,
|
|
|
|
&ossl_v3_ocsp_crlid,
|
|
|
|
&ossl_v3_ocsp_accresp,
|
|
|
|
&ossl_v3_ocsp_nocheck,
|
|
|
|
&ossl_v3_ocsp_acutoff,
|
|
|
|
&ossl_v3_ocsp_serviceloc,
|
2016-10-28 03:42:45 +08:00
|
|
|
#endif
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_sinfo,
|
|
|
|
&ossl_v3_policy_constraints,
|
2024-06-02 03:23:25 +08:00
|
|
|
&ossl_v3_targeting_information,
|
2023-07-01 23:56:40 +08:00
|
|
|
&ossl_v3_no_rev_avail,
|
2016-10-28 03:42:45 +08:00
|
|
|
#ifndef OPENSSL_NO_OCSP
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_crl_hold,
|
2016-10-28 03:42:45 +08:00
|
|
|
#endif
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_pci,
|
|
|
|
&ossl_v3_name_constraints,
|
|
|
|
&ossl_v3_policy_mappings,
|
|
|
|
&ossl_v3_inhibit_anyp,
|
2024-06-18 17:08:40 +08:00
|
|
|
&ossl_v3_subj_dir_attrs,
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_idp,
|
|
|
|
&ossl_v3_alt[2],
|
|
|
|
&ossl_v3_freshest_crl,
|
2016-10-28 03:42:45 +08:00
|
|
|
#ifndef OPENSSL_NO_CT
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_ct_scts[0],
|
|
|
|
&ossl_v3_ct_scts[1],
|
|
|
|
&ossl_v3_ct_scts[2],
|
2016-10-28 03:42:45 +08:00
|
|
|
#endif
|
2021-03-09 08:52:15 +08:00
|
|
|
&ossl_v3_utf8_list[0],
|
|
|
|
&ossl_v3_issuer_sign_tool,
|
|
|
|
&ossl_v3_tls_feature,
|
2023-07-01 23:56:40 +08:00
|
|
|
&ossl_v3_ext_admission,
|
2024-07-11 06:31:06 +08:00
|
|
|
&ossl_v3_battcons,
|
2024-06-18 05:40:30 +08:00
|
|
|
&ossl_v3_delegated_name_constraints,
|
2024-06-28 17:57:25 +08:00
|
|
|
&ossl_v3_user_notice,
|
2023-07-01 23:56:40 +08:00
|
|
|
&ossl_v3_soa_identifier,
|
2024-06-18 02:22:08 +08:00
|
|
|
&ossl_v3_acc_cert_policies,
|
|
|
|
&ossl_v3_acc_priv_policies,
|
2023-07-01 23:56:40 +08:00
|
|
|
&ossl_v3_indirect_issuer,
|
|
|
|
&ossl_v3_no_assertion,
|
|
|
|
&ossl_v3_single_use,
|
2024-06-18 05:40:30 +08:00
|
|
|
&ossl_v3_group_ac,
|
|
|
|
&ossl_v3_holder_name_constraints,
|
2024-06-18 17:08:40 +08:00
|
|
|
&ossl_v3_associated_info,
|
2024-06-28 04:29:49 +08:00
|
|
|
&ossl_v3_audit_identity,
|
2016-10-28 03:42:45 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Number of standard extensions */
|
|
|
|
|
|
|
|
#define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)
|
|
|
|
|