Skip to content

Commit 6e3af4d

Browse files
nornagonBridgeAR
authored andcommitted
crypto: don't call SSL_CTX_set_ciphersuites on boringssl
PR-URL: #26365 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 4b84152 commit 6e3af4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ void SecureContext::SetCiphers(const FunctionCallbackInfo<Value>& args) {
964964
// TLSv1.3 cipher suites, so we get backwards compatible synchronous errors.
965965
const node::Utf8Value ciphers(args.GetIsolate(), args[0]);
966966
if (
967-
#ifdef TLS1_3_VERSION
967+
#if defined(TLS1_3_VERSION) && !defined(OPENSSL_IS_BORINGSSL)
968968
!SSL_CTX_set_ciphersuites(sc->ctx_.get(), "") ||
969969
#endif
970970
!SSL_CTX_set_cipher_list(sc->ctx_.get(), *ciphers)) {

0 commit comments

Comments
 (0)