Changeset

13304:874600c982bd

mod_s2s_auth_certs: Remove LuaSec compat that moved to net.server
author Kim Alvefur <zash@zash.se>
date Sat, 04 Nov 2023 17:12:01 +0100
parents 13303:05c0ac580552
children 13305:852a61c720d0
files plugins/mod_s2s_auth_certs.lua
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s_auth_certs.lua	Sat Nov 04 15:59:51 2023 +0100
+++ b/plugins/mod_s2s_auth_certs.lua	Sat Nov 04 17:12:01 2023 +0100
@@ -19,12 +19,7 @@
 		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");