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