Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
openssl-1_0_0.32469
openssl-CVE-2023-0215-2of4.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssl-CVE-2023-0215-2of4.patch of Package openssl-1_0_0.32469
commit 21639475465737d58abfad50b69e5dc657a0c275 Author: Matt Caswell <matt@openssl.org> Date: Wed Dec 14 17:15:18 2022 +0000 Check CMS failure during BIO setup with -stream is handled correctly Test for the issue fixed in the previous commit --- test/recipes/80-test_cms.t | 15 +++++++++++++-- test/smime-certs/badrsa.pem | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) --- a/test/recipes/80-test_cms.t +++ b/test/recipes/80-test_cms.t @@ -7,7 +7,7 @@ use POSIX; use File::Spec::Functions qw/catfile/; use File::Compare qw/compare_text/; use Test::More; -use OpenSSL::Test qw/:DEFAULT top_dir top_file/; +use OpenSSL::Test qw/:DEFAULT top_dir top_file with/; setup("test_cms"); @@ -17,7 +17,7 @@ my $no_ec = run(app(["openssl", "no-e my $no_ec2m = run(app(["openssl", "no-ec2m"], stdout => undef)); my $no_ecdh = run(app(["openssl", "no-ecdh"], stdout => undef)); -plan tests => 4; +plan tests => 5; my @smime_pkcs7_tests = ( @@ -475,3 +475,14 @@ sub check_availability { if ($no_ec2m && $tnam =~ /K-283/); return ""; } + +# Check that we get the expected failure return code +with({ exit_checker => sub { return shift == 6; } }, + sub { + ok(run(app(['openssl', 'cms', '-encrypt', + '-in', srctop_file("test", "smcont.txt"), + '-stream', '-recip', + srctop_file("test/smime-certs", "badrsa.pem"), + ])), + "Check failure during BIO setup with -stream is handled correctly"); + }); --- /dev/null +++ b/test/smime-certs/badrsa.pem @@ -0,0 +1,18 @@ +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIToTV4Z0iuK08vZP20oTh//hC8BDANBgkqhkiG9w0BAQ0FADAtMSswKQYD +VfcDEyJTYW1wbGUgTEFN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j8BAwrKKaFvdlZS9k1Ypb2+UQY75mKJE9Bg= +-----END CERTIFICATE-----
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor