mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_s2s_auth_certs: Save chain validation errors for later use
This commit is contained in:
parent
3dea196a53
commit
838f903396
1 changed files with 1 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue