mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Remove COMPAT with temporary luasec fork
The changes in the temporary fork were merged into mainline luasec ca 2013 and included in the 0.5 release in 2014.
This commit is contained in:
parent
1295efd944
commit
b16782257d
4 changed files with 0 additions and 14 deletions
|
@ -17,9 +17,6 @@ module:hook("s2s-check-certificate", function(event)
|
|||
local chain_valid, errors;
|
||||
if conn.getpeerverification then
|
||||
chain_valid, errors = conn:getpeerverification();
|
||||
elseif conn.getpeerchainvalid then -- COMPAT mw/luasec-hg
|
||||
chain_valid, errors = conn:getpeerchainvalid();
|
||||
errors = (not chain_valid) and { { errors } } or nil;
|
||||
else
|
||||
chain_valid, errors = false, { { "Chain verification not supported by this version of LuaSec" } };
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue