Skip to content

Commit

Permalink
crypto: use EVP_get_cipherbynid directly
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
codebytere authored and targos committed Jun 11, 2021
1 parent 03e75fd commit 6e93c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/crypto_cipher.cc
Expand Up @@ -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)
Expand Down

0 comments on commit 6e93c17

Please sign in to comment.