diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-27 23:23:25 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-27 23:23:25 +0100 |
commit | f864eaf14f4725aea640dd8020ec4809b4cae73b (patch) | |
tree | 4bb9a1bbc19dbd8ea7d7cc6571344a65a281ebef /plugins | |
parent | 09cdcfc0a16645fba2af58682352163853063224 (diff) | |
download | prosody-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.lua | 1 |
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"; |