diff options
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 @@ | |||
81 | #endif | 81 | #endif |
82 | 82 | ||
83 | #ifndef HAVE_SSL_CTX_SET_ALPN_PROTOS | 83 | #ifndef HAVE_SSL_CTX_SET_ALPN_PROTOS |
84 | #define HAVE_SSL_CTX_SET_ALPN_PROTOS (OPENSSL_VERSION_NUMBER >= 0x1000200fL) | 84 | #define HAVE_SSL_CTX_SET_ALPN_PROTOS (OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined LIBRESSL_VERSION_NUMBER) |
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | #ifndef HAVE_SSL_CTX_SET_ALPN_SELECT_CB | 87 | #ifndef HAVE_SSL_CTX_SET_ALPN_SELECT_CB |
@@ -1358,6 +1358,11 @@ int luaopen__openssl(lua_State *L) { | |||
1358 | lua_pushstring(L, SHLIB_VERSION_NUMBER); | 1358 | lua_pushstring(L, SHLIB_VERSION_NUMBER); |
1359 | lua_setfield(L, -2, "SHLIB_VERSION_NUMBER"); | 1359 | lua_setfield(L, -2, "SHLIB_VERSION_NUMBER"); |
1360 | 1360 | ||
1361 | #if defined LIBRESSL_VERSION_NUMBER | ||
1362 | auxL_pushinteger(L, LIBRESSL_VERSION_NUMBER); | ||
1363 | lua_setfield(L, -2, "LIBRESSL_VERSION_NUMBER"); | ||
1364 | #endif | ||
1365 | |||
1361 | return 1; | 1366 | return 1; |
1362 | } /* luaopen__openssl() */ | 1367 | } /* luaopen__openssl() */ |
1363 | 1368 | ||