Skip Menu |

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 121086
Status: resolved
Priority: 0/
Queue: Net-SSLeay

People
Owner: MIKEM [...] cpan.org
Requestors: CHORNY [...] cpan.org
JDDPAUSE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 1.81
  • 1.84
Fixed in: 1.85



Subject: d2i_X509_bio test failure with openssl-1.1.0e
Using openssl-1.1.0e, compiled with cl on Windows and configured with VC-WIN32, the test d2i_X509_bio from 33_x509_create_cert.t is failing: perl -I blib\lib -I blib\arch t\local\33_x509_create_cert.t ... not ok 123 - d2i_X509_bio Given my poor knowledge of openssl internals, I lazily skipped it for any openssl version >= 0x1010005f, but may I ask some experts to look closer into this. Thanks. Patch in attachement.
Subject: 33_x509_create_cert.t.diff
diff -Naur Net-SSLeay-1.81.old/t/local/33_x509_create_cert.t Net-SSLeay-1.81.new/t/local/33_x509_create_cert.t --- Net-SSLeay-1.81.old/t/local/33_x509_create_cert.t 2017-01-08 04:34:40.000000000 +0100 +++ Net-SSLeay-1.81.new/t/local/33_x509_create_cert.t 2017-04-12 13:40:02.505281900 +0200 @@ -295,5 +295,8 @@ my $x509_der = File::Spec->catfile('t', 'data', 'testcert_simple.crt.der'); ok(my $bio2 = Net::SSLeay::BIO_new_file($x509_der, 'r'), "BIO_new_file"); - ok(my $x509 = Net::SSLeay::d2i_X509_bio($bio2), "d2i_X509_bio"); + SKIP: { + skip 'd2i_X509_bio fails for openssl-1.1.0e and later', 1 unless Net::SSLeay::SSLeay < 0x1010005f; + ok(my $x509 = Net::SSLeay::d2i_X509_bio($bio2), "d2i_X509_bio"); + } }
Subject: Re: [rt.cpan.org #121086] d2i_X509_bio test failure with openssl-1.1.0e
Date: Wed, 12 Apr 2017 20:55:21 +0100
To: bug-Net-SSLeay [...] rt.cpan.org
From: Mike McCauley <mikem [...] airspayce.com>
Thanks. I won't be able to look at this for about 6 weeks Cheers Sent from my iPhone Show quoted text
> On 12 Apr 2017, at 1:07 pm, Jean-Damien Durand via RT <bug-Net-SSLeay@rt.cpan.org> wrote: > > Wed Apr 12 08:06:53 2017: Request 121086 was acted upon. > Transaction: Ticket created by JDDPAUSE > Queue: Net-SSLeay > Subject: d2i_X509_bio test failure with openssl-1.1.0e > Broken in: 1.81 > Severity: (no value) > Owner: Nobody > Requestors: JDDPAUSE@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121086 > > > > Using openssl-1.1.0e, compiled with cl on Windows and configured with VC-WIN32, the test d2i_X509_bio from 33_x509_create_cert.t is failing: > > perl -I blib\lib -I blib\arch t\local\33_x509_create_cert.t > ... > not ok 123 - d2i_X509_bio > > Given my poor knowledge of openssl internals, I lazily skipped it for any openssl version >= 0x1010005f, but may I ask some experts to look closer into this. Thanks. > > Patch in attachement. > > diff -Naur Net-SSLeay-1.81.old/t/local/33_x509_create_cert.t Net-SSLeay-1.81.new/t/local/33_x509_create_cert.t --- Net-SSLeay-1.81.old/t/local/33_x509_create_cert.t 2017-01-08 04:34:40.000000000 +0100 +++ Net-SSLeay-1.81.new/t/local/33_x509_create_cert.t 2017-04-12 13:40:02.505281900 +0200 @@ -295,5 +295,8 @@ my $x509_der = File::Spec->catfile('t', 'data', 'testcert_simple.crt.der'); ok(my $bio2 = Net::SSLeay::BIO_new_file($x509_der, 'r'), "BIO_new_file"); - ok(my $x509 = Net::SSLeay::d2i_X509_bio($bio2), "d2i_X509_bio"); + SKIP: { + skip 'd2i_X509_bio fails for openssl-1.1.0e and later', 1 unless Net::SSLeay::SSLeay < 0x1010005f; + ok(my $x509 = Net::SSLeay::d2i_X509_bio($bio2), "d2i_X509_bio"); + } }
RT-Send-CC: mikem [...] airspayce.com
I see same error on Strawberry 5.26.0. openssl 1.1.0f Net::SSLeay::print_errs() returns # 2032: 1 - error:0D06B08E:asn1 encoding routines:asn1_d2i_read_bio:not enough data -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #121086] d2i_X509_bio test failure with openssl-1.1.0e
Date: Wed, 24 Jan 2018 11:16:41 +1000
To: bug-Net-SSLeay [...] rt.cpan.org
From: Mike McCauley <mikem [...] airspayce.com>
Thanks, the patch has been applied for the next version and is available in SVN 517. Cheers. On Wednesday, 24 January 2018 10:02:25 AEST Alexandr Ciornii via RT wrote: Show quoted text
> Queue: Net-SSLeay > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121086 > > > I see same error on Strawberry 5.26.0. openssl 1.1.0f > Net::SSLeay::print_errs() returns > # 2032: 1 - error:0D06B08E:asn1 encoding routines:asn1_d2i_read_bio:not > enough data
-- Mike McCauley VK4AMM mikem@airspayce.com Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.airspayce.com Phone +61 7 5598-7474