EVP: add missing common functionality
[openssl.git] / crypto / evp / evp_lib.c
index c567b2efee40d1083902e1d5bf2ea20ff9a2e850..f87793d3ed1f972be6fd90a03448ddb06e153e49 100644 (file)
@@ -573,6 +573,11 @@ int EVP_CIPHER_mode(const EVP_CIPHER *cipher)
     return ok != 0 ? (int)v : 0;
 }
 
+int EVP_MD_is_a(const EVP_MD *md, const char *name)
+{
+    return evp_is_a(md->prov, md->name_id, name);
+}
+
 const char *EVP_MD_name(const EVP_MD *md)
 {
     if (md->prov != NULL)