From: Graham B. <gb...@po...> - 2002-01-22 11:39:31
|
The uploaded file Convert-ASN1-0.15.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GB/GBARR/Convert-ASN1-0.15.tar.gz size: 36285 bytes md5: 02f3a3c209ad18001b5d8e394276c2d7 No action is required on your part Request entered by: GBARR (Graham Barr) Request entered on: Tue, 22 Jan 2002 11:32:36 GMT Request completed: Tue, 22 Jan 2002 11:33:25 GMT Virtually Yours, Id: paused,v 1.74 2001/05/20 14:59:52 k Exp k 2002-01-22 11:24 Graham Barr * README, parser.y, lib/Convert/ASN1.pm, lib/Convert/ASN1.pod, lib/Convert/ASN1/Debug.pm, lib/Convert/ASN1/IO.pm, lib/Convert/ASN1/_decode.pm, lib/Convert/ASN1/_encode.pm, lib/Convert/ASN1/parser.pm: Release 0.15 2002-01-21 20:00 Graham Barr * t/06bigint.t: Be safer in creating BigInt objects 2002-01-02 16:56 Graham Barr * lib/Convert/ASN1/_encode.pm: Change the encode errors to include the hierarchical name of the element in the ASN.1 which is causing the problem 2002-01-02 16:31 Graham Barr * lib/Convert/ASN1.pm: Remove unwanted warn statement 2001-09-25 00:05 Graham Barr * lib/Convert/ASN1.pm: Better error reporting for encoding 2001-09-22 01:16 Graham Barr * parser.y, lib/Convert/ASN1.pm, lib/Convert/ASN1/Debug.pm, lib/Convert/ASN1/_decode.pm, lib/Convert/ASN1/_encode.pm, lib/Convert/ASN1/parser.pm, t/00prim.t: Add support for RELATIVE-OID 2001-09-22 01:14 Graham Barr * t/: 00prim.t, 06bigint.t: Move some integer tests that really use bigint from 00prim.t into 06bigint.t 2001-09-21 23:24 Graham Barr * lib/Convert/ASN1.pm, lib/Convert/ASN1/_decode.pm, t/03seqof.t: Support for nested SEQUENCE/SET OF's |
From: Norbert K. <nor...@da...> - 2002-02-04 18:34:51
|
Hi Graham, > Support for nested SEQUENCE/SET OF's I tested my script for decoding X.509 certificates again, and it now works=20 for RDNs (SEQUENCE OF SET OF). However, I still cannot decode the CRL=20 distributions points extenstion, which is a SEQUNCE OF SEQUNCE. The script=20 dies with the following error message "Modification of a read-only value=20 attempted at /usr/lib/perl5/site_perl/5.6.0/Convert/ASN1/_decode.pm line=20 319." Attached is a small script that show this behavior and an extract from a=20 certificate. --=20 Norbert Klasen DAASI International GmbH phone: +49 7071 29 70336 Wilhelmstr. 106 fax: +49 7071 29 5114 72074 T=FCbingen email: nor...@da... Germany web: http://www.daasi.de |
From: Graham B. <gb...@po...> - 2002-02-04 19:17:58
Attachments:
seq.diff
|
On Mon, Feb 04, 2002 at 07:31:14PM +0100, Norbert Klasen wrote: > Hi Graham, > > > Support for nested SEQUENCE/SET OF's > > I tested my script for decoding X.509 certificates again, and it now works > for RDNs (SEQUENCE OF SET OF). However, I still cannot decode the CRL > distributions points extenstion, which is a SEQUNCE OF SEQUNCE. The script > dies with the following error message "Modification of a read-only value > attempted at /usr/lib/perl5/site_perl/5.6.0/Convert/ASN1/_decode.pm line > 319." > > Attached is a small script that show this behavior and an extract from a > certificate. Ah, this happens because the top level element in that you are decoding is a sequence of. Try the attached patch. What will happen is that in the case that the top-level element id a sequence of, decode will return an array ref instead of a hash ref. Graham. |
From: Graham B. <gb...@po...> - 2002-02-04 20:16:45
Attachments:
seq.diff
|
On Mon, Feb 04, 2002 at 07:16:53PM +0000, Graham Barr wrote: > On Mon, Feb 04, 2002 at 07:31:14PM +0100, Norbert Klasen wrote: > > Hi Graham, > > > > > Support for nested SEQUENCE/SET OF's > > > > I tested my script for decoding X.509 certificates again, and it now works > > for RDNs (SEQUENCE OF SET OF). However, I still cannot decode the CRL > > distributions points extenstion, which is a SEQUNCE OF SEQUNCE. The script > > dies with the following error message "Modification of a read-only value > > attempted at /usr/lib/perl5/site_perl/5.6.0/Convert/ASN1/_decode.pm line > > 319." > > > > Attached is a small script that show this behavior and an extract from a > > certificate. > > Ah, this happens because the top level element in that you are decoding is a sequence of. > > Try the attached patch. What will happen is that in the case that the top-level > element id a sequence of, decode will return an array ref instead of > a hash ref. Hm, that one fails some test :( try this Graham. |
From: Norbert K. <nor...@da...> - 2002-02-05 17:14:18
Attachments:
x509decode.pl
x509.asn1
|
--On Montag, 4. Februar 2002 20:15 +0000 Graham Barr <gb...@po...>=20 wrote: > Hm, that one fails some test :( > > try this This works like a charm. Tanks a lot! For the interested I attached a sample perl script to decode X.509=20 certificates. --=20 Norbert Klasen DAASI International GmbH phone: +49 7071 29 70336 Wilhelmstr. 106 fax: +49 7071 29 5114 72074 T=FCbingen email: nor...@da... Germany web: http://www.daasi.de |
From: Graham B. <gb...@po...> - 2002-02-05 17:26:22
|
On Tue, Feb 05, 2002 at 03:45:07PM +0100, Norbert Klasen wrote: > > > --On Montag, 4. Februar 2002 20:15 +0000 Graham Barr <gb...@po...> > wrote: > > > Hm, that one fails some test :( > > > > try this > > This works like a charm. Tanks a lot! Well, actually I am not happy with that patch. It has some unwanted effects. I am working on a more general one. > For the interested I attached a sample perl script to decode X.509 > certificates. Do you mind if I include it in the distribution ? Graham. |
From: Norbert K. <nor...@da...> - 2002-02-05 20:09:19
|
--On Dienstag, 5. Februar 2002 17:25 +0000 Graham Barr <gb...@po...>=20 wrote: > Do you mind if I include it in the distribution ? Not at all. --=20 Norbert Klasen, Dipl.-Inform. DAASI International GmbH phone: +49 7071 29 70336 Wilhelmstr. 106 fax: +49 7071 29 5114 72074 T=FCbingen email: nor...@da... Germany web: http://www.daasi.de |