diff plugins/mod_s2s_auth_certs.lua @ 10411:db2a06b9ff98

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 16 Nov 2019 16:52:31 +0100
parents 77f900bbbf25
children 6c3fccb75b38
line wrap: on
line diff
--- a/plugins/mod_s2s_auth_certs.lua	Sat Nov 16 16:45:33 2019 +0100
+++ b/plugins/mod_s2s_auth_certs.lua	Sat Nov 16 16:52:31 2019 +0100
@@ -17,9 +17,6 @@
 	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