1*e0c4386eSCy Schubert# -*- mode: perl; -*- 2*e0c4386eSCy Schubert# Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved. 3*e0c4386eSCy Schubert# 4*e0c4386eSCy Schubert# Licensed under the Apache License 2.0 (the "License"). You may not use 5*e0c4386eSCy Schubert# this file except in compliance with the License. You can obtain a copy 6*e0c4386eSCy Schubert# in the file LICENSE in the source distribution or at 7*e0c4386eSCy Schubert# https://www.openssl.org/source/license.html 8*e0c4386eSCy Schubert 9*e0c4386eSCy Schubertuse strict; 10*e0c4386eSCy Schubertuse warnings; 11*e0c4386eSCy Schubert 12*e0c4386eSCy Schubertpackage ssltests; 13*e0c4386eSCy Schubert 14*e0c4386eSCy Schubert# SRP is only supported up to TLSv1.2 15*e0c4386eSCy Schubert 16*e0c4386eSCy Schubertour @tests = ( 17*e0c4386eSCy Schubert { 18*e0c4386eSCy Schubert name => "srp", 19*e0c4386eSCy Schubert server => { 20*e0c4386eSCy Schubert "CipherString" => "SRP", 21*e0c4386eSCy Schubert "MaxProtocol" => "TLSv1.2", 22*e0c4386eSCy Schubert extra => { 23*e0c4386eSCy Schubert "SRPUser" => "user", 24*e0c4386eSCy Schubert "SRPPassword" => "password", 25*e0c4386eSCy Schubert }, 26*e0c4386eSCy Schubert }, 27*e0c4386eSCy Schubert client => { 28*e0c4386eSCy Schubert "CipherString" => "SRP", 29*e0c4386eSCy Schubert "MaxProtocol" => "TLSv1.2", 30*e0c4386eSCy Schubert extra => { 31*e0c4386eSCy Schubert "SRPUser" => "user", 32*e0c4386eSCy Schubert "SRPPassword" => "password", 33*e0c4386eSCy Schubert }, 34*e0c4386eSCy Schubert }, 35*e0c4386eSCy Schubert test => { 36*e0c4386eSCy Schubert "ExpectedResult" => "Success" 37*e0c4386eSCy Schubert }, 38*e0c4386eSCy Schubert }, 39*e0c4386eSCy Schubert { 40*e0c4386eSCy Schubert name => "srp-bad-password", 41*e0c4386eSCy Schubert server => { 42*e0c4386eSCy Schubert "CipherString" => "SRP", 43*e0c4386eSCy Schubert "MaxProtocol" => "TLSv1.2", 44*e0c4386eSCy Schubert extra => { 45*e0c4386eSCy Schubert "SRPUser" => "user", 46*e0c4386eSCy Schubert "SRPPassword" => "password", 47*e0c4386eSCy Schubert }, 48*e0c4386eSCy Schubert }, 49*e0c4386eSCy Schubert client => { 50*e0c4386eSCy Schubert "CipherString" => "SRP", 51*e0c4386eSCy Schubert "MaxProtocol" => "TLSv1.2", 52*e0c4386eSCy Schubert extra => { 53*e0c4386eSCy Schubert "SRPUser" => "user", 54*e0c4386eSCy Schubert "SRPPassword" => "passw0rd", 55*e0c4386eSCy Schubert }, 56*e0c4386eSCy Schubert }, 57*e0c4386eSCy Schubert test => { 58*e0c4386eSCy Schubert # Server fails first with bad client Finished. 59*e0c4386eSCy Schubert "ExpectedResult" => "ServerFail" 60*e0c4386eSCy Schubert }, 61*e0c4386eSCy Schubert }, 62*e0c4386eSCy Schubert { 63*e0c4386eSCy Schubert name => "srp-auth", 64*e0c4386eSCy Schubert server => { 65*e0c4386eSCy Schubert "CipherString" => "aSRP", 66*e0c4386eSCy Schubert "MaxProtocol" => "TLSv1.2", 67*e0c4386eSCy Schubert extra => { 68*e0c4386eSCy Schubert "SRPUser" => "user", 69*e0c4386eSCy Schubert "SRPPassword" => "password", 70*e0c4386eSCy Schubert }, 71*e0c4386eSCy Schubert }, 72*e0c4386eSCy Schubert client => { 73*e0c4386eSCy Schubert "CipherString" => "aSRP", 74*e0c4386eSCy Schubert "MaxProtocol" => "TLSv1.2", 75*e0c4386eSCy Schubert extra => { 76*e0c4386eSCy Schubert "SRPUser" => "user", 77*e0c4386eSCy Schubert "SRPPassword" => "password", 78*e0c4386eSCy Schubert }, 79*e0c4386eSCy Schubert }, 80*e0c4386eSCy Schubert test => { 81*e0c4386eSCy Schubert "ExpectedResult" => "Success" 82*e0c4386eSCy Schubert }, 83*e0c4386eSCy Schubert }, 84*e0c4386eSCy Schubert { 85*e0c4386eSCy Schubert name => "srp-auth-bad-password", 86*e0c4386eSCy Schubert server => { 87*e0c4386eSCy Schubert "CipherString" => "aSRP", 88*e0c4386eSCy Schubert "MaxProtocol" => "TLSv1.2", 89*e0c4386eSCy Schubert extra => { 90*e0c4386eSCy Schubert "SRPUser" => "user", 91*e0c4386eSCy Schubert "SRPPassword" => "password", 92*e0c4386eSCy Schubert }, 93*e0c4386eSCy Schubert }, 94*e0c4386eSCy Schubert client => { 95*e0c4386eSCy Schubert "CipherString" => "aSRP", 96*e0c4386eSCy Schubert "MaxProtocol" => "TLSv1.2", 97*e0c4386eSCy Schubert extra => { 98*e0c4386eSCy Schubert "SRPUser" => "user", 99*e0c4386eSCy Schubert "SRPPassword" => "passw0rd", 100*e0c4386eSCy Schubert }, 101*e0c4386eSCy Schubert }, 102*e0c4386eSCy Schubert test => { 103*e0c4386eSCy Schubert # Server fails first with bad client Finished. 104*e0c4386eSCy Schubert "ExpectedResult" => "ServerFail" 105*e0c4386eSCy Schubert }, 106*e0c4386eSCy Schubert }, 107*e0c4386eSCy Schubert); 108