change the signature that asn2wrs generates for functions to marm all parameters...
[obnox/wireshark/wip.git] / epan / dissectors / packet-dop.c
1 /* Do not modify this file.                                                   */
2 /* It is created automatically by the ASN.1 to Wireshark dissector compiler   */
3 /* ./packet-dop.c                                                             */
4 /* ../../tools/asn2wrs.py -b -e -p dop -c dop.cnf -s packet-dop-template dop.asn */
5
6 /* Input file: packet-dop-template.c */
7
8 #line 1 "packet-dop-template.c"
9 /* packet-dop.c
10  * Routines for X.501 (DSA Operational Attributes)  packet dissection
11  * Graeme Lunt 2005
12  *
13  * $Id$
14  *
15  * Wireshark - Network traffic analyzer
16  * By Gerald Combs <gerald@wireshark.org>
17  * Copyright 1998 Gerald Combs
18  *
19  * This program is free software; you can redistribute it and/or
20  * modify it under the terms of the GNU General Public License
21  * as published by the Free Software Foundation; either version 2
22  * of the License, or (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program; if not, write to the Free Software
31  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
32  */
33
34 #ifdef HAVE_CONFIG_H
35 # include "config.h"
36 #endif
37
38 #include <glib.h>
39 #include <epan/packet.h>
40 #include <epan/prefs.h>
41 #include <epan/conversation.h>
42 #include <epan/oid_resolv.h>
43
44 #include <stdio.h>
45 #include <string.h>
46
47 #include "packet-ber.h"
48 #include "packet-acse.h"
49 #include "packet-ros.h"
50
51 #include "packet-x509sat.h"
52 #include "packet-x509af.h"
53 #include "packet-x509if.h"
54 #include "packet-dap.h"
55 #include "packet-dsp.h"
56 #include "packet-crmf.h"
57
58
59 #include "packet-dop.h"
60
61 #define PNAME  "X.501 Directory Operational Binding Management Protocol"
62 #define PSNAME "DOP"
63 #define PFNAME "dop"
64
65 static guint global_dop_tcp_port = 102;
66 static guint tcp_port = 0;
67 static dissector_handle_t tpkt_handle = NULL;
68 void prefs_register_dop(void); /* forwad declaration for use in preferences registration */
69
70 /* Initialize the protocol and registered fields */
71 int proto_dop = -1;
72
73 static struct SESSION_DATA_STRUCTURE* session = NULL;
74 static const char *binding_type = NULL; /* binding_type */
75
76 static int call_dop_oid_callback(char *base_oid, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, char *col_info);
77
78
79 /*--- Included file: packet-dop-hf.c ---*/
80 #line 1 "packet-dop-hf.c"
81 static int hf_dop_DSEType_PDU = -1;               /* DSEType */
82 static int hf_dop_SupplierInformation_PDU = -1;   /* SupplierInformation */
83 static int hf_dop_ConsumerInformation_PDU = -1;   /* ConsumerInformation */
84 static int hf_dop_SupplierAndConsumers_PDU = -1;  /* SupplierAndConsumers */
85 static int hf_dop_HierarchicalAgreement_PDU = -1;  /* HierarchicalAgreement */
86 static int hf_dop_SuperiorToSubordinate_PDU = -1;  /* SuperiorToSubordinate */
87 static int hf_dop_SubordinateToSuperior_PDU = -1;  /* SubordinateToSuperior */
88 static int hf_dop_SuperiorToSubordinateModification_PDU = -1;  /* SuperiorToSubordinateModification */
89 static int hf_dop_NonSpecificHierarchicalAgreement_PDU = -1;  /* NonSpecificHierarchicalAgreement */
90 static int hf_dop_NHOBSuperiorToSubordinate_PDU = -1;  /* NHOBSuperiorToSubordinate */
91 static int hf_dop_NHOBSubordinateToSuperior_PDU = -1;  /* NHOBSubordinateToSuperior */
92 static int hf_dop_ACIItem_PDU = -1;               /* ACIItem */
93 static int hf_dop_ae_title = -1;                  /* Name */
94 static int hf_dop_address = -1;                   /* PresentationAddress */
95 static int hf_dop_protocolInformation = -1;       /* SET_OF_ProtocolInformation */
96 static int hf_dop_protocolInformation_item = -1;  /* ProtocolInformation */
97 static int hf_dop_agreementID = -1;               /* OperationalBindingID */
98 static int hf_dop_supplier_is_master = -1;        /* BOOLEAN */
99 static int hf_dop_non_supplying_master = -1;      /* AccessPoint */
100 static int hf_dop_consumers = -1;                 /* SET_OF_AccessPoint */
101 static int hf_dop_consumers_item = -1;            /* AccessPoint */
102 static int hf_dop_bindingType = -1;               /* OBJECT_IDENTIFIER */
103 static int hf_dop_bindingID = -1;                 /* OperationalBindingID */
104 static int hf_dop_accessPoint = -1;               /* AccessPoint */
105 static int hf_dop_establishInitiator = -1;        /* EstablishArgumentInitiator */
106 static int hf_dop_establishSymmetric = -1;        /* EstablishSymmetric */
107 static int hf_dop_establishRoleAInitiates = -1;   /* EstablishRoleAInitiates */
108 static int hf_dop_establishRoleBInitiates = -1;   /* EstablishRoleBInitiates */
109 static int hf_dop_agreement = -1;                 /* T_agreement */
110 static int hf_dop_valid = -1;                     /* Validity */
111 static int hf_dop_securityParameters = -1;        /* SecurityParameters */
112 static int hf_dop_unsignedEstablishOperationalBindingArgument = -1;  /* EstablishOperationalBindingArgumentData */
113 static int hf_dop_signedEstablishOperationalBindingArgument = -1;  /* T_signedEstablishOperationalBindingArgument */
114 static int hf_dop_establishOperationalBindingArgument = -1;  /* EstablishOperationalBindingArgumentData */
115 static int hf_dop_algorithmIdentifier = -1;       /* AlgorithmIdentifier */
116 static int hf_dop_encrypted = -1;                 /* BIT_STRING */
117 static int hf_dop_identifier = -1;                /* INTEGER */
118 static int hf_dop_version = -1;                   /* INTEGER */
119 static int hf_dop_validFrom = -1;                 /* T_validFrom */
120 static int hf_dop_now = -1;                       /* NULL */
121 static int hf_dop_time = -1;                      /* Time */
122 static int hf_dop_validUntil = -1;                /* T_validUntil */
123 static int hf_dop_explicitTermination = -1;       /* NULL */
124 static int hf_dop_utcTime = -1;                   /* UTCTime */
125 static int hf_dop_generalizedTime = -1;           /* GeneralizedTime */
126 static int hf_dop_initiator = -1;                 /* T_initiator */
127 static int hf_dop_symmetric = -1;                 /* T_symmetric */
128 static int hf_dop_roleA_replies = -1;             /* T_roleA_replies */
129 static int hf_dop_roleB_replies = -1;             /* T_roleB_replies */
130 static int hf_dop_performer = -1;                 /* DistinguishedName */
131 static int hf_dop_aliasDereferenced = -1;         /* BOOLEAN */
132 static int hf_dop_notification = -1;              /* SEQUENCE_SIZE_1_MAX_OF_Attribute */
133 static int hf_dop_notification_item = -1;         /* Attribute */
134 static int hf_dop_modifyInitiator = -1;           /* ModifyArgumentInitiator */
135 static int hf_dop_modifySymmetric = -1;           /* ModifySymmetric */
136 static int hf_dop_modifyRoleAInitiates = -1;      /* ModifyRoleAInitiates */
137 static int hf_dop_modifyRoleBInitiates = -1;      /* ModifyRoleBInitiates */
138 static int hf_dop_newBindingID = -1;              /* OperationalBindingID */
139 static int hf_dop_argumentNewAgreement = -1;      /* ArgumentNewAgreement */
140 static int hf_dop_unsignedModifyOperationalBindingArgument = -1;  /* ModifyOperationalBindingArgumentData */
141 static int hf_dop_signedModifyOperationalBindingArgument = -1;  /* T_signedModifyOperationalBindingArgument */
142 static int hf_dop_modifyOperationalBindingArgument = -1;  /* ModifyOperationalBindingArgumentData */
143 static int hf_dop_null = -1;                      /* NULL */
144 static int hf_dop_protectedModifyResult = -1;     /* ProtectedModifyResult */
145 static int hf_dop_modifyOperationalBindingResultData = -1;  /* ModifyOperationalBindingResultData */
146 static int hf_dop_resultNewAgreement = -1;        /* ResultNewAgreement */
147 static int hf_dop_terminateInitiator = -1;        /* TerminateArgumentInitiator */
148 static int hf_dop_terminateSymmetric = -1;        /* TerminateSymmetric */
149 static int hf_dop_terminateRoleAInitiates = -1;   /* TerminateRoleAInitiates */
150 static int hf_dop_terminateRoleBInitiates = -1;   /* TerminateRoleBInitiates */
151 static int hf_dop_terminateAtTime = -1;           /* Time */
152 static int hf_dop_unsignedTerminateOperationalBindingArgument = -1;  /* TerminateOperationalBindingArgumentData */
153 static int hf_dop_signedTerminateOperationalBindingArgument = -1;  /* T_signedTerminateOperationalBindingArgument */
154 static int hf_dop_terminateOperationalBindingArgument = -1;  /* TerminateOperationalBindingArgumentData */
155 static int hf_dop_protectedTerminateResult = -1;  /* ProtectedTerminateResult */
156 static int hf_dop_terminateOperationalBindingResultData = -1;  /* TerminateOperationalBindingResultData */
157 static int hf_dop_terminateAtGeneralizedTime = -1;  /* GeneralizedTime */
158 static int hf_dop_problem = -1;                   /* T_problem */
159 static int hf_dop_agreementProposal = -1;         /* T_agreementProposal */
160 static int hf_dop_retryAt = -1;                   /* Time */
161 static int hf_dop_rdn = -1;                       /* RelativeDistinguishedName */
162 static int hf_dop_immediateSuperior = -1;         /* DistinguishedName */
163 static int hf_dop_contextPrefixInfo = -1;         /* DITcontext */
164 static int hf_dop_entryInfo = -1;                 /* SET_OF_Attribute */
165 static int hf_dop_entryInfo_item = -1;            /* Attribute */
166 static int hf_dop_immediateSuperiorInfo = -1;     /* SET_OF_Attribute */
167 static int hf_dop_immediateSuperiorInfo_item = -1;  /* Attribute */
168 static int hf_dop_DITcontext_item = -1;           /* Vertex */
169 static int hf_dop_admPointInfo = -1;              /* SET_OF_Attribute */
170 static int hf_dop_admPointInfo_item = -1;         /* Attribute */
171 static int hf_dop_subentries = -1;                /* SET_OF_SubentryInfo */
172 static int hf_dop_subentries_item = -1;           /* SubentryInfo */
173 static int hf_dop_accessPoints = -1;              /* MasterAndShadowAccessPoints */
174 static int hf_dop_info = -1;                      /* SET_OF_Attribute */
175 static int hf_dop_info_item = -1;                 /* Attribute */
176 static int hf_dop_alias = -1;                     /* BOOLEAN */
177 static int hf_dop_identificationTag = -1;         /* DirectoryString */
178 static int hf_dop_precedence = -1;                /* Precedence */
179 static int hf_dop_authenticationLevel = -1;       /* AuthenticationLevel */
180 static int hf_dop_itemOrUserFirst = -1;           /* T_itemOrUserFirst */
181 static int hf_dop_itemFirst = -1;                 /* T_itemFirst */
182 static int hf_dop_protectedItems = -1;            /* ProtectedItems */
183 static int hf_dop_itemPermissions = -1;           /* SET_OF_ItemPermission */
184 static int hf_dop_itemPermissions_item = -1;      /* ItemPermission */
185 static int hf_dop_userFirst = -1;                 /* T_userFirst */
186 static int hf_dop_userClasses = -1;               /* UserClasses */
187 static int hf_dop_userPermissions = -1;           /* SET_OF_UserPermission */
188 static int hf_dop_userPermissions_item = -1;      /* UserPermission */
189 static int hf_dop_entry = -1;                     /* NULL */
190 static int hf_dop_allUserAttributeTypes = -1;     /* NULL */
191 static int hf_dop_attributeType = -1;             /* SET_OF_AttributeType */
192 static int hf_dop_attributeType_item = -1;        /* AttributeType */
193 static int hf_dop_allAttributeValues = -1;        /* SET_OF_AttributeType */
194 static int hf_dop_allAttributeValues_item = -1;   /* AttributeType */
195 static int hf_dop_allUserAttributeTypesAndValues = -1;  /* NULL */
196 static int hf_dop_attributeValue = -1;            /* SET_OF_AttributeTypeAndValue */
197 static int hf_dop_attributeValue_item = -1;       /* AttributeTypeAndValue */
198 static int hf_dop_selfValue = -1;                 /* SET_OF_AttributeType */
199 static int hf_dop_selfValue_item = -1;            /* AttributeType */
200 static int hf_dop_rangeOfValues = -1;             /* Filter */
201 static int hf_dop_maxValueCount = -1;             /* SET_OF_MaxValueCount */
202 static int hf_dop_maxValueCount_item = -1;        /* MaxValueCount */
203 static int hf_dop_maxImmSub = -1;                 /* INTEGER */
204 static int hf_dop_restrictedBy = -1;              /* SET_OF_RestrictedValue */
205 static int hf_dop_restrictedBy_item = -1;         /* RestrictedValue */
206 static int hf_dop_contexts = -1;                  /* SET_OF_ContextAssertion */
207 static int hf_dop_contexts_item = -1;             /* ContextAssertion */
208 static int hf_dop_classes = -1;                   /* Refinement */
209 static int hf_dop_type = -1;                      /* AttributeType */
210 static int hf_dop_maxCount = -1;                  /* INTEGER */
211 static int hf_dop_valuesIn = -1;                  /* AttributeType */
212 static int hf_dop_allUsers = -1;                  /* NULL */
213 static int hf_dop_thisEntry = -1;                 /* NULL */
214 static int hf_dop_name = -1;                      /* SET_OF_NameAndOptionalUID */
215 static int hf_dop_name_item = -1;                 /* NameAndOptionalUID */
216 static int hf_dop_userGroup = -1;                 /* SET_OF_NameAndOptionalUID */
217 static int hf_dop_userGroup_item = -1;            /* NameAndOptionalUID */
218 static int hf_dop_subtree = -1;                   /* SET_OF_SubtreeSpecification */
219 static int hf_dop_subtree_item = -1;              /* SubtreeSpecification */
220 static int hf_dop_grantsAndDenials = -1;          /* GrantsAndDenials */
221 static int hf_dop_basicLevels = -1;               /* T_basicLevels */
222 static int hf_dop_level = -1;                     /* T_level */
223 static int hf_dop_localQualifier = -1;            /* INTEGER */
224 static int hf_dop_signed = -1;                    /* BOOLEAN */
225 static int hf_dop_other = -1;                     /* EXTERNAL */
226 /* named bits */
227 static int hf_dop_DSEType_root = -1;
228 static int hf_dop_DSEType_glue = -1;
229 static int hf_dop_DSEType_cp = -1;
230 static int hf_dop_DSEType_entry = -1;
231 static int hf_dop_DSEType_alias = -1;
232 static int hf_dop_DSEType_subr = -1;
233 static int hf_dop_DSEType_nssr = -1;
234 static int hf_dop_DSEType_supr = -1;
235 static int hf_dop_DSEType_xr = -1;
236 static int hf_dop_DSEType_admPoint = -1;
237 static int hf_dop_DSEType_subentry = -1;
238 static int hf_dop_DSEType_shadow = -1;
239 static int hf_dop_DSEType_immSupr = -1;
240 static int hf_dop_DSEType_rhob = -1;
241 static int hf_dop_DSEType_sa = -1;
242 static int hf_dop_DSEType_dsSubentry = -1;
243 static int hf_dop_DSEType_familyMember = -1;
244 static int hf_dop_GrantsAndDenials_grantAdd = -1;
245 static int hf_dop_GrantsAndDenials_denyAdd = -1;
246 static int hf_dop_GrantsAndDenials_grantDiscloseOnError = -1;
247 static int hf_dop_GrantsAndDenials_denyDiscloseOnError = -1;
248 static int hf_dop_GrantsAndDenials_grantRead = -1;
249 static int hf_dop_GrantsAndDenials_denyRead = -1;
250 static int hf_dop_GrantsAndDenials_grantRemove = -1;
251 static int hf_dop_GrantsAndDenials_denyRemove = -1;
252 static int hf_dop_GrantsAndDenials_grantBrowse = -1;
253 static int hf_dop_GrantsAndDenials_denyBrowse = -1;
254 static int hf_dop_GrantsAndDenials_grantExport = -1;
255 static int hf_dop_GrantsAndDenials_denyExport = -1;
256 static int hf_dop_GrantsAndDenials_grantImport = -1;
257 static int hf_dop_GrantsAndDenials_denyImport = -1;
258 static int hf_dop_GrantsAndDenials_grantModify = -1;
259 static int hf_dop_GrantsAndDenials_denyModify = -1;
260 static int hf_dop_GrantsAndDenials_grantRename = -1;
261 static int hf_dop_GrantsAndDenials_denyRename = -1;
262 static int hf_dop_GrantsAndDenials_grantReturnDN = -1;
263 static int hf_dop_GrantsAndDenials_denyReturnDN = -1;
264 static int hf_dop_GrantsAndDenials_grantCompare = -1;
265 static int hf_dop_GrantsAndDenials_denyCompare = -1;
266 static int hf_dop_GrantsAndDenials_grantFilterMatch = -1;
267 static int hf_dop_GrantsAndDenials_denyFilterMatch = -1;
268 static int hf_dop_GrantsAndDenials_grantInvoke = -1;
269 static int hf_dop_GrantsAndDenials_denyInvoke = -1;
270
271 /*--- End of included file: packet-dop-hf.c ---*/
272 #line 71 "packet-dop-template.c"
273
274 /* Initialize the subtree pointers */
275 static gint ett_dop = -1;
276
277 /*--- Included file: packet-dop-ett.c ---*/
278 #line 1 "packet-dop-ett.c"
279 static gint ett_dop_DSEType = -1;
280 static gint ett_dop_SupplierOrConsumer = -1;
281 static gint ett_dop_SET_OF_ProtocolInformation = -1;
282 static gint ett_dop_SupplierInformation = -1;
283 static gint ett_dop_SupplierAndConsumers = -1;
284 static gint ett_dop_SET_OF_AccessPoint = -1;
285 static gint ett_dop_EstablishOperationalBindingArgumentData = -1;
286 static gint ett_dop_EstablishArgumentInitiator = -1;
287 static gint ett_dop_EstablishOperationalBindingArgument = -1;
288 static gint ett_dop_T_signedEstablishOperationalBindingArgument = -1;
289 static gint ett_dop_OperationalBindingID = -1;
290 static gint ett_dop_Validity = -1;
291 static gint ett_dop_T_validFrom = -1;
292 static gint ett_dop_T_validUntil = -1;
293 static gint ett_dop_Time = -1;
294 static gint ett_dop_EstablishOperationalBindingResult = -1;
295 static gint ett_dop_T_initiator = -1;
296 static gint ett_dop_SEQUENCE_SIZE_1_MAX_OF_Attribute = -1;
297 static gint ett_dop_ModifyOperationalBindingArgumentData = -1;
298 static gint ett_dop_ModifyArgumentInitiator = -1;
299 static gint ett_dop_ModifyOperationalBindingArgument = -1;
300 static gint ett_dop_T_signedModifyOperationalBindingArgument = -1;
301 static gint ett_dop_ModifyOperationalBindingResult = -1;
302 static gint ett_dop_ProtectedModifyResult = -1;
303 static gint ett_dop_ModifyOperationalBindingResultData = -1;
304 static gint ett_dop_TerminateOperationalBindingArgumentData = -1;
305 static gint ett_dop_TerminateArgumentInitiator = -1;
306 static gint ett_dop_TerminateOperationalBindingArgument = -1;
307 static gint ett_dop_T_signedTerminateOperationalBindingArgument = -1;
308 static gint ett_dop_TerminateOperationalBindingResult = -1;
309 static gint ett_dop_ProtectedTerminateResult = -1;
310 static gint ett_dop_TerminateOperationalBindingResultData = -1;
311 static gint ett_dop_OpBindingErrorParam = -1;
312 static gint ett_dop_HierarchicalAgreement = -1;
313 static gint ett_dop_SuperiorToSubordinate = -1;
314 static gint ett_dop_SET_OF_Attribute = -1;
315 static gint ett_dop_DITcontext = -1;
316 static gint ett_dop_Vertex = -1;
317 static gint ett_dop_SET_OF_SubentryInfo = -1;
318 static gint ett_dop_SubentryInfo = -1;
319 static gint ett_dop_SubordinateToSuperior = -1;
320 static gint ett_dop_SuperiorToSubordinateModification = -1;
321 static gint ett_dop_NonSpecificHierarchicalAgreement = -1;
322 static gint ett_dop_NHOBSuperiorToSubordinate = -1;
323 static gint ett_dop_NHOBSubordinateToSuperior = -1;
324 static gint ett_dop_ACIItem = -1;
325 static gint ett_dop_T_itemOrUserFirst = -1;
326 static gint ett_dop_T_itemFirst = -1;
327 static gint ett_dop_SET_OF_ItemPermission = -1;
328 static gint ett_dop_T_userFirst = -1;
329 static gint ett_dop_SET_OF_UserPermission = -1;
330 static gint ett_dop_ProtectedItems = -1;
331 static gint ett_dop_SET_OF_AttributeType = -1;
332 static gint ett_dop_SET_OF_AttributeTypeAndValue = -1;
333 static gint ett_dop_SET_OF_MaxValueCount = -1;
334 static gint ett_dop_SET_OF_RestrictedValue = -1;
335 static gint ett_dop_SET_OF_ContextAssertion = -1;
336 static gint ett_dop_MaxValueCount = -1;
337 static gint ett_dop_RestrictedValue = -1;
338 static gint ett_dop_UserClasses = -1;
339 static gint ett_dop_SET_OF_NameAndOptionalUID = -1;
340 static gint ett_dop_SET_OF_SubtreeSpecification = -1;
341 static gint ett_dop_ItemPermission = -1;
342 static gint ett_dop_UserPermission = -1;
343 static gint ett_dop_AuthenticationLevel = -1;
344 static gint ett_dop_T_basicLevels = -1;
345 static gint ett_dop_GrantsAndDenials = -1;
346
347 /*--- End of included file: packet-dop-ett.c ---*/
348 #line 75 "packet-dop-template.c"
349
350
351 /*--- Included file: packet-dop-fn.c ---*/
352 #line 1 "packet-dop-fn.c"
353 /*--- Fields for imported types ---*/
354
355 static int dissect_ae_title(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
356   return dissect_x509if_Name(FALSE, tvb, offset, pinfo, tree, hf_dop_ae_title);
357 }
358 static int dissect_address(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
359   return dissect_x509sat_PresentationAddress(FALSE, tvb, offset, pinfo, tree, hf_dop_address);
360 }
361 static int dissect_protocolInformation_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
362   return dissect_x509sat_ProtocolInformation(FALSE, tvb, offset, pinfo, tree, hf_dop_protocolInformation_item);
363 }
364 static int dissect_non_supplying_master(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
365   return dissect_dsp_AccessPoint(FALSE, tvb, offset, pinfo, tree, hf_dop_non_supplying_master);
366 }
367 static int dissect_consumers_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
368   return dissect_dsp_AccessPoint(FALSE, tvb, offset, pinfo, tree, hf_dop_consumers_item);
369 }
370 static int dissect_accessPoint(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
371   return dissect_dsp_AccessPoint(FALSE, tvb, offset, pinfo, tree, hf_dop_accessPoint);
372 }
373 static int dissect_securityParameters(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
374   return dissect_dap_SecurityParameters(FALSE, tvb, offset, pinfo, tree, hf_dop_securityParameters);
375 }
376 static int dissect_algorithmIdentifier(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
377   return dissect_x509af_AlgorithmIdentifier(FALSE, tvb, offset, pinfo, tree, hf_dop_algorithmIdentifier);
378 }
379 static int dissect_performer(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
380   return dissect_x509if_DistinguishedName(FALSE, tvb, offset, pinfo, tree, hf_dop_performer);
381 }
382 static int dissect_notification_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
383   return dissect_x509if_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_notification_item);
384 }
385 static int dissect_rdn(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
386   return dissect_x509if_RelativeDistinguishedName(FALSE, tvb, offset, pinfo, tree, hf_dop_rdn);
387 }
388 static int dissect_immediateSuperior(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
389   return dissect_x509if_DistinguishedName(FALSE, tvb, offset, pinfo, tree, hf_dop_immediateSuperior);
390 }
391 static int dissect_entryInfo_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
392   return dissect_x509if_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_entryInfo_item);
393 }
394 static int dissect_immediateSuperiorInfo_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
395   return dissect_x509if_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_immediateSuperiorInfo_item);
396 }
397 static int dissect_admPointInfo_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
398   return dissect_x509if_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_admPointInfo_item);
399 }
400 static int dissect_accessPoints(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
401   return dissect_dsp_MasterAndShadowAccessPoints(FALSE, tvb, offset, pinfo, tree, hf_dop_accessPoints);
402 }
403 static int dissect_info_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
404   return dissect_x509if_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_info_item);
405 }
406 static int dissect_identificationTag(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
407   return dissect_x509sat_DirectoryString(FALSE, tvb, offset, pinfo, tree, hf_dop_identificationTag);
408 }
409 static int dissect_attributeType_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
410   return dissect_x509if_AttributeType(FALSE, tvb, offset, pinfo, tree, hf_dop_attributeType_item);
411 }
412 static int dissect_allAttributeValues_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
413   return dissect_x509if_AttributeType(FALSE, tvb, offset, pinfo, tree, hf_dop_allAttributeValues_item);
414 }
415 static int dissect_attributeValue_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
416   return dissect_crmf_AttributeTypeAndValue(FALSE, tvb, offset, pinfo, tree, hf_dop_attributeValue_item);
417 }
418 static int dissect_selfValue_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
419   return dissect_x509if_AttributeType(FALSE, tvb, offset, pinfo, tree, hf_dop_selfValue_item);
420 }
421 static int dissect_rangeOfValues(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
422   return dissect_dap_Filter(FALSE, tvb, offset, pinfo, tree, hf_dop_rangeOfValues);
423 }
424 static int dissect_contexts_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
425   return dissect_x509if_ContextAssertion(FALSE, tvb, offset, pinfo, tree, hf_dop_contexts_item);
426 }
427 static int dissect_classes(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
428   return dissect_x509if_Refinement(FALSE, tvb, offset, pinfo, tree, hf_dop_classes);
429 }
430 static int dissect_type(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
431   return dissect_x509if_AttributeType(FALSE, tvb, offset, pinfo, tree, hf_dop_type);
432 }
433 static int dissect_valuesIn(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
434   return dissect_x509if_AttributeType(FALSE, tvb, offset, pinfo, tree, hf_dop_valuesIn);
435 }
436 static int dissect_name_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
437   return dissect_x509sat_NameAndOptionalUID(FALSE, tvb, offset, pinfo, tree, hf_dop_name_item);
438 }
439 static int dissect_userGroup_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
440   return dissect_x509sat_NameAndOptionalUID(FALSE, tvb, offset, pinfo, tree, hf_dop_userGroup_item);
441 }
442 static int dissect_subtree_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
443   return dissect_x509if_SubtreeSpecification(FALSE, tvb, offset, pinfo, tree, hf_dop_subtree_item);
444 }
445 static int dissect_other(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
446   return dissect_acse_EXTERNAL(FALSE, tvb, offset, pinfo, tree, hf_dop_other);
447 }
448
449
450 static const asn_namedbit DSEType_bits[] = {
451   {  0, &hf_dop_DSEType_root, -1, -1, "root", NULL },
452   {  1, &hf_dop_DSEType_glue, -1, -1, "glue", NULL },
453   {  2, &hf_dop_DSEType_cp, -1, -1, "cp", NULL },
454   {  3, &hf_dop_DSEType_entry, -1, -1, "entry", NULL },
455   {  4, &hf_dop_DSEType_alias, -1, -1, "alias", NULL },
456   {  5, &hf_dop_DSEType_subr, -1, -1, "subr", NULL },
457   {  6, &hf_dop_DSEType_nssr, -1, -1, "nssr", NULL },
458   {  7, &hf_dop_DSEType_supr, -1, -1, "supr", NULL },
459   {  8, &hf_dop_DSEType_xr, -1, -1, "xr", NULL },
460   {  9, &hf_dop_DSEType_admPoint, -1, -1, "admPoint", NULL },
461   { 10, &hf_dop_DSEType_subentry, -1, -1, "subentry", NULL },
462   { 11, &hf_dop_DSEType_shadow, -1, -1, "shadow", NULL },
463   { 13, &hf_dop_DSEType_immSupr, -1, -1, "immSupr", NULL },
464   { 14, &hf_dop_DSEType_rhob, -1, -1, "rhob", NULL },
465   { 15, &hf_dop_DSEType_sa, -1, -1, "sa", NULL },
466   { 16, &hf_dop_DSEType_dsSubentry, -1, -1, "dsSubentry", NULL },
467   { 17, &hf_dop_DSEType_familyMember, -1, -1, "familyMember", NULL },
468   { 0, NULL, 0, 0, NULL, NULL }
469 };
470
471 int
472 dissect_dop_DSEType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
473   offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
474                                     DSEType_bits, hf_index, ett_dop_DSEType,
475                                     NULL);
476
477   return offset;
478 }
479
480
481 static const ber_sequence_t SET_OF_ProtocolInformation_set_of[1] = {
482   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_protocolInformation_item },
483 };
484
485 static int
486 dissect_dop_SET_OF_ProtocolInformation(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
487   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
488                                  SET_OF_ProtocolInformation_set_of, hf_index, ett_dop_SET_OF_ProtocolInformation);
489
490   return offset;
491 }
492 static int dissect_protocolInformation(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
493   return dissect_dop_SET_OF_ProtocolInformation(FALSE, tvb, offset, pinfo, tree, hf_dop_protocolInformation);
494 }
495
496
497
498 static int
499 dissect_dop_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
500 #line 172 "dop.cnf"
501         guint32 value;
502
503           offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
504                                   &value);
505
506
507         if (check_col(pinfo->cinfo, COL_INFO)) {
508                 if(hf_index == hf_dop_identifier) {
509                         col_append_fstr(pinfo->cinfo, COL_INFO, " id=%d", value);
510                 } else if (hf_index == hf_dop_version) {
511                         col_append_fstr(pinfo->cinfo, COL_INFO, ",%d", value);
512                 }
513         }
514
515
516
517   return offset;
518 }
519 static int dissect_identifier(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
520   return dissect_dop_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_dop_identifier);
521 }
522 static int dissect_version(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
523   return dissect_dop_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_dop_version);
524 }
525 static int dissect_maxImmSub(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
526   return dissect_dop_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_dop_maxImmSub);
527 }
528 static int dissect_maxCount(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
529   return dissect_dop_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_dop_maxCount);
530 }
531 static int dissect_localQualifier(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
532   return dissect_dop_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_dop_localQualifier);
533 }
534
535
536 static const ber_sequence_t OperationalBindingID_sequence[] = {
537   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_identifier },
538   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_version },
539   { 0, 0, 0, NULL }
540 };
541
542 int
543 dissect_dop_OperationalBindingID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
544   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
545                                    OperationalBindingID_sequence, hf_index, ett_dop_OperationalBindingID);
546
547   return offset;
548 }
549 static int dissect_agreementID(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
550   return dissect_dop_OperationalBindingID(FALSE, tvb, offset, pinfo, tree, hf_dop_agreementID);
551 }
552 static int dissect_bindingID(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
553   return dissect_dop_OperationalBindingID(FALSE, tvb, offset, pinfo, tree, hf_dop_bindingID);
554 }
555 static int dissect_newBindingID(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
556   return dissect_dop_OperationalBindingID(FALSE, tvb, offset, pinfo, tree, hf_dop_newBindingID);
557 }
558
559
560 static const ber_sequence_t SupplierOrConsumer_set[] = {
561   { BER_CLASS_CON, 0, 0, dissect_ae_title },
562   { BER_CLASS_CON, 1, 0, dissect_address },
563   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_protocolInformation },
564   { BER_CLASS_CON, 3, 0, dissect_agreementID },
565   { 0, 0, 0, NULL }
566 };
567
568 static int
569 dissect_dop_SupplierOrConsumer(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
570   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
571                               SupplierOrConsumer_set, hf_index, ett_dop_SupplierOrConsumer);
572
573   return offset;
574 }
575
576
577
578 static int
579 dissect_dop_BOOLEAN(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
580   offset = dissect_ber_boolean(implicit_tag, pinfo, tree, tvb, offset, hf_index);
581
582   return offset;
583 }
584 static int dissect_supplier_is_master(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
585   return dissect_dop_BOOLEAN(FALSE, tvb, offset, pinfo, tree, hf_dop_supplier_is_master);
586 }
587 static int dissect_aliasDereferenced(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
588   return dissect_dop_BOOLEAN(FALSE, tvb, offset, pinfo, tree, hf_dop_aliasDereferenced);
589 }
590 static int dissect_alias(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
591   return dissect_dop_BOOLEAN(FALSE, tvb, offset, pinfo, tree, hf_dop_alias);
592 }
593 static int dissect_signed(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
594   return dissect_dop_BOOLEAN(FALSE, tvb, offset, pinfo, tree, hf_dop_signed);
595 }
596
597
598 static const ber_sequence_t SupplierInformation_set[] = {
599   { BER_CLASS_CON, 0, 0, dissect_ae_title },
600   { BER_CLASS_CON, 1, 0, dissect_address },
601   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_protocolInformation },
602   { BER_CLASS_CON, 3, 0, dissect_agreementID },
603   { BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL, dissect_supplier_is_master },
604   { BER_CLASS_CON, 5, BER_FLAGS_OPTIONAL, dissect_non_supplying_master },
605   { 0, 0, 0, NULL }
606 };
607
608 static int
609 dissect_dop_SupplierInformation(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
610   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
611                               SupplierInformation_set, hf_index, ett_dop_SupplierInformation);
612
613   return offset;
614 }
615
616
617
618 static int
619 dissect_dop_ConsumerInformation(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
620   offset = dissect_dop_SupplierOrConsumer(implicit_tag, tvb, offset, pinfo, tree, hf_index);
621
622   return offset;
623 }
624
625
626 static const ber_sequence_t SET_OF_AccessPoint_set_of[1] = {
627   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_consumers_item },
628 };
629
630 static int
631 dissect_dop_SET_OF_AccessPoint(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
632   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
633                                  SET_OF_AccessPoint_set_of, hf_index, ett_dop_SET_OF_AccessPoint);
634
635   return offset;
636 }
637 static int dissect_consumers(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
638   return dissect_dop_SET_OF_AccessPoint(FALSE, tvb, offset, pinfo, tree, hf_dop_consumers);
639 }
640
641
642 static const ber_sequence_t SupplierAndConsumers_set[] = {
643   { BER_CLASS_CON, 0, 0, dissect_ae_title },
644   { BER_CLASS_CON, 1, 0, dissect_address },
645   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_protocolInformation },
646   { BER_CLASS_CON, 3, 0, dissect_consumers },
647   { 0, 0, 0, NULL }
648 };
649
650 int
651 dissect_dop_SupplierAndConsumers(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
652   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
653                               SupplierAndConsumers_set, hf_index, ett_dop_SupplierAndConsumers);
654
655   return offset;
656 }
657
658
659
660 static int
661 dissect_dop_DSAOperationalManagementBindArgument(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
662   offset = dissect_dap_DirectoryBindArgument(implicit_tag, tvb, offset, pinfo, tree, hf_index);
663
664   return offset;
665 }
666
667
668
669 static int
670 dissect_dop_DSAOperationalManagementBindResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
671   offset = dissect_dap_DirectoryBindArgument(implicit_tag, tvb, offset, pinfo, tree, hf_index);
672
673   return offset;
674 }
675
676
677
678 static int
679 dissect_dop_DSAOperationalManagementBindError(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
680   offset = dissect_dap_DirectoryBindError(implicit_tag, tvb, offset, pinfo, tree, hf_index);
681
682   return offset;
683 }
684
685
686
687 static int
688 dissect_dop_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
689 #line 94 "dop.cnf"
690   const char *name;
691
692     offset = dissect_ber_object_identifier_str(implicit_tag, pinfo, tree, tvb, offset, hf_index, &binding_type);
693
694
695   if(check_col(pinfo->cinfo, COL_INFO)) {
696     name = get_oid_str_name(binding_type);
697     col_append_fstr(pinfo->cinfo, COL_INFO, " %s", name ? name : binding_type);
698   }
699
700
701
702   return offset;
703 }
704 static int dissect_bindingType(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
705   return dissect_dop_OBJECT_IDENTIFIER(FALSE, tvb, offset, pinfo, tree, hf_dop_bindingType);
706 }
707
708
709
710 static int
711 dissect_dop_EstablishSymmetric(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
712 #line 104 "dop.cnf"
713
714   offset = call_dop_oid_callback("dop.establish.symmetric", tvb, offset, pinfo, tree, "symmetric");
715
716
717
718   return offset;
719 }
720 static int dissect_establishSymmetric(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
721   return dissect_dop_EstablishSymmetric(FALSE, tvb, offset, pinfo, tree, hf_dop_establishSymmetric);
722 }
723
724
725
726 static int
727 dissect_dop_EstablishRoleAInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
728 #line 108 "dop.cnf"
729
730   offset = call_dop_oid_callback("dop.establish.rolea", tvb, offset, pinfo, tree, "roleA");
731
732
733
734   return offset;
735 }
736 static int dissect_establishRoleAInitiates(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
737   return dissect_dop_EstablishRoleAInitiates(FALSE, tvb, offset, pinfo, tree, hf_dop_establishRoleAInitiates);
738 }
739
740
741
742 static int
743 dissect_dop_EstablishRoleBInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
744 #line 112 "dop.cnf"
745
746   offset = call_dop_oid_callback("dop.establish.roleb", tvb, offset, pinfo, tree, "roleB");
747
748
749
750   return offset;
751 }
752 static int dissect_establishRoleBInitiates(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
753   return dissect_dop_EstablishRoleBInitiates(FALSE, tvb, offset, pinfo, tree, hf_dop_establishRoleBInitiates);
754 }
755
756
757 static const value_string dop_EstablishArgumentInitiator_vals[] = {
758   {   3, "symmetric" },
759   {   4, "roleA-initiates" },
760   {   5, "roleB-initiates" },
761   { 0, NULL }
762 };
763
764 static const ber_choice_t EstablishArgumentInitiator_choice[] = {
765   {   3, BER_CLASS_CON, 3, 0, dissect_establishSymmetric },
766   {   4, BER_CLASS_CON, 4, 0, dissect_establishRoleAInitiates },
767   {   5, BER_CLASS_CON, 5, 0, dissect_establishRoleBInitiates },
768   { 0, 0, 0, 0, NULL }
769 };
770
771 static int
772 dissect_dop_EstablishArgumentInitiator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
773   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
774                                  EstablishArgumentInitiator_choice, hf_index, ett_dop_EstablishArgumentInitiator,
775                                  NULL);
776
777   return offset;
778 }
779 static int dissect_establishInitiator(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
780   return dissect_dop_EstablishArgumentInitiator(FALSE, tvb, offset, pinfo, tree, hf_dop_establishInitiator);
781 }
782
783
784
785 static int
786 dissect_dop_T_agreement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
787 #line 140 "dop.cnf"
788
789   offset = call_dop_oid_callback("dop.agreement", tvb, offset, pinfo, tree, NULL);
790
791
792
793   return offset;
794 }
795 static int dissect_agreement(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
796   return dissect_dop_T_agreement(FALSE, tvb, offset, pinfo, tree, hf_dop_agreement);
797 }
798
799
800
801 static int
802 dissect_dop_NULL(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
803   offset = dissect_ber_null(implicit_tag, pinfo, tree, tvb, offset, hf_index);
804
805   return offset;
806 }
807 static int dissect_now(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
808   return dissect_dop_NULL(FALSE, tvb, offset, pinfo, tree, hf_dop_now);
809 }
810 static int dissect_explicitTermination(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
811   return dissect_dop_NULL(FALSE, tvb, offset, pinfo, tree, hf_dop_explicitTermination);
812 }
813 static int dissect_null(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
814   return dissect_dop_NULL(FALSE, tvb, offset, pinfo, tree, hf_dop_null);
815 }
816 static int dissect_entry(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
817   return dissect_dop_NULL(FALSE, tvb, offset, pinfo, tree, hf_dop_entry);
818 }
819 static int dissect_allUserAttributeTypes(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
820   return dissect_dop_NULL(FALSE, tvb, offset, pinfo, tree, hf_dop_allUserAttributeTypes);
821 }
822 static int dissect_allUserAttributeTypesAndValues(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
823   return dissect_dop_NULL(FALSE, tvb, offset, pinfo, tree, hf_dop_allUserAttributeTypesAndValues);
824 }
825 static int dissect_allUsers(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
826   return dissect_dop_NULL(FALSE, tvb, offset, pinfo, tree, hf_dop_allUsers);
827 }
828 static int dissect_thisEntry(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
829   return dissect_dop_NULL(FALSE, tvb, offset, pinfo, tree, hf_dop_thisEntry);
830 }
831
832
833
834 static int
835 dissect_dop_UTCTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
836   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTCTime,
837                                             pinfo, tree, tvb, offset, hf_index,
838                                             NULL);
839
840   return offset;
841 }
842 static int dissect_utcTime(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
843   return dissect_dop_UTCTime(FALSE, tvb, offset, pinfo, tree, hf_dop_utcTime);
844 }
845
846
847
848 static int
849 dissect_dop_GeneralizedTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
850   offset = dissect_ber_GeneralizedTime(implicit_tag, pinfo, tree, tvb, offset, hf_index);
851
852   return offset;
853 }
854 static int dissect_generalizedTime(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
855   return dissect_dop_GeneralizedTime(FALSE, tvb, offset, pinfo, tree, hf_dop_generalizedTime);
856 }
857 static int dissect_terminateAtGeneralizedTime(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
858   return dissect_dop_GeneralizedTime(FALSE, tvb, offset, pinfo, tree, hf_dop_terminateAtGeneralizedTime);
859 }
860
861
862 static const value_string dop_Time_vals[] = {
863   {   0, "utcTime" },
864   {   1, "generalizedTime" },
865   { 0, NULL }
866 };
867
868 static const ber_choice_t Time_choice[] = {
869   {   0, BER_CLASS_UNI, BER_UNI_TAG_UTCTime, BER_FLAGS_NOOWNTAG, dissect_utcTime },
870   {   1, BER_CLASS_UNI, BER_UNI_TAG_GeneralizedTime, BER_FLAGS_NOOWNTAG, dissect_generalizedTime },
871   { 0, 0, 0, 0, NULL }
872 };
873
874 static int
875 dissect_dop_Time(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
876   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
877                                  Time_choice, hf_index, ett_dop_Time,
878                                  NULL);
879
880   return offset;
881 }
882 static int dissect_time(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
883   return dissect_dop_Time(FALSE, tvb, offset, pinfo, tree, hf_dop_time);
884 }
885 static int dissect_terminateAtTime(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
886   return dissect_dop_Time(FALSE, tvb, offset, pinfo, tree, hf_dop_terminateAtTime);
887 }
888 static int dissect_retryAt(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
889   return dissect_dop_Time(FALSE, tvb, offset, pinfo, tree, hf_dop_retryAt);
890 }
891
892
893 static const value_string dop_T_validFrom_vals[] = {
894   {   0, "now" },
895   {   1, "time" },
896   { 0, NULL }
897 };
898
899 static const ber_choice_t T_validFrom_choice[] = {
900   {   0, BER_CLASS_CON, 0, 0, dissect_now },
901   {   1, BER_CLASS_CON, 1, 0, dissect_time },
902   { 0, 0, 0, 0, NULL }
903 };
904
905 static int
906 dissect_dop_T_validFrom(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
907   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
908                                  T_validFrom_choice, hf_index, ett_dop_T_validFrom,
909                                  NULL);
910
911   return offset;
912 }
913 static int dissect_validFrom(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
914   return dissect_dop_T_validFrom(FALSE, tvb, offset, pinfo, tree, hf_dop_validFrom);
915 }
916
917
918 static const value_string dop_T_validUntil_vals[] = {
919   {   0, "explicitTermination" },
920   {   1, "time" },
921   { 0, NULL }
922 };
923
924 static const ber_choice_t T_validUntil_choice[] = {
925   {   0, BER_CLASS_CON, 0, 0, dissect_explicitTermination },
926   {   1, BER_CLASS_CON, 1, 0, dissect_time },
927   { 0, 0, 0, 0, NULL }
928 };
929
930 static int
931 dissect_dop_T_validUntil(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
932   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
933                                  T_validUntil_choice, hf_index, ett_dop_T_validUntil,
934                                  NULL);
935
936   return offset;
937 }
938 static int dissect_validUntil(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
939   return dissect_dop_T_validUntil(FALSE, tvb, offset, pinfo, tree, hf_dop_validUntil);
940 }
941
942
943 static const ber_sequence_t Validity_sequence[] = {
944   { BER_CLASS_CON, 0, 0, dissect_validFrom },
945   { BER_CLASS_CON, 1, 0, dissect_validUntil },
946   { 0, 0, 0, NULL }
947 };
948
949 static int
950 dissect_dop_Validity(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
951   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
952                                    Validity_sequence, hf_index, ett_dop_Validity);
953
954   return offset;
955 }
956 static int dissect_valid(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
957   return dissect_dop_Validity(FALSE, tvb, offset, pinfo, tree, hf_dop_valid);
958 }
959
960
961 static const ber_sequence_t EstablishOperationalBindingArgumentData_sequence[] = {
962   { BER_CLASS_CON, 0, 0, dissect_bindingType },
963   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_bindingID },
964   { BER_CLASS_CON, 2, 0, dissect_accessPoint },
965   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_establishInitiator },
966   { BER_CLASS_CON, 6, 0, dissect_agreement },
967   { BER_CLASS_CON, 7, BER_FLAGS_OPTIONAL, dissect_valid },
968   { BER_CLASS_CON, 8, BER_FLAGS_OPTIONAL, dissect_securityParameters },
969   { 0, 0, 0, NULL }
970 };
971
972 static int
973 dissect_dop_EstablishOperationalBindingArgumentData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
974   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
975                                    EstablishOperationalBindingArgumentData_sequence, hf_index, ett_dop_EstablishOperationalBindingArgumentData);
976
977   return offset;
978 }
979 static int dissect_unsignedEstablishOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
980   return dissect_dop_EstablishOperationalBindingArgumentData(FALSE, tvb, offset, pinfo, tree, hf_dop_unsignedEstablishOperationalBindingArgument);
981 }
982 static int dissect_establishOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
983   return dissect_dop_EstablishOperationalBindingArgumentData(FALSE, tvb, offset, pinfo, tree, hf_dop_establishOperationalBindingArgument);
984 }
985
986
987
988 static int
989 dissect_dop_BIT_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
990   offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
991                                     NULL, hf_index, -1,
992                                     NULL);
993
994   return offset;
995 }
996 static int dissect_encrypted(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
997   return dissect_dop_BIT_STRING(FALSE, tvb, offset, pinfo, tree, hf_dop_encrypted);
998 }
999
1000
1001 static const ber_sequence_t T_signedEstablishOperationalBindingArgument_sequence[] = {
1002   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_establishOperationalBindingArgument },
1003   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_algorithmIdentifier },
1004   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_encrypted },
1005   { 0, 0, 0, NULL }
1006 };
1007
1008 static int
1009 dissect_dop_T_signedEstablishOperationalBindingArgument(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1010   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1011                                    T_signedEstablishOperationalBindingArgument_sequence, hf_index, ett_dop_T_signedEstablishOperationalBindingArgument);
1012
1013   return offset;
1014 }
1015 static int dissect_signedEstablishOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1016   return dissect_dop_T_signedEstablishOperationalBindingArgument(FALSE, tvb, offset, pinfo, tree, hf_dop_signedEstablishOperationalBindingArgument);
1017 }
1018
1019
1020 static const value_string dop_EstablishOperationalBindingArgument_vals[] = {
1021   {   0, "unsignedEstablishOperationalBindingArgument" },
1022   {   1, "signedEstablishOperationalBindingArgument" },
1023   { 0, NULL }
1024 };
1025
1026 static const ber_choice_t EstablishOperationalBindingArgument_choice[] = {
1027   {   0, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_unsignedEstablishOperationalBindingArgument },
1028   {   1, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_signedEstablishOperationalBindingArgument },
1029   { 0, 0, 0, 0, NULL }
1030 };
1031
1032 static int
1033 dissect_dop_EstablishOperationalBindingArgument(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1034   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1035                                  EstablishOperationalBindingArgument_choice, hf_index, ett_dop_EstablishOperationalBindingArgument,
1036                                  NULL);
1037
1038   return offset;
1039 }
1040
1041
1042
1043 static int
1044 dissect_dop_T_symmetric(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1045 #line 144 "dop.cnf"
1046
1047   offset = call_dop_oid_callback("dop.establish.symmetric", tvb, offset, pinfo, tree, "symmetric"); 
1048
1049
1050
1051   return offset;
1052 }
1053 static int dissect_symmetric(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1054   return dissect_dop_T_symmetric(FALSE, tvb, offset, pinfo, tree, hf_dop_symmetric);
1055 }
1056
1057
1058
1059 static int
1060 dissect_dop_T_roleA_replies(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1061 #line 148 "dop.cnf"
1062
1063   offset = call_dop_oid_callback("dop.establish.rolea", tvb, offset, pinfo, tree, "roleA");
1064
1065
1066
1067   return offset;
1068 }
1069 static int dissect_roleA_replies(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1070   return dissect_dop_T_roleA_replies(FALSE, tvb, offset, pinfo, tree, hf_dop_roleA_replies);
1071 }
1072
1073
1074
1075 static int
1076 dissect_dop_T_roleB_replies(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1077 #line 152 "dop.cnf"
1078
1079   offset = call_dop_oid_callback("dop.establish.roleb", tvb, offset, pinfo, tree, "roleB");
1080
1081
1082
1083   return offset;
1084 }
1085 static int dissect_roleB_replies(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1086   return dissect_dop_T_roleB_replies(FALSE, tvb, offset, pinfo, tree, hf_dop_roleB_replies);
1087 }
1088
1089
1090 static const value_string dop_T_initiator_vals[] = {
1091   {   3, "symmetric" },
1092   {   4, "roleA-replies" },
1093   {   5, "roleB-replies" },
1094   { 0, NULL }
1095 };
1096
1097 static const ber_choice_t T_initiator_choice[] = {
1098   {   3, BER_CLASS_CON, 3, 0, dissect_symmetric },
1099   {   4, BER_CLASS_CON, 4, 0, dissect_roleA_replies },
1100   {   5, BER_CLASS_CON, 5, 0, dissect_roleB_replies },
1101   { 0, 0, 0, 0, NULL }
1102 };
1103
1104 static int
1105 dissect_dop_T_initiator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1106   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1107                                  T_initiator_choice, hf_index, ett_dop_T_initiator,
1108                                  NULL);
1109
1110   return offset;
1111 }
1112 static int dissect_initiator(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1113   return dissect_dop_T_initiator(FALSE, tvb, offset, pinfo, tree, hf_dop_initiator);
1114 }
1115
1116
1117 static const ber_sequence_t SEQUENCE_SIZE_1_MAX_OF_Attribute_sequence_of[1] = {
1118   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_notification_item },
1119 };
1120
1121 static int
1122 dissect_dop_SEQUENCE_SIZE_1_MAX_OF_Attribute(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1123   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
1124                                       SEQUENCE_SIZE_1_MAX_OF_Attribute_sequence_of, hf_index, ett_dop_SEQUENCE_SIZE_1_MAX_OF_Attribute);
1125
1126   return offset;
1127 }
1128 static int dissect_notification(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1129   return dissect_dop_SEQUENCE_SIZE_1_MAX_OF_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_notification);
1130 }
1131
1132
1133 static const ber_sequence_t EstablishOperationalBindingResult_sequence[] = {
1134   { BER_CLASS_CON, 0, 0, dissect_bindingType },
1135   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_bindingID },
1136   { BER_CLASS_CON, 2, 0, dissect_accessPoint },
1137   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_initiator },
1138   { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL, dissect_securityParameters },
1139   { BER_CLASS_CON, 29, BER_FLAGS_OPTIONAL, dissect_performer },
1140   { BER_CLASS_CON, 28, BER_FLAGS_OPTIONAL, dissect_aliasDereferenced },
1141   { BER_CLASS_CON, 27, BER_FLAGS_OPTIONAL, dissect_notification },
1142   { 0, 0, 0, NULL }
1143 };
1144
1145 static int
1146 dissect_dop_EstablishOperationalBindingResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1147   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1148                                    EstablishOperationalBindingResult_sequence, hf_index, ett_dop_EstablishOperationalBindingResult);
1149
1150   return offset;
1151 }
1152
1153
1154
1155 static int
1156 dissect_dop_ModifySymmetric(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1157 #line 116 "dop.cnf"
1158
1159   offset = call_dop_oid_callback("dop.modify.symmetric", tvb, offset, pinfo, tree, "symmetric");
1160
1161
1162
1163   return offset;
1164 }
1165 static int dissect_modifySymmetric(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1166   return dissect_dop_ModifySymmetric(FALSE, tvb, offset, pinfo, tree, hf_dop_modifySymmetric);
1167 }
1168
1169
1170
1171 static int
1172 dissect_dop_ModifyRoleAInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1173 #line 120 "dop.cnf"
1174
1175   offset = call_dop_oid_callback("dop.modify.rolea", tvb, offset, pinfo, tree, "roleA");
1176
1177
1178
1179   return offset;
1180 }
1181 static int dissect_modifyRoleAInitiates(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1182   return dissect_dop_ModifyRoleAInitiates(FALSE, tvb, offset, pinfo, tree, hf_dop_modifyRoleAInitiates);
1183 }
1184
1185
1186
1187 static int
1188 dissect_dop_ModifyRoleBInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1189 #line 124 "dop.cnf"
1190
1191   offset = call_dop_oid_callback("dop.modify.roleb", tvb, offset, pinfo, tree, "roleB");
1192
1193
1194
1195   return offset;
1196 }
1197 static int dissect_modifyRoleBInitiates(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1198   return dissect_dop_ModifyRoleBInitiates(FALSE, tvb, offset, pinfo, tree, hf_dop_modifyRoleBInitiates);
1199 }
1200
1201
1202 static const value_string dop_ModifyArgumentInitiator_vals[] = {
1203   {   3, "symmetric" },
1204   {   4, "roleA-initiates" },
1205   {   5, "roleB-initiates" },
1206   { 0, NULL }
1207 };
1208
1209 static const ber_choice_t ModifyArgumentInitiator_choice[] = {
1210   {   3, BER_CLASS_CON, 3, 0, dissect_modifySymmetric },
1211   {   4, BER_CLASS_CON, 4, 0, dissect_modifyRoleAInitiates },
1212   {   5, BER_CLASS_CON, 5, 0, dissect_modifyRoleBInitiates },
1213   { 0, 0, 0, 0, NULL }
1214 };
1215
1216 static int
1217 dissect_dop_ModifyArgumentInitiator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1218   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1219                                  ModifyArgumentInitiator_choice, hf_index, ett_dop_ModifyArgumentInitiator,
1220                                  NULL);
1221
1222   return offset;
1223 }
1224 static int dissect_modifyInitiator(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1225   return dissect_dop_ModifyArgumentInitiator(FALSE, tvb, offset, pinfo, tree, hf_dop_modifyInitiator);
1226 }
1227
1228
1229
1230 static int
1231 dissect_dop_ArgumentNewAgreement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1232 #line 164 "dop.cnf"
1233
1234   offset = call_dop_oid_callback("dop.agreement", tvb, offset, pinfo, tree, NULL);
1235
1236
1237
1238
1239   return offset;
1240 }
1241 static int dissect_argumentNewAgreement(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1242   return dissect_dop_ArgumentNewAgreement(FALSE, tvb, offset, pinfo, tree, hf_dop_argumentNewAgreement);
1243 }
1244
1245
1246 static const ber_sequence_t ModifyOperationalBindingArgumentData_sequence[] = {
1247   { BER_CLASS_CON, 0, 0, dissect_bindingType },
1248   { BER_CLASS_CON, 1, 0, dissect_bindingID },
1249   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_accessPoint },
1250   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_modifyInitiator },
1251   { BER_CLASS_CON, 6, 0, dissect_newBindingID },
1252   { BER_CLASS_CON, 7, BER_FLAGS_OPTIONAL, dissect_argumentNewAgreement },
1253   { BER_CLASS_CON, 8, BER_FLAGS_OPTIONAL, dissect_valid },
1254   { BER_CLASS_CON, 9, BER_FLAGS_OPTIONAL, dissect_securityParameters },
1255   { 0, 0, 0, NULL }
1256 };
1257
1258 static int
1259 dissect_dop_ModifyOperationalBindingArgumentData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1260   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1261                                    ModifyOperationalBindingArgumentData_sequence, hf_index, ett_dop_ModifyOperationalBindingArgumentData);
1262
1263   return offset;
1264 }
1265 static int dissect_unsignedModifyOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1266   return dissect_dop_ModifyOperationalBindingArgumentData(FALSE, tvb, offset, pinfo, tree, hf_dop_unsignedModifyOperationalBindingArgument);
1267 }
1268 static int dissect_modifyOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1269   return dissect_dop_ModifyOperationalBindingArgumentData(FALSE, tvb, offset, pinfo, tree, hf_dop_modifyOperationalBindingArgument);
1270 }
1271
1272
1273 static const ber_sequence_t T_signedModifyOperationalBindingArgument_sequence[] = {
1274   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_modifyOperationalBindingArgument },
1275   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_algorithmIdentifier },
1276   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_encrypted },
1277   { 0, 0, 0, NULL }
1278 };
1279
1280 static int
1281 dissect_dop_T_signedModifyOperationalBindingArgument(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1282   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1283                                    T_signedModifyOperationalBindingArgument_sequence, hf_index, ett_dop_T_signedModifyOperationalBindingArgument);
1284
1285   return offset;
1286 }
1287 static int dissect_signedModifyOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1288   return dissect_dop_T_signedModifyOperationalBindingArgument(FALSE, tvb, offset, pinfo, tree, hf_dop_signedModifyOperationalBindingArgument);
1289 }
1290
1291
1292 static const value_string dop_ModifyOperationalBindingArgument_vals[] = {
1293   {   0, "unsignedModifyOperationalBindingArgument" },
1294   {   1, "signedModifyOperationalBindingArgument" },
1295   { 0, NULL }
1296 };
1297
1298 static const ber_choice_t ModifyOperationalBindingArgument_choice[] = {
1299   {   0, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_unsignedModifyOperationalBindingArgument },
1300   {   1, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_signedModifyOperationalBindingArgument },
1301   { 0, 0, 0, 0, NULL }
1302 };
1303
1304 static int
1305 dissect_dop_ModifyOperationalBindingArgument(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1306   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1307                                  ModifyOperationalBindingArgument_choice, hf_index, ett_dop_ModifyOperationalBindingArgument,
1308                                  NULL);
1309
1310   return offset;
1311 }
1312
1313
1314
1315 static int
1316 dissect_dop_ResultNewAgreement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1317 #line 160 "dop.cnf"
1318
1319   offset = call_dop_oid_callback("dop.agreement", tvb, offset, pinfo, tree, NULL);
1320
1321
1322
1323   return offset;
1324 }
1325 static int dissect_resultNewAgreement(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1326   return dissect_dop_ResultNewAgreement(FALSE, tvb, offset, pinfo, tree, hf_dop_resultNewAgreement);
1327 }
1328
1329
1330 static const ber_sequence_t ModifyOperationalBindingResultData_sequence[] = {
1331   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_newBindingID },
1332   { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_bindingType },
1333   { BER_CLASS_ANY, 0, BER_FLAGS_NOOWNTAG, dissect_resultNewAgreement },
1334   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_valid },
1335   { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL, dissect_securityParameters },
1336   { BER_CLASS_CON, 29, BER_FLAGS_OPTIONAL, dissect_performer },
1337   { BER_CLASS_CON, 28, BER_FLAGS_OPTIONAL, dissect_aliasDereferenced },
1338   { BER_CLASS_CON, 27, BER_FLAGS_OPTIONAL, dissect_notification },
1339   { 0, 0, 0, NULL }
1340 };
1341
1342 static int
1343 dissect_dop_ModifyOperationalBindingResultData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1344   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1345                                    ModifyOperationalBindingResultData_sequence, hf_index, ett_dop_ModifyOperationalBindingResultData);
1346
1347   return offset;
1348 }
1349 static int dissect_modifyOperationalBindingResultData(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1350   return dissect_dop_ModifyOperationalBindingResultData(FALSE, tvb, offset, pinfo, tree, hf_dop_modifyOperationalBindingResultData);
1351 }
1352
1353
1354 static const ber_sequence_t ProtectedModifyResult_sequence[] = {
1355   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_modifyOperationalBindingResultData },
1356   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_algorithmIdentifier },
1357   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_encrypted },
1358   { 0, 0, 0, NULL }
1359 };
1360
1361 static int
1362 dissect_dop_ProtectedModifyResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1363   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1364                                    ProtectedModifyResult_sequence, hf_index, ett_dop_ProtectedModifyResult);
1365
1366   return offset;
1367 }
1368 static int dissect_protectedModifyResult(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1369   return dissect_dop_ProtectedModifyResult(FALSE, tvb, offset, pinfo, tree, hf_dop_protectedModifyResult);
1370 }
1371
1372
1373 static const value_string dop_ModifyOperationalBindingResult_vals[] = {
1374   {   0, "null" },
1375   {   1, "protected" },
1376   { 0, NULL }
1377 };
1378
1379 static const ber_choice_t ModifyOperationalBindingResult_choice[] = {
1380   {   0, BER_CLASS_CON, 0, 0, dissect_null },
1381   {   1, BER_CLASS_CON, 1, 0, dissect_protectedModifyResult },
1382   { 0, 0, 0, 0, NULL }
1383 };
1384
1385 static int
1386 dissect_dop_ModifyOperationalBindingResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1387   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1388                                  ModifyOperationalBindingResult_choice, hf_index, ett_dop_ModifyOperationalBindingResult,
1389                                  NULL);
1390
1391   return offset;
1392 }
1393
1394
1395
1396 static int
1397 dissect_dop_TerminateSymmetric(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1398 #line 128 "dop.cnf"
1399
1400   offset = call_dop_oid_callback("dop.terminate.symmetric", tvb, offset, pinfo, tree, "symmetric");
1401
1402
1403
1404   return offset;
1405 }
1406 static int dissect_terminateSymmetric(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1407   return dissect_dop_TerminateSymmetric(FALSE, tvb, offset, pinfo, tree, hf_dop_terminateSymmetric);
1408 }
1409
1410
1411
1412 static int
1413 dissect_dop_TerminateRoleAInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1414 #line 132 "dop.cnf"
1415
1416   offset = call_dop_oid_callback("dop.terminate.rolea", tvb, offset, pinfo, tree, "roleA");
1417
1418
1419
1420   return offset;
1421 }
1422 static int dissect_terminateRoleAInitiates(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1423   return dissect_dop_TerminateRoleAInitiates(FALSE, tvb, offset, pinfo, tree, hf_dop_terminateRoleAInitiates);
1424 }
1425
1426
1427
1428 static int
1429 dissect_dop_TerminateRoleBInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1430 #line 136 "dop.cnf"
1431
1432   offset = call_dop_oid_callback("dop.terminate.roleb", tvb, offset, pinfo, tree, "roleB");
1433
1434
1435
1436   return offset;
1437 }
1438 static int dissect_terminateRoleBInitiates(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1439   return dissect_dop_TerminateRoleBInitiates(FALSE, tvb, offset, pinfo, tree, hf_dop_terminateRoleBInitiates);
1440 }
1441
1442
1443 static const value_string dop_TerminateArgumentInitiator_vals[] = {
1444   {   2, "symmetric" },
1445   {   3, "roleA-initiates" },
1446   {   4, "roleB-initiates" },
1447   { 0, NULL }
1448 };
1449
1450 static const ber_choice_t TerminateArgumentInitiator_choice[] = {
1451   {   2, BER_CLASS_CON, 2, 0, dissect_terminateSymmetric },
1452   {   3, BER_CLASS_CON, 3, 0, dissect_terminateRoleAInitiates },
1453   {   4, BER_CLASS_CON, 4, 0, dissect_terminateRoleBInitiates },
1454   { 0, 0, 0, 0, NULL }
1455 };
1456
1457 static int
1458 dissect_dop_TerminateArgumentInitiator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1459   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1460                                  TerminateArgumentInitiator_choice, hf_index, ett_dop_TerminateArgumentInitiator,
1461                                  NULL);
1462
1463   return offset;
1464 }
1465 static int dissect_terminateInitiator(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1466   return dissect_dop_TerminateArgumentInitiator(FALSE, tvb, offset, pinfo, tree, hf_dop_terminateInitiator);
1467 }
1468
1469
1470 static const ber_sequence_t TerminateOperationalBindingArgumentData_sequence[] = {
1471   { BER_CLASS_CON, 0, 0, dissect_bindingType },
1472   { BER_CLASS_CON, 1, 0, dissect_bindingID },
1473   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_terminateInitiator },
1474   { BER_CLASS_CON, 5, BER_FLAGS_OPTIONAL|BER_FLAGS_NOTCHKTAG, dissect_terminateAtTime },
1475   { BER_CLASS_CON, 6, BER_FLAGS_OPTIONAL, dissect_securityParameters },
1476   { 0, 0, 0, NULL }
1477 };
1478
1479 static int
1480 dissect_dop_TerminateOperationalBindingArgumentData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1481   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1482                                    TerminateOperationalBindingArgumentData_sequence, hf_index, ett_dop_TerminateOperationalBindingArgumentData);
1483
1484   return offset;
1485 }
1486 static int dissect_unsignedTerminateOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1487   return dissect_dop_TerminateOperationalBindingArgumentData(FALSE, tvb, offset, pinfo, tree, hf_dop_unsignedTerminateOperationalBindingArgument);
1488 }
1489 static int dissect_terminateOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1490   return dissect_dop_TerminateOperationalBindingArgumentData(FALSE, tvb, offset, pinfo, tree, hf_dop_terminateOperationalBindingArgument);
1491 }
1492
1493
1494 static const ber_sequence_t T_signedTerminateOperationalBindingArgument_sequence[] = {
1495   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_terminateOperationalBindingArgument },
1496   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_algorithmIdentifier },
1497   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_encrypted },
1498   { 0, 0, 0, NULL }
1499 };
1500
1501 static int
1502 dissect_dop_T_signedTerminateOperationalBindingArgument(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1503   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1504                                    T_signedTerminateOperationalBindingArgument_sequence, hf_index, ett_dop_T_signedTerminateOperationalBindingArgument);
1505
1506   return offset;
1507 }
1508 static int dissect_signedTerminateOperationalBindingArgument(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1509   return dissect_dop_T_signedTerminateOperationalBindingArgument(FALSE, tvb, offset, pinfo, tree, hf_dop_signedTerminateOperationalBindingArgument);
1510 }
1511
1512
1513 static const value_string dop_TerminateOperationalBindingArgument_vals[] = {
1514   {   0, "unsignedTerminateOperationalBindingArgument" },
1515   {   1, "signedTerminateOperationalBindingArgument" },
1516   { 0, NULL }
1517 };
1518
1519 static const ber_choice_t TerminateOperationalBindingArgument_choice[] = {
1520   {   0, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_unsignedTerminateOperationalBindingArgument },
1521   {   1, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_signedTerminateOperationalBindingArgument },
1522   { 0, 0, 0, 0, NULL }
1523 };
1524
1525 static int
1526 dissect_dop_TerminateOperationalBindingArgument(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1527   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1528                                  TerminateOperationalBindingArgument_choice, hf_index, ett_dop_TerminateOperationalBindingArgument,
1529                                  NULL);
1530
1531   return offset;
1532 }
1533
1534
1535 static const ber_sequence_t TerminateOperationalBindingResultData_sequence[] = {
1536   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_bindingID },
1537   { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_bindingType },
1538   { BER_CLASS_UNI, BER_UNI_TAG_GeneralizedTime, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_terminateAtGeneralizedTime },
1539   { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL, dissect_securityParameters },
1540   { BER_CLASS_CON, 29, BER_FLAGS_OPTIONAL, dissect_performer },
1541   { BER_CLASS_CON, 28, BER_FLAGS_OPTIONAL, dissect_aliasDereferenced },
1542   { BER_CLASS_CON, 27, BER_FLAGS_OPTIONAL, dissect_notification },
1543   { 0, 0, 0, NULL }
1544 };
1545
1546 static int
1547 dissect_dop_TerminateOperationalBindingResultData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1548   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1549                                    TerminateOperationalBindingResultData_sequence, hf_index, ett_dop_TerminateOperationalBindingResultData);
1550
1551   return offset;
1552 }
1553 static int dissect_terminateOperationalBindingResultData(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1554   return dissect_dop_TerminateOperationalBindingResultData(FALSE, tvb, offset, pinfo, tree, hf_dop_terminateOperationalBindingResultData);
1555 }
1556
1557
1558 static const ber_sequence_t ProtectedTerminateResult_sequence[] = {
1559   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_terminateOperationalBindingResultData },
1560   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_algorithmIdentifier },
1561   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_encrypted },
1562   { 0, 0, 0, NULL }
1563 };
1564
1565 static int
1566 dissect_dop_ProtectedTerminateResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1567   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1568                                    ProtectedTerminateResult_sequence, hf_index, ett_dop_ProtectedTerminateResult);
1569
1570   return offset;
1571 }
1572 static int dissect_protectedTerminateResult(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1573   return dissect_dop_ProtectedTerminateResult(FALSE, tvb, offset, pinfo, tree, hf_dop_protectedTerminateResult);
1574 }
1575
1576
1577 static const value_string dop_TerminateOperationalBindingResult_vals[] = {
1578   {   0, "null" },
1579   {   1, "protected" },
1580   { 0, NULL }
1581 };
1582
1583 static const ber_choice_t TerminateOperationalBindingResult_choice[] = {
1584   {   0, BER_CLASS_CON, 0, 0, dissect_null },
1585   {   1, BER_CLASS_CON, 1, 0, dissect_protectedTerminateResult },
1586   { 0, 0, 0, 0, NULL }
1587 };
1588
1589 static int
1590 dissect_dop_TerminateOperationalBindingResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1591   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1592                                  TerminateOperationalBindingResult_choice, hf_index, ett_dop_TerminateOperationalBindingResult,
1593                                  NULL);
1594
1595   return offset;
1596 }
1597
1598
1599 static const value_string dop_T_problem_vals[] = {
1600   {   0, "invalidID" },
1601   {   1, "duplicateID" },
1602   {   2, "unsupportedBindingType" },
1603   {   3, "notAllowedForRole" },
1604   {   4, "parametersMissing" },
1605   {   5, "roleAssignment" },
1606   {   6, "invalidStartTime" },
1607   {   7, "invalidEndTime" },
1608   {   8, "invalidAgreement" },
1609   {   9, "currentlyNotDecidable" },
1610   {  10, "modificationNotAllowed" },
1611   { 0, NULL }
1612 };
1613
1614
1615 static int
1616 dissect_dop_T_problem(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1617   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1618                                   NULL);
1619
1620   return offset;
1621 }
1622 static int dissect_problem(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1623   return dissect_dop_T_problem(FALSE, tvb, offset, pinfo, tree, hf_dop_problem);
1624 }
1625
1626
1627
1628 static int
1629 dissect_dop_T_agreementProposal(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1630 #line 156 "dop.cnf"
1631
1632   offset = call_dop_oid_callback("dop.agreement", tvb, offset, pinfo, tree, NULL);
1633
1634
1635
1636   return offset;
1637 }
1638 static int dissect_agreementProposal(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1639   return dissect_dop_T_agreementProposal(FALSE, tvb, offset, pinfo, tree, hf_dop_agreementProposal);
1640 }
1641
1642
1643 static const ber_sequence_t OpBindingErrorParam_sequence[] = {
1644   { BER_CLASS_CON, 0, 0, dissect_problem },
1645   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_bindingType },
1646   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_agreementProposal },
1647   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_NOTCHKTAG, dissect_retryAt },
1648   { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL, dissect_securityParameters },
1649   { BER_CLASS_CON, 29, BER_FLAGS_OPTIONAL, dissect_performer },
1650   { BER_CLASS_CON, 28, BER_FLAGS_OPTIONAL, dissect_aliasDereferenced },
1651   { BER_CLASS_CON, 27, BER_FLAGS_OPTIONAL, dissect_notification },
1652   { 0, 0, 0, NULL }
1653 };
1654
1655 static int
1656 dissect_dop_OpBindingErrorParam(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1657   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1658                                    OpBindingErrorParam_sequence, hf_index, ett_dop_OpBindingErrorParam);
1659
1660   return offset;
1661 }
1662
1663
1664 static const ber_sequence_t HierarchicalAgreement_sequence[] = {
1665   { BER_CLASS_CON, 0, 0, dissect_rdn },
1666   { BER_CLASS_CON, 1, 0, dissect_immediateSuperior },
1667   { 0, 0, 0, NULL }
1668 };
1669
1670 static int
1671 dissect_dop_HierarchicalAgreement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1672   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1673                                    HierarchicalAgreement_sequence, hf_index, ett_dop_HierarchicalAgreement);
1674
1675   return offset;
1676 }
1677
1678
1679 static const ber_sequence_t SET_OF_Attribute_set_of[1] = {
1680   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_entryInfo_item },
1681 };
1682
1683 static int
1684 dissect_dop_SET_OF_Attribute(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1685   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
1686                                  SET_OF_Attribute_set_of, hf_index, ett_dop_SET_OF_Attribute);
1687
1688   return offset;
1689 }
1690 static int dissect_entryInfo(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1691   return dissect_dop_SET_OF_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_entryInfo);
1692 }
1693 static int dissect_immediateSuperiorInfo(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1694   return dissect_dop_SET_OF_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_immediateSuperiorInfo);
1695 }
1696 static int dissect_admPointInfo(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1697   return dissect_dop_SET_OF_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_admPointInfo);
1698 }
1699 static int dissect_info(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1700   return dissect_dop_SET_OF_Attribute(FALSE, tvb, offset, pinfo, tree, hf_dop_info);
1701 }
1702
1703
1704 static const ber_sequence_t SubentryInfo_sequence[] = {
1705   { BER_CLASS_CON, 0, 0, dissect_rdn },
1706   { BER_CLASS_CON, 1, 0, dissect_info },
1707   { 0, 0, 0, NULL }
1708 };
1709
1710 static int
1711 dissect_dop_SubentryInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1712   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1713                                    SubentryInfo_sequence, hf_index, ett_dop_SubentryInfo);
1714
1715   return offset;
1716 }
1717 static int dissect_subentries_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1718   return dissect_dop_SubentryInfo(FALSE, tvb, offset, pinfo, tree, hf_dop_subentries_item);
1719 }
1720
1721
1722 static const ber_sequence_t SET_OF_SubentryInfo_set_of[1] = {
1723   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_subentries_item },
1724 };
1725
1726 static int
1727 dissect_dop_SET_OF_SubentryInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1728   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
1729                                  SET_OF_SubentryInfo_set_of, hf_index, ett_dop_SET_OF_SubentryInfo);
1730
1731   return offset;
1732 }
1733 static int dissect_subentries(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1734   return dissect_dop_SET_OF_SubentryInfo(FALSE, tvb, offset, pinfo, tree, hf_dop_subentries);
1735 }
1736
1737
1738 static const ber_sequence_t Vertex_sequence[] = {
1739   { BER_CLASS_CON, 0, 0, dissect_rdn },
1740   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_admPointInfo },
1741   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_subentries },
1742   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL, dissect_accessPoints },
1743   { 0, 0, 0, NULL }
1744 };
1745
1746 static int
1747 dissect_dop_Vertex(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1748   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1749                                    Vertex_sequence, hf_index, ett_dop_Vertex);
1750
1751   return offset;
1752 }
1753 static int dissect_DITcontext_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1754   return dissect_dop_Vertex(FALSE, tvb, offset, pinfo, tree, hf_dop_DITcontext_item);
1755 }
1756
1757
1758 static const ber_sequence_t DITcontext_sequence_of[1] = {
1759   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_DITcontext_item },
1760 };
1761
1762 static int
1763 dissect_dop_DITcontext(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1764   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
1765                                       DITcontext_sequence_of, hf_index, ett_dop_DITcontext);
1766
1767   return offset;
1768 }
1769 static int dissect_contextPrefixInfo(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1770   return dissect_dop_DITcontext(FALSE, tvb, offset, pinfo, tree, hf_dop_contextPrefixInfo);
1771 }
1772
1773
1774 static const ber_sequence_t SuperiorToSubordinate_sequence[] = {
1775   { BER_CLASS_CON, 0, 0, dissect_contextPrefixInfo },
1776   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_entryInfo },
1777   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_immediateSuperiorInfo },
1778   { 0, 0, 0, NULL }
1779 };
1780
1781 static int
1782 dissect_dop_SuperiorToSubordinate(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1783   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1784                                    SuperiorToSubordinate_sequence, hf_index, ett_dop_SuperiorToSubordinate);
1785
1786   return offset;
1787 }
1788
1789
1790 static const ber_sequence_t SubordinateToSuperior_sequence[] = {
1791   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_accessPoints },
1792   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_alias },
1793   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_entryInfo },
1794   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL, dissect_subentries },
1795   { 0, 0, 0, NULL }
1796 };
1797
1798 static int
1799 dissect_dop_SubordinateToSuperior(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1800   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1801                                    SubordinateToSuperior_sequence, hf_index, ett_dop_SubordinateToSuperior);
1802
1803   return offset;
1804 }
1805
1806
1807 static const ber_sequence_t SuperiorToSubordinateModification_sequence[] = {
1808   { BER_CLASS_CON, 0, 0, dissect_contextPrefixInfo },
1809   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_immediateSuperiorInfo },
1810   { 0, 0, 0, NULL }
1811 };
1812
1813 static int
1814 dissect_dop_SuperiorToSubordinateModification(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1815   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1816                                    SuperiorToSubordinateModification_sequence, hf_index, ett_dop_SuperiorToSubordinateModification);
1817
1818   return offset;
1819 }
1820
1821
1822 static const ber_sequence_t NonSpecificHierarchicalAgreement_sequence[] = {
1823   { BER_CLASS_CON, 1, 0, dissect_immediateSuperior },
1824   { 0, 0, 0, NULL }
1825 };
1826
1827 static int
1828 dissect_dop_NonSpecificHierarchicalAgreement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1829   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1830                                    NonSpecificHierarchicalAgreement_sequence, hf_index, ett_dop_NonSpecificHierarchicalAgreement);
1831
1832   return offset;
1833 }
1834
1835
1836 static const ber_sequence_t NHOBSuperiorToSubordinate_sequence[] = {
1837   { BER_CLASS_CON, 0, 0, dissect_contextPrefixInfo },
1838   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_immediateSuperiorInfo },
1839   { 0, 0, 0, NULL }
1840 };
1841
1842 static int
1843 dissect_dop_NHOBSuperiorToSubordinate(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1844   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1845                                    NHOBSuperiorToSubordinate_sequence, hf_index, ett_dop_NHOBSuperiorToSubordinate);
1846
1847   return offset;
1848 }
1849
1850
1851 static const ber_sequence_t NHOBSubordinateToSuperior_sequence[] = {
1852   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_accessPoints },
1853   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL, dissect_subentries },
1854   { 0, 0, 0, NULL }
1855 };
1856
1857 static int
1858 dissect_dop_NHOBSubordinateToSuperior(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1859   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1860                                    NHOBSubordinateToSuperior_sequence, hf_index, ett_dop_NHOBSubordinateToSuperior);
1861
1862   return offset;
1863 }
1864
1865
1866
1867 static int
1868 dissect_dop_Precedence(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1869 #line 187 "dop.cnf"
1870   guint32 precedence = 0;
1871
1872     offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1873                                   &precedence);
1874
1875
1876   proto_item_append_text(tree, " precedence=%d", precedence);
1877
1878
1879
1880   return offset;
1881 }
1882 static int dissect_precedence(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1883   return dissect_dop_Precedence(FALSE, tvb, offset, pinfo, tree, hf_dop_precedence);
1884 }
1885
1886
1887 static const value_string dop_T_level_vals[] = {
1888   {   0, "none" },
1889   {   1, "simple" },
1890   {   2, "strong" },
1891   { 0, NULL }
1892 };
1893
1894
1895 static int
1896 dissect_dop_T_level(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1897   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1898                                   NULL);
1899
1900   return offset;
1901 }
1902 static int dissect_level(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1903   return dissect_dop_T_level(FALSE, tvb, offset, pinfo, tree, hf_dop_level);
1904 }
1905
1906
1907 static const ber_sequence_t T_basicLevels_sequence[] = {
1908   { BER_CLASS_UNI, BER_UNI_TAG_ENUMERATED, BER_FLAGS_NOOWNTAG, dissect_level },
1909   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_localQualifier },
1910   { BER_CLASS_UNI, BER_UNI_TAG_BOOLEAN, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_signed },
1911   { 0, 0, 0, NULL }
1912 };
1913
1914 static int
1915 dissect_dop_T_basicLevels(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1916   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1917                                    T_basicLevels_sequence, hf_index, ett_dop_T_basicLevels);
1918
1919   return offset;
1920 }
1921 static int dissect_basicLevels(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1922   return dissect_dop_T_basicLevels(FALSE, tvb, offset, pinfo, tree, hf_dop_basicLevels);
1923 }
1924
1925
1926 static const value_string dop_AuthenticationLevel_vals[] = {
1927   {   0, "basicLevels" },
1928   {   1, "other" },
1929   { 0, NULL }
1930 };
1931
1932 static const ber_choice_t AuthenticationLevel_choice[] = {
1933   {   0, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_basicLevels },
1934   {   1, BER_CLASS_UNI, 8, BER_FLAGS_NOOWNTAG, dissect_other },
1935   { 0, 0, 0, 0, NULL }
1936 };
1937
1938 static int
1939 dissect_dop_AuthenticationLevel(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1940   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1941                                  AuthenticationLevel_choice, hf_index, ett_dop_AuthenticationLevel,
1942                                  NULL);
1943
1944   return offset;
1945 }
1946 static int dissect_authenticationLevel(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1947   return dissect_dop_AuthenticationLevel(FALSE, tvb, offset, pinfo, tree, hf_dop_authenticationLevel);
1948 }
1949
1950
1951 static const ber_sequence_t SET_OF_AttributeType_set_of[1] = {
1952   { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_attributeType_item },
1953 };
1954
1955 static int
1956 dissect_dop_SET_OF_AttributeType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1957   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
1958                                  SET_OF_AttributeType_set_of, hf_index, ett_dop_SET_OF_AttributeType);
1959
1960   return offset;
1961 }
1962 static int dissect_attributeType(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1963   return dissect_dop_SET_OF_AttributeType(FALSE, tvb, offset, pinfo, tree, hf_dop_attributeType);
1964 }
1965 static int dissect_allAttributeValues(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1966   return dissect_dop_SET_OF_AttributeType(FALSE, tvb, offset, pinfo, tree, hf_dop_allAttributeValues);
1967 }
1968 static int dissect_selfValue(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1969   return dissect_dop_SET_OF_AttributeType(FALSE, tvb, offset, pinfo, tree, hf_dop_selfValue);
1970 }
1971
1972
1973 static const ber_sequence_t SET_OF_AttributeTypeAndValue_set_of[1] = {
1974   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_attributeValue_item },
1975 };
1976
1977 static int
1978 dissect_dop_SET_OF_AttributeTypeAndValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1979   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
1980                                  SET_OF_AttributeTypeAndValue_set_of, hf_index, ett_dop_SET_OF_AttributeTypeAndValue);
1981
1982   return offset;
1983 }
1984 static int dissect_attributeValue(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
1985   return dissect_dop_SET_OF_AttributeTypeAndValue(FALSE, tvb, offset, pinfo, tree, hf_dop_attributeValue);
1986 }
1987
1988
1989 static const ber_sequence_t MaxValueCount_sequence[] = {
1990   { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_type },
1991   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_maxCount },
1992   { 0, 0, 0, NULL }
1993 };
1994
1995 static int
1996 dissect_dop_MaxValueCount(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
1997   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1998                                    MaxValueCount_sequence, hf_index, ett_dop_MaxValueCount);
1999
2000   return offset;
2001 }
2002 static int dissect_maxValueCount_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2003   return dissect_dop_MaxValueCount(FALSE, tvb, offset, pinfo, tree, hf_dop_maxValueCount_item);
2004 }
2005
2006
2007 static const ber_sequence_t SET_OF_MaxValueCount_set_of[1] = {
2008   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_maxValueCount_item },
2009 };
2010
2011 static int
2012 dissect_dop_SET_OF_MaxValueCount(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2013   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
2014                                  SET_OF_MaxValueCount_set_of, hf_index, ett_dop_SET_OF_MaxValueCount);
2015
2016   return offset;
2017 }
2018 static int dissect_maxValueCount(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2019   return dissect_dop_SET_OF_MaxValueCount(FALSE, tvb, offset, pinfo, tree, hf_dop_maxValueCount);
2020 }
2021
2022
2023 static const ber_sequence_t RestrictedValue_sequence[] = {
2024   { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_type },
2025   { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_valuesIn },
2026   { 0, 0, 0, NULL }
2027 };
2028
2029 static int
2030 dissect_dop_RestrictedValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2031   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
2032                                    RestrictedValue_sequence, hf_index, ett_dop_RestrictedValue);
2033
2034   return offset;
2035 }
2036 static int dissect_restrictedBy_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2037   return dissect_dop_RestrictedValue(FALSE, tvb, offset, pinfo, tree, hf_dop_restrictedBy_item);
2038 }
2039
2040
2041 static const ber_sequence_t SET_OF_RestrictedValue_set_of[1] = {
2042   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_restrictedBy_item },
2043 };
2044
2045 static int
2046 dissect_dop_SET_OF_RestrictedValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2047   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
2048                                  SET_OF_RestrictedValue_set_of, hf_index, ett_dop_SET_OF_RestrictedValue);
2049
2050   return offset;
2051 }
2052 static int dissect_restrictedBy(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2053   return dissect_dop_SET_OF_RestrictedValue(FALSE, tvb, offset, pinfo, tree, hf_dop_restrictedBy);
2054 }
2055
2056
2057 static const ber_sequence_t SET_OF_ContextAssertion_set_of[1] = {
2058   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_contexts_item },
2059 };
2060
2061 static int
2062 dissect_dop_SET_OF_ContextAssertion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2063   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
2064                                  SET_OF_ContextAssertion_set_of, hf_index, ett_dop_SET_OF_ContextAssertion);
2065
2066   return offset;
2067 }
2068 static int dissect_contexts(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2069   return dissect_dop_SET_OF_ContextAssertion(FALSE, tvb, offset, pinfo, tree, hf_dop_contexts);
2070 }
2071
2072
2073 static const ber_sequence_t ProtectedItems_sequence[] = {
2074   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_entry },
2075   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_allUserAttributeTypes },
2076   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_attributeType },
2077   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL, dissect_allAttributeValues },
2078   { BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL, dissect_allUserAttributeTypesAndValues },
2079   { BER_CLASS_CON, 5, BER_FLAGS_OPTIONAL, dissect_attributeValue },
2080   { BER_CLASS_CON, 6, BER_FLAGS_OPTIONAL, dissect_selfValue },
2081   { BER_CLASS_CON, 7, BER_FLAGS_OPTIONAL, dissect_rangeOfValues },
2082   { BER_CLASS_CON, 8, BER_FLAGS_OPTIONAL, dissect_maxValueCount },
2083   { BER_CLASS_CON, 9, BER_FLAGS_OPTIONAL, dissect_maxImmSub },
2084   { BER_CLASS_CON, 10, BER_FLAGS_OPTIONAL, dissect_restrictedBy },
2085   { BER_CLASS_CON, 11, BER_FLAGS_OPTIONAL, dissect_contexts },
2086   { BER_CLASS_CON, 12, BER_FLAGS_OPTIONAL, dissect_classes },
2087   { 0, 0, 0, NULL }
2088 };
2089
2090 static int
2091 dissect_dop_ProtectedItems(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2092   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
2093                                    ProtectedItems_sequence, hf_index, ett_dop_ProtectedItems);
2094
2095   return offset;
2096 }
2097 static int dissect_protectedItems(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2098   return dissect_dop_ProtectedItems(FALSE, tvb, offset, pinfo, tree, hf_dop_protectedItems);
2099 }
2100
2101
2102 static const ber_sequence_t SET_OF_NameAndOptionalUID_set_of[1] = {
2103   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_name_item },
2104 };
2105
2106 static int
2107 dissect_dop_SET_OF_NameAndOptionalUID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2108   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
2109                                  SET_OF_NameAndOptionalUID_set_of, hf_index, ett_dop_SET_OF_NameAndOptionalUID);
2110
2111   return offset;
2112 }
2113 static int dissect_name(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2114   return dissect_dop_SET_OF_NameAndOptionalUID(FALSE, tvb, offset, pinfo, tree, hf_dop_name);
2115 }
2116 static int dissect_userGroup(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2117   return dissect_dop_SET_OF_NameAndOptionalUID(FALSE, tvb, offset, pinfo, tree, hf_dop_userGroup);
2118 }
2119
2120
2121 static const ber_sequence_t SET_OF_SubtreeSpecification_set_of[1] = {
2122   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_subtree_item },
2123 };
2124
2125 static int
2126 dissect_dop_SET_OF_SubtreeSpecification(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2127   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
2128                                  SET_OF_SubtreeSpecification_set_of, hf_index, ett_dop_SET_OF_SubtreeSpecification);
2129
2130   return offset;
2131 }
2132 static int dissect_subtree(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2133   return dissect_dop_SET_OF_SubtreeSpecification(FALSE, tvb, offset, pinfo, tree, hf_dop_subtree);
2134 }
2135
2136
2137 static const ber_sequence_t UserClasses_sequence[] = {
2138   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_allUsers },
2139   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_thisEntry },
2140   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL, dissect_name },
2141   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL, dissect_userGroup },
2142   { BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL, dissect_subtree },
2143   { 0, 0, 0, NULL }
2144 };
2145
2146 static int
2147 dissect_dop_UserClasses(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2148   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
2149                                    UserClasses_sequence, hf_index, ett_dop_UserClasses);
2150
2151   return offset;
2152 }
2153 static int dissect_userClasses(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2154   return dissect_dop_UserClasses(FALSE, tvb, offset, pinfo, tree, hf_dop_userClasses);
2155 }
2156
2157
2158 static const asn_namedbit GrantsAndDenials_bits[] = {
2159   {  0, &hf_dop_GrantsAndDenials_grantAdd, -1, -1, "grantAdd", NULL },
2160   {  1, &hf_dop_GrantsAndDenials_denyAdd, -1, -1, "denyAdd", NULL },
2161   {  2, &hf_dop_GrantsAndDenials_grantDiscloseOnError, -1, -1, "grantDiscloseOnError", NULL },
2162   {  3, &hf_dop_GrantsAndDenials_denyDiscloseOnError, -1, -1, "denyDiscloseOnError", NULL },
2163   {  4, &hf_dop_GrantsAndDenials_grantRead, -1, -1, "grantRead", NULL },
2164   {  5, &hf_dop_GrantsAndDenials_denyRead, -1, -1, "denyRead", NULL },
2165   {  6, &hf_dop_GrantsAndDenials_grantRemove, -1, -1, "grantRemove", NULL },
2166   {  7, &hf_dop_GrantsAndDenials_denyRemove, -1, -1, "denyRemove", NULL },
2167   {  8, &hf_dop_GrantsAndDenials_grantBrowse, -1, -1, "grantBrowse", NULL },
2168   {  9, &hf_dop_GrantsAndDenials_denyBrowse, -1, -1, "denyBrowse", NULL },
2169   { 10, &hf_dop_GrantsAndDenials_grantExport, -1, -1, "grantExport", NULL },
2170   { 11, &hf_dop_GrantsAndDenials_denyExport, -1, -1, "denyExport", NULL },
2171   { 12, &hf_dop_GrantsAndDenials_grantImport, -1, -1, "grantImport", NULL },
2172   { 13, &hf_dop_GrantsAndDenials_denyImport, -1, -1, "denyImport", NULL },
2173   { 14, &hf_dop_GrantsAndDenials_grantModify, -1, -1, "grantModify", NULL },
2174   { 15, &hf_dop_GrantsAndDenials_denyModify, -1, -1, "denyModify", NULL },
2175   { 16, &hf_dop_GrantsAndDenials_grantRename, -1, -1, "grantRename", NULL },
2176   { 17, &hf_dop_GrantsAndDenials_denyRename, -1, -1, "denyRename", NULL },
2177   { 18, &hf_dop_GrantsAndDenials_grantReturnDN, -1, -1, "grantReturnDN", NULL },
2178   { 19, &hf_dop_GrantsAndDenials_denyReturnDN, -1, -1, "denyReturnDN", NULL },
2179   { 20, &hf_dop_GrantsAndDenials_grantCompare, -1, -1, "grantCompare", NULL },
2180   { 21, &hf_dop_GrantsAndDenials_denyCompare, -1, -1, "denyCompare", NULL },
2181   { 22, &hf_dop_GrantsAndDenials_grantFilterMatch, -1, -1, "grantFilterMatch", NULL },
2182   { 23, &hf_dop_GrantsAndDenials_denyFilterMatch, -1, -1, "denyFilterMatch", NULL },
2183   { 24, &hf_dop_GrantsAndDenials_grantInvoke, -1, -1, "grantInvoke", NULL },
2184   { 25, &hf_dop_GrantsAndDenials_denyInvoke, -1, -1, "denyInvoke", NULL },
2185   { 0, NULL, 0, 0, NULL, NULL }
2186 };
2187
2188 static int
2189 dissect_dop_GrantsAndDenials(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2190   offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
2191                                     GrantsAndDenials_bits, hf_index, ett_dop_GrantsAndDenials,
2192                                     NULL);
2193
2194   return offset;
2195 }
2196 static int dissect_grantsAndDenials(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2197   return dissect_dop_GrantsAndDenials(FALSE, tvb, offset, pinfo, tree, hf_dop_grantsAndDenials);
2198 }
2199
2200
2201 static const ber_sequence_t ItemPermission_sequence[] = {
2202   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_precedence },
2203   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_userClasses },
2204   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_grantsAndDenials },
2205   { 0, 0, 0, NULL }
2206 };
2207
2208 static int
2209 dissect_dop_ItemPermission(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2210   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
2211                                    ItemPermission_sequence, hf_index, ett_dop_ItemPermission);
2212
2213   return offset;
2214 }
2215 static int dissect_itemPermissions_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2216   return dissect_dop_ItemPermission(FALSE, tvb, offset, pinfo, tree, hf_dop_itemPermissions_item);
2217 }
2218
2219
2220 static const ber_sequence_t SET_OF_ItemPermission_set_of[1] = {
2221   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_itemPermissions_item },
2222 };
2223
2224 static int
2225 dissect_dop_SET_OF_ItemPermission(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2226   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
2227                                  SET_OF_ItemPermission_set_of, hf_index, ett_dop_SET_OF_ItemPermission);
2228
2229   return offset;
2230 }
2231 static int dissect_itemPermissions(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2232   return dissect_dop_SET_OF_ItemPermission(FALSE, tvb, offset, pinfo, tree, hf_dop_itemPermissions);
2233 }
2234
2235
2236 static const ber_sequence_t T_itemFirst_sequence[] = {
2237   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_protectedItems },
2238   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_itemPermissions },
2239   { 0, 0, 0, NULL }
2240 };
2241
2242 static int
2243 dissect_dop_T_itemFirst(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2244   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
2245                                    T_itemFirst_sequence, hf_index, ett_dop_T_itemFirst);
2246
2247   return offset;
2248 }
2249 static int dissect_itemFirst(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2250   return dissect_dop_T_itemFirst(FALSE, tvb, offset, pinfo, tree, hf_dop_itemFirst);
2251 }
2252
2253
2254 static const ber_sequence_t UserPermission_sequence[] = {
2255   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_precedence },
2256   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_protectedItems },
2257   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_grantsAndDenials },
2258   { 0, 0, 0, NULL }
2259 };
2260
2261 static int
2262 dissect_dop_UserPermission(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2263   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
2264                                    UserPermission_sequence, hf_index, ett_dop_UserPermission);
2265
2266   return offset;
2267 }
2268 static int dissect_userPermissions_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2269   return dissect_dop_UserPermission(FALSE, tvb, offset, pinfo, tree, hf_dop_userPermissions_item);
2270 }
2271
2272
2273 static const ber_sequence_t SET_OF_UserPermission_set_of[1] = {
2274   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_userPermissions_item },
2275 };
2276
2277 static int
2278 dissect_dop_SET_OF_UserPermission(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2279   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
2280                                  SET_OF_UserPermission_set_of, hf_index, ett_dop_SET_OF_UserPermission);
2281
2282   return offset;
2283 }
2284 static int dissect_userPermissions(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2285   return dissect_dop_SET_OF_UserPermission(FALSE, tvb, offset, pinfo, tree, hf_dop_userPermissions);
2286 }
2287
2288
2289 static const ber_sequence_t T_userFirst_sequence[] = {
2290   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_userClasses },
2291   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_userPermissions },
2292   { 0, 0, 0, NULL }
2293 };
2294
2295 static int
2296 dissect_dop_T_userFirst(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2297   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
2298                                    T_userFirst_sequence, hf_index, ett_dop_T_userFirst);
2299
2300   return offset;
2301 }
2302 static int dissect_userFirst(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2303   return dissect_dop_T_userFirst(FALSE, tvb, offset, pinfo, tree, hf_dop_userFirst);
2304 }
2305
2306
2307 static const value_string dop_T_itemOrUserFirst_vals[] = {
2308   {   0, "itemFirst" },
2309   {   1, "userFirst" },
2310   { 0, NULL }
2311 };
2312
2313 static const ber_choice_t T_itemOrUserFirst_choice[] = {
2314   {   0, BER_CLASS_CON, 0, 0, dissect_itemFirst },
2315   {   1, BER_CLASS_CON, 1, 0, dissect_userFirst },
2316   { 0, 0, 0, 0, NULL }
2317 };
2318
2319 static int
2320 dissect_dop_T_itemOrUserFirst(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2321   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
2322                                  T_itemOrUserFirst_choice, hf_index, ett_dop_T_itemOrUserFirst,
2323                                  NULL);
2324
2325   return offset;
2326 }
2327 static int dissect_itemOrUserFirst(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
2328   return dissect_dop_T_itemOrUserFirst(FALSE, tvb, offset, pinfo, tree, hf_dop_itemOrUserFirst);
2329 }
2330
2331
2332 static const ber_sequence_t ACIItem_sequence[] = {
2333   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG, dissect_identificationTag },
2334   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_precedence },
2335   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_authenticationLevel },
2336   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_itemOrUserFirst },
2337   { 0, 0, 0, NULL }
2338 };
2339
2340 static int
2341 dissect_dop_ACIItem(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
2342   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
2343                                    ACIItem_sequence, hf_index, ett_dop_ACIItem);
2344
2345   return offset;
2346 }
2347
2348 /*--- PDUs ---*/
2349
2350 static void dissect_DSEType_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2351   dissect_dop_DSEType(FALSE, tvb, 0, pinfo, tree, hf_dop_DSEType_PDU);
2352 }
2353 static void dissect_SupplierInformation_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2354   dissect_dop_SupplierInformation(FALSE, tvb, 0, pinfo, tree, hf_dop_SupplierInformation_PDU);
2355 }
2356 static void dissect_ConsumerInformation_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2357   dissect_dop_ConsumerInformation(FALSE, tvb, 0, pinfo, tree, hf_dop_ConsumerInformation_PDU);
2358 }
2359 static void dissect_SupplierAndConsumers_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2360   dissect_dop_SupplierAndConsumers(FALSE, tvb, 0, pinfo, tree, hf_dop_SupplierAndConsumers_PDU);
2361 }
2362 static void dissect_HierarchicalAgreement_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2363   dissect_dop_HierarchicalAgreement(FALSE, tvb, 0, pinfo, tree, hf_dop_HierarchicalAgreement_PDU);
2364 }
2365 static void dissect_SuperiorToSubordinate_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2366   dissect_dop_SuperiorToSubordinate(FALSE, tvb, 0, pinfo, tree, hf_dop_SuperiorToSubordinate_PDU);
2367 }
2368 static void dissect_SubordinateToSuperior_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2369   dissect_dop_SubordinateToSuperior(FALSE, tvb, 0, pinfo, tree, hf_dop_SubordinateToSuperior_PDU);
2370 }
2371 static void dissect_SuperiorToSubordinateModification_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2372   dissect_dop_SuperiorToSubordinateModification(FALSE, tvb, 0, pinfo, tree, hf_dop_SuperiorToSubordinateModification_PDU);
2373 }
2374 static void dissect_NonSpecificHierarchicalAgreement_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2375   dissect_dop_NonSpecificHierarchicalAgreement(FALSE, tvb, 0, pinfo, tree, hf_dop_NonSpecificHierarchicalAgreement_PDU);
2376 }
2377 static void dissect_NHOBSuperiorToSubordinate_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2378   dissect_dop_NHOBSuperiorToSubordinate(FALSE, tvb, 0, pinfo, tree, hf_dop_NHOBSuperiorToSubordinate_PDU);
2379 }
2380 static void dissect_NHOBSubordinateToSuperior_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2381   dissect_dop_NHOBSubordinateToSuperior(FALSE, tvb, 0, pinfo, tree, hf_dop_NHOBSubordinateToSuperior_PDU);
2382 }
2383 static void dissect_ACIItem_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
2384   dissect_dop_ACIItem(FALSE, tvb, 0, pinfo, tree, hf_dop_ACIItem_PDU);
2385 }
2386
2387
2388 /*--- End of included file: packet-dop-fn.c ---*/
2389 #line 77 "packet-dop-template.c"
2390
2391 static int
2392 call_dop_oid_callback(char *base_oid, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, char *col_info)
2393 {
2394   char binding_param[MAX_OID_STR_LEN];
2395
2396   g_snprintf(binding_param, MAX_OID_STR_LEN, "%s.%s", base_oid, binding_type ? binding_type : "");      
2397
2398   if (col_info && (check_col(pinfo->cinfo, COL_INFO))) 
2399     col_append_fstr(pinfo->cinfo, COL_INFO, " %s", col_info);
2400
2401   return call_ber_oid_callback(binding_param, tvb, offset, pinfo, tree);
2402 }
2403
2404
2405 /*
2406 * Dissect DOP PDUs inside a ROS PDUs
2407 */
2408 static void
2409 dissect_dop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
2410 {
2411         int offset = 0;
2412         int old_offset;
2413         proto_item *item=NULL;
2414         proto_tree *tree=NULL;
2415         int (*dop_dissector)(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) = NULL;
2416         char *dop_op_name;
2417
2418         /* do we have operation information from the ROS dissector?  */
2419         if( !pinfo->private_data ){
2420                 if(parent_tree){
2421                         proto_tree_add_text(parent_tree, tvb, offset, -1,
2422                                 "Internal error: can't get operation information from ROS dissector.");
2423                 } 
2424                 return  ;
2425         } else {
2426                 session  = ( (struct SESSION_DATA_STRUCTURE*)(pinfo->private_data) );
2427         }
2428
2429         if(parent_tree){
2430                 item = proto_tree_add_item(parent_tree, proto_dop, tvb, 0, -1, FALSE);
2431                 tree = proto_item_add_subtree(item, ett_dop);
2432         }
2433         if (check_col(pinfo->cinfo, COL_PROTOCOL))
2434                 col_set_str(pinfo->cinfo, COL_PROTOCOL, "DOP");
2435         if (check_col(pinfo->cinfo, COL_INFO))
2436                 col_clear(pinfo->cinfo, COL_INFO);
2437
2438         switch(session->ros_op & ROS_OP_MASK) {
2439         case (ROS_OP_BIND | ROS_OP_ARGUMENT):   /*  BindInvoke */
2440           dop_dissector = dissect_dop_DSAOperationalManagementBindArgument;
2441           dop_op_name = "DSA-Operational-Bind-Argument";
2442           break;
2443         case (ROS_OP_BIND | ROS_OP_RESULT):     /*  BindResult */
2444           dop_dissector = dissect_dop_DSAOperationalManagementBindResult;
2445           dop_op_name = "DSA-Operational-Bind-Result";
2446           break;
2447         case (ROS_OP_BIND | ROS_OP_ERROR):      /*  BindError */
2448           dop_dissector = dissect_dop_DSAOperationalManagementBindError;
2449           dop_op_name = "DSA-Operational-Management-Bind-Error";
2450           break;
2451         case (ROS_OP_INVOKE | ROS_OP_ARGUMENT): /*  Invoke Argument */
2452           switch(session->ros_op & ROS_OP_OPCODE_MASK) {
2453           case 100: /* establish */
2454             dop_dissector = dissect_dop_EstablishOperationalBindingArgument;
2455             dop_op_name = "Establish-Operational-Binding-Argument";
2456             break;
2457           case 101: /* terminate */
2458             dop_dissector = dissect_dop_TerminateOperationalBindingArgument;
2459             dop_op_name = "Terminate-Operational-Binding-Argument";
2460             break;
2461           case 102: /* modify */
2462             dop_dissector = dissect_dop_ModifyOperationalBindingArgument;
2463             dop_op_name = "Modify-Operational-Binding-Argument";
2464             break;
2465           default:
2466             proto_tree_add_text(tree, tvb, offset, -1,"Unsupported DOP Argument opcode (%d)",
2467                                 session->ros_op & ROS_OP_OPCODE_MASK);
2468             break;
2469           }
2470           break;
2471         case (ROS_OP_INVOKE | ROS_OP_RESULT):   /*  Return Result */
2472           switch(session->ros_op & ROS_OP_OPCODE_MASK) {
2473           case 100: /* establish */
2474             dop_dissector = dissect_dop_EstablishOperationalBindingResult;
2475             dop_op_name = "Establish-Operational-Binding-Result";
2476             break;
2477           case 101: /* terminate */
2478             dop_dissector = dissect_dop_TerminateOperationalBindingResult;
2479             dop_op_name = "Terminate-Operational-Binding-Result";
2480             break;
2481           case 102: /* modify */
2482             dop_dissector = dissect_dop_ModifyOperationalBindingResult;
2483             dop_op_name = "Modify-Operational-Binding-Result";
2484             break;
2485           default:
2486             proto_tree_add_text(tree, tvb, offset, -1,"Unsupported DOP Result opcode (%d)",
2487                                 session->ros_op & ROS_OP_OPCODE_MASK);
2488             break;
2489           }
2490           break;
2491         case (ROS_OP_INVOKE | ROS_OP_ERROR):    /*  Return Error */
2492           switch(session->ros_op & ROS_OP_OPCODE_MASK) {
2493           case 100: /* operational-binding */
2494             dop_dissector = dissect_dop_OpBindingErrorParam;
2495             dop_op_name = "Operational-Binding-Error";
2496             break;
2497           default:
2498             proto_tree_add_text(tree, tvb, offset, -1,"Unsupported DOP Error opcode (%d)",
2499                                 session->ros_op & ROS_OP_OPCODE_MASK);
2500             break;
2501           }
2502           break;
2503         default:
2504           proto_tree_add_text(tree, tvb, offset, -1,"Unsupported DOP PDU");
2505           return;
2506         }
2507
2508         if(dop_dissector) {
2509           if (check_col(pinfo->cinfo, COL_INFO))
2510             col_add_str(pinfo->cinfo, COL_INFO, dop_op_name);
2511
2512           while (tvb_reported_length_remaining(tvb, offset) > 0){
2513             old_offset=offset;
2514             offset=(*dop_dissector)(FALSE, tvb, offset, pinfo , tree, -1);
2515             if(offset == old_offset){
2516               proto_tree_add_text(tree, tvb, offset, -1,"Internal error, zero-byte DOP PDU");
2517               offset = tvb_length(tvb);
2518               break;
2519             }
2520           }
2521         }
2522 }
2523
2524
2525
2526 /*--- proto_register_dop -------------------------------------------*/
2527 void proto_register_dop(void) {
2528
2529   /* List of fields */
2530   static hf_register_info hf[] =
2531   {
2532
2533 /*--- Included file: packet-dop-hfarr.c ---*/
2534 #line 1 "packet-dop-hfarr.c"
2535     { &hf_dop_DSEType_PDU,
2536       { "DSEType", "dop.DSEType",
2537         FT_BYTES, BASE_HEX, NULL, 0,
2538         "dop.DSEType", HFILL }},
2539     { &hf_dop_SupplierInformation_PDU,
2540       { "SupplierInformation", "dop.SupplierInformation",
2541         FT_NONE, BASE_NONE, NULL, 0,
2542         "dop.SupplierInformation", HFILL }},
2543     { &hf_dop_ConsumerInformation_PDU,
2544       { "ConsumerInformation", "dop.ConsumerInformation",
2545         FT_NONE, BASE_NONE, NULL, 0,
2546         "dop.ConsumerInformation", HFILL }},
2547     { &hf_dop_SupplierAndConsumers_PDU,
2548       { "SupplierAndConsumers", "dop.SupplierAndConsumers",
2549         FT_NONE, BASE_NONE, NULL, 0,
2550         "dop.SupplierAndConsumers", HFILL }},
2551     { &hf_dop_HierarchicalAgreement_PDU,
2552       { "HierarchicalAgreement", "dop.HierarchicalAgreement",
2553         FT_NONE, BASE_NONE, NULL, 0,
2554         "dop.HierarchicalAgreement", HFILL }},
2555     { &hf_dop_SuperiorToSubordinate_PDU,
2556       { "SuperiorToSubordinate", "dop.SuperiorToSubordinate",
2557         FT_NONE, BASE_NONE, NULL, 0,
2558         "dop.SuperiorToSubordinate", HFILL }},
2559     { &hf_dop_SubordinateToSuperior_PDU,
2560       { "SubordinateToSuperior", "dop.SubordinateToSuperior",
2561         FT_NONE, BASE_NONE, NULL, 0,
2562         "dop.SubordinateToSuperior", HFILL }},
2563     { &hf_dop_SuperiorToSubordinateModification_PDU,
2564       { "SuperiorToSubordinateModification", "dop.SuperiorToSubordinateModification",
2565         FT_NONE, BASE_NONE, NULL, 0,
2566         "dop.SuperiorToSubordinateModification", HFILL }},
2567     { &hf_dop_NonSpecificHierarchicalAgreement_PDU,
2568       { "NonSpecificHierarchicalAgreement", "dop.NonSpecificHierarchicalAgreement",
2569         FT_NONE, BASE_NONE, NULL, 0,
2570         "dop.NonSpecificHierarchicalAgreement", HFILL }},
2571     { &hf_dop_NHOBSuperiorToSubordinate_PDU,
2572       { "NHOBSuperiorToSubordinate", "dop.NHOBSuperiorToSubordinate",
2573         FT_NONE, BASE_NONE, NULL, 0,
2574         "dop.NHOBSuperiorToSubordinate", HFILL }},
2575     { &hf_dop_NHOBSubordinateToSuperior_PDU,
2576       { "NHOBSubordinateToSuperior", "dop.NHOBSubordinateToSuperior",
2577         FT_NONE, BASE_NONE, NULL, 0,
2578         "dop.NHOBSubordinateToSuperior", HFILL }},
2579     { &hf_dop_ACIItem_PDU,
2580       { "ACIItem", "dop.ACIItem",
2581         FT_NONE, BASE_NONE, NULL, 0,
2582         "dop.ACIItem", HFILL }},
2583     { &hf_dop_ae_title,
2584       { "ae-title", "dop.ae_title",
2585         FT_UINT32, BASE_DEC, VALS(x509if_Name_vals), 0,
2586         "x509if.Name", HFILL }},
2587     { &hf_dop_address,
2588       { "address", "dop.address",
2589         FT_NONE, BASE_NONE, NULL, 0,
2590         "x509sat.PresentationAddress", HFILL }},
2591     { &hf_dop_protocolInformation,
2592       { "protocolInformation", "dop.protocolInformation",
2593         FT_UINT32, BASE_DEC, NULL, 0,
2594         "dop.SET_OF_ProtocolInformation", HFILL }},
2595     { &hf_dop_protocolInformation_item,
2596       { "Item", "dop.protocolInformation_item",
2597         FT_NONE, BASE_NONE, NULL, 0,
2598         "x509sat.ProtocolInformation", HFILL }},
2599     { &hf_dop_agreementID,
2600       { "agreementID", "dop.agreementID",
2601         FT_NONE, BASE_NONE, NULL, 0,
2602         "dop.OperationalBindingID", HFILL }},
2603     { &hf_dop_supplier_is_master,
2604       { "supplier-is-master", "dop.supplier_is_master",
2605         FT_BOOLEAN, 8, NULL, 0,
2606         "dop.BOOLEAN", HFILL }},
2607     { &hf_dop_non_supplying_master,
2608       { "non-supplying-master", "dop.non_supplying_master",
2609         FT_NONE, BASE_NONE, NULL, 0,
2610         "dsp.AccessPoint", HFILL }},
2611     { &hf_dop_consumers,
2612       { "consumers", "dop.consumers",
2613         FT_UINT32, BASE_DEC, NULL, 0,
2614         "dop.SET_OF_AccessPoint", HFILL }},
2615     { &hf_dop_consumers_item,
2616       { "Item", "dop.consumers_item",
2617         FT_NONE, BASE_NONE, NULL, 0,
2618         "dsp.AccessPoint", HFILL }},
2619     { &hf_dop_bindingType,
2620       { "bindingType", "dop.bindingType",
2621         FT_OID, BASE_NONE, NULL, 0,
2622         "dop.OBJECT_IDENTIFIER", HFILL }},
2623     { &hf_dop_bindingID,
2624       { "bindingID", "dop.bindingID",
2625         FT_NONE, BASE_NONE, NULL, 0,
2626         "dop.OperationalBindingID", HFILL }},
2627     { &hf_dop_accessPoint,
2628       { "accessPoint", "dop.accessPoint",
2629         FT_NONE, BASE_NONE, NULL, 0,
2630         "dsp.AccessPoint", HFILL }},
2631     { &hf_dop_establishInitiator,
2632       { "initiator", "dop.initiator",
2633         FT_UINT32, BASE_DEC, VALS(dop_EstablishArgumentInitiator_vals), 0,
2634         "dop.EstablishArgumentInitiator", HFILL }},
2635     { &hf_dop_establishSymmetric,
2636       { "symmetric", "dop.symmetric",
2637         FT_NONE, BASE_NONE, NULL, 0,
2638         "dop.EstablishSymmetric", HFILL }},
2639     { &hf_dop_establishRoleAInitiates,
2640       { "roleA-initiates", "dop.roleA_initiates",
2641         FT_NONE, BASE_NONE, NULL, 0,
2642         "dop.EstablishRoleAInitiates", HFILL }},
2643     { &hf_dop_establishRoleBInitiates,
2644       { "roleB-initiates", "dop.roleB_initiates",
2645         FT_NONE, BASE_NONE, NULL, 0,
2646         "dop.EstablishRoleBInitiates", HFILL }},
2647     { &hf_dop_agreement,
2648       { "agreement", "dop.agreement",
2649         FT_NONE, BASE_NONE, NULL, 0,
2650         "dop.T_agreement", HFILL }},
2651     { &hf_dop_valid,
2652       { "valid", "dop.valid",
2653         FT_NONE, BASE_NONE, NULL, 0,
2654         "dop.Validity", HFILL }},
2655     { &hf_dop_securityParameters,
2656       { "securityParameters", "dop.securityParameters",
2657         FT_NONE, BASE_NONE, NULL, 0,
2658         "dap.SecurityParameters", HFILL }},
2659     { &hf_dop_unsignedEstablishOperationalBindingArgument,
2660       { "unsignedEstablishOperationalBindingArgument", "dop.unsignedEstablishOperationalBindingArgument",
2661         FT_NONE, BASE_NONE, NULL, 0,
2662         "dop.EstablishOperationalBindingArgumentData", HFILL }},
2663     { &hf_dop_signedEstablishOperationalBindingArgument,
2664       { "signedEstablishOperationalBindingArgument", "dop.signedEstablishOperationalBindingArgument",
2665         FT_NONE, BASE_NONE, NULL, 0,
2666         "dop.T_signedEstablishOperationalBindingArgument", HFILL }},
2667     { &hf_dop_establishOperationalBindingArgument,
2668       { "establishOperationalBindingArgument", "dop.establishOperationalBindingArgument",
2669         FT_NONE, BASE_NONE, NULL, 0,
2670         "dop.EstablishOperationalBindingArgumentData", HFILL }},
2671     { &hf_dop_algorithmIdentifier,
2672       { "algorithmIdentifier", "dop.algorithmIdentifier",
2673         FT_NONE, BASE_NONE, NULL, 0,
2674         "x509af.AlgorithmIdentifier", HFILL }},
2675     { &hf_dop_encrypted,
2676       { "encrypted", "dop.encrypted",
2677         FT_BYTES, BASE_HEX, NULL, 0,
2678         "dop.BIT_STRING", HFILL }},
2679     { &hf_dop_identifier,
2680       { "identifier", "dop.identifier",
2681         FT_INT32, BASE_DEC, NULL, 0,
2682         "dop.INTEGER", HFILL }},
2683     { &hf_dop_version,
2684       { "version", "dop.version",
2685         FT_INT32, BASE_DEC, NULL, 0,
2686         "dop.INTEGER", HFILL }},
2687     { &hf_dop_validFrom,
2688       { "validFrom", "dop.validFrom",
2689         FT_UINT32, BASE_DEC, VALS(dop_T_validFrom_vals), 0,
2690         "dop.T_validFrom", HFILL }},
2691     { &hf_dop_now,
2692       { "now", "dop.now",
2693         FT_NONE, BASE_NONE, NULL, 0,
2694         "dop.NULL", HFILL }},
2695     { &hf_dop_time,
2696       { "time", "dop.time",
2697         FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
2698         "dop.Time", HFILL }},
2699     { &hf_dop_validUntil,
2700       { "validUntil", "dop.validUntil",
2701         FT_UINT32, BASE_DEC, VALS(dop_T_validUntil_vals), 0,
2702         "dop.T_validUntil", HFILL }},
2703     { &hf_dop_explicitTermination,
2704       { "explicitTermination", "dop.explicitTermination",
2705         FT_NONE, BASE_NONE, NULL, 0,
2706         "dop.NULL", HFILL }},
2707     { &hf_dop_utcTime,
2708       { "utcTime", "dop.utcTime",
2709         FT_STRING, BASE_NONE, NULL, 0,
2710         "dop.UTCTime", HFILL }},
2711     { &hf_dop_generalizedTime,
2712       { "generalizedTime", "dop.generalizedTime",
2713         FT_STRING, BASE_NONE, NULL, 0,
2714         "dop.GeneralizedTime", HFILL }},
2715     { &hf_dop_initiator,
2716       { "initiator", "dop.initiator",
2717         FT_UINT32, BASE_DEC, VALS(dop_T_initiator_vals), 0,
2718         "dop.T_initiator", HFILL }},
2719     { &hf_dop_symmetric,
2720       { "symmetric", "dop.symmetric",
2721         FT_NONE, BASE_NONE, NULL, 0,
2722         "dop.T_symmetric", HFILL }},
2723     { &hf_dop_roleA_replies,
2724       { "roleA-replies", "dop.roleA_replies",
2725         FT_NONE, BASE_NONE, NULL, 0,
2726         "dop.T_roleA_replies", HFILL }},
2727     { &hf_dop_roleB_replies,
2728       { "roleB-replies", "dop.roleB_replies",
2729         FT_NONE, BASE_NONE, NULL, 0,
2730         "dop.T_roleB_replies", HFILL }},
2731     { &hf_dop_performer,
2732       { "performer", "dop.performer",
2733         FT_UINT32, BASE_DEC, NULL, 0,
2734         "x509if.DistinguishedName", HFILL }},
2735     { &hf_dop_aliasDereferenced,
2736       { "aliasDereferenced", "dop.aliasDereferenced",
2737         FT_BOOLEAN, 8, NULL, 0,
2738         "dop.BOOLEAN", HFILL }},
2739     { &hf_dop_notification,
2740       { "notification", "dop.notification",
2741         FT_UINT32, BASE_DEC, NULL, 0,
2742         "dop.SEQUENCE_SIZE_1_MAX_OF_Attribute", HFILL }},
2743     { &hf_dop_notification_item,
2744       { "Item", "dop.notification_item",
2745         FT_NONE, BASE_NONE, NULL, 0,
2746         "x509if.Attribute", HFILL }},
2747     { &hf_dop_modifyInitiator,
2748       { "initiator", "dop.initiator",
2749         FT_UINT32, BASE_DEC, VALS(dop_ModifyArgumentInitiator_vals), 0,
2750         "dop.ModifyArgumentInitiator", HFILL }},
2751     { &hf_dop_modifySymmetric,
2752       { "symmetric", "dop.symmetric",
2753         FT_NONE, BASE_NONE, NULL, 0,
2754         "dop.ModifySymmetric", HFILL }},
2755     { &hf_dop_modifyRoleAInitiates,
2756       { "roleA-initiates", "dop.roleA_initiates",
2757         FT_NONE, BASE_NONE, NULL, 0,
2758         "dop.ModifyRoleAInitiates", HFILL }},
2759     { &hf_dop_modifyRoleBInitiates,
2760       { "roleB-initiates", "dop.roleB_initiates",
2761         FT_NONE, BASE_NONE, NULL, 0,
2762         "dop.ModifyRoleBInitiates", HFILL }},
2763     { &hf_dop_newBindingID,
2764       { "newBindingID", "dop.newBindingID",
2765         FT_NONE, BASE_NONE, NULL, 0,
2766         "dop.OperationalBindingID", HFILL }},
2767     { &hf_dop_argumentNewAgreement,
2768       { "newAgreement", "dop.newAgreement",
2769         FT_NONE, BASE_NONE, NULL, 0,
2770         "dop.ArgumentNewAgreement", HFILL }},
2771     { &hf_dop_unsignedModifyOperationalBindingArgument,
2772       { "unsignedModifyOperationalBindingArgument", "dop.unsignedModifyOperationalBindingArgument",
2773         FT_NONE, BASE_NONE, NULL, 0,
2774         "dop.ModifyOperationalBindingArgumentData", HFILL }},
2775     { &hf_dop_signedModifyOperationalBindingArgument,
2776       { "signedModifyOperationalBindingArgument", "dop.signedModifyOperationalBindingArgument",
2777         FT_NONE, BASE_NONE, NULL, 0,
2778         "dop.T_signedModifyOperationalBindingArgument", HFILL }},
2779     { &hf_dop_modifyOperationalBindingArgument,
2780       { "modifyOperationalBindingArgument", "dop.modifyOperationalBindingArgument",
2781         FT_NONE, BASE_NONE, NULL, 0,
2782         "dop.ModifyOperationalBindingArgumentData", HFILL }},
2783     { &hf_dop_null,
2784       { "null", "dop.null",
2785         FT_NONE, BASE_NONE, NULL, 0,
2786         "dop.NULL", HFILL }},
2787     { &hf_dop_protectedModifyResult,
2788       { "protected", "dop.protected",
2789         FT_NONE, BASE_NONE, NULL, 0,
2790         "dop.ProtectedModifyResult", HFILL }},
2791     { &hf_dop_modifyOperationalBindingResultData,
2792       { "modifyOperationalBindingResultData", "dop.modifyOperationalBindingResultData",
2793         FT_NONE, BASE_NONE, NULL, 0,
2794         "dop.ModifyOperationalBindingResultData", HFILL }},
2795     { &hf_dop_resultNewAgreement,
2796       { "newAgreement", "dop.newAgreement",
2797         FT_NONE, BASE_NONE, NULL, 0,
2798         "dop.ResultNewAgreement", HFILL }},
2799     { &hf_dop_terminateInitiator,
2800       { "initiator", "dop.initiator",
2801         FT_UINT32, BASE_DEC, VALS(dop_TerminateArgumentInitiator_vals), 0,
2802         "dop.TerminateArgumentInitiator", HFILL }},
2803     { &hf_dop_terminateSymmetric,
2804       { "symmetric", "dop.symmetric",
2805         FT_NONE, BASE_NONE, NULL, 0,
2806         "dop.TerminateSymmetric", HFILL }},
2807     { &hf_dop_terminateRoleAInitiates,
2808       { "roleA-initiates", "dop.roleA_initiates",
2809         FT_NONE, BASE_NONE, NULL, 0,
2810         "dop.TerminateRoleAInitiates", HFILL }},
2811     { &hf_dop_terminateRoleBInitiates,
2812       { "roleB-initiates", "dop.roleB_initiates",
2813         FT_NONE, BASE_NONE, NULL, 0,
2814         "dop.TerminateRoleBInitiates", HFILL }},
2815     { &hf_dop_terminateAtTime,
2816       { "terminateAt", "dop.terminateAt",
2817         FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
2818         "dop.Time", HFILL }},
2819     { &hf_dop_unsignedTerminateOperationalBindingArgument,
2820       { "unsignedTerminateOperationalBindingArgument", "dop.unsignedTerminateOperationalBindingArgument",
2821         FT_NONE, BASE_NONE, NULL, 0,
2822         "dop.TerminateOperationalBindingArgumentData", HFILL }},
2823     { &hf_dop_signedTerminateOperationalBindingArgument,
2824       { "signedTerminateOperationalBindingArgument", "dop.signedTerminateOperationalBindingArgument",
2825         FT_NONE, BASE_NONE, NULL, 0,
2826         "dop.T_signedTerminateOperationalBindingArgument", HFILL }},
2827     { &hf_dop_terminateOperationalBindingArgument,
2828       { "terminateOperationalBindingArgument", "dop.terminateOperationalBindingArgument",
2829         FT_NONE, BASE_NONE, NULL, 0,
2830         "dop.TerminateOperationalBindingArgumentData", HFILL }},
2831     { &hf_dop_protectedTerminateResult,
2832       { "protected", "dop.protected",
2833         FT_NONE, BASE_NONE, NULL, 0,
2834         "dop.ProtectedTerminateResult", HFILL }},
2835     { &hf_dop_terminateOperationalBindingResultData,
2836       { "terminateOperationalBindingResultData", "dop.terminateOperationalBindingResultData",
2837         FT_NONE, BASE_NONE, NULL, 0,
2838         "dop.TerminateOperationalBindingResultData", HFILL }},
2839     { &hf_dop_terminateAtGeneralizedTime,
2840       { "terminateAt", "dop.terminateAt",
2841         FT_STRING, BASE_NONE, NULL, 0,
2842         "dop.GeneralizedTime", HFILL }},
2843     { &hf_dop_problem,
2844       { "problem", "dop.problem",
2845         FT_UINT32, BASE_DEC, VALS(dop_T_problem_vals), 0,
2846         "dop.T_problem", HFILL }},
2847     { &hf_dop_agreementProposal,
2848       { "agreementProposal", "dop.agreementProposal",
2849         FT_NONE, BASE_NONE, NULL, 0,
2850         "dop.T_agreementProposal", HFILL }},
2851     { &hf_dop_retryAt,
2852       { "retryAt", "dop.retryAt",
2853         FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
2854         "dop.Time", HFILL }},
2855     { &hf_dop_rdn,
2856       { "rdn", "dop.rdn",
2857         FT_UINT32, BASE_DEC, NULL, 0,
2858         "x509if.RelativeDistinguishedName", HFILL }},
2859     { &hf_dop_immediateSuperior,
2860       { "immediateSuperior", "dop.immediateSuperior",
2861         FT_UINT32, BASE_DEC, NULL, 0,
2862         "x509if.DistinguishedName", HFILL }},
2863     { &hf_dop_contextPrefixInfo,
2864       { "contextPrefixInfo", "dop.contextPrefixInfo",
2865         FT_UINT32, BASE_DEC, NULL, 0,
2866         "dop.DITcontext", HFILL }},
2867     { &hf_dop_entryInfo,
2868       { "entryInfo", "dop.entryInfo",
2869         FT_UINT32, BASE_DEC, NULL, 0,
2870         "dop.SET_OF_Attribute", HFILL }},
2871     { &hf_dop_entryInfo_item,
2872       { "Item", "dop.entryInfo_item",
2873         FT_NONE, BASE_NONE, NULL, 0,
2874         "x509if.Attribute", HFILL }},
2875     { &hf_dop_immediateSuperiorInfo,
2876       { "immediateSuperiorInfo", "dop.immediateSuperiorInfo",
2877         FT_UINT32, BASE_DEC, NULL, 0,
2878         "dop.SET_OF_Attribute", HFILL }},
2879     { &hf_dop_immediateSuperiorInfo_item,
2880       { "Item", "dop.immediateSuperiorInfo_item",
2881         FT_NONE, BASE_NONE, NULL, 0,
2882         "x509if.Attribute", HFILL }},
2883     { &hf_dop_DITcontext_item,
2884       { "Item", "dop.DITcontext_item",
2885         FT_NONE, BASE_NONE, NULL, 0,
2886         "dop.Vertex", HFILL }},
2887     { &hf_dop_admPointInfo,
2888       { "admPointInfo", "dop.admPointInfo",
2889         FT_UINT32, BASE_DEC, NULL, 0,
2890         "dop.SET_OF_Attribute", HFILL }},
2891     { &hf_dop_admPointInfo_item,
2892       { "Item", "dop.admPointInfo_item",
2893         FT_NONE, BASE_NONE, NULL, 0,
2894         "x509if.Attribute", HFILL }},
2895     { &hf_dop_subentries,
2896       { "subentries", "dop.subentries",
2897         FT_UINT32, BASE_DEC, NULL, 0,
2898         "dop.SET_OF_SubentryInfo", HFILL }},
2899     { &hf_dop_subentries_item,
2900       { "Item", "dop.subentries_item",
2901         FT_NONE, BASE_NONE, NULL, 0,
2902         "dop.SubentryInfo", HFILL }},
2903     { &hf_dop_accessPoints,
2904       { "accessPoints", "dop.accessPoints",
2905         FT_UINT32, BASE_DEC, NULL, 0,
2906         "dsp.MasterAndShadowAccessPoints", HFILL }},
2907     { &hf_dop_info,
2908       { "info", "dop.info",
2909         FT_UINT32, BASE_DEC, NULL, 0,
2910         "dop.SET_OF_Attribute", HFILL }},
2911     { &hf_dop_info_item,
2912       { "Item", "dop.info_item",
2913         FT_NONE, BASE_NONE, NULL, 0,
2914         "x509if.Attribute", HFILL }},
2915     { &hf_dop_alias,
2916       { "alias", "dop.alias",
2917         FT_BOOLEAN, 8, NULL, 0,
2918         "dop.BOOLEAN", HFILL }},
2919     { &hf_dop_identificationTag,
2920       { "identificationTag", "dop.identificationTag",
2921         FT_UINT32, BASE_DEC, VALS(x509sat_DirectoryString_vals), 0,
2922         "x509sat.DirectoryString", HFILL }},
2923     { &hf_dop_precedence,
2924       { "precedence", "dop.precedence",
2925         FT_INT32, BASE_DEC, NULL, 0,
2926         "dop.Precedence", HFILL }},
2927     { &hf_dop_authenticationLevel,
2928       { "authenticationLevel", "dop.authenticationLevel",
2929         FT_UINT32, BASE_DEC, VALS(dop_AuthenticationLevel_vals), 0,
2930         "dop.AuthenticationLevel", HFILL }},
2931     { &hf_dop_itemOrUserFirst,
2932       { "itemOrUserFirst", "dop.itemOrUserFirst",
2933         FT_UINT32, BASE_DEC, VALS(dop_T_itemOrUserFirst_vals), 0,
2934         "dop.T_itemOrUserFirst", HFILL }},
2935     { &hf_dop_itemFirst,
2936       { "itemFirst", "dop.itemFirst",
2937         FT_NONE, BASE_NONE, NULL, 0,
2938         "dop.T_itemFirst", HFILL }},
2939     { &hf_dop_protectedItems,
2940       { "protectedItems", "dop.protectedItems",
2941         FT_NONE, BASE_NONE, NULL, 0,
2942         "dop.ProtectedItems", HFILL }},
2943     { &hf_dop_itemPermissions,
2944       { "itemPermissions", "dop.itemPermissions",
2945         FT_UINT32, BASE_DEC, NULL, 0,
2946         "dop.SET_OF_ItemPermission", HFILL }},
2947     { &hf_dop_itemPermissions_item,
2948       { "Item", "dop.itemPermissions_item",
2949         FT_NONE, BASE_NONE, NULL, 0,
2950         "dop.ItemPermission", HFILL }},
2951     { &hf_dop_userFirst,
2952       { "userFirst", "dop.userFirst",
2953         FT_NONE, BASE_NONE, NULL, 0,
2954         "dop.T_userFirst", HFILL }},
2955     { &hf_dop_userClasses,
2956       { "userClasses", "dop.userClasses",
2957         FT_NONE, BASE_NONE, NULL, 0,
2958         "dop.UserClasses", HFILL }},
2959     { &hf_dop_userPermissions,
2960       { "userPermissions", "dop.userPermissions",
2961         FT_UINT32, BASE_DEC, NULL, 0,
2962         "dop.SET_OF_UserPermission", HFILL }},
2963     { &hf_dop_userPermissions_item,
2964       { "Item", "dop.userPermissions_item",
2965         FT_NONE, BASE_NONE, NULL, 0,
2966         "dop.UserPermission", HFILL }},
2967     { &hf_dop_entry,
2968       { "entry", "dop.entry",
2969         FT_NONE, BASE_NONE, NULL, 0,
2970         "dop.NULL", HFILL }},
2971     { &hf_dop_allUserAttributeTypes,
2972       { "allUserAttributeTypes", "dop.allUserAttributeTypes",
2973         FT_NONE, BASE_NONE, NULL, 0,
2974         "dop.NULL", HFILL }},
2975     { &hf_dop_attributeType,
2976       { "attributeType", "dop.attributeType",
2977         FT_UINT32, BASE_DEC, NULL, 0,
2978         "dop.SET_OF_AttributeType", HFILL }},
2979     { &hf_dop_attributeType_item,
2980       { "Item", "dop.attributeType_item",
2981         FT_OID, BASE_NONE, NULL, 0,
2982         "x509if.AttributeType", HFILL }},
2983     { &hf_dop_allAttributeValues,
2984       { "allAttributeValues", "dop.allAttributeValues",
2985         FT_UINT32, BASE_DEC, NULL, 0,
2986         "dop.SET_OF_AttributeType", HFILL }},
2987     { &hf_dop_allAttributeValues_item,
2988       { "Item", "dop.allAttributeValues_item",
2989         FT_OID, BASE_NONE, NULL, 0,
2990         "x509if.AttributeType", HFILL }},
2991     { &hf_dop_allUserAttributeTypesAndValues,
2992       { "allUserAttributeTypesAndValues", "dop.allUserAttributeTypesAndValues",
2993         FT_NONE, BASE_NONE, NULL, 0,
2994         "dop.NULL", HFILL }},
2995     { &hf_dop_attributeValue,
2996       { "attributeValue", "dop.attributeValue",
2997         FT_UINT32, BASE_DEC, NULL, 0,
2998         "dop.SET_OF_AttributeTypeAndValue", HFILL }},
2999     { &hf_dop_attributeValue_item,
3000       { "Item", "dop.attributeValue_item",
3001         FT_NONE, BASE_NONE, NULL, 0,
3002         "crmf.AttributeTypeAndValue", HFILL }},
3003     { &hf_dop_selfValue,
3004       { "selfValue", "dop.selfValue",
3005         FT_UINT32, BASE_DEC, NULL, 0,
3006         "dop.SET_OF_AttributeType", HFILL }},
3007     { &hf_dop_selfValue_item,
3008       { "Item", "dop.selfValue_item",
3009         FT_OID, BASE_NONE, NULL, 0,
3010         "x509if.AttributeType", HFILL }},
3011     { &hf_dop_rangeOfValues,
3012       { "rangeOfValues", "dop.rangeOfValues",
3013         FT_UINT32, BASE_DEC, VALS(dap_Filter_vals), 0,
3014         "dap.Filter", HFILL }},
3015     { &hf_dop_maxValueCount,
3016       { "maxValueCount", "dop.maxValueCount",
3017         FT_UINT32, BASE_DEC, NULL, 0,
3018         "dop.SET_OF_MaxValueCount", HFILL }},
3019     { &hf_dop_maxValueCount_item,
3020       { "Item", "dop.maxValueCount_item",
3021         FT_NONE, BASE_NONE, NULL, 0,
3022         "dop.MaxValueCount", HFILL }},
3023     { &hf_dop_maxImmSub,
3024       { "maxImmSub", "dop.maxImmSub",
3025         FT_INT32, BASE_DEC, NULL, 0,
3026         "dop.INTEGER", HFILL }},
3027     { &hf_dop_restrictedBy,
3028       { "restrictedBy", "dop.restrictedBy",
3029         FT_UINT32, BASE_DEC, NULL, 0,
3030         "dop.SET_OF_RestrictedValue", HFILL }},
3031     { &hf_dop_restrictedBy_item,
3032       { "Item", "dop.restrictedBy_item",
3033         FT_NONE, BASE_NONE, NULL, 0,
3034         "dop.RestrictedValue", HFILL }},
3035     { &hf_dop_contexts,
3036       { "contexts", "dop.contexts",
3037         FT_UINT32, BASE_DEC, NULL, 0,
3038         "dop.SET_OF_ContextAssertion", HFILL }},
3039     { &hf_dop_contexts_item,
3040       { "Item", "dop.contexts_item",
3041         FT_NONE, BASE_NONE, NULL, 0,
3042         "x509if.ContextAssertion", HFILL }},
3043     { &hf_dop_classes,
3044       { "classes", "dop.classes",
3045         FT_UINT32, BASE_DEC, VALS(x509if_Refinement_vals), 0,
3046         "x509if.Refinement", HFILL }},
3047     { &hf_dop_type,
3048       { "type", "dop.type",
3049         FT_OID, BASE_NONE, NULL, 0,
3050         "x509if.AttributeType", HFILL }},
3051     { &hf_dop_maxCount,
3052       { "maxCount", "dop.maxCount",
3053         FT_INT32, BASE_DEC, NULL, 0,
3054         "dop.INTEGER", HFILL }},
3055     { &hf_dop_valuesIn,
3056       { "valuesIn", "dop.valuesIn",
3057         FT_OID, BASE_NONE, NULL, 0,
3058         "x509if.AttributeType", HFILL }},
3059     { &hf_dop_allUsers,
3060       { "allUsers", "dop.allUsers",
3061         FT_NONE, BASE_NONE, NULL, 0,
3062         "dop.NULL", HFILL }},
3063     { &hf_dop_thisEntry,
3064       { "thisEntry", "dop.thisEntry",
3065         FT_NONE, BASE_NONE, NULL, 0,
3066         "dop.NULL", HFILL }},
3067     { &hf_dop_name,
3068       { "name", "dop.name",
3069         FT_UINT32, BASE_DEC, NULL, 0,
3070         "dop.SET_OF_NameAndOptionalUID", HFILL }},
3071     { &hf_dop_name_item,
3072       { "Item", "dop.name_item",
3073         FT_NONE, BASE_NONE, NULL, 0,
3074         "x509sat.NameAndOptionalUID", HFILL }},
3075     { &hf_dop_userGroup,
3076       { "userGroup", "dop.userGroup",
3077         FT_UINT32, BASE_DEC, NULL, 0,
3078         "dop.SET_OF_NameAndOptionalUID", HFILL }},
3079     { &hf_dop_userGroup_item,
3080       { "Item", "dop.userGroup_item",
3081         FT_NONE, BASE_NONE, NULL, 0,
3082         "x509sat.NameAndOptionalUID", HFILL }},
3083     { &hf_dop_subtree,
3084       { "subtree", "dop.subtree",
3085         FT_UINT32, BASE_DEC, NULL, 0,
3086         "dop.SET_OF_SubtreeSpecification", HFILL }},
3087     { &hf_dop_subtree_item,
3088       { "Item", "dop.subtree_item",
3089         FT_NONE, BASE_NONE, NULL, 0,
3090         "x509if.SubtreeSpecification", HFILL }},
3091     { &hf_dop_grantsAndDenials,
3092       { "grantsAndDenials", "dop.grantsAndDenials",
3093         FT_BYTES, BASE_HEX, NULL, 0,
3094         "dop.GrantsAndDenials", HFILL }},
3095     { &hf_dop_basicLevels,
3096       { "basicLevels", "dop.basicLevels",
3097         FT_NONE, BASE_NONE, NULL, 0,
3098         "dop.T_basicLevels", HFILL }},
3099     { &hf_dop_level,
3100       { "level", "dop.level",
3101         FT_UINT32, BASE_DEC, VALS(dop_T_level_vals), 0,
3102         "dop.T_level", HFILL }},
3103     { &hf_dop_localQualifier,
3104       { "localQualifier", "dop.localQualifier",
3105         FT_INT32, BASE_DEC, NULL, 0,
3106         "dop.INTEGER", HFILL }},
3107     { &hf_dop_signed,
3108       { "signed", "dop.signed",
3109         FT_BOOLEAN, 8, NULL, 0,
3110         "dop.BOOLEAN", HFILL }},
3111     { &hf_dop_other,
3112       { "other", "dop.other",
3113         FT_NONE, BASE_NONE, NULL, 0,
3114         "acse.EXTERNAL", HFILL }},
3115     { &hf_dop_DSEType_root,
3116       { "root", "dop.root",
3117         FT_BOOLEAN, 8, NULL, 0x80,
3118         "", HFILL }},
3119     { &hf_dop_DSEType_glue,
3120       { "glue", "dop.glue",
3121         FT_BOOLEAN, 8, NULL, 0x40,
3122         "", HFILL }},
3123     { &hf_dop_DSEType_cp,
3124       { "cp", "dop.cp",
3125         FT_BOOLEAN, 8, NULL, 0x20,
3126         "", HFILL }},
3127     { &hf_dop_DSEType_entry,
3128       { "entry", "dop.entry",
3129         FT_BOOLEAN, 8, NULL, 0x10,
3130         "", HFILL }},
3131     { &hf_dop_DSEType_alias,
3132       { "alias", "dop.alias",
3133         FT_BOOLEAN, 8, NULL, 0x08,
3134         "", HFILL }},
3135     { &hf_dop_DSEType_subr,
3136       { "subr", "dop.subr",
3137         FT_BOOLEAN, 8, NULL, 0x04,
3138         "", HFILL }},
3139     { &hf_dop_DSEType_nssr,
3140       { "nssr", "dop.nssr",
3141         FT_BOOLEAN, 8, NULL, 0x02,
3142         "", HFILL }},
3143     { &hf_dop_DSEType_supr,
3144       { "supr", "dop.supr",
3145         FT_BOOLEAN, 8, NULL, 0x01,
3146         "", HFILL }},
3147     { &hf_dop_DSEType_xr,
3148       { "xr", "dop.xr",
3149         FT_BOOLEAN, 8, NULL, 0x80,
3150         "", HFILL }},
3151     { &hf_dop_DSEType_admPoint,
3152       { "admPoint", "dop.admPoint",
3153         FT_BOOLEAN, 8, NULL, 0x40,
3154         "", HFILL }},
3155     { &hf_dop_DSEType_subentry,
3156       { "subentry", "dop.subentry",
3157         FT_BOOLEAN, 8, NULL, 0x20,
3158         "", HFILL }},
3159     { &hf_dop_DSEType_shadow,
3160       { "shadow", "dop.shadow",
3161         FT_BOOLEAN, 8, NULL, 0x10,
3162         "", HFILL }},
3163     { &hf_dop_DSEType_immSupr,
3164       { "immSupr", "dop.immSupr",
3165         FT_BOOLEAN, 8, NULL, 0x04,
3166         "", HFILL }},
3167     { &hf_dop_DSEType_rhob,
3168       { "rhob", "dop.rhob",
3169         FT_BOOLEAN, 8, NULL, 0x02,
3170         "", HFILL }},
3171     { &hf_dop_DSEType_sa,
3172       { "sa", "dop.sa",
3173         FT_BOOLEAN, 8, NULL, 0x01,
3174         "", HFILL }},
3175     { &hf_dop_DSEType_dsSubentry,
3176       { "dsSubentry", "dop.dsSubentry",
3177         FT_BOOLEAN, 8, NULL, 0x80,
3178         "", HFILL }},
3179     { &hf_dop_DSEType_familyMember,
3180       { "familyMember", "dop.familyMember",
3181         FT_BOOLEAN, 8, NULL, 0x40,
3182         "", HFILL }},
3183     { &hf_dop_GrantsAndDenials_grantAdd,
3184       { "grantAdd", "dop.grantAdd",
3185         FT_BOOLEAN, 8, NULL, 0x80,
3186         "", HFILL }},
3187     { &hf_dop_GrantsAndDenials_denyAdd,
3188       { "denyAdd", "dop.denyAdd",
3189         FT_BOOLEAN, 8, NULL, 0x40,
3190         "", HFILL }},
3191     { &hf_dop_GrantsAndDenials_grantDiscloseOnError,
3192       { "grantDiscloseOnError", "dop.grantDiscloseOnError",
3193         FT_BOOLEAN, 8, NULL, 0x20,
3194         "", HFILL }},
3195     { &hf_dop_GrantsAndDenials_denyDiscloseOnError,
3196       { "denyDiscloseOnError", "dop.denyDiscloseOnError",
3197         FT_BOOLEAN, 8, NULL, 0x10,
3198         "", HFILL }},
3199     { &hf_dop_GrantsAndDenials_grantRead,
3200       { "grantRead", "dop.grantRead",
3201         FT_BOOLEAN, 8, NULL, 0x08,
3202         "", HFILL }},
3203     { &hf_dop_GrantsAndDenials_denyRead,
3204       { "denyRead", "dop.denyRead",
3205         FT_BOOLEAN, 8, NULL, 0x04,
3206         "", HFILL }},
3207     { &hf_dop_GrantsAndDenials_grantRemove,
3208       { "grantRemove", "dop.grantRemove",
3209         FT_BOOLEAN, 8, NULL, 0x02,
3210         "", HFILL }},
3211     { &hf_dop_GrantsAndDenials_denyRemove,
3212       { "denyRemove", "dop.denyRemove",
3213         FT_BOOLEAN, 8, NULL, 0x01,
3214         "", HFILL }},
3215     { &hf_dop_GrantsAndDenials_grantBrowse,
3216       { "grantBrowse", "dop.grantBrowse",
3217         FT_BOOLEAN, 8, NULL, 0x80,
3218         "", HFILL }},
3219     { &hf_dop_GrantsAndDenials_denyBrowse,
3220       { "denyBrowse", "dop.denyBrowse",
3221         FT_BOOLEAN, 8, NULL, 0x40,
3222         "", HFILL }},
3223     { &hf_dop_GrantsAndDenials_grantExport,
3224       { "grantExport", "dop.grantExport",
3225         FT_BOOLEAN, 8, NULL, 0x20,
3226         "", HFILL }},
3227     { &hf_dop_GrantsAndDenials_denyExport,
3228       { "denyExport", "dop.denyExport",
3229         FT_BOOLEAN, 8, NULL, 0x10,
3230         "", HFILL }},
3231     { &hf_dop_GrantsAndDenials_grantImport,
3232       { "grantImport", "dop.grantImport",
3233         FT_BOOLEAN, 8, NULL, 0x08,
3234         "", HFILL }},
3235     { &hf_dop_GrantsAndDenials_denyImport,
3236       { "denyImport", "dop.denyImport",
3237         FT_BOOLEAN, 8, NULL, 0x04,
3238         "", HFILL }},
3239     { &hf_dop_GrantsAndDenials_grantModify,
3240       { "grantModify", "dop.grantModify",
3241         FT_BOOLEAN, 8, NULL, 0x02,
3242         "", HFILL }},
3243     { &hf_dop_GrantsAndDenials_denyModify,
3244       { "denyModify", "dop.denyModify",
3245         FT_BOOLEAN, 8, NULL, 0x01,
3246         "", HFILL }},
3247     { &hf_dop_GrantsAndDenials_grantRename,
3248       { "grantRename", "dop.grantRename",
3249         FT_BOOLEAN, 8, NULL, 0x80,
3250         "", HFILL }},
3251     { &hf_dop_GrantsAndDenials_denyRename,
3252       { "denyRename", "dop.denyRename",
3253         FT_BOOLEAN, 8, NULL, 0x40,
3254         "", HFILL }},
3255     { &hf_dop_GrantsAndDenials_grantReturnDN,
3256       { "grantReturnDN", "dop.grantReturnDN",
3257         FT_BOOLEAN, 8, NULL, 0x20,
3258         "", HFILL }},
3259     { &hf_dop_GrantsAndDenials_denyReturnDN,
3260       { "denyReturnDN", "dop.denyReturnDN",
3261         FT_BOOLEAN, 8, NULL, 0x10,
3262         "", HFILL }},
3263     { &hf_dop_GrantsAndDenials_grantCompare,
3264       { "grantCompare", "dop.grantCompare",
3265         FT_BOOLEAN, 8, NULL, 0x08,
3266         "", HFILL }},
3267     { &hf_dop_GrantsAndDenials_denyCompare,
3268       { "denyCompare", "dop.denyCompare",
3269         FT_BOOLEAN, 8, NULL, 0x04,
3270         "", HFILL }},
3271     { &hf_dop_GrantsAndDenials_grantFilterMatch,
3272       { "grantFilterMatch", "dop.grantFilterMatch",
3273         FT_BOOLEAN, 8, NULL, 0x02,
3274         "", HFILL }},
3275     { &hf_dop_GrantsAndDenials_denyFilterMatch,
3276       { "denyFilterMatch", "dop.denyFilterMatch",
3277         FT_BOOLEAN, 8, NULL, 0x01,
3278         "", HFILL }},
3279     { &hf_dop_GrantsAndDenials_grantInvoke,
3280       { "grantInvoke", "dop.grantInvoke",
3281         FT_BOOLEAN, 8, NULL, 0x80,
3282         "", HFILL }},
3283     { &hf_dop_GrantsAndDenials_denyInvoke,
3284       { "denyInvoke", "dop.denyInvoke",
3285         FT_BOOLEAN, 8, NULL, 0x40,
3286         "", HFILL }},
3287
3288 /*--- End of included file: packet-dop-hfarr.c ---*/
3289 #line 220 "packet-dop-template.c"
3290   };
3291
3292   /* List of subtrees */
3293   static gint *ett[] = {
3294     &ett_dop,
3295
3296 /*--- Included file: packet-dop-ettarr.c ---*/
3297 #line 1 "packet-dop-ettarr.c"
3298     &ett_dop_DSEType,
3299     &ett_dop_SupplierOrConsumer,
3300     &ett_dop_SET_OF_ProtocolInformation,
3301     &ett_dop_SupplierInformation,
3302     &ett_dop_SupplierAndConsumers,
3303     &ett_dop_SET_OF_AccessPoint,
3304     &ett_dop_EstablishOperationalBindingArgumentData,
3305     &ett_dop_EstablishArgumentInitiator,
3306     &ett_dop_EstablishOperationalBindingArgument,
3307     &ett_dop_T_signedEstablishOperationalBindingArgument,
3308     &ett_dop_OperationalBindingID,
3309     &ett_dop_Validity,
3310     &ett_dop_T_validFrom,
3311     &ett_dop_T_validUntil,
3312     &ett_dop_Time,
3313     &ett_dop_EstablishOperationalBindingResult,
3314     &ett_dop_T_initiator,
3315     &ett_dop_SEQUENCE_SIZE_1_MAX_OF_Attribute,
3316     &ett_dop_ModifyOperationalBindingArgumentData,
3317     &ett_dop_ModifyArgumentInitiator,
3318     &ett_dop_ModifyOperationalBindingArgument,
3319     &ett_dop_T_signedModifyOperationalBindingArgument,
3320     &ett_dop_ModifyOperationalBindingResult,
3321     &ett_dop_ProtectedModifyResult,
3322     &ett_dop_ModifyOperationalBindingResultData,
3323     &ett_dop_TerminateOperationalBindingArgumentData,
3324     &ett_dop_TerminateArgumentInitiator,
3325     &ett_dop_TerminateOperationalBindingArgument,
3326     &ett_dop_T_signedTerminateOperationalBindingArgument,
3327     &ett_dop_TerminateOperationalBindingResult,
3328     &ett_dop_ProtectedTerminateResult,
3329     &ett_dop_TerminateOperationalBindingResultData,
3330     &ett_dop_OpBindingErrorParam,
3331     &ett_dop_HierarchicalAgreement,
3332     &ett_dop_SuperiorToSubordinate,
3333     &ett_dop_SET_OF_Attribute,
3334     &ett_dop_DITcontext,
3335     &ett_dop_Vertex,
3336     &ett_dop_SET_OF_SubentryInfo,
3337     &ett_dop_SubentryInfo,
3338     &ett_dop_SubordinateToSuperior,
3339     &ett_dop_SuperiorToSubordinateModification,
3340     &ett_dop_NonSpecificHierarchicalAgreement,
3341     &ett_dop_NHOBSuperiorToSubordinate,
3342     &ett_dop_NHOBSubordinateToSuperior,
3343     &ett_dop_ACIItem,
3344     &ett_dop_T_itemOrUserFirst,
3345     &ett_dop_T_itemFirst,
3346     &ett_dop_SET_OF_ItemPermission,
3347     &ett_dop_T_userFirst,
3348     &ett_dop_SET_OF_UserPermission,
3349     &ett_dop_ProtectedItems,
3350     &ett_dop_SET_OF_AttributeType,
3351     &ett_dop_SET_OF_AttributeTypeAndValue,
3352     &ett_dop_SET_OF_MaxValueCount,
3353     &ett_dop_SET_OF_RestrictedValue,
3354     &ett_dop_SET_OF_ContextAssertion,
3355     &ett_dop_MaxValueCount,
3356     &ett_dop_RestrictedValue,
3357     &ett_dop_UserClasses,
3358     &ett_dop_SET_OF_NameAndOptionalUID,
3359     &ett_dop_SET_OF_SubtreeSpecification,
3360     &ett_dop_ItemPermission,
3361     &ett_dop_UserPermission,
3362     &ett_dop_AuthenticationLevel,
3363     &ett_dop_T_basicLevels,
3364     &ett_dop_GrantsAndDenials,
3365
3366 /*--- End of included file: packet-dop-ettarr.c ---*/
3367 #line 226 "packet-dop-template.c"
3368   };
3369
3370   module_t *dop_module;
3371
3372   /* Register protocol */
3373   proto_dop = proto_register_protocol(PNAME, PSNAME, PFNAME);
3374
3375   register_dissector("dop", dissect_dop, proto_dop);
3376
3377   /* Register fields and subtrees */
3378   proto_register_field_array(proto_dop, hf, array_length(hf));
3379   proto_register_subtree_array(ett, array_length(ett));
3380
3381   /* Register our configuration options for DOP, particularly our port */
3382
3383 #ifdef PREFERENCE_GROUPING
3384   dop_module = prefs_register_protocol_subtree("OSI/X.500", proto_dop, prefs_register_dop);
3385 #else
3386   dop_module = prefs_register_protocol(proto_dop, prefs_register_dop);
3387 #endif 
3388
3389   prefs_register_uint_preference(dop_module, "tcp.port", "DOP TCP Port",
3390                                  "Set the port for DOP operations (if other"
3391                                  " than the default of 102)",
3392                                  10, &global_dop_tcp_port);
3393
3394
3395 }
3396
3397
3398 /*--- proto_reg_handoff_dop --- */
3399 void proto_reg_handoff_dop(void) {
3400   dissector_handle_t handle = NULL;
3401
3402
3403 /*--- Included file: packet-dop-dis-tab.c ---*/
3404 #line 1 "packet-dop-dis-tab.c"
3405   register_ber_oid_dissector("2.5.12.0", dissect_DSEType_PDU, proto_dop, "id-doa-dseType");
3406   register_ber_oid_dissector("2.5.12.5", dissect_SupplierInformation_PDU, proto_dop, "id-doa-supplierKnowledge");
3407   register_ber_oid_dissector("2.5.12.6", dissect_ConsumerInformation_PDU, proto_dop, "id-doa-consumerKnowledge");
3408   register_ber_oid_dissector("2.5.12.7", dissect_SupplierAndConsumers_PDU, proto_dop, "id-doa-secondaryShadows");
3409   register_ber_oid_dissector("dop.agreement.2.5.19.2", dissect_HierarchicalAgreement_PDU, proto_dop, "hierarchical-agreement");
3410   register_ber_oid_dissector("dop.establish.rolea.2.5.19.2", dissect_SuperiorToSubordinate_PDU, proto_dop, "hierarchical-establish-rolea");
3411   register_ber_oid_dissector("dop.modify.rolea.2.5.19.2", dissect_SuperiorToSubordinateModification_PDU, proto_dop, "hierarchical-modify-rolea");
3412   register_ber_oid_dissector("dop.establish.roleb.2.5.19.2", dissect_SubordinateToSuperior_PDU, proto_dop, "hierarchical-establish-roleb");
3413   register_ber_oid_dissector("dop.modify.roleb.2.5.19.2", dissect_SubordinateToSuperior_PDU, proto_dop, "hierarchical-modify-roleb");
3414   register_ber_oid_dissector("dop.agreement.2.5.19.3", dissect_NonSpecificHierarchicalAgreement_PDU, proto_dop, "non-specific-hierarchical-agreement");
3415   register_ber_oid_dissector("dop.establish.rolea.2.5.19.3", dissect_NHOBSuperiorToSubordinate_PDU, proto_dop, "non-specific-hierarchical-establish-rolea");
3416   register_ber_oid_dissector("dop.modify.rolea.2.5.19.3", dissect_NHOBSuperiorToSubordinate_PDU, proto_dop, "non-specific-hierarchical-modify-rolea");
3417   register_ber_oid_dissector("dop.establish.roleb.2.5.19.3", dissect_NHOBSubordinateToSuperior_PDU, proto_dop, "non-specific-hierarchical-establish-roleb");
3418   register_ber_oid_dissector("dop.modify.roleb.2.5.19.3", dissect_NHOBSubordinateToSuperior_PDU, proto_dop, "non-specific-hierarchical-modify-roleb");
3419   register_ber_oid_dissector("2.5.24.4", dissect_ACIItem_PDU, proto_dop, "id-aca-prescriptiveACI");
3420   register_ber_oid_dissector("2.5.24.5", dissect_ACIItem_PDU, proto_dop, "id-aca-entryACI");
3421   register_ber_oid_dissector("2.5.24.6", dissect_ACIItem_PDU, proto_dop, "id-aca-subentryACI");
3422
3423
3424 /*--- End of included file: packet-dop-dis-tab.c ---*/
3425 #line 261 "packet-dop-template.c"
3426   /* APPLICATION CONTEXT */
3427
3428   add_oid_str_name("2.5.3.3", "id-ac-directory-operational-binding-management");
3429
3430   /* ABSTRACT SYNTAXES */
3431     
3432   /* Register DOP with ROS (with no use of RTSE) */
3433   if((handle = find_dissector("dop"))) {
3434     register_ros_oid_dissector_handle("2.5.9.4", handle, 0, "id-as-directory-operational-binding-management", FALSE); 
3435   }
3436
3437   /* BINDING TYPES */
3438
3439   add_oid_str_name("2.5.19.1", "shadow-agreement");
3440   add_oid_str_name("2.5.19.2", "hierarchical-agreement");
3441   add_oid_str_name("2.5.19.3", "non-specific-hierarchical-agreement");
3442
3443   /* ACCESS CONTROL SCHEMES */
3444   add_oid_str_name("2.5.28.1", "basic-ACS");
3445   add_oid_str_name("2.5.28.2", "simplified-ACS");
3446   add_oid_str_name("2.5.28.3", "ruleBased-ACS");
3447   add_oid_str_name("2.5.28.4", "ruleAndBasic-ACS");
3448   add_oid_str_name("2.5.28.5", "ruleAndSimple-ACS");
3449
3450   /* ADMINISTRATIVE ROLES */
3451   add_oid_str_name("2.5.23.1", "id-ar-autonomousArea");
3452   add_oid_str_name("2.5.23.2", "id-ar-accessControlSpecificArea");
3453   add_oid_str_name("2.5.23.3", "id-ar-accessControlInnerArea");
3454   add_oid_str_name("2.5.23.4", "id-ar-subschemaAdminSpecificArea");
3455   add_oid_str_name("2.5.23.5", "id-ar-collectiveAttributeSpecificArea");
3456   add_oid_str_name("2.5.23.6", "id-ar-collectiveAttributeInnerArea");
3457   add_oid_str_name("2.5.23.7", "id-ar-contextDefaultSpecificArea");
3458   add_oid_str_name("2.5.23.8", "id-ar-serviceSpecificArea");
3459
3460   /* remember the tpkt handler for change in preferences */
3461   tpkt_handle = find_dissector("tpkt");
3462
3463 }
3464
3465 void prefs_register_dop(void) {
3466
3467   /* de-register the old port */
3468   /* port 102 is registered by TPKT - don't undo this! */
3469   if((tcp_port != 102) && tpkt_handle)
3470     dissector_delete("tcp.port", tcp_port, tpkt_handle);
3471
3472   /* Set our port number for future use */
3473   tcp_port = global_dop_tcp_port;
3474
3475   if((tcp_port > 0) && (tcp_port != 102) && tpkt_handle)
3476     dissector_add("tcp.port", global_dop_tcp_port, tpkt_handle);
3477
3478 }