lua51-luasec: update to 0.6.
This commit is contained in:
parent
56b94eb458
commit
a5da8c5ce5
2 changed files with 3 additions and 39 deletions
|
@ -1,36 +0,0 @@
|
||||||
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,7 @@
|
||||||
# Template file for 'lua51-luasec'
|
# Template file for 'lua51-luasec'
|
||||||
pkgname=lua51-luasec
|
pkgname=lua51-luasec
|
||||||
version=0.5.1
|
version=0.6
|
||||||
revision=4
|
revision=1
|
||||||
wrksrc=${pkgname#*-}-${pkgname#*-}-${version}
|
wrksrc=${pkgname#*-}-${pkgname#*-}-${version}
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="lua51"
|
hostmakedepends="lua51"
|
||||||
|
@ -12,7 +12,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=6d5c5f8e0521f3194668d9a839774e079e2fd5c45b15538dc7b8cacc56719406
|
checksum=cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d
|
||||||
|
|
||||||
replaces="luasec<=0.5.1_1"
|
replaces="luasec<=0.5.1_1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue