diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-14 09:15:18 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-16 07:07:27 +1000 |
commit | ee2993abd0830ec27a2dd49e07db8d0eb5f3e579 (patch) | |
tree | 9c789bbe5b362cc30edaacac00ca8acd21c58f69 /test | |
parent | 49742fd412665d2211523ac2925640e3be9d9ab3 (diff) |
Deprecate the low level RC2 functions
Use of the low level RC2 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/rc2test.c | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/test/build.info b/test/build.info index d8e390197e..9b3122b74f 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[rc2test]=rc2test.c - INCLUDE[rc2test]=../include ../apps/include - DEPEND[rc2test]=../libcrypto libtestutil.a - SOURCE[rc4test]=rc4test.c INCLUDE[rc4test]=../include ../apps/include DEPEND[rc4test]=../libcrypto libtestutil.a @@ -593,6 +589,10 @@ IF[{- !$disabled{tests} -}] INCLUDE[sm4_internal_test]=.. ../include ../apps/include ../crypto/include DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a + SOURCE[rc2test]=rc2test.c + INCLUDE[rc2test]=../include ../apps/include + DEPEND[rc2test]=../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/rc2test.c b/test/rc2test.c index 9ebc9ecdf5..7b965094fc 100644 --- a/test/rc2test.c +++ b/test/rc2test.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC2 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include "internal/nelem.h" #include "testutil.h" |