Upstream update.
[shishi.git] / asn1 / tests / Test_tree.asn
blob9c3e963ebe5c9b96f4faa41074b4766876a7c0c8
1 --
2 --  File used in the test sequence Test_tree.
3 --
5 TEST_TREE {iso(1) identified-organization(3) dod(6) internet(1)
6   security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-implicit-88(2)}
8 DEFINITIONS IMPLICIT TAGS ::=
10 BEGIN
12 Sequence1 ::= SEQUENCE{
13     int1 [0] INTEGER DEFAULT -5,
14     int2     INTEGER,
15     seq      SET OF INTEGER,
16     id       OBJECT IDENTIFIER,
17     oct      OCTET STRING,
18     any1     ANY DEFINED BY id OPTIONAL
21 DHParameter ::= SEQUENCE {
22     prime INTEGER,
23     base  INTEGER,
24     privateValueLength INTEGER OPTIONAL
27 id-octetTest1 OBJECT IDENTIFIER  ::=  {1 2 3 4}
29 Sequence_octetTest1 ::= SEQUENCE{
30     int     INTEGER
34 AnyTest2 ::= CHOICE{
35      str    OCTET STRING,
36      int    INTEGER
39 id-ic OBJECT IDENTIFIER  ::=  {2 5}
40 id-anyTest OBJECT IDENTIFIER  ::=  {id-ic 29 1}
41 id-anyTest2 OBJECT IDENTIFIER  ::=  {id-ic 29 2}
44 anyTest2  ::= INTEGER 
47 VisibleString ::= [UNIVERSAL 26] IMPLICIT OCTET STRING
49 NumericString ::= [UNIVERSAL 18] IMPLICIT OCTET STRING
51 IA5String ::= [UNIVERSAL 22] IMPLICIT OCTET STRING
53 TeletexString ::= [UNIVERSAL 20] IMPLICIT OCTET STRING
55 PrintableString ::= [UNIVERSAL 19] IMPLICIT OCTET STRING
57 UniversalString ::= [UNIVERSAL 28] IMPLICIT OCTET STRING
58         -- UniversalString is defined in ASN.1:1993
60 BMPString ::= [UNIVERSAL 30] IMPLICIT OCTET STRING
61       -- BMPString is the subtype of UniversalString and models
62        -- the Basic Multilingual Plane of ISO/IEC/ITU 10646-1
64 UTF8String ::= [UNIVERSAL 12] IMPLICIT OCTET STRING
65         -- The content of this type conforms to RFC 2279.
68 Test3 ::= SEQUENCE{
69      a      INTEGER,
70      b      [1] EXPLICIT GeneralString2
74 GeneralString2 ::= [2] EXPLICIT GeneralString
76 X520LocalityName ::= CHOICE {
77       teletexString       TeletexString,
78       printableString     PrintableString,
79       universalString     UniversalString,
80       utf8String          UTF8String,
81       bmpString           BMPString    }
84 END