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 "internal/dsoerr.h"
13e1051a39Sopenharmony_ci
14e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ERR
15e1051a39Sopenharmony_ci
16e1051a39Sopenharmony_cistatic const ERR_STRING_DATA DSO_str_reasons[] = {
17e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_CTRL_FAILED), "control command failed"},
18e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_DSO_ALREADY_LOADED), "dso already loaded"},
19e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_EMPTY_FILE_STRUCTURE),
20e1051a39Sopenharmony_ci    "empty file structure"},
21e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FAILURE), "failure"},
22e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FILENAME_TOO_BIG), "filename too big"},
23e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FINISH_FAILED),
24e1051a39Sopenharmony_ci    "cleanup method function failed"},
25e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_INCORRECT_FILE_SYNTAX),
26e1051a39Sopenharmony_ci    "incorrect file syntax"},
27e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_LOAD_FAILED),
28e1051a39Sopenharmony_ci    "could not load the shared library"},
29e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NAME_TRANSLATION_FAILED),
30e1051a39Sopenharmony_ci    "name translation failed"},
31e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NO_FILENAME), "no filename"},
32e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NULL_HANDLE),
33e1051a39Sopenharmony_ci    "a null shared library handle was used"},
34e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SET_FILENAME_FAILED),
35e1051a39Sopenharmony_ci    "set filename failed"},
36e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_STACK_ERROR),
37e1051a39Sopenharmony_ci    "the meth_data stack is corrupt"},
38e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SYM_FAILURE),
39e1051a39Sopenharmony_ci    "could not bind to the requested symbol name"},
40e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNLOAD_FAILED),
41e1051a39Sopenharmony_ci    "could not unload the shared library"},
42e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNSUPPORTED),
43e1051a39Sopenharmony_ci    "functionality not supported"},
44e1051a39Sopenharmony_ci    {0, NULL}
45e1051a39Sopenharmony_ci};
46e1051a39Sopenharmony_ci
47e1051a39Sopenharmony_ci#endif
48e1051a39Sopenharmony_ci
49e1051a39Sopenharmony_ciint ossl_err_load_DSO_strings(void)
50e1051a39Sopenharmony_ci{
51e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ERR
52e1051a39Sopenharmony_ci    if (ERR_reason_error_string(DSO_str_reasons[0].error) == NULL)
53e1051a39Sopenharmony_ci        ERR_load_strings_const(DSO_str_reasons);
54e1051a39Sopenharmony_ci#endif
55e1051a39Sopenharmony_ci    return 1;
56e1051a39Sopenharmony_ci}
57