2 # Copyright 2016-2016 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the Apache License 2.0 (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
16 # Sanity-check that verification indeed succeeds without the
17 # restrictive callback.
19 name => "verify-success",
22 test => { "ExpectedResult" => "Success" },
25 # Same test as above but with a custom callback that always fails.
27 name => "verify-custom-reject",
31 "VerifyCallback" => "RejectAll",
35 "ExpectedResult" => "ClientFail",
36 "ExpectedClientAlert" => "HandshakeFailure",
40 # Same test as above but with a custom callback that always succeeds.
42 name => "verify-custom-allow",
46 "VerifyCallback" => "AcceptAll",
50 "ExpectedResult" => "Success",
54 # Sanity-check that verification indeed succeeds if peer verification
57 name => "noverify-success",
60 "VerifyMode" => undef,
61 "VerifyCAFile" => undef,
63 test => { "ExpectedResult" => "Success" },
66 # Same test as above but with a custom callback that always fails.
67 # The callback return has no impact on handshake success in this mode.
69 name => "noverify-ignore-custom-reject",
72 "VerifyMode" => undef,
73 "VerifyCAFile" => undef,
75 "VerifyCallback" => "RejectAll",
79 "ExpectedResult" => "Success",
83 # Same test as above but with a custom callback that always succeeds.
84 # The callback return has no impact on handshake success in this mode.
86 name => "noverify-accept-custom-allow",
89 "VerifyMode" => undef,
90 "VerifyCAFile" => undef,
92 "VerifyCallback" => "AcceptAll",
96 "ExpectedResult" => "Success",
100 # Sanity-check that verification indeed fails without the
101 # permissive callback.
103 name => "verify-fail-no-root",
106 # Don't set up the client root file.
107 "VerifyCAFile" => undef,
110 "ExpectedResult" => "ClientFail",
111 "ExpectedClientAlert" => "UnknownCA",
115 # Same test as above but with a custom callback that always succeeds.
117 name => "verify-custom-success-no-root",
120 "VerifyCAFile" => undef,
122 "VerifyCallback" => "AcceptAll",
126 "ExpectedResult" => "Success"
130 # Same test as above but with a custom callback that always fails.
132 name => "verify-custom-fail-no-root",
135 "VerifyCAFile" => undef,
137 "VerifyCallback" => "RejectAll",
141 "ExpectedResult" => "ClientFail",
142 "ExpectedClientAlert" => "HandshakeFailure",