tls: expose keylog event on TLSSocket
This exposes SSL_CTX_set_keylog_callback
as a keylog
event that is emitted on tls.TLSSocket
and tls.Server
. It enables easy debugging of TLS connections with software like Wireshark, see #2363 (closed).
SSL_CTX_set_keylog_callback
is only invoked when the keylog
event is actually subscribed, so this shouldn't affect performance otherwise. The implementation is pretty similar to the session
event. This is my first PR, I think I'm not forgetting anything :)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines