]> 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:01:41 +0000 (06:01 +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)

test/recipes/80-test_cms.t

index c4cd53b8f3b7fd6ada1716f3e48b6a93ad860ba4..25b0238f8550c9be15efd8d0e8b5ee68799ff396 100644 (file)
@@ -1135,7 +1135,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");