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.
|
|
|
|
#
|
2018-12-06 12:05:25 +00:00
|
|
|
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-04-20 14:20:59 +00:00
|
|
|
# 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",
|
|
|
|
);
|