From Graeme Lunt
[obnox/wireshark/wip.git] / epan / dissectors / packet-x420.c
1 /* Do not modify this file.                                                   */
2 /* It is created automatically by the ASN.1 to Ethereal dissector compiler    */
3 /* .\packet-x420.c                                                            */
4 /* ../../tools/asn2eth.py -X -b -e -p x420 -c x420.cnf -s packet-x420-template x420.asn */
5
6 /* Input file: packet-x420-template.c */
7
8 /* packet-x420.c
9  * Routines for X.420 (X.400 Message Transfer)  packet dissection
10  * Graeme Lunt 2005
11  *
12  * $Id$
13  *
14  * Ethereal - Network traffic analyzer
15  * By Gerald Combs <gerald@ethereal.com>
16  * Copyright 1998 Gerald Combs
17  *
18  * This program is free software; you can redistribute it and/or
19  * modify it under the terms of the GNU General Public License
20  * as published by the Free Software Foundation; either version 2
21  * of the License, or (at your option) any later version.
22  *
23  * This program is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26  * GNU General Public License for more details.
27  *
28  * You should have received a copy of the GNU General Public License
29  * along with this program; if not, write to the Free Software
30  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
31  */
32
33 #ifdef HAVE_CONFIG_H
34 # include "config.h"
35 #endif
36
37 #include <glib.h>
38 #include <epan/packet.h>
39 #include <epan/conversation.h>
40
41 #include <stdio.h>
42 #include <string.h>
43
44 #include "packet-ber.h"
45 #include "packet-acse.h"
46 #include "packet-ros.h"
47
48 #include "packet-x509af.h"
49 #include "packet-x411.h"
50
51 #include "packet-x420.h"
52
53 #define PNAME  "X.420 OSI Information Object"
54 #define PSNAME "X420"
55 #define PFNAME "x420"
56
57 /* Initialize the protocol and registered fields */
58 int proto_x420 = -1;
59
60 static char object_identifier_id[BER_MAX_OID_STR_LEN]; /* content type identifier */
61
62
63 /*--- Included file: packet-x420-hf.c ---*/
64
65 static int hf_x420_OriginatingUA_PDU = -1;        /* OriginatingUA */
66 static int hf_x420_ipm = -1;                      /* IPM */
67 static int hf_x420_ipn = -1;                      /* IPN */
68 static int hf_x420_heading = -1;                  /* Heading */
69 static int hf_x420_body = -1;                     /* Body */
70 static int hf_x420_type = -1;                     /* T_type */
71 static int hf_x420_value = -1;                    /* T_value */
72 static int hf_x420_this_IPM = -1;                 /* ThisIPMField */
73 static int hf_x420_originator = -1;               /* OriginatorField */
74 static int hf_x420_authorizing_users = -1;        /* AuthorizingUsersField */
75 static int hf_x420_primary_recipients = -1;       /* PrimaryRecipientsField */
76 static int hf_x420_copy_recipients = -1;          /* CopyRecipientsField */
77 static int hf_x420_blind_copy_recipients = -1;    /* BlindCopyRecipientsField */
78 static int hf_x420_replied_to_IPM = -1;           /* RepliedToIPMField */
79 static int hf_x420_obsoleted_IPMs = -1;           /* ObsoletedIPMsField */
80 static int hf_x420_related_IPMs = -1;             /* RelatedIPMsField */
81 static int hf_x420_subject = -1;                  /* SubjectField */
82 static int hf_x420_expiry_time = -1;              /* ExpiryTimeField */
83 static int hf_x420_reply_time = -1;               /* ReplyTimeField */
84 static int hf_x420_reply_recipients = -1;         /* ReplyRecipientsField */
85 static int hf_x420_importance = -1;               /* ImportanceField */
86 static int hf_x420_sensitivity = -1;              /* SensitivityField */
87 static int hf_x420_auto_forwarded = -1;           /* AutoForwardedField */
88 static int hf_x420_extensions = -1;               /* ExtensionsField */
89 static int hf_x420_user = -1;                     /* ORName */
90 static int hf_x420_user_relative_identifier = -1;  /* LocalIPMIdentifier */
91 static int hf_x420_recipient = -1;                /* ORDescriptor */
92 static int hf_x420_notification_requests = -1;    /* NotificationRequests */
93 static int hf_x420_reply_requested = -1;          /* BOOLEAN */
94 static int hf_x420_recipient_extensions = -1;     /* RecipientExtensionsField */
95 static int hf_x420_formal_name = -1;              /* ORName */
96 static int hf_x420_free_form_name = -1;           /* FreeFormName */
97 static int hf_x420_telephone_number = -1;         /* TelephoneNumber */
98 static int hf_x420_RecipientExtensionsField_item = -1;  /* IPMSExtension */
99 static int hf_x420_AuthorizingUsersField_item = -1;  /* AuthorizingUsersSubfield */
100 static int hf_x420_PrimaryRecipientsField_item = -1;  /* PrimaryRecipientsSubfield */
101 static int hf_x420_CopyRecipientsField_item = -1;  /* CopyRecipientsSubfield */
102 static int hf_x420_BlindCopyRecipientsField_item = -1;  /* BlindCopyRecipientsSubfield */
103 static int hf_x420_ObsoletedIPMsField_item = -1;  /* ObsoletedIPMsSubfield */
104 static int hf_x420_RelatedIPMsField_item = -1;    /* RelatedIPMsSubfield */
105 static int hf_x420_ReplyRecipientsField_item = -1;  /* ReplyRecipientsSubfield */
106 static int hf_x420_ExtensionsField_item = -1;     /* IPMSExtension */
107 static int hf_x420_Body_item = -1;                /* BodyPart */
108 static int hf_x420_ia5_text = -1;                 /* IA5TextBodyPart */
109 static int hf_x420_g3_facsimile = -1;             /* G3FacsimileBodyPart */
110 static int hf_x420_g4_class1 = -1;                /* G4Class1BodyPart */
111 static int hf_x420_teletex = -1;                  /* TeletexBodyPart */
112 static int hf_x420_videotex = -1;                 /* VideotexBodyPart */
113 static int hf_x420_encrypted = -1;                /* EncryptedBodyPart */
114 static int hf_x420_message = -1;                  /* MessageBodyPart */
115 static int hf_x420_mixed_mode = -1;               /* MixedModeBodyPart */
116 static int hf_x420_bilaterally_defined = -1;      /* BilaterallyDefinedBodyPart */
117 static int hf_x420_nationally_defined = -1;       /* NationallyDefinedBodyPart */
118 static int hf_x420_extended = -1;                 /* ExtendedBodyPart */
119 static int hf_x420_extended_parameters = -1;      /* EXTERNAL */
120 static int hf_x420_extended_data = -1;            /* EXTERNAL */
121 static int hf_x420_ia5text_parameters = -1;       /* IA5TextParameters */
122 static int hf_x420_ia5text_data = -1;             /* IA5TextData */
123 static int hf_x420_repertoire = -1;               /* Repertoire */
124 static int hf_x420_g3facsimile_parameters = -1;   /* G3FacsimileParameters */
125 static int hf_x420_g3facsimile_data = -1;         /* G3FacsimileData */
126 static int hf_x420_number_of_pages = -1;          /* INTEGER */
127 static int hf_x420_g3facsimile_non_basic_parameters = -1;  /* G3FacsimileNonBasicParameters */
128 static int hf_x420_G3FacsimileData_item = -1;     /* BIT_STRING */
129 static int hf_x420_G4Class1BodyPart_item = -1;    /* Interchange_Data_Element */
130 static int hf_x420_MixedModeBodyPart_item = -1;   /* Interchange_Data_Element */
131 static int hf_x420_teletex_parameters = -1;       /* TeletexParameters */
132 static int hf_x420_teletex_data = -1;             /* TeletexData */
133 static int hf_x420_telex_compatible = -1;         /* BOOLEAN */
134 static int hf_x420_teletex_non_basic_parameters = -1;  /* TeletexNonBasicParameters */
135 static int hf_x420_TeletexData_item = -1;         /* TeletexString */
136 static int hf_x420_videotex_parameters = -1;      /* VideotexParameters */
137 static int hf_x420_videotex_data = -1;            /* VideotexData */
138 static int hf_x420_syntax = -1;                   /* VideotexSyntax */
139 static int hf_x420_encrypted_parameters = -1;     /* EncryptedParameters */
140 static int hf_x420_encrypted_data = -1;           /* EncryptedData */
141 static int hf_x420_algorithm_identifier = -1;     /* AlgorithmIdentifier */
142 static int hf_x420_originator_certificates = -1;  /* ExtendedCertificates */
143 static int hf_x420_message_parameters = -1;       /* MessageParameters */
144 static int hf_x420_message_data = -1;             /* MessageData */
145 static int hf_x420_delivery_time = -1;            /* MessageDeliveryTime */
146 static int hf_x420_delivery_envelope = -1;        /* OtherMessageDeliveryFields */
147 static int hf_x420_subject_ipm = -1;              /* SubjectIPMField */
148 static int hf_x420_ipn_originator = -1;           /* IPNOriginatorField */
149 static int hf_x420_ipm_intended_recipient = -1;   /* IPMIntendedRecipientField */
150 static int hf_x420_conversion_eits = -1;          /* ConversionEITsField */
151 static int hf_x420_notification_extensions = -1;  /* NotificationExtensionsField */
152 static int hf_x420_choice = -1;                   /* T_choice */
153 static int hf_x420_non_receipt_fields = -1;       /* NonReceiptFields */
154 static int hf_x420_receipt_fields = -1;           /* ReceiptFields */
155 static int hf_x420_other_notification_type_fields = -1;  /* OtherNotificationTypeFields */
156 static int hf_x420_non_receipt_reason = -1;       /* NonReceiptReasonField */
157 static int hf_x420_discard_reason = -1;           /* DiscardReasonField */
158 static int hf_x420_auto_forward_comment = -1;     /* AutoForwardCommentField */
159 static int hf_x420_returned_ipm = -1;             /* ReturnedIPMField */
160 static int hf_x420_nrn_extensions = -1;           /* NRNExtensionsField */
161 static int hf_x420_receipt_time = -1;             /* ReceiptTimeField */
162 static int hf_x420_acknowledgment_mode = -1;      /* AcknowledgmentModeField */
163 static int hf_x420_suppl_receipt_info = -1;       /* SupplReceiptInfoField */
164 static int hf_x420_rn_extensions = -1;            /* RNExtensionsField */
165 static int hf_x420_NotificationExtensionsField_item = -1;  /* IPMSExtension */
166 static int hf_x420_NRNExtensionsField_item = -1;  /* IPMSExtension */
167 static int hf_x420_RNExtensionsField_item = -1;   /* IPMSExtension */
168 static int hf_x420_OtherNotificationTypeFields_item = -1;  /* IPMSExtension */
169 static int hf_x420_advice = -1;                   /* BodyPart */
170 static int hf_x420_next_available = -1;           /* Time */
171 static int hf_x420_new_address = -1;              /* ORDescriptor */
172 static int hf_x420_effective_from = -1;           /* Time */
173 static int hf_x420_assembly_instructions = -1;    /* BodyPartReferences */
174 static int hf_x420_BodyPartReferences_item = -1;  /* BodyPartReference */
175 static int hf_x420_stored_entry = -1;             /* SequenceNumber */
176 static int hf_x420_stored_content = -1;           /* SequenceNumber */
177 static int hf_x420_submitted_body_part = -1;      /* INTEGER_1_MAX */
178 static int hf_x420_stored_body_part = -1;         /* T_stored_body_part */
179 static int hf_x420_message_entry = -1;            /* SequenceNumber */
180 static int hf_x420_body_part_number = -1;         /* INTEGER_1_MAX */
181 /* named bits */
182 static int hf_x420_NotificationRequests_rn = -1;
183 static int hf_x420_NotificationRequests_nrn = -1;
184 static int hf_x420_NotificationRequests_ipm_return = -1;
185 static int hf_x420_NotificationRequests_an_supported = -1;
186 static int hf_x420_NotificationRequests_suppress_an = -1;
187
188 /*--- End of included file: packet-x420-hf.c ---*/
189
190
191 /* Initialize the subtree pointers */
192 static gint ett_x420 = -1;
193
194 /*--- Included file: packet-x420-ett.c ---*/
195
196 static gint ett_x420_InformationObject = -1;
197 static gint ett_x420_IPM = -1;
198 static gint ett_x420_IPMSExtension = -1;
199 static gint ett_x420_Heading = -1;
200 static gint ett_x420_IPMIdentifier = -1;
201 static gint ett_x420_RecipientSpecifier = -1;
202 static gint ett_x420_ORDescriptor = -1;
203 static gint ett_x420_NotificationRequests = -1;
204 static gint ett_x420_RecipientExtensionsField = -1;
205 static gint ett_x420_AuthorizingUsersField = -1;
206 static gint ett_x420_PrimaryRecipientsField = -1;
207 static gint ett_x420_CopyRecipientsField = -1;
208 static gint ett_x420_BlindCopyRecipientsField = -1;
209 static gint ett_x420_ObsoletedIPMsField = -1;
210 static gint ett_x420_RelatedIPMsField = -1;
211 static gint ett_x420_ReplyRecipientsField = -1;
212 static gint ett_x420_ExtensionsField = -1;
213 static gint ett_x420_Body = -1;
214 static gint ett_x420_BodyPart = -1;
215 static gint ett_x420_ExtendedBodyPart = -1;
216 static gint ett_x420_IA5TextBodyPart = -1;
217 static gint ett_x420_IA5TextParameters = -1;
218 static gint ett_x420_G3FacsimileBodyPart = -1;
219 static gint ett_x420_G3FacsimileParameters = -1;
220 static gint ett_x420_G3FacsimileData = -1;
221 static gint ett_x420_G4Class1BodyPart = -1;
222 static gint ett_x420_MixedModeBodyPart = -1;
223 static gint ett_x420_TeletexBodyPart = -1;
224 static gint ett_x420_TeletexParameters = -1;
225 static gint ett_x420_TeletexData = -1;
226 static gint ett_x420_VideotexBodyPart = -1;
227 static gint ett_x420_VideotexParameters = -1;
228 static gint ett_x420_EncryptedBodyPart = -1;
229 static gint ett_x420_EncryptedParameters = -1;
230 static gint ett_x420_MessageBodyPart = -1;
231 static gint ett_x420_MessageParameters = -1;
232 static gint ett_x420_IPN = -1;
233 static gint ett_x420_T_choice = -1;
234 static gint ett_x420_CommonFields = -1;
235 static gint ett_x420_NonReceiptFields = -1;
236 static gint ett_x420_ReceiptFields = -1;
237 static gint ett_x420_NotificationExtensionsField = -1;
238 static gint ett_x420_NRNExtensionsField = -1;
239 static gint ett_x420_RNExtensionsField = -1;
240 static gint ett_x420_OtherNotificationTypeFields = -1;
241 static gint ett_x420_AbsenceAdvice = -1;
242 static gint ett_x420_ChangeOfAddressAdvice = -1;
243 static gint ett_x420_IPMAssemblyInstructions = -1;
244 static gint ett_x420_BodyPartReferences = -1;
245 static gint ett_x420_BodyPartReference = -1;
246 static gint ett_x420_T_stored_body_part = -1;
247
248 /*--- End of included file: packet-x420-ett.c ---*/
249
250
251
252 /*--- Included file: packet-x420-fn.c ---*/
253
254 /*--- Cyclic dependencies ---*/
255
256 /* IPM -> Body -> BodyPart -> MessageBodyPart -> MessageData -> IPM */
257 static int dissect_x420_IPM(gboolean implicit_tag, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int hf_index);
258
259 static int dissect_ipm_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
260   return dissect_x420_IPM(TRUE, tvb, offset, pinfo, tree, hf_x420_ipm);
261 }
262
263
264 /*--- Fields for imported types ---*/
265
266 static int dissect_user(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
267   return dissect_x411_ORName(FALSE, tvb, offset, pinfo, tree, hf_x420_user);
268 }
269 static int dissect_formal_name(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
270   return dissect_x411_ORName(FALSE, tvb, offset, pinfo, tree, hf_x420_formal_name);
271 }
272 static int dissect_extended_parameters_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
273   return dissect_acse_EXTERNAL(TRUE, tvb, offset, pinfo, tree, hf_x420_extended_parameters);
274 }
275 static int dissect_extended_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
276   return dissect_acse_EXTERNAL(FALSE, tvb, offset, pinfo, tree, hf_x420_extended_data);
277 }
278 static int dissect_g3facsimile_non_basic_parameters_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
279   return dissect_x411_G3FacsimileNonBasicParameters(TRUE, tvb, offset, pinfo, tree, hf_x420_g3facsimile_non_basic_parameters);
280 }
281 static int dissect_teletex_non_basic_parameters_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
282   return dissect_x411_TeletexNonBasicParameters(TRUE, tvb, offset, pinfo, tree, hf_x420_teletex_non_basic_parameters);
283 }
284 static int dissect_algorithm_identifier(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
285   return dissect_x509af_AlgorithmIdentifier(FALSE, tvb, offset, pinfo, tree, hf_x420_algorithm_identifier);
286 }
287 static int dissect_originator_certificates(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
288   return dissect_x411_ExtendedCertificates(FALSE, tvb, offset, pinfo, tree, hf_x420_originator_certificates);
289 }
290 static int dissect_delivery_time_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
291   return dissect_x411_MessageDeliveryTime(TRUE, tvb, offset, pinfo, tree, hf_x420_delivery_time);
292 }
293 static int dissect_delivery_envelope_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
294   return dissect_x411_OtherMessageDeliveryFields(TRUE, tvb, offset, pinfo, tree, hf_x420_delivery_envelope);
295 }
296
297
298
299 static int
300 dissect_x420_Time(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
301   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTCTime,
302                                             pinfo, tree, tvb, offset, hf_index,
303                                             NULL);
304
305   return offset;
306 }
307 static int dissect_next_available(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
308   return dissect_x420_Time(FALSE, tvb, offset, pinfo, tree, hf_x420_next_available);
309 }
310 static int dissect_effective_from_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
311   return dissect_x420_Time(TRUE, tvb, offset, pinfo, tree, hf_x420_effective_from);
312 }
313
314
315
316 static int
317 dissect_x420_LocalIPMIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
318   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
319                                             pinfo, tree, tvb, offset, hf_index,
320                                             NULL);
321
322   return offset;
323 }
324 static int dissect_user_relative_identifier(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
325   return dissect_x420_LocalIPMIdentifier(FALSE, tvb, offset, pinfo, tree, hf_x420_user_relative_identifier);
326 }
327
328
329 static const ber_sequence_t IPMIdentifier_set[] = {
330   { BER_CLASS_APP, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_user },
331   { BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_user_relative_identifier },
332   { 0, 0, 0, NULL }
333 };
334
335 static int
336 dissect_x420_IPMIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
337   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
338                               IPMIdentifier_set, hf_index, ett_x420_IPMIdentifier);
339
340   return offset;
341 }
342
343
344
345 static int
346 dissect_x420_ThisIPMField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
347   offset = dissect_x420_IPMIdentifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
348
349   return offset;
350 }
351 static int dissect_this_IPM(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
352   return dissect_x420_ThisIPMField(FALSE, tvb, offset, pinfo, tree, hf_x420_this_IPM);
353 }
354
355
356
357 static int
358 dissect_x420_FreeFormName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
359   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_TeletexString,
360                                             pinfo, tree, tvb, offset, hf_index,
361                                             NULL);
362
363   return offset;
364 }
365 static int dissect_free_form_name_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
366   return dissect_x420_FreeFormName(TRUE, tvb, offset, pinfo, tree, hf_x420_free_form_name);
367 }
368
369
370
371 static int
372 dissect_x420_TelephoneNumber(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
373   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
374                                             pinfo, tree, tvb, offset, hf_index,
375                                             NULL);
376
377   return offset;
378 }
379 static int dissect_telephone_number_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
380   return dissect_x420_TelephoneNumber(TRUE, tvb, offset, pinfo, tree, hf_x420_telephone_number);
381 }
382
383
384 static const ber_sequence_t ORDescriptor_set[] = {
385   { BER_CLASS_APP, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_formal_name },
386   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_free_form_name_impl },
387   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_telephone_number_impl },
388   { 0, 0, 0, NULL }
389 };
390
391 int
392 dissect_x420_ORDescriptor(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
393   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
394                               ORDescriptor_set, hf_index, ett_x420_ORDescriptor);
395
396   return offset;
397 }
398 static int dissect_recipient_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
399   return dissect_x420_ORDescriptor(TRUE, tvb, offset, pinfo, tree, hf_x420_recipient);
400 }
401 static int dissect_new_address_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
402   return dissect_x420_ORDescriptor(TRUE, tvb, offset, pinfo, tree, hf_x420_new_address);
403 }
404
405
406
407 static int
408 dissect_x420_OriginatorField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
409   offset = dissect_x420_ORDescriptor(implicit_tag, tvb, offset, pinfo, tree, hf_index);
410
411   return offset;
412 }
413 static int dissect_originator_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
414   return dissect_x420_OriginatorField(TRUE, tvb, offset, pinfo, tree, hf_x420_originator);
415 }
416
417
418
419 static int
420 dissect_x420_AuthorizingUsersSubfield(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
421   offset = dissect_x420_ORDescriptor(implicit_tag, tvb, offset, pinfo, tree, hf_index);
422
423   return offset;
424 }
425 static int dissect_AuthorizingUsersField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
426   return dissect_x420_AuthorizingUsersSubfield(FALSE, tvb, offset, pinfo, tree, hf_x420_AuthorizingUsersField_item);
427 }
428
429
430 static const ber_sequence_t AuthorizingUsersField_sequence_of[1] = {
431   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_AuthorizingUsersField_item },
432 };
433
434 static int
435 dissect_x420_AuthorizingUsersField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
436   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
437                                       AuthorizingUsersField_sequence_of, hf_index, ett_x420_AuthorizingUsersField);
438
439   return offset;
440 }
441 static int dissect_authorizing_users_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
442   return dissect_x420_AuthorizingUsersField(TRUE, tvb, offset, pinfo, tree, hf_x420_authorizing_users);
443 }
444
445
446 static const asn_namedbit NotificationRequests_bits[] = {
447   {  0, &hf_x420_NotificationRequests_rn, -1, -1, "rn", NULL },
448   {  1, &hf_x420_NotificationRequests_nrn, -1, -1, "nrn", NULL },
449   {  2, &hf_x420_NotificationRequests_ipm_return, -1, -1, "ipm-return", NULL },
450   {  3, &hf_x420_NotificationRequests_an_supported, -1, -1, "an-supported", NULL },
451   {  4, &hf_x420_NotificationRequests_suppress_an, -1, -1, "suppress-an", NULL },
452   { 0, NULL, 0, 0, NULL, NULL }
453 };
454
455 static int
456 dissect_x420_NotificationRequests(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
457   offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
458                                     NotificationRequests_bits, hf_index, ett_x420_NotificationRequests,
459                                     NULL);
460
461   return offset;
462 }
463 static int dissect_notification_requests_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
464   return dissect_x420_NotificationRequests(TRUE, tvb, offset, pinfo, tree, hf_x420_notification_requests);
465 }
466
467
468
469 static int
470 dissect_x420_BOOLEAN(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
471   offset = dissect_ber_boolean(implicit_tag, pinfo, tree, tvb, offset, hf_index);
472
473   return offset;
474 }
475 static int dissect_reply_requested_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
476   return dissect_x420_BOOLEAN(TRUE, tvb, offset, pinfo, tree, hf_x420_reply_requested);
477 }
478 static int dissect_telex_compatible_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
479   return dissect_x420_BOOLEAN(TRUE, tvb, offset, pinfo, tree, hf_x420_telex_compatible);
480 }
481
482
483
484 static int
485 dissect_x420_T_type(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
486
487   offset = dissect_ber_object_identifier(implicit_tag, pinfo, tree, tvb, offset, hf_index,
488                                             object_identifier_id);
489
490
491   return offset;
492 }
493 static int dissect_type(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
494   return dissect_x420_T_type(FALSE, tvb, offset, pinfo, tree, hf_x420_type);
495 }
496
497
498
499 static int
500 dissect_x420_T_value(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
501
502   offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
503
504
505   return offset;
506 }
507 static int dissect_value(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
508   return dissect_x420_T_value(FALSE, tvb, offset, pinfo, tree, hf_x420_value);
509 }
510
511
512 static const ber_sequence_t IPMSExtension_sequence[] = {
513   { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_type },
514   { BER_CLASS_ANY, 0, BER_FLAGS_NOOWNTAG, dissect_value },
515   { 0, 0, 0, NULL }
516 };
517
518 static int
519 dissect_x420_IPMSExtension(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
520   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
521                                    IPMSExtension_sequence, hf_index, ett_x420_IPMSExtension);
522
523   return offset;
524 }
525 static int dissect_RecipientExtensionsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
526   return dissect_x420_IPMSExtension(FALSE, tvb, offset, pinfo, tree, hf_x420_RecipientExtensionsField_item);
527 }
528 static int dissect_ExtensionsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
529   return dissect_x420_IPMSExtension(FALSE, tvb, offset, pinfo, tree, hf_x420_ExtensionsField_item);
530 }
531 static int dissect_NotificationExtensionsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
532   return dissect_x420_IPMSExtension(FALSE, tvb, offset, pinfo, tree, hf_x420_NotificationExtensionsField_item);
533 }
534 static int dissect_NRNExtensionsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
535   return dissect_x420_IPMSExtension(FALSE, tvb, offset, pinfo, tree, hf_x420_NRNExtensionsField_item);
536 }
537 static int dissect_RNExtensionsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
538   return dissect_x420_IPMSExtension(FALSE, tvb, offset, pinfo, tree, hf_x420_RNExtensionsField_item);
539 }
540 static int dissect_OtherNotificationTypeFields_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
541   return dissect_x420_IPMSExtension(FALSE, tvb, offset, pinfo, tree, hf_x420_OtherNotificationTypeFields_item);
542 }
543
544
545 static const ber_sequence_t RecipientExtensionsField_set_of[1] = {
546   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_RecipientExtensionsField_item },
547 };
548
549 static int
550 dissect_x420_RecipientExtensionsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
551   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
552                                  RecipientExtensionsField_set_of, hf_index, ett_x420_RecipientExtensionsField);
553
554   return offset;
555 }
556 static int dissect_recipient_extensions_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
557   return dissect_x420_RecipientExtensionsField(TRUE, tvb, offset, pinfo, tree, hf_x420_recipient_extensions);
558 }
559
560
561 static const ber_sequence_t RecipientSpecifier_set[] = {
562   { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_recipient_impl },
563   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_notification_requests_impl },
564   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_reply_requested_impl },
565   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_recipient_extensions_impl },
566   { 0, 0, 0, NULL }
567 };
568
569 static int
570 dissect_x420_RecipientSpecifier(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
571   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
572                               RecipientSpecifier_set, hf_index, ett_x420_RecipientSpecifier);
573
574   return offset;
575 }
576
577
578
579 static int
580 dissect_x420_PrimaryRecipientsSubfield(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
581   offset = dissect_x420_RecipientSpecifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
582
583   return offset;
584 }
585 static int dissect_PrimaryRecipientsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
586   return dissect_x420_PrimaryRecipientsSubfield(FALSE, tvb, offset, pinfo, tree, hf_x420_PrimaryRecipientsField_item);
587 }
588
589
590 static const ber_sequence_t PrimaryRecipientsField_sequence_of[1] = {
591   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_PrimaryRecipientsField_item },
592 };
593
594 static int
595 dissect_x420_PrimaryRecipientsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
596   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
597                                       PrimaryRecipientsField_sequence_of, hf_index, ett_x420_PrimaryRecipientsField);
598
599   return offset;
600 }
601 static int dissect_primary_recipients_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
602   return dissect_x420_PrimaryRecipientsField(TRUE, tvb, offset, pinfo, tree, hf_x420_primary_recipients);
603 }
604
605
606
607 static int
608 dissect_x420_CopyRecipientsSubfield(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
609   offset = dissect_x420_RecipientSpecifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
610
611   return offset;
612 }
613 static int dissect_CopyRecipientsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
614   return dissect_x420_CopyRecipientsSubfield(FALSE, tvb, offset, pinfo, tree, hf_x420_CopyRecipientsField_item);
615 }
616
617
618 static const ber_sequence_t CopyRecipientsField_sequence_of[1] = {
619   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_CopyRecipientsField_item },
620 };
621
622 static int
623 dissect_x420_CopyRecipientsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
624   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
625                                       CopyRecipientsField_sequence_of, hf_index, ett_x420_CopyRecipientsField);
626
627   return offset;
628 }
629 static int dissect_copy_recipients_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
630   return dissect_x420_CopyRecipientsField(TRUE, tvb, offset, pinfo, tree, hf_x420_copy_recipients);
631 }
632
633
634
635 static int
636 dissect_x420_BlindCopyRecipientsSubfield(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
637   offset = dissect_x420_RecipientSpecifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
638
639   return offset;
640 }
641 static int dissect_BlindCopyRecipientsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
642   return dissect_x420_BlindCopyRecipientsSubfield(FALSE, tvb, offset, pinfo, tree, hf_x420_BlindCopyRecipientsField_item);
643 }
644
645
646 static const ber_sequence_t BlindCopyRecipientsField_sequence_of[1] = {
647   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_BlindCopyRecipientsField_item },
648 };
649
650 static int
651 dissect_x420_BlindCopyRecipientsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
652   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
653                                       BlindCopyRecipientsField_sequence_of, hf_index, ett_x420_BlindCopyRecipientsField);
654
655   return offset;
656 }
657 static int dissect_blind_copy_recipients_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
658   return dissect_x420_BlindCopyRecipientsField(TRUE, tvb, offset, pinfo, tree, hf_x420_blind_copy_recipients);
659 }
660
661
662
663 static int
664 dissect_x420_RepliedToIPMField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
665   offset = dissect_x420_IPMIdentifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
666
667   return offset;
668 }
669 static int dissect_replied_to_IPM_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
670   return dissect_x420_RepliedToIPMField(TRUE, tvb, offset, pinfo, tree, hf_x420_replied_to_IPM);
671 }
672
673
674
675 static int
676 dissect_x420_ObsoletedIPMsSubfield(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
677   offset = dissect_x420_IPMIdentifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
678
679   return offset;
680 }
681 static int dissect_ObsoletedIPMsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
682   return dissect_x420_ObsoletedIPMsSubfield(FALSE, tvb, offset, pinfo, tree, hf_x420_ObsoletedIPMsField_item);
683 }
684
685
686 static const ber_sequence_t ObsoletedIPMsField_sequence_of[1] = {
687   { BER_CLASS_APP, 11, BER_FLAGS_NOOWNTAG, dissect_ObsoletedIPMsField_item },
688 };
689
690 static int
691 dissect_x420_ObsoletedIPMsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
692   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
693                                       ObsoletedIPMsField_sequence_of, hf_index, ett_x420_ObsoletedIPMsField);
694
695   return offset;
696 }
697 static int dissect_obsoleted_IPMs_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
698   return dissect_x420_ObsoletedIPMsField(TRUE, tvb, offset, pinfo, tree, hf_x420_obsoleted_IPMs);
699 }
700
701
702
703 static int
704 dissect_x420_RelatedIPMsSubfield(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
705   offset = dissect_x420_IPMIdentifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
706
707   return offset;
708 }
709 static int dissect_RelatedIPMsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
710   return dissect_x420_RelatedIPMsSubfield(FALSE, tvb, offset, pinfo, tree, hf_x420_RelatedIPMsField_item);
711 }
712
713
714 static const ber_sequence_t RelatedIPMsField_sequence_of[1] = {
715   { BER_CLASS_APP, 11, BER_FLAGS_NOOWNTAG, dissect_RelatedIPMsField_item },
716 };
717
718 static int
719 dissect_x420_RelatedIPMsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
720   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
721                                       RelatedIPMsField_sequence_of, hf_index, ett_x420_RelatedIPMsField);
722
723   return offset;
724 }
725 static int dissect_related_IPMs_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
726   return dissect_x420_RelatedIPMsField(TRUE, tvb, offset, pinfo, tree, hf_x420_related_IPMs);
727 }
728
729
730
731 static int
732 dissect_x420_SubjectField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
733   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_TeletexString,
734                                             pinfo, tree, tvb, offset, hf_index,
735                                             NULL);
736
737   return offset;
738 }
739 static int dissect_subject(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
740   return dissect_x420_SubjectField(FALSE, tvb, offset, pinfo, tree, hf_x420_subject);
741 }
742
743
744
745 static int
746 dissect_x420_ExpiryTimeField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
747   offset = dissect_x420_Time(implicit_tag, tvb, offset, pinfo, tree, hf_index);
748
749   return offset;
750 }
751 static int dissect_expiry_time_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
752   return dissect_x420_ExpiryTimeField(TRUE, tvb, offset, pinfo, tree, hf_x420_expiry_time);
753 }
754
755
756
757 static int
758 dissect_x420_ReplyTimeField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
759   offset = dissect_x420_Time(implicit_tag, tvb, offset, pinfo, tree, hf_index);
760
761   return offset;
762 }
763 static int dissect_reply_time_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
764   return dissect_x420_ReplyTimeField(TRUE, tvb, offset, pinfo, tree, hf_x420_reply_time);
765 }
766
767
768
769 static int
770 dissect_x420_ReplyRecipientsSubfield(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
771   offset = dissect_x420_ORDescriptor(implicit_tag, tvb, offset, pinfo, tree, hf_index);
772
773   return offset;
774 }
775 static int dissect_ReplyRecipientsField_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
776   return dissect_x420_ReplyRecipientsSubfield(FALSE, tvb, offset, pinfo, tree, hf_x420_ReplyRecipientsField_item);
777 }
778
779
780 static const ber_sequence_t ReplyRecipientsField_sequence_of[1] = {
781   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_ReplyRecipientsField_item },
782 };
783
784 static int
785 dissect_x420_ReplyRecipientsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
786   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
787                                       ReplyRecipientsField_sequence_of, hf_index, ett_x420_ReplyRecipientsField);
788
789   return offset;
790 }
791 static int dissect_reply_recipients_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
792   return dissect_x420_ReplyRecipientsField(TRUE, tvb, offset, pinfo, tree, hf_x420_reply_recipients);
793 }
794
795
796 static const value_string x420_ImportanceField_vals[] = {
797   {   0, "low" },
798   {   1, "normal" },
799   {   2, "high" },
800   { 0, NULL }
801 };
802
803
804 static int
805 dissect_x420_ImportanceField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
806   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
807                                   NULL);
808
809   return offset;
810 }
811 static int dissect_importance_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
812   return dissect_x420_ImportanceField(TRUE, tvb, offset, pinfo, tree, hf_x420_importance);
813 }
814
815
816 static const value_string x420_SensitivityField_vals[] = {
817   {   1, "personal" },
818   {   2, "private" },
819   {   3, "company-confidential" },
820   { 0, NULL }
821 };
822
823
824 static int
825 dissect_x420_SensitivityField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
826   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
827                                   NULL);
828
829   return offset;
830 }
831 static int dissect_sensitivity_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
832   return dissect_x420_SensitivityField(TRUE, tvb, offset, pinfo, tree, hf_x420_sensitivity);
833 }
834
835
836
837 static int
838 dissect_x420_AutoForwardedField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
839   offset = dissect_ber_boolean(implicit_tag, pinfo, tree, tvb, offset, hf_index);
840
841   return offset;
842 }
843 static int dissect_auto_forwarded_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
844   return dissect_x420_AutoForwardedField(TRUE, tvb, offset, pinfo, tree, hf_x420_auto_forwarded);
845 }
846
847
848 static const ber_sequence_t ExtensionsField_set_of[1] = {
849   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ExtensionsField_item },
850 };
851
852 static int
853 dissect_x420_ExtensionsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
854   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
855                                  ExtensionsField_set_of, hf_index, ett_x420_ExtensionsField);
856
857   return offset;
858 }
859 static int dissect_extensions_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
860   return dissect_x420_ExtensionsField(TRUE, tvb, offset, pinfo, tree, hf_x420_extensions);
861 }
862
863
864 static const ber_sequence_t Heading_set[] = {
865   { BER_CLASS_APP, 11, BER_FLAGS_NOOWNTAG, dissect_this_IPM },
866   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_originator_impl },
867   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_authorizing_users_impl },
868   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_primary_recipients_impl },
869   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_copy_recipients_impl },
870   { BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_blind_copy_recipients_impl },
871   { BER_CLASS_CON, 5, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_replied_to_IPM_impl },
872   { BER_CLASS_CON, 6, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_obsoleted_IPMs_impl },
873   { BER_CLASS_CON, 7, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_related_IPMs_impl },
874   { BER_CLASS_CON, 8, BER_FLAGS_OPTIONAL, dissect_subject },
875   { BER_CLASS_CON, 9, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_expiry_time_impl },
876   { BER_CLASS_CON, 10, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_reply_time_impl },
877   { BER_CLASS_CON, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_reply_recipients_impl },
878   { BER_CLASS_CON, 12, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_importance_impl },
879   { BER_CLASS_CON, 13, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_sensitivity_impl },
880   { BER_CLASS_CON, 14, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_auto_forwarded_impl },
881   { BER_CLASS_CON, 15, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_extensions_impl },
882   { 0, 0, 0, NULL }
883 };
884
885 static int
886 dissect_x420_Heading(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
887   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
888                               Heading_set, hf_index, ett_x420_Heading);
889
890   return offset;
891 }
892 static int dissect_heading(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
893   return dissect_x420_Heading(FALSE, tvb, offset, pinfo, tree, hf_x420_heading);
894 }
895
896
897 static const value_string x420_Repertoire_vals[] = {
898   {   2, "ita2" },
899   {   5, "ia5" },
900   { 0, NULL }
901 };
902
903
904 static int
905 dissect_x420_Repertoire(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
906   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
907                                   NULL);
908
909   return offset;
910 }
911 static int dissect_repertoire_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
912   return dissect_x420_Repertoire(TRUE, tvb, offset, pinfo, tree, hf_x420_repertoire);
913 }
914
915
916 static const ber_sequence_t IA5TextParameters_set[] = {
917   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_repertoire_impl },
918   { 0, 0, 0, NULL }
919 };
920
921 static int
922 dissect_x420_IA5TextParameters(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
923   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
924                               IA5TextParameters_set, hf_index, ett_x420_IA5TextParameters);
925
926   return offset;
927 }
928 static int dissect_ia5text_parameters(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
929   return dissect_x420_IA5TextParameters(FALSE, tvb, offset, pinfo, tree, hf_x420_ia5text_parameters);
930 }
931
932
933
934 static int
935 dissect_x420_IA5TextData(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
936   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
937                                             pinfo, tree, tvb, offset, hf_index,
938                                             NULL);
939
940   return offset;
941 }
942 static int dissect_ia5text_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
943   return dissect_x420_IA5TextData(FALSE, tvb, offset, pinfo, tree, hf_x420_ia5text_data);
944 }
945
946
947 static const ber_sequence_t IA5TextBodyPart_sequence[] = {
948   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_ia5text_parameters },
949   { BER_CLASS_UNI, BER_UNI_TAG_IA5String, BER_FLAGS_NOOWNTAG, dissect_ia5text_data },
950   { 0, 0, 0, NULL }
951 };
952
953 static int
954 dissect_x420_IA5TextBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
955   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
956                                    IA5TextBodyPart_sequence, hf_index, ett_x420_IA5TextBodyPart);
957
958   return offset;
959 }
960 static int dissect_ia5_text_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
961   return dissect_x420_IA5TextBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_ia5_text);
962 }
963
964
965
966 static int
967 dissect_x420_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
968   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
969                                   NULL);
970
971   return offset;
972 }
973 static int dissect_number_of_pages_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
974   return dissect_x420_INTEGER(TRUE, tvb, offset, pinfo, tree, hf_x420_number_of_pages);
975 }
976
977
978 static const ber_sequence_t G3FacsimileParameters_set[] = {
979   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_number_of_pages_impl },
980   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_g3facsimile_non_basic_parameters_impl },
981   { 0, 0, 0, NULL }
982 };
983
984 static int
985 dissect_x420_G3FacsimileParameters(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
986   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
987                               G3FacsimileParameters_set, hf_index, ett_x420_G3FacsimileParameters);
988
989   return offset;
990 }
991 static int dissect_g3facsimile_parameters(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
992   return dissect_x420_G3FacsimileParameters(FALSE, tvb, offset, pinfo, tree, hf_x420_g3facsimile_parameters);
993 }
994
995
996
997 static int
998 dissect_x420_BIT_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
999   offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
1000                                     NULL, hf_index, -1,
1001                                     NULL);
1002
1003   return offset;
1004 }
1005 static int dissect_G3FacsimileData_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1006   return dissect_x420_BIT_STRING(FALSE, tvb, offset, pinfo, tree, hf_x420_G3FacsimileData_item);
1007 }
1008
1009
1010 static const ber_sequence_t G3FacsimileData_sequence_of[1] = {
1011   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_G3FacsimileData_item },
1012 };
1013
1014 static int
1015 dissect_x420_G3FacsimileData(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1016   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
1017                                       G3FacsimileData_sequence_of, hf_index, ett_x420_G3FacsimileData);
1018
1019   return offset;
1020 }
1021 static int dissect_g3facsimile_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1022   return dissect_x420_G3FacsimileData(FALSE, tvb, offset, pinfo, tree, hf_x420_g3facsimile_data);
1023 }
1024
1025
1026 static const ber_sequence_t G3FacsimileBodyPart_sequence[] = {
1027   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_g3facsimile_parameters },
1028   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_g3facsimile_data },
1029   { 0, 0, 0, NULL }
1030 };
1031
1032 static int
1033 dissect_x420_G3FacsimileBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1034   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1035                                    G3FacsimileBodyPart_sequence, hf_index, ett_x420_G3FacsimileBodyPart);
1036
1037   return offset;
1038 }
1039 static int dissect_g3_facsimile_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1040   return dissect_x420_G3FacsimileBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_g3_facsimile);
1041 }
1042
1043
1044
1045 static int
1046 dissect_x420_Interchange_Data_Element(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1047 /* XXX Not implemented yet */
1048
1049
1050   return offset;
1051 }
1052 static int dissect_G4Class1BodyPart_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1053   return dissect_x420_Interchange_Data_Element(FALSE, tvb, offset, pinfo, tree, hf_x420_G4Class1BodyPart_item);
1054 }
1055 static int dissect_MixedModeBodyPart_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1056   return dissect_x420_Interchange_Data_Element(FALSE, tvb, offset, pinfo, tree, hf_x420_MixedModeBodyPart_item);
1057 }
1058
1059
1060 static const ber_sequence_t G4Class1BodyPart_sequence_of[1] = {
1061   { BER_CLASS_ANY, 0, BER_FLAGS_NOOWNTAG, dissect_G4Class1BodyPart_item },
1062 };
1063
1064 static int
1065 dissect_x420_G4Class1BodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1066   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
1067                                       G4Class1BodyPart_sequence_of, hf_index, ett_x420_G4Class1BodyPart);
1068
1069   return offset;
1070 }
1071 static int dissect_g4_class1_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1072   return dissect_x420_G4Class1BodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_g4_class1);
1073 }
1074
1075
1076 static const ber_sequence_t TeletexParameters_set[] = {
1077   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_number_of_pages_impl },
1078   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_telex_compatible_impl },
1079   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_teletex_non_basic_parameters_impl },
1080   { 0, 0, 0, NULL }
1081 };
1082
1083 static int
1084 dissect_x420_TeletexParameters(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1085   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1086                               TeletexParameters_set, hf_index, ett_x420_TeletexParameters);
1087
1088   return offset;
1089 }
1090 static int dissect_teletex_parameters(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1091   return dissect_x420_TeletexParameters(FALSE, tvb, offset, pinfo, tree, hf_x420_teletex_parameters);
1092 }
1093
1094
1095
1096 static int
1097 dissect_x420_TeletexString(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1098   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_TeletexString,
1099                                             pinfo, tree, tvb, offset, hf_index,
1100                                             NULL);
1101
1102   return offset;
1103 }
1104 static int dissect_TeletexData_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1105   return dissect_x420_TeletexString(FALSE, tvb, offset, pinfo, tree, hf_x420_TeletexData_item);
1106 }
1107
1108
1109 static const ber_sequence_t TeletexData_sequence_of[1] = {
1110   { BER_CLASS_UNI, BER_UNI_TAG_TeletexString, BER_FLAGS_NOOWNTAG, dissect_TeletexData_item },
1111 };
1112
1113 static int
1114 dissect_x420_TeletexData(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1115   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
1116                                       TeletexData_sequence_of, hf_index, ett_x420_TeletexData);
1117
1118   return offset;
1119 }
1120 static int dissect_teletex_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1121   return dissect_x420_TeletexData(FALSE, tvb, offset, pinfo, tree, hf_x420_teletex_data);
1122 }
1123
1124
1125 static const ber_sequence_t TeletexBodyPart_sequence[] = {
1126   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_teletex_parameters },
1127   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_teletex_data },
1128   { 0, 0, 0, NULL }
1129 };
1130
1131 static int
1132 dissect_x420_TeletexBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1133   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1134                                    TeletexBodyPart_sequence, hf_index, ett_x420_TeletexBodyPart);
1135
1136   return offset;
1137 }
1138 static int dissect_teletex_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1139   return dissect_x420_TeletexBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_teletex);
1140 }
1141
1142
1143 static const value_string x420_VideotexSyntax_vals[] = {
1144   {   0, "ids" },
1145   {   1, "data-syntax1" },
1146   {   2, "data-syntax2" },
1147   {   3, "data-syntax3" },
1148   { 0, NULL }
1149 };
1150
1151
1152 static int
1153 dissect_x420_VideotexSyntax(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1154   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1155                                   NULL);
1156
1157   return offset;
1158 }
1159 static int dissect_syntax_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1160   return dissect_x420_VideotexSyntax(TRUE, tvb, offset, pinfo, tree, hf_x420_syntax);
1161 }
1162
1163
1164 static const ber_sequence_t VideotexParameters_set[] = {
1165   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_syntax_impl },
1166   { 0, 0, 0, NULL }
1167 };
1168
1169 static int
1170 dissect_x420_VideotexParameters(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1171   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1172                               VideotexParameters_set, hf_index, ett_x420_VideotexParameters);
1173
1174   return offset;
1175 }
1176 static int dissect_videotex_parameters(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1177   return dissect_x420_VideotexParameters(FALSE, tvb, offset, pinfo, tree, hf_x420_videotex_parameters);
1178 }
1179
1180
1181
1182 static int
1183 dissect_x420_VideotexData(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1184   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_VideotexString,
1185                                             pinfo, tree, tvb, offset, hf_index,
1186                                             NULL);
1187
1188   return offset;
1189 }
1190 static int dissect_videotex_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1191   return dissect_x420_VideotexData(FALSE, tvb, offset, pinfo, tree, hf_x420_videotex_data);
1192 }
1193
1194
1195 static const ber_sequence_t VideotexBodyPart_sequence[] = {
1196   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_videotex_parameters },
1197   { BER_CLASS_UNI, BER_UNI_TAG_VideotexString, BER_FLAGS_NOOWNTAG, dissect_videotex_data },
1198   { 0, 0, 0, NULL }
1199 };
1200
1201 static int
1202 dissect_x420_VideotexBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1203   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1204                                    VideotexBodyPart_sequence, hf_index, ett_x420_VideotexBodyPart);
1205
1206   return offset;
1207 }
1208 static int dissect_videotex_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1209   return dissect_x420_VideotexBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_videotex);
1210 }
1211
1212
1213 static const ber_sequence_t EncryptedParameters_set[] = {
1214   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_algorithm_identifier },
1215   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_originator_certificates },
1216   { 0, 0, 0, NULL }
1217 };
1218
1219 static int
1220 dissect_x420_EncryptedParameters(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1221   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1222                               EncryptedParameters_set, hf_index, ett_x420_EncryptedParameters);
1223
1224   return offset;
1225 }
1226 static int dissect_encrypted_parameters(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1227   return dissect_x420_EncryptedParameters(FALSE, tvb, offset, pinfo, tree, hf_x420_encrypted_parameters);
1228 }
1229
1230
1231
1232 static int
1233 dissect_x420_EncryptedData(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1234   offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
1235                                     NULL, hf_index, -1,
1236                                     NULL);
1237
1238   return offset;
1239 }
1240 static int dissect_encrypted_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1241   return dissect_x420_EncryptedData(FALSE, tvb, offset, pinfo, tree, hf_x420_encrypted_data);
1242 }
1243
1244
1245 static const ber_sequence_t EncryptedBodyPart_sequence[] = {
1246   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_encrypted_parameters },
1247   { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_encrypted_data },
1248   { 0, 0, 0, NULL }
1249 };
1250
1251 static int
1252 dissect_x420_EncryptedBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1253   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1254                                    EncryptedBodyPart_sequence, hf_index, ett_x420_EncryptedBodyPart);
1255
1256   return offset;
1257 }
1258 static int dissect_encrypted_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1259   return dissect_x420_EncryptedBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_encrypted);
1260 }
1261
1262
1263 static const ber_sequence_t MessageParameters_set[] = {
1264   { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_delivery_time_impl },
1265   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_delivery_envelope_impl },
1266   { 0, 0, 0, NULL }
1267 };
1268
1269 static int
1270 dissect_x420_MessageParameters(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1271   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1272                               MessageParameters_set, hf_index, ett_x420_MessageParameters);
1273
1274   return offset;
1275 }
1276 static int dissect_message_parameters(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1277   return dissect_x420_MessageParameters(FALSE, tvb, offset, pinfo, tree, hf_x420_message_parameters);
1278 }
1279
1280
1281
1282 static int
1283 dissect_x420_MessageData(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1284   offset = dissect_x420_IPM(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1285
1286   return offset;
1287 }
1288 static int dissect_message_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1289   return dissect_x420_MessageData(FALSE, tvb, offset, pinfo, tree, hf_x420_message_data);
1290 }
1291
1292
1293 static const ber_sequence_t MessageBodyPart_sequence[] = {
1294   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_message_parameters },
1295   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_message_data },
1296   { 0, 0, 0, NULL }
1297 };
1298
1299 static int
1300 dissect_x420_MessageBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1301   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1302                                    MessageBodyPart_sequence, hf_index, ett_x420_MessageBodyPart);
1303
1304   return offset;
1305 }
1306 static int dissect_message_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1307   return dissect_x420_MessageBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_message);
1308 }
1309
1310
1311 static const ber_sequence_t MixedModeBodyPart_sequence_of[1] = {
1312   { BER_CLASS_ANY, 0, BER_FLAGS_NOOWNTAG, dissect_MixedModeBodyPart_item },
1313 };
1314
1315 static int
1316 dissect_x420_MixedModeBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1317   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
1318                                       MixedModeBodyPart_sequence_of, hf_index, ett_x420_MixedModeBodyPart);
1319
1320   return offset;
1321 }
1322 static int dissect_mixed_mode_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1323   return dissect_x420_MixedModeBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_mixed_mode);
1324 }
1325
1326
1327
1328 static int
1329 dissect_x420_BilaterallyDefinedBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1330   offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1331                                        NULL);
1332
1333   return offset;
1334 }
1335 static int dissect_bilaterally_defined_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1336   return dissect_x420_BilaterallyDefinedBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_bilaterally_defined);
1337 }
1338
1339
1340
1341 static int
1342 dissect_x420_NationallyDefinedBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1343 /* XXX Not implemented yet */
1344
1345
1346   return offset;
1347 }
1348 static int dissect_nationally_defined_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1349   return dissect_x420_NationallyDefinedBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_nationally_defined);
1350 }
1351
1352
1353 static const ber_sequence_t ExtendedBodyPart_sequence[] = {
1354   { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_extended_parameters_impl },
1355   { BER_CLASS_UNI, 8, BER_FLAGS_NOOWNTAG, dissect_extended_data },
1356   { 0, 0, 0, NULL }
1357 };
1358
1359 static int
1360 dissect_x420_ExtendedBodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1361   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1362                                    ExtendedBodyPart_sequence, hf_index, ett_x420_ExtendedBodyPart);
1363
1364   return offset;
1365 }
1366 static int dissect_extended_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1367   return dissect_x420_ExtendedBodyPart(TRUE, tvb, offset, pinfo, tree, hf_x420_extended);
1368 }
1369
1370
1371 static const value_string x420_BodyPart_vals[] = {
1372   {   0, "ia5-text" },
1373   {   3, "g3-facsimile" },
1374   {   4, "g4-class1" },
1375   {   5, "teletex" },
1376   {   6, "videotex" },
1377   {   8, "encrypted" },
1378   {   9, "message" },
1379   {  11, "mixed-mode" },
1380   {  14, "bilaterally-defined" },
1381   {   7, "nationally-defined" },
1382   {  15, "extended" },
1383   { 0, NULL }
1384 };
1385
1386 static const ber_choice_t BodyPart_choice[] = {
1387   {   0, BER_CLASS_CON, 0, 0, dissect_ia5_text_impl },
1388   {   3, BER_CLASS_CON, 3, 0, dissect_g3_facsimile_impl },
1389   {   4, BER_CLASS_CON, 4, 0, dissect_g4_class1_impl },
1390   {   5, BER_CLASS_CON, 5, 0, dissect_teletex_impl },
1391   {   6, BER_CLASS_CON, 6, 0, dissect_videotex_impl },
1392   {   8, BER_CLASS_CON, 8, 0, dissect_encrypted_impl },
1393   {   9, BER_CLASS_CON, 9, 0, dissect_message_impl },
1394   {  11, BER_CLASS_CON, 11, 0, dissect_mixed_mode_impl },
1395   {  14, BER_CLASS_CON, 14, 0, dissect_bilaterally_defined_impl },
1396   {   7, BER_CLASS_CON, 7, 0, dissect_nationally_defined_impl },
1397   {  15, BER_CLASS_CON, 15, 0, dissect_extended_impl },
1398   { 0, 0, 0, 0, NULL }
1399 };
1400
1401 static int
1402 dissect_x420_BodyPart(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1403   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1404                                  BodyPart_choice, hf_index, ett_x420_BodyPart,
1405                                  NULL);
1406
1407   return offset;
1408 }
1409 static int dissect_Body_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1410   return dissect_x420_BodyPart(FALSE, tvb, offset, pinfo, tree, hf_x420_Body_item);
1411 }
1412 static int dissect_advice(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1413   return dissect_x420_BodyPart(FALSE, tvb, offset, pinfo, tree, hf_x420_advice);
1414 }
1415
1416
1417 static const ber_sequence_t Body_sequence_of[1] = {
1418   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_Body_item },
1419 };
1420
1421 static int
1422 dissect_x420_Body(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1423   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
1424                                       Body_sequence_of, hf_index, ett_x420_Body);
1425
1426   return offset;
1427 }
1428 static int dissect_body(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1429   return dissect_x420_Body(FALSE, tvb, offset, pinfo, tree, hf_x420_body);
1430 }
1431
1432
1433 static const ber_sequence_t IPM_sequence[] = {
1434   { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_heading },
1435   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_body },
1436   { 0, 0, 0, NULL }
1437 };
1438
1439 static int
1440 dissect_x420_IPM(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1441   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1442                                    IPM_sequence, hf_index, ett_x420_IPM);
1443
1444   return offset;
1445 }
1446
1447
1448
1449 static int
1450 dissect_x420_SubjectIPMField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1451   offset = dissect_x420_IPMIdentifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1452
1453   return offset;
1454 }
1455 static int dissect_subject_ipm(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1456   return dissect_x420_SubjectIPMField(FALSE, tvb, offset, pinfo, tree, hf_x420_subject_ipm);
1457 }
1458
1459
1460
1461 static int
1462 dissect_x420_IPNOriginatorField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1463   offset = dissect_x420_ORDescriptor(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1464
1465   return offset;
1466 }
1467 static int dissect_ipn_originator_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1468   return dissect_x420_IPNOriginatorField(TRUE, tvb, offset, pinfo, tree, hf_x420_ipn_originator);
1469 }
1470
1471
1472
1473 static int
1474 dissect_x420_IPMIntendedRecipientField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1475   offset = dissect_x420_ORDescriptor(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1476
1477   return offset;
1478 }
1479 static int dissect_ipm_intended_recipient_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1480   return dissect_x420_IPMIntendedRecipientField(TRUE, tvb, offset, pinfo, tree, hf_x420_ipm_intended_recipient);
1481 }
1482
1483
1484
1485 static int
1486 dissect_x420_ConversionEITsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1487   offset = dissect_x411_EncodedInformationTypes(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1488
1489   return offset;
1490 }
1491 static int dissect_conversion_eits(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1492   return dissect_x420_ConversionEITsField(FALSE, tvb, offset, pinfo, tree, hf_x420_conversion_eits);
1493 }
1494
1495
1496 static const ber_sequence_t NotificationExtensionsField_set_of[1] = {
1497   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_NotificationExtensionsField_item },
1498 };
1499
1500 static int
1501 dissect_x420_NotificationExtensionsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1502   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
1503                                  NotificationExtensionsField_set_of, hf_index, ett_x420_NotificationExtensionsField);
1504
1505   return offset;
1506 }
1507 static int dissect_notification_extensions_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1508   return dissect_x420_NotificationExtensionsField(TRUE, tvb, offset, pinfo, tree, hf_x420_notification_extensions);
1509 }
1510
1511
1512 static const value_string x420_NonReceiptReasonField_vals[] = {
1513   {   0, "ipm-discarded" },
1514   {   1, "ipm-auto-forwarded" },
1515   { 0, NULL }
1516 };
1517
1518
1519 static int
1520 dissect_x420_NonReceiptReasonField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1521   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1522                                   NULL);
1523
1524   return offset;
1525 }
1526 static int dissect_non_receipt_reason_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1527   return dissect_x420_NonReceiptReasonField(TRUE, tvb, offset, pinfo, tree, hf_x420_non_receipt_reason);
1528 }
1529
1530
1531 static const value_string x420_DiscardReasonField_vals[] = {
1532   {   0, "ipm-expired" },
1533   {   1, "ipm-obsoleted" },
1534   {   2, "user-subscription-terminated" },
1535   {   3, "not-used" },
1536   { 0, NULL }
1537 };
1538
1539
1540 static int
1541 dissect_x420_DiscardReasonField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1542   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1543                                   NULL);
1544
1545   return offset;
1546 }
1547 static int dissect_discard_reason_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1548   return dissect_x420_DiscardReasonField(TRUE, tvb, offset, pinfo, tree, hf_x420_discard_reason);
1549 }
1550
1551
1552
1553 static int
1554 dissect_x420_AutoForwardComment(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1555   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
1556                                             pinfo, tree, tvb, offset, hf_index,
1557                                             NULL);
1558
1559   return offset;
1560 }
1561
1562
1563
1564 static int
1565 dissect_x420_AutoForwardCommentField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1566   offset = dissect_x420_AutoForwardComment(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1567
1568   return offset;
1569 }
1570 static int dissect_auto_forward_comment_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1571   return dissect_x420_AutoForwardCommentField(TRUE, tvb, offset, pinfo, tree, hf_x420_auto_forward_comment);
1572 }
1573
1574
1575
1576 static int
1577 dissect_x420_ReturnedIPMField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1578   offset = dissect_x420_IPM(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1579
1580   return offset;
1581 }
1582 static int dissect_returned_ipm_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1583   return dissect_x420_ReturnedIPMField(TRUE, tvb, offset, pinfo, tree, hf_x420_returned_ipm);
1584 }
1585
1586
1587 static const ber_sequence_t NRNExtensionsField_set_of[1] = {
1588   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_NRNExtensionsField_item },
1589 };
1590
1591 static int
1592 dissect_x420_NRNExtensionsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1593   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
1594                                  NRNExtensionsField_set_of, hf_index, ett_x420_NRNExtensionsField);
1595
1596   return offset;
1597 }
1598 static int dissect_nrn_extensions_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1599   return dissect_x420_NRNExtensionsField(TRUE, tvb, offset, pinfo, tree, hf_x420_nrn_extensions);
1600 }
1601
1602
1603 static const ber_sequence_t NonReceiptFields_set[] = {
1604   { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_non_receipt_reason_impl },
1605   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_discard_reason_impl },
1606   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_auto_forward_comment_impl },
1607   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_returned_ipm_impl },
1608   { BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_nrn_extensions_impl },
1609   { 0, 0, 0, NULL }
1610 };
1611
1612 static int
1613 dissect_x420_NonReceiptFields(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1614   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1615                               NonReceiptFields_set, hf_index, ett_x420_NonReceiptFields);
1616
1617   return offset;
1618 }
1619 static int dissect_non_receipt_fields_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1620   return dissect_x420_NonReceiptFields(TRUE, tvb, offset, pinfo, tree, hf_x420_non_receipt_fields);
1621 }
1622
1623
1624
1625 static int
1626 dissect_x420_ReceiptTimeField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1627   offset = dissect_x420_Time(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1628
1629   return offset;
1630 }
1631 static int dissect_receipt_time_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1632   return dissect_x420_ReceiptTimeField(TRUE, tvb, offset, pinfo, tree, hf_x420_receipt_time);
1633 }
1634
1635
1636 static const value_string x420_AcknowledgmentModeField_vals[] = {
1637   {   0, "manual" },
1638   {   1, "automatic" },
1639   { 0, NULL }
1640 };
1641
1642
1643 static int
1644 dissect_x420_AcknowledgmentModeField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1645   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1646                                   NULL);
1647
1648   return offset;
1649 }
1650 static int dissect_acknowledgment_mode_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1651   return dissect_x420_AcknowledgmentModeField(TRUE, tvb, offset, pinfo, tree, hf_x420_acknowledgment_mode);
1652 }
1653
1654
1655
1656 static int
1657 dissect_x420_SupplReceiptInfoField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1658   offset = dissect_x411_SupplementaryInformation(implicit_tag, tvb, offset, pinfo, tree, hf_index);
1659
1660   return offset;
1661 }
1662 static int dissect_suppl_receipt_info_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1663   return dissect_x420_SupplReceiptInfoField(TRUE, tvb, offset, pinfo, tree, hf_x420_suppl_receipt_info);
1664 }
1665
1666
1667 static const ber_sequence_t RNExtensionsField_set_of[1] = {
1668   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_RNExtensionsField_item },
1669 };
1670
1671 static int
1672 dissect_x420_RNExtensionsField(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1673   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
1674                                  RNExtensionsField_set_of, hf_index, ett_x420_RNExtensionsField);
1675
1676   return offset;
1677 }
1678 static int dissect_rn_extensions_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1679   return dissect_x420_RNExtensionsField(TRUE, tvb, offset, pinfo, tree, hf_x420_rn_extensions);
1680 }
1681
1682
1683 static const ber_sequence_t ReceiptFields_set[] = {
1684   { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_receipt_time_impl },
1685   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_acknowledgment_mode_impl },
1686   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_suppl_receipt_info_impl },
1687   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_rn_extensions_impl },
1688   { 0, 0, 0, NULL }
1689 };
1690
1691 static int
1692 dissect_x420_ReceiptFields(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1693   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1694                               ReceiptFields_set, hf_index, ett_x420_ReceiptFields);
1695
1696   return offset;
1697 }
1698 static int dissect_receipt_fields_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1699   return dissect_x420_ReceiptFields(TRUE, tvb, offset, pinfo, tree, hf_x420_receipt_fields);
1700 }
1701
1702
1703 static const ber_sequence_t OtherNotificationTypeFields_set_of[1] = {
1704   { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_OtherNotificationTypeFields_item },
1705 };
1706
1707 static int
1708 dissect_x420_OtherNotificationTypeFields(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1709   offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
1710                                  OtherNotificationTypeFields_set_of, hf_index, ett_x420_OtherNotificationTypeFields);
1711
1712   return offset;
1713 }
1714 static int dissect_other_notification_type_fields_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1715   return dissect_x420_OtherNotificationTypeFields(TRUE, tvb, offset, pinfo, tree, hf_x420_other_notification_type_fields);
1716 }
1717
1718
1719 static const value_string x420_T_choice_vals[] = {
1720   {   0, "non-receipt-fields" },
1721   {   1, "receipt-fields" },
1722   {   2, "other-notification-type-fields" },
1723   { 0, NULL }
1724 };
1725
1726 static const ber_choice_t T_choice_choice[] = {
1727   {   0, BER_CLASS_CON, 0, 0, dissect_non_receipt_fields_impl },
1728   {   1, BER_CLASS_CON, 1, 0, dissect_receipt_fields_impl },
1729   {   2, BER_CLASS_CON, 2, 0, dissect_other_notification_type_fields_impl },
1730   { 0, 0, 0, 0, NULL }
1731 };
1732
1733 static int
1734 dissect_x420_T_choice(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1735   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1736                                  T_choice_choice, hf_index, ett_x420_T_choice,
1737                                  NULL);
1738
1739   return offset;
1740 }
1741 static int dissect_choice_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1742   return dissect_x420_T_choice(TRUE, tvb, offset, pinfo, tree, hf_x420_choice);
1743 }
1744
1745
1746 static const ber_sequence_t IPN_set[] = {
1747   { BER_CLASS_APP, 11, BER_FLAGS_NOOWNTAG, dissect_subject_ipm },
1748   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_ipn_originator_impl },
1749   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_ipm_intended_recipient_impl },
1750   { BER_CLASS_APP, 5, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_conversion_eits },
1751   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_notification_extensions_impl },
1752   { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_choice_impl },
1753   { 0, 0, 0, NULL }
1754 };
1755
1756 static int
1757 dissect_x420_IPN(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1758   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1759                               IPN_set, hf_index, ett_x420_IPN);
1760
1761   return offset;
1762 }
1763 static int dissect_ipn_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1764   return dissect_x420_IPN(TRUE, tvb, offset, pinfo, tree, hf_x420_ipn);
1765 }
1766
1767
1768 static const value_string x420_InformationObject_vals[] = {
1769   {   0, "ipm" },
1770   {   1, "ipn" },
1771   { 0, NULL }
1772 };
1773
1774 static const ber_choice_t InformationObject_choice[] = {
1775   {   0, BER_CLASS_CON, 0, 0, dissect_ipm_impl },
1776   {   1, BER_CLASS_CON, 1, 0, dissect_ipn_impl },
1777   { 0, 0, 0, 0, NULL }
1778 };
1779
1780 static int
1781 dissect_x420_InformationObject(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1782   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1783                                  InformationObject_choice, hf_index, ett_x420_InformationObject,
1784                                  NULL);
1785
1786   return offset;
1787 }
1788
1789
1790 static const ber_sequence_t CommonFields_set[] = {
1791   { BER_CLASS_APP, 11, BER_FLAGS_NOOWNTAG, dissect_subject_ipm },
1792   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_ipn_originator_impl },
1793   { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_ipm_intended_recipient_impl },
1794   { BER_CLASS_APP, 5, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_conversion_eits },
1795   { BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_notification_extensions_impl },
1796   { 0, 0, 0, NULL }
1797 };
1798
1799 static int
1800 dissect_x420_CommonFields(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1801   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1802                               CommonFields_set, hf_index, ett_x420_CommonFields);
1803
1804   return offset;
1805 }
1806
1807
1808 static const ber_sequence_t AbsenceAdvice_sequence[] = {
1809   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_advice },
1810   { BER_CLASS_UNI, BER_UNI_TAG_UTCTime, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_next_available },
1811   { 0, 0, 0, NULL }
1812 };
1813
1814 static int
1815 dissect_x420_AbsenceAdvice(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1816   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1817                                    AbsenceAdvice_sequence, hf_index, ett_x420_AbsenceAdvice);
1818
1819   return offset;
1820 }
1821
1822
1823 static const ber_sequence_t ChangeOfAddressAdvice_sequence[] = {
1824   { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_new_address_impl },
1825   { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_effective_from_impl },
1826   { 0, 0, 0, NULL }
1827 };
1828
1829 static int
1830 dissect_x420_ChangeOfAddressAdvice(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1831   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1832                                    ChangeOfAddressAdvice_sequence, hf_index, ett_x420_ChangeOfAddressAdvice);
1833
1834   return offset;
1835 }
1836
1837
1838
1839 static int
1840 dissect_x420_SequenceNumber(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1841   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1842                                   NULL);
1843
1844   return offset;
1845 }
1846 static int dissect_stored_entry_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1847   return dissect_x420_SequenceNumber(TRUE, tvb, offset, pinfo, tree, hf_x420_stored_entry);
1848 }
1849 static int dissect_stored_content_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1850   return dissect_x420_SequenceNumber(TRUE, tvb, offset, pinfo, tree, hf_x420_stored_content);
1851 }
1852 static int dissect_message_entry(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1853   return dissect_x420_SequenceNumber(FALSE, tvb, offset, pinfo, tree, hf_x420_message_entry);
1854 }
1855
1856
1857
1858 static int
1859 dissect_x420_INTEGER_1_MAX(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1860   offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
1861                                   NULL);
1862
1863   return offset;
1864 }
1865 static int dissect_submitted_body_part_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1866   return dissect_x420_INTEGER_1_MAX(TRUE, tvb, offset, pinfo, tree, hf_x420_submitted_body_part);
1867 }
1868 static int dissect_body_part_number(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1869   return dissect_x420_INTEGER_1_MAX(FALSE, tvb, offset, pinfo, tree, hf_x420_body_part_number);
1870 }
1871
1872
1873 static const ber_sequence_t T_stored_body_part_sequence[] = {
1874   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_message_entry },
1875   { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_body_part_number },
1876   { 0, 0, 0, NULL }
1877 };
1878
1879 static int
1880 dissect_x420_T_stored_body_part(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1881   offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
1882                                    T_stored_body_part_sequence, hf_index, ett_x420_T_stored_body_part);
1883
1884   return offset;
1885 }
1886 static int dissect_stored_body_part_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1887   return dissect_x420_T_stored_body_part(TRUE, tvb, offset, pinfo, tree, hf_x420_stored_body_part);
1888 }
1889
1890
1891 static const value_string x420_BodyPartReference_vals[] = {
1892   {   0, "stored-entry" },
1893   {   1, "stored-content" },
1894   {   2, "submitted-body-part" },
1895   {   3, "stored-body-part" },
1896   { 0, NULL }
1897 };
1898
1899 static const ber_choice_t BodyPartReference_choice[] = {
1900   {   0, BER_CLASS_CON, 0, 0, dissect_stored_entry_impl },
1901   {   1, BER_CLASS_CON, 1, 0, dissect_stored_content_impl },
1902   {   2, BER_CLASS_CON, 2, 0, dissect_submitted_body_part_impl },
1903   {   3, BER_CLASS_CON, 3, 0, dissect_stored_body_part_impl },
1904   { 0, 0, 0, 0, NULL }
1905 };
1906
1907 static int
1908 dissect_x420_BodyPartReference(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1909   offset = dissect_ber_choice(pinfo, tree, tvb, offset,
1910                                  BodyPartReference_choice, hf_index, ett_x420_BodyPartReference,
1911                                  NULL);
1912
1913   return offset;
1914 }
1915 static int dissect_BodyPartReferences_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1916   return dissect_x420_BodyPartReference(FALSE, tvb, offset, pinfo, tree, hf_x420_BodyPartReferences_item);
1917 }
1918
1919
1920 static const ber_sequence_t BodyPartReferences_sequence_of[1] = {
1921   { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_BodyPartReferences_item },
1922 };
1923
1924 static int
1925 dissect_x420_BodyPartReferences(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1926   offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
1927                                       BodyPartReferences_sequence_of, hf_index, ett_x420_BodyPartReferences);
1928
1929   return offset;
1930 }
1931 static int dissect_assembly_instructions_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
1932   return dissect_x420_BodyPartReferences(TRUE, tvb, offset, pinfo, tree, hf_x420_assembly_instructions);
1933 }
1934
1935
1936 static const ber_sequence_t IPMAssemblyInstructions_set[] = {
1937   { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_assembly_instructions_impl },
1938   { 0, 0, 0, NULL }
1939 };
1940
1941 static int
1942 dissect_x420_IPMAssemblyInstructions(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1943   offset = dissect_ber_set(implicit_tag, pinfo, tree, tvb, offset,
1944                               IPMAssemblyInstructions_set, hf_index, ett_x420_IPMAssemblyInstructions);
1945
1946   return offset;
1947 }
1948
1949
1950
1951 static int
1952 dissect_x420_OriginatingUA(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
1953   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
1954                                             pinfo, tree, tvb, offset, hf_index,
1955                                             NULL);
1956
1957   return offset;
1958 }
1959
1960 /*--- PDUs ---*/
1961
1962 static void dissect_OriginatingUA_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
1963   dissect_x420_OriginatingUA(FALSE, tvb, 0, pinfo, tree, hf_x420_OriginatingUA_PDU);
1964 }
1965
1966
1967 /*--- End of included file: packet-x420-fn.c ---*/
1968
1969
1970 /*
1971 * Dissect X420 PDUs inside a PPDU.
1972 */
1973 static void
1974 dissect_x420(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
1975 {
1976         int offset = 0;
1977         proto_item *item=NULL;
1978         proto_tree *tree=NULL;
1979         int (*x420_dissector)(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) = NULL;
1980
1981         if(parent_tree){
1982                 item = proto_tree_add_item(parent_tree, proto_x420, tvb, 0, -1, FALSE);
1983                 tree = proto_item_add_subtree(item, ett_x420);
1984         }
1985         if (check_col(pinfo->cinfo, COL_PROTOCOL))
1986                 col_set_str(pinfo->cinfo, COL_PROTOCOL, "X420");
1987         if (check_col(pinfo->cinfo, COL_INFO))
1988           col_add_str(pinfo->cinfo, COL_INFO, "Interpersonal Message");
1989
1990         dissect_x420_InformationObject(TRUE, tvb, offset, pinfo , tree, -1);
1991 }
1992
1993
1994 /*--- proto_register_x420 -------------------------------------------*/
1995 void proto_register_x420(void) {
1996
1997   /* List of fields */
1998   static hf_register_info hf[] =
1999   {
2000
2001 /*--- Included file: packet-x420-hfarr.c ---*/
2002
2003     { &hf_x420_OriginatingUA_PDU,
2004       { "OriginatingUA", "x420.OriginatingUA",
2005         FT_STRING, BASE_NONE, NULL, 0,
2006         "OriginatingUA", HFILL }},
2007     { &hf_x420_ipm,
2008       { "ipm", "x420.ipm",
2009         FT_NONE, BASE_NONE, NULL, 0,
2010         "InformationObject/ipm", HFILL }},
2011     { &hf_x420_ipn,
2012       { "ipn", "x420.ipn",
2013         FT_NONE, BASE_NONE, NULL, 0,
2014         "InformationObject/ipn", HFILL }},
2015     { &hf_x420_heading,
2016       { "heading", "x420.heading",
2017         FT_NONE, BASE_NONE, NULL, 0,
2018         "IPM/heading", HFILL }},
2019     { &hf_x420_body,
2020       { "body", "x420.body",
2021         FT_UINT32, BASE_DEC, NULL, 0,
2022         "IPM/body", HFILL }},
2023     { &hf_x420_type,
2024       { "type", "x420.type",
2025         FT_STRING, BASE_NONE, NULL, 0,
2026         "IPMSExtension/type", HFILL }},
2027     { &hf_x420_value,
2028       { "value", "x420.value",
2029         FT_NONE, BASE_NONE, NULL, 0,
2030         "IPMSExtension/value", HFILL }},
2031     { &hf_x420_this_IPM,
2032       { "this-IPM", "x420.this_IPM",
2033         FT_NONE, BASE_NONE, NULL, 0,
2034         "Heading/this-IPM", HFILL }},
2035     { &hf_x420_originator,
2036       { "originator", "x420.originator",
2037         FT_NONE, BASE_NONE, NULL, 0,
2038         "Heading/originator", HFILL }},
2039     { &hf_x420_authorizing_users,
2040       { "authorizing-users", "x420.authorizing_users",
2041         FT_UINT32, BASE_DEC, NULL, 0,
2042         "Heading/authorizing-users", HFILL }},
2043     { &hf_x420_primary_recipients,
2044       { "primary-recipients", "x420.primary_recipients",
2045         FT_UINT32, BASE_DEC, NULL, 0,
2046         "Heading/primary-recipients", HFILL }},
2047     { &hf_x420_copy_recipients,
2048       { "copy-recipients", "x420.copy_recipients",
2049         FT_UINT32, BASE_DEC, NULL, 0,
2050         "Heading/copy-recipients", HFILL }},
2051     { &hf_x420_blind_copy_recipients,
2052       { "blind-copy-recipients", "x420.blind_copy_recipients",
2053         FT_UINT32, BASE_DEC, NULL, 0,
2054         "Heading/blind-copy-recipients", HFILL }},
2055     { &hf_x420_replied_to_IPM,
2056       { "replied-to-IPM", "x420.replied_to_IPM",
2057         FT_NONE, BASE_NONE, NULL, 0,
2058         "Heading/replied-to-IPM", HFILL }},
2059     { &hf_x420_obsoleted_IPMs,
2060       { "obsoleted-IPMs", "x420.obsoleted_IPMs",
2061         FT_UINT32, BASE_DEC, NULL, 0,
2062         "Heading/obsoleted-IPMs", HFILL }},
2063     { &hf_x420_related_IPMs,
2064       { "related-IPMs", "x420.related_IPMs",
2065         FT_UINT32, BASE_DEC, NULL, 0,
2066         "Heading/related-IPMs", HFILL }},
2067     { &hf_x420_subject,
2068       { "subject", "x420.subject",
2069         FT_STRING, BASE_NONE, NULL, 0,
2070         "Heading/subject", HFILL }},
2071     { &hf_x420_expiry_time,
2072       { "expiry-time", "x420.expiry_time",
2073         FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
2074         "Heading/expiry-time", HFILL }},
2075     { &hf_x420_reply_time,
2076       { "reply-time", "x420.reply_time",
2077         FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
2078         "Heading/reply-time", HFILL }},
2079     { &hf_x420_reply_recipients,
2080       { "reply-recipients", "x420.reply_recipients",
2081         FT_UINT32, BASE_DEC, NULL, 0,
2082         "Heading/reply-recipients", HFILL }},
2083     { &hf_x420_importance,
2084       { "importance", "x420.importance",
2085         FT_UINT32, BASE_DEC, VALS(x420_ImportanceField_vals), 0,
2086         "Heading/importance", HFILL }},
2087     { &hf_x420_sensitivity,
2088       { "sensitivity", "x420.sensitivity",
2089         FT_UINT32, BASE_DEC, VALS(x420_SensitivityField_vals), 0,
2090         "Heading/sensitivity", HFILL }},
2091     { &hf_x420_auto_forwarded,
2092       { "auto-forwarded", "x420.auto_forwarded",
2093         FT_BOOLEAN, 8, NULL, 0,
2094         "Heading/auto-forwarded", HFILL }},
2095     { &hf_x420_extensions,
2096       { "extensions", "x420.extensions",
2097         FT_UINT32, BASE_DEC, NULL, 0,
2098         "Heading/extensions", HFILL }},
2099     { &hf_x420_user,
2100       { "user", "x420.user",
2101         FT_NONE, BASE_NONE, NULL, 0,
2102         "IPMIdentifier/user", HFILL }},
2103     { &hf_x420_user_relative_identifier,
2104       { "user-relative-identifier", "x420.user_relative_identifier",
2105         FT_STRING, BASE_NONE, NULL, 0,
2106         "IPMIdentifier/user-relative-identifier", HFILL }},
2107     { &hf_x420_recipient,
2108       { "recipient", "x420.recipient",
2109         FT_NONE, BASE_NONE, NULL, 0,
2110         "RecipientSpecifier/recipient", HFILL }},
2111     { &hf_x420_notification_requests,
2112       { "notification-requests", "x420.notification_requests",
2113         FT_BYTES, BASE_HEX, NULL, 0,
2114         "RecipientSpecifier/notification-requests", HFILL }},
2115     { &hf_x420_reply_requested,
2116       { "reply-requested", "x420.reply_requested",
2117         FT_BOOLEAN, 8, NULL, 0,
2118         "RecipientSpecifier/reply-requested", HFILL }},
2119     { &hf_x420_recipient_extensions,
2120       { "recipient-extensions", "x420.recipient_extensions",
2121         FT_UINT32, BASE_DEC, NULL, 0,
2122         "RecipientSpecifier/recipient-extensions", HFILL }},
2123     { &hf_x420_formal_name,
2124       { "formal-name", "x420.formal_name",
2125         FT_NONE, BASE_NONE, NULL, 0,
2126         "ORDescriptor/formal-name", HFILL }},
2127     { &hf_x420_free_form_name,
2128       { "free-form-name", "x420.free_form_name",
2129         FT_STRING, BASE_NONE, NULL, 0,
2130         "ORDescriptor/free-form-name", HFILL }},
2131     { &hf_x420_telephone_number,
2132       { "telephone-number", "x420.telephone_number",
2133         FT_STRING, BASE_NONE, NULL, 0,
2134         "ORDescriptor/telephone-number", HFILL }},
2135     { &hf_x420_RecipientExtensionsField_item,
2136       { "Item", "x420.RecipientExtensionsField_item",
2137         FT_NONE, BASE_NONE, NULL, 0,
2138         "RecipientExtensionsField/_item", HFILL }},
2139     { &hf_x420_AuthorizingUsersField_item,
2140       { "Item", "x420.AuthorizingUsersField_item",
2141         FT_NONE, BASE_NONE, NULL, 0,
2142         "AuthorizingUsersField/_item", HFILL }},
2143     { &hf_x420_PrimaryRecipientsField_item,
2144       { "Item", "x420.PrimaryRecipientsField_item",
2145         FT_NONE, BASE_NONE, NULL, 0,
2146         "PrimaryRecipientsField/_item", HFILL }},
2147     { &hf_x420_CopyRecipientsField_item,
2148       { "Item", "x420.CopyRecipientsField_item",
2149         FT_NONE, BASE_NONE, NULL, 0,
2150         "CopyRecipientsField/_item", HFILL }},
2151     { &hf_x420_BlindCopyRecipientsField_item,
2152       { "Item", "x420.BlindCopyRecipientsField_item",
2153         FT_NONE, BASE_NONE, NULL, 0,
2154         "BlindCopyRecipientsField/_item", HFILL }},
2155     { &hf_x420_ObsoletedIPMsField_item,
2156       { "Item", "x420.ObsoletedIPMsField_item",
2157         FT_NONE, BASE_NONE, NULL, 0,
2158         "ObsoletedIPMsField/_item", HFILL }},
2159     { &hf_x420_RelatedIPMsField_item,
2160       { "Item", "x420.RelatedIPMsField_item",
2161         FT_NONE, BASE_NONE, NULL, 0,
2162         "RelatedIPMsField/_item", HFILL }},
2163     { &hf_x420_ReplyRecipientsField_item,
2164       { "Item", "x420.ReplyRecipientsField_item",
2165         FT_NONE, BASE_NONE, NULL, 0,
2166         "ReplyRecipientsField/_item", HFILL }},
2167     { &hf_x420_ExtensionsField_item,
2168       { "Item", "x420.ExtensionsField_item",
2169         FT_NONE, BASE_NONE, NULL, 0,
2170         "ExtensionsField/_item", HFILL }},
2171     { &hf_x420_Body_item,
2172       { "Item", "x420.Body_item",
2173         FT_UINT32, BASE_DEC, VALS(x420_BodyPart_vals), 0,
2174         "Body/_item", HFILL }},
2175     { &hf_x420_ia5_text,
2176       { "ia5-text", "x420.ia5_text",
2177         FT_NONE, BASE_NONE, NULL, 0,
2178         "BodyPart/ia5-text", HFILL }},
2179     { &hf_x420_g3_facsimile,
2180       { "g3-facsimile", "x420.g3_facsimile",
2181         FT_NONE, BASE_NONE, NULL, 0,
2182         "BodyPart/g3-facsimile", HFILL }},
2183     { &hf_x420_g4_class1,
2184       { "g4-class1", "x420.g4_class1",
2185         FT_UINT32, BASE_DEC, NULL, 0,
2186         "BodyPart/g4-class1", HFILL }},
2187     { &hf_x420_teletex,
2188       { "teletex", "x420.teletex",
2189         FT_NONE, BASE_NONE, NULL, 0,
2190         "BodyPart/teletex", HFILL }},
2191     { &hf_x420_videotex,
2192       { "videotex", "x420.videotex",
2193         FT_NONE, BASE_NONE, NULL, 0,
2194         "BodyPart/videotex", HFILL }},
2195     { &hf_x420_encrypted,
2196       { "encrypted", "x420.encrypted",
2197         FT_NONE, BASE_NONE, NULL, 0,
2198         "BodyPart/encrypted", HFILL }},
2199     { &hf_x420_message,
2200       { "message", "x420.message",
2201         FT_NONE, BASE_NONE, NULL, 0,
2202         "BodyPart/message", HFILL }},
2203     { &hf_x420_mixed_mode,
2204       { "mixed-mode", "x420.mixed_mode",
2205         FT_UINT32, BASE_DEC, NULL, 0,
2206         "BodyPart/mixed-mode", HFILL }},
2207     { &hf_x420_bilaterally_defined,
2208       { "bilaterally-defined", "x420.bilaterally_defined",
2209         FT_BYTES, BASE_HEX, NULL, 0,
2210         "BodyPart/bilaterally-defined", HFILL }},
2211     { &hf_x420_nationally_defined,
2212       { "nationally-defined", "x420.nationally_defined",
2213         FT_NONE, BASE_NONE, NULL, 0,
2214         "BodyPart/nationally-defined", HFILL }},
2215     { &hf_x420_extended,
2216       { "extended", "x420.extended",
2217         FT_NONE, BASE_NONE, NULL, 0,
2218         "BodyPart/extended", HFILL }},
2219     { &hf_x420_extended_parameters,
2220       { "parameters", "x420.parameters",
2221         FT_NONE, BASE_NONE, NULL, 0,
2222         "ExtendedBodyPart/parameters", HFILL }},
2223     { &hf_x420_extended_data,
2224       { "data", "x420.data",
2225         FT_NONE, BASE_NONE, NULL, 0,
2226         "ExtendedBodyPart/data", HFILL }},
2227     { &hf_x420_ia5text_parameters,
2228       { "parameters", "x420.parameters",
2229         FT_NONE, BASE_NONE, NULL, 0,
2230         "IA5TextBodyPart/parameters", HFILL }},
2231     { &hf_x420_ia5text_data,
2232       { "data", "x420.data",
2233         FT_STRING, BASE_NONE, NULL, 0,
2234         "IA5TextBodyPart/data", HFILL }},
2235     { &hf_x420_repertoire,
2236       { "repertoire", "x420.repertoire",
2237         FT_UINT32, BASE_DEC, VALS(x420_Repertoire_vals), 0,
2238         "IA5TextParameters/repertoire", HFILL }},
2239     { &hf_x420_g3facsimile_parameters,
2240       { "parameters", "x420.parameters",
2241         FT_NONE, BASE_NONE, NULL, 0,
2242         "G3FacsimileBodyPart/parameters", HFILL }},
2243     { &hf_x420_g3facsimile_data,
2244       { "data", "x420.data",
2245         FT_UINT32, BASE_DEC, NULL, 0,
2246         "G3FacsimileBodyPart/data", HFILL }},
2247     { &hf_x420_number_of_pages,
2248       { "number-of-pages", "x420.number_of_pages",
2249         FT_INT32, BASE_DEC, NULL, 0,
2250         "", HFILL }},
2251     { &hf_x420_g3facsimile_non_basic_parameters,
2252       { "non-basic-parameters", "x420.non_basic_parameters",
2253         FT_BYTES, BASE_HEX, NULL, 0,
2254         "G3FacsimileParameters/non-basic-parameters", HFILL }},
2255     { &hf_x420_G3FacsimileData_item,
2256       { "Item", "x420.G3FacsimileData_item",
2257         FT_BYTES, BASE_HEX, NULL, 0,
2258         "G3FacsimileData/_item", HFILL }},
2259     { &hf_x420_G4Class1BodyPart_item,
2260       { "Item", "x420.G4Class1BodyPart_item",
2261         FT_NONE, BASE_NONE, NULL, 0,
2262         "G4Class1BodyPart/_item", HFILL }},
2263     { &hf_x420_MixedModeBodyPart_item,
2264       { "Item", "x420.MixedModeBodyPart_item",
2265         FT_NONE, BASE_NONE, NULL, 0,
2266         "MixedModeBodyPart/_item", HFILL }},
2267     { &hf_x420_teletex_parameters,
2268       { "parameters", "x420.parameters",
2269         FT_NONE, BASE_NONE, NULL, 0,
2270         "TeletexBodyPart/parameters", HFILL }},
2271     { &hf_x420_teletex_data,
2272       { "data", "x420.data",
2273         FT_UINT32, BASE_DEC, NULL, 0,
2274         "TeletexBodyPart/data", HFILL }},
2275     { &hf_x420_telex_compatible,
2276       { "telex-compatible", "x420.telex_compatible",
2277         FT_BOOLEAN, 8, NULL, 0,
2278         "TeletexParameters/telex-compatible", HFILL }},
2279     { &hf_x420_teletex_non_basic_parameters,
2280       { "non-basic-parameters", "x420.non_basic_parameters",
2281         FT_NONE, BASE_NONE, NULL, 0,
2282         "TeletexParameters/non-basic-parameters", HFILL }},
2283     { &hf_x420_TeletexData_item,
2284       { "Item", "x420.TeletexData_item",
2285         FT_STRING, BASE_NONE, NULL, 0,
2286         "TeletexData/_item", HFILL }},
2287     { &hf_x420_videotex_parameters,
2288       { "parameters", "x420.parameters",
2289         FT_NONE, BASE_NONE, NULL, 0,
2290         "VideotexBodyPart/parameters", HFILL }},
2291     { &hf_x420_videotex_data,
2292       { "data", "x420.data",
2293         FT_STRING, BASE_NONE, NULL, 0,
2294         "VideotexBodyPart/data", HFILL }},
2295     { &hf_x420_syntax,
2296       { "syntax", "x420.syntax",
2297         FT_INT32, BASE_DEC, VALS(x420_VideotexSyntax_vals), 0,
2298         "VideotexParameters/syntax", HFILL }},
2299     { &hf_x420_encrypted_parameters,
2300       { "parameters", "x420.parameters",
2301         FT_NONE, BASE_NONE, NULL, 0,
2302         "EncryptedBodyPart/parameters", HFILL }},
2303     { &hf_x420_encrypted_data,
2304       { "data", "x420.data",
2305         FT_BYTES, BASE_HEX, NULL, 0,
2306         "EncryptedBodyPart/data", HFILL }},
2307     { &hf_x420_algorithm_identifier,
2308       { "algorithm-identifier", "x420.algorithm_identifier",
2309         FT_NONE, BASE_NONE, NULL, 0,
2310         "EncryptedParameters/algorithm-identifier", HFILL }},
2311     { &hf_x420_originator_certificates,
2312       { "originator-certificates", "x420.originator_certificates",
2313         FT_UINT32, BASE_DEC, NULL, 0,
2314         "EncryptedParameters/originator-certificates", HFILL }},
2315     { &hf_x420_message_parameters,
2316       { "parameters", "x420.parameters",
2317         FT_NONE, BASE_NONE, NULL, 0,
2318         "MessageBodyPart/parameters", HFILL }},
2319     { &hf_x420_message_data,
2320       { "data", "x420.data",
2321         FT_NONE, BASE_NONE, NULL, 0,
2322         "MessageBodyPart/data", HFILL }},
2323     { &hf_x420_delivery_time,
2324       { "delivery-time", "x420.delivery_time",
2325         FT_STRING, BASE_NONE, NULL, 0,
2326         "MessageParameters/delivery-time", HFILL }},
2327     { &hf_x420_delivery_envelope,
2328       { "delivery-envelope", "x420.delivery_envelope",
2329         FT_NONE, BASE_NONE, NULL, 0,
2330         "MessageParameters/delivery-envelope", HFILL }},
2331     { &hf_x420_subject_ipm,
2332       { "subject-ipm", "x420.subject_ipm",
2333         FT_NONE, BASE_NONE, NULL, 0,
2334         "", HFILL }},
2335     { &hf_x420_ipn_originator,
2336       { "ipn-originator", "x420.ipn_originator",
2337         FT_NONE, BASE_NONE, NULL, 0,
2338         "", HFILL }},
2339     { &hf_x420_ipm_intended_recipient,
2340       { "ipm-intended-recipient", "x420.ipm_intended_recipient",
2341         FT_NONE, BASE_NONE, NULL, 0,
2342         "", HFILL }},
2343     { &hf_x420_conversion_eits,
2344       { "conversion-eits", "x420.conversion_eits",
2345         FT_NONE, BASE_NONE, NULL, 0,
2346         "", HFILL }},
2347     { &hf_x420_notification_extensions,
2348       { "notification-extensions", "x420.notification_extensions",
2349         FT_UINT32, BASE_DEC, NULL, 0,
2350         "", HFILL }},
2351     { &hf_x420_choice,
2352       { "choice", "x420.choice",
2353         FT_UINT32, BASE_DEC, VALS(x420_T_choice_vals), 0,
2354         "IPN/choice", HFILL }},
2355     { &hf_x420_non_receipt_fields,
2356       { "non-receipt-fields", "x420.non_receipt_fields",
2357         FT_NONE, BASE_NONE, NULL, 0,
2358         "IPN/choice/non-receipt-fields", HFILL }},
2359     { &hf_x420_receipt_fields,
2360       { "receipt-fields", "x420.receipt_fields",
2361         FT_NONE, BASE_NONE, NULL, 0,
2362         "IPN/choice/receipt-fields", HFILL }},
2363     { &hf_x420_other_notification_type_fields,
2364       { "other-notification-type-fields", "x420.other_notification_type_fields",
2365         FT_UINT32, BASE_DEC, NULL, 0,
2366         "IPN/choice/other-notification-type-fields", HFILL }},
2367     { &hf_x420_non_receipt_reason,
2368       { "non-receipt-reason", "x420.non_receipt_reason",
2369         FT_UINT32, BASE_DEC, VALS(x420_NonReceiptReasonField_vals), 0,
2370         "NonReceiptFields/non-receipt-reason", HFILL }},
2371     { &hf_x420_discard_reason,
2372       { "discard-reason", "x420.discard_reason",
2373         FT_UINT32, BASE_DEC, VALS(x420_DiscardReasonField_vals), 0,
2374         "NonReceiptFields/discard-reason", HFILL }},
2375     { &hf_x420_auto_forward_comment,
2376       { "auto-forward-comment", "x420.auto_forward_comment",
2377         FT_STRING, BASE_NONE, NULL, 0,
2378         "NonReceiptFields/auto-forward-comment", HFILL }},
2379     { &hf_x420_returned_ipm,
2380       { "returned-ipm", "x420.returned_ipm",
2381         FT_NONE, BASE_NONE, NULL, 0,
2382         "NonReceiptFields/returned-ipm", HFILL }},
2383     { &hf_x420_nrn_extensions,
2384       { "nrn-extensions", "x420.nrn_extensions",
2385         FT_UINT32, BASE_DEC, NULL, 0,
2386         "NonReceiptFields/nrn-extensions", HFILL }},
2387     { &hf_x420_receipt_time,
2388       { "receipt-time", "x420.receipt_time",
2389         FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
2390         "ReceiptFields/receipt-time", HFILL }},
2391     { &hf_x420_acknowledgment_mode,
2392       { "acknowledgment-mode", "x420.acknowledgment_mode",
2393         FT_UINT32, BASE_DEC, VALS(x420_AcknowledgmentModeField_vals), 0,
2394         "ReceiptFields/acknowledgment-mode", HFILL }},
2395     { &hf_x420_suppl_receipt_info,
2396       { "suppl-receipt-info", "x420.suppl_receipt_info",
2397         FT_STRING, BASE_NONE, NULL, 0,
2398         "ReceiptFields/suppl-receipt-info", HFILL }},
2399     { &hf_x420_rn_extensions,
2400       { "rn-extensions", "x420.rn_extensions",
2401         FT_UINT32, BASE_DEC, NULL, 0,
2402         "ReceiptFields/rn-extensions", HFILL }},
2403     { &hf_x420_NotificationExtensionsField_item,
2404       { "Item", "x420.NotificationExtensionsField_item",
2405         FT_NONE, BASE_NONE, NULL, 0,
2406         "NotificationExtensionsField/_item", HFILL }},
2407     { &hf_x420_NRNExtensionsField_item,
2408       { "Item", "x420.NRNExtensionsField_item",
2409         FT_NONE, BASE_NONE, NULL, 0,
2410         "NRNExtensionsField/_item", HFILL }},
2411     { &hf_x420_RNExtensionsField_item,
2412       { "Item", "x420.RNExtensionsField_item",
2413         FT_NONE, BASE_NONE, NULL, 0,
2414         "RNExtensionsField/_item", HFILL }},
2415     { &hf_x420_OtherNotificationTypeFields_item,
2416       { "Item", "x420.OtherNotificationTypeFields_item",
2417         FT_NONE, BASE_NONE, NULL, 0,
2418         "OtherNotificationTypeFields/_item", HFILL }},
2419     { &hf_x420_advice,
2420       { "advice", "x420.advice",
2421         FT_UINT32, BASE_DEC, VALS(x420_BodyPart_vals), 0,
2422         "AbsenceAdvice/advice", HFILL }},
2423     { &hf_x420_next_available,
2424       { "next-available", "x420.next_available",
2425         FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
2426         "AbsenceAdvice/next-available", HFILL }},
2427     { &hf_x420_new_address,
2428       { "new-address", "x420.new_address",
2429         FT_NONE, BASE_NONE, NULL, 0,
2430         "ChangeOfAddressAdvice/new-address", HFILL }},
2431     { &hf_x420_effective_from,
2432       { "effective-from", "x420.effective_from",
2433         FT_UINT32, BASE_DEC, VALS(x509af_Time_vals), 0,
2434         "ChangeOfAddressAdvice/effective-from", HFILL }},
2435     { &hf_x420_assembly_instructions,
2436       { "assembly-instructions", "x420.assembly_instructions",
2437         FT_UINT32, BASE_DEC, NULL, 0,
2438         "IPMAssemblyInstructions/assembly-instructions", HFILL }},
2439     { &hf_x420_BodyPartReferences_item,
2440       { "Item", "x420.BodyPartReferences_item",
2441         FT_UINT32, BASE_DEC, VALS(x420_BodyPartReference_vals), 0,
2442         "BodyPartReferences/_item", HFILL }},
2443     { &hf_x420_stored_entry,
2444       { "stored-entry", "x420.stored_entry",
2445         FT_INT32, BASE_DEC, NULL, 0,
2446         "BodyPartReference/stored-entry", HFILL }},
2447     { &hf_x420_stored_content,
2448       { "stored-content", "x420.stored_content",
2449         FT_INT32, BASE_DEC, NULL, 0,
2450         "BodyPartReference/stored-content", HFILL }},
2451     { &hf_x420_submitted_body_part,
2452       { "submitted-body-part", "x420.submitted_body_part",
2453         FT_UINT32, BASE_DEC, NULL, 0,
2454         "BodyPartReference/submitted-body-part", HFILL }},
2455     { &hf_x420_stored_body_part,
2456       { "stored-body-part", "x420.stored_body_part",
2457         FT_NONE, BASE_NONE, NULL, 0,
2458         "BodyPartReference/stored-body-part", HFILL }},
2459     { &hf_x420_message_entry,
2460       { "message-entry", "x420.message_entry",
2461         FT_INT32, BASE_DEC, NULL, 0,
2462         "BodyPartReference/stored-body-part/message-entry", HFILL }},
2463     { &hf_x420_body_part_number,
2464       { "body-part-number", "x420.body_part_number",
2465         FT_UINT32, BASE_DEC, NULL, 0,
2466         "BodyPartReference/stored-body-part/body-part-number", HFILL }},
2467     { &hf_x420_NotificationRequests_rn,
2468       { "rn", "x420.rn",
2469         FT_BOOLEAN, 8, NULL, 0x80,
2470         "", HFILL }},
2471     { &hf_x420_NotificationRequests_nrn,
2472       { "nrn", "x420.nrn",
2473         FT_BOOLEAN, 8, NULL, 0x40,
2474         "", HFILL }},
2475     { &hf_x420_NotificationRequests_ipm_return,
2476       { "ipm-return", "x420.ipm-return",
2477         FT_BOOLEAN, 8, NULL, 0x20,
2478         "", HFILL }},
2479     { &hf_x420_NotificationRequests_an_supported,
2480       { "an-supported", "x420.an-supported",
2481         FT_BOOLEAN, 8, NULL, 0x10,
2482         "", HFILL }},
2483     { &hf_x420_NotificationRequests_suppress_an,
2484       { "suppress-an", "x420.suppress-an",
2485         FT_BOOLEAN, 8, NULL, 0x08,
2486         "", HFILL }},
2487
2488 /*--- End of included file: packet-x420-hfarr.c ---*/
2489
2490   };
2491
2492   /* List of subtrees */
2493   static gint *ett[] = {
2494     &ett_x420,
2495
2496 /*--- Included file: packet-x420-ettarr.c ---*/
2497
2498     &ett_x420_InformationObject,
2499     &ett_x420_IPM,
2500     &ett_x420_IPMSExtension,
2501     &ett_x420_Heading,
2502     &ett_x420_IPMIdentifier,
2503     &ett_x420_RecipientSpecifier,
2504     &ett_x420_ORDescriptor,
2505     &ett_x420_NotificationRequests,
2506     &ett_x420_RecipientExtensionsField,
2507     &ett_x420_AuthorizingUsersField,
2508     &ett_x420_PrimaryRecipientsField,
2509     &ett_x420_CopyRecipientsField,
2510     &ett_x420_BlindCopyRecipientsField,
2511     &ett_x420_ObsoletedIPMsField,
2512     &ett_x420_RelatedIPMsField,
2513     &ett_x420_ReplyRecipientsField,
2514     &ett_x420_ExtensionsField,
2515     &ett_x420_Body,
2516     &ett_x420_BodyPart,
2517     &ett_x420_ExtendedBodyPart,
2518     &ett_x420_IA5TextBodyPart,
2519     &ett_x420_IA5TextParameters,
2520     &ett_x420_G3FacsimileBodyPart,
2521     &ett_x420_G3FacsimileParameters,
2522     &ett_x420_G3FacsimileData,
2523     &ett_x420_G4Class1BodyPart,
2524     &ett_x420_MixedModeBodyPart,
2525     &ett_x420_TeletexBodyPart,
2526     &ett_x420_TeletexParameters,
2527     &ett_x420_TeletexData,
2528     &ett_x420_VideotexBodyPart,
2529     &ett_x420_VideotexParameters,
2530     &ett_x420_EncryptedBodyPart,
2531     &ett_x420_EncryptedParameters,
2532     &ett_x420_MessageBodyPart,
2533     &ett_x420_MessageParameters,
2534     &ett_x420_IPN,
2535     &ett_x420_T_choice,
2536     &ett_x420_CommonFields,
2537     &ett_x420_NonReceiptFields,
2538     &ett_x420_ReceiptFields,
2539     &ett_x420_NotificationExtensionsField,
2540     &ett_x420_NRNExtensionsField,
2541     &ett_x420_RNExtensionsField,
2542     &ett_x420_OtherNotificationTypeFields,
2543     &ett_x420_AbsenceAdvice,
2544     &ett_x420_ChangeOfAddressAdvice,
2545     &ett_x420_IPMAssemblyInstructions,
2546     &ett_x420_BodyPartReferences,
2547     &ett_x420_BodyPartReference,
2548     &ett_x420_T_stored_body_part,
2549
2550 /*--- End of included file: packet-x420-ettarr.c ---*/
2551
2552   };
2553
2554   /* Register protocol */
2555   proto_x420 = proto_register_protocol(PNAME, PSNAME, PFNAME);
2556   register_dissector("x420", dissect_x420, proto_x420);
2557   /* Register fields and subtrees */
2558   proto_register_field_array(proto_x420, hf, array_length(hf));
2559   proto_register_subtree_array(ett, array_length(ett));
2560
2561 }
2562
2563
2564 /*--- proto_reg_handoff_x420 --- */
2565 void proto_reg_handoff_x420(void) {
2566
2567
2568 /*--- Included file: packet-x420-dis-tab.c ---*/
2569
2570   register_ber_oid_dissector("1.2.826.0.1004.10.1.1", dissect_OriginatingUA_PDU, proto_x420, "nexor-originating-ua");
2571
2572
2573 /*--- End of included file: packet-x420-dis-tab.c ---*/
2574
2575
2576   register_ber_oid_dissector("2.6.1.10.0", dissect_x420, proto_x420, "InterPersonal Message (1984)");
2577   register_ber_oid_dissector("2.6.1.10.1", dissect_x420, proto_x420, "InterPersonal Message (1988)");
2578   register_ber_oid_dissector("1.3.26.0.4406.0.4.1", dissect_x420, proto_x420, "Military Message");
2579
2580 }