]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/conf/conf_err.c
Guard DECLARE_DEPRECATED against multiple includes of opensslconf.h
[thirdparty/openssl.git] / crypto / conf / conf_err.c
CommitLineData
b6cff313 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
b524b808 3 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
6d311938 4 *
b6cff313
RS
5 * Licensed under the OpenSSL license (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
d02b48c6 9 */
6d311938 10
ec577822 11#include <openssl/err.h>
52df25cf 12#include <openssl/conferr.h>
d02b48c6 13
cf1b7d96 14#ifndef OPENSSL_NO_ERR
29dc3508 15
52df25cf
RS
16static const ERR_STRING_DATA CONF_str_functs[] = {
17 {ERR_PACK(ERR_LIB_CONF, CONF_F_CONF_DUMP_FP, 0), "CONF_dump_fp"},
18 {ERR_PACK(ERR_LIB_CONF, CONF_F_CONF_LOAD, 0), "CONF_load"},
19 {ERR_PACK(ERR_LIB_CONF, CONF_F_CONF_LOAD_FP, 0), "CONF_load_fp"},
20 {ERR_PACK(ERR_LIB_CONF, CONF_F_CONF_PARSE_LIST, 0), "CONF_parse_list"},
21 {ERR_PACK(ERR_LIB_CONF, CONF_F_DEF_LOAD, 0), "def_load"},
22 {ERR_PACK(ERR_LIB_CONF, CONF_F_DEF_LOAD_BIO, 0), "def_load_bio"},
b524b808 23 {ERR_PACK(ERR_LIB_CONF, CONF_F_GET_NEXT_FILE, 0), "get_next_file"},
cdb10bae 24 {ERR_PACK(ERR_LIB_CONF, CONF_F_MODULE_ADD, 0), "module_add"},
52df25cf
RS
25 {ERR_PACK(ERR_LIB_CONF, CONF_F_MODULE_INIT, 0), "module_init"},
26 {ERR_PACK(ERR_LIB_CONF, CONF_F_MODULE_LOAD_DSO, 0), "module_load_dso"},
27 {ERR_PACK(ERR_LIB_CONF, CONF_F_MODULE_RUN, 0), "module_run"},
28 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_DUMP_BIO, 0), "NCONF_dump_bio"},
29 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_DUMP_FP, 0), "NCONF_dump_fp"},
30 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_GET_NUMBER_E, 0),
31 "NCONF_get_number_e"},
32 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_GET_SECTION, 0), "NCONF_get_section"},
33 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_GET_STRING, 0), "NCONF_get_string"},
34 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_LOAD, 0), "NCONF_load"},
35 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_LOAD_BIO, 0), "NCONF_load_bio"},
36 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_LOAD_FP, 0), "NCONF_load_fp"},
37 {ERR_PACK(ERR_LIB_CONF, CONF_F_NCONF_NEW, 0), "NCONF_new"},
b524b808 38 {ERR_PACK(ERR_LIB_CONF, CONF_F_PROCESS_INCLUDE, 0), "process_include"},
d8f031e8 39 {ERR_PACK(ERR_LIB_CONF, CONF_F_SSL_MODULE_INIT, 0), "ssl_module_init"},
52df25cf 40 {ERR_PACK(ERR_LIB_CONF, CONF_F_STR_COPY, 0), "str_copy"},
0f113f3e
MC
41 {0, NULL}
42};
d02b48c6 43
52df25cf
RS
44static const ERR_STRING_DATA CONF_str_reasons[] = {
45 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_ERROR_LOADING_DSO), "error loading dso"},
46 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_LIST_CANNOT_BE_NULL),
47 "list cannot be null"},
48 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_CLOSE_SQUARE_BRACKET),
49 "missing close square bracket"},
50 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_EQUAL_SIGN),
51 "missing equal sign"},
52 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_INIT_FUNCTION),
53 "missing init function"},
54 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MODULE_INITIALIZATION_ERROR),
55 "module initialization error"},
56 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CLOSE_BRACE), "no close brace"},
57 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CONF), "no conf"},
58 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE),
59 "no conf or environment variable"},
60 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_SECTION), "no section"},
61 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_SUCH_FILE), "no such file"},
62 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_VALUE), "no value"},
b524b808
TM
63 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_RECURSIVE_DIRECTORY_INCLUDE),
64 "recursive directory include"},
d8f031e8
MC
65 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_COMMAND_SECTION_EMPTY),
66 "ssl command section empty"},
67 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_COMMAND_SECTION_NOT_FOUND),
68 "ssl command section not found"},
69 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_SECTION_EMPTY), "ssl section empty"},
70 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_SECTION_NOT_FOUND),
71 "ssl section not found"},
52df25cf
RS
72 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_UNABLE_TO_CREATE_NEW_SECTION),
73 "unable to create new section"},
74 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_UNKNOWN_MODULE_NAME),
75 "unknown module name"},
76 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_VARIABLE_EXPANSION_TOO_LONG),
77 "variable expansion too long"},
78 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_VARIABLE_HAS_NO_VALUE),
79 "variable has no value"},
0f113f3e
MC
80 {0, NULL}
81};
d02b48c6 82
58964a49
RE
83#endif
84
69588edb 85int ERR_load_CONF_strings(void)
0f113f3e 86{
47a9d527 87#ifndef OPENSSL_NO_ERR
0f113f3e 88 if (ERR_func_error_string(CONF_str_functs[0].error) == NULL) {
52df25cf
RS
89 ERR_load_strings_const(CONF_str_functs);
90 ERR_load_strings_const(CONF_str_reasons);
0f113f3e 91 }
47a9d527 92#endif
69588edb 93 return 1;
0f113f3e 94}