Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2021-06-04 11:37:03 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2021-06-08 11:58:53 +0300
commit911ff342553a78f162bc30f53237a5a80c757b8c (patch)
tree713a1c0e2201ccad8a247ae653810d96bc154cf8 /src
parent1fc4d43a3255273709f5fcb51bb0c5b0407de4ac (diff)
crypto: use compatible version of EVP_CIPHER_name
PR-URL: https://github.com/nodejs/node/pull/38925 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/crypto_cipher.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc
index 198297d4edb..6abfc2cce7d 100644
--- a/src/crypto/crypto_cipher.cc
+++ b/src/crypto/crypto_cipher.cc
@@ -145,10 +145,14 @@ void GetCipherInfo(const FunctionCallbackInfo<Value>& args) {
return;
}
+ // OBJ_nid2sn(EVP_CIPHER_nid(cipher)) is used here instead of
+ // EVP_CIPHER_name(cipher) for compatibility with BoringSSL.
if (info->Set(
env->context(),
env->name_string(),
- OneByteString(env->isolate(), EVP_CIPHER_name(cipher))).IsNothing()) {
+ OneByteString(
+ env->isolate(),
+ OBJ_nid2sn(EVP_CIPHER_nid(cipher)))).IsNothing()) {
return;
}