b838707d0e
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
31 lines
653 B
Plaintext
31 lines
653 B
Plaintext
-- $Id$ --
|
|
|
|
CANTHANDLE DEFINITIONS ::= BEGIN
|
|
|
|
-- Don't code the tag [0] as a constructed tag for foo.kaka1,
|
|
-- it should be PRIM (and no type field)
|
|
-- Workaround is to use heim_any and decode type
|
|
|
|
Kaka ::= SEQUENCE {
|
|
kaka3 [0] INTEGER
|
|
}
|
|
|
|
Foo ::= SEQUENCE {
|
|
kaka1 [0] IMPLICIT INTEGER OPTIONAL,
|
|
kaka2 [1] IMPLICIT Kaka OPTIONAL
|
|
}
|
|
|
|
-- Don't code kaka if its 1
|
|
-- Workaround is to use OPTIONAL and check for in the encoder stubs
|
|
|
|
Bar ::= SEQUENCE {
|
|
kaka [0] INTEGER DEFAULT 1
|
|
}
|
|
|
|
-- Can't handle primitives in SET OF
|
|
-- Workaround is to define a type that is only an integer and use that
|
|
|
|
Baz ::= SET OF INTEGER
|
|
|
|
END
|