summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/disp/disp.asn
blob: cc76ebf47222587c10c62127b05c1c3395a473db (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
-- Module DirectoryShadowAbstractService (X.525:02/2001)
DirectoryShadowAbstractService {joint-iso-itu-t ds(5) module(1)
  directoryShadowAbstractService(15) 4} DEFINITIONS IMPLICIT TAGS ::=
BEGIN

-- EXPORTS All 
-- The types and values defined in this module are exported for use in the other ASN.1 modules contained 
-- within the Directory Specifications, and for the use of other applications which will use them to access 
-- directory services. Other applications may use them for their own purposes, but this will not constrain
-- extensions and modifications needed to maintain or improve the directory service.
IMPORTS
  -- from ITU-T Rec. X.501 | ISO/IEC 9594-2
  directoryAbstractService, directoryOperationalBindingTypes,
    informationFramework, disp, distributedOperations,
    dsaOperationalAttributeTypes, enhancedSecurity, opBindingManagement
    FROM UsefulDefinitions {joint-iso-itu-t ds(5) module(1)
      usefulDefinitions(0) 4}
  Attribute, AttributeType, CONTEXT, DistinguishedName,
    RelativeDistinguishedName, SubtreeSpecification
    FROM InformationFramework {joint-iso-itu-t ds(5) module(1)
      informationFramework(1) 4}
  OPERATIONAL-BINDING, OperationalBindingID
    FROM OperationalBindingManagement {joint-iso-itu-t ds(5) module(1)
      opBindingManagement(18) 4}
  DSEType, SupplierAndConsumers
    FROM DSAOperationalAttributeTypes {joint-iso-itu-t ds(5) module(1)
      dsaOperationalAttributeTypes(22) 4}
  OPTIONALLY-PROTECTED{}, OPTIONALLY-PROTECTED-SEQ{}
    FROM EnhancedSecurity {joint-iso-itu-t ds(5) module(1) enhancedSecurity(28)
      4}
  -- from ITU-T Rec. X.511 | ISO/IEC 9594-3
  CommonResultsSeq, ContextSelection, directoryBind, directoryUnbind, DirectoryBindArgument, DirectoryBindError,
    EntryModification, SecurityParameters
    FROM DirectoryAbstractService {joint-iso-itu-t ds(5) module(1)
      directoryAbstractService(2) 4}
  -- from ITU-T Rec. X.518 | ISO/IEC 9594-4
  AccessPoint
    FROM DistributedOperations {joint-iso-itu-t ds(5) module(1)
      distributedOperations(3) 4}
  -- from ITU-T Rec. X.519 | ISO/IEC 9594-5
  id-op-binding-shadow
    FROM DirectoryOperationalBindingTypes {joint-iso-itu-t ds(5) module(1)
      directoryOperationalBindingTypes(25) 4}
  id-errcode-shadowError, id-opcode-coordinateShadowUpdate,
    id-opcode-requestShadowUpdate, id-opcode-updateShadow,
    reliableShadowSupplierInitiatedAC, reliableShadowConsumerInitiatedAC,
    shadowConsumerInitiatedAC, shadowSupplierInitiatedAC
    FROM DirectoryInformationShadowProtocol {joint-iso-itu-t ds(5) module(1)
      disp(16) 4}
  AlgorithmIdentifier, CertificationPath, ENCRYPTED{}, SIGNATURE{}, SIGNED{}
    FROM AuthenticationFramework {joint-iso-itu-t ds(5) module(1)
      authenticationFramework(7) 4}
  -- from ITU-T Rec. X.880 | ISO/IEC 13712-1
  ERROR, OPERATION
    FROM Remote-Operations-Information-Objects {joint-iso-itu-t
      remote-operations(4) informationObjects(5) version1(0)};


-- bind and unbind operations 
dSAShadowBind OPERATION ::= directoryBind
DSAShadowBindArgument ::= DirectoryBindArgument
DSAShadowBindResult ::= DirectoryBindArgument
DSAShadowBindError ::= DirectoryBindError

dSAShadowUnbind OPERATION ::= directoryUnbind

-- shadow operational binding 
--shadowOperationalBinding OPERATIONAL-BINDING ::= {
--  AGREEMENT             ShadowingAgreementInfo
--  APPLICATION CONTEXTS
--    {{shadowSupplierInitiatedAC
--      APPLIES TO  {All-operations-supplier-initiated}} |
--      {shadowConsumerInitiatedAC
--       APPLIES TO  {All-operations-consumer-initiated}} |
--      {reliableShadowSupplierInitiatedAC
--       APPLIES TO  {All-operations-supplier-initiated}} |
--      {reliableShadowConsumerInitiatedAC
--       APPLIES TO  {All-operations-consumer-initiated}}}
--  ASYMMETRIC ROLE-A
--    { - - shadow supplier roleESTABLISHMENT-INITIATOR  TRUE
--                             ESTABLISHMENT-PARAMETER  NULL
--                             MODIFICATION-INITIATOR   TRUE
--                             TERMINATION-INITIATOR    TRUE}
--  ROLE-B
--    { - - shadow consumer roleESTABLISHMENT-INITIATOR  TRUE
--                             ESTABLISHMENT-PARAMETER  NULL
--                             MODIFICATION-INITIATOR   TRUE
--                             MODIFICATION-PARAMETER   ModificationParameter
--                             TERMINATION-INITIATOR    TRUE}
--  ID                    id-op-binding-shadow
--}

-- types 

EstablishParameter ::= NULL

ModificationParameter ::= SEQUENCE {
  secondaryShadows  SET OF SupplierAndConsumers
}

AgreementID ::= OperationalBindingID

ShadowingAgreementInfo ::= SEQUENCE {
  shadowSubject     UnitOfReplication,
  updateMode        UpdateMode DEFAULT supplierInitiated:onChange:TRUE,
  master            AccessPoint OPTIONAL,
  secondaryShadows  [2]  BOOLEAN DEFAULT FALSE
}

UnitOfReplication ::= SEQUENCE {
  area              AreaSpecification,
  attributes        AttributeSelection,
  knowledge         Knowledge OPTIONAL,
  subordinates      BOOLEAN DEFAULT FALSE,
  contextSelection  ContextSelection OPTIONAL,
  supplyContexts
    [0]  CHOICE {allContexts       NULL,
                 selectedContexts  SET --SIZE (1..MAX)-- OF --CONTEXT.&id-- OBJECT IDENTIFIER } OPTIONAL
}

AreaSpecification ::= SEQUENCE {
  contextPrefix    DistinguishedName,
  replicationArea  SubtreeSpecification
}

Knowledge ::= SEQUENCE {
  knowledgeType      ENUMERATED {master(0), shadow(1), both(2)},
  extendedKnowledge  BOOLEAN DEFAULT FALSE
}

AttributeSelection ::= SET OF ClassAttributeSelection

ClassAttributeSelection ::= SEQUENCE {
  class            OBJECT IDENTIFIER OPTIONAL,
  classAttributes  ClassAttributes DEFAULT allAttributes:NULL
}

ClassAttributes ::= CHOICE {
  allAttributes  NULL,
  include        [0]  AttributeTypes,
  exclude        [1]  AttributeTypes
}

AttributeTypes ::= SET OF AttributeType

UpdateMode ::= CHOICE {
  supplierInitiated  [0]  SupplierUpdateMode,
  consumerInitiated  [1]  ConsumerUpdateMode
}

SupplierUpdateMode ::= CHOICE {
  onChange   BOOLEAN,
  scheduled  SchedulingParameters
}

ConsumerUpdateMode ::= SchedulingParameters

SchedulingParameters ::= SEQUENCE {
  periodic    PeriodicStrategy OPTIONAL, -- shall be present if othertimes is set to FALSE 
  othertimes  BOOLEAN DEFAULT FALSE
}

PeriodicStrategy ::= SEQUENCE {
  beginTime       Time OPTIONAL,
  windowSize      INTEGER,
  updateInterval  INTEGER
}

Time ::= GeneralizedTime

-- as per 34.2 b) and c) of CCITT Rec. X.208 and ISO/IEC 8824
-- shadow operations, arguments, and results 
--All-operations-consumer-initiated OPERATION ::=
--  {requestShadowUpdate | updateShadow}

--All-operations-supplier-initiated OPERATION ::=
--  {coordinateShadowUpdate | updateShadow}

--coordinateShadowUpdate OPERATION ::= {
--  ARGUMENT  CoordinateShadowUpdateArgument
--  RESULT    CoordinateShadowUpdateResult
--  ERRORS    {shadowError}
--  CODE      id-opcode-coordinateShadowUpdate
--}

CoordinateShadowUpdateArgumentData ::=
--  OPTIONALLY-PROTECTED
--    {[0] --  SEQUENCE {agreementID         AgreementID,
                    lastUpdate          Time OPTIONAL,
                    updateStrategy
                      CHOICE {standard
                                ENUMERATED {noChanges(0), incremental(1),
                                            total(2)},
                              other     EXTERNAL},
                    securityParameters  SecurityParameters OPTIONAL} --}

-- expand OPTIONALLY-PROTECTED macro
CoordinateShadowUpdateArgument ::= CHOICE {
  unsignedCoordinateShadowUpdateArgument [0] CoordinateShadowUpdateArgumentData,
  signedCoordinateShadowUpdateArgument SEQUENCE {
    coordinateShadowUpdateArgument	[0] CoordinateShadowUpdateArgumentData,
    algorithmIdentifier			AlgorithmIdentifier,
    encrypted				BIT STRING
    }
}


CoordinateShadowUpdateResult ::= CHOICE {
  null         NULL,
  information  Information
--    OPTIONALLY-PROTECTED{ [0]  SEQUENCE {agreementID  AgreementID,
--                                        lastUpdate  Time OPTIONAL,
--                                        COMPONENTS OF CommonResultsSeq
--      }}
}

InformationData ::=  SEQUENCE {
    agreementID  AgreementID,
    lastUpdate  Time OPTIONAL,
--    COMPONENTS OF CommonResultsSeq
    securityParameters  [30]  SecurityParameters OPTIONAL,
    performer           [29]  DistinguishedName OPTIONAL,
    aliasDereferenced   [28]  BOOLEAN DEFAULT FALSE,
    notification        [27]  SEQUENCE --SIZE (1..MAX)-- OF Attribute OPTIONAL
    }

-- expand OPTIONALLY-PROTECTED macro
Information ::= CHOICE {
  unsignedInformation [0] InformationData,
  signedInformation SEQUENCE {
    information		[0] InformationData,
    algorithmIdentifier	AlgorithmIdentifier,
    encrypted		BIT STRING
    }
}


--requestShadowUpdate OPERATION ::= {
--  ARGUMENT  RequestShadowUpdateArgument
--  RESULT    RequestShadowUpdateResult
--  ERRORS    {shadowError}
--  CODE      id-opcode-requestShadowUpdate
--}

RequestShadowUpdateArgumentData ::=
--  OPTIONALLY-PROTECTED
--    {  [0] --  SEQUENCE {agreementID         AgreementID,
                    lastUpdate          Time OPTIONAL,
                    requestedStrategy
                      CHOICE {standard  ENUMERATED {incremental(1), total(2)},
                              other     EXTERNAL},
                    securityParameters  SecurityParameters OPTIONAL} --}

-- expand OPTIONALLY-PROTECTED macro
RequestShadowUpdateArgument ::= CHOICE {
  unsignedRequestShadowUpdateArgument [0] RequestShadowUpdateArgumentData,
  signedRequestShadowUpdateArgument SEQUENCE {
    requestShadowUpdateArgument	[0] RequestShadowUpdateArgumentData,
    algorithmIdentifier		    AlgorithmIdentifier,
    encrypted		            BIT STRING
    }
}


RequestShadowUpdateResult ::= CHOICE {
  null         NULL,
  information  Information
--    OPTIONALLY-PROTECTED{[0]  SEQUENCE {agreementID  AgreementID,
--                                        lastUpdate   Time OPTIONAL,
--                                        COMPONENTS OF CommonResultsSeq
--     }}
}

--updateShadow OPERATION ::= {
--  ARGUMENT  UpdateShadowArgument
--  RESULT    UpdateShadowResult
--  ERRORS    {shadowError}
--  CODE      id-opcode-updateShadow
--}

UpdateShadowArgumentData ::=
--  OPTIONALLY-PROTECTED
--    { [0] --  SEQUENCE {agreementID         AgreementID,
                    updateTime          Time,
                    updateWindow        UpdateWindow OPTIONAL,
                    updatedInfo         RefreshInformation,
                    securityParameters  SecurityParameters OPTIONAL} --}

-- expand OPTIONALLY-PROTECTED macro
UpdateShadowArgument ::= CHOICE {
  unsignedUpdateShadowArgument [0] UpdateShadowArgumentData,
  signedUpdateShadowArgument SEQUENCE {
    updateShadowArgument	[0] UpdateShadowArgumentData,
    algorithmIdentifier		    AlgorithmIdentifier,
    encrypted		 	    BIT STRING
    }
}


UpdateShadowResult ::= CHOICE {
  null         NULL,
  information  Information
--    OPTIONALLY-PROTECTED{ [0]  SEQUENCE {agreementID  AgreementID,
--                                        lastUpdate   Time OPTIONAL,
--                                        COMPONENTS OF CommonResultsSeq
--      }}
}

UpdateWindow ::= SEQUENCE {start  Time,
                           stop   Time
}

RefreshInformation ::= CHOICE {
  noRefresh      NULL,
  total          [0]  TotalRefresh,
  incremental    [1]  IncrementalRefresh,
  otherStrategy  EXTERNAL
}

TotalRefresh ::= SEQUENCE {
  sDSE     SDSEContent OPTIONAL,
  subtree  SET --SIZE (1..MAX)-- OF Subtree OPTIONAL
}

SDSEContent ::= SEQUENCE {
  sDSEType          SDSEType,
  subComplete       [0]  BOOLEAN DEFAULT FALSE,
  attComplete       [1]  BOOLEAN OPTIONAL,
  attributes        SET OF Attribute,
  attValIncomplete  SET OF AttributeType DEFAULT {}
}

SDSEType ::= DSEType

Subtree ::= SEQUENCE {
  rdn  RelativeDistinguishedName,
--  COMPONENTS OF TotalRefresh
  sDSE     SDSEContent OPTIONAL,
  subtree  SET --SIZE (1..MAX)-- OF Subtree OPTIONAL
}

IncrementalRefresh ::= SEQUENCE OF IncrementalStepRefresh

IncrementalStepRefresh ::= SEQUENCE {
  sDSEChanges
    CHOICE {add     [0]  SDSEContent,
            remove  NULL,
            modify  [1]  ContentChange} OPTIONAL,
  subordinateUpdates  SEQUENCE --SIZE (1..MAX)-- OF SubordinateChanges OPTIONAL
}

ContentChange ::= SEQUENCE {
  rename
    CHOICE {newRDN  RelativeDistinguishedName,
            newDN   DistinguishedName} OPTIONAL,
  attributeChanges
    CHOICE {replace  [0]  SET --SIZE (1..MAX)-- OF Attribute,
            changes  [1]  SEQUENCE --SIZE (1..MAX)-- OF EntryModification
  } OPTIONAL,
  sDSEType          SDSEType,
  subComplete       [2]  BOOLEAN DEFAULT FALSE,
  attComplete       [3]  BOOLEAN OPTIONAL,
  attValIncomplete  SET OF AttributeType DEFAULT {}
}

SubordinateChanges ::= SEQUENCE {
  subordinate  RelativeDistinguishedName,
  changes      IncrementalStepRefresh
}

-- errors and parameters 
ShadowErrorData ::=  -- ERROR ::= {
--  PARAMETER OPTIONALLY-PROTECTED-SEQ
--    { --SEQUENCE {problem       ShadowProblem,
               lastUpdate    Time OPTIONAL,
               updateWindow  UpdateWindow OPTIONAL,
--               COMPONENTS OF CommonResultsSeq}}
	       securityParameters  [30]  SecurityParameters OPTIONAL,
	       performer           [29]  DistinguishedName OPTIONAL,
	       aliasDereferenced   [28]  BOOLEAN DEFAULT FALSE,
	       notification        [27]  SEQUENCE --SIZE (1..MAX)-- OF Attribute OPTIONAL
--  CODE                                id-errcode-shadowError
}

-- OPTIONALLY-PROTECTED-SEQ macro expansion
ShadowError ::= CHOICE {
  unsignedShadowError ShadowErrorData,
  signedShadowError [0] SEQUENCE {
    shadowError		ShadowErrorData,
    algorithmIdentifier	AlgorithmIdentifier,
    encrypted		BIT STRING
    }
}


ShadowProblem ::= INTEGER {
  invalidAgreementID(1), inactiveAgreement(2), invalidInformationReceived(3),
  unsupportedStrategy(4), missedPrevious(5), fullUpdateRequired(6),
  unwillingToPerform(7), unsuitableTiming(8), updateAlreadyReceived(9),
  invalidSequencing(10), insufficientResources(11)}

END -- DirectoryShadowAbstractService

-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D