summaryrefslogtreecommitdiff
path: root/test/recipes
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-09-13 22:38:30 +0200
committerPauli <pauli@openssl.org>2022-09-16 08:34:53 +1000
commite1289d90d0069ea1c3ea8ae80bfc3916077ec24e (patch)
tree9e8b5ce32338417fa988ecae7c25373550a4112d /test/recipes
parentc342004e07fd2c03a672f79353d13554fe0ffdaf (diff)
downloadopenssl-new-e1289d90d0069ea1c3ea8ae80bfc3916077ec24e.tar.gz
With fips provider 3.0.0 skip tests related to explicit curves handling
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19201)
Diffstat (limited to 'test/recipes')
-rw-r--r--test/recipes/25-test_verify.t12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/recipes/25-test_verify.t b/test/recipes/25-test_verify.t
index d6d25759b5..2bb77f2189 100644
--- a/test/recipes/25-test_verify.t
+++ b/test/recipes/25-test_verify.t
@@ -354,12 +354,18 @@ SKIP: {
# Same as above but with base provider used for decoding
SKIP: {
my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
- skip "EC is not supported or FIPS is disabled", 3
- if disabled("ec") || $no_fips;
-
my $provconf = srctop_file("test", "fips-and-base.cnf");
my $provpath = bldtop_dir("providers");
my @prov = ("-provider-path", $provpath);
+
+ skip "EC is not supported or FIPS is disabled", 3
+ if disabled("ec") || $no_fips;
+
+ run(test(["fips_version_test", "-config", $provconf, ">3.0.0"]),
+ capture => 1, statusvar => \my $exit);
+ skip "FIPS provider version is too old", 3
+ if !$exit;
+
$ENV{OPENSSL_CONF} = $provconf;
ok(!verify("ee-cert-ec-explicit", "", ["root-cert"],