summaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_enc.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-06-09 07:52:09 +0200
committerRichard Levitte <levitte@openssl.org>2021-06-15 16:21:32 +0200
commitcd770738796c591f93b2db630bab57cd8d3d5796 (patch)
treeeb686e73390a47e16dfa426b2e656650f809ae46 /crypto/evp/evp_enc.c
parentRefactor evp_generic_do_all() to behave like evp_generic_fetch() (diff)
downloadopenssl-cd770738796c591f93b2db630bab57cd8d3d5796.tar.xz
openssl-cd770738796c591f93b2db630bab57cd8d3d5796.zip
Adapt all public EVP_XXX_do_all_provided() for the changed evp_generic_do_all()
Fixes #15538 Fixes #14837 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15604)
Diffstat (limited to 'crypto/evp/evp_enc.c')
-rw-r--r--crypto/evp/evp_enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/evp/evp_enc.c b/crypto/evp/evp_enc.c
index 5188e73602..3a8e2c643e 100644
--- a/crypto/evp/evp_enc.c
+++ b/crypto/evp/evp_enc.c
@@ -1649,5 +1649,6 @@ void EVP_CIPHER_do_all_provided(OSSL_LIB_CTX *libctx,
{
evp_generic_do_all(libctx, OSSL_OP_CIPHER,
(void (*)(void *, void *))fn, arg,
- evp_cipher_from_algorithm, evp_cipher_free);
+ evp_cipher_from_algorithm, evp_cipher_up_ref,
+ evp_cipher_free);
}