From b527ebbf5be0949df3b9dcf0806109acc8119476 Mon Sep 17 00:00:00 2001 From: rajdakin Date: Sat, 10 Feb 2024 15:06:08 +0100 Subject: Wrapped libraries refactor (#1257) * [MISC] Removed a warning caused by tab/space mismatch * [WRAPPED] Factored out `getMy` and `freeMy` calls * [WRAPPED] Small cleanup of the init header * [WRAPPED] Factored out `SETALT` * [WRAPPED] Factored out needed libs --- src/wrapped/wrappedlibssl3.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/wrapped/wrappedlibssl3.c') diff --git a/src/wrapped/wrappedlibssl3.c b/src/wrapped/wrappedlibssl3.c index 0460651c..4c75d921 100644 --- a/src/wrapped/wrappedlibssl3.c +++ b/src/wrapped/wrappedlibssl3.c @@ -437,12 +437,8 @@ EXPORT void my3_SSL_set_msg_callback(x64emu_t* emu, void* ctx, void* cb) my->SSL_set_msg_callback(ctx, find_msg_cb_Fct(cb)); } -#define CUSTOM_INIT \ - SETALT(my3_); \ - getMy(lib); \ - setNeededLibs(lib, 2, "libcrypto.so.3", "libpthread.so.0"); +#define ALTMY my3_ -#define CUSTOM_FINI \ - freeMy(); +#define NEEDED_LIBS "libcrypto.so.3", "libpthread.so.0" #include "wrappedlib_init.h" -- cgit 1.4.1