summaryrefslogtreecommitdiffstats
path: root/providers/implementations/ciphers/cipher_rc2_hw.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-14 00:15:18 +0100
committerPauli <paul.dale@oracle.com>2020-01-15 22:07:27 +0100
commitee2993abd0830ec27a2dd49e07db8d0eb5f3e579 (patch)
tree9c789bbe5b362cc30edaacac00ca8acd21c58f69 /providers/implementations/ciphers/cipher_rc2_hw.c
parentrc2: fix preprocessor indentation (diff)
downloadopenssl-ee2993abd0830ec27a2dd49e07db8d0eb5f3e579.tar.xz
openssl-ee2993abd0830ec27a2dd49e07db8d0eb5f3e579.zip
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 'providers/implementations/ciphers/cipher_rc2_hw.c')
-rw-r--r--providers/implementations/ciphers/cipher_rc2_hw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/providers/implementations/ciphers/cipher_rc2_hw.c b/providers/implementations/ciphers/cipher_rc2_hw.c
index 83d7560d41..5f0d576c25 100644
--- a/providers/implementations/ciphers/cipher_rc2_hw.c
+++ b/providers/implementations/ciphers/cipher_rc2_hw.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 "cipher_rc2.h"
static int cipher_hw_rc2_initkey(PROV_CIPHER_CTX *ctx,