Diff

plugins/mod_saslauth.lua @ 5860:87e2fafba5df

mod_saslauth: Collect data for channel binding only if we know for sure that the stream is encrypted
author Kim Alvefur <zash@zash.se>
date Mon, 07 Oct 2013 12:56:21 +0200
parent 5843:fb6573e191cf
child 6014:d61026bee038
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Mon Oct 07 12:43:00 2013 +0200
+++ b/plugins/mod_saslauth.lua	Mon Oct 07 12:56:21 2013 +0200
@@ -242,7 +242,7 @@
 			return;
 		end
 		origin.sasl_handler = usermanager_get_sasl_handler(module.host, origin);
-		if origin.secure then
+		if origin.encrypted then
 			-- check wether LuaSec has the nifty binding to the function needed for tls-unique
 			-- FIXME: would be nice to have this check only once and not for every socket
 			if origin.conn:socket().getpeerfinished then