Skip to content

Commit 0fbfc86

Browse files
committed
crypto: don't call SSL_CTX_set_ciphersuites on boringssl
1 parent 3f31c88 commit 0fbfc86

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
@@ -962,7 +962,7 @@ void SecureContext::SetCiphers(const FunctionCallbackInfo<Value>& args) {
962962
// TLSv1.3 cipher suites, so we get backwards compatible synchronous errors.
963963
const node::Utf8Value ciphers(args.GetIsolate(), args[0]);
964964
if (
965-
#ifdef TLS1_3_VERSION
965+
#if defined(TLS1_3_VERSION) && !defined(OPENSSL_IS_BORINGSSL)
966966
!SSL_CTX_set_ciphersuites(sc->ctx_.get(), "") ||
967967
#endif
968968
!SSL_CTX_set_cipher_list(sc->ctx_.get(), *ciphers)) {

0 commit comments

Comments
 (0)