We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba5518 commit 1799ea3Copy full SHA for 1799ea3
src/crypto/crypto_cipher.cc
@@ -145,10 +145,14 @@ void GetCipherInfo(const FunctionCallbackInfo<Value>& args) {
145
return;
146
}
147
148
+ // OBJ_nid2sn(EVP_CIPHER_nid(cipher)) is used here instead of
149
+ // EVP_CIPHER_name(cipher) for compatibility with BoringSSL.
150
if (info->Set(
151
env->context(),
152
env->name_string(),
- OneByteString(env->isolate(), EVP_CIPHER_name(cipher))).IsNothing()) {
153
+ OneByteString(
154
+ env->isolate(),
155
+ OBJ_nid2sn(EVP_CIPHER_nid(cipher)))).IsNothing()) {
156
157
158
0 commit comments