From 6ae3b156877a3cc4cb23031ed056e80b461cc773 Mon Sep 17 00:00:00 2001 From: Goetz Lindenmaier Date: Wed, 10 Apr 2024 21:53:43 +0200 Subject: [PATCH] Fix failing tests. --- test/jdk/javax/net/ssl/DTLS/InvalidRecords.java | 3 +++ test/jdk/javax/net/ssl/DTLS/NoMacInitialClientHello.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/test/jdk/javax/net/ssl/DTLS/InvalidRecords.java b/test/jdk/javax/net/ssl/DTLS/InvalidRecords.java index 304cb0695d6..53b50bd7464 100644 --- a/test/jdk/javax/net/ssl/DTLS/InvalidRecords.java +++ b/test/jdk/javax/net/ssl/DTLS/InvalidRecords.java @@ -38,6 +38,8 @@ import java.net.SocketAddress; import java.util.concurrent.atomic.AtomicBoolean; +import jdk.test.lib.security.SecurityUtils; + /** * Test that if handshake messages are changed, the handshake would fail * because of handshaking hash verification. @@ -46,6 +48,7 @@ public class InvalidRecords extends DTLSOverDatagram { private static final AtomicBoolean needInvalidRecords = new AtomicBoolean(true); public static void main(String[] args) throws Exception { + SecurityUtils.removeFromDisabledTlsAlgs("DTLSv1.0"); InvalidRecords testCase = new InvalidRecords(); testCase.runTest(testCase); diff --git a/test/jdk/javax/net/ssl/DTLS/NoMacInitialClientHello.java b/test/jdk/javax/net/ssl/DTLS/NoMacInitialClientHello.java index 2263ee2a5a6..40de51e1952 100644 --- a/test/jdk/javax/net/ssl/DTLS/NoMacInitialClientHello.java +++ b/test/jdk/javax/net/ssl/DTLS/NoMacInitialClientHello.java @@ -38,6 +38,9 @@ import java.net.DatagramPacket; import java.net.SocketAddress; +import jdk.test.lib.security.SecurityUtils; + + /** * Test that a server is able to discard invalid initial ClientHello silently. */ @@ -45,6 +48,7 @@ public class NoMacInitialClientHello extends DTLSOverDatagram { boolean needInvalidRecords = true; public static void main(String[] args) throws Exception { + SecurityUtils.removeFromDisabledTlsAlgs("DTLSv1.0"); System.setProperty("jdk.tls.useExtendedMasterSecret", "false"); NoMacInitialClientHello testCase = new NoMacInitialClientHello(); testCase.runTest(testCase);