aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/SeqExtension.asn1
blob: e866ef2f4f7a16c77796bac1e14f8424380169c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
SeqExtension DEFINITIONS IMPLICIT TAGS ::= 

BEGIN

IMPORTS XSeqExt1, XSeqExt2 FROM External;


SeqExt1 ::= SEQUENCE 
{
  ...
}

SeqExt2 ::= SEQUENCE 
{
  bool  BOOLEAN,
  int  INTEGER,
  ...
}

SeqExt3 ::= SEQUENCE 
{
  ...,
  bool  BOOLEAN,
  int  INTEGER
}

SeqExt4 ::= SEQUENCE 
{
  bool  BOOLEAN,
  ...,
  int  INTEGER
}

SeqExt5 ::= SEQUENCE
{
  ...,
  [[ name OCTET STRING (SIZE (1..8)),
     shoesize INTEGER ]]
}

SeqExt6 ::= SEQUENCE
{
  -- The spaces between the ellipsis and the comma will prevent them
  -- from being removed.
  ...     ,
  [[ i1 [100] INTEGER, i2 [101] INTEGER, i3 [102] INTEGER ]],
  [[ i4 [104] INTEGER, i5 [105] INTEGER ]],
  [[ i6 [106] INTEGER, i7 [107] INTEGER ]]
}

SeqExt7 ::= SEQUENCE
{
  -- The spaces between the ellipsis and the comma will prevent them
  -- from being removed.
  ...     ,
  [[ a INTEGER (0..65535) OPTIONAL,
     b OCTET STRING OPTIONAL,
     c BOOLEAN
  ]]
}

SeqExt1X ::= XSeqExt1 
SeqExt2X ::= XSeqExt2 

SuperSeq ::= SEQUENCE
{
  s1 SeqExt1,
  s2 SeqExt2,
  s3 SeqExt3,
  s4 SeqExt4,
  s5 SeqExt5,
  s6 SeqExt6,
  i INTEGER
}

END