Commit much improved ASN.1 compiler from joda-choice-branch.
Highlighs for the compiler is support for CHOICE and in general better support for tags. This compiler support most of what is needed for PK-INIT, LDAP, X.509, PKCS-12 and many other protocols. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15617 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
30
lib/asn1/test.asn1
Normal file
30
lib/asn1/test.asn1
Normal file
@@ -0,0 +1,30 @@
|
||||
-- $Id$ --
|
||||
|
||||
TEST DEFINITIONS ::=
|
||||
|
||||
BEGIN
|
||||
|
||||
TESTLargeTag ::= SEQUENCE {
|
||||
foo[127] INTEGER (-2147483648..2147483647)
|
||||
}
|
||||
|
||||
TESTSeq ::= SEQUENCE {
|
||||
tag0[0] INTEGER (-2147483648..2147483647),
|
||||
tag1[1] TESTLargeTag,
|
||||
tagless INTEGER (-2147483648..2147483647),
|
||||
tag3[2] INTEGER (-2147483648..2147483647)
|
||||
}
|
||||
|
||||
TESTChoice1 ::= CHOICE {
|
||||
i1[1] INTEGER (-2147483648..2147483647),
|
||||
i2[2] INTEGER (-2147483648..2147483647),
|
||||
...
|
||||
}
|
||||
|
||||
TESTChoice2 ::= CHOICE {
|
||||
i1[1] INTEGER (-2147483648..2147483647),
|
||||
...
|
||||
}
|
||||
|
||||
|
||||
END
|
Reference in New Issue
Block a user