]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/mac_meth.c
Implement EVP_MAC_do_all_ex()
[thirdparty/openssl.git] / crypto / evp / mac_meth.c
index e2bb016c0f63dd846802a91464c00be15c2667ad..e5eed33774ec480b4d4fdb2188f67d3c70c5706a 100644 (file)
@@ -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);
+}