aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-05-12 01:11:42 +0200
committerKim Alvefur <zash@zash.se>2021-05-12 01:11:42 +0200
commit8164b929893a089b85be15efd8c599693fef1b7b (patch)
tree10d23d90ade58caeed6633bef8358a01e4ae9992
parent654fd45546c648881773c8e4eeb19af52b8af93f (diff)
downloadprosody-8164b929893a089b85be15efd8c599693fef1b7b.tar.gz
prosody-8164b929893a089b85be15efd8c599693fef1b7b.zip
prosodyctl: Report OpenSSL version
-rwxr-xr-xprosodyctl4
1 files changed, 4 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 558d59f4..20a1e8b3 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -467,6 +467,7 @@ function commands.about(arg)
};
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 @@ function commands.about(arg)
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