You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by jo...@apache.org on 2020/05/08 18:31:18 UTC
[mina] 03/04: Fix DIRMINA-1125
This is an automated email from the ASF dual-hosted git repository.
johnnyv pushed a commit to branch 2.1.X
in repository https://gitbox.apache.org/repos/asf/mina.git
commit 6810bafb481df18022388f69bfaef367b6db8fb8
Author: johnnyv <jo...@apache.org>
AuthorDate: Wed Apr 29 22:41:39 2020 -0400
Fix DIRMINA-1125
Contextually replaces TLS with TLSv1.2
---
.../src/main/java/org/apache/mina/filter/ssl/SslContextFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mina-core/src/main/java/org/apache/mina/filter/ssl/SslContextFactory.java b/mina-core/src/main/java/org/apache/mina/filter/ssl/SslContextFactory.java
index 04e3d4c..e05d3d6 100644
--- a/mina-core/src/main/java/org/apache/mina/filter/ssl/SslContextFactory.java
+++ b/mina-core/src/main/java/org/apache/mina/filter/ssl/SslContextFactory.java
@@ -36,7 +36,7 @@ import javax.net.ssl.TrustManagerFactory;
* If no properties are set the returned {@link SSLContext} will
* be equivalent to what the following creates:
* <pre>
- * SSLContext c = SSLContext.getInstance( "TLS" );
+ * SSLContext c = SSLContext.getInstance( "TLSv1.2" );
* c.init(null, null, null);
* </pre>
* <p>
@@ -52,7 +52,7 @@ public class SslContextFactory {
private String provider = null;
- private String protocol = "TLS";
+ private String protocol = "TLSv1.2";
private SecureRandom secureRandom = null;