diff options
author | Matt Caswell <matt@openssl.org> | 2019-12-05 17:09:49 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-01-06 15:09:57 +0000 |
commit | c72fa2554f5adc03bcc3c6e4ebcd1929e70efed4 (patch) | |
tree | 181157c82b41fb40f46ada0f30d33468df50aefb /test | |
parent | 2852c672a8ecb02a74d0adeeb93c661b7d2d7511 (diff) |
Deprecate the low level AES functions
Use of the low level AES functions has been informally discouraged for a
long time. We now formally deprecate them.
Applications should instead use the EVP APIs, e.g. EVP_EncryptInit_ex,
EVP_EncryptUpdate, EVP_EncryptFinal_ex, and the equivalently named decrypt
functions.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10580)
Diffstat (limited to 'test')
-rw-r--r-- | test/build.info | 12 | ||||
-rw-r--r-- | test/modes_internal_test.c | 6 | ||||
-rw-r--r-- | test/recipes/90-test_ige.t | 11 |
3 files changed, 25 insertions, 4 deletions
diff --git a/test/build.info b/test/build.info index 2b429d304c..11419caf05 100644 --- a/test/build.info +++ b/test/build.info @@ -40,7 +40,7 @@ IF[{- !$disabled{tests} -}] dhtest enginetest casttest \ bftest ssltest_old dsatest dsa_no_digest_size_test exptest rsa_test \ evp_pkey_provided_test evp_test evp_extra_test evp_fetch_prov_test \ - igetest v3nametest v3ext \ + v3nametest v3ext \ crltest danetest bad_dtls_test lhash_test sparse_array_test \ conf_include_test params_api_test params_conversion_test \ constant_time_test verify_extra_test clienthellotest \ @@ -214,9 +214,13 @@ IF[{- !$disabled{tests} -}] INCLUDE[evp_pkey_provided_test]=../include ../apps/include DEPEND[evp_pkey_provided_test]=../libcrypto libtestutil.a - SOURCE[igetest]=igetest.c - INCLUDE[igetest]=../include ../apps/include - DEPEND[igetest]=../libcrypto libtestutil.a + IF[{- !$disabled{"deprecated"} + || (defined $config{"api"} && $config{"api"} < 30000) -}] + PROGRAMS{noinst}=igetest + SOURCE[igetest]=igetest.c + INCLUDE[igetest]=../include ../apps/include + DEPEND[igetest]=../libcrypto libtestutil.a + ENDIF SOURCE[v3nametest]=v3nametest.c INCLUDE[v3nametest]=../include ../apps/include diff --git a/test/modes_internal_test.c b/test/modes_internal_test.c index 37ca2b14bd..a258590534 100644 --- a/test/modes_internal_test.c +++ b/test/modes_internal_test.c @@ -9,6 +9,12 @@ /* Internal tests for the modes module */ +/* + * This file uses the low level AES functions (which are deprecated for + * non-internal use) in order to test the modes code + */ +#include "internal/deprecated.h" + #include <stdio.h> #include <string.h> diff --git a/test/recipes/90-test_ige.t b/test/recipes/90-test_ige.t index ea45549c54..fc22df71b4 100644 --- a/test/recipes/90-test_ige.t +++ b/test/recipes/90-test_ige.t @@ -7,6 +7,17 @@ # https://www.openssl.org/source/license.html +use strict; +use warnings; + use OpenSSL::Test::Simple; +use OpenSSL::Test; +use OpenSSL::Test::Utils; + +setup("test_ige"); + +plan skip_all => "AES_ige support is disabled in this build" + if disabled("deprecated") + && (!defined config("api") || config("api") >= 30000); simple_test("test_ige", "igetest"); |