]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix failing cms test when no-des is used
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 13 Feb 2023 11:58:33 +0000 (12:58 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 20 Feb 2023 05:03:53 +0000 (06:03 +0100)
The test tries to use DES but that may not be available.
But for the purpose of regression testing CVE-2023-0215
the cipher is not relevant, so we use AES-128 instead.

Fixes #20249

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/20276)

(cherry picked from commit c400a1fe477b44a5eacbad2be8d50f2eaa92925c)

test/recipes/80-test_cms.t

index 79ae1308eccd3a5b49f6f7813146e546a6d1db8c..adb60e14368645c007bb61d71fa6516ca24cc6f1 100644 (file)
@@ -590,7 +590,7 @@ with({ exit_checker => sub { return shift == 6; } },
     sub {
         ok(run(app(['openssl', 'cms', '-encrypt',
                     '-in', srctop_file("test", "smcont.txt"),
-                    '-stream', '-recip',
+                    '-aes128', '-stream', '-recip',
                     srctop_file("test/smime-certs", "badrsa.pem"),
                    ])),
             "Check failure during BIO setup with -stream is handled correctly");