Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 60706
Status: resolved
Priority: 0/
Queue: Crypt-OpenSSL-X509

People
Owner: Nobody in particular
Requestors: sog [...] msg.com.mx
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.2
Fixed in: (no value)



Subject: May 11 commit broke new_from_string
Commit 6a49a9d82f7ad94e528bbbccc641403270b81e61 from May 11 broke new_from_string when the format is FORMAT_ASN1 In the DER/BER encoding the string can contain NUL chars so strlen can't be used. Test case available on request. Please revert the annotated commit. Regards. Salvador.
On Tue Aug 24 23:19:24 2010, SORTIZ wrote: Show quoted text
> In the DER/BER encoding the string can contain NUL chars so strlen can't > be used. Test case available on request.
Please provide a test case. Thanks
A simple test with your own certs: #!/usr/bin/perl use Crypt::OpenSSL::X509; Crypt::OpenSSL::X509->new_from_string( Crypt::OpenSSL::X509->new_from_file('certs/balt.pem') ->as_string(1), 1 ) or die $@; In a test dump, you can see that he first byte of the modulus is zero. Thanks for your time. Salvaddor.
Thanks. Fixed in 1.4 (on it's way to CPAN) / github.