2
0

standard_exts.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright 1999-2017 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. &v3_nscert,
  15. &v3_ns_ia5_list[0],
  16. &v3_ns_ia5_list[1],
  17. &v3_ns_ia5_list[2],
  18. &v3_ns_ia5_list[3],
  19. &v3_ns_ia5_list[4],
  20. &v3_ns_ia5_list[5],
  21. &v3_ns_ia5_list[6],
  22. &v3_skey_id,
  23. &v3_key_usage,
  24. &v3_pkey_usage_period,
  25. &v3_alt[0],
  26. &v3_alt[1],
  27. &v3_bcons,
  28. &v3_crl_num,
  29. &v3_cpols,
  30. &v3_akey_id,
  31. &v3_crld,
  32. &v3_ext_ku,
  33. &v3_delta_crl,
  34. &v3_crl_reason,
  35. #ifndef OPENSSL_NO_OCSP
  36. &v3_crl_invdate,
  37. #endif
  38. &v3_sxnet,
  39. &v3_info,
  40. #ifndef OPENSSL_NO_RFC3779
  41. &v3_addr,
  42. &v3_asid,
  43. #endif
  44. #ifndef OPENSSL_NO_OCSP
  45. &v3_ocsp_nonce,
  46. &v3_ocsp_crlid,
  47. &v3_ocsp_accresp,
  48. &v3_ocsp_nocheck,
  49. &v3_ocsp_acutoff,
  50. &v3_ocsp_serviceloc,
  51. #endif
  52. &v3_sinfo,
  53. &v3_policy_constraints,
  54. #ifndef OPENSSL_NO_OCSP
  55. &v3_crl_hold,
  56. #endif
  57. &v3_pci,
  58. &v3_name_constraints,
  59. &v3_policy_mappings,
  60. &v3_inhibit_anyp,
  61. &v3_idp,
  62. &v3_alt[2],
  63. &v3_freshest_crl,
  64. #ifndef OPENSSL_NO_CT
  65. &v3_ct_scts[0],
  66. &v3_ct_scts[1],
  67. &v3_ct_scts[2],
  68. #endif
  69. &v3_tls_feature,
  70. &v3_ext_admission
  71. };
  72. /* Number of standard extensions */
  73. #define STANDARD_EXTENSION_COUNT OSSL_NELEM(standard_exts)