Skip to content

Commit

Permalink
Issue #2711 - TLS 1.3 compliance.
Browse files Browse the repository at this point in the history
Modified the test case to pass in JDK 8, where the implementation
throws SSLException, while in later JDKs throws SSLHandshakeException.

Signed-off-by: Simone Bordet <[email protected]>
  • Loading branch information
sbordet committed Aug 27, 2018
1 parent 0a70e62 commit eadb746
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import javax.net.ssl.SSLException;
import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.SSLSession;

Expand Down Expand Up @@ -192,7 +193,7 @@ public void handshakeFailed(Event event, Throwable failure)
if (result.isFailed())
{
Throwable failure = result.getFailure();
if (failure instanceof SSLHandshakeException)
if (failure instanceof SSLException)
latch.countDown();
}
});
Expand Down

0 comments on commit eadb746

Please sign in to comment.