Skip to content

Commit

Permalink
DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS changed to unmodifiable list.
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Lehmann <github@phil.to>
  • Loading branch information
PhilLehmann committed Jan 17, 2018
1 parent 0c100f5 commit ef15fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/vertx/core/net/TCPSSLOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public abstract class TCPSSLOptions extends NetworkOptions {
*
* SSLv3 is NOT enabled due to POODLE vulnerability http://en.wikipedia.org/wiki/POODLE
*/
public static final String[] DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS = {"SSLv2Hello", "TLSv1", "TLSv1.1", "TLSv1.2"};
public static final List<String> DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS = Collections.unmodifiableList(Arrays.asList("SSLv2Hello", "TLSv1", "TLSv1.1", "TLSv1.2"));

/**
* The default TCP_FASTOPEN value = false
Expand Down Expand Up @@ -175,7 +175,7 @@ private void init() {
crlValues = new ArrayList<>();
useAlpn = DEFAULT_USE_ALPN;
sslEngineOptions = DEFAULT_SSL_ENGINE;
enabledSecureTransportProtocols = new LinkedHashSet<>(Arrays.asList(DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS));
enabledSecureTransportProtocols = new LinkedHashSet<>(DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS);
tcpFastOpen = DEFAULT_TCP_FAST_OPEN;
tcpCork = DEFAULT_TCP_CORK;
tcpQuickAck = DEFAULT_TCP_QUICKACK;
Expand Down

0 comments on commit ef15fed

Please sign in to comment.