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
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 "ClientVerifyCallback" => "RejectAll",
32 "ExpectedResult" => "ClientFail",
33 "ClientAlert" => "HandshakeFailure",
37 # Same test as above but with a custom callback that always succeeds.
39 name => "verify-custom-allow",
43 "ClientVerifyCallback" => "AcceptAll",
44 "ExpectedResult" => "Success",
48 # Sanity-check that verification indeed succeeds if peer verification
51 name => "noverify-success",
54 "VerifyMode" => undef,
55 "VerifyCAFile" => undef,
57 test => { "ExpectedResult" => "Success" },
60 # Same test as above but with a custom callback that always fails.
61 # The callback return has no impact on handshake success in this mode.
63 name => "noverify-ignore-custom-reject",
66 "VerifyMode" => undef,
67 "VerifyCAFile" => undef,
70 "ClientVerifyCallback" => "RejectAll",
71 "ExpectedResult" => "Success",
75 # Same test as above but with a custom callback that always succeeds.
76 # The callback return has no impact on handshake success in this mode.
78 name => "noverify-accept-custom-allow",
81 "VerifyMode" => undef,
82 "VerifyCAFile" => undef,
85 "ClientVerifyCallback" => "AcceptAll",
86 "ExpectedResult" => "Success",
90 # Sanity-check that verification indeed fails without the
91 # permissive callback.
93 name => "verify-fail-no-root",
96 # Don't set up the client root file.
97 "VerifyCAFile" => undef,
100 "ExpectedResult" => "ClientFail",
101 "ClientAlert" => "UnknownCA",
105 # Same test as above but with a custom callback that always succeeds.
107 name => "verify-custom-success-no-root",
110 "VerifyCAFile" => undef,
113 "ClientVerifyCallback" => "AcceptAll",
114 "ExpectedResult" => "Success"
118 # Same test as above but with a custom callback that always fails.
120 name => "verify-custom-fail-no-root",
123 "VerifyCAFile" => undef,
126 "ClientVerifyCallback" => "RejectAll",
127 "ExpectedResult" => "ClientFail",
128 "ClientAlert" => "HandshakeFailure",