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",
22 "ServerNameCallback" => "IgnoreMismatch",
27 "ServerName" => "server2",
31 "ExpectedServerName" => "server2",
32 "ExpectedResult" => "Success"
36 name => "SNI-keep-context",
39 "ServerNameCallback" => "IgnoreMismatch",
44 "ServerName" => "server1",
48 "ExpectedServerName" => "server1",
49 "ExpectedResult" => "Success"
53 name => "SNI-no-server-support",
57 "ServerName" => "server1",
60 test => { "ExpectedResult" => "Success" },
63 name => "SNI-no-client-support",
66 "ServerNameCallback" => "IgnoreMismatch",
71 # We expect that the callback is still called
72 # to let the application decide whether they tolerate
73 # missing SNI (as our test callback does).
74 "ExpectedServerName" => "server1",
75 "ExpectedResult" => "Success"
79 name => "SNI-bad-sni-ignore-mismatch",
82 "ServerNameCallback" => "IgnoreMismatch",
87 "ServerName" => "invalid",
91 "ExpectedServerName" => "server1",
92 "ExpectedResult" => "Success"
96 name => "SNI-bad-sni-reject-mismatch",
99 "ServerNameCallback" => "RejectMismatch",
104 "ServerName" => "invalid",
108 "ExpectedResult" => "ServerFail",
109 "ExpectedServerAlert" => "UnrecognizedName"