about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xCMakeLists.txt1
-rwxr-xr-xsrc/library_list.h2
-rwxr-xr-xsrc/wrapped/wrappedlibcrypt.c24
-rwxr-xr-xsrc/wrapped/wrappedlibcrypt_private.h11
4 files changed, 37 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2aa96c8b..45402436 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -198,6 +198,7 @@ set(WRAPPEDS
     "${BOX64_ROOT}/src/wrapped/wrappedldlinux.c"
     "${BOX64_ROOT}/src/wrapped/wrappedlibasound.c"
     "${BOX64_ROOT}/src/wrapped/wrappedlibc.c"
+    "${BOX64_ROOT}/src/wrapped/wrappedlibcrypt.c"
     "${BOX64_ROOT}/src/wrapped/wrappedlibcups.c"
     "${BOX64_ROOT}/src/wrapped/wrappedlibdl.c"
     "${BOX64_ROOT}/src/wrapped/wrappedlibgl.c"
diff --git a/src/library_list.h b/src/library_list.h
index 788947ca..4492a2ee 100755
--- a/src/library_list.h
+++ b/src/library_list.h
@@ -85,7 +85,7 @@ GO("libdbus-1.so.3", dbus)
 //GO("libdrm.so.2", libdrm)
 GO("libcrypto.so.1", crypto)
 GO("libssl.so.1", libssl)
-//GO("libcrypt.so.1", libcrypt)
+GO("libcrypt.so.1", libcrypt)
 GO("libutil.so.1", util)
 GO("libuuid.so.1", libuuid)
 GO("libresolv.so.2", libresolv)
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