11cb0ef41Sopenharmony_ci/*
21cb0ef41Sopenharmony_ci * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
31cb0ef41Sopenharmony_ci *
41cb0ef41Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
51cb0ef41Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
61cb0ef41Sopenharmony_ci * in the file LICENSE in the source distribution or at
71cb0ef41Sopenharmony_ci * https://www.openssl.org/source/license.html
81cb0ef41Sopenharmony_ci */
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ci/*
111cb0ef41Sopenharmony_ci * This table will be searched using OBJ_bsearch so it *must* kept in order
121cb0ef41Sopenharmony_ci * of the ext_nid values.
131cb0ef41Sopenharmony_ci */
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_cistatic const X509V3_EXT_METHOD *standard_exts[] = {
161cb0ef41Sopenharmony_ci    &ossl_v3_nscert,
171cb0ef41Sopenharmony_ci    &ossl_v3_ns_ia5_list[0],
181cb0ef41Sopenharmony_ci    &ossl_v3_ns_ia5_list[1],
191cb0ef41Sopenharmony_ci    &ossl_v3_ns_ia5_list[2],
201cb0ef41Sopenharmony_ci    &ossl_v3_ns_ia5_list[3],
211cb0ef41Sopenharmony_ci    &ossl_v3_ns_ia5_list[4],
221cb0ef41Sopenharmony_ci    &ossl_v3_ns_ia5_list[5],
231cb0ef41Sopenharmony_ci    &ossl_v3_ns_ia5_list[6],
241cb0ef41Sopenharmony_ci    &ossl_v3_skey_id,
251cb0ef41Sopenharmony_ci    &ossl_v3_key_usage,
261cb0ef41Sopenharmony_ci    &ossl_v3_pkey_usage_period,
271cb0ef41Sopenharmony_ci    &ossl_v3_alt[0],
281cb0ef41Sopenharmony_ci    &ossl_v3_alt[1],
291cb0ef41Sopenharmony_ci    &ossl_v3_bcons,
301cb0ef41Sopenharmony_ci    &ossl_v3_crl_num,
311cb0ef41Sopenharmony_ci    &ossl_v3_cpols,
321cb0ef41Sopenharmony_ci    &ossl_v3_akey_id,
331cb0ef41Sopenharmony_ci    &ossl_v3_crld,
341cb0ef41Sopenharmony_ci    &ossl_v3_ext_ku,
351cb0ef41Sopenharmony_ci    &ossl_v3_delta_crl,
361cb0ef41Sopenharmony_ci    &ossl_v3_crl_reason,
371cb0ef41Sopenharmony_ci#ifndef OPENSSL_NO_OCSP
381cb0ef41Sopenharmony_ci    &ossl_v3_crl_invdate,
391cb0ef41Sopenharmony_ci#endif
401cb0ef41Sopenharmony_ci    &ossl_v3_sxnet,
411cb0ef41Sopenharmony_ci    &ossl_v3_info,
421cb0ef41Sopenharmony_ci#ifndef OPENSSL_NO_RFC3779
431cb0ef41Sopenharmony_ci    &ossl_v3_addr,
441cb0ef41Sopenharmony_ci    &ossl_v3_asid,
451cb0ef41Sopenharmony_ci#endif
461cb0ef41Sopenharmony_ci#ifndef OPENSSL_NO_OCSP
471cb0ef41Sopenharmony_ci    &ossl_v3_ocsp_nonce,
481cb0ef41Sopenharmony_ci    &ossl_v3_ocsp_crlid,
491cb0ef41Sopenharmony_ci    &ossl_v3_ocsp_accresp,
501cb0ef41Sopenharmony_ci    &ossl_v3_ocsp_nocheck,
511cb0ef41Sopenharmony_ci    &ossl_v3_ocsp_acutoff,
521cb0ef41Sopenharmony_ci    &ossl_v3_ocsp_serviceloc,
531cb0ef41Sopenharmony_ci#endif
541cb0ef41Sopenharmony_ci    &ossl_v3_sinfo,
551cb0ef41Sopenharmony_ci    &ossl_v3_policy_constraints,
561cb0ef41Sopenharmony_ci#ifndef OPENSSL_NO_OCSP
571cb0ef41Sopenharmony_ci    &ossl_v3_crl_hold,
581cb0ef41Sopenharmony_ci#endif
591cb0ef41Sopenharmony_ci    &ossl_v3_pci,
601cb0ef41Sopenharmony_ci    &ossl_v3_name_constraints,
611cb0ef41Sopenharmony_ci    &ossl_v3_policy_mappings,
621cb0ef41Sopenharmony_ci    &ossl_v3_inhibit_anyp,
631cb0ef41Sopenharmony_ci    &ossl_v3_idp,
641cb0ef41Sopenharmony_ci    &ossl_v3_alt[2],
651cb0ef41Sopenharmony_ci    &ossl_v3_freshest_crl,
661cb0ef41Sopenharmony_ci#ifndef OPENSSL_NO_CT
671cb0ef41Sopenharmony_ci    &ossl_v3_ct_scts[0],
681cb0ef41Sopenharmony_ci    &ossl_v3_ct_scts[1],
691cb0ef41Sopenharmony_ci    &ossl_v3_ct_scts[2],
701cb0ef41Sopenharmony_ci#endif
711cb0ef41Sopenharmony_ci    &ossl_v3_utf8_list[0],
721cb0ef41Sopenharmony_ci    &ossl_v3_issuer_sign_tool,
731cb0ef41Sopenharmony_ci    &ossl_v3_tls_feature,
741cb0ef41Sopenharmony_ci    &ossl_v3_ext_admission
751cb0ef41Sopenharmony_ci};
761cb0ef41Sopenharmony_ci
771cb0ef41Sopenharmony_ci/* Number of standard extensions */
781cb0ef41Sopenharmony_ci
791cb0ef41Sopenharmony_ci#define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)
801cb0ef41Sopenharmony_ci
81