crypto: don't call SSL_CTX_set_ciphersuites on boringssl

PR-URL: https://github.com/nodejs/node/pull/26365
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Jeremy Apthorp authored and Ruben Bridgewater committed 2019-03-05 01:59:12 +01:00
1 parent 4b84152e61
commit 6e3af4dcff
1 file changed
+1 -1
+1 -1
View File
@@ -964,7 +964,7 @@ void SecureContext::SetCiphers(const FunctionCallbackInfo<Value>& 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)) {