Blame crypto/dso/dso_err.c

Packit Service 084de1
/*
Packit Service 084de1
 * Generated by util/mkerr.pl DO NOT EDIT
Packit Service 084de1
 * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
Packit Service 084de1
 *
Packit Service 084de1
 * Licensed under the OpenSSL license (the "License").  You may not use
Packit Service 084de1
 * this file except in compliance with the License.  You can obtain a copy
Packit Service 084de1
 * in the file LICENSE in the source distribution or at
Packit Service 084de1
 * https://www.openssl.org/source/license.html
Packit Service 084de1
 */
Packit Service 084de1
Packit Service 084de1
#include <openssl/err.h>
Packit Service 084de1
#include "internal/dsoerr.h"
Packit Service 084de1
Packit Service 084de1
#ifndef OPENSSL_NO_ERR
Packit Service 084de1
Packit Service 084de1
static const ERR_STRING_DATA DSO_str_functs[] = {
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_BIND_FUNC, 0), "dlfcn_bind_func"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_LOAD, 0), "dlfcn_load"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_MERGER, 0), "dlfcn_merger"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_NAME_CONVERTER, 0),
Packit Service 084de1
     "dlfcn_name_converter"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DLFCN_UNLOAD, 0), "dlfcn_unload"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_BIND_FUNC, 0), "dl_bind_func"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_LOAD, 0), "dl_load"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_MERGER, 0), "dl_merger"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_NAME_CONVERTER, 0), "dl_name_converter"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DL_UNLOAD, 0), "dl_unload"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_BIND_FUNC, 0), "DSO_bind_func"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_CONVERT_FILENAME, 0),
Packit Service 084de1
     "DSO_convert_filename"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_CTRL, 0), "DSO_ctrl"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_FREE, 0), "DSO_free"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_GET_FILENAME, 0), "DSO_get_filename"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_GLOBAL_LOOKUP, 0), "DSO_global_lookup"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_LOAD, 0), "DSO_load"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_MERGE, 0), "DSO_merge"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_NEW_METHOD, 0), "DSO_new_method"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_PATHBYADDR, 0), "DSO_pathbyaddr"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_SET_FILENAME, 0), "DSO_set_filename"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_DSO_UP_REF, 0), "DSO_up_ref"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_VMS_BIND_SYM, 0), "vms_bind_sym"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_VMS_LOAD, 0), "vms_load"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_VMS_MERGER, 0), "vms_merger"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_VMS_UNLOAD, 0), "vms_unload"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_BIND_FUNC, 0), "win32_bind_func"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_GLOBALLOOKUP, 0), "win32_globallookup"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_JOINER, 0), "win32_joiner"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_LOAD, 0), "win32_load"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_MERGER, 0), "win32_merger"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_NAME_CONVERTER, 0),
Packit Service 084de1
     "win32_name_converter"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_PATHBYADDR, 0), ""},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_SPLITTER, 0), "win32_splitter"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, DSO_F_WIN32_UNLOAD, 0), "win32_unload"},
Packit Service 084de1
    {0, NULL}
Packit Service 084de1
};
Packit Service 084de1
Packit Service 084de1
static const ERR_STRING_DATA DSO_str_reasons[] = {
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_CTRL_FAILED), "control command failed"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_DSO_ALREADY_LOADED), "dso already loaded"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_EMPTY_FILE_STRUCTURE),
Packit Service 084de1
    "empty file structure"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FAILURE), "failure"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FILENAME_TOO_BIG), "filename too big"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FINISH_FAILED),
Packit Service 084de1
    "cleanup method function failed"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_INCORRECT_FILE_SYNTAX),
Packit Service 084de1
    "incorrect file syntax"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_LOAD_FAILED),
Packit Service 084de1
    "could not load the shared library"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NAME_TRANSLATION_FAILED),
Packit Service 084de1
    "name translation failed"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NO_FILENAME), "no filename"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NULL_HANDLE),
Packit Service 084de1
    "a null shared library handle was used"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SET_FILENAME_FAILED),
Packit Service 084de1
    "set filename failed"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_STACK_ERROR),
Packit Service 084de1
    "the meth_data stack is corrupt"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SYM_FAILURE),
Packit Service 084de1
    "could not bind to the requested symbol name"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNLOAD_FAILED),
Packit Service 084de1
    "could not unload the shared library"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNSUPPORTED),
Packit Service 084de1
    "functionality not supported"},
Packit Service 084de1
    {0, NULL}
Packit Service 084de1
};
Packit Service 084de1
Packit Service 084de1
#endif
Packit Service 084de1
Packit Service 084de1
int ERR_load_DSO_strings(void)
Packit Service 084de1
{
Packit Service 084de1
#ifndef OPENSSL_NO_ERR
Packit Service 084de1
    if (ERR_func_error_string(DSO_str_functs[0].error) == NULL) {
Packit Service 084de1
        ERR_load_strings_const(DSO_str_functs);
Packit Service 084de1
        ERR_load_strings_const(DSO_str_reasons);
Packit Service 084de1
    }
Packit Service 084de1
#endif
Packit Service 084de1
    return 1;
Packit Service 084de1
}