You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by pe...@apache.org on 2021/12/22 11:53:15 UTC
[pulsar] 06/07: Fix invalid setting of enabled ciphers to fix warning from BoringSSL (#13435)
This is an automated email from the ASF dual-hosted git repository.
penghui pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 655fe3f339c2830769103f1c3fcc3ba09cf1f1a0
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Tue Dec 21 23:20:23 2021 +0200
Fix invalid setting of enabled ciphers to fix warning from BoringSSL (#13435)
(cherry picked from commit 601e141ac1cedbea236b6c9d2d46550454eee669)
---
.../org/apache/pulsar/common/util/keystoretls/KeyStoreSSLContext.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/pulsar-common/src/main/java/org/apache/pulsar/common/util/keystoretls/KeyStoreSSLContext.java b/pulsar-common/src/main/java/org/apache/pulsar/common/util/keystoretls/KeyStoreSSLContext.java
index 3825d80..987a32b 100644
--- a/pulsar-common/src/main/java/org/apache/pulsar/common/util/keystoretls/KeyStoreSSLContext.java
+++ b/pulsar-common/src/main/java/org/apache/pulsar/common/util/keystoretls/KeyStoreSSLContext.java
@@ -185,9 +185,7 @@ public class KeyStoreSSLContext {
private SSLEngine configureSSLEngine(SSLEngine sslEngine) {
sslEngine.setEnabledProtocols(protocols.toArray(new String[0]));
- if (this.ciphers == null) {
- sslEngine.setEnabledCipherSuites(sslEngine.getSupportedCipherSuites());
- } else {
+ if (this.ciphers != null) {
sslEngine.setEnabledCipherSuites(this.ciphers.toArray(new String[0]));
}