projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
EVP: add missing common functionality
[oweals/openssl.git]
/
crypto
/
evp
/
evp_lib.c
diff --git
a/crypto/evp/evp_lib.c
b/crypto/evp/evp_lib.c
index c567b2efee40d1083902e1d5bf2ea20ff9a2e850..f87793d3ed1f972be6fd90a03448ddb06e153e49 100644
(file)
--- a/
crypto/evp/evp_lib.c
+++ b/
crypto/evp/evp_lib.c
@@
-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)