Skip Menu |

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

Report information
The Basics
Id: 125724
Status: new
Priority: 0/
Queue: Crypt-X509

Owner: Nobody in particular
Requestors: gomor [...]

Bug Information
Severity: (no value)
Broken in: 0.51
Fixed in: (no value)

Subject: [PATCH] Check for definedness in pubkey_components sub
Download (untitled) / with headers
text/plain 214b
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
Download crypt-x509.patch
text/x-diff 708b
diff -pur Crypt-X509-0.51/lib/Crypt/ Crypt-X509-0.51.patched/lib/Crypt/ --- Crypt-X509-0.51/lib/Crypt/ 2011-07-06 09:53:48.000000000 +0200 +++ Crypt-X509-0.51.patched/lib/Crypt/ 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:

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to