From 3f07fe09b568ab2ca83db39223907b2aebbfd300 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 29 Dec 2000 00:05:14 +0000 Subject: [PATCH] Enhancements to mkdef.pl: * detect "unknown" algorithms (any C macro starting with NO_ that is not explicitely mentioned in mkdef.pl as a known algorithm) and report. * add a number of algorithms that can be deselected. * look in ssl/kssl.h as well. * accept multiple whitespace (not just one SPC) in preprocessor lines. --- CHANGES | 5 ++++ util/mkdef.pl | 65 +++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 55 insertions(+), 15 deletions(-) diff --git a/CHANGES b/CHANGES index 28f71ba652..9704974907 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,11 @@ Changes between 0.9.6 and 0.9.7 [xx XXX 2000] + *) Enhance mkdef.pl to be more accepting about spacing in C preprocessor + lines, recognice more "algorithms" that can be deselected, and make + it complain about algorithm deselection that isn't recognised. + [Richard Levitte] + *) New ASN1 functions to handle sign, verify, digest, pack and unpack operations in terms of ASN1_ITEM. Modify existing wrappers to use new functions. Add NO_ASN1_OLD which can be set to remove diff --git a/util/mkdef.pl b/util/mkdef.pl index dc21310e47..961dff5b8f 100755 --- a/util/mkdef.pl +++ b/util/mkdef.pl @@ -75,9 +75,16 @@ my $safe_stack_def = 0; my @known_platforms = ( "__FreeBSD__", "VMS", "WIN16", "WIN32", "WINNT", "PERL5", "NeXT" ); my @known_algorithms = ( "RC2", "RC4", "RC5", "IDEA", "DES", "BF", - "CAST", "MD2", "MD4", "MD5", "SHA", "RIPEMD", - "MDC2", "RSA", "DSA", "DH", "HMAC", "FP_API", - "RIJNDAEL" ); + "CAST", "MD2", "MD4", "MD5", "SHA", "SHA0", "SHA1", + "RIPEMD", + "MDC2", "RSA", "DSA", "DH", "HMAC", "RIJNDAEL", + # Envelope "algorithms" + "EVP", "X509", "ASN1_TYPEDEFS", + # Helper "algorithms" + "BIO", "COMP", "BUFFER", "LHASH", "STACK", "ERR", + "LOCKING", + # External "algorithms" + "FP_API", "STDIO", "SOCK", "KRB5" ); my $options=""; open(IN,"