This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 7460b69a24 Add OpenSSL cipher operator tests - PR #1063 by sainadh777
7460b69a24 is described below
commit 7460b69a24c0541a8e10c2a0ecff9222defeb320
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Oct 2 18:37:29 2026 +0100
Add OpenSSL cipher operator tests - PR #1063 by sainadh777
---
.../TestOpenSSLCipherConfigurationParser.java | 37 +++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git
a/test/org/apache/tomcat/util/net/openssl/ciphers/TestOpenSSLCipherConfigurationParser.java
b/test/org/apache/tomcat/util/net/openssl/ciphers/TestOpenSSLCipherConfigurationParser.java
index cd038cfe93..2f0be3e0fe 100644
---
a/test/org/apache/tomcat/util/net/openssl/ciphers/TestOpenSSLCipherConfigurationParser.java
+++
b/test/org/apache/tomcat/util/net/openssl/ciphers/TestOpenSSLCipherConfigurationParser.java
@@ -440,7 +440,42 @@ public class TestOpenSSLCipherConfigurationParser {
}
- // TODO: Add tests for the individual operators
+ @Test
+ public void testOperatorExclude() throws Exception {
+ testSpecification("AES128:!SHA256:SHA256");
+ }
+
+
+ @Test
+ public void testOperatorDelete() throws Exception {
+ testSpecification("AES128:-SHA256:SHA256");
+ }
+
+
+ @Test
+ public void testOperatorMoveToEnd() throws Exception {
+ testSpecification("AES128:AES256:+AES128");
+ }
+
+
+ @Test
+ public void testOperatorIntersection() throws Exception {
+ testSpecification("AES128+SHA256");
+ }
+
+
+ @Test
+ public void testOperatorStrengthSort() throws Exception {
+ testSpecification("AES128:AES256:@STRENGTH");
+ }
+
+
+ @Test
+ public void testSeparators() throws Exception {
+ testSpecification("AES128:AES256");
+ testSpecification("AES128,AES256");
+ testSpecification("AES128 AES256");
+ }
@Test
public void testSpecification01() throws Exception {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]