< prev index next >
test/sun/security/ssl/SSLEngineImpl/EmptyExtensionData.java
Print this page
rev 14340 : 8202343: Disable TLS 1.0 and 1.1
Reviewed-by: xuelei, dfuchs, coffeys
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -28,10 +28,11 @@
/*
* @test
* @bug 6728126
* @summary Parsing Extensions in Client Hello message is done in a wrong way
+ * @library /lib/security
* @run main/othervm EmptyExtensionData
*/
import javax.net.ssl.*;
import javax.net.ssl.SSLEngineResult.*;
@@ -152,10 +153,12 @@
log("\tnew HandshakeStatus: " + hsStatus);
}
}
public static void main(String args[]) throws Exception {
+ // Re-enable TLSv1 since test depends on it.
+ SecurityUtils.removeFromDisabledTlsAlgs("TLSv1");
SSLEngine ssle = createSSLEngine(keyFilename, trustFilename);
runTest(ssle);
System.out.println("Test Passed.");
< prev index next >