mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_s2s_auth_certs: Remove LuaSec compat that moved to net.server
This commit is contained in:
parent
7b6a2f64e2
commit
ae884642d5
1 changed files with 1 additions and 6 deletions
|
@ -19,12 +19,7 @@ module:hook("s2s-check-certificate", function(event)
|
|||
return;
|
||||
end
|
||||
|
||||
local chain_valid, errors;
|
||||
if conn.ssl_peerverification then
|
||||
chain_valid, errors = conn:ssl_peerverification();
|
||||
else
|
||||
chain_valid, errors = false, { { "Chain verification not supported by this version of LuaSec" } };
|
||||
end
|
||||
local chain_valid, errors = conn:ssl_peerverification();
|
||||
-- Is there any interest in printing out all/the number of errors here?
|
||||
if not chain_valid then
|
||||
log("debug", "certificate chain validation result: invalid");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue