CipherTest.java revision 0
0N/A * Copyright 2002-2006 Sun Microsystems, Inc. All Rights Reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A * CA 95054 USA or visit www.sun.com if you need additional information or 0N/A * have any questions. 0N/A * Test that all ciphersuites work in all versions and all client 0N/A * authentication types. The way this is setup the server is stateless and 0N/A * all checking is done on the client side. 0N/A * The test is multithreaded to speed it up, especially on multiprocessor 0N/A * machines. To simplify debugging, run with -DnumThreads=1. 0N/A * @author Andreas Sterbenz 0N/A // use any available port for the server socket 0N/A // assume that if we do not read anything for 20 seconds, something 0N/A // 2nd newline in a row, end of request 0N/A// if (true) return cipherSuite.contains("_ECDH_"); 0N/A// return cipherSuite.equals("SSL_RSA_WITH_RC4_128_MD5") && 0N/A// (clientAuth != null); 0N/A// return cipherSuite.indexOf("_RSA_") != -1; 0N/A// return cipherSuite.indexOf("DH_anon") != -1; 0N/A// return cipherSuite.contains("ECDSA") == false; 0N/A // skip kerberos cipher suites 0N/A // no client with anonymous ciphersuites 0N/A "' completed successfully");
0N/A // for some reason, ${test.src} has a different value when the 0N/A // test is called from the script and when it is called directly... 0N/A// static String pathToStores = "../../etc"; 0N/A// we currently don't do any chain verification. we assume that works ok 0N/A// and we can speed up the test. we could also just add a plain certificate 0N/A// chain comparision with our trusted certificates.