2
0

standard_exts.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. * 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. #ifndef OPENSSL_NO_OCSP
  55. &ossl_v3_crl_hold,
  56. #endif
  57. &ossl_v3_pci,
  58. &ossl_v3_name_constraints,
  59. &ossl_v3_policy_mappings,
  60. &ossl_v3_inhibit_anyp,
  61. &ossl_v3_idp,
  62. &ossl_v3_alt[2],
  63. &ossl_v3_freshest_crl,
  64. #ifndef OPENSSL_NO_CT
  65. &ossl_v3_ct_scts[0],
  66. &ossl_v3_ct_scts[1],
  67. &ossl_v3_ct_scts[2],
  68. #endif
  69. &ossl_v3_utf8_list[0],
  70. &ossl_v3_issuer_sign_tool,
  71. &ossl_v3_tls_feature,
  72. &ossl_v3_ext_admission
  73. };
  74. /* Number of standard extensions */
  75. #define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)