]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/conf/conf_err.c
ERR: Rebuild all generated error headers and source files
[thirdparty/openssl.git] / crypto / conf / conf_err.c
CommitLineData
b6cff313 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
33b4f731 3 * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
6d311938 4 *
2044d382 5 * Licensed under the Apache License 2.0 (the "License"). You may not use
b6cff313
RS
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>
14a6c6a4 13#include "crypto/conferr.h"
d02b48c6 14
cf1b7d96 15#ifndef OPENSSL_NO_ERR
29dc3508 16
52df25cf
RS
17static const ERR_STRING_DATA CONF_str_reasons[] = {
18 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_ERROR_LOADING_DSO), "error loading dso"},
0255c174 19 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_INVALID_PRAGMA), "invalid pragma"},
52df25cf
RS
20 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_LIST_CANNOT_BE_NULL),
21 "list cannot be null"},
0255c174
RL
22 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MANDATORY_BRACES_IN_VARIABLE_EXPANSION),
23 "mandatory braces in variable expansion"},
52df25cf
RS
24 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_CLOSE_SQUARE_BRACKET),
25 "missing close square bracket"},
26 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_EQUAL_SIGN),
27 "missing equal sign"},
28 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MISSING_INIT_FUNCTION),
29 "missing init function"},
30 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_MODULE_INITIALIZATION_ERROR),
31 "module initialization error"},
32 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CLOSE_BRACE), "no close brace"},
33 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CONF), "no conf"},
34 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE),
35 "no conf or environment variable"},
36 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_SECTION), "no section"},
37 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_SUCH_FILE), "no such file"},
38 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NO_VALUE), "no value"},
c9ecb131 39 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_NUMBER_TOO_LARGE), "number too large"},
33b4f731
P
40 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_OPENSSL_CONF_REFERENCES_MISSING_SECTION),
41 "openssl conf references missing section"},
b524b808
TM
42 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_RECURSIVE_DIRECTORY_INCLUDE),
43 "recursive directory include"},
d8f031e8
MC
44 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_COMMAND_SECTION_EMPTY),
45 "ssl command section empty"},
46 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_COMMAND_SECTION_NOT_FOUND),
47 "ssl command section not found"},
48 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_SECTION_EMPTY), "ssl section empty"},
49 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_SSL_SECTION_NOT_FOUND),
50 "ssl section not found"},
52df25cf
RS
51 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_UNABLE_TO_CREATE_NEW_SECTION),
52 "unable to create new section"},
53 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_UNKNOWN_MODULE_NAME),
54 "unknown module name"},
55 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_VARIABLE_EXPANSION_TOO_LONG),
56 "variable expansion too long"},
57 {ERR_PACK(ERR_LIB_CONF, 0, CONF_R_VARIABLE_HAS_NO_VALUE),
58 "variable has no value"},
0f113f3e
MC
59 {0, NULL}
60};
d02b48c6 61
58964a49
RE
62#endif
63
14a6c6a4 64int err_load_CONF_strings_int(void)
0f113f3e 65{
47a9d527 66#ifndef OPENSSL_NO_ERR
0cd1b144 67 if (ERR_reason_error_string(CONF_str_reasons[0].error) == NULL)
52df25cf 68 ERR_load_strings_const(CONF_str_reasons);
47a9d527 69#endif
69588edb 70 return 1;
0f113f3e 71}