[HEIMDAL-646] malloc(0) checks for AIX
[heimdal.git] / lib / asn1 / canthandle.asn1
bloba335ee89e348f02115ed9894d8b26325dcf988b2
1 -- $Id$ --
3 CANTHANDLE DEFINITIONS ::= BEGIN
5 -- Code the tag [1] but not the [ CONTEXT CONS UT_Sequence ] for Kaka2
6 -- Workaround: use inline the structure directly
7 -- Code the tag [2] but it should be primitive since KAKA3 is
8 -- Workaround: use the INTEGER type directly
10 Kaka2  ::= SEQUENCE {
11         kaka2-1 [0] INTEGER
14 Kaka3  ::= INTEGER
16 Foo ::= SEQUENCE {
17         kaka1 [0] IMPLICIT INTEGER OPTIONAL,
18         kaka2 [1] IMPLICIT Kaka2 OPTIONAL,
19         kaka3 [2] IMPLICIT Kaka3 OPTIONAL
22 -- Don't code kaka if it's 1
23 -- Workaround is to use OPTIONAL and check for in the encoder stubs
25 Bar ::= SEQUENCE {
26         kaka [0] INTEGER DEFAULT 1
29 --  Can't handle primitives in SET OF
30 --  Workaround is to define a type that is only an integer and use that
32 Baz ::= SET OF INTEGER
34 END