err_all.c 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. * Copyright 1995-2020 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. #include <stdio.h>
  10. #include "crypto/err.h"
  11. #include <openssl/asn1err.h>
  12. #include <openssl/bnerr.h>
  13. #include <openssl/ecerr.h>
  14. #include <openssl/buffererr.h>
  15. #include <openssl/bioerr.h>
  16. #include <openssl/comperr.h>
  17. #include <openssl/rsaerr.h>
  18. #include <openssl/dherr.h>
  19. #include <openssl/dsaerr.h>
  20. #include <openssl/evperr.h>
  21. #include <openssl/objectserr.h>
  22. #include <openssl/pemerr.h>
  23. #include <openssl/pkcs7err.h>
  24. #include <openssl/x509err.h>
  25. #include <openssl/x509v3err.h>
  26. #include <openssl/conferr.h>
  27. #include <openssl/pkcs12err.h>
  28. #include <openssl/randerr.h>
  29. #include "internal/dso.h"
  30. #include <openssl/engineerr.h>
  31. #include <openssl/uierr.h>
  32. #include <openssl/httperr.h>
  33. #include <openssl/ocsperr.h>
  34. #include <openssl/err.h>
  35. #include <openssl/tserr.h>
  36. #include <openssl/cmserr.h>
  37. #include <openssl/crmferr.h>
  38. #include <openssl/cmperr.h>
  39. #include <openssl/cterr.h>
  40. #include <openssl/asyncerr.h>
  41. #include <openssl/storeerr.h>
  42. #include <openssl/esserr.h>
  43. #include "internal/propertyerr.h"
  44. #include "prov/providercommonerr.h"
  45. int err_load_crypto_strings_int(void)
  46. {
  47. if (
  48. #ifndef OPENSSL_NO_ERR
  49. ERR_load_ERR_strings() == 0 || /* include error strings for SYSerr */
  50. ERR_load_BN_strings() == 0 ||
  51. # ifndef OPENSSL_NO_RSA
  52. ERR_load_RSA_strings() == 0 ||
  53. # endif
  54. # ifndef OPENSSL_NO_DH
  55. ERR_load_DH_strings() == 0 ||
  56. # endif
  57. ERR_load_EVP_strings() == 0 ||
  58. ERR_load_BUF_strings() == 0 ||
  59. ERR_load_OBJ_strings() == 0 ||
  60. ERR_load_PEM_strings() == 0 ||
  61. # ifndef OPENSSL_NO_DSA
  62. ERR_load_DSA_strings() == 0 ||
  63. # endif
  64. ERR_load_X509_strings() == 0 ||
  65. ERR_load_ASN1_strings() == 0 ||
  66. ERR_load_CONF_strings() == 0 ||
  67. ERR_load_CRYPTO_strings() == 0 ||
  68. # ifndef OPENSSL_NO_COMP
  69. ERR_load_COMP_strings() == 0 ||
  70. # endif
  71. # ifndef OPENSSL_NO_EC
  72. ERR_load_EC_strings() == 0 ||
  73. # endif
  74. /* skip ERR_load_SSL_strings() because it is not in this library */
  75. ERR_load_BIO_strings() == 0 ||
  76. ERR_load_PKCS7_strings() == 0 ||
  77. ERR_load_X509V3_strings() == 0 ||
  78. ERR_load_PKCS12_strings() == 0 ||
  79. ERR_load_RAND_strings() == 0 ||
  80. ERR_load_DSO_strings() == 0 ||
  81. # ifndef OPENSSL_NO_TS
  82. ERR_load_TS_strings() == 0 ||
  83. # endif
  84. # ifndef OPENSSL_NO_ENGINE
  85. ERR_load_ENGINE_strings() == 0 ||
  86. # endif
  87. ERR_load_HTTP_strings() == 0 ||
  88. # ifndef OPENSSL_NO_OCSP
  89. ERR_load_OCSP_strings() == 0 ||
  90. # endif
  91. ERR_load_UI_strings() == 0 ||
  92. # ifndef OPENSSL_NO_CMS
  93. ERR_load_CMS_strings() == 0 ||
  94. # endif
  95. # ifndef OPENSSL_NO_CRMF
  96. ERR_load_CRMF_strings() == 0 ||
  97. ERR_load_CMP_strings() == 0 ||
  98. # endif
  99. # ifndef OPENSSL_NO_CT
  100. ERR_load_CT_strings() == 0 ||
  101. # endif
  102. ERR_load_ESS_strings() == 0 ||
  103. ERR_load_ASYNC_strings() == 0 ||
  104. #endif
  105. ERR_load_OSSL_STORE_strings() == 0 ||
  106. ERR_load_PROP_strings() == 0 ||
  107. ERR_load_PROV_strings() == 0)
  108. return 0;
  109. return 1;
  110. }