| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9ba5518 commit 1799ea3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -145,10 +145,14 @@ void GetCipherInfo(const FunctionCallbackInfo<Value>& args) { | |||
| 145 | 145 | return; | |
| 146 | 146 | } | |
| 147 | 147 | ||
| 148 | + // OBJ_nid2sn(EVP_CIPHER_nid(cipher)) is used here instead of | ||
| 149 | + // EVP_CIPHER_name(cipher) for compatibility with BoringSSL. | ||
| 148 | 150 | if (info->Set( | |
| 149 | 151 | env->context(), | |
| 150 | 152 | 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()) { | ||
| 152 | 156 | return; | |
| 153 | 157 | } | |
| 154 | 158 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments