SV: Re: ASN1 Private Constructor

Kenneth Lundin 08.55088832@REDACTED
Wed Apr 7 23:21:24 CEST 2004


 
Hi,
 
You use IMPLICIT TAGS to get a private tag without an universal tag for
a SEQUENCE.
 
Example
 
S DEFINITIONS IMPLICIT TAGS::=
BEGIN
S ::= [PRIVATE 1 ] SEQUENCE {
        a INTEGER,
        b BOOLEAN
}
 
 
END
 
Note!, another way than the IMPLICIT TAGS as default on all tags defined
in the module is to define
The type S like this (in a module with any tagdefault).
 
S::= [PRIVATE 1] IMPLICIT SEQUENCE { ..
 
6> asn1ct:compile("S").
Erlang ASN.1 version "1.4.2" compiling "S.asn" 
Compiler Options: []
--{generated,"S.asn1db"}--
--{generated,"S.hrl"}--
--{generated,"S.erl"}--
ok
 
 


More information about the erlang-questions mailing list