Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 13480:3027c2634a44
mod_saslauth: Log when tls-exporter is NOT supported, as well as when it is
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 17 Apr 2024 16:47:38 +0100 |
parent | 13386:33e5edbd6a4a |
child | 13579:411649d03ad8 |
comparison
equal
deleted
inserted
replaced
13479:d1b7edf4e2de | 13480:3027c2634a44 |
---|---|
333 log("debug", "Channel binding 'tls-unique' undefined in context of TLS 1.3"); | 333 log("debug", "Channel binding 'tls-unique' undefined in context of TLS 1.3"); |
334 if tls_exporter(origin.conn) then | 334 if tls_exporter(origin.conn) then |
335 log("debug", "Channel binding 'tls-exporter' supported"); | 335 log("debug", "Channel binding 'tls-exporter' supported"); |
336 sasl_handler:add_cb_handler("tls-exporter", sasl_tls_exporter); | 336 sasl_handler:add_cb_handler("tls-exporter", sasl_tls_exporter); |
337 channel_bindings:add("tls-exporter"); | 337 channel_bindings:add("tls-exporter"); |
338 else | |
339 log("debug", "Channel binding 'tls-exporter' not supported"); | |
338 end | 340 end |
339 elseif origin.conn.ssl_peerfinished and origin.conn:ssl_peerfinished() then | 341 elseif origin.conn.ssl_peerfinished and origin.conn:ssl_peerfinished() then |
340 log("debug", "Channel binding 'tls-unique' supported"); | 342 log("debug", "Channel binding 'tls-unique' supported"); |
341 sasl_handler:add_cb_handler("tls-unique", tls_unique); | 343 sasl_handler:add_cb_handler("tls-unique", tls_unique); |
342 channel_bindings:add("tls-unique"); | 344 channel_bindings:add("tls-unique"); |