[Automatic update for 2016-03-13]
[metze/wireshark/wip.git] / asn1 / rtse / rtse.asn
1 -- RTSE definition from 
2 --   http://www.itu.int/ITU-T/asn1/database/itu-t/x/x228/1988/Reliable-Transfer-APDU.html
3 -- and modified to pass through asn2wrs
4 --
5 --
6 -- Module Reliable-Transfer-APDU (X.228:11/1988)
7 -- See also the README file
8 -- See also the index of all ASN.1 assignments needed in this Recommendation
9
10
11 Reliable-Transfer-APDU {joint-iso-itu-t reliable-transfer(3) apdus(0)}
12 DEFINITIONS ::=
13 BEGIN
14
15 EXPORTS
16   rTSE, rTSE-abstract-syntax, RTORQapdu, RTOACapdu, RTORJapdu, RTABapdu; --     for use by Presentation Layer only
17
18 --IMPORTS
19 --  CONTRACT
20 --    FROM Remote-Operations-Information-Objects {joint-iso-itu-t
21 --      remote-operations(4) informationObjects(5) version1(0)};
22 --OPEN ::= CLASS {&Type  
23 --}WITH SYNTAX {TYPE &Type
24 --}
25
26 rTSE-abstract-syntax OBJECT IDENTIFIER ::=
27   {joint-iso-itu-t reliable-transfer(3) abstract-syntax(2)}
28
29 --rTSE CONTRACT ::= {ID  {joint-iso-itu-t reliable-transfer(3) aseID(1)}
30 --}
31
32 RTSE-apdus ::= CHOICE {
33   rtorq-apdu  [16] IMPLICIT RTORQapdu,
34   rtoac-apdu  [17] IMPLICIT RTOACapdu,
35   rtorj-apdu  [18] IMPLICIT RTORJapdu,
36   rttp-apdu   RTTPapdu,
37   rttr-apdu   RTTRapdu,
38   rtab-apdu   [22] IMPLICIT RTABapdu
39 }
40
41 -- Tags [19], [20], [21] are used by the values of the UNBIND macro of the RO-notation of
42 -- Recommendation X.219. Tags [0] to [15] inclusive are reserved for the 
43 -- use by the APDUs of ROSE (Recommendation X229). Any occurrence of 
44 -- ANY in this module shall be replaced by a single ASN. 1 type (if any) in an RTSE-user
45 -- protocol specification. In addition any RTSE-user protocol sharing a single named
46 -- abstract syntax with the RTSE protocol shall use distinct tags for the single
47 -- presentation data values in the user data parameters of the RT-CLOSE (if any) and
48 -- RT- TRANSFER services. These tags shall be distinct from the tag values [16], [17],
49 -- [18] and [22] and from the ASN. 1 types INTEGER and OCTET STRING.
50 -- Note - The above conditions are ensured, if the RTSE-user protocol specification uses the
51 -- RO-notation of Recommendation X229.
52 -- In X.410-1984 mode only the components of RTORQapdu, RTOACapdu, RTORJapdu
53 -- and RTABapdu are used by the presentation layer. This has the effect that the following
54 -- APDU types appear in the protocol in X.410-1984 mode instead of the alternative types
55 -- of the RTSE-apdus type:
56 --                      RTORQapdu
57 --                      RTOACapdu
58 --                      RTORJapdu
59 --                      RTTPapdu
60 --                      RTTRapdu
61 --                      RTABapdu
62 RTORQapdu ::= SET {
63   checkpointSize       [0] IMPLICIT INTEGER DEFAULT 0,
64   windowSize           [1] IMPLICIT INTEGER DEFAULT 3,
65   dialogueMode
66     [2] IMPLICIT INTEGER {monologue(0), twa(1)} DEFAULT monologue,
67   connectionDataRQ     [3]  ConnectionData,
68   applicationProtocol
69     [4] IMPLICIT INTEGER {mts-transfer-protocol(12), mts-transfer-protocol-1984(1)} OPTIONAL --solely in X.410-1984 mode--
70 }
71
72 RTOACapdu ::= SET {
73   checkpointSize    [0] IMPLICIT INTEGER DEFAULT 0,
74   windowSize        [1] IMPLICIT INTEGER DEFAULT 3,
75   connectionDataAC  [2]  ConnectionData
76 }
77
78 RTORJapdu ::= SET {
79   refuseReason  [0] IMPLICIT RefuseReason OPTIONAL, -- only in X.410-1984 mode
80   userDataRJ
81 --    [1]  OPEN.&Type OPTIONAL 
82     [1] ANY OPTIONAL -- RTSE user data, only in normal mode--
83 }
84
85 RTTPapdu ::= INTEGER -- priority-- 
86
87 RTTRapdu ::= OCTET STRING
88
89 RTABapdu ::= SET {
90   abortReason         [0] IMPLICIT AbortReason OPTIONAL,
91   reflectedParameter  [1] IMPLICIT BIT STRING OPTIONAL,
92   -- 8 bits maximum, only if abortReason is invalidParameter
93   userdataAB
94 --    [2]  OPEN.&Type OPTIONAL 
95   [2] ANY OPTIONAL -- only in normal mode and if abortReason--
96   -- is userError 
97 }
98
99 ConnectionData ::= CHOICE {
100 --  open     [0]  OPEN.&Type, 
101   open          [0] ANY, -- RTSE user data
102   
103   -- this alternative is encoded as [0] IMPLICIT NULL
104   -- in the case of absence of RTSE user data,
105   recover  [1] IMPLICIT SessionConnectionIdentifier
106 }
107
108 SessionConnectionIdentifier ::= SEQUENCE {
109   callingSSuserReference          CallingSSuserReference,
110   commonReference                 CommonReference,
111   additionalReferenceInformation
112     [0] IMPLICIT AdditionalReferenceInformation OPTIONAL
113 }
114
115 RefuseReason ::= INTEGER {
116   rtsBusy(0), cannotRecover(1), validationFailure(2),
117   unacceptableDialogueMode(3)}
118
119 CallingSSuserReference ::= CHOICE {
120   t61String    T61String -- solely in X.410-1984 --,
121   octetString  OCTET STRING -- solely in normal mode --
122 }
123
124 CommonReference ::= UTCTime
125
126 AdditionalReferenceInformation ::= T61String
127
128 AbortReason ::= INTEGER {
129   localSystemProblem(0),
130   invalidParameter(1), -- reflectedParameter supplied
131   unrecognizedActivity(2),
132   temporaryProblem(3),
133   -- the RTSE cannot accept a session for a period of time
134   protocolError(4), -- RTSE level protocol error
135   permanentProblem(5), --provider-abort solely in normal mode 
136   userError(6), -- user-abort solely in normal mode
137   transferCompleted(7) -- activity can't be discarded--}
138
139 END
140
141 -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D