3 ## SSL test configurations
9 # Sanity-check that verification indeed succeeds without the
10 # restrictive callback.
12 name => "verify-success",
15 test => { "ExpectedResult" => "Success" },
18 # Same test as above but with a custom callback that always fails.
20 name => "verify-custom-reject",
24 "ClientVerifyCallback" => "RejectAll",
25 "ExpectedResult" => "ClientFail",
26 "ClientAlert" => "HandshakeFailure",
30 # Same test as above but with a custom callback that always succeeds.
32 name => "verify-custom-allow",
36 "ClientVerifyCallback" => "AcceptAll",
37 "ExpectedResult" => "Success",
41 # Sanity-check that verification indeed succeeds if peer verification
44 name => "noverify-success",
47 "VerifyMode" => undef,
48 "VerifyCAFile" => undef,
50 test => { "ExpectedResult" => "Success" },
53 # Same test as above but with a custom callback that always fails.
54 # The callback return has no impact on handshake success in this mode.
56 name => "noverify-ignore-custom-reject",
59 "VerifyMode" => undef,
60 "VerifyCAFile" => undef,
63 "ClientVerifyCallback" => "RejectAll",
64 "ExpectedResult" => "Success",
68 # Same test as above but with a custom callback that always succeeds.
69 # The callback return has no impact on handshake success in this mode.
71 name => "noverify-accept-custom-allow",
74 "VerifyMode" => undef,
75 "VerifyCAFile" => undef,
78 "ClientVerifyCallback" => "AcceptAll",
79 "ExpectedResult" => "Success",
83 # Sanity-check that verification indeed fails without the
84 # permissive callback.
86 name => "verify-fail-no-root",
89 # Don't set up the client root file.
90 "VerifyCAFile" => undef,
93 "ExpectedResult" => "ClientFail",
94 "ClientAlert" => "UnknownCA",
98 # Same test as above but with a custom callback that always succeeds.
100 name => "verify-custom-success-no-root",
103 "VerifyCAFile" => undef,
106 "ClientVerifyCallback" => "AcceptAll",
107 "ExpectedResult" => "Success"
111 # Same test as above but with a custom callback that always fails.
113 name => "verify-custom-fail-no-root",
116 "VerifyCAFile" => undef,
119 "ClientVerifyCallback" => "RejectAll",
120 "ExpectedResult" => "ClientFail",
121 "ClientAlert" => "HandshakeFailure",