diff plugins/mod_saslauth.lua @ 5861:c3ee62b3bdfe

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 07 Oct 2013 12:56:53 +0200
parents 87e2fafba5df
children d61026bee038
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Sun Oct 06 23:53:15 2013 +0200
+++ b/plugins/mod_saslauth.lua	Mon Oct 07 12:56:53 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