Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 9679ab2
  • /
  • test
  • /
  • ssl-tests
  • /
  • 23-srp.conf.in
Raw File
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:dcbd9f4ff91ddd3e0e4fde0b851716141ab9f074
directory badge Iframe embedding
swh:1:dir:f8d361fc8a2211b8c7ce5b565f58dfab919a7bdc
23-srp.conf.in
# -*- mode: perl; -*-
# Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License").  You may not use
# this file except in compliance with the License.  You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html

use strict;
use warnings;

package ssltests;

# SRP is only supported up to TLSv1.2

our @tests = (
    {
        name => "srp",
        server => {
            "CipherString" => "SRP",
            "MaxProtocol" => "TLSv1.2",
            extra => {
                "SRPUser" => "user",
                "SRPPassword" => "password",
            },
        },
        client => {
            "CipherString" => "SRP",
            "MaxProtocol" => "TLSv1.2",
            extra => {
                "SRPUser" => "user",
                "SRPPassword" => "password",
            },
        },
        test => {
            "ExpectedResult" => "Success"
        },
    },
    {
        name => "srp-bad-password",
        server => {
            "CipherString" => "SRP",
            "MaxProtocol" => "TLSv1.2",
            extra => {
                "SRPUser" => "user",
                "SRPPassword" => "password",
            },
        },
        client => {
            "CipherString" => "SRP",
            "MaxProtocol" => "TLSv1.2",
            extra => {
                "SRPUser" => "user",
                "SRPPassword" => "passw0rd",
            },
        },
        test => {
            # Server fails first with bad client Finished.
            "ExpectedResult" => "ServerFail"
        },
    },
    {
        name => "srp-auth",
        server => {
            "CipherString" => "aSRP",
            "MaxProtocol" => "TLSv1.2",
            extra => {
                "SRPUser" => "user",
                "SRPPassword" => "password",
            },
        },
        client => {
            "CipherString" => "aSRP",
            "MaxProtocol" => "TLSv1.2",
            extra => {
                "SRPUser" => "user",
                "SRPPassword" => "password",
            },
        },
        test => {
            "ExpectedResult" => "Success"
        },
    },
    {
        name => "srp-auth-bad-password",
        server => {
            "CipherString" => "aSRP",
            "MaxProtocol" => "TLSv1.2",
            extra => {
                "SRPUser" => "user",
                "SRPPassword" => "password",
            },
        },
        client => {
            "CipherString" => "aSRP",
            "MaxProtocol" => "TLSv1.2",
            extra => {
                "SRPUser" => "user",
                "SRPPassword" => "passw0rd",
            },
        },
        test => {
            # Server fails first with bad client Finished.
            "ExpectedResult" => "ServerFail"
        },
    },
);

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top