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

Report information
The Basics
Id:
125724
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
gomor [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
0.51
Fixed in:
(no value)



Subject: [PATCH] Check for definedness in pubkey_components sub
Hi, we get warnings on console when using pubkey_components sub on certificate data that returns nothing from PubKeyAlg method. The attached patch checks for definedness before calling PubKeyAlg method. Regards,
Subject: crypt-x509.patch
diff -pur Crypt-X509-0.51/lib/Crypt/X509.pm Crypt-X509-0.51.patched/lib/Crypt/X509.pm --- Crypt-X509-0.51/lib/Crypt/X509.pm 2011-07-06 09:53:48.000000000 +0200 +++ Crypt-X509-0.51.patched/lib/Crypt/X509.pm 2018-07-01 17:13:25.873988477 +0200 @@ -300,7 +300,7 @@ For other pubkey types, it returns undef sub pubkey_components { my $self = shift; - if ($self->PubKeyAlg() eq 'RSA') { + if (defined($self->PubKeyAlg()) && $self->PubKeyAlg() eq 'RSA') { my $parser = _init('RSAPubKeyInfo'); my $values = $parser->decode($self->{tbsCertificate}{subjectPublicKeyInfo}{subjectPublicKey}[0]); return $values; Only in Crypt-X509-0.51.patched/lib/Crypt: X509.pm.rej


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.