From 7155aafbab33162dd5b12e52dabe8c0328c2bc8d 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 0a93b77bf3a..511ead5f585 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -937,7 +937,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)) {