1 /*
2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4 *
5 * Licensed under the Apache License 2.0 (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
9 */
10
11 #include <openssl/err.h>
12 #include "internal/dsoerr.h"
13
14 #ifndef OPENSSL_NO_ERR
15
16 static 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" },
44 { 0, NULL }
45 };
46
47 #endif
48
ossl_err_load_DSO_strings(void)49 int ossl_err_load_DSO_strings(void)
50 {
51 #ifndef OPENSSL_NO_ERR
52 if (ERR_reason_error_string(DSO_str_reasons[0].error) == NULL)
53 ERR_load_strings_const(DSO_str_reasons);
54 #endif
55 return 1;
56 }
57