Skip to content

Commit 7155aaf

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 f99349d commit 7155aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/node_crypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ void SecureContext::SetCiphers(const FunctionCallbackInfo<Value>& args) {
937937
// TLSv1.3 cipher suites, so we get backwards compatible synchronous errors.
938938
const node::Utf8Value ciphers(args.GetIsolate(), args[0]);
939939
if (
940-
#ifdef TLS1_3_VERSION
940+
#if defined(TLS1_3_VERSION) && !defined(OPENSSL_IS_BORINGSSL)
941941
!SSL_CTX_set_ciphersuites(sc->ctx_.get(), "") ||
942942
#endif
943943
!SSL_CTX_set_cipher_list(sc->ctx_.get(), *ciphers)) {

0 commit comments

Comments
 (0)