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