From: Tomas Mraz Date: Wed, 23 Oct 2019 10:48:18 +0000 (+0200) Subject: 20-test_enc_more.t: Replace deprecated -ciphers option with -list X-Git-Tag: openssl-3.0.0-alpha1~1084 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=40dfb8c70514006868344eaabf057aac6a428145;p=oweals%2Fopenssl.git 20-test_enc_more.t: Replace deprecated -ciphers option with -list [extended tests] Reviewed-by: Richard Levitte Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/10242) --- diff --git a/test/recipes/20-test_enc_more.t b/test/recipes/20-test_enc_more.t index 4ebb0e413c..8f37bee250 100644 --- a/test/recipes/20-test_enc_more.t +++ b/test/recipes/20-test_enc_more.t @@ -30,14 +30,14 @@ my $ciphersstatus = undef; my @ciphers = grep(! /wrap|^$|^[^-]/, (map { split /\s+/ } - run(app([$cmd, "enc", "-ciphers"]), + run(app([$cmd, "enc", "-list"]), capture => 1, statusvar => \$ciphersstatus))); plan tests => 2 + scalar @ciphers; SKIP: { skip "Problems getting ciphers...", 1 + scalar(@ciphers) - unless ok($ciphersstatus, "Running 'openssl enc -ciphers'"); + unless ok($ciphersstatus, "Running 'openssl enc -list'"); unless (ok(copy($testsrc, $plaintext), "Copying $testsrc to $plaintext")) { diag($!); skip "Not initialized, skipping...", scalar(@ciphers);