diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc index 4629143d47e492..3ec212ee52b976 100644 --- a/src/crypto/crypto_cipher.cc +++ b/src/crypto/crypto_cipher.cc @@ -62,7 +62,7 @@ void GetCipherInfo(const FunctionCallbackInfo& args) { cipher = EVP_get_cipherbyname(*name); } else { int nid = args[1].As()->Value(); - cipher = EVP_get_cipherbyname(OBJ_nid2sn(nid)); + cipher = EVP_get_cipherbynid(nid); } if (cipher == nullptr)