From 6e3af4dcff0176dd2f19470cf8d2c4a8f93187df Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Thu, 28 Feb 2019 14:10:32 -0800 Subject: [PATCH] crypto: don't call SSL_CTX_set_ciphersuites on boringssl PR-URL: https://github.com/nodejs/node/pull/26365 Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Sam Roberts Reviewed-By: Ben Noordhuis --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 3c0ee9c67a1..624079a3d4a 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -964,7 +964,7 @@ void SecureContext::SetCiphers(const FunctionCallbackInfo& args) { // TLSv1.3 cipher suites, so we get backwards compatible synchronous errors. const node::Utf8Value ciphers(args.GetIsolate(), args[0]); if ( -#ifdef TLS1_3_VERSION +#if defined(TLS1_3_VERSION) && !defined(OPENSSL_IS_BORINGSSL) !SSL_CTX_set_ciphersuites(sc->ctx_.get(), "") || #endif !SSL_CTX_set_cipher_list(sc->ctx_.get(), *ciphers)) {