1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
27 /* |
27 /* |
28 * @test |
28 * @test |
29 * @bug 8161086 |
29 * @bug 8161086 |
30 * @summary DTLS handshaking fails if some messages were lost |
30 * @summary DTLS handshaking fails if some messages were lost |
31 * @modules java.base/sun.security.util |
31 * @modules java.base/sun.security.util |
|
32 * @library /test/lib |
32 * @build DTLSOverDatagram |
33 * @build DTLSOverDatagram |
33 * |
34 * |
34 * @run main/othervm PacketLossRetransmission client 0 hello_request |
35 * @run main/othervm PacketLossRetransmission client 0 hello_request |
35 * @run main/othervm PacketLossRetransmission client 1 client_hello |
36 * @run main/othervm PacketLossRetransmission client 1 client_hello |
36 * @run main/othervm PacketLossRetransmission client 2 server_hello |
37 * @run main/othervm PacketLossRetransmission client 2 server_hello |
37 * @run main/othervm PacketLossRetransmission client 3 hello_verify_request |
38 * @run main/othervm PacketLossRetransmission client 3 hello_verify_request |
38 * @run main/othervm PacketLossRetransmission client 4 new_session_ticket |
39 * @run main/othervm -Djdk.tls.client.enableSessionTicketExtension=false PacketLossRetransmission client 4 new_session_ticket |
39 * @run main/othervm PacketLossRetransmission client 11 certificate |
40 * @run main/othervm PacketLossRetransmission client 11 certificate |
40 * @run main/othervm PacketLossRetransmission client 12 server_key_exchange |
41 * @run main/othervm PacketLossRetransmission client 12 server_key_exchange |
41 * @run main/othervm PacketLossRetransmission client 13 certificate_request |
42 * @run main/othervm PacketLossRetransmission client 13 certificate_request |
42 * @run main/othervm PacketLossRetransmission client 14 server_hello_done |
43 * @run main/othervm PacketLossRetransmission client 14 server_hello_done |
43 * @run main/othervm PacketLossRetransmission client 15 certificate_verify |
44 * @run main/othervm PacketLossRetransmission client 15 certificate_verify |
49 * @run main/othervm PacketLossRetransmission client -1 change_cipher_spec |
50 * @run main/othervm PacketLossRetransmission client -1 change_cipher_spec |
50 * @run main/othervm PacketLossRetransmission server 0 hello_request |
51 * @run main/othervm PacketLossRetransmission server 0 hello_request |
51 * @run main/othervm PacketLossRetransmission server 1 client_hello |
52 * @run main/othervm PacketLossRetransmission server 1 client_hello |
52 * @run main/othervm PacketLossRetransmission server 2 server_hello |
53 * @run main/othervm PacketLossRetransmission server 2 server_hello |
53 * @run main/othervm PacketLossRetransmission server 3 hello_verify_request |
54 * @run main/othervm PacketLossRetransmission server 3 hello_verify_request |
54 * @run main/othervm PacketLossRetransmission server 4 new_session_ticket |
55 * @run main/othervm -Djdk.tls.client.enableSessionTicketExtension=false PacketLossRetransmission server 4 new_session_ticket |
55 * @run main/othervm PacketLossRetransmission server 11 certificate |
56 * @run main/othervm PacketLossRetransmission server 11 certificate |
56 * @run main/othervm PacketLossRetransmission server 12 server_key_exchange |
57 * @run main/othervm PacketLossRetransmission server 12 server_key_exchange |
57 * @run main/othervm PacketLossRetransmission server 13 certificate_request |
58 * @run main/othervm PacketLossRetransmission server 13 certificate_request |
58 * @run main/othervm PacketLossRetransmission server 14 server_hello_done |
59 * @run main/othervm PacketLossRetransmission server 14 server_hello_done |
59 * @run main/othervm PacketLossRetransmission server 15 certificate_verify |
60 * @run main/othervm PacketLossRetransmission server 15 certificate_verify |