luasec: update to 0.6.
This commit is contained in:
parent
d85eb415fd
commit
909496a9d0
2 changed files with 7 additions and 38 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,6 +1,6 @@
|
|||
# Template file for 'luasec'
|
||||
pkgname=luasec
|
||||
version=0.5.1
|
||||
version=0.6
|
||||
revision=1
|
||||
wrksrc=${pkgname}-${pkgname}-${version}
|
||||
build_style=gnu-makefile
|
||||
|
@ -11,8 +11,13 @@ maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|||
license="MIT"
|
||||
homepage="https://github.com/brunoos/luasec"
|
||||
distfiles="https://github.com/brunoos/luasec/archive/${pkgname}-${version}.tar.gz"
|
||||
checksum=6d5c5f8e0521f3194668d9a839774e079e2fd5c45b15538dc7b8cacc56719406
|
||||
checksum=cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d
|
||||
|
||||
do_build() {
|
||||
make linux CC=$CC LD=$CC INC_PATH=-I${XBPS_CROSS_BASE}/usr/include LIB_PATH=-L${XBPS_CROSS_BASE}/usr/lib
|
||||
}
|
||||
|
||||
pre_install() {
|
||||
export LUAPATH="${DESTDIR}/usr/share/lua/5.1"
|
||||
export LUACPATH="${DESTDIR}/usr/lib/lua/5.1"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue