80-test_ssl_new.t: Make 19-mac-then-encrypt.conf work without TLSv1.2
[openssl.git] / test / ssl-tests / 18-dtls-renegotiate.conf.in
1 # -*- mode: perl; -*-
2 # Copyright 2016-2016 The OpenSSL Project Authors. All Rights Reserved.
3 #
4 # Licensed under the OpenSSL license (the "License").  You may not use
5 # this file except in compliance with the License.  You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
8
9
10 ## Test Renegotiation
11
12 use strict;
13 use warnings;
14
15 package ssltests;
16
17
18 our @tests = (
19     {
20         name => "renegotiate-client-no-resume",
21         server => {
22             "Options" => "NoResumptionOnRenegotiation"
23         },
24         client => {},
25         test => {
26             "Method" => "DTLS",
27             "HandshakeMode" => "RenegotiateClient",
28             "ResumptionExpected" => "No",
29             "ExpectedResult" => "Success"
30         }
31     },
32     {
33         name => "renegotiate-client-resume",
34         server => {},
35         client => {},
36         test => {
37             "Method" => "DTLS",
38             "HandshakeMode" => "RenegotiateClient",
39             "ResumptionExpected" => "Yes",
40             "ExpectedResult" => "Success"
41         }
42     },
43 # Note: Unlike the TLS tests, we will never do resumption with server
44 # initiated reneg. This is because an OpenSSL DTLS client will always do a full
45 # handshake (i.e. it doesn't supply a session id) when it receives a
46 # HelloRequest. This is different to the OpenSSL TLS implementation where an
47 # OpenSSL client will always try an abbreviated handshake (i.e. it will supply
48 # the session id). This goes all the way to commit 48ae85b6f when abbreviated
49 # handshake support was first added. Neither behaviour is wrong, but the
50 # discrepancy is strange. TODO: Should we harmonise the TLS and DTLS behaviour,
51 # and if so, what to?
52     {
53         name => "renegotiate-server-resume",
54         server => {},
55         client => {},
56         test => {
57             "Method" => "DTLS",
58             "HandshakeMode" => "RenegotiateServer",
59             "ResumptionExpected" => "No",
60             "ExpectedResult" => "Success"
61         }
62     },
63 );