summaryrefslogtreecommitdiff
path: root/providers/implementations/ciphers/cipher_tdes.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-16 13:50:03 +1000
committerPauli <paul.dale@oracle.com>2020-01-25 09:30:59 +1000
commitc6fec81b88131d08c1022504ccf6effa95497afb (patch)
tree8f9875a9f3a83fa13c6404faa8b7fa71f2c1f6f6 /providers/implementations/ciphers/cipher_tdes.c
parentf6edde4f06d2cadaf0949399e5df0b6f6a5b3598 (diff)
downloadopenssl-new-c6fec81b88131d08c1022504ccf6effa95497afb.tar.gz
Deprecate the low level DES functions.
Use of the low level DES 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/10858)
Diffstat (limited to 'providers/implementations/ciphers/cipher_tdes.c')
-rw-r--r--providers/implementations/ciphers/cipher_tdes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/providers/implementations/ciphers/cipher_tdes.c b/providers/implementations/ciphers/cipher_tdes.c
index 80afcd5fd9..ea0c987a80 100644
--- a/providers/implementations/ciphers/cipher_tdes.c
+++ b/providers/implementations/ciphers/cipher_tdes.c
@@ -7,6 +7,12 @@
* https://www.openssl.org/source/license.html
*/
+/*
+ * DES low level APIs are deprecated for public use, but still ok for internal
+ * use.
+ */
+#include "internal/deprecated.h"
+
#include "prov/ciphercommon.h"
#include "cipher_tdes.h"
#include <openssl/rand.h>