standard_exts.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * Copyright 1999-2023 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. * This table will be searched using OBJ_bsearch so it *must* kept in order
  11. * of the ext_nid values.
  12. */
  13. static const X509V3_EXT_METHOD *standard_exts[] = {
  14. &ossl_v3_nscert,
  15. &ossl_v3_ns_ia5_list[0],
  16. &ossl_v3_ns_ia5_list[1],
  17. &ossl_v3_ns_ia5_list[2],
  18. &ossl_v3_ns_ia5_list[3],
  19. &ossl_v3_ns_ia5_list[4],
  20. &ossl_v3_ns_ia5_list[5],
  21. &ossl_v3_ns_ia5_list[6],
  22. &ossl_v3_skey_id,
  23. &ossl_v3_key_usage,
  24. &ossl_v3_pkey_usage_period,
  25. &ossl_v3_alt[0],
  26. &ossl_v3_alt[1],
  27. &ossl_v3_bcons,
  28. &ossl_v3_crl_num,
  29. &ossl_v3_cpols,
  30. &ossl_v3_akey_id,
  31. &ossl_v3_crld,
  32. &ossl_v3_ext_ku,
  33. &ossl_v3_delta_crl,
  34. &ossl_v3_crl_reason,
  35. #ifndef OPENSSL_NO_OCSP
  36. &ossl_v3_crl_invdate,
  37. #endif
  38. &ossl_v3_sxnet,
  39. &ossl_v3_info,
  40. #ifndef OPENSSL_NO_RFC3779
  41. &ossl_v3_addr,
  42. &ossl_v3_asid,
  43. #endif
  44. #ifndef OPENSSL_NO_OCSP
  45. &ossl_v3_ocsp_nonce,
  46. &ossl_v3_ocsp_crlid,
  47. &ossl_v3_ocsp_accresp,
  48. &ossl_v3_ocsp_nocheck,
  49. &ossl_v3_ocsp_acutoff,
  50. &ossl_v3_ocsp_serviceloc,
  51. #endif
  52. &ossl_v3_sinfo,
  53. &ossl_v3_policy_constraints,
  54. &ossl_v3_no_rev_avail,
  55. #ifndef OPENSSL_NO_OCSP
  56. &ossl_v3_crl_hold,
  57. #endif
  58. &ossl_v3_pci,
  59. &ossl_v3_name_constraints,
  60. &ossl_v3_policy_mappings,
  61. &ossl_v3_inhibit_anyp,
  62. &ossl_v3_idp,
  63. &ossl_v3_alt[2],
  64. &ossl_v3_freshest_crl,
  65. #ifndef OPENSSL_NO_CT
  66. &ossl_v3_ct_scts[0],
  67. &ossl_v3_ct_scts[1],
  68. &ossl_v3_ct_scts[2],
  69. #endif
  70. &ossl_v3_utf8_list[0],
  71. &ossl_v3_issuer_sign_tool,
  72. &ossl_v3_tls_feature,
  73. &ossl_v3_ext_admission,
  74. &ossl_v3_soa_identifier,
  75. &ossl_v3_indirect_issuer,
  76. &ossl_v3_no_assertion,
  77. &ossl_v3_single_use,
  78. &ossl_v3_group_ac
  79. };
  80. /* Number of standard extensions */
  81. #define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)