Deleted Added
full compact
progs.pl (160814) progs.pl (162911)
1#!/usr/local/bin/perl
2
3print "/* apps/progs.h */\n";
4print "/* automatically generated by progs.pl for openssl.c */\n\n";
5
6grep(s/^asn1pars$/asn1parse/,@ARGV);
7
8foreach (@ARGV)

--- 43 unchanged lines hidden (view full) ---

52 push(@files,$_);
53 printf "#ifndef OPENSSL_NO_".uc($_)."\n\t{FUNC_TYPE_MD,\"".$_."\",dgst_main},\n#endif\n";
54 }
55
56foreach (
57 "aes-128-cbc", "aes-128-ecb",
58 "aes-192-cbc", "aes-192-ecb",
59 "aes-256-cbc", "aes-256-ecb",
1#!/usr/local/bin/perl
2
3print "/* apps/progs.h */\n";
4print "/* automatically generated by progs.pl for openssl.c */\n\n";
5
6grep(s/^asn1pars$/asn1parse/,@ARGV);
7
8foreach (@ARGV)

--- 43 unchanged lines hidden (view full) ---

52 push(@files,$_);
53 printf "#ifndef OPENSSL_NO_".uc($_)."\n\t{FUNC_TYPE_MD,\"".$_."\",dgst_main},\n#endif\n";
54 }
55
56foreach (
57 "aes-128-cbc", "aes-128-ecb",
58 "aes-192-cbc", "aes-192-ecb",
59 "aes-256-cbc", "aes-256-ecb",
60 "camellia-128-cbc", "camellia-128-ecb",
61 "camellia-192-cbc", "camellia-192-ecb",
62 "camellia-256-cbc", "camellia-256-ecb",
60 "base64",
61 "des", "des3", "desx", "idea", "rc4", "rc4-40",
62 "rc2", "bf", "cast", "rc5",
63 "des-ecb", "des-ede", "des-ede3",
64 "des-cbc", "des-ede-cbc","des-ede3-cbc",
65 "des-cfb", "des-ede-cfb","des-ede3-cfb",
66 "des-ofb", "des-ede-ofb","des-ede3-ofb",
67 "idea-cbc","idea-ecb", "idea-cfb", "idea-ofb",
68 "rc2-cbc", "rc2-ecb", "rc2-cfb","rc2-ofb", "rc2-64-cbc", "rc2-40-cbc",
69 "bf-cbc", "bf-ecb", "bf-cfb", "bf-ofb",
70 "cast5-cbc","cast5-ecb", "cast5-cfb","cast5-ofb",
71 "cast-cbc", "rc5-cbc", "rc5-ecb", "rc5-cfb", "rc5-ofb")
72 {
73 push(@files,$_);
74
75 $t=sprintf("\t{FUNC_TYPE_CIPHER,\"%s\",enc_main},\n",$_);
76 if ($_ =~ /des/) { $t="#ifndef OPENSSL_NO_DES\n${t}#endif\n"; }
77 elsif ($_ =~ /aes/) { $t="#ifndef OPENSSL_NO_AES\n${t}#endif\n"; }
63 "base64",
64 "des", "des3", "desx", "idea", "rc4", "rc4-40",
65 "rc2", "bf", "cast", "rc5",
66 "des-ecb", "des-ede", "des-ede3",
67 "des-cbc", "des-ede-cbc","des-ede3-cbc",
68 "des-cfb", "des-ede-cfb","des-ede3-cfb",
69 "des-ofb", "des-ede-ofb","des-ede3-ofb",
70 "idea-cbc","idea-ecb", "idea-cfb", "idea-ofb",
71 "rc2-cbc", "rc2-ecb", "rc2-cfb","rc2-ofb", "rc2-64-cbc", "rc2-40-cbc",
72 "bf-cbc", "bf-ecb", "bf-cfb", "bf-ofb",
73 "cast5-cbc","cast5-ecb", "cast5-cfb","cast5-ofb",
74 "cast-cbc", "rc5-cbc", "rc5-ecb", "rc5-cfb", "rc5-ofb")
75 {
76 push(@files,$_);
77
78 $t=sprintf("\t{FUNC_TYPE_CIPHER,\"%s\",enc_main},\n",$_);
79 if ($_ =~ /des/) { $t="#ifndef OPENSSL_NO_DES\n${t}#endif\n"; }
80 elsif ($_ =~ /aes/) { $t="#ifndef OPENSSL_NO_AES\n${t}#endif\n"; }
81 elsif ($_ =~ /camellia/) { $t="#ifndef OPENSSL_NO_CAMELLIA\n${t}#endif\n"; }
78 elsif ($_ =~ /idea/) { $t="#ifndef OPENSSL_NO_IDEA\n${t}#endif\n"; }
79 elsif ($_ =~ /rc4/) { $t="#ifndef OPENSSL_NO_RC4\n${t}#endif\n"; }
80 elsif ($_ =~ /rc2/) { $t="#ifndef OPENSSL_NO_RC2\n${t}#endif\n"; }
81 elsif ($_ =~ /bf/) { $t="#ifndef OPENSSL_NO_BF\n${t}#endif\n"; }
82 elsif ($_ =~ /cast/) { $t="#ifndef OPENSSL_NO_CAST\n${t}#endif\n"; }
83 elsif ($_ =~ /rc5/) { $t="#ifndef OPENSSL_NO_RC5\n${t}#endif\n"; }
84 print $t;
85 }
86
87print "\t{0,NULL,NULL}\n\t};\n";
82 elsif ($_ =~ /idea/) { $t="#ifndef OPENSSL_NO_IDEA\n${t}#endif\n"; }
83 elsif ($_ =~ /rc4/) { $t="#ifndef OPENSSL_NO_RC4\n${t}#endif\n"; }
84 elsif ($_ =~ /rc2/) { $t="#ifndef OPENSSL_NO_RC2\n${t}#endif\n"; }
85 elsif ($_ =~ /bf/) { $t="#ifndef OPENSSL_NO_BF\n${t}#endif\n"; }
86 elsif ($_ =~ /cast/) { $t="#ifndef OPENSSL_NO_CAST\n${t}#endif\n"; }
87 elsif ($_ =~ /rc5/) { $t="#ifndef OPENSSL_NO_RC5\n${t}#endif\n"; }
88 print $t;
89 }
90
91print "\t{0,NULL,NULL}\n\t};\n";