]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/ssl-tests/23-srp.conf.in
Port SRP tests to the new test framework
[thirdparty/openssl.git] / test / ssl-tests / 23-srp.conf.in
CommitLineData
ea1ecd98
EK
1# -*- mode: perl; -*-
2# Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
3#
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
8
9use strict;
10use warnings;
11
12package ssltests;
13
14# SRP is only supported up to TLSv1.2
15
16our @tests = (
17 {
18 name => "srp",
19 server => {
20 "CipherString" => "SRP",
21 extra => {
22 "SRPUser" => "user",
23 "SRPPassword" => "password",
24 },
25 },
26 client => {
27 "CipherString" => "SRP",
28 "MaxProtocol" => "TLSv1.2",
29 extra => {
30 "SRPUser" => "user",
31 "SRPPassword" => "password",
32 },
33 },
34 test => {
35 "ExpectedResult" => "Success"
36 },
37 },
38 {
39 name => "srp-bad-password",
40 server => {
41 "CipherString" => "SRP",
42 extra => {
43 "SRPUser" => "user",
44 "SRPPassword" => "password",
45 },
46 },
47 client => {
48 "CipherString" => "SRP",
49 "MaxProtocol" => "TLSv1.2",
50 extra => {
51 "SRPUser" => "user",
52 "SRPPassword" => "passw0rd",
53 },
54 },
55 test => {
56 # Server fails first with bad client Finished.
57 "ExpectedResult" => "ServerFail"
58 },
59 },
60 {
61 name => "srp-auth",
62 server => {
63 "CipherString" => "aSRP",
64 extra => {
65 "SRPUser" => "user",
66 "SRPPassword" => "password",
67 },
68 },
69 client => {
70 "CipherString" => "aSRP",
71 "MaxProtocol" => "TLSv1.2",
72 extra => {
73 "SRPUser" => "user",
74 "SRPPassword" => "password",
75 },
76 },
77 test => {
78 "ExpectedResult" => "Success"
79 },
80 },
81 {
82 name => "srp-auth-bad-password",
83 server => {
84 "CipherString" => "aSRP",
85 extra => {
86 "SRPUser" => "user",
87 "SRPPassword" => "password",
88 },
89 },
90 client => {
91 "CipherString" => "aSRP",
92 "MaxProtocol" => "TLSv1.2",
93 extra => {
94 "SRPUser" => "user",
95 "SRPPassword" => "passw0rd",
96 },
97 },
98 test => {
99 # Server fails first with bad client Finished.
100 "ExpectedResult" => "ServerFail"
101 },
102 },
103);