Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2018-11-09 00:40:46 +0300
committerSam Roberts <vieuxtech@gmail.com>2018-11-14 07:42:57 +0300
commitdb35fee1e1ca909f0f33940c0d9501a72baf2375 (patch)
tree789d1749dffbbd7fa28da4751edd21a314cce9f5 /src/node_crypto.h
parent98278584ee2c322655849e6d673ac1739e720b53 (diff)
tls: get the local certificate after tls handshake
Add an API to get the local certificate chosen during TLS handshake from the SSL context. Fix: https://github.com/nodejs/node/issues/24095 PR-URL: https://github.com/nodejs/node/pull/24261 Fixes: https://github.com/nodejs/node/issues/24095 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@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 0c26c1f6ff1..f85cdd32081 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -272,6 +272,7 @@ class SSLWrap {
static void GetPeerCertificate(
const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void GetCertificate(const v8::FunctionCallbackInfo<v8::Value>& args);
static void GetFinished(const v8::FunctionCallbackInfo<v8::Value>& args);
static void GetPeerFinished(const v8::FunctionCallbackInfo<v8::Value>& args);
static void GetSession(const v8::FunctionCallbackInfo<v8::Value>& args);