diff options
author | Matt Caswell <matt@openssl.org> | 2019-09-24 16:17:15 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-09-25 13:06:21 +0200 |
commit | e6879a31ef597f1b9608c7897087203d829d47c2 (patch) | |
tree | d0e64b7fc9d2cf996fbc229ca382b2fb604564c4 /apps | |
parent | Remove the engine parameter from the provider MAC documentations (diff) | |
download | openssl-e6879a31ef597f1b9608c7897087203d829d47c2.tar.xz openssl-e6879a31ef597f1b9608c7897087203d829d47c2.zip |
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 'apps')
-rw-r--r-- | apps/list.c | 4 | ||||
-rw-r--r-- | apps/provider.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/list.c b/apps/list.c index 2b44cac71b..5348cc68dd 100644 --- a/apps/list.c +++ b/apps/list.c @@ -139,9 +139,9 @@ static void list_digests(void) print_param_types("retrievable algorithm parameters", EVP_MD_gettable_params(m), 4); print_param_types("retrievable operation parameters", - EVP_MD_CTX_gettable_params(m), 4); + EVP_MD_gettable_ctx_params(m), 4); print_param_types("settable operation parameters", - EVP_MD_CTX_settable_params(m), 4); + EVP_MD_settable_ctx_params(m), 4); } } sk_EVP_MD_pop_free(digests, EVP_MD_free); diff --git a/apps/provider.c b/apps/provider.c index fe5ca1d1f7..29afdcef48 100644 --- a/apps/provider.c +++ b/apps/provider.c @@ -117,8 +117,8 @@ static void do_digest(EVP_MD *digest, void *meta) { do_method(digest, EVP_MD_name(digest), EVP_MD_gettable_params(digest), - EVP_MD_CTX_gettable_params(digest), - EVP_MD_CTX_settable_params(digest), + EVP_MD_gettable_ctx_params(digest), + EVP_MD_settable_ctx_params(digest), meta); } |