1 /* 2 * Generated by util/mkerr.pl DO NOT EDIT 3 * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. 4 * 5 * Licensed under the OpenSSL license (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_functs[] = { 17 {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_BIND_FUNC, 0), "dlfcn_bind_func"}, 18 {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_LOAD, 0), "dlfcn_load"}, 19 {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_MERGER, 0), "dlfcn_merger"}, 20 {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_NAME_CONVERTER, 0), 21 "dlfcn_name_converter"}, 22 {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_UNLOAD, 0), "dlfcn_unload"}, 23 {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_BIND_FUNC, 0), "dl_bind_func"}, 24 {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_LOAD, 0), "dl_load"}, 25 {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_MERGER, 0), "dl_merger"}, 26 {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_NAME_CONVERTER, 0), "dl_name_converter"}, 27 {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_UNLOAD, 0), "dl_unload"}, 28 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_BIND_FUNC, 0), "DSO_bind_func"}, 29 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_CONVERT_FILENAME, 0), 30 "DSO_convert_filename"}, 31 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_CTRL, 0), "DSO_ctrl"}, 32 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_FREE, 0), "DSO_free"}, 33 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_GET_FILENAME, 0), "DSO_get_filename"}, 34 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_GLOBAL_LOOKUP, 0), "DSO_global_lookup"}, 35 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_LOAD, 0), "DSO_load"}, 36 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_MERGE, 0), "DSO_merge"}, 37 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_NEW_METHOD, 0), "DSO_new_method"}, 38 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_PATHBYADDR, 0), "DSO_pathbyaddr"}, 39 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_SET_FILENAME, 0), "DSO_set_filename"}, 40 {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_UP_REF, 0), "DSO_up_ref"}, 41 {ERR_PACK(ERR_LIB_DSO, DSO_F_VMS_BIND_SYM, 0), "vms_bind_sym"}, 42 {ERR_PACK(ERR_LIB_DSO, DSO_F_VMS_LOAD, 0), "vms_load"}, 43 {ERR_PACK(ERR_LIB_DSO, DSO_F_VMS_MERGER, 0), "vms_merger"}, 44 {ERR_PACK(ERR_LIB_DSO, DSO_F_VMS_UNLOAD, 0), "vms_unload"}, 45 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_BIND_FUNC, 0), "win32_bind_func"}, 46 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_GLOBALLOOKUP, 0), "win32_globallookup"}, 47 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_JOINER, 0), "win32_joiner"}, 48 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_LOAD, 0), "win32_load"}, 49 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_MERGER, 0), "win32_merger"}, 50 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_NAME_CONVERTER, 0), 51 "win32_name_converter"}, 52 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_PATHBYADDR, 0), ""}, 53 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_SPLITTER, 0), "win32_splitter"}, 54 {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_UNLOAD, 0), "win32_unload"}, 55 {0, NULL} 56 }; 57 58 static const ERR_STRING_DATA DSO_str_reasons[] = { 59 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_CTRL_FAILED), "control command failed"}, 60 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_DSO_ALREADY_LOADED), "dso already loaded"}, 61 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_EMPTY_FILE_STRUCTURE), 62 "empty file structure"}, 63 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FAILURE), "failure"}, 64 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FILENAME_TOO_BIG), "filename too big"}, 65 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FINISH_FAILED), 66 "cleanup method function failed"}, 67 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_INCORRECT_FILE_SYNTAX), 68 "incorrect file syntax"}, 69 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_LOAD_FAILED), 70 "could not load the shared library"}, 71 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NAME_TRANSLATION_FAILED), 72 "name translation failed"}, 73 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NO_FILENAME), "no filename"}, 74 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NULL_HANDLE), 75 "a null shared library handle was used"}, 76 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SET_FILENAME_FAILED), 77 "set filename failed"}, 78 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_STACK_ERROR), 79 "the meth_data stack is corrupt"}, 80 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SYM_FAILURE), 81 "could not bind to the requested symbol name"}, 82 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNLOAD_FAILED), 83 "could not unload the shared library"}, 84 {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNSUPPORTED), 85 "functionality not supported"}, 86 {0, NULL} 87 }; 88 89 #endif 90 91 int ERR_load_DSO_strings(void) 92 { 93 #ifndef OPENSSL_NO_ERR 94 if (ERR_func_error_string(DSO_str_functs[0].error) == NULL) { 95 ERR_load_strings_const(DSO_str_functs); 96 ERR_load_strings_const(DSO_str_reasons); 97 } 98 #endif 99 return 1; 100 } 101