exclude disabled message digests
[openssl.git] / apps / progs.pl
index 1eed87390c6243cac55be32234cc43cfcdabf8af..d6a40edb91d2a87ee7cb1f7566d87b19b5bb6041 100644 (file)
@@ -44,7 +44,7 @@ foreach (@ARGV)
 foreach ("md2","md4","md5","sha","sha1","mdc2","rmd160")
        {
        push(@files,$_);
-       printf "\t{FUNC_TYPE_MD,\"%s\",dgst_main},\n",$_;
+       printf "#ifndef OPENSSL_NO_".uc($_)."\n\t{FUNC_TYPE_MD,\"".$_."\",dgst_main},\n#endif\n";
        }
 
 foreach (