- "idea-cbc","idea-ecb", "idea-cfb", "idea-ofb",
- "rc2-cbc", "rc2-ecb", "rc2-cfb", "rc2-ofb",
- "bf-cbc", "bf-ecb", "bf-cfb", "bf-ofb")
- {
- push(@files,$_);
-
- $t=sprintf("\t{FUNC_TYPE_CIPHER,\"%s\",enc_main},\n",$_);
- if ($_ =~ /des/) { $t="#ifndef NO_DES\n${t}#endif\n"; }
- elsif ($_ =~ /idea/) { $t="#ifndef NO_IDEA\n${t}#endif\n"; }
- elsif ($_ =~ /rc4/) { $t="#ifndef NO_RC4\n${t}#endif\n"; }
- elsif ($_ =~ /rc2/) { $t="#ifndef NO_RC2\n${t}#endif\n"; }
- elsif ($_ =~ /bf/) { $t="#ifndef NO_BLOWFISH\n${t}#endif\n"; }
- print $t;
+ "idea-cbc","idea-ecb", "idea-cfb", "idea-ofb",
+ "seed-cbc","seed-ecb", "seed-cfb", "seed-ofb",
+ "rc2-cbc", "rc2-ecb", "rc2-cfb","rc2-ofb", "rc2-64-cbc", "rc2-40-cbc",
+ "bf-cbc", "bf-ecb", "bf-cfb", "bf-ofb",
+ "cast5-cbc","cast5-ecb", "cast5-cfb","cast5-ofb",
+ "cast-cbc", "rc5-cbc", "rc5-ecb", "rc5-cfb", "rc5-ofb"
+) {
+ $str=" { FT_cipher, \"$_\", enc_main, enc_options },\n";
+ if (/des/) {
+ printf "#ifndef OPENSSL_NO_DES\n${str}#endif\n";
+ } elsif (/aes/) {
+ printf "#ifndef OPENSSL_NO_AES\n${str}#endif\n";
+ } elsif (/camellia/) {
+ printf "#ifndef OPENSSL_NO_CAMELLIA\n${str}#endif\n";
+ } elsif (/idea/) {
+ printf "#ifndef OPENSSL_NO_IDEA\n${str}#endif\n";
+ } elsif (/seed/) {
+ printf "#ifndef OPENSSL_NO_SEED\n${str}#endif\n";
+ } elsif (/rc4/) {
+ printf "#ifndef OPENSSL_NO_RC4\n${str}#endif\n";
+ } elsif (/rc2/) {
+ printf "#ifndef OPENSSL_NO_RC2\n${str}#endif\n";
+ } elsif (/bf/) {
+ printf "#ifndef OPENSSL_NO_BF\n${str}#endif\n";
+ } elsif (/cast/) {
+ printf "#ifndef OPENSSL_NO_CAST\n${str}#endif\n";
+ } elsif (/rc5/) {
+ printf "#ifndef OPENSSL_NO_RC5\n${str}#endif\n";
+ } elsif (/zlib/) {
+ printf "#ifdef ZLIB\n${str}#endif\n";
+ } else {
+ print $str;