Subject: | Fwd: Bug#597126: missing subject's locality function |
Date: | Thu, 16 Sep 2010 16:30:28 -0400 |
To: | bug-Crypt-X509 [...] rt.cpan.org |
From: | Daniel Kahn Gillmor <dkg [...] fifthhorseman.net> |
Hi there --
Just got this message via the debian BTS i'm the debian maintainer for
libcrypt-x509-perl, the debian package of Crypt::X509), along with the
attached patch to provide the subject's locality.
http://bugs.debian.org/597126
let me know if you see any problem with this. If it can go into the
next revision sometime soon, i'm happy to wait for you as upstream.
If you think it's problematic, i'm happy to hear your explanations.
Thanks for Crypt::X509 and all your work on it,
--dkg
Message body is not shown because sender requested not to inline it.
Subject: | Bug#597126: missing subject's locality function |
Date: | Thu, 16 Sep 2010 21:40:51 +0200 |
To: | submit [...] bugs.debian.org |
From: | Milan Kocian <milon [...] wq.cz> |
Package: libcrypt-x509-perl
Version: 0.40-1
In the source is missing function for returning subject's locality from
certificate. Correction is simple, see patch below.
Regards,
--- a/X509.pm 2010-09-16 21:18:06.840840619 +0200
+++ b/X509.pm 2010-09-16 21:17:49.588711091 +0200
@@ -394,6 +394,19 @@
return _subject_part( $self, '2.5.4.6' );
}
+=head2 subject_locality
+
+Returns the string value for subject's locality (= the value with the
+ OID 2.5.4.7 or in DN Syntax everything after C<l=>).
+Only the first entry is returned. C<undef> if subject contains no locality attribute.
+
+=cut back
+
+sub subject_locality {
+ my $self = shift;
+ return _subject_part( $self, '2.5.4.7' );
+}
+
=head2 subject_state
Returns the string value for subject's state or province (= the value with the
--
Milan Kocian
Message body not shown because it is not plain text.