summaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-04-10 10:30:27 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-04-10 10:30:27 +0000
commit19ae090787b7897182a47ae8c38a0c1da9307738 (patch)
tree5da3a7c6dd7570615243ab2d01c55d62a64ab63e /crypto/evp/evp_lib.c
parentdb3076621b8341e6270fc9ce0a0ccae011640299 (diff)
Print out registered digest names in dgst utility instead of hard
coding them. Modify EVP_MD_do_all() to include registered digest name. This is a modified version of part of PR#1887.
Diffstat (limited to 'crypto/evp/evp_lib.c')
-rw-r--r--crypto/evp/evp_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/evp/evp_lib.c b/crypto/evp/evp_lib.c
index d815bc6d6f..b92a6626fa 100644
--- a/crypto/evp/evp_lib.c
+++ b/crypto/evp/evp_lib.c
@@ -263,6 +263,11 @@ int EVP_MD_size(const EVP_MD *md)
return md->md_size;
}
+unsigned long EVP_MD_flags(const EVP_MD *md)
+ {
+ return md->flags;
+ }
+
const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx)
{
if (!ctx)