< prev index next >

test/sun/security/ssl/HandshakeHash/HandshakeHashCloneExhaustion.java

Print this page
rev 14346 : 8202343: Disable TLS 1.0 and 1.1
Reviewed-by: xuelei, dfuchs, coffeys, sgehwolf

*** 1,7 **** /* ! * Copyright (c) 2016, 2019, 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. --- 1,7 ---- /* ! * Copyright (c) 2016, 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.
*** 31,40 **** --- 31,41 ---- * @bug 8148421 8193683 8234728 * @summary Transport Layer Security (TLS) Session Hash and Extended * Master Secret Extension * @summary Increase the number of clones in the CloneableDigest * @library /javax/net/ssl/templates + * @library /lib/security * @compile DigestBase.java * @run main/othervm -Djdk.tls.client.protocols="TLSv1.3,TLSv1.2,TLSv1.1,TLSv1,SSLv3" * HandshakeHashCloneExhaustion TLSv1.3 TLS_AES_128_GCM_SHA256 * @run main/othervm HandshakeHashCloneExhaustion * TLSv1.2 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
*** 77,86 **** --- 78,91 ---- System.out.println("Testing: " + args[0] + " " + args[1]); protocol = new String [] { args[0] }; ciphersuite = new String[] { args[1] }; + // Re-enable TLSv1.1 when test depends on it. + if (protocol[0].equals("TLSv1.1")) { + SecurityUtils.removeFromDisabledTlsAlgs(protocol[0]); + } (new HandshakeHashCloneExhaustion()).run(); } @Override protected void runServerApplication(SSLSocket socket) throws Exception {
< prev index next >