From 989ee5f993c4d2486c25763c079b9f3163336dc9 Mon Sep 17 00:00:00 2001 From: Bruno Silvestre Date: Thu, 10 Jul 2025 12:05:16 -0300 Subject: [PATCH] Add compatibility flat to OpenSSL 1.1.1 version Avoid deprecated messages until the code is fully compliant with version 3.x --- Makefile | 2 +- luasec-1.3.2-1.rockspec | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 27fc241..af025f6 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ LUACPATH ?= /usr/lib/lua/5.1 # Comment this lines if you will link with non-internal LuaSocket's help files # and edit INCDIR and LIBDIR properly. EXTRA = luasocket -DEFS = -DWITH_LUASOCKET +DEFS = -DWITH_LUASOCKET -DOPENSSL_API_COMPAT=0x10101000L # Edit the lines below to inform new path, if necessary. # Path below points to internal LuaSocket's help files. diff --git a/luasec-1.3.2-1.rockspec b/luasec-1.3.2-1.rockspec index a6a36d7..5971f7c 100644 --- a/luasec-1.3.2-1.rockspec +++ b/luasec-1.3.2-1.rockspec @@ -46,7 +46,7 @@ build = { modules = { ssl = { defines = { - "WITH_LUASOCKET", "LUASOCKET_DEBUG", + "WITH_LUASOCKET", "LUASOCKET_DEBUG", "OPENSSL_API_COMPAT=0x10101000L" }, incdirs = { "$(OPENSSL_INCDIR)", "src/", "src/luasocket", @@ -80,7 +80,8 @@ build = { defines = { "WIN32", "NDEBUG", "_WINDOWS", "_USRDLL", "LSEC_EXPORTS", "BUFFER_DEBUG", "LSEC_API=__declspec(dllexport)", "WITH_LUASOCKET", "LUASOCKET_DEBUG", - "LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300" + "LUASEC_INET_NTOP", "WINVER=0x0501", "_WIN32_WINNT=0x0501", "NTDDI_VERSION=0x05010300", + "OPENSSL_API_COMPAT=0x10101000L" }, libdirs = { "$(OPENSSL_LIBDIR)",