Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11080)
use POSIX;
use File::Spec::Functions qw/devnull catfile/;
use POSIX;
use File::Spec::Functions qw/devnull catfile/;
use File::Copy;
use OpenSSL::Test qw/:DEFAULT with pipe srctop_dir data_file/;
use OpenSSL::Test::Utils;
use File::Copy;
use OpenSSL::Test qw/:DEFAULT with pipe srctop_dir data_file/;
use OpenSSL::Test::Utils;
$untrusted = $CAfile;
}
my $expected_exit = shift;
$untrusted = $CAfile;
}
my $expected_exit = shift;
+ my $outputfile = basename($inputfile, '.ors') . '.dat';
run(app(["openssl", "base64", "-d",
"-in", catfile($ocspdir,$inputfile),
run(app(["openssl", "base64", "-d",
"-in", catfile($ocspdir,$inputfile),
- "-out", "ocsp-resp-fff.dat"]));
+ "-out", $outputfile]));
with({ exit_checker => sub { return shift == $expected_exit; } },
with({ exit_checker => sub { return shift == $expected_exit; } },
- sub { ok(run(app(["openssl", "ocsp", "-respin", "ocsp-resp-fff.dat",
+ sub { ok(run(app(["openssl", "ocsp", "-respin", $outputfile,
"-partial_chain", @check_time,
"-CAfile", catfile($ocspdir, $CAfile),
"-verify_other", catfile($ocspdir, $untrusted),
"-no-CApath"])),
$title); });
"-partial_chain", @check_time,
"-CAfile", catfile($ocspdir, $CAfile),
"-verify_other", catfile($ocspdir, $untrusted),
"-no-CApath"])),
$title); });
- unlink "ocsp-resp-fff.dat";