]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/mac_lib.c
EVP: add functions that return the name number
[thirdparty/openssl.git] / crypto / evp / mac_lib.c
index 8581853802c25d1f74d133ff77ac886d6ae3d1f6..07ed1c8749408768092f1e3984210a73f131fbe5 100644 (file)
@@ -158,6 +158,11 @@ int EVP_MAC_CTX_set_params(EVP_MAC_CTX *ctx, const OSSL_PARAM params[])
     return 1;
 }
 
+int EVP_MAC_number(const EVP_MAC *mac)
+{
+    return mac->name_id;
+}
+
 int EVP_MAC_is_a(const EVP_MAC *mac, const char *name)
 {
     return evp_is_a(mac->prov, mac->name_id, name);