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

« back to all changes in this revision

Viewing changes to lib/asn1/test/asn1_SUITE_data/x420/DirectoryShadowAbstractService.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 DirectoryShadowAbstractService (X.525:08/1997)
 
2
DirectoryShadowAbstractService {joint-iso-itu-t ds(5) module(1)
 
3
  directoryShadowAbstractService(15) 4} DEFINITIONS IMPLICIT TAGS ::=
 
4
BEGIN
 
5
 
 
6
-- EXPORTS All 
 
7
-- The types and values defined in this module are exported for use in the other ASN.1 modules contained 
 
8
-- within the Directory Specifications, and for the use of other applications which will use them to access 
 
9
-- directory services. Other applications may use them for their own purposes, but this will not constrain
 
10
-- extensions and modifications needed to maintain or improve the directory service.
 
11
IMPORTS
 
12
  -- from ITU-T Rec. X.501 | ISO/IEC 9594-2
 
13
  directoryAbstractService, directoryOperationalBindingTypes,
 
14
    informationFramework, disp, distributedOperations,
 
15
    dsaOperationalAttributeTypes, enhancedSecurity, opBindingManagement
 
16
    FROM UsefulDefinitions {joint-iso-itu-t ds(5) module(1)
 
17
      usefulDefinitions(0) 3}
 
18
  Attribute, AttributeType, CONTEXT, DistinguishedName,
 
19
    RelativeDistinguishedName, SubtreeSpecification
 
20
    FROM InformationFramework {joint-iso-itu-t ds(5) module(1)
 
21
      informationFramework(1) 3}
 
22
  OPERATIONAL-BINDING, OperationalBindingID
 
23
    FROM OperationalBindingManagement {joint-iso-itu-t ds(5) module(1)
 
24
      opBindingManagement(18) 3}
 
25
  DSEType, SupplierAndConsumers
 
26
    FROM DSAOperationalAttributeTypes {joint-iso-itu-t ds(5) module(1)
 
27
      dsaOperationalAttributeTypes(22) 3}
 
28
  OPTIONALLY-PROTECTED{}, OPTIONALLY-PROTECTED-SEQ{}
 
29
    FROM EnhancedSecurity {joint-iso-itu-t ds(5) module(1) enhancedSecurity(28)
 
30
      1}
 
31
  -- from ITU-T Rec. X.511 | ISO/IEC 9594-3
 
32
  CommonResultsSeq, ContextSelection, directoryBind, directoryUnbind,
 
33
    EntryModification, SecurityParameters
 
34
    FROM DirectoryAbstractService {joint-iso-itu-t ds(5) module(1)
 
35
      directoryAbstractService(2) 3}
 
36
  -- from ITU-T Rec. X.518 | ISO/IEC 9594-4
 
37
  AccessPoint
 
38
    FROM DistributedOperations {joint-iso-itu-t ds(5) module(1)
 
39
      distributedOperations(3) 3}
 
40
  -- from ITU-T Rec. X.519 | ISO/IEC 9594-5
 
41
  id-op-binding-shadow
 
42
    FROM DirectoryOperationalBindingTypes {joint-iso-itu-t ds(5) module(1)
 
43
      directoryOperationalBindingTypes(25) 3}
 
44
  id-errcode-shadowError, id-opcode-coordinateShadowUpdate,
 
45
    id-opcode-requestShadowUpdate, id-opcode-updateShadow,
 
46
    reliableShadowSupplierInitiatedAC, reliableShadowConsumerInitiatedAC,
 
47
    shadowConsumerInitiatedAC, shadowSupplierInitiatedAC
 
48
    FROM DirectoryInformationShadowProtocol {joint-iso-itu-t ds(5) module(1)
 
49
      disp(16) 3}
 
50
  -- from ITU-T Rec. X.880 | ISO/IEC 13712-1
 
51
  ERROR, OPERATION
 
52
    FROM Remote-Operations-Information-Objects {joint-iso-itu-t
 
53
      remote-operations(4) informationObjects(5) version1(0)};
 
54
 
 
55
-- bind and unbind operations 
 
56
dSAShadowBind OPERATION ::= directoryBind
 
57
 
 
58
dSAShadowUnbind OPERATION ::= directoryUnbind
 
59
 
 
60
-- shadow operational binding 
 
61
shadowOperationalBinding OPERATIONAL-BINDING ::= {
 
62
  AGREEMENT             ShadowingAgreementInfo
 
63
  APPLICATION CONTEXTS
 
64
    {{shadowSupplierInitiatedAC
 
65
      APPLIES TO  {All-operations-supplier-initiated}} |
 
66
      {shadowConsumerInitiatedAC
 
67
       APPLIES TO  {All-operations-consumer-initiated}} |
 
68
      {reliableShadowSupplierInitiatedAC
 
69
       APPLIES TO  {All-operations-supplier-initiated}} |
 
70
      {reliableShadowConsumerInitiatedAC
 
71
       APPLIES TO  {All-operations-consumer-initiated}}}
 
72
  ASYMMETRIC ROLE-A
 
73
    { -- shadow supplier roleESTABLISHMENT-INITIATOR  TRUE
 
74
                             ESTABLISHMENT-PARAMETER  NULL
 
75
                             MODIFICATION-INITIATOR   TRUE
 
76
                             TERMINATION-INITIATOR    TRUE}
 
77
  ROLE-B
 
78
    { -- shadow consumer roleESTABLISHMENT-INITIATOR  TRUE
 
79
                             ESTABLISHMENT-PARAMETER  NULL
 
80
                             MODIFICATION-INITIATOR   TRUE
 
81
                             MODIFICATION-PARAMETER   ModificationParameter
 
82
                             TERMINATION-INITIATOR    TRUE}
 
83
  ID                    id-op-binding-shadow
 
84
}
 
85
 
 
86
-- types 
 
87
ModificationParameter ::= SEQUENCE {
 
88
  secondaryShadows  SET OF SupplierAndConsumers
 
89
}
 
90
 
 
91
AgreementID ::= OperationalBindingID
 
92
 
 
93
ShadowingAgreementInfo ::= SEQUENCE {
 
94
  shadowSubject     UnitOfReplication,
 
95
  updateMode        UpdateMode DEFAULT supplierInitiated:onChange:TRUE,
 
96
  master            AccessPoint OPTIONAL,
 
97
  secondaryShadows  [2]  BOOLEAN DEFAULT FALSE
 
98
}
 
99
 
 
100
UnitOfReplication ::= SEQUENCE {
 
101
  area              AreaSpecification,
 
102
  attributes        AttributeSelection,
 
103
  knowledge         Knowledge OPTIONAL,
 
104
  subordinates      BOOLEAN DEFAULT FALSE,
 
105
  contextSelection  ContextSelection OPTIONAL,
 
106
  supplyContexts
 
107
    [0]  CHOICE {allContexts       NULL,
 
108
                 selectedContexts  SET SIZE (1..MAX) OF CONTEXT.&id} OPTIONAL
 
109
}
 
110
 
 
111
AreaSpecification ::= SEQUENCE {
 
112
  contextPrefix    DistinguishedName,
 
113
  replicationArea  SubtreeSpecification
 
114
}
 
115
 
 
116
Knowledge ::= SEQUENCE {
 
117
  knowledgeType      ENUMERATED {master(0), shadow(1), both(2)},
 
118
  extendedKnowledge  BOOLEAN DEFAULT FALSE
 
119
}
 
120
 
 
121
AttributeSelection ::= SET OF ClassAttributeSelection
 
122
 
 
123
ClassAttributeSelection ::= SEQUENCE {
 
124
  class            OBJECT IDENTIFIER OPTIONAL,
 
125
  classAttributes  ClassAttributes DEFAULT allAttributes:NULL
 
126
}
 
127
 
 
128
ClassAttributes ::= CHOICE {
 
129
  allAttributes  NULL,
 
130
  include        [0]  AttributeTypes,
 
131
  exclude        [1]  AttributeTypes
 
132
}
 
133
 
 
134
AttributeTypes ::= SET OF AttributeType
 
135
 
 
136
UpdateMode ::= CHOICE {
 
137
  supplierInitiated  [0]  SupplierUpdateMode,
 
138
  consumerInitiated  [1]  ConsumerUpdateMode
 
139
}
 
140
 
 
141
SupplierUpdateMode ::= CHOICE {
 
142
  onChange   BOOLEAN,
 
143
  scheduled  SchedulingParameters
 
144
}
 
145
 
 
146
ConsumerUpdateMode ::= SchedulingParameters
 
147
 
 
148
SchedulingParameters ::= SEQUENCE {
 
149
  periodic    PeriodicStrategy OPTIONAL, -- must be present if othertimes is set to FALSE 
 
150
  othertimes  BOOLEAN DEFAULT FALSE
 
151
}
 
152
 
 
153
PeriodicStrategy ::= SEQUENCE {
 
154
  beginTime       Time OPTIONAL,
 
155
  windowSize      INTEGER,
 
156
  updateInterval  INTEGER
 
157
}
 
158
 
 
159
Time ::= GeneralizedTime
 
160
 
 
161
-- as per 34.2 b) and c) of CCITT Rec. X.208 and ISO/IEC 8824
 
162
-- shadow operations, arguments, and results 
 
163
All-operations-consumer-initiated OPERATION ::=
 
164
  {requestShadowUpdate | updateShadow}
 
165
 
 
166
All-operations-supplier-initiated OPERATION ::=
 
167
  {coordinateShadowUpdate | updateShadow}
 
168
 
 
169
coordinateShadowUpdate OPERATION ::= {
 
170
  ARGUMENT  CoordinateShadowUpdateArgument
 
171
  RESULT    CoordinateShadowUpdateResult
 
172
  ERRORS    {shadowError}
 
173
  CODE      id-opcode-coordinateShadowUpdate
 
174
}
 
175
 
 
176
CoordinateShadowUpdateArgument ::=
 
177
  OPTIONALLY-PROTECTED
 
178
    {[0]  SEQUENCE {agreementID         AgreementID,
 
179
                    lastUpdate          Time OPTIONAL,
 
180
                    updateStrategy
 
181
                      CHOICE {standard
 
182
                                ENUMERATED {noChanges(0), incremental(1),
 
183
                                            total(2)},
 
184
                              other     EXTERNAL},
 
185
                    securityParameters  SecurityParameters OPTIONAL}}
 
186
 
 
187
CoordinateShadowUpdateResult ::= CHOICE {
 
188
  null         NULL,
 
189
  information
 
190
    OPTIONALLY-PROTECTED{[0]  SEQUENCE {greementID  AgreementID,
 
191
                                        lastUpdate  Time OPTIONAL,
 
192
                                        COMPONENTS OF CommonResultsSeq
 
193
      }}
 
194
}
 
195
 
 
196
requestShadowUpdate OPERATION ::= {
 
197
  ARGUMENT  RequestShadowUpdateArgument
 
198
  RESULT    RequestShadowUpdateResult
 
199
  ERRORS    {shadowError}
 
200
  CODE      id-opcode-requestShadowUpdate
 
201
}
 
202
 
 
203
RequestShadowUpdateArgument ::=
 
204
  OPTIONALLY-PROTECTED
 
205
    {[0]  SEQUENCE {agreementID         AgreementID,
 
206
                    lastUpdate          Time OPTIONAL,
 
207
                    requestedStrategy
 
208
                      CHOICE {standard  ENUMERATED {incremental(1), total(2)},
 
209
                              other     EXTERNAL},
 
210
                    securityParameters  SecurityParameters OPTIONAL}}
 
211
 
 
212
RequestShadowUpdateResult ::= CHOICE {
 
213
  null         NULL,
 
214
  information
 
215
    OPTIONALLY-PROTECTED{[0]  SEQUENCE {agreementID  AgreementID,
 
216
                                        lastUpdate   Time OPTIONAL,
 
217
                                        COMPONENTS OF CommonResultsSeq
 
218
      }}
 
219
}
 
220
 
 
221
updateShadow OPERATION ::= {
 
222
  ARGUMENT  UpdateShadowArgument
 
223
  RESULT    UpdateShadowResult
 
224
  ERRORS    {shadowError}
 
225
  CODE      id-opcode-updateShadow
 
226
}
 
227
 
 
228
UpdateShadowArgument ::=
 
229
  OPTIONALLY-PROTECTED
 
230
    {[0]  SEQUENCE {agreementID         AgreementID,
 
231
                    updateTime          Time,
 
232
                    updateWindow        UpdateWindow OPTIONAL,
 
233
                    updatedInfo         RefreshInformation,
 
234
                    securityParameters  SecurityParameters OPTIONAL}}
 
235
 
 
236
UpdateShadowResult ::= CHOICE {
 
237
  null         NULL,
 
238
  information
 
239
    OPTIONALLY-PROTECTED{[0]  SEQUENCE {agreementID  AgreementID,
 
240
                                        lastUpdate   Time OPTIONAL,
 
241
                                        COMPONENTS OF CommonResultsSeq
 
242
      }}
 
243
}
 
244
 
 
245
UpdateWindow ::= SEQUENCE {start  Time,
 
246
                           stop   Time
 
247
}
 
248
 
 
249
RefreshInformation ::= CHOICE {
 
250
  noRefresh      NULL,
 
251
  total          [0]  TotalRefresh,
 
252
  incremental    [1]  IncrementalRefresh,
 
253
  otherStrategy  EXTERNAL
 
254
}
 
255
 
 
256
TotalRefresh ::= SEQUENCE {
 
257
  sDSE     SDSEContent OPTIONAL,
 
258
  subtree  SET SIZE (1..MAX) OF Subtree OPTIONAL
 
259
}
 
260
 
 
261
SDSEContent ::= SEQUENCE {
 
262
  sDSEType          SDSEType,
 
263
  subComplete       [0]  BOOLEAN DEFAULT FALSE,
 
264
  attComplete       [1]  BOOLEAN OPTIONAL,
 
265
  attributes        SET OF Attribute,
 
266
  attValIncomplete  SET OF AttributeType DEFAULT {}
 
267
}
 
268
 
 
269
SDSEType ::= DSEType
 
270
 
 
271
Subtree ::= SEQUENCE {
 
272
  rdn  RelativeDistinguishedName,
 
273
  COMPONENTS OF TotalRefresh
 
274
}
 
275
 
 
276
IncrementalRefresh ::= SEQUENCE OF IncrementalStepRefresh
 
277
 
 
278
IncrementalStepRefresh ::= SEQUENCE {
 
279
  sDSEChanges
 
280
    CHOICE {add     [0]  SDSEContent,
 
281
            remove  NULL,
 
282
            modify  [1]  ContentChange} OPTIONAL,
 
283
  subordinateUpdates  SEQUENCE SIZE (1..MAX) OF SubordinateChanges OPTIONAL
 
284
}
 
285
 
 
286
ContentChange ::= SEQUENCE {
 
287
  rename
 
288
    CHOICE {newRDN  RelativeDistinguishedName,
 
289
            newDN   DistinguishedName} OPTIONAL,
 
290
  attributeChanges
 
291
    CHOICE {replace  [0]  SET SIZE (1..MAX) OF Attribute,
 
292
            changes  [1]  SEQUENCE SIZE (1..MAX) OF EntryModification
 
293
  } OPTIONAL,
 
294
  sDSEType          SDSEType,
 
295
  subComplete       [2]  BOOLEAN DEFAULT FALSE,
 
296
  attComplete       [3]  BOOLEAN OPTIONAL,
 
297
  attValIncomplete  SET OF AttributeType DEFAULT {}
 
298
}
 
299
 
 
300
SubordinateChanges ::= SEQUENCE {
 
301
  subordinate  RelativeDistinguishedName,
 
302
  changes      IncrementalStepRefresh
 
303
}
 
304
 
 
305
-- errors and parameters 
 
306
shadowError ERROR ::= {
 
307
  PARAMETER OPTIONALLY-PROTECTED-SEQ
 
308
    {SEQUENCE {problem       ShadowProblem,
 
309
               lastUpdate    Time OPTIONAL,
 
310
               updateWindow  UpdateWindow OPTIONAL,
 
311
               COMPONENTS OF CommonResultsSeq}}
 
312
  CODE                                id-errcode-shadowError
 
313
}
 
314
 
 
315
ShadowProblem ::= INTEGER {
 
316
  invalidAgreementID(1), inactiveAgreement(2), invalidInformationReceived(3),
 
317
  unsupportedStrategy(4), missedPrevious(5), fullUpdateRequired(6),
 
318
  unwillingToPerform(7), unsuitableTiming(8), updateAlreadyReceived(9),
 
319
  invalidSequencing(10), insufficientResources(11)}
 
320
 
 
321
END -- DirectoryShadowAbstractService
 
322
 
 
323
-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
 
324