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 | 838f903396f4ecd76e00659d1561849b1c30cc67 (patch) | |
tree | 4bb9a1bbc19dbd8ea7d7cc6571344a65a281ebef /plugins/mod_s2s_auth_certs.lua | |
parent | 3dea196a532763136bda9ebae0c3195e8862081f (diff) | |
download | prosody-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.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"; |