diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-14 10:33:03 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-16 07:07:27 +1000 |
commit | 62c3fed0cd52316259e4e2c0e5878bcfa69b38f9 (patch) | |
tree | 72dd00534999ea41ab76b23b3271a95c1222ac45 /test | |
parent | 26aae51347465764c755f0985bd1ac85d3f734e6 (diff) |
Deprecate the low level RC5 functions
Use of the low level RC5 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/10834)
Diffstat (limited to 'test')
-rw-r--r-- | test/build.info | 8 | ||||
-rw-r--r-- | test/rc5test.c | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/test/build.info b/test/build.info index c5040718a2..9afbdfdbe7 100644 --- a/test/build.info +++ b/test/build.info @@ -119,10 +119,6 @@ IF[{- !$disabled{tests} -}] INCLUDE[hmactest]=../include ../apps/include DEPEND[hmactest]=../libcrypto libtestutil.a - SOURCE[rc5test]=rc5test.c - INCLUDE[rc5test]=../include ../apps/include - DEPEND[rc5test]=../libcrypto libtestutil.a - SOURCE[destest]=destest.c INCLUDE[destest]=../include ../apps/include DEPEND[destest]=../libcrypto libtestutil.a @@ -593,6 +589,10 @@ IF[{- !$disabled{tests} -}] INCLUDE[rc4test]=../include ../apps/include DEPEND[rc4test]=../libcrypto.a libtestutil.a + SOURCE[rc5test]=rc5test.c + INCLUDE[rc5test]=../include ../apps/include + DEPEND[rc5test]=../libcrypto.a libtestutil.a + SOURCE[ec_internal_test]=ec_internal_test.c INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include ../crypto/include DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a diff --git a/test/rc5test.c b/test/rc5test.c index 39a113e859..70f88f0915 100644 --- a/test/rc5test.c +++ b/test/rc5test.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC5 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <string.h> #include "internal/nelem.h" |