2016-03-17 14:14:30 +00:00
|
|
|
# -*- mode: perl; -*-
|
2016-04-20 14:20:59 +00:00
|
|
|
# Copyright 2016 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
|
2016-03-17 14:14:30 +00:00
|
|
|
|
|
|
|
## SSL test configurations
|
|
|
|
|
|
|
|
package ssltests;
|
|
|
|
|
2017-02-16 15:27:49 +00:00
|
|
|
sub test_pem
|
|
|
|
{
|
|
|
|
my ($file) = @_;
|
|
|
|
my $dir_sep = $^O ne "VMS" ? "/" : "";
|
|
|
|
return "\${ENV::TEST_CERTS_DIR}" . $dir_sep . $file,
|
|
|
|
}
|
2016-04-09 09:13:00 +00:00
|
|
|
|
2016-03-17 14:14:30 +00:00
|
|
|
our %base_server = (
|
2017-02-16 15:27:49 +00:00
|
|
|
"Certificate" => test_pem("servercert.pem"),
|
|
|
|
"PrivateKey" => test_pem("serverkey.pem"),
|
2016-03-17 14:14:30 +00:00
|
|
|
"CipherString" => "DEFAULT",
|
|
|
|
);
|
|
|
|
|
|
|
|
our %base_client = (
|
2017-02-16 15:27:49 +00:00
|
|
|
"VerifyCAFile" => test_pem("rootcert.pem"),
|
2016-03-17 14:14:30 +00:00
|
|
|
"VerifyMode" => "Peer",
|
|
|
|
"CipherString" => "DEFAULT",
|
|
|
|
);
|