1 /* 2 * Copyright 1999-2021 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 #ifndef OPENSSL_NO_OCSP 38 &ossl_v3_crl_invdate, 39 #endif 40 &ossl_v3_sxnet, 41 &ossl_v3_info, 42 #ifndef OPENSSL_NO_RFC3779 43 &ossl_v3_addr, 44 &ossl_v3_asid, 45 #endif 46 #ifndef OPENSSL_NO_OCSP 47 &ossl_v3_ocsp_nonce, 48 &ossl_v3_ocsp_crlid, 49 &ossl_v3_ocsp_accresp, 50 &ossl_v3_ocsp_nocheck, 51 &ossl_v3_ocsp_acutoff, 52 &ossl_v3_ocsp_serviceloc, 53 #endif 54 &ossl_v3_sinfo, 55 &ossl_v3_policy_constraints, 56 #ifndef OPENSSL_NO_OCSP 57 &ossl_v3_crl_hold, 58 #endif 59 &ossl_v3_pci, 60 &ossl_v3_name_constraints, 61 &ossl_v3_policy_mappings, 62 &ossl_v3_inhibit_anyp, 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 }; 76 77 /* Number of standard extensions */ 78 79 #define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts) 80 81