From: Graham B. <gb...@po...> - 2002-02-04 20:16:45
|
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. |