2020-10-17 14:59:48 +08:00
|
|
|
#! /usr/bin/env perl
|
2021-06-17 20:24:59 +08:00
|
|
|
# Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2020-10-17 14:59:48 +08:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License 2.0 (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;
|
|
|
|
|
|
|
|
use OpenSSL::Test::Simple;
|
|
|
|
use OpenSSL::Test qw/:DEFAULT srctop_file bldtop_dir/;
|
2020-10-15 00:12:38 +08:00
|
|
|
use OpenSSL::Test::Utils;
|
2020-10-17 14:59:48 +08:00
|
|
|
use Cwd qw(abs_path);
|
|
|
|
|
2020-10-15 00:12:38 +08:00
|
|
|
setup("test_encoder_decoder_legacy");
|
2020-10-17 14:59:48 +08:00
|
|
|
|
2020-10-15 00:12:38 +08:00
|
|
|
plan skip_all => "Not available in a no-deprecated build"
|
|
|
|
if disabled("deprecated");
|
2020-10-17 14:59:48 +08:00
|
|
|
plan tests => 1;
|
|
|
|
|
|
|
|
$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("providers"));
|
2020-12-02 20:28:31 +08:00
|
|
|
$ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "default.cnf"));
|
2020-10-17 14:59:48 +08:00
|
|
|
|
2020-12-13 05:04:05 +08:00
|
|
|
my $rsa_key = srctop_file("test", "certs", "ee-key.pem");
|
|
|
|
my $dh_key = srctop_file("test", "certs", "dhk2048.pem");
|
|
|
|
|
|
|
|
ok(run(test(["endecoder_legacy_test", $rsa_key, $dh_key])));
|