Commit bb4cc75b authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix no-rc2 in the CMS test



The CMS test uses some RC2 keys which should be skipped if the RC2 is
disabled.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent c4aede20
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -13,7 +13,8 @@ setup("test_cms");

my $smdir    = srctop_dir("test", "smime-certs");
my $smcont   = srctop_file("test", "smcont.txt");
my ($no_dh, $no_ec, $no_ec2m, $no_zlib) = disabled qw/dh ec ec2m zlib/;
my ($no_dh, $no_ec, $no_ec2m, $no_rc2, $no_zlib)
    = disabled qw/dh ec ec2m rc2 zlib/;

plan tests => 4;

@@ -472,5 +473,8 @@ sub check_availability {
        if ($no_ec2m && $tnam =~ /K-283/);
    return "$tnam: skipped, DH disabled\n"
        if ($no_dh && $tnam =~ /X9\.42/);
    return "$tnam: skipped, RC2 disabled\n"
        if ($no_rc2 && $tnam =~ /RC2/);

    return "";
}