Is this correct?
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/luasec/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile 14 Apr 2014 01:20:10 -0000 1.14
+++ Makefile 12 Jul 2014 15:01:01 -0000
@@ -4,7 +4,7 @@ SHARED_ONLY= Yes
COMMENT= lua binding to OpenSSL to provide TLS/SSL communication
VERSION= 0.5
-REVISION= 0
+REVISION= 1
DISTNAME= luasec-${VERSION}
CATEGORIES= security
MASTER_SITES= https://github.com/brunoos/luasec/archive/
Index: patches/patch-src_ssl_c
===================================================================
RCS file: patches/patch-src_ssl_c
diff -N patches/patch-src_ssl_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_ssl_c 12 Jul 2014 15:01:01 -0000
@@ -0,0 +1,30 @@
+$OpenBSD$
+--- src/ssl.c.orig Wed Jan 29 21:43:33 2014
++++ src/ssl.c Sat Jul 12 16:59:44 2014
+@@ -401,8 +401,9 @@ static int meth_want(lua_State *L)
+ */
+ static int meth_compression(lua_State *L)
+ {
+- const COMP_METHOD *comp;
+ p_ssl ssl = (p_ssl)luaL_checkudata(L, 1, "SSL:Connection");
++#ifndef OPENSSL_NO_COMP
++ const COMP_METHOD *comp;
+ if (ssl->state != LSEC_STATE_CONNECTED) {
+ lua_pushnil(L);
+ lua_pushstring(L, "closed");
+@@ -414,6 +415,15 @@ static int meth_compression(lua_State *L)
+ else
+ lua_pushnil(L);
+ return 1;
++#else
++ lua_pushnil(L);
++ if (ssl->state != LSEC_STATE_CONNECTED) {
++ lua_pushstring(L, "closed");
++ return 2;
++ } else {
++ return 1;
++ }
++#endif
+ }
+
+ /**