Changeset

11214:5fb6563eee1e

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 23 Nov 2020 21:56:26 +0100
parents 11211:1151140fc757 (current diff) 11213:992c4498a1e3 (diff)
children 11215:9ce0a899ff07
files plugins/mod_saslauth.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Mon Nov 23 20:39:47 2020 +0000
+++ b/plugins/mod_saslauth.lua	Mon Nov 23 21:56:26 2020 +0100
@@ -260,7 +260,10 @@
 			-- 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