err_all_legacy.c 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * Copyright 2020-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. /* This is the C source file where we include this header directly */
  10. #include <openssl/cryptoerr_legacy.h>
  11. #ifndef OPENSSL_NO_DEPRECATED_3_0
  12. # include "crypto/err.h"
  13. # include "crypto/asn1err.h"
  14. # include "crypto/asyncerr.h"
  15. # include "crypto/bnerr.h"
  16. # include "crypto/buffererr.h"
  17. # include "crypto/bioerr.h"
  18. # include "crypto/cmserr.h"
  19. # include "crypto/comperr.h"
  20. # include "crypto/conferr.h"
  21. # include "crypto/cryptoerr.h"
  22. # include "crypto/cterr.h"
  23. # include "crypto/dherr.h"
  24. # include "crypto/dsaerr.h"
  25. # include "internal/dsoerr.h"
  26. # include "crypto/ecerr.h"
  27. # include "crypto/engineerr.h"
  28. # include "crypto/evperr.h"
  29. # include "crypto/httperr.h"
  30. # include "crypto/objectserr.h"
  31. # include "crypto/ocsperr.h"
  32. # include "crypto/pemerr.h"
  33. # include "crypto/pkcs12err.h"
  34. # include "crypto/pkcs7err.h"
  35. # include "crypto/randerr.h"
  36. # include "crypto/rsaerr.h"
  37. # include "crypto/storeerr.h"
  38. # include "crypto/tserr.h"
  39. # include "crypto/uierr.h"
  40. # include "crypto/x509err.h"
  41. # include "crypto/x509v3err.h"
  42. # ifdef OPENSSL_NO_ERR
  43. # define IMPLEMENT_LEGACY_ERR_LOAD(lib) \
  44. int ERR_load_##lib##_strings(void) \
  45. { \
  46. return 1; \
  47. }
  48. # else
  49. # define IMPLEMENT_LEGACY_ERR_LOAD(lib) \
  50. int ERR_load_##lib##_strings(void) \
  51. { \
  52. return ossl_err_load_##lib##_strings(); \
  53. }
  54. # endif
  55. IMPLEMENT_LEGACY_ERR_LOAD(ASN1)
  56. IMPLEMENT_LEGACY_ERR_LOAD(ASYNC)
  57. IMPLEMENT_LEGACY_ERR_LOAD(BIO)
  58. IMPLEMENT_LEGACY_ERR_LOAD(BN)
  59. IMPLEMENT_LEGACY_ERR_LOAD(BUF)
  60. # ifndef OPENSSL_NO_CMS
  61. IMPLEMENT_LEGACY_ERR_LOAD(CMS)
  62. # endif
  63. # ifndef OPENSSL_NO_COMP
  64. IMPLEMENT_LEGACY_ERR_LOAD(COMP)
  65. # endif
  66. IMPLEMENT_LEGACY_ERR_LOAD(CONF)
  67. IMPLEMENT_LEGACY_ERR_LOAD(CRYPTO)
  68. # ifndef OPENSSL_NO_CT
  69. IMPLEMENT_LEGACY_ERR_LOAD(CT)
  70. # endif
  71. # ifndef OPENSSL_NO_DH
  72. IMPLEMENT_LEGACY_ERR_LOAD(DH)
  73. # endif
  74. # ifndef OPENSSL_NO_DSA
  75. IMPLEMENT_LEGACY_ERR_LOAD(DSA)
  76. # endif
  77. # ifndef OPENSSL_NO_EC
  78. IMPLEMENT_LEGACY_ERR_LOAD(EC)
  79. # endif
  80. # ifndef OPENSSL_NO_ENGINE
  81. IMPLEMENT_LEGACY_ERR_LOAD(ENGINE)
  82. # endif
  83. IMPLEMENT_LEGACY_ERR_LOAD(ERR)
  84. IMPLEMENT_LEGACY_ERR_LOAD(EVP)
  85. IMPLEMENT_LEGACY_ERR_LOAD(OBJ)
  86. # ifndef OPENSSL_NO_OCSP
  87. IMPLEMENT_LEGACY_ERR_LOAD(OCSP)
  88. # endif
  89. IMPLEMENT_LEGACY_ERR_LOAD(PEM)
  90. IMPLEMENT_LEGACY_ERR_LOAD(PKCS12)
  91. IMPLEMENT_LEGACY_ERR_LOAD(PKCS7)
  92. IMPLEMENT_LEGACY_ERR_LOAD(RAND)
  93. IMPLEMENT_LEGACY_ERR_LOAD(RSA)
  94. IMPLEMENT_LEGACY_ERR_LOAD(OSSL_STORE)
  95. # ifndef OPENSSL_NO_TS
  96. IMPLEMENT_LEGACY_ERR_LOAD(TS)
  97. # endif
  98. IMPLEMENT_LEGACY_ERR_LOAD(UI)
  99. IMPLEMENT_LEGACY_ERR_LOAD(X509)
  100. IMPLEMENT_LEGACY_ERR_LOAD(X509V3)
  101. #endif /* OPENSSL_NO_DEPRECATED_3_0 */