diff options
author | William Ahern <william@openbsd-5-6.my.domain> | 2015-04-22 20:04:13 -0700 |
---|---|---|
committer | William Ahern <william@openbsd-5-6.my.domain> | 2015-04-22 20:04:13 -0700 |
commit | cb03db5504c8b7b06326ec57f024be7639f5ac12 (patch) | |
tree | b7b21d0202f7d211d6cbddbae579418ad124dde3 /src | |
parent | 2d4edb43194e8d5b61624ae1c23b00c6a0ca0dd9 (diff) | |
download | luaossl-cb03db5504c8b7b06326ec57f024be7639f5ac12.tar.gz luaossl-cb03db5504c8b7b06326ec57f024be7639f5ac12.tar.bz2 luaossl-cb03db5504c8b7b06326ec57f024be7639f5ac12.zip |
fix build for OpenBSD 5.6 libressl
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c index 9fc67c7..99a1ec0 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -81,7 +81,7 @@ #endif #ifndef HAVE_SSL_CTX_SET_ALPN_PROTOS -#define HAVE_SSL_CTX_SET_ALPN_PROTOS (OPENSSL_VERSION_NUMBER >= 0x1000200fL) +#define HAVE_SSL_CTX_SET_ALPN_PROTOS (OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined LIBRESSL_VERSION_NUMBER) #endif #ifndef HAVE_SSL_CTX_SET_ALPN_SELECT_CB @@ -1358,6 +1358,11 @@ int luaopen__openssl(lua_State *L) { lua_pushstring(L, SHLIB_VERSION_NUMBER); lua_setfield(L, -2, "SHLIB_VERSION_NUMBER"); +#if defined LIBRESSL_VERSION_NUMBER + auxL_pushinteger(L, LIBRESSL_VERSION_NUMBER); + lua_setfield(L, -2, "LIBRESSL_VERSION_NUMBER"); +#endif + return 1; } /* luaopen__openssl() */ |