Software /
code /
prosody
Changeset
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 |
parents | 5859:e327f2d4e09f |
children | 5861:c3ee62b3bdfe 5862:7e83c8448cd6 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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