diff options
author | Kim Alvefur <zash@zash.se> | 2020-11-23 21:56:26 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-11-23 21:56:26 +0100 |
commit | 09a057ed5e68f60ee4dd5c5702a0b3190beba6cb (patch) | |
tree | 6a5073b227f88cded7a57da57e1f67ad8e816f02 /plugins | |
parent | b90fc1e30c78f7320d7335e85e1aee93520f06ed (diff) | |
parent | fe88da311425cd035eba27a363921175756d7d5d (diff) | |
download | prosody-09a057ed5e68f60ee4dd5c5702a0b3190beba6cb.tar.gz prosody-09a057ed5e68f60ee4dd5c5702a0b3190beba6cb.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_saslauth.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 2a5edcb2..5a049e67 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -260,7 +260,10 @@ module:hook("stream-features", function(event) -- FIXME: would be nice to have this check only once and not for every socket if sasl_handler.add_cb_handler then local socket = origin.conn:socket(); - if socket.getpeerfinished then + local info = socket.info and socket:info(); + if info.protocol == "TLSv1.3" then + log("debug", "Channel binding 'tls-unique' undefined in context of TLS 1.3"); + elseif socket.getpeerfinished and socket:getpeerfinished() then log("debug", "Channel binding 'tls-unique' supported"); sasl_handler:add_cb_handler("tls-unique", tls_unique); else |