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


BEGIN

GeneralName ::= CHOICE {
  otherName      [0] INSTANCE OF OTHER-NAME,
  rfc822Name     [1] IA5String,
  dNSName        [2] IA5String,
  lastName       [3] INSTANCE OF OTHER-NAME ({TI})
}

Names ::= SEQUENCE {
  firstName  [0] INSTANCE OF OTHER-NAME,
  secondName [1] PrintableString,
  thirdName  [2] INSTANCE OF OTHER-NAME ({TI})
}

OTHER-NAME ::= YET-ANOTHER-NAME

YET-ANOTHER-NAME ::= TYPE-IDENTIFIER

TI OTHER-NAME ::= {{INTEGER IDENTIFIED BY {2 4}} |
		   {Seq IDENTIFIED BY {2 3 4}} |
		   {SEQUENCE{a INTEGER,b ENUMERATED{a,b,c}} IDENTIFIED BY {2 3 4 5}} }

Int ::= INTEGER

Seq ::= SEQUENCE {
  a   INTEGER,
  b   BOOLEAN
}



END