Skip Menu |

This queue is for tickets about the Crypt-SMIME CPAN distribution.

Report information
The Basics
Id: 124522
Status: resolved
Priority: 0/
Queue: Crypt-SMIME

People
Owner: mikage [...] ymir.co.jp
Requestors: Thomas.Eckardt [...] thockar.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.24
Fixed in: 0.25



Subject: Crypt::SMIME 0.24
Date: Thu, 22 Feb 2018 09:20:40 +0400
To: bug-Crypt-SMIME [...] rt.cpan.org
From: "Thomas Eckardt" <thomas.eckardt [...] thockar.com>
Subject: Crypt::SMIME 0.24
Hello, depending on the used openssl lib the test t/03-chained-certs.t may fail, because the test regex is is case sensitive. test output: ..... t/03-chained-certs.t .. # Using `C:/perl/c/lib/pkgconfig/../../bin/openssl.exe' to generate a keypair t/03-chained-certs.t .. 1/15 # Failed test 'check must fail with exception' # at t/03-chained-certs.t line 221. # expecting: Regexp ((?^:CMS_SIGNERINFO_VERIFY_CERT)) # found: Crypt::SMIME#check: failed to check the signature: error:2E099064:CMS routines:cms_signerinfo_verify_cert:certificate verify error at t/03-chained-certs.t line 221. # Looks like you failed 1 test of 15. t/03-chained-certs.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/15 subtests ..... line 221 of the test file should be changed from throws_ok { $checked = $SMIME->check($signed) } qr/$pattern/, 'check must fail with exception'; to throws_ok { $checked = $SMIME->check($signed) } qr/$pattern/i, 'check must fail with exception'; best regards Thomas Eckardt DISCLAIMER: ******************************************************* This email and any files transmitted with it may be confidential, legally privileged and protected in law and are intended solely for the use of the individual to whom it is addressed. This email was multiple times scanned for viruses. There should be no known virus in this email! *******************************************************
Download smime.p7s
application/pkcs7-signature 2k

Message body not shown because it is not plain text.

On 2018-02-22 00:21:08, Thomas.Eckardt@thockar.com wrote: Show quoted text
> Hello, > > depending on the used openssl lib the test > > t/03-chained-certs.t > > may fail, because the test regex is is case sensitive. > > > test output: > ..... > t/03-chained-certs.t .. # Using > `C:/perl/c/lib/pkgconfig/../../bin/openssl.exe' to generate a keypair > t/03-chained-certs.t .. 1/15 > # Failed test 'check must fail with exception' > # at t/03-chained-certs.t line 221. > # expecting: Regexp ((?^:CMS_SIGNERINFO_VERIFY_CERT)) > # found: Crypt::SMIME#check: failed to check the signature: > error:2E099064:CMS routines:cms_signerinfo_verify_cert:certificate verify > error at t/03-chained-certs.t line 221. > # Looks like you failed 1 test of 15. > t/03-chained-certs.t .. Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/15 subtests > ..... > > > line 221 of the test file should be changed from > > throws_ok { $checked = $SMIME->check($signed) } qr/$pattern/, > 'check must fail with exception'; > > to > > throws_ok { $checked = $SMIME->check($signed) } qr/$pattern/i, > 'check must fail with exception'; > > > best regards > > Thomas Eckardt > > > DISCLAIMER: > ******************************************************* > This email and any files transmitted with it may be confidential, legally > privileged and protected in law and are intended solely for the use of the > > individual to whom it is addressed. > This email was multiple times scanned for viruses. There should be no > known virus in this email! > ******************************************************* >
I can confirm this problem. It fails for example on debian/stretch systems.
Thank you for reporting the problem. I fixed the test case accordingly in 0.25.