diff options
author | David Benjamin <davidben@google.com> | 2017-09-17 19:19:50 -0400 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2017-11-11 20:42:49 +1100 |
commit | afee2ed490a458709514d686978d911fe6b7810c (patch) | |
tree | 86e3d301b38919bf829dd87c40033d02452d7fed /src/node_crypto.h | |
parent | 87a066a108db1e5e93a5a4a705b2f4bcbb1dcfb2 (diff) | |
download | android-node-v8-afee2ed490a458709514d686978d911fe6b7810c.tar.gz android-node-v8-afee2ed490a458709514d686978d911fe6b7810c.tar.bz2 android-node-v8-afee2ed490a458709514d686978d911fe6b7810c.zip |
crypto: use RSA and DH accessors
Parts of this were cherry-picked from PR #8491. Note that this only
works with OpenSSL 1.0.2 or 1.1.0g or later. 1.1.0g is, as of writing,
not yet released, but the fix is on the branch. See
https://github.com/openssl/openssl/pull/4384.
PR-URL: https://github.com/nodejs/node/pull/16130
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 9fba7cda0d..c0ebfd1ead 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -707,9 +707,10 @@ class DiffieHellman : public BaseObject { private: static void GetField(const v8::FunctionCallbackInfo<v8::Value>& args, - BIGNUM* (DH::*field), const char* err_if_null); + const BIGNUM* (*get_field)(const DH*), + const char* err_if_null); static void SetKey(const v8::FunctionCallbackInfo<v8::Value>& args, - BIGNUM* (DH::*field), const char* what); + void (*set_field)(DH*, BIGNUM*), const char* what); bool VerifyContext(); bool initialised_; |