Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1799ea3

Browse filesBrowse files
codebyteretargos
authored andcommitted
crypto: use compatible version of EVP_CIPHER_name
PR-URL: #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>
1 parent 9ba5518 commit 1799ea3
Copy full SHA for 1799ea3

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Collapse file

‎src/crypto/crypto_cipher.cc‎

Copy file name to clipboardExpand all lines: src/crypto/crypto_cipher.cc
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,14 @@ void GetCipherInfo(const FunctionCallbackInfo<Value>& args) {
145145
return;
146146
}
147147

148+
// OBJ_nid2sn(EVP_CIPHER_nid(cipher)) is used here instead of
149+
// EVP_CIPHER_name(cipher) for compatibility with BoringSSL.
148150
if (info->Set(
149151
env->context(),
150152
env->name_string(),
151-
OneByteString(env->isolate(), EVP_CIPHER_name(cipher))).IsNothing()) {
153+
OneByteString(
154+
env->isolate(),
155+
OBJ_nid2sn(EVP_CIPHER_nid(cipher)))).IsNothing()) {
152156
return;
153157
}
154158

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.