Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 9993:02a41315d275
Fix various spelling mistakes [codespell]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 May 2019 20:54:24 +0200 |
parent | 9738:f5aa6fdc935e |
child | 10111:0f335815244f |
comparison
equal
deleted
inserted
replaced
9992:9d6baacdd8e6 | 9993:02a41315d275 |
---|---|
246 return; | 246 return; |
247 end | 247 end |
248 local sasl_handler = usermanager_get_sasl_handler(module.host, origin) | 248 local sasl_handler = usermanager_get_sasl_handler(module.host, origin) |
249 origin.sasl_handler = sasl_handler; | 249 origin.sasl_handler = sasl_handler; |
250 if origin.encrypted then | 250 if origin.encrypted then |
251 -- check wether LuaSec has the nifty binding to the function needed for tls-unique | 251 -- check whether LuaSec has the nifty binding to the function needed for tls-unique |
252 -- FIXME: would be nice to have this check only once and not for every socket | 252 -- FIXME: would be nice to have this check only once and not for every socket |
253 if sasl_handler.add_cb_handler then | 253 if sasl_handler.add_cb_handler then |
254 local socket = origin.conn:socket(); | 254 local socket = origin.conn:socket(); |
255 if socket.getpeerfinished then | 255 if socket.getpeerfinished then |
256 sasl_handler:add_cb_handler("tls-unique", tls_unique); | 256 sasl_handler:add_cb_handler("tls-unique", tls_unique); |