2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
12 * NOTE: this file was auto generated by the mkerr.pl script: any changes
13 * made to it will be overwritten when the script next updates this file,
14 * only reason strings will be preserved.
18 #include <openssl/err.h>
19 #include "internal/dso.h"
21 /* BEGIN ERROR CODES */
22 #ifndef OPENSSL_NO_ERR
24 # define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSO,func,0)
25 # define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSO,0,reason)
27 static ERR_STRING_DATA DSO_str_functs[] = {
28 {ERR_FUNC(DSO_F_DLFCN_BIND_FUNC), "dlfcn_bind_func"},
29 {ERR_FUNC(DSO_F_DLFCN_LOAD), "dlfcn_load"},
30 {ERR_FUNC(DSO_F_DLFCN_MERGER), "dlfcn_merger"},
31 {ERR_FUNC(DSO_F_DLFCN_NAME_CONVERTER), "dlfcn_name_converter"},
32 {ERR_FUNC(DSO_F_DLFCN_UNLOAD), "dlfcn_unload"},
33 {ERR_FUNC(DSO_F_DL_BIND_FUNC), "dl_bind_func"},
34 {ERR_FUNC(DSO_F_DL_LOAD), "dl_load"},
35 {ERR_FUNC(DSO_F_DL_MERGER), "dl_merger"},
36 {ERR_FUNC(DSO_F_DL_NAME_CONVERTER), "dl_name_converter"},
37 {ERR_FUNC(DSO_F_DL_UNLOAD), "dl_unload"},
38 {ERR_FUNC(DSO_F_DSO_BIND_FUNC), "DSO_bind_func"},
39 {ERR_FUNC(DSO_F_DSO_CONVERT_FILENAME), "DSO_convert_filename"},
40 {ERR_FUNC(DSO_F_DSO_CTRL), "DSO_ctrl"},
41 {ERR_FUNC(DSO_F_DSO_FREE), "DSO_free"},
42 {ERR_FUNC(DSO_F_DSO_GET_FILENAME), "DSO_get_filename"},
43 {ERR_FUNC(DSO_F_DSO_GLOBAL_LOOKUP), "DSO_global_lookup"},
44 {ERR_FUNC(DSO_F_DSO_LOAD), "DSO_load"},
45 {ERR_FUNC(DSO_F_DSO_MERGE), "DSO_merge"},
46 {ERR_FUNC(DSO_F_DSO_NEW_METHOD), "DSO_new_method"},
47 {ERR_FUNC(DSO_F_DSO_SET_FILENAME), "DSO_set_filename"},
48 {ERR_FUNC(DSO_F_DSO_UP_REF), "DSO_up_ref"},
49 {ERR_FUNC(DSO_F_VMS_BIND_SYM), "vms_bind_sym"},
50 {ERR_FUNC(DSO_F_VMS_LOAD), "vms_load"},
51 {ERR_FUNC(DSO_F_VMS_MERGER), "vms_merger"},
52 {ERR_FUNC(DSO_F_VMS_UNLOAD), "vms_unload"},
53 {ERR_FUNC(DSO_F_WIN32_BIND_FUNC), "win32_bind_func"},
54 {ERR_FUNC(DSO_F_WIN32_GLOBALLOOKUP), "win32_globallookup"},
55 {ERR_FUNC(DSO_F_WIN32_JOINER), "win32_joiner"},
56 {ERR_FUNC(DSO_F_WIN32_LOAD), "win32_load"},
57 {ERR_FUNC(DSO_F_WIN32_MERGER), "win32_merger"},
58 {ERR_FUNC(DSO_F_WIN32_NAME_CONVERTER), "win32_name_converter"},
59 {ERR_FUNC(DSO_F_WIN32_SPLITTER), "win32_splitter"},
60 {ERR_FUNC(DSO_F_WIN32_UNLOAD), "win32_unload"},
64 static ERR_STRING_DATA DSO_str_reasons[] = {
65 {ERR_REASON(DSO_R_CTRL_FAILED), "control command failed"},
66 {ERR_REASON(DSO_R_DSO_ALREADY_LOADED), "dso already loaded"},
67 {ERR_REASON(DSO_R_EMPTY_FILE_STRUCTURE), "empty file structure"},
68 {ERR_REASON(DSO_R_FAILURE), "failure"},
69 {ERR_REASON(DSO_R_FILENAME_TOO_BIG), "filename too big"},
70 {ERR_REASON(DSO_R_FINISH_FAILED), "cleanup method function failed"},
71 {ERR_REASON(DSO_R_INCORRECT_FILE_SYNTAX), "incorrect file syntax"},
72 {ERR_REASON(DSO_R_LOAD_FAILED), "could not load the shared library"},
73 {ERR_REASON(DSO_R_NAME_TRANSLATION_FAILED), "name translation failed"},
74 {ERR_REASON(DSO_R_NO_FILENAME), "no filename"},
75 {ERR_REASON(DSO_R_NULL_HANDLE), "a null shared library handle was used"},
76 {ERR_REASON(DSO_R_SET_FILENAME_FAILED), "set filename failed"},
77 {ERR_REASON(DSO_R_STACK_ERROR), "the meth_data stack is corrupt"},
78 {ERR_REASON(DSO_R_SYM_FAILURE),
79 "could not bind to the requested symbol name"},
80 {ERR_REASON(DSO_R_UNLOAD_FAILED), "could not unload the shared library"},
81 {ERR_REASON(DSO_R_UNSUPPORTED), "functionality not supported"},
87 void ERR_load_DSO_strings(void)
89 #ifndef OPENSSL_NO_ERR
91 if (ERR_func_error_string(DSO_str_functs[0].error) == NULL) {
92 ERR_load_strings(0, DSO_str_functs);
93 ERR_load_strings(0, DSO_str_reasons);