aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/PartialDecSeq3.asn
blob: 3b530733ef99a63fbe0a2d1ecd9a23fb9f50f736 (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
PartialDecSeq3 DEFINITIONS AUTOMATIC TAGS ::=

BEGIN

S1 ::= SEQUENCE {
  a INTEGER,
  b S2 OPTIONAL,
  c C1,
  d SO1
}

S2 ::= SEQUENCE {
  a BOOLEAN,
  b INTEGER,
  c SEQUENCE OF S3,
  ...
}

C1 ::= CHOICE {
  a SEQUENCE OF S3,
  b SEQUENCE {a INTEGER, b BOOLEAN, c S4}
}

S3 ::= SEQUENCE {
  first INTEGER,
  second PrintableString,
  third OCTET STRING (SIZE(2..100)),
  fourth BIT STRING {one(0),two(1),three(2),four(3),five(4),six(5)}(SIZE(1..6)),
  ...
}

S4 ::= SET {
  name Name,
  title VisibleString
}

Name ::= SEQUENCE {
  givenName               VisibleString,
  initial                 VisibleString,
  familyName              VisibleString
}

SO1 ::= SEQUENCE (SIZE(2..6)) OF Name

END