diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-11-19 22:07:00 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-30 03:14:46 +0300 |
commit | c5a31992b358aa90cffd7b2de8faba28dc2c31ae (patch) | |
tree | b49883eacbabf5389d9f4cb4e0cbdb0f2718d38c /src/node_crypto.h | |
parent | ef0b65f9b03ce29db2d9b8b5a5e5deb6d731d784 (diff) |
src: use BaseObjectPtr to store SNI context
Rather than relying on a link to the JS object, store a pointer to
the C++ object directly.
PR-URL: https://github.com/nodejs/node/pull/30548
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index d2bdd40ed28..96292b42780 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -310,7 +310,7 @@ class SSLWrap { ClientHelloParser hello_parser_; v8::Global<v8::ArrayBufferView> ocsp_response_; - v8::Global<v8::Value> sni_context_; + BaseObjectPtr<SecureContext> sni_context_; friend class SecureContext; }; |