aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-27 23:23:25 +0100
committerKim Alvefur <zash@zash.se>2019-11-27 23:23:25 +0100
commitf864eaf14f4725aea640dd8020ec4809b4cae73b (patch)
tree4bb9a1bbc19dbd8ea7d7cc6571344a65a281ebef /plugins
parent09cdcfc0a16645fba2af58682352163853063224 (diff)
downloadprosody-f864eaf14f4725aea640dd8020ec4809b4cae73b.tar.gz
prosody-f864eaf14f4725aea640dd8020ec4809b4cae73b.zip
mod_s2s_auth_certs: Save chain validation errors for later use
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s_auth_certs.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s_auth_certs.lua b/plugins/mod_s2s_auth_certs.lua
index 76e134a7..37519aa1 100644
--- a/plugins/mod_s2s_auth_certs.lua
+++ b/plugins/mod_s2s_auth_certs.lua
@@ -27,6 +27,7 @@ module:hook("s2s-check-certificate", function(event)
log("debug", "certificate error(s) at depth %d: %s", depth-1, table.concat(t, ", "))
end
session.cert_chain_status = "invalid";
+ session.cert_chain_errors = errors;
else
log("debug", "certificate chain validation result: valid");
session.cert_chain_status = "valid";