aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s_auth_certs.lua
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
commit838f903396f4ecd76e00659d1561849b1c30cc67 (patch)
tree4bb9a1bbc19dbd8ea7d7cc6571344a65a281ebef /plugins/mod_s2s_auth_certs.lua
parent3dea196a532763136bda9ebae0c3195e8862081f (diff)
downloadprosody-838f903396f4ecd76e00659d1561849b1c30cc67.tar.gz
prosody-838f903396f4ecd76e00659d1561849b1c30cc67.zip
mod_s2s_auth_certs: Save chain validation errors for later use
Diffstat (limited to 'plugins/mod_s2s_auth_certs.lua')
-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";