Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Convert-ASN1 CPAN distribution.

Report information
The Basics
Id: 76847
Status: resolved
Priority: 0/
Queue: Convert-ASN1

People
Owner: Nobody in particular
Requestors: Niels.LAUKENS [...] VRT.BE
Cc:
AdminCc:

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



Subject: ASN.1 extension marker in Convert::ASN1 - feature request and/or volunteering
Date: Fri, 27 Apr 2012 12:33:20 +0000
To: "bugs-Convert-ASN1 [...] rt.cpan.org" <bugs-Convert-ASN1 [...] rt.cpan.org>
From: LAUKENS Niels <Niels.LAUKENS [...] VRT.BE>
Hi, I found your CPAN module to encode/decode ASN.1. It's great, and saved me probably a week of coding! I'm trying to write future-proof ASN.1, and I read about the "extension marker" that basically tells the "old" parser that there may be unknown tags here. I browsed through the source code of the module, but couldn't find support for this feature in your code. Is this correct, or am I just overlooking it? Will you accept a patch that introduces this feature? Thx in advance, Niels -- Niels Laukens sr. researcher - VRT research & innovation department http://innovatie.vrt.be/ *** Disclaimer *** Vlaamse Radio- en Televisieomroeporganisatie Auguste Reyerslaan 52, 1043 Brussel nv van publiek recht BTW BE 0244.142.664 RPR Brussel http://www.vrt.be/gebruiksvoorwaarden
Subject: Re: [rt.cpan.org #76847] ASN.1 extension marker in Convert::ASN1 - feature request and/or volunteering
Date: Fri, 27 Apr 2012 08:24:23 -0500
To: bug-Convert-ASN1 [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
I am not familiar with the "extension marker" you are referring to, but I would certainly consider any patch. If possible please fork the project on github at https://github.com/gbarr/perl-Convert-ASN1 and send a pull request Graham.
Subject: Re: [rt.cpan.org #76847] ASN.1 extension marker in Convert::ASN1 - feature request and/or volunteering
Date: Fri, 27 Apr 2012 13:40:35 +0000
To: "bug-Convert-ASN1 [...] rt.cpan.org" <bug-Convert-ASN1 [...] rt.cpan.org>
From: LAUKENS Niels <Niels.LAUKENS [...] VRT.BE>
On 2012-04-27 15:24, Graham Barr via RT wrote: Show quoted text
>I am not familiar with the "extension marker" you are referring to
It's a backward/forward compatibility thing: v1 ::= SEQUENCE { a INTEGER, b INTEGER, ... } v2 ::= SEQUENCE { a INTEGER, b INTEGER, c INTEGER OPTIONAL, ... } By marking the c-field OPTIONAL, a v2-decoder can read a v1 message (backward compatible). The extension marker "..." tells a v1 encoder "there may be more stuff here, please ignore", allowing it to understand a v2 message (forward compatibility). See for a much longer explanation: http://lionet.info/asn1c/blog/2010/09/21/question-extensibility-removing-fi elds/ Show quoted text
>but I would certainly consider any patch.
Ah, so my work will not be in vain. Show quoted text
>If possible please fork the project on github at >https://github.com/gbarr/perl-Convert-ASN1 and send a pull request
Done (the forking part at least) Thx for the quick response, Niels *** Disclaimer *** Vlaamse Radio- en Televisieomroeporganisatie Auguste Reyerslaan 52, 1043 Brussel nv van publiek recht BTW BE 0244.142.664 RPR Brussel http://www.vrt.be/gebruiksvoorwaarden
Subject: Re: [rt.cpan.org #76847] ASN.1 extension marker in Convert::ASN1 - feature request and/or volunteering
Date: Fri, 27 Apr 2012 09:35:58 -0500
To: bug-Convert-ASN1 [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
On Apr 27, 2012, at 08:40 , LAUKENS Niels via RT wrote: Show quoted text
> Queue: Convert-ASN1 > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=76847 > > > On 2012-04-27 15:24, Graham Barr via RT wrote:
>> I am not familiar with the "extension marker" you are referring to
> It's a backward/forward compatibility thing: > v1 ::= SEQUENCE { a INTEGER, b INTEGER, ... } > v2 ::= SEQUENCE { a INTEGER, b INTEGER, c INTEGER OPTIONAL, … }
OPTIONAL is already supported. See http://cpansearch.perl.org/src/MARSCHAP/perl-ldap-0.44/lib/Net/LDAP/ASN.pm Graham.
https://github.com/gbarr/perl-Convert- ASN1/commit/1daa91c1dcd0a2bce98e10591c4fd0089c1011ec