From 4cdc3c62b25c1b36cf7584fed13f2f15e00937fb Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 25 Apr 2021 09:24:28 +0200 Subject: Added wrapeed libcrypt.so --- src/wrapped/wrappedlibcrypt.c | 24 ++++++++++++++++++++++++ src/wrapped/wrappedlibcrypt_private.h | 11 +++++++++++ 2 files changed, 35 insertions(+) create mode 100755 src/wrapped/wrappedlibcrypt.c create mode 100755 src/wrapped/wrappedlibcrypt_private.h (limited to 'src/wrapped') 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 +#include +#include +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include + +#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 -- cgit 1.4.1