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 2020/02/05 09:38:22 UTC

[tomcat] branch 7.0.x updated: Fix failing CI tests as unlimited strength encryption is not available

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

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


The following commit(s) were added to refs/heads/7.0.x by this push:
     new 6bce898  Fix failing CI tests as unlimited strength encryption is not available
6bce898 is described below

commit 6bce89826b78843f10c3e135becc93b8202bbbce
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Feb 5 09:37:34 2020 +0000

    Fix failing CI tests as unlimited strength encryption is not available
---
 .../catalina/tribes/group/interceptors/TestEncryptInterceptor.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/org/apache/catalina/tribes/group/interceptors/TestEncryptInterceptor.java b/test/org/apache/catalina/tribes/group/interceptors/TestEncryptInterceptor.java
index c5fe3c8..8dc7a5f 100644
--- a/test/org/apache/catalina/tribes/group/interceptors/TestEncryptInterceptor.java
+++ b/test/org/apache/catalina/tribes/group/interceptors/TestEncryptInterceptor.java
@@ -23,6 +23,8 @@ import java.security.NoSuchAlgorithmException;
 import java.util.ArrayList;
 import java.util.Collection;
 
+import javax.crypto.Cipher;
+
 import org.hamcrest.core.IsEqual;
 import org.hamcrest.core.IsNot;
 
@@ -177,6 +179,7 @@ public class TestEncryptInterceptor {
 
     @Test
     public void test192BitKey() throws Exception {
+        Assume.assumeTrue(Cipher.getMaxAllowedKeyLength("AES") >= 192);
         src.setEncryptionKey(encryptionKey192);
         dest.setEncryptionKey(encryptionKey192);
         src.start(Channel.SND_TX_SEQ);
@@ -191,6 +194,7 @@ public class TestEncryptInterceptor {
 
     @Test
     public void test256BitKey() throws Exception {
+        Assume.assumeTrue(Cipher.getMaxAllowedKeyLength("AES") >= 256);
         src.setEncryptionKey(encryptionKey256);
         dest.setEncryptionKey(encryptionKey256);
         src.start(Channel.SND_TX_SEQ);


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