2
0

conf_err.c 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License 2.0 (the "License"). You may not use
  6. * this file except in compliance with the License. You can obtain a copy
  7. * in the file LICENSE in the source distribution or at
  8. * https://www.openssl.org/source/license.html
  9. */
  10. #include <openssl/err.h>
  11. #include <openssl/conferr.h>
  12. #include "crypto/conferr.h"
  13. #ifndef OPENSSL_NO_ERR
  14. static const ERR_STRING_DATA CONF_str_reasons[] = {
  15. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_ERROR_LOADING_DSO), "error loading dso"},
  16. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_INVALID_PRAGMA), "invalid pragma"},
  17. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_LIST_CANNOT_BE_NULL),
  18. "list cannot be null"},
  19. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MANDATORY_BRACES_IN_VARIABLE_EXPANSION),
  20. "mandatory braces in variable expansion"},
  21. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_CLOSE_SQUARE_BRACKET),
  22. "missing close square bracket"},
  23. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_EQUAL_SIGN),
  24. "missing equal sign"},
  25. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_INIT_FUNCTION),
  26. "missing init function"},
  27. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MODULE_INITIALIZATION_ERROR),
  28. "module initialization error"},
  29. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CLOSE_BRACE), "no close brace"},
  30. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CONF), "no conf"},
  31. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE),
  32. "no conf or environment variable"},
  33. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_SECTION), "no section"},
  34. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_SUCH_FILE), "no such file"},
  35. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_VALUE), "no value"},
  36. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NUMBER_TOO_LARGE), "number too large"},
  37. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_OPENSSL_CONF_REFERENCES_MISSING_SECTION),
  38. "openssl conf references missing section"},
  39. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_RECURSIVE_DIRECTORY_INCLUDE),
  40. "recursive directory include"},
  41. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_RELATIVE_PATH), "relative path"},
  42. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_COMMAND_SECTION_EMPTY),
  43. "ssl command section empty"},
  44. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_COMMAND_SECTION_NOT_FOUND),
  45. "ssl command section not found"},
  46. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_SECTION_EMPTY), "ssl section empty"},
  47. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_SECTION_NOT_FOUND),
  48. "ssl section not found"},
  49. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_UNABLE_TO_CREATE_NEW_SECTION),
  50. "unable to create new section"},
  51. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_UNKNOWN_MODULE_NAME),
  52. "unknown module name"},
  53. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_VARIABLE_EXPANSION_TOO_LONG),
  54. "variable expansion too long"},
  55. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_VARIABLE_HAS_NO_VALUE),
  56. "variable has no value"},
  57. {0, NULL}
  58. };
  59. #endif
  60. int ossl_err_load_CONF_strings(void)
  61. {
  62. #ifndef OPENSSL_NO_ERR
  63. if (ERR_reason_error_string(CONF_str_reasons[0].error) == NULL)
  64. ERR_load_strings_const(CONF_str_reasons);
  65. #endif
  66. return 1;
  67. }