about summary refs log tree commit diff stats
path: root/src/wrapped
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped')
-rwxr-xr-xsrc/wrapped/wrappedlibcrypt.c24
-rwxr-xr-xsrc/wrapped/wrappedlibcrypt_private.h11
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