diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-02-25 13:19:11 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-02-28 13:27:11 -0800 |
commit | 3f31c884ff112dd7c2a184d87e6ebbc75906ea7c (patch) | |
tree | 170535d5fbd616912230705bbd63eef14b95b165 /src/node_crypto_bio.cc | |
parent | 86f13d674adafb489f32d9d52925991e1b2d7cb0 (diff) | |
download | android-node-v8-3f31c884ff112dd7c2a184d87e6ebbc75906ea7c.tar.gz android-node-v8-3f31c884ff112dd7c2a184d87e6ebbc75906ea7c.tar.bz2 android-node-v8-3f31c884ff112dd7c2a184d87e6ebbc75906ea7c.zip |
src: remove cast for unsupported openssl
The cast is needed to build against OpenSSL 1.0.2, which master, 11.x,
and 10.x no longer support.
PR-URL: https://github.com/nodejs/node/pull/26305
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_crypto_bio.cc')
-rw-r--r-- | src/node_crypto_bio.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/node_crypto_bio.cc b/src/node_crypto_bio.cc index 31165b7c98..4a71338edf 100644 --- a/src/node_crypto_bio.cc +++ b/src/node_crypto_bio.cc @@ -39,9 +39,7 @@ namespace crypto { BIOPointer NodeBIO::New(Environment* env) { - // The const_cast doesn't violate const correctness. OpenSSL's usage of - // BIO_METHOD is effectively const but BIO_new() takes a non-const argument. - BIOPointer bio(BIO_new(const_cast<BIO_METHOD*>(GetMethod()))); + BIOPointer bio(BIO_new(GetMethod())); if (bio && env != nullptr) NodeBIO::FromBIO(bio.get())->env_ = env; return bio; |