From a52df6cafb95b1f3a4103e825eb81464501466c5 Mon Sep 17 00:00:00 2001 From: brevilo Date: Wed, 13 Jan 2021 01:54:25 +0100 Subject: [PATCH] Define OPENSSL_VERSION_1_1_1 on systems where it doesn't (yet) exist Otherwise preprocessor logic will fail and cause incompatible pointer type issues (by using wrong callback API) --- src/apps/relay/mainrelay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/relay/mainrelay.c b/src/apps/relay/mainrelay.c index 2118b60..89bdcb5 100644 --- a/src/apps/relay/mainrelay.c +++ b/src/apps/relay/mainrelay.c @@ -39,6 +39,8 @@ #if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L) #undef OPENSSL_VERSION_NUMBER #define OPENSSL_VERSION_NUMBER 0x1000107FL +#elif (!defined OPENSSL_VERSION_1_1_1) +#define OPENSSL_VERSION_1_1_1 0x10101000L #endif ////// TEMPORARY data //////////