8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4432868
27 * @summary A client-hello message may not always be read correctly
28 * @run main/othervm ClientHelloRead
29 *
30 * SunJSSE does not support dynamic system properties, no way to re-use
31 * system properties in samevm/agentvm mode.
32 */
33
34 import java.io.*;
35 import java.net.*;
36 import java.security.KeyStore;
37 import javax.net.*;
38 import javax.net.ssl.*;
39 import java.security.cert.*;
40
41 /*
42 * ClientHelloRead.java -- includes a simple server that can serve
43 * Http get request in both clear and secure channel, and a client
44 * that makes https requests behind the firewall through a
45 * proxy. The proxy delays the bytes sent from client to the server
46 * The server should read all delayed bytes to construct a correct
47 * V2 ClientHello Message, if it doesn't, it will throw a SSL
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4432868
27 * @summary A client-hello message may not always be read correctly
28 * @modules java.base/sun.net.www
29 * @run main/othervm ClientHelloRead
30 *
31 * SunJSSE does not support dynamic system properties, no way to re-use
32 * system properties in samevm/agentvm mode.
33 */
34
35 import java.io.*;
36 import java.net.*;
37 import java.security.KeyStore;
38 import javax.net.*;
39 import javax.net.ssl.*;
40 import java.security.cert.*;
41
42 /*
43 * ClientHelloRead.java -- includes a simple server that can serve
44 * Http get request in both clear and secure channel, and a client
45 * that makes https requests behind the firewall through a
46 * proxy. The proxy delays the bytes sent from client to the server
47 * The server should read all delayed bytes to construct a correct
48 * V2 ClientHello Message, if it doesn't, it will throw a SSL
|