[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: X.680 12.1: empty DefinitiveIdentifier case?
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: X.680 12.1: empty DefinitiveIdentifier case? |
Date: |
Tue, 09 Oct 2012 19:50:51 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120805 Icedove/10.0.6 |
On 10/08/2012 08:40 PM, Ivan Shmakov wrote:
> X.680 reads (ยง12.1):
>
> ModuleIdentifier ::=
> modulereference
> DefinitiveIdentifier
>
> DefinitiveIdentifier ::=
> "{" DefinitiveObjIdComponentList "}"
> | empty
>
> Thus, I'd assume that the following ASN.1 definition (with
> DefinitiveIdentifier = empty) is perfectly valid:
> $ cat < asn.1
> Example DEFINITIONS EXPLICIT TAGS ::=
You could add an empty {} after the Example instead. However you seem
correct. It should have been accepted. I've committed a fix:
http://git.savannah.gnu.org/gitweb/?p=libtasn1.git;a=commitdiff;h=d154578295f0fda35cf0a1ec78648f7ec581bbed
regards,
Nikos