summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-12-02 13:09:28 +0000
committerMatt Caswell <matt@openssl.org>2020-12-11 10:56:34 +0000
commit8891a12b5b8fcce9cb36dbb444ff09df9f16dbea (patch)
treee8dbfc1b8c2566e60b52db2a952bfb1c5c4ff4ac /test
parentd5e8d260089dd928b27d72096c745f61ca4a0d57 (diff)
Don't use the legacy provider in test_store if its not available
If we don't have the legacy provider then we avoid having to use it. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13595)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/90-test_store.t10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/recipes/90-test_store.t b/test/recipes/90-test_store.t
index a36a59fd8b..a61ed5b51e 100644
--- a/test/recipes/90-test_store.t
+++ b/test/recipes/90-test_store.t
@@ -19,7 +19,7 @@ setup($test_name);
my $mingw = config('target') =~ m|^mingw|;
my $use_md5 = !disabled("md5");
-my $use_des = !disabled("des"); # also affects 3des and pkcs12 app
+my $use_des = !(disabled("des") || disabled("legacy")); # also affects 3des and pkcs12 app
my $use_dsa = !disabled("dsa");
my $use_ecc = !disabled("ec");
@@ -97,7 +97,9 @@ my @noexist_file_files =
# @methods is a collection of extra 'openssl storeutl' arguments used to
# try the different methods.
my @methods;
-push @methods, [qw(-provider default -provider legacy)];
+my @prov_method = qw(-provider default);
+push @prov_method, qw(-provider legacy) unless disabled('legacy');
+push @methods, [ @prov_method ];
push @methods, [qw(-engine loader_attic)]
unless disabled('dynamic-engine') || disabled('deprecated-3.0');
@@ -291,7 +293,9 @@ indir "store_$$" => sub {
sub init {
my $cnf = srctop_file('test', 'ca-and-certs.cnf');
my $cakey = srctop_file('test', 'certs', 'ca-key.pem');
- my @std_args = qw(-provider default -provider legacy);
+ my @std_args = qw(-provider default);
+ push @std_args, qw(-provider legacy)
+ unless disabled('legacy');
return (
# rsa-key-pkcs1.pem
run(app(["openssl", "pkey", @std_args,