diff options
author | Rich Salz <rsalz@akamai.com> | 2021-01-28 21:47:53 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-02-03 11:12:16 +0100 |
commit | 1409b5f664f21a52d23d7b9d0e0f962e2bde2b9e (patch) | |
tree | 230f2b26fa84ffc18160f6e7e3037027dd6e490b /include | |
parent | Add diacritics to my name in CHANGES.md (diff) | |
download | openssl-1409b5f664f21a52d23d7b9d0e0f962e2bde2b9e.tar.xz openssl-1409b5f664f21a52d23d7b9d0e0f962e2bde2b9e.zip |
Deprecate EVP_MD_CTX_{set_}update_fn()
They are still used internally in legacy code.
Also fixed up some minor things in EVP_DigestInit.pod
Fixes: #14003
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14008)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/evp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 3b967202da..f5e3592c30 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -533,11 +533,15 @@ int EVP_MD_block_size(const EVP_MD *md); unsigned long EVP_MD_flags(const EVP_MD *md); const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); +# ifndef OPENSSL_NO_DEPRECATED_3_0 +OSSL_DEPRECATEDIN_3_0 int (*EVP_MD_CTX_update_fn(EVP_MD_CTX *ctx))(EVP_MD_CTX *ctx, const void *data, size_t count); +OSSL_DEPRECATEDIN_3_0 void EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx, int (*update) (EVP_MD_CTX *ctx, const void *data, size_t count)); +# endif # define EVP_MD_CTX_name(e) EVP_MD_name(EVP_MD_CTX_md(e)) # define EVP_MD_CTX_size(e) EVP_MD_size(EVP_MD_CTX_md(e)) # define EVP_MD_CTX_block_size(e) EVP_MD_block_size(EVP_MD_CTX_md(e)) |