diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc index 198297d4edbd88..6abfc2cce7da79 100644 --- a/src/crypto/crypto_cipher.cc +++ b/src/crypto/crypto_cipher.cc @@ -145,10 +145,14 @@ void GetCipherInfo(const FunctionCallbackInfo& 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; }