You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/11/11 20:46:20 UTC

[tomcat] branch 9.0.x updated: Prompted by CI failures, run unit tests with TLSv1.2 as a minimum

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 49c6af0  Prompted by CI failures, run unit tests with TLSv1.2 as a minimum
49c6af0 is described below

commit 49c6af06457aa3eea2e8677acfa0a9d3686adc7a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Nov 11 20:45:49 2021 +0000

    Prompted by CI failures, run unit tests with TLSv1.2 as a minimum
---
 test/org/apache/tomcat/util/net/TesterSupport.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/org/apache/tomcat/util/net/TesterSupport.java b/test/org/apache/tomcat/util/net/TesterSupport.java
index a259f86..b4f7cc3 100644
--- a/test/org/apache/tomcat/util/net/TesterSupport.java
+++ b/test/org/apache/tomcat/util/net/TesterSupport.java
@@ -201,9 +201,9 @@ public final class TesterSupport {
         try {
             SSLContext sc;
             if (TesterSupport.TLSV13_AVAILABLE) {
-                 sc = SSLContext.getInstance("TLSv1.3");
+                 sc = SSLContext.getInstance(Constants.SSL_PROTO_TLSv1_3);
             } else {
-                sc = SSLContext.getInstance(Constants.SSL_PROTO_TLS);
+                sc = SSLContext.getInstance(Constants.SSL_PROTO_TLSv1_2);
             }
             sc.init(TesterSupport.getUser1KeyManagers(),
                     TesterSupport.getTrustManagers(),

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org