diff options
author | Alba Mendez <me@alba.sh> | 2019-05-12 00:07:06 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-05-15 06:32:33 +0300 |
commit | 53bef423f31bb383212a6754228c21ca3d3231b6 (patch) | |
tree | 489bb9e43883e4bdf3dac4bdbb3f2a82e86b2db0 /src/node_crypto.h | |
parent | 10d7e01ee9618a42cb658a07d692557a03456fe5 (diff) |
tls: expose keylog event on TLSSocket
Exposes SSL_CTX_set_keylog_callback in the form of a `keylog` event
that is emitted on clients and servers. This enables easy debugging
of TLS connections with i.e. Wireshark, which is a long-requested
feature.
PR-URL: https://github.com/nodejs/node/pull/27654
Refs: https://github.com/nodejs/node/issues/2363
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 44206b58ddd..849b80f4e06 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -256,6 +256,7 @@ class SSLWrap { int* copy); #endif static int NewSessionCallback(SSL* s, SSL_SESSION* sess); + static void KeylogCallback(const SSL* s, const char* line); static void OnClientHello(void* arg, const ClientHelloParser::ClientHello& hello); |