lua51-luasec: downgrade to to 0.5.1.
This reverts commit a5da8c5ce552609d2b4ab2ff978353229d2668fa. fixes #5558.
This commit is contained in:
parent
c4dff4180a
commit
f16805a5d6
36
srcpkgs/lua51-luasec/patches/libressl.patch
Normal file
36
srcpkgs/lua51-luasec/patches/libressl.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
diff --git src/ssl.c src/ssl.c
|
||||||
|
index 2fa6ede..bd8a744 100644
|
||||||
|
--- src/ssl.c
|
||||||
|
+++ src/ssl.c
|
||||||
|
@@ -395,24 +395,30 @@ static int meth_want(lua_State *L)
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+
|
||||||
|
/**
|
||||||
|
* Return the compression method used.
|
||||||
|
*/
|
||||||
|
static int meth_compression(lua_State *L)
|
||||||
|
{
|
||||||
|
+#if !defined(OPENSSL_NO_COMP)
|
||||||
|
const COMP_METHOD *comp;
|
||||||
|
+#endif
|
||||||
|
p_ssl ssl = (p_ssl)luaL_checkudata(L, 1, "SSL:Connection");
|
||||||
|
if (ssl->state != LSEC_STATE_CONNECTED) {
|
||||||
|
lua_pushnil(L);
|
||||||
|
lua_pushstring(L, "closed");
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
+#if !defined(OPENSSL_NO_COMP)
|
||||||
|
comp = SSL_get_current_compression(ssl->ssl);
|
||||||
|
if (comp)
|
||||||
|
lua_pushstring(L, SSL_COMP_get_name(comp));
|
||||||
|
else
|
||||||
|
lua_pushnil(L);
|
||||||
|
+#else
|
||||||
|
+ lua_pushnil(L);
|
||||||
|
+#endif
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,8 @@
|
|||||||
# Template file for 'lua51-luasec'
|
# Template file for 'lua51-luasec'
|
||||||
pkgname=lua51-luasec
|
pkgname=lua51-luasec
|
||||||
version=0.6
|
version=0.5.1
|
||||||
revision=1
|
revision=5
|
||||||
|
reverts="0.6_1"
|
||||||
wrksrc=${pkgname#*-}-${pkgname#*-}-${version}
|
wrksrc=${pkgname#*-}-${pkgname#*-}-${version}
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="lua51"
|
hostmakedepends="lua51"
|
||||||
@ -12,7 +13,7 @@ maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/brunoos/luasec"
|
homepage="https://github.com/brunoos/luasec"
|
||||||
distfiles="https://github.com/brunoos/luasec/archive/${pkgname#*-}-${version}.tar.gz"
|
distfiles="https://github.com/brunoos/luasec/archive/${pkgname#*-}-${version}.tar.gz"
|
||||||
checksum=cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d
|
checksum=6d5c5f8e0521f3194668d9a839774e079e2fd5c45b15538dc7b8cacc56719406
|
||||||
|
|
||||||
replaces="luasec<=0.5.1_1"
|
replaces="luasec<=0.5.1_1"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user