conf_err.c 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2019 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. #ifndef OPENSSL_NO_ERR
  13. static const ERR_STRING_DATA CONF_str_reasons[] = {
  14. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_ERROR_LOADING_DSO), "error loading dso"},
  15. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_LIST_CANNOT_BE_NULL),
  16. "list cannot be null"},
  17. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_CLOSE_SQUARE_BRACKET),
  18. "missing close square bracket"},
  19. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_EQUAL_SIGN),
  20. "missing equal sign"},
  21. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_INIT_FUNCTION),
  22. "missing init function"},
  23. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MODULE_INITIALIZATION_ERROR),
  24. "module initialization error"},
  25. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CLOSE_BRACE), "no close brace"},
  26. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CONF), "no conf"},
  27. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE),
  28. "no conf or environment variable"},
  29. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_SECTION), "no section"},
  30. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_SUCH_FILE), "no such file"},
  31. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_VALUE), "no value"},
  32. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NUMBER_TOO_LARGE), "number too large"},
  33. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_RECURSIVE_DIRECTORY_INCLUDE),
  34. "recursive directory include"},
  35. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_COMMAND_SECTION_EMPTY),
  36. "ssl command section empty"},
  37. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_COMMAND_SECTION_NOT_FOUND),
  38. "ssl command section not found"},
  39. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_SECTION_EMPTY), "ssl section empty"},
  40. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_SECTION_NOT_FOUND),
  41. "ssl section not found"},
  42. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_UNABLE_TO_CREATE_NEW_SECTION),
  43. "unable to create new section"},
  44. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_UNKNOWN_MODULE_NAME),
  45. "unknown module name"},
  46. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_VARIABLE_EXPANSION_TOO_LONG),
  47. "variable expansion too long"},
  48. {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_VARIABLE_HAS_NO_VALUE),
  49. "variable has no value"},
  50. {0, NULL}
  51. };
  52. #endif
  53. int ERR_load_CONF_strings(void)
  54. {
  55. #ifndef OPENSSL_NO_ERR
  56. if (ERR_reason_error_string(CONF_str_reasons[0].error) == NULL)
  57. ERR_load_strings_const(CONF_str_reasons);
  58. #endif
  59. return 1;
  60. }