~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to source4/heimdal/lib/asn1/canthandle.asn1

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- $Id$ --
 
2
 
 
3
CANTHANDLE DEFINITIONS ::= BEGIN
 
4
 
 
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
 
9
 
 
10
Kaka2  ::= SEQUENCE { 
 
11
        kaka2-1 [0] INTEGER
 
12
}
 
13
 
 
14
Kaka3  ::= INTEGER
 
15
 
 
16
Foo ::= SEQUENCE {
 
17
        kaka1 [0] IMPLICIT INTEGER OPTIONAL,
 
18
        kaka2 [1] IMPLICIT Kaka2 OPTIONAL,
 
19
        kaka3 [2] IMPLICIT Kaka3 OPTIONAL
 
20
}
 
21
 
 
22
-- Don't code kaka if it's 1
 
23
-- Workaround is to use OPTIONAL and check for in the encoder stubs
 
24
 
 
25
Bar ::= SEQUENCE {
 
26
        kaka [0] INTEGER DEFAULT 1
 
27
}
 
28
 
 
29
--  Can't handle primitives in SET OF
 
30
--  Workaround is to define a type that is only an integer and use that
 
31
 
 
32
Baz ::= SET OF INTEGER
 
33
 
 
34
END