X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fevp%2Fmac_meth.c;h=e5eed33774ec480b4d4fdb2188f67d3c70c5706a;hb=d1cafb083d0cb84b2081dd5ca4ba6bed05b8c6ac;hp=983b2dbd2ed98ef8d339698505fb9a03bdf7b4ee;hpb=e74bd29053a543ab4908ae8545b46f2e38c98bab;p=openssl.git diff --git a/crypto/evp/mac_meth.c b/crypto/evp/mac_meth.c index 983b2dbd2e..e5eed33774 100644 --- a/crypto/evp/mac_meth.c +++ b/crypto/evp/mac_meth.c @@ -173,6 +173,11 @@ const char *EVP_MAC_name(const EVP_MAC *mac) return mac->name; } +const OSSL_PROVIDER *EVP_MAC_provider(const EVP_MAC *mac) +{ + return mac->prov; +} + const OSSL_PARAM *EVP_MAC_gettable_params(const EVP_MAC *mac) { if (mac->gettable_params == NULL) @@ -193,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); +}