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