diff options
author | Pauli <pauli@openssl.org> | 2023-09-22 08:46:31 +1000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-09-27 17:23:04 +0100 |
commit | 1a18596149a325a679f8244bac52b6796dfcc48e (patch) | |
tree | 994512ba1327b9a011e9d232d6c4bc2c918e237b /test | |
parent | 4cde7585ce8eb53682256ba79e6af1949498fbfe (diff) |
evp_test: recondition cipher dupctx FIPS version check.
Until the cipher dupctx is properly implemented in 3.1 and 3.0 the check is
wrong. This should be reverted once the implemenation has been done.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21964)
Diffstat (limited to 'test')
-rw-r--r-- | test/evp_test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/evp_test.c b/test/evp_test.c index 309ab94c21..bd1a7cc122 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -739,9 +739,7 @@ static int cipher_test_enc(EVP_TEST *t, int enc, size_t out_misalign, int ok = 0, tmplen, chunklen, tmpflen, i; EVP_CIPHER_CTX *ctx_base = NULL; EVP_CIPHER_CTX *ctx = NULL, *duped; - int fips_dupctx_supported = (fips_provider_version_ge(libctx, 3, 0, 12) - && fips_provider_version_lt(libctx, 3, 1, 0)) - || fips_provider_version_ge(libctx, 3, 1, 4); + int fips_dupctx_supported = fips_provider_version_ge(libctx, 3, 2, 0); t->err = "TEST_FAILURE"; if (!TEST_ptr(ctx_base = EVP_CIPHER_CTX_new())) |