Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
GoeLin committed Apr 10, 2024
1 parent f39e847 commit 6ae3b15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/jdk/javax/net/ssl/DTLS/InvalidRecords.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);

Expand Down
4 changes: 4 additions & 0 deletions test/jdk/javax/net/ssl/DTLS/NoMacInitialClientHello.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@
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.
*/
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);
Expand Down

0 comments on commit 6ae3b15

Please sign in to comment.