diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-10-17 20:01:15 +0300 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2018-10-20 01:40:31 +0300 |
commit | c0d86b9e6144e91fe48f29c0d7f0b61c11b49597 (patch) | |
tree | 67c0ba31529654bb553d62f1c7660a5246ec2820 /src/node_crypto.h | |
parent | 7bd2912669c8975523b6d77269d29207d3ea9769 (diff) |
crypto: remove DiffieHellman.initialised_
As pointed out by Ben Noordhuis, this internal field can be removed
since all instances are initialized when exposed to users.
PR-URL: https://github.com/nodejs/node/pull/23717
Refs: https://github.com/nodejs/node/pull/23648
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 9603fcf3b2e..6fcf737f6c4 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -614,7 +614,6 @@ class DiffieHellman : public BaseObject { DiffieHellman(Environment* env, v8::Local<v8::Object> wrap) : BaseObject(env, wrap), - initialised_(false), verifyError_(0) { MakeWeak(); } @@ -632,7 +631,6 @@ class DiffieHellman : public BaseObject { int (*set_field)(DH*, BIGNUM*), const char* what); bool VerifyContext(); - bool initialised_; int verifyError_; DHPointer dh_; }; |