diff options
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/hashes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c index 31b52f40..8eefcd6b 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -172,5 +172,9 @@ LUALIB_API int luaopen_util_hashes(lua_State *L) { luaL_setfuncs(L, Reg, 0); lua_pushliteral(L, "-3.14"); lua_setfield(L, -2, "version"); +#ifdef OPENSSL_VERSION + lua_pushstring(L, OpenSSL_version(OPENSSL_VERSION)); + lua_setfield(L, -2, "_LIBCRYPTO_VERSION"); +#endif return 1; } |