Software /
code /
prosody
Comparison
net/server_epoll.lua @ 10307:6a997f0ceba8
net.server_epoll: Log TLS version and cipher for all completed handshakes
The similar logging in mod_c2s and mod_s2s does not cover all
connections, like HTTPS or other Direct TLS ports.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Oct 2019 16:23:43 +0200 |
parent | 10305:2fadbf209678 |
child | 10309:2a31571efce0 |
comparison
equal
deleted
inserted
replaced
10306:c0a94419c28e | 10307:6a997f0ceba8 |
---|---|
546 self.onreadable = interface.tlshandskake; | 546 self.onreadable = interface.tlshandskake; |
547 return self:init(); | 547 return self:init(); |
548 end | 548 end |
549 local ok, err = self.conn:dohandshake(); | 549 local ok, err = self.conn:dohandshake(); |
550 if ok then | 550 if ok then |
551 self:debug("TLS handshake complete"); | 551 if self.conn.info then |
552 local info = self.conn:info(); | |
553 self:debug("TLS handshake complete (%s with %s)", info.protocol, info.cipher); | |
554 else | |
555 self:debug("TLS handshake complete"); | |
556 end | |
552 self.onwritable = nil; | 557 self.onwritable = nil; |
553 self.onreadable = nil; | 558 self.onreadable = nil; |
554 self:on("status", "ssl-handshake-complete"); | 559 self:on("status", "ssl-handshake-complete"); |
555 self:setwritetimeout(); | 560 self:setwritetimeout(); |
556 self:set(true, true); | 561 self:set(true, true); |