1 /* Do not modify this file. */
2 /* It is created automatically by the ASN.1 to Wireshark dissector compiler */
4 /* ../../tools/asn2wrs.py -b -k -p ess -c ess.cnf -s packet-ess-template ExtendedSecurityServices.asn */
6 /* Input file: packet-ess-template.c */
8 #line 1 "packet-ess-template.c"
10 * Routines for RFC2634 Extended Security Services packet dissection
11 * Ronnie Sahlberg 2004
15 * Wireshark - Network traffic analyzer
16 * By Gerald Combs <gerald@wireshark.org>
17 * Copyright 1998 Gerald Combs
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation; either version 2
22 * of the License, or (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39 #include <epan/packet.h>
40 #include <epan/asn1.h>
45 #include "packet-ber.h"
46 #include "packet-ess.h"
47 #include "packet-cms.h"
48 #include "packet-x509ce.h"
49 #include "packet-x509af.h"
51 #define PNAME "Extended Security Services"
55 /* Initialize the protocol and registered fields */
56 static int proto_ess = -1;
57 static int hf_ess_SecurityCategory_type_OID = -1;
59 /*--- Included file: packet-ess-hf.c ---*/
60 #line 1 "packet-ess-hf.c"
61 static int hf_ess_ReceiptRequest_PDU = -1; /* ReceiptRequest */
62 static int hf_ess_ContentIdentifier_PDU = -1; /* ContentIdentifier */
63 static int hf_ess_Receipt_PDU = -1; /* Receipt */
64 static int hf_ess_ContentHints_PDU = -1; /* ContentHints */
65 static int hf_ess_MsgSigDigest_PDU = -1; /* MsgSigDigest */
66 static int hf_ess_ContentReference_PDU = -1; /* ContentReference */
67 static int hf_ess_ESSSecurityLabel_PDU = -1; /* ESSSecurityLabel */
68 static int hf_ess_RestrictiveTag_PDU = -1; /* RestrictiveTag */
69 static int hf_ess_EnumeratedTag_PDU = -1; /* EnumeratedTag */
70 static int hf_ess_PermissiveTag_PDU = -1; /* PermissiveTag */
71 static int hf_ess_InformativeTag_PDU = -1; /* InformativeTag */
72 static int hf_ess_EquivalentLabels_PDU = -1; /* EquivalentLabels */
73 static int hf_ess_MLExpansionHistory_PDU = -1; /* MLExpansionHistory */
74 static int hf_ess_SigningCertificate_PDU = -1; /* SigningCertificate */
75 static int hf_ess_signedContentIdentifier = -1; /* ContentIdentifier */
76 static int hf_ess_receiptsFrom = -1; /* ReceiptsFrom */
77 static int hf_ess_receiptsTo = -1; /* SEQUENCE_OF_GeneralNames */
78 static int hf_ess_receiptsTo_item = -1; /* GeneralNames */
79 static int hf_ess_allOrFirstTier = -1; /* AllOrFirstTier */
80 static int hf_ess_receiptList = -1; /* SEQUENCE_OF_GeneralNames */
81 static int hf_ess_receiptList_item = -1; /* GeneralNames */
82 static int hf_ess_version = -1; /* ESSVersion */
83 static int hf_ess_contentType = -1; /* ContentType */
84 static int hf_ess_originatorSignatureValue = -1; /* OCTET_STRING */
85 static int hf_ess_contentDescription = -1; /* UTF8String */
86 static int hf_ess_security_policy_identifier = -1; /* SecurityPolicyIdentifier */
87 static int hf_ess_security_classification = -1; /* SecurityClassification */
88 static int hf_ess_privacy_mark = -1; /* ESSPrivacyMark */
89 static int hf_ess_security_categories = -1; /* SecurityCategories */
90 static int hf_ess_pString = -1; /* PrintableString */
91 static int hf_ess_utf8String = -1; /* UTF8String */
92 static int hf_ess_SecurityCategories_item = -1; /* SecurityCategory */
93 static int hf_ess_type = -1; /* T_type */
94 static int hf_ess_value = -1; /* T_value */
95 static int hf_ess_tagName = -1; /* OBJECT_IDENTIFIER */
96 static int hf_ess_attributeFlags = -1; /* BIT_STRING */
97 static int hf_ess_attributeList = -1; /* SET_OF_SecurityAttribute */
98 static int hf_ess_attributeList_item = -1; /* SecurityAttribute */
99 static int hf_ess_attributes = -1; /* FreeFormField */
100 static int hf_ess_bitSetAttributes = -1; /* BIT_STRING */
101 static int hf_ess_securityAttributes = -1; /* SET_OF_SecurityAttribute */
102 static int hf_ess_securityAttributes_item = -1; /* SecurityAttribute */
103 static int hf_ess_EquivalentLabels_item = -1; /* ESSSecurityLabel */
104 static int hf_ess_MLExpansionHistory_item = -1; /* MLData */
105 static int hf_ess_mailListIdentifier = -1; /* EntityIdentifier */
106 static int hf_ess_expansionTime = -1; /* GeneralizedTime */
107 static int hf_ess_mlReceiptPolicy = -1; /* MLReceiptPolicy */
108 static int hf_ess_issuerAndSerialNumber = -1; /* IssuerAndSerialNumber */
109 static int hf_ess_subjectKeyIdentifier = -1; /* SubjectKeyIdentifier */
110 static int hf_ess_none = -1; /* NULL */
111 static int hf_ess_insteadOf = -1; /* SEQUENCE_OF_GeneralNames */
112 static int hf_ess_insteadOf_item = -1; /* GeneralNames */
113 static int hf_ess_inAdditionTo = -1; /* SEQUENCE_OF_GeneralNames */
114 static int hf_ess_inAdditionTo_item = -1; /* GeneralNames */
115 static int hf_ess_certs = -1; /* SEQUENCE_OF_ESSCertID */
116 static int hf_ess_certs_item = -1; /* ESSCertID */
117 static int hf_ess_policies = -1; /* SEQUENCE_OF_PolicyInformation */
118 static int hf_ess_policies_item = -1; /* PolicyInformation */
119 static int hf_ess_certHash = -1; /* Hash */
120 static int hf_ess_issuerSerial = -1; /* IssuerSerial */
121 static int hf_ess_issuer = -1; /* GeneralNames */
122 static int hf_ess_serialNumber = -1; /* CertificateSerialNumber */
124 /*--- End of included file: packet-ess-hf.c ---*/
125 #line 51 "packet-ess-template.c"
127 /* Initialize the subtree pointers */
129 /*--- Included file: packet-ess-ett.c ---*/
130 #line 1 "packet-ess-ett.c"
131 static gint ett_ess_ReceiptRequest = -1;
132 static gint ett_ess_SEQUENCE_OF_GeneralNames = -1;
133 static gint ett_ess_ReceiptsFrom = -1;
134 static gint ett_ess_Receipt = -1;
135 static gint ett_ess_ContentHints = -1;
136 static gint ett_ess_ContentReference = -1;
137 static gint ett_ess_ESSSecurityLabel = -1;
138 static gint ett_ess_ESSPrivacyMark = -1;
139 static gint ett_ess_SecurityCategories = -1;
140 static gint ett_ess_SecurityCategory = -1;
141 static gint ett_ess_RestrictiveTag = -1;
142 static gint ett_ess_EnumeratedTag = -1;
143 static gint ett_ess_SET_OF_SecurityAttribute = -1;
144 static gint ett_ess_PermissiveTag = -1;
145 static gint ett_ess_InformativeTag = -1;
146 static gint ett_ess_FreeFormField = -1;
147 static gint ett_ess_EquivalentLabels = -1;
148 static gint ett_ess_MLExpansionHistory = -1;
149 static gint ett_ess_MLData = -1;
150 static gint ett_ess_EntityIdentifier = -1;
151 static gint ett_ess_MLReceiptPolicy = -1;
152 static gint ett_ess_SigningCertificate = -1;
153 static gint ett_ess_SEQUENCE_OF_ESSCertID = -1;
154 static gint ett_ess_SEQUENCE_OF_PolicyInformation = -1;
155 static gint ett_ess_ESSCertID = -1;
156 static gint ett_ess_IssuerSerial = -1;
158 /*--- End of included file: packet-ess-ett.c ---*/
159 #line 54 "packet-ess-template.c"
161 static const char *object_identifier_id;
164 /*--- Included file: packet-ess-fn.c ---*/
165 #line 1 "packet-ess-fn.c"
169 dissect_ess_ContentIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
170 offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
177 static const value_string ess_AllOrFirstTier_vals[] = {
178 { 0, "allReceipts" },
179 { 1, "firstTierRecipients" },
185 dissect_ess_AllOrFirstTier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
186 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
193 static const ber_sequence_t SEQUENCE_OF_GeneralNames_sequence_of[1] = {
194 { &hf_ess_receiptsTo_item , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralNames },
198 dissect_ess_SEQUENCE_OF_GeneralNames(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
199 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
200 SEQUENCE_OF_GeneralNames_sequence_of, hf_index, ett_ess_SEQUENCE_OF_GeneralNames);
206 static const value_string ess_ReceiptsFrom_vals[] = {
207 { 0, "allOrFirstTier" },
208 { 1, "receiptList" },
212 static const ber_choice_t ReceiptsFrom_choice[] = {
213 { 0, &hf_ess_allOrFirstTier , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_ess_AllOrFirstTier },
214 { 1, &hf_ess_receiptList , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_ess_SEQUENCE_OF_GeneralNames },
215 { 0, NULL, 0, 0, 0, NULL }
219 dissect_ess_ReceiptsFrom(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
220 offset = dissect_ber_choice(actx, tree, tvb, offset,
221 ReceiptsFrom_choice, hf_index, ett_ess_ReceiptsFrom,
228 static const ber_sequence_t ReceiptRequest_sequence[] = {
229 { &hf_ess_signedContentIdentifier, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_ContentIdentifier },
230 { &hf_ess_receiptsFrom , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_ess_ReceiptsFrom },
231 { &hf_ess_receiptsTo , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_SEQUENCE_OF_GeneralNames },
232 { NULL, 0, 0, 0, NULL }
236 dissect_ess_ReceiptRequest(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
237 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
238 ReceiptRequest_sequence, hf_index, ett_ess_ReceiptRequest);
244 static const value_string ess_ESSVersion_vals[] = {
251 dissect_ess_ESSVersion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
252 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
261 dissect_ess_OCTET_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
262 offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
269 static const ber_sequence_t Receipt_sequence[] = {
270 { &hf_ess_version , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_ess_ESSVersion },
271 { &hf_ess_contentType , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_cms_ContentType },
272 { &hf_ess_signedContentIdentifier, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_ContentIdentifier },
273 { &hf_ess_originatorSignatureValue, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_OCTET_STRING },
274 { NULL, 0, 0, 0, NULL }
278 dissect_ess_Receipt(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
279 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
280 Receipt_sequence, hf_index, ett_ess_Receipt);
288 dissect_ess_UTF8String(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
289 offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTF8String,
290 actx, tree, tvb, offset, hf_index,
297 static const ber_sequence_t ContentHints_sequence[] = {
298 { &hf_ess_contentDescription, BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_UTF8String },
299 { &hf_ess_contentType , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_cms_ContentType },
300 { NULL, 0, 0, 0, NULL }
304 dissect_ess_ContentHints(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
305 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
306 ContentHints_sequence, hf_index, ett_ess_ContentHints);
314 dissect_ess_MsgSigDigest(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
315 offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
322 static const ber_sequence_t ContentReference_sequence[] = {
323 { &hf_ess_contentType , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_cms_ContentType },
324 { &hf_ess_signedContentIdentifier, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_ContentIdentifier },
325 { &hf_ess_originatorSignatureValue, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_OCTET_STRING },
326 { NULL, 0, 0, 0, NULL }
330 dissect_ess_ContentReference(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
331 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
332 ContentReference_sequence, hf_index, ett_ess_ContentReference);
340 dissect_ess_SecurityPolicyIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
341 offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
347 static const value_string ess_SecurityClassification_vals[] = {
349 { 1, "unclassified" },
351 { 3, "confidential" },
359 dissect_ess_SecurityClassification(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
360 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
369 dissect_ess_PrintableString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
370 offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_PrintableString,
371 actx, tree, tvb, offset, hf_index,
378 static const value_string ess_ESSPrivacyMark_vals[] = {
384 static const ber_choice_t ESSPrivacyMark_choice[] = {
385 { 0, &hf_ess_pString , BER_CLASS_UNI, BER_UNI_TAG_PrintableString, BER_FLAGS_NOOWNTAG, dissect_ess_PrintableString },
386 { 1, &hf_ess_utf8String , BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_NOOWNTAG, dissect_ess_UTF8String },
387 { 0, NULL, 0, 0, 0, NULL }
391 dissect_ess_ESSPrivacyMark(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
392 offset = dissect_ber_choice(actx, tree, tvb, offset,
393 ESSPrivacyMark_choice, hf_index, ett_ess_ESSPrivacyMark,
402 dissect_ess_T_type(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
403 offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_ess_SecurityCategory_type_OID, &object_identifier_id);
411 dissect_ess_T_value(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
413 offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
421 static const ber_sequence_t SecurityCategory_sequence[] = {
422 { &hf_ess_type , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_ess_T_type },
423 { &hf_ess_value , BER_CLASS_CON, 1, 0, dissect_ess_T_value },
424 { NULL, 0, 0, 0, NULL }
428 dissect_ess_SecurityCategory(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
429 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
430 SecurityCategory_sequence, hf_index, ett_ess_SecurityCategory);
436 static const ber_sequence_t SecurityCategories_set_of[1] = {
437 { &hf_ess_SecurityCategories_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_SecurityCategory },
441 dissect_ess_SecurityCategories(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
442 offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
443 SecurityCategories_set_of, hf_index, ett_ess_SecurityCategories);
449 static const ber_sequence_t ESSSecurityLabel_set[] = {
450 { &hf_ess_security_policy_identifier, BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_ess_SecurityPolicyIdentifier },
451 { &hf_ess_security_classification, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_SecurityClassification },
452 { &hf_ess_privacy_mark , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_ess_ESSPrivacyMark },
453 { &hf_ess_security_categories, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_SecurityCategories },
454 { NULL, 0, 0, 0, NULL }
458 dissect_ess_ESSSecurityLabel(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
459 offset = dissect_ber_set(implicit_tag, actx, tree, tvb, offset,
460 ESSSecurityLabel_set, hf_index, ett_ess_ESSSecurityLabel);
468 dissect_ess_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
469 offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
477 dissect_ess_BIT_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
478 offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
486 static const ber_sequence_t RestrictiveTag_sequence[] = {
487 { &hf_ess_tagName , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_ess_OBJECT_IDENTIFIER },
488 { &hf_ess_attributeFlags , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_BIT_STRING },
489 { NULL, 0, 0, 0, NULL }
493 dissect_ess_RestrictiveTag(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
494 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
495 RestrictiveTag_sequence, hf_index, ett_ess_RestrictiveTag);
503 dissect_ess_SecurityAttribute(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
504 offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
511 static const ber_sequence_t SET_OF_SecurityAttribute_set_of[1] = {
512 { &hf_ess_attributeList_item, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_ess_SecurityAttribute },
516 dissect_ess_SET_OF_SecurityAttribute(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
517 offset = dissect_ber_set_of(implicit_tag, actx, tree, tvb, offset,
518 SET_OF_SecurityAttribute_set_of, hf_index, ett_ess_SET_OF_SecurityAttribute);
524 static const ber_sequence_t EnumeratedTag_sequence[] = {
525 { &hf_ess_tagName , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_ess_OBJECT_IDENTIFIER },
526 { &hf_ess_attributeList , BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_ess_SET_OF_SecurityAttribute },
527 { NULL, 0, 0, 0, NULL }
531 dissect_ess_EnumeratedTag(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
532 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
533 EnumeratedTag_sequence, hf_index, ett_ess_EnumeratedTag);
539 static const ber_sequence_t PermissiveTag_sequence[] = {
540 { &hf_ess_tagName , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_ess_OBJECT_IDENTIFIER },
541 { &hf_ess_attributeFlags , BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_BIT_STRING },
542 { NULL, 0, 0, 0, NULL }
546 dissect_ess_PermissiveTag(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
547 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
548 PermissiveTag_sequence, hf_index, ett_ess_PermissiveTag);
554 static const value_string ess_FreeFormField_vals[] = {
555 { 0, "bitSetAttributes" },
556 { 1, "securityAttributes" },
560 static const ber_choice_t FreeFormField_choice[] = {
561 { 0, &hf_ess_bitSetAttributes, BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_BIT_STRING },
562 { 1, &hf_ess_securityAttributes, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_ess_SET_OF_SecurityAttribute },
563 { 0, NULL, 0, 0, 0, NULL }
567 dissect_ess_FreeFormField(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
568 offset = dissect_ber_choice(actx, tree, tvb, offset,
569 FreeFormField_choice, hf_index, ett_ess_FreeFormField,
576 static const ber_sequence_t InformativeTag_sequence[] = {
577 { &hf_ess_tagName , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_ess_OBJECT_IDENTIFIER },
578 { &hf_ess_attributes , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_ess_FreeFormField },
579 { NULL, 0, 0, 0, NULL }
583 dissect_ess_InformativeTag(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
584 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
585 InformativeTag_sequence, hf_index, ett_ess_InformativeTag);
591 static const ber_sequence_t EquivalentLabels_sequence_of[1] = {
592 { &hf_ess_EquivalentLabels_item, BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_ess_ESSSecurityLabel },
596 dissect_ess_EquivalentLabels(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
597 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
598 EquivalentLabels_sequence_of, hf_index, ett_ess_EquivalentLabels);
604 static const value_string ess_EntityIdentifier_vals[] = {
605 { 0, "issuerAndSerialNumber" },
606 { 1, "subjectKeyIdentifier" },
610 static const ber_choice_t EntityIdentifier_choice[] = {
611 { 0, &hf_ess_issuerAndSerialNumber, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_cms_IssuerAndSerialNumber },
612 { 1, &hf_ess_subjectKeyIdentifier, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_x509ce_SubjectKeyIdentifier },
613 { 0, NULL, 0, 0, 0, NULL }
617 dissect_ess_EntityIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
618 offset = dissect_ber_choice(actx, tree, tvb, offset,
619 EntityIdentifier_choice, hf_index, ett_ess_EntityIdentifier,
628 dissect_ess_GeneralizedTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
629 offset = dissect_ber_GeneralizedTime(implicit_tag, actx, tree, tvb, offset, hf_index);
637 dissect_ess_NULL(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
638 offset = dissect_ber_null(implicit_tag, actx, tree, tvb, offset, hf_index);
644 static const value_string ess_MLReceiptPolicy_vals[] = {
647 { 2, "inAdditionTo" },
651 static const ber_choice_t MLReceiptPolicy_choice[] = {
652 { 0, &hf_ess_none , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_ess_NULL },
653 { 1, &hf_ess_insteadOf , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_ess_SEQUENCE_OF_GeneralNames },
654 { 2, &hf_ess_inAdditionTo , BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_ess_SEQUENCE_OF_GeneralNames },
655 { 0, NULL, 0, 0, 0, NULL }
659 dissect_ess_MLReceiptPolicy(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
660 offset = dissect_ber_choice(actx, tree, tvb, offset,
661 MLReceiptPolicy_choice, hf_index, ett_ess_MLReceiptPolicy,
668 static const ber_sequence_t MLData_sequence[] = {
669 { &hf_ess_mailListIdentifier, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_ess_EntityIdentifier },
670 { &hf_ess_expansionTime , BER_CLASS_UNI, BER_UNI_TAG_GeneralizedTime, BER_FLAGS_NOOWNTAG, dissect_ess_GeneralizedTime },
671 { &hf_ess_mlReceiptPolicy , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_ess_MLReceiptPolicy },
672 { NULL, 0, 0, 0, NULL }
676 dissect_ess_MLData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
677 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
678 MLData_sequence, hf_index, ett_ess_MLData);
684 static const ber_sequence_t MLExpansionHistory_sequence_of[1] = {
685 { &hf_ess_MLExpansionHistory_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_MLData },
689 dissect_ess_MLExpansionHistory(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
690 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
691 MLExpansionHistory_sequence_of, hf_index, ett_ess_MLExpansionHistory);
699 dissect_ess_Hash(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
700 offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
707 static const ber_sequence_t IssuerSerial_sequence[] = {
708 { &hf_ess_issuer , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralNames },
709 { &hf_ess_serialNumber , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_x509af_CertificateSerialNumber },
710 { NULL, 0, 0, 0, NULL }
714 dissect_ess_IssuerSerial(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
715 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
716 IssuerSerial_sequence, hf_index, ett_ess_IssuerSerial);
722 static const ber_sequence_t ESSCertID_sequence[] = {
723 { &hf_ess_certHash , BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_ess_Hash },
724 { &hf_ess_issuerSerial , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_IssuerSerial },
725 { NULL, 0, 0, 0, NULL }
729 dissect_ess_ESSCertID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
730 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
731 ESSCertID_sequence, hf_index, ett_ess_ESSCertID);
737 static const ber_sequence_t SEQUENCE_OF_ESSCertID_sequence_of[1] = {
738 { &hf_ess_certs_item , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_ESSCertID },
742 dissect_ess_SEQUENCE_OF_ESSCertID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
743 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
744 SEQUENCE_OF_ESSCertID_sequence_of, hf_index, ett_ess_SEQUENCE_OF_ESSCertID);
750 static const ber_sequence_t SEQUENCE_OF_PolicyInformation_sequence_of[1] = {
751 { &hf_ess_policies_item , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509ce_PolicyInformation },
755 dissect_ess_SEQUENCE_OF_PolicyInformation(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
756 offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
757 SEQUENCE_OF_PolicyInformation_sequence_of, hf_index, ett_ess_SEQUENCE_OF_PolicyInformation);
763 static const ber_sequence_t SigningCertificate_sequence[] = {
764 { &hf_ess_certs , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_ess_SEQUENCE_OF_ESSCertID },
765 { &hf_ess_policies , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ess_SEQUENCE_OF_PolicyInformation },
766 { NULL, 0, 0, 0, NULL }
770 dissect_ess_SigningCertificate(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
771 offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
772 SigningCertificate_sequence, hf_index, ett_ess_SigningCertificate);
779 static void dissect_ReceiptRequest_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
781 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
782 dissect_ess_ReceiptRequest(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_ReceiptRequest_PDU);
784 static void dissect_ContentIdentifier_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
786 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
787 dissect_ess_ContentIdentifier(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_ContentIdentifier_PDU);
789 static void dissect_Receipt_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
791 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
792 dissect_ess_Receipt(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_Receipt_PDU);
794 static void dissect_ContentHints_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
796 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
797 dissect_ess_ContentHints(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_ContentHints_PDU);
799 static void dissect_MsgSigDigest_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
801 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
802 dissect_ess_MsgSigDigest(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_MsgSigDigest_PDU);
804 static void dissect_ContentReference_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
806 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
807 dissect_ess_ContentReference(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_ContentReference_PDU);
809 static void dissect_ESSSecurityLabel_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
811 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
812 dissect_ess_ESSSecurityLabel(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_ESSSecurityLabel_PDU);
814 static void dissect_RestrictiveTag_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
816 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
817 dissect_ess_RestrictiveTag(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_RestrictiveTag_PDU);
819 static void dissect_EnumeratedTag_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
821 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
822 dissect_ess_EnumeratedTag(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_EnumeratedTag_PDU);
824 static void dissect_PermissiveTag_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
826 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
827 dissect_ess_PermissiveTag(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_PermissiveTag_PDU);
829 static void dissect_InformativeTag_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
831 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
832 dissect_ess_InformativeTag(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_InformativeTag_PDU);
834 static void dissect_EquivalentLabels_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
836 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
837 dissect_ess_EquivalentLabels(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_EquivalentLabels_PDU);
839 static void dissect_MLExpansionHistory_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
841 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
842 dissect_ess_MLExpansionHistory(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_MLExpansionHistory_PDU);
844 static void dissect_SigningCertificate_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
846 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
847 dissect_ess_SigningCertificate(FALSE, tvb, 0, &asn1_ctx, tree, hf_ess_SigningCertificate_PDU);
851 /*--- End of included file: packet-ess-fn.c ---*/
852 #line 58 "packet-ess-template.c"
855 /*--- proto_register_ess ----------------------------------------------*/
856 void proto_register_ess(void) {
859 static hf_register_info hf[] = {
860 { &hf_ess_SecurityCategory_type_OID,
861 { "type", "ess.type_OID", FT_STRING, BASE_NONE, NULL, 0,
862 "Type of Security Category", HFILL }},
864 /*--- Included file: packet-ess-hfarr.c ---*/
865 #line 1 "packet-ess-hfarr.c"
866 { &hf_ess_ReceiptRequest_PDU,
867 { "ReceiptRequest", "ess.ReceiptRequest",
868 FT_NONE, BASE_NONE, NULL, 0,
869 "ess.ReceiptRequest", HFILL }},
870 { &hf_ess_ContentIdentifier_PDU,
871 { "ContentIdentifier", "ess.ContentIdentifier",
872 FT_BYTES, BASE_HEX, NULL, 0,
873 "ess.ContentIdentifier", HFILL }},
874 { &hf_ess_Receipt_PDU,
875 { "Receipt", "ess.Receipt",
876 FT_NONE, BASE_NONE, NULL, 0,
877 "ess.Receipt", HFILL }},
878 { &hf_ess_ContentHints_PDU,
879 { "ContentHints", "ess.ContentHints",
880 FT_NONE, BASE_NONE, NULL, 0,
881 "ess.ContentHints", HFILL }},
882 { &hf_ess_MsgSigDigest_PDU,
883 { "MsgSigDigest", "ess.MsgSigDigest",
884 FT_BYTES, BASE_HEX, NULL, 0,
885 "ess.MsgSigDigest", HFILL }},
886 { &hf_ess_ContentReference_PDU,
887 { "ContentReference", "ess.ContentReference",
888 FT_NONE, BASE_NONE, NULL, 0,
889 "ess.ContentReference", HFILL }},
890 { &hf_ess_ESSSecurityLabel_PDU,
891 { "ESSSecurityLabel", "ess.ESSSecurityLabel",
892 FT_NONE, BASE_NONE, NULL, 0,
893 "ess.ESSSecurityLabel", HFILL }},
894 { &hf_ess_RestrictiveTag_PDU,
895 { "RestrictiveTag", "ess.RestrictiveTag",
896 FT_NONE, BASE_NONE, NULL, 0,
897 "ess.RestrictiveTag", HFILL }},
898 { &hf_ess_EnumeratedTag_PDU,
899 { "EnumeratedTag", "ess.EnumeratedTag",
900 FT_NONE, BASE_NONE, NULL, 0,
901 "ess.EnumeratedTag", HFILL }},
902 { &hf_ess_PermissiveTag_PDU,
903 { "PermissiveTag", "ess.PermissiveTag",
904 FT_NONE, BASE_NONE, NULL, 0,
905 "ess.PermissiveTag", HFILL }},
906 { &hf_ess_InformativeTag_PDU,
907 { "InformativeTag", "ess.InformativeTag",
908 FT_NONE, BASE_NONE, NULL, 0,
909 "ess.InformativeTag", HFILL }},
910 { &hf_ess_EquivalentLabels_PDU,
911 { "EquivalentLabels", "ess.EquivalentLabels",
912 FT_UINT32, BASE_DEC, NULL, 0,
913 "ess.EquivalentLabels", HFILL }},
914 { &hf_ess_MLExpansionHistory_PDU,
915 { "MLExpansionHistory", "ess.MLExpansionHistory",
916 FT_UINT32, BASE_DEC, NULL, 0,
917 "ess.MLExpansionHistory", HFILL }},
918 { &hf_ess_SigningCertificate_PDU,
919 { "SigningCertificate", "ess.SigningCertificate",
920 FT_NONE, BASE_NONE, NULL, 0,
921 "ess.SigningCertificate", HFILL }},
922 { &hf_ess_signedContentIdentifier,
923 { "signedContentIdentifier", "ess.signedContentIdentifier",
924 FT_BYTES, BASE_HEX, NULL, 0,
925 "ess.ContentIdentifier", HFILL }},
926 { &hf_ess_receiptsFrom,
927 { "receiptsFrom", "ess.receiptsFrom",
928 FT_UINT32, BASE_DEC, VALS(ess_ReceiptsFrom_vals), 0,
929 "ess.ReceiptsFrom", HFILL }},
930 { &hf_ess_receiptsTo,
931 { "receiptsTo", "ess.receiptsTo",
932 FT_UINT32, BASE_DEC, NULL, 0,
933 "ess.SEQUENCE_OF_GeneralNames", HFILL }},
934 { &hf_ess_receiptsTo_item,
935 { "receiptsTo", "ess.receiptsTo_item",
936 FT_UINT32, BASE_DEC, NULL, 0,
937 "x509ce.GeneralNames", HFILL }},
938 { &hf_ess_allOrFirstTier,
939 { "allOrFirstTier", "ess.allOrFirstTier",
940 FT_INT32, BASE_DEC, VALS(ess_AllOrFirstTier_vals), 0,
941 "ess.AllOrFirstTier", HFILL }},
942 { &hf_ess_receiptList,
943 { "receiptList", "ess.receiptList",
944 FT_UINT32, BASE_DEC, NULL, 0,
945 "ess.SEQUENCE_OF_GeneralNames", HFILL }},
946 { &hf_ess_receiptList_item,
947 { "receiptList", "ess.receiptList_item",
948 FT_UINT32, BASE_DEC, NULL, 0,
949 "x509ce.GeneralNames", HFILL }},
951 { "version", "ess.version",
952 FT_INT32, BASE_DEC, VALS(ess_ESSVersion_vals), 0,
953 "ess.ESSVersion", HFILL }},
954 { &hf_ess_contentType,
955 { "contentType", "ess.contentType",
956 FT_OID, BASE_NONE, NULL, 0,
957 "cms.ContentType", HFILL }},
958 { &hf_ess_originatorSignatureValue,
959 { "originatorSignatureValue", "ess.originatorSignatureValue",
960 FT_BYTES, BASE_HEX, NULL, 0,
961 "ess.OCTET_STRING", HFILL }},
962 { &hf_ess_contentDescription,
963 { "contentDescription", "ess.contentDescription",
964 FT_STRING, BASE_NONE, NULL, 0,
965 "ess.UTF8String", HFILL }},
966 { &hf_ess_security_policy_identifier,
967 { "security-policy-identifier", "ess.security_policy_identifier",
968 FT_OID, BASE_NONE, NULL, 0,
969 "ess.SecurityPolicyIdentifier", HFILL }},
970 { &hf_ess_security_classification,
971 { "security-classification", "ess.security_classification",
972 FT_INT32, BASE_DEC, VALS(ess_SecurityClassification_vals), 0,
973 "ess.SecurityClassification", HFILL }},
974 { &hf_ess_privacy_mark,
975 { "privacy-mark", "ess.privacy_mark",
976 FT_UINT32, BASE_DEC, VALS(ess_ESSPrivacyMark_vals), 0,
977 "ess.ESSPrivacyMark", HFILL }},
978 { &hf_ess_security_categories,
979 { "security-categories", "ess.security_categories",
980 FT_UINT32, BASE_DEC, NULL, 0,
981 "ess.SecurityCategories", HFILL }},
983 { "pString", "ess.pString",
984 FT_STRING, BASE_NONE, NULL, 0,
985 "ess.PrintableString", HFILL }},
986 { &hf_ess_utf8String,
987 { "utf8String", "ess.utf8String",
988 FT_STRING, BASE_NONE, NULL, 0,
989 "ess.UTF8String", HFILL }},
990 { &hf_ess_SecurityCategories_item,
991 { "SecurityCategories", "ess.SecurityCategories_item",
992 FT_NONE, BASE_NONE, NULL, 0,
993 "ess.SecurityCategory", HFILL }},
995 { "type", "ess.type",
996 FT_OID, BASE_NONE, NULL, 0,
997 "ess.T_type", HFILL }},
999 { "value", "ess.value",
1000 FT_NONE, BASE_NONE, NULL, 0,
1001 "ess.T_value", HFILL }},
1003 { "tagName", "ess.tagName",
1004 FT_OID, BASE_NONE, NULL, 0,
1005 "ess.OBJECT_IDENTIFIER", HFILL }},
1006 { &hf_ess_attributeFlags,
1007 { "attributeFlags", "ess.attributeFlags",
1008 FT_BYTES, BASE_HEX, NULL, 0,
1009 "ess.BIT_STRING", HFILL }},
1010 { &hf_ess_attributeList,
1011 { "attributeList", "ess.attributeList",
1012 FT_UINT32, BASE_DEC, NULL, 0,
1013 "ess.SET_OF_SecurityAttribute", HFILL }},
1014 { &hf_ess_attributeList_item,
1015 { "attributeList", "ess.attributeList_item",
1016 FT_INT32, BASE_DEC, NULL, 0,
1017 "ess.SecurityAttribute", HFILL }},
1018 { &hf_ess_attributes,
1019 { "attributes", "ess.attributes",
1020 FT_UINT32, BASE_DEC, VALS(ess_FreeFormField_vals), 0,
1021 "ess.FreeFormField", HFILL }},
1022 { &hf_ess_bitSetAttributes,
1023 { "bitSetAttributes", "ess.bitSetAttributes",
1024 FT_BYTES, BASE_HEX, NULL, 0,
1025 "ess.BIT_STRING", HFILL }},
1026 { &hf_ess_securityAttributes,
1027 { "securityAttributes", "ess.securityAttributes",
1028 FT_UINT32, BASE_DEC, NULL, 0,
1029 "ess.SET_OF_SecurityAttribute", HFILL }},
1030 { &hf_ess_securityAttributes_item,
1031 { "securityAttributes", "ess.securityAttributes_item",
1032 FT_INT32, BASE_DEC, NULL, 0,
1033 "ess.SecurityAttribute", HFILL }},
1034 { &hf_ess_EquivalentLabels_item,
1035 { "EquivalentLabels", "ess.EquivalentLabels_item",
1036 FT_NONE, BASE_NONE, NULL, 0,
1037 "ess.ESSSecurityLabel", HFILL }},
1038 { &hf_ess_MLExpansionHistory_item,
1039 { "MLExpansionHistory", "ess.MLExpansionHistory_item",
1040 FT_NONE, BASE_NONE, NULL, 0,
1041 "ess.MLData", HFILL }},
1042 { &hf_ess_mailListIdentifier,
1043 { "mailListIdentifier", "ess.mailListIdentifier",
1044 FT_UINT32, BASE_DEC, VALS(ess_EntityIdentifier_vals), 0,
1045 "ess.EntityIdentifier", HFILL }},
1046 { &hf_ess_expansionTime,
1047 { "expansionTime", "ess.expansionTime",
1048 FT_STRING, BASE_NONE, NULL, 0,
1049 "ess.GeneralizedTime", HFILL }},
1050 { &hf_ess_mlReceiptPolicy,
1051 { "mlReceiptPolicy", "ess.mlReceiptPolicy",
1052 FT_UINT32, BASE_DEC, VALS(ess_MLReceiptPolicy_vals), 0,
1053 "ess.MLReceiptPolicy", HFILL }},
1054 { &hf_ess_issuerAndSerialNumber,
1055 { "issuerAndSerialNumber", "ess.issuerAndSerialNumber",
1056 FT_NONE, BASE_NONE, NULL, 0,
1057 "cms.IssuerAndSerialNumber", HFILL }},
1058 { &hf_ess_subjectKeyIdentifier,
1059 { "subjectKeyIdentifier", "ess.subjectKeyIdentifier",
1060 FT_BYTES, BASE_HEX, NULL, 0,
1061 "x509ce.SubjectKeyIdentifier", HFILL }},
1063 { "none", "ess.none",
1064 FT_NONE, BASE_NONE, NULL, 0,
1065 "ess.NULL", HFILL }},
1066 { &hf_ess_insteadOf,
1067 { "insteadOf", "ess.insteadOf",
1068 FT_UINT32, BASE_DEC, NULL, 0,
1069 "ess.SEQUENCE_OF_GeneralNames", HFILL }},
1070 { &hf_ess_insteadOf_item,
1071 { "insteadOf", "ess.insteadOf_item",
1072 FT_UINT32, BASE_DEC, NULL, 0,
1073 "x509ce.GeneralNames", HFILL }},
1074 { &hf_ess_inAdditionTo,
1075 { "inAdditionTo", "ess.inAdditionTo",
1076 FT_UINT32, BASE_DEC, NULL, 0,
1077 "ess.SEQUENCE_OF_GeneralNames", HFILL }},
1078 { &hf_ess_inAdditionTo_item,
1079 { "inAdditionTo", "ess.inAdditionTo_item",
1080 FT_UINT32, BASE_DEC, NULL, 0,
1081 "x509ce.GeneralNames", HFILL }},
1083 { "certs", "ess.certs",
1084 FT_UINT32, BASE_DEC, NULL, 0,
1085 "ess.SEQUENCE_OF_ESSCertID", HFILL }},
1086 { &hf_ess_certs_item,
1087 { "certs", "ess.certs_item",
1088 FT_NONE, BASE_NONE, NULL, 0,
1089 "ess.ESSCertID", HFILL }},
1091 { "policies", "ess.policies",
1092 FT_UINT32, BASE_DEC, NULL, 0,
1093 "ess.SEQUENCE_OF_PolicyInformation", HFILL }},
1094 { &hf_ess_policies_item,
1095 { "policies", "ess.policies_item",
1096 FT_NONE, BASE_NONE, NULL, 0,
1097 "x509ce.PolicyInformation", HFILL }},
1099 { "certHash", "ess.certHash",
1100 FT_BYTES, BASE_HEX, NULL, 0,
1101 "ess.Hash", HFILL }},
1102 { &hf_ess_issuerSerial,
1103 { "issuerSerial", "ess.issuerSerial",
1104 FT_NONE, BASE_NONE, NULL, 0,
1105 "ess.IssuerSerial", HFILL }},
1107 { "issuer", "ess.issuer",
1108 FT_UINT32, BASE_DEC, NULL, 0,
1109 "x509ce.GeneralNames", HFILL }},
1110 { &hf_ess_serialNumber,
1111 { "serialNumber", "ess.serialNumber",
1112 FT_INT32, BASE_DEC, NULL, 0,
1113 "x509af.CertificateSerialNumber", HFILL }},
1115 /*--- End of included file: packet-ess-hfarr.c ---*/
1116 #line 69 "packet-ess-template.c"
1119 /* List of subtrees */
1120 static gint *ett[] = {
1122 /*--- Included file: packet-ess-ettarr.c ---*/
1123 #line 1 "packet-ess-ettarr.c"
1124 &ett_ess_ReceiptRequest,
1125 &ett_ess_SEQUENCE_OF_GeneralNames,
1126 &ett_ess_ReceiptsFrom,
1128 &ett_ess_ContentHints,
1129 &ett_ess_ContentReference,
1130 &ett_ess_ESSSecurityLabel,
1131 &ett_ess_ESSPrivacyMark,
1132 &ett_ess_SecurityCategories,
1133 &ett_ess_SecurityCategory,
1134 &ett_ess_RestrictiveTag,
1135 &ett_ess_EnumeratedTag,
1136 &ett_ess_SET_OF_SecurityAttribute,
1137 &ett_ess_PermissiveTag,
1138 &ett_ess_InformativeTag,
1139 &ett_ess_FreeFormField,
1140 &ett_ess_EquivalentLabels,
1141 &ett_ess_MLExpansionHistory,
1143 &ett_ess_EntityIdentifier,
1144 &ett_ess_MLReceiptPolicy,
1145 &ett_ess_SigningCertificate,
1146 &ett_ess_SEQUENCE_OF_ESSCertID,
1147 &ett_ess_SEQUENCE_OF_PolicyInformation,
1149 &ett_ess_IssuerSerial,
1151 /*--- End of included file: packet-ess-ettarr.c ---*/
1152 #line 74 "packet-ess-template.c"
1155 /* Register protocol */
1156 proto_ess = proto_register_protocol(PNAME, PSNAME, PFNAME);
1158 /* Register fields and subtrees */
1159 proto_register_field_array(proto_ess, hf, array_length(hf));
1160 proto_register_subtree_array(ett, array_length(ett));
1165 /*--- proto_reg_handoff_ess -------------------------------------------*/
1166 void proto_reg_handoff_ess(void) {
1168 /*--- Included file: packet-ess-dis-tab.c ---*/
1169 #line 1 "packet-ess-dis-tab.c"
1170 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.1", dissect_ReceiptRequest_PDU, proto_ess, "id-aa-receiptRequest");
1171 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.7", dissect_ContentIdentifier_PDU, proto_ess, "id-aa-contentIdentifier");
1172 register_ber_oid_dissector("1.2.840.113549.1.9.16.1.1", dissect_Receipt_PDU, proto_ess, "id-ct-receipt");
1173 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.4", dissect_ContentHints_PDU, proto_ess, "id-aa-contentHint");
1174 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.5", dissect_MsgSigDigest_PDU, proto_ess, "id-aa-msgSigDigest");
1175 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.10", dissect_ContentReference_PDU, proto_ess, "id-aa-contentReference");
1176 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.2", dissect_ESSSecurityLabel_PDU, proto_ess, "id-aa-securityLabel");
1177 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.9", dissect_EquivalentLabels_PDU, proto_ess, "id-aa-equivalentLabels");
1178 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.3", dissect_MLExpansionHistory_PDU, proto_ess, "id-aa-mlExpandHistory");
1179 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.12", dissect_SigningCertificate_PDU, proto_ess, "id-aa-signingCertificate");
1180 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.0", dissect_RestrictiveTag_PDU, proto_ess, "id-restrictiveAttributes");
1181 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.1", dissect_EnumeratedTag_PDU, proto_ess, "id-enumeratedPermissiveAttributes");
1182 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.2", dissect_PermissiveTag_PDU, proto_ess, "id-restrictiveAttributes");
1183 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.3", dissect_InformativeTag_PDU, proto_ess, "id-informativeAttributes");
1184 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.4", dissect_EnumeratedTag_PDU, proto_ess, "id-enumeratedRestrictiveAttributes");
1187 /*--- End of included file: packet-ess-dis-tab.c ---*/
1188 #line 89 "packet-ess-template.c"