aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_bin_SUITE_data/INSTANCEOF.asn1
blob: 8c4f3a8f7e03be8e706f31ea7fdb6bc1e2d2895d (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
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 ::= 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