Software /
code /
prosody
Changeset
11563:0983653cbfdf
prosodyctl: Report OpenSSL version
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 12 May 2021 01:11:42 +0200 |
parents | 11562:0becc168f4f9 |
children | 11564:60e31c9ece57 |
files | prosodyctl |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Wed May 12 01:11:15 2021 +0200 +++ b/prosodyctl Wed May 12 01:11:42 2021 +0200 @@ -467,6 +467,7 @@ }; local lunbound = dependencies.softreq"lunbound"; local lxp = dependencies.softreq"lxp"; + local hashes = dependencies.softreq"util.hashes"; for name, module in pairs(package.loaded) do if type(module) == "table" and rawget(module, "_VERSION") and name ~= "_G" and not name:match("%.") then @@ -490,6 +491,9 @@ if lxp then library_versions["libexpat"] = lxp._EXPAT_VERSION; end + if hashes then + library_versions["libcrypto"] = hashes._LIBCRYPTO_VERSION; + end for name, version in sorted_pairs(module_versions) do print(name..":"..string.rep(" ", longest_name-#name), version); end