summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorNick Lewis <nick.lewis@usa.g4s.com>2014-08-11 22:56:46 -0400
committerRich Salz <rsalz@akamai.com>2014-08-12 11:29:20 -0400
commit9aaa7be8d4be38c0a13a64a0a8cf6c4774c45a0f (patch)
tree55c6d81a8629bc0b440a00ee69de8a8ed947594d /apps
parent2a1393a4a8746cf0ddd51c1938706025f3b58ef2 (diff)
PR 2580: dgst missing current SHA algorithms
Update the dgst.pod page to include SHA224...512 algorithms. Update apps/progs.pl to add them to the digest command table. Reviewed-by: Tim Hudson <tjh@cryptosoft.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/progs.h12
-rw-r--r--apps/progs.pl2
2 files changed, 13 insertions, 1 deletions
diff --git a/apps/progs.h b/apps/progs.h
index d79b974ad1..dd549e2b7f 100644
--- a/apps/progs.h
+++ b/apps/progs.h
@@ -172,6 +172,18 @@ FUNCTION functions[] = {
#ifndef OPENSSL_NO_RMD160
{FUNC_TYPE_MD,"rmd160",dgst_main},
#endif
+#ifndef OPENSSL_NO_SHA224
+ {FUNC_TYPE_MD,"sha224",dgst_main},
+#endif
+#ifndef OPENSSL_NO_SHA256
+ {FUNC_TYPE_MD,"sha256",dgst_main},
+#endif
+#ifndef OPENSSL_NO_SHA384
+ {FUNC_TYPE_MD,"sha384",dgst_main},
+#endif
+#ifndef OPENSSL_NO_SHA512
+ {FUNC_TYPE_MD,"sha512",dgst_main},
+#endif
#ifndef OPENSSL_NO_AES
{FUNC_TYPE_CIPHER,"aes-128-cbc",enc_main},
#endif
diff --git a/apps/progs.pl b/apps/progs.pl
index fa6258cf5e..2b1efd8fed 100644
--- a/apps/progs.pl
+++ b/apps/progs.pl
@@ -57,7 +57,7 @@ foreach (@ARGV)
{ print $str; }
}
-foreach ("md2","md4","md5","sha","sha1","mdc2","rmd160")
+foreach ("md2","md4","md5","sha","sha1","mdc2","rmd160","sha224","sha256","sha384","sha512")
{
push(@files,$_);
printf "#ifndef OPENSSL_NO_".uc($_)."\n\t{FUNC_TYPE_MD,\"".$_."\",dgst_main},\n#endif\n";