]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/dso/dso_err.c
Regenerate mkerr files
[thirdparty/openssl.git] / crypto / dso / dso_err.c
CommitLineData
b6cff313 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
cbfa5b03 3 * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
8f4fac7f 4 *
b6a34e9a 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
8f4fac7f
GT
9 */
10
921de151 11#include <openssl/err.h>
52df25cf 12#include "internal/dsoerr.h"
8f4fac7f 13
cf1b7d96 14#ifndef OPENSSL_NO_ERR
29dc3508 15
52df25cf
RS
16static const ERR_STRING_DATA DSO_str_reasons[] = {
17 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_CTRL_FAILED), "control command failed"},
18 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_DSO_ALREADY_LOADED), "dso already loaded"},
19 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_EMPTY_FILE_STRUCTURE),
20 "empty file structure"},
21 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FAILURE), "failure"},
22 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FILENAME_TOO_BIG), "filename too big"},
23 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FINISH_FAILED),
24 "cleanup method function failed"},
25 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_INCORRECT_FILE_SYNTAX),
26 "incorrect file syntax"},
27 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_LOAD_FAILED),
28 "could not load the shared library"},
29 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NAME_TRANSLATION_FAILED),
30 "name translation failed"},
31 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NO_FILENAME), "no filename"},
32 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NULL_HANDLE),
33 "a null shared library handle was used"},
34 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SET_FILENAME_FAILED),
35 "set filename failed"},
36 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_STACK_ERROR),
37 "the meth_data stack is corrupt"},
38 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SYM_FAILURE),
39 "could not bind to the requested symbol name"},
40 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNLOAD_FAILED),
41 "could not unload the shared library"},
42 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNSUPPORTED),
43 "functionality not supported"},
0f113f3e
MC
44 {0, NULL}
45};
8f4fac7f
GT
46
47#endif
48
69588edb 49int ERR_load_DSO_strings(void)
0f113f3e 50{
47a9d527 51#ifndef OPENSSL_NO_ERR
cbfa5b03 52 if (ERR_func_error_string(DSO_str_reasons[0].error) == NULL)
52df25cf 53 ERR_load_strings_const(DSO_str_reasons);
47a9d527 54#endif
69588edb 55 return 1;
0f113f3e 56}