Path: blob/main/crypto/krb5/src/util/verto/module.c
34907 views
/*1* Copyright 2011 Red Hat, Inc.2*3* Permission is hereby granted, free of charge, to any person4* obtaining a copy of this software and associated documentation files5* (the "Software"), to deal in the Software without restriction,6* including without limitation the rights to use, copy, modify, merge,7* publish, distribute, sublicense, and/or sell copies of the Software,8* and to permit persons to whom the Software is furnished to do so,9* subject to the following conditions:10*11* The above copyright notice and this permission notice shall be12* included in all copies or substantial portions of the Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,15* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF16* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND17* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS18* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN19* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN20* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE21* SOFTWARE.22*/2324/* Stub implementation of module loading for MIT krb5 bundled libverto. */2526#include <string.h>2728int29module_symbol_is_present(const char *modname, const char *symbname)30{31return 0;32}3334int35module_get_filename_for_symbol(void *addr, char **filename)36{37return 0;38}3940void41module_close(void *dll)42{43}4445char *46module_load(const char *filename, const char *symbname,47int (*shouldload)(void *symb, void *misc, char **err), void *misc,48void **dll, void **symb)49{50if (dll)51*dll = NULL;52if (symb)53*symb = NULL;54return strdup("module loading disabled");55}565758