~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/asn1/test/asn1_SUITE_data/x420/Remote-Operations-Generic-ROS-PDUs.asn

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- Module Remote-Operations-Generic-ROS-PDUs (X.880:07/1994)
 
2
 
 
3
Remote-Operations-Generic-ROS-PDUs {joint-iso-itu-t remote-operations(4)
 
4
  generic-ROS-PDUs(6) version1(0)} DEFINITIONS IMPLICIT TAGS ::=
 
5
BEGIN
 
6
 
 
7
-- exports everything
 
8
IMPORTS
 
9
  OPERATION, ERROR
 
10
    FROM Remote-Operations-Information-Objects {joint-iso-itu-t
 
11
      remote-operations(4) informationObjects(5) version1(0)};
 
12
 
 
13
ROS{InvokeId:InvokeIdSet, OPERATION:Invokable, OPERATION:Returnable} ::=
 
14
  CHOICE {
 
15
  invoke        [1]  Invoke{{InvokeIdSet}, {Invokable}},
 
16
  returnResult  [2]  ReturnResult{{Returnable}},
 
17
  returnError   [3]  ReturnError{{Errors  {{Returnable}}}},
 
18
  reject        [4]  Reject
 
19
}
 
20
(CONSTRAINED BY { -- must conform to the above definition --} !
 
21
 RejectProblem:general-unrecognizedPDU)
 
22
 
 
23
Invoke{InvokeId:InvokeIdSet, OPERATION:Operations} ::= SEQUENCE {
 
24
  invokeId
 
25
    InvokeId(InvokeIdSet)
 
26
      (CONSTRAINED BY { -- must be unambiguous --} !
 
27
       RejectProblem:invoke-duplicateInvocation),
 
28
  linkedId
 
29
    CHOICE {present  [0] IMPLICIT present < InvokeId,
 
30
            absent   [1] IMPLICIT NULL
 
31
  }
 
32
  (CONSTRAINED BY { -- must identify an outstanding operation --} !
 
33
   RejectProblem:invoke-unrecognizedLinkedId)
 
34
  (CONSTRAINED BY { -- which has one or more linked operations--} !
 
35
   RejectProblem:invoke-linkedResponseUnexpected) OPTIONAL,
 
36
  opcode
 
37
    OPERATION.&operationCode
 
38
      ({Operations} !RejectProblem:invoke-unrecognizedOperation),
 
39
  argument
 
40
    OPERATION.&ArgumentType
 
41
      ({Operations}{@opcode} !RejectProblem:invoke-mistypedArgument) OPTIONAL
 
42
}
 
43
(CONSTRAINED BY { -- must conform to the above definition --} !
 
44
 RejectProblem:general-mistypedPDU)
 
45
(WITH COMPONENTS {
 
46
   ...,
 
47
   linkedId  ABSENT
 
48
 } |
 
49
 WITH COMPONENTS {
 
50
   ...,
 
51
   linkedId  PRESENT,
 
52
   opcode    (CONSTRAINED BY { -- must be in the &Linked field of the associated operation --
 
53
                } !RejectProblem:invoke-unexpectedLinkedOperation)
 
54
 })
 
55
 
 
56
-- continued on the next page
 
57
ReturnResult{OPERATION:Operations} ::= SEQUENCE {
 
58
  invokeId
 
59
    InvokeId
 
60
      (CONSTRAINED BY { -- must be that for an outstanding operation --} !
 
61
       RejectProblem:returnResult-unrecognizedInvocation)
 
62
      (CONSTRAINED BY { -- which returns a result --} !
 
63
       RejectProblem:returnResult-resultResponseUnexpected),
 
64
  result
 
65
    SEQUENCE {opcode
 
66
                OPERATION.&operationCode({Operations})
 
67
                  (CONSTRAINED BY { -- identified by invokeId --} !
 
68
                   RejectProblem:returnResult-unrecognizedInvocation),
 
69
              result
 
70
                OPERATION.&ResultType
 
71
                  ({Operations}{@.opcode} !
 
72
                   RejectProblem:returnResult-mistypedResult)} OPTIONAL
 
73
}
 
74
(CONSTRAINED BY { -- must conform to the above definition --} !
 
75
 RejectProblem:general-mistypedPDU)
 
76
 
 
77
ReturnError{ERROR:Errors} ::= SEQUENCE {
 
78
  invokeId
 
79
    InvokeId
 
80
      (CONSTRAINED BY { -- must be that for an outstanding operation --} !
 
81
       RejectProblem:returnError-unrecognizedInvocation)
 
82
      (CONSTRAINED BY { -- which returns an error --} !
 
83
       RejectProblem:returnError-errorResponseUnexpected),
 
84
  errcode
 
85
    ERROR.&errorCode({Errors} !RejectProblem:returnError-unrecognizedError)
 
86
      (CONSTRAINED BY { -- must be in the &Errors field of the associated operation --
 
87
         } !RejectProblem:returnError-unexpectedError),
 
88
  parameter
 
89
    ERROR.&ParameterType
 
90
      ({Errors}{@errcode} !RejectProblem:returnError-mistypedParameter)
 
91
      OPTIONAL
 
92
}
 
93
(CONSTRAINED BY { -- must conform to the above definition --} !
 
94
 RejectProblem:general-mistypedPDU)
 
95
 
 
96
Reject ::= SEQUENCE {
 
97
  invokeId  InvokeId,
 
98
  problem
 
99
    CHOICE {general       [0]  GeneralProblem,
 
100
            invoke        [1]  InvokeProblem,
 
101
            returnResult  [2]  ReturnResultProblem,
 
102
            returnError   [3]  ReturnErrorProblem}
 
103
}
 
104
(CONSTRAINED BY { -- must conform to the above definition --} !
 
105
 RejectProblem:general-mistypedPDU)
 
106
 
 
107
GeneralProblem ::= INTEGER {
 
108
  unrecognizedPDU(0), mistypedPDU(1), badlyStructuredPDU(2)}
 
109
 
 
110
-- continued on the next page
 
111
InvokeProblem ::= INTEGER {
 
112
  duplicateInvocation(0), unrecognizedOperation(1), mistypedArgument(2),
 
113
  resourceLimitation(3), releaseInProgress(4), unrecognizedLinkedId(5),
 
114
  linkedResponseUnexpected(6), unexpectedLinkedOperation(7)}
 
115
 
 
116
ReturnResultProblem ::= INTEGER {
 
117
  unrecognizedInvocation(0), resultResponseUnexpected(1), mistypedResult(2)
 
118
}
 
119
 
 
120
ReturnErrorProblem ::= INTEGER {
 
121
  unrecognizedInvocation(0), errorResponseUnexpected(1), unrecognizedError(2),
 
122
  unexpectedError(3), mistypedParameter(4)}
 
123
 
 
124
RejectProblem ::= INTEGER {
 
125
  general-unrecognizedPDU(0), general-mistypedPDU(1),
 
126
  general-badlyStructuredPDU(2), invoke-duplicateInvocation(10),
 
127
  invoke-unrecognizedOperation(11), invoke-mistypedArgument(12),
 
128
  invoke-resourceLimitation(13), invoke-releaseInProgress(14),
 
129
  invoke-unrecognizedLinkedId(15), invoke-linkedResponseUnexpected(16),
 
130
  invoke-unexpectedLinkedOperation(17),
 
131
  returnResult-unrecognizedInvocation(20),
 
132
  returnResult-resultResponseUnexpected(21), returnResult-mistypedResult(22),
 
133
  returnError-unrecognizedInvocation(30),
 
134
  returnError-errorResponseUnexpected(31), returnError-unrecognizedError(32),
 
135
  returnError-unexpectedError(33), returnError-mistypedParameter(34)}
 
136
 
 
137
InvokeId ::= CHOICE {present  INTEGER,
 
138
                     absent   NULL
 
139
}
 
140
 
 
141
noInvokeId InvokeId ::= absent:NULL
 
142
 
 
143
NoInvokeId InvokeId ::= {noInvokeId}
 
144
 
 
145
Errors{OPERATION:Operations} ERROR ::= {Operations.&Errors}
 
146
 
 
147
-- continued on the next page
 
148
Bind{OPERATION:operation} ::= CHOICE {
 
149
  bind-invoke  [16]  OPERATION.&ArgumentType({operation}),
 
150
  bind-result  [17]  OPERATION.&ResultType({operation}),
 
151
  bind-error   [18]  OPERATION.&Errors.&ParameterType({operation})
 
152
}
 
153
 
 
154
Unbind{OPERATION:operation} ::= CHOICE {
 
155
  unbind-invoke  [19]  OPERATION.&ArgumentType({operation}),
 
156
  unbind-result  [20]  OPERATION.&ResultType({operation}),
 
157
  unbind-error   [21]  OPERATION.&Errors.&ParameterType({operation})
 
158
}
 
159
 
 
160
END -- end of generic ROS PDU definitions
 
161
 
 
162
-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
 
163