diff options
author | Matt Caswell <matt@openssl.org> | 2019-09-24 15:17:15 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-09-25 12:06:21 +0100 |
commit | e6879a31ef597f1b9608c7897087203d829d47c2 (patch) | |
tree | d0e64b7fc9d2cf996fbc229ca382b2fb604564c4 /include | |
parent | 5a2a2f66c5e79895400c6e895ce7f8d48db96bb8 (diff) |
Make EVP_MD_CTX_[gettable|settable]_params() take an EVP_MD_CTX
EVP_MD_CTX_gettable_params() and EVP_MD_CTX_settable_params() were
confusingly named because they did not take an EVP_MD_CTX parameter.
In addition we add the functions EVP_MD_gettable_ctx_params() and
EVP_MD_settable_ctx_params() which do the same thing but are passed
an EVP_MD object instead.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9998)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/evp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index bbdc2b75c1..b65328df6d 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -555,8 +555,10 @@ int EVP_MD_get_params(const EVP_MD *digest, OSSL_PARAM params[]); int EVP_MD_CTX_set_params(EVP_MD_CTX *ctx, const OSSL_PARAM params[]); int EVP_MD_CTX_get_params(EVP_MD_CTX *ctx, OSSL_PARAM params[]); const OSSL_PARAM *EVP_MD_gettable_params(const EVP_MD *digest); -const OSSL_PARAM *EVP_MD_CTX_settable_params(const EVP_MD *digest); -const OSSL_PARAM *EVP_MD_CTX_gettable_params(const EVP_MD *digest); +const OSSL_PARAM *EVP_MD_settable_ctx_params(const EVP_MD *md); +const OSSL_PARAM *EVP_MD_gettable_ctx_params(const EVP_MD *md); +const OSSL_PARAM *EVP_MD_CTX_settable_params(EVP_MD_CTX *ctx); +const OSSL_PARAM *EVP_MD_CTX_gettable_params(EVP_MD_CTX *ctx); int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2); EVP_MD_CTX *EVP_MD_CTX_new(void); int EVP_MD_CTX_reset(EVP_MD_CTX *ctx); |