diff options
Diffstat (limited to 'src/wrapped')
| -rwxr-xr-x | src/wrapped/wrappedlibcrypt.c | 24 | ||||
| -rwxr-xr-x | src/wrapped/wrappedlibcrypt_private.h | 11 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibcrypt.c b/src/wrapped/wrappedlibcrypt.c new file mode 100755 index 00000000..58b7e4e7 --- /dev/null +++ b/src/wrapped/wrappedlibcrypt.c @@ -0,0 +1,24 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include <dlfcn.h> + +#include "wrappedlibs.h" + +#include "debug.h" +#include "wrapper.h" +#include "bridge.h" +#include "librarian/library_private.h" +#include "x64emu.h" +#include "emu/x64emu_private.h" +#include "callback.h" +#include "librarian.h" +#include "box64context.h" +#include "emu/x64emu_private.h" +#include "callback.h" + +const char* libcryptName = "libcrypt.so.1"; +#define LIBNAME libcrypt + +#include "wrappedlib_init.h" diff --git a/src/wrapped/wrappedlibcrypt_private.h b/src/wrapped/wrappedlibcrypt_private.h new file mode 100755 index 00000000..4c08778f --- /dev/null +++ b/src/wrapped/wrappedlibcrypt_private.h @@ -0,0 +1,11 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error meh! +#endif + +GO(crypt, pFpp) +GOW(crypt_r, pFppp) +GO(encrypt, vFpi) +GOW(encrypt_r, vFpip) +//GOW(fcrypt, +GO(setkey, vFp) +GOW(setkey_r, vFpp) \ No newline at end of file |