Skip to content

Commit

Permalink
Add test case for #21986
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from #21988)

(cherry picked from commit c870a46)
  • Loading branch information
paulidale committed Sep 8, 2023
1 parent 2482061 commit 41136a9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/recipes/80-test_cms.t
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ my ($no_des, $no_dh, $no_dsa, $no_ec, $no_ec2m, $no_rc2, $no_zlib)

$no_rc2 = 1 if disabled("legacy");

plan tests => 16;
plan tests => 17

ok(run(test(["pkcs7_test"])), "test pkcs7");

Expand Down Expand Up @@ -994,3 +994,13 @@ with({ exit_checker => sub { return shift == 6; } },
])),
"Check failure during BIO setup with -stream is handled correctly");
});

# Test case for return value mis-check reported in #21986
with({ exit_checker => sub { return shift == 3; } },
sub {
ok(run(app(['openssl', 'cms', '-sign',
'-in', srctop_file("test", "smcont.txt"),
'-signer', srctop_file("test/smime-certs", "smdsa1.pem"),
'-md', 'SHAKE256'])),
"issue#21986");
});

0 comments on commit 41136a9

Please sign in to comment.