diff options
author | Shelley Vohr <shelley.vohr@gmail.com> | 2021-06-02 13:20:42 +0300 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2021-06-06 22:17:14 +0300 |
commit | eb3a4487b17f08552e777318c3f6b2577eb11fd3 (patch) | |
tree | 9eb4ea1b6c04b420eb9fe9f86e05491f121c198a /src | |
parent | 1c36eefcdbdbd823f37d7006846490da67210f5a (diff) |
crypto: use EVP_get_cipherbynid directly
PR-URL: https://github.com/nodejs/node/pull/38901
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/crypto_cipher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc index 4629143d47e..3ec212ee52b 100644 --- a/src/crypto/crypto_cipher.cc +++ b/src/crypto/crypto_cipher.cc @@ -62,7 +62,7 @@ void GetCipherInfo(const FunctionCallbackInfo<Value>& args) { cipher = EVP_get_cipherbyname(*name); } else { int nid = args[1].As<Int32>()->Value(); - cipher = EVP_get_cipherbyname(OBJ_nid2sn(nid)); + cipher = EVP_get_cipherbynid(nid); } if (cipher == nullptr) |