2016-03-17 22:14:30 +08:00
|
|
|
# -*- mode: perl; -*-
|
2020-04-23 20:55:52 +08:00
|
|
|
# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
|
2016-04-20 22:20:59 +08:00
|
|
|
#
|
2018-12-06 20:05:25 +08:00
|
|
|
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-04-20 22:20:59 +08: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 22:14:30 +08:00
|
|
|
|
|
|
|
## SSL test configurations
|
|
|
|
|
|
|
|
package ssltests;
|
|
|
|
|
2017-02-16 23:27:49 +08:00
|
|
|
sub test_pem
|
|
|
|
{
|
|
|
|
my ($file) = @_;
|
|
|
|
my $dir_sep = $^O ne "VMS" ? "/" : "";
|
|
|
|
return "\${ENV::TEST_CERTS_DIR}" . $dir_sep . $file,
|
|
|
|
}
|
2016-04-09 17:13:00 +08:00
|
|
|
|
2020-04-08 00:03:19 +08:00
|
|
|
our $fips_mode = 0;
|
|
|
|
our $no_deflt_libctx = 0;
|
|
|
|
|
2016-03-17 22:14:30 +08:00
|
|
|
our %base_server = (
|
2017-02-16 23:27:49 +08:00
|
|
|
"Certificate" => test_pem("servercert.pem"),
|
|
|
|
"PrivateKey" => test_pem("serverkey.pem"),
|
2016-03-17 22:14:30 +08:00
|
|
|
"CipherString" => "DEFAULT",
|
|
|
|
);
|
|
|
|
|
|
|
|
our %base_client = (
|
2017-02-16 23:27:49 +08:00
|
|
|
"VerifyCAFile" => test_pem("rootcert.pem"),
|
2016-03-17 22:14:30 +08:00
|
|
|
"VerifyMode" => "Peer",
|
|
|
|
"CipherString" => "DEFAULT",
|
|
|
|
);
|