Software /
code /
prosody
Comparison
util-src/hashes.c @ 11562:0becc168f4f9
util.hashes: Expose OpenSSL version
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 12 May 2021 01:11:15 +0200 |
parent | 11560:3bbb1af92514 |
child | 12559:865631ebb9f2 |
comparison
equal
deleted
inserted
replaced
11561:d2f33b8fdc96 | 11562:0becc168f4f9 |
---|---|
170 #endif | 170 #endif |
171 lua_newtable(L); | 171 lua_newtable(L); |
172 luaL_setfuncs(L, Reg, 0); | 172 luaL_setfuncs(L, Reg, 0); |
173 lua_pushliteral(L, "-3.14"); | 173 lua_pushliteral(L, "-3.14"); |
174 lua_setfield(L, -2, "version"); | 174 lua_setfield(L, -2, "version"); |
175 #ifdef OPENSSL_VERSION | |
176 lua_pushstring(L, OpenSSL_version(OPENSSL_VERSION)); | |
177 lua_setfield(L, -2, "_LIBCRYPTO_VERSION"); | |
178 #endif | |
175 return 1; | 179 return 1; |
176 } | 180 } |