1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 13:23:57 +02:00
openwrt-packages/lang/lua-openssl/patches/0030-support-OPENSSL_NO_COMP.patch
Amnon Paz b69cf8e638 lua-openssl: Introduce new package
Add a Lua wrapper library for openssl.

Add patches for:
1. Revise the makefile, so the package can be built under openwrt
2. Remove "lua_isinteger" implementation from the package's "compat"
   code in order to avoid linkage issues - An implementation already
   exists in the target's Lua package.
3. Support OPENSSL_NO_SSL3_METHOD & OPENSSL_NO_COMP

Signed-off-by: Amnon Paz <pazamnon@gmail.com>
2016-10-10 16:02:48 +03:00

21 lines
769 B
Diff

--- lua-openssl-0.6.0.old/src/ssl.c 2016-09-19 08:30:43.735075695 +0200
+++ lua-openssl-0.6.0/src/ssl.c 2016-09-19 08:48:37.393737125 +0200
@@ -1245,7 +1250,7 @@
lua_pushinteger(L, st);
return 2;
}
-#ifndef LIBRESSL_VERSION_NUMBER
+#if !defined(OPENSSL_NO_COMP) && !defined(LIBRESSL_VERSION_NUMBER)
static int openssl_ssl_current_compression(lua_State *L)
{
SSL* s = CHECK_OBJECT(1, SSL, "openssl.ssl");
@@ -1803,7 +1808,7 @@
{"getfd", openssl_ssl_getfd},
{"current_cipher", openssl_ssl_current_cipher},
-#ifndef LIBRESSL_VERSION_NUMBER
+#if !defined(OPENSSL_NO_COMP) && !defined(LIBRESSL_VERSION_NUMBER)
{"current_compression", openssl_ssl_current_compression},
#endif
{"getpeerverification", openssl_ssl_getpeerverification},