diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-14 08:35:12 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-16 07:06:14 +1000 |
commit | 28c690cb7dd80c15c9fa45df518c555c66ad67f8 (patch) | |
tree | cfd80c4bca2f1d903826b432a312c13eefe79bc4 /crypto | |
parent | fb8ce41398bae4e0b1fdba03a281b93daddc9eaf (diff) |
Deprecate the low level SEED functions
Use of the low level SEED 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/10833)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/e_seed.c | 6 | ||||
-rw-r--r-- | crypto/seed/seed.c | 6 | ||||
-rw-r--r-- | crypto/seed/seed_cbc.c | 6 | ||||
-rw-r--r-- | crypto/seed/seed_cfb.c | 6 | ||||
-rw-r--r-- | crypto/seed/seed_ecb.c | 6 | ||||
-rw-r--r-- | crypto/seed/seed_ofb.c | 6 |
6 files changed, 36 insertions, 0 deletions
diff --git a/crypto/evp/e_seed.c b/crypto/evp/e_seed.c index 9a9938deaf..224003d9dd 100644 --- a/crypto/evp/e_seed.c +++ b/crypto/evp/e_seed.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * SEED low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/opensslconf.h> #ifdef OPENSSL_NO_SEED NON_EMPTY_TRANSLATION_UNIT diff --git a/crypto/seed/seed.c b/crypto/seed/seed.c index 224fb1f8af..492853d5c8 100644 --- a/crypto/seed/seed.c +++ b/crypto/seed/seed.c @@ -34,6 +34,12 @@ */ #ifndef OPENSSL_NO_SEED +/* + * SEED low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + # include <stdio.h> # include <stdlib.h> # include <string.h> diff --git a/crypto/seed/seed_cbc.c b/crypto/seed/seed_cbc.c index 26116ab727..59ebbeef58 100644 --- a/crypto/seed/seed_cbc.c +++ b/crypto/seed/seed_cbc.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * SEED low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/seed.h> #include <openssl/modes.h> diff --git a/crypto/seed/seed_cfb.c b/crypto/seed/seed_cfb.c index b8ee9e9151..0e86e1696c 100644 --- a/crypto/seed/seed_cfb.c +++ b/crypto/seed/seed_cfb.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * SEED low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/seed.h> #include <openssl/modes.h> diff --git a/crypto/seed/seed_ecb.c b/crypto/seed/seed_ecb.c index d7f34ec99a..b7ea0d4349 100644 --- a/crypto/seed/seed_ecb.c +++ b/crypto/seed/seed_ecb.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * SEED low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/seed.h> void SEED_ecb_encrypt(const unsigned char *in, unsigned char *out, diff --git a/crypto/seed/seed_ofb.c b/crypto/seed/seed_ofb.c index e556c440ea..3bc6c17d4d 100644 --- a/crypto/seed/seed_ofb.c +++ b/crypto/seed/seed_ofb.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * SEED low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/seed.h> #include <openssl/modes.h> |