aboutsummaryrefslogtreecommitdiff
path: root/util/mkdef.pl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2004-05-19 17:03:59 +0000
committerDr. Stephen Henson <steve@openssl.org>2004-05-19 17:03:59 +0000
commit665560e9a47dacdeabd138880288f39164948ba8 (patch)
treef3f1f2aa12e1a067c94301fdf6781b76f05b7074 /util/mkdef.pl
parentc4fc8b5bf40a4aeef8715d4ad0dbabb1d017918e (diff)
downloadopenssl-665560e9a47dacdeabd138880288f39164948ba8.zip
openssl-665560e9a47dacdeabd138880288f39164948ba8.tar.gz
openssl-665560e9a47dacdeabd138880288f39164948ba8.tar.bz2
Add SHA256 and SHA512 algorithms to mkdef.pl.
Fix mkdef.pl script to avoid infinite loop when parsing sha.h.
Diffstat (limited to 'util/mkdef.pl')
-rwxr-xr-xutil/mkdef.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/mkdef.pl b/util/mkdef.pl
index ddc33c1..c4cfa47 100755
--- a/util/mkdef.pl
+++ b/util/mkdef.pl
@@ -83,7 +83,7 @@ my @known_platforms = ( "__FreeBSD__", "PERL5", "NeXT",
my @known_ossl_platforms = ( "VMS", "WIN16", "WIN32", "WINNT", "OS2" );
my @known_algorithms = ( "RC2", "RC4", "RC5", "IDEA", "DES", "BF",
"CAST", "MD2", "MD4", "MD5", "SHA", "SHA0", "SHA1",
- "RIPEMD",
+ "SHA256", "SHA512", "RIPEMD",
"MDC2", "RSA", "DSA", "DH", "EC", "ECDH", "ECDSA", "HMAC", "AES",
# Envelope "algorithms"
"EVP", "X509", "ASN1_TYPEDEFS",
@@ -511,7 +511,7 @@ sub do_defs
}
} elsif (/^\#\s*endif/) {
my $tag_i = $#tag;
- while($tag[$tag_i] ne "-") {
+ while($tag_i > 0 && $tag[$tag_i] ne "-") {
my $t=$tag[$tag_i];
print STDERR "DEBUG: \$t=\"$t\"\n" if $debug;
if ($tag{$t}==2) {