summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorAlba Mendez <me@alba.sh>2019-05-11 23:07:06 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-05-15 05:32:33 +0200
commit53bef423f31bb383212a6754228c21ca3d3231b6 (patch)
tree489bb9e43883e4bdf3dac4bdbb3f2a82e86b2db0 /src/node_crypto.h
parent10d7e01ee9618a42cb658a07d692557a03456fe5 (diff)
downloadandroid-node-v8-53bef423f31bb383212a6754228c21ca3d3231b6.tar.gz
android-node-v8-53bef423f31bb383212a6754228c21ca3d3231b6.tar.bz2
android-node-v8-53bef423f31bb383212a6754228c21ca3d3231b6.zip
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 44206b58dd..849b80f4e0 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);