summaryrefslogtreecommitdiffstats
path: root/crypto/evp/mac_meth.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-06-04 18:17:49 +0200
committerRichard Levitte <levitte@openssl.org>2019-08-15 22:12:25 +0200
commitd1cafb083d0cb84b2081dd5ca4ba6bed05b8c6ac (patch)
tree78b5770ff0ce4f56e1b6ac2afc913003748e552c /crypto/evp/mac_meth.c
parent7dd0f299387bac79c304dc7cb8056cd4684fb91f (diff)
Implement EVP_MAC_do_all_ex()
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8877)
Diffstat (limited to 'crypto/evp/mac_meth.c')
-rw-r--r--crypto/evp/mac_meth.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/evp/mac_meth.c b/crypto/evp/mac_meth.c
index e2bb016c0f..e5eed33774 100644
--- a/crypto/evp/mac_meth.c
+++ b/crypto/evp/mac_meth.c
@@ -198,3 +198,12 @@ const OSSL_PARAM *EVP_MAC_CTX_settable_params(const EVP_MAC *mac)
return NULL;
return mac->settable_ctx_params();
}
+
+void EVP_MAC_do_all_ex(OPENSSL_CTX *libctx,
+ void (*fn)(EVP_MAC *mac, void *arg),
+ void *arg)
+{
+ evp_generic_do_all(libctx, OSSL_OP_MAC,
+ (void (*)(void *, void *))fn, arg,
+ evp_mac_from_dispatch, evp_mac_free);
+}