2 # Copyright 2016-2016 The OpenSSL Project Authors. All Rights Reserved.
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
10 ## SSL test configurations
19 name => "SNI-switch-context",
23 test => { "ServerName" => "server2",
24 "ExpectedServerName" => "server2",
25 "ServerNameCallback" => "IgnoreMismatch",
26 "ExpectedResult" => "Success" },
29 name => "SNI-keep-context",
33 test => { "ServerName" => "server1",
34 "ExpectedServerName" => "server1",
35 "ServerNameCallback" => "IgnoreMismatch",
36 "ExpectedResult" => "Success" },
39 name => "SNI-no-server-support",
42 test => { "ServerName" => "server1",
43 "ExpectedResult" => "Success" },
46 name => "SNI-no-client-support",
51 # We expect that the callback is still called
52 # to let the application decide whether they tolerate
53 # missing SNI (as our test callback does).
54 "ExpectedServerName" => "server1",
55 "ServerNameCallback" => "IgnoreMismatch",
56 "ExpectedResult" => "Success"
60 name => "SNI-bad-sni-ignore-mismatch",
64 test => { "ServerName" => "invalid",
65 "ExpectedServerName" => "server1",
66 "ServerNameCallback" => "IgnoreMismatch",
67 "ExpectedResult" => "Success" },
70 name => "SNI-bad-sni-reject-mismatch",
74 test => { "ServerName" => "invalid",
75 "ServerNameCallback" => "RejectMismatch",
76 "ExpectedResult" => "ServerFail",
77 "ServerAlert" => "UnrecognizedName"},