util/perl/OpenSSL/config.pm: Don't detect removed directories in
authorRichard Levitte <levitte@openssl.org>
Mon, 2 Mar 2020 17:38:07 +0000 (18:38 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 28 Jun 2020 16:34:35 +0000 (18:34 +0200)
This is much better handled in Configure.

[There's another PR moving this to Configure, so this commit should
eventually disappear because rebase]

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11230)

util/perl/OpenSSL/config.pm

index c1bbd32fbfd394923cd4787da0b56b2c2c956bd2..0e8969c8e2165940c7ec917dd83ab77ee13e2474 100755 (executable)
@@ -241,19 +241,6 @@ sub expand {
     return $var;
 }
 
-# Add no-xxx if someone removed a crypto algorithm directory.
-# TODO: This should be moved to Configure.
-my @cryptodir = (
-    'aes', 'aria', 'bf', 'camellia', 'cast', 'des', 'dh', 'dsa', 'ec', 'hmac',
-    'idea', 'md2', 'md5', 'mdc2', 'rc2', 'rc4', 'rc5', 'ripemd', 'rsa',
-    'seed', 'sha', 'sm2', 'sm3', 'sm4'
-);
-sub remove_removed_crypto_directories {
-    foreach my $d ( @cryptodir ) {
-        $options .= " no-$d" if ! -d "$WHERE/crypto/$d";
-    }
-}
-
 # Look for ISC/SCO with its unique uname program
 sub is_sco_uname {
     open UNAME, "uname -X 2>/dev/null|" or return '';