1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
4 /* ../../tools/asn2wrs.py -b -k -C -p ess -c ./ess.cnf -s ./packet-ess-template -D . -O ../../epan/dissectors ExtendedSecurityServices.asn */
6 /* Input file: packet-ess-template.c */
8 #line 1 "../../asn1/ess/packet-ess-template.c"
10 * Routines for RFC5035 Extended Security Services packet dissection
11 * Ronnie Sahlberg 2004
16 * Wireshark - Network traffic analyzer
17 * By Gerald Combs <gerald@wireshark.org>
18 * Copyright 1998 Gerald Combs
20 * This program is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU General Public License
22 * as published by the Free Software Foundation; either version 2
23 * of the License, or (at your option) any later version.
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
30 * You should have received a copy of the GNU General Public License
31 * along with this program; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
40 #include <epan/packet.h>
41 #include <epan/asn1.h>
42 #include <epan/prefs.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 typedef struct _ess_category_attributes_t
{
59 } ess_category_attributes_t
;
61 static ess_category_attributes_t
*ess_category_attributes
;
62 static guint num_ess_category_attributes
;
64 /* Initialize the protocol and registered fields */
65 static int proto_ess
= -1;
66 static int hf_ess_SecurityCategory_type_OID
= -1;
67 static int hf_ess_Category_attribute
= -1;
69 static gint ett_Category_attributes
= -1;
72 /*--- Included file: packet-ess-hf.c ---*/
73 #line 1 "../../asn1/ess/packet-ess-hf.c"
74 static int hf_ess_ReceiptRequest_PDU
= -1; /* ReceiptRequest */
75 static int hf_ess_ContentIdentifier_PDU
= -1; /* ContentIdentifier */
76 static int hf_ess_Receipt_PDU
= -1; /* Receipt */
77 static int hf_ess_ContentHints_PDU
= -1; /* ContentHints */
78 static int hf_ess_MsgSigDigest_PDU
= -1; /* MsgSigDigest */
79 static int hf_ess_ContentReference_PDU
= -1; /* ContentReference */
80 static int hf_ess_ess_ESSSecurityLabel_PDU
= -1; /* ESSSecurityLabel */
81 static int hf_ess_RestrictiveTag_PDU
= -1; /* RestrictiveTag */
82 static int hf_ess_EnumeratedTag_PDU
= -1; /* EnumeratedTag */
83 static int hf_ess_PermissiveTag_PDU
= -1; /* PermissiveTag */
84 static int hf_ess_InformativeTag_PDU
= -1; /* InformativeTag */
85 static int hf_ess_EquivalentLabels_PDU
= -1; /* EquivalentLabels */
86 static int hf_ess_MLExpansionHistory_PDU
= -1; /* MLExpansionHistory */
87 static int hf_ess_SigningCertificate_PDU
= -1; /* SigningCertificate */
88 static int hf_ess_SigningCertificateV2_PDU
= -1; /* SigningCertificateV2 */
89 static int hf_ess_signedContentIdentifier
= -1; /* ContentIdentifier */
90 static int hf_ess_receiptsFrom
= -1; /* ReceiptsFrom */
91 static int hf_ess_receiptsTo
= -1; /* SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames */
92 static int hf_ess_receiptsTo_item
= -1; /* GeneralNames */
93 static int hf_ess_allOrFirstTier
= -1; /* AllOrFirstTier */
94 static int hf_ess_receiptList
= -1; /* SEQUENCE_OF_GeneralNames */
95 static int hf_ess_receiptList_item
= -1; /* GeneralNames */
96 static int hf_ess_version
= -1; /* ESSVersion */
97 static int hf_ess_contentType
= -1; /* ContentType */
98 static int hf_ess_originatorSignatureValue
= -1; /* OCTET_STRING */
99 static int hf_ess_contentDescription
= -1; /* UTF8String_SIZE_1_MAX */
100 static int hf_ess_security_policy_identifier
= -1; /* SecurityPolicyIdentifier */
101 static int hf_ess_security_classification
= -1; /* SecurityClassification */
102 static int hf_ess_privacy_mark
= -1; /* ESSPrivacyMark */
103 static int hf_ess_security_categories
= -1; /* SecurityCategories */
104 static int hf_ess_pString
= -1; /* PrintableString_SIZE_1_ub_privacy_mark_length */
105 static int hf_ess_utf8String
= -1; /* UTF8String_SIZE_1_MAX */
106 static int hf_ess_SecurityCategories_item
= -1; /* SecurityCategory */
107 static int hf_ess_type
= -1; /* T_type */
108 static int hf_ess_value
= -1; /* T_value */
109 static int hf_ess_restrictiveTagName
= -1; /* T_restrictiveTagName */
110 static int hf_ess_restrictiveAttributeFlags
= -1; /* T_restrictiveAttributeFlags */
111 static int hf_ess_tagName
= -1; /* T_tagName */
112 static int hf_ess_attributeList
= -1; /* SET_OF_SecurityAttribute */
113 static int hf_ess_attributeList_item
= -1; /* SecurityAttribute */
114 static int hf_ess_permissiveTagName
= -1; /* T_permissiveTagName */
115 static int hf_ess_permissiveAttributeFlags
= -1; /* T_permissiveAttributeFlags */
116 static int hf_ess_informativeTagName
= -1; /* T_informativeTagName */
117 static int hf_ess_attributes
= -1; /* FreeFormField */
118 static int hf_ess_informativeAttributeFlags
= -1; /* T_informativeAttributeFlags */
119 static int hf_ess_securityAttributes
= -1; /* SET_OF_SecurityAttribute */
120 static int hf_ess_securityAttributes_item
= -1; /* SecurityAttribute */
121 static int hf_ess_EquivalentLabels_item
= -1; /* ESSSecurityLabel */
122 static int hf_ess_MLExpansionHistory_item
= -1; /* MLData */
123 static int hf_ess_mailListIdentifier
= -1; /* EntityIdentifier */
124 static int hf_ess_expansionTime
= -1; /* GeneralizedTime */
125 static int hf_ess_mlReceiptPolicy
= -1; /* MLReceiptPolicy */
126 static int hf_ess_issuerAndSerialNumber
= -1; /* IssuerAndSerialNumber */
127 static int hf_ess_subjectKeyIdentifier
= -1; /* SubjectKeyIdentifier */
128 static int hf_ess_none
= -1; /* NULL */
129 static int hf_ess_insteadOf
= -1; /* SEQUENCE_SIZE_1_MAX_OF_GeneralNames */
130 static int hf_ess_insteadOf_item
= -1; /* GeneralNames */
131 static int hf_ess_inAdditionTo
= -1; /* SEQUENCE_SIZE_1_MAX_OF_GeneralNames */
132 static int hf_ess_inAdditionTo_item
= -1; /* GeneralNames */
133 static int hf_ess_certs
= -1; /* SEQUENCE_OF_ESSCertID */
134 static int hf_ess_certs_item
= -1; /* ESSCertID */
135 static int hf_ess_policies
= -1; /* SEQUENCE_OF_PolicyInformation */
136 static int hf_ess_policies_item
= -1; /* PolicyInformation */
137 static int hf_ess_certsV2
= -1; /* SEQUENCE_OF_ESSCertIDv2 */
138 static int hf_ess_certsV2_item
= -1; /* ESSCertIDv2 */
139 static int hf_ess_hashAlgorithm
= -1; /* AlgorithmIdentifier */
140 static int hf_ess_certHash
= -1; /* Hash */
141 static int hf_ess_issuerSerial
= -1; /* IssuerSerial */
142 static int hf_ess_issuer
= -1; /* GeneralNames */
143 static int hf_ess_serialNumber
= -1; /* CertificateSerialNumber */
145 /*--- End of included file: packet-ess-hf.c ---*/
146 #line 64 "../../asn1/ess/packet-ess-template.c"
149 /*--- Included file: packet-ess-val.h ---*/
150 #line 1 "../../asn1/ess/packet-ess-val.h"
151 #define ub_receiptsTo 16
152 #define id_aa_receiptRequest "1.2.840.113549.1.9.16.2.1"
153 #define id_aa_contentIdentifier "1.2.840.113549.1.9.16.2.7"
154 #define id_ct_receipt "1.2.840.113549.1.9.16.1.1"
155 #define id_aa_contentHint "1.2.840.113549.1.9.16.2.4"
156 #define id_aa_msgSigDigest "1.2.840.113549.1.9.16.2.5"
157 #define id_aa_contentReference "1.2.840.113549.1.9.16.2.10"
158 #define id_aa_securityLabel "1.2.840.113549.1.9.16.2.2"
159 #define ub_integer_options 256
160 #define ub_privacy_mark_length 128
161 #define ub_security_categories 64
162 #define id_aa_equivalentLabels "1.2.840.113549.1.9.16.2.9"
163 #define id_aa_mlExpandHistory "1.2.840.113549.1.9.16.2.3"
164 #define ub_ml_expansion_history 64
165 #define id_aa_signingCertificate "1.2.840.113549.1.9.16.2.12"
166 #define id_aa_signingCertificateV2 "1.2.840.113549.1.9.16.2.47"
167 #define id_sha256 "2.16.840.1.101.3.4.2.1"
169 /*--- End of included file: packet-ess-val.h ---*/
170 #line 66 "../../asn1/ess/packet-ess-template.c"
172 /* Initialize the subtree pointers */
174 /*--- Included file: packet-ess-ett.c ---*/
175 #line 1 "../../asn1/ess/packet-ess-ett.c"
176 static gint ett_ess_ReceiptRequest
= -1;
177 static gint ett_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames
= -1;
178 static gint ett_ess_ReceiptsFrom
= -1;
179 static gint ett_ess_SEQUENCE_OF_GeneralNames
= -1;
180 static gint ett_ess_Receipt
= -1;
181 static gint ett_ess_ContentHints
= -1;
182 static gint ett_ess_ContentReference
= -1;
183 static gint ett_ess_ESSSecurityLabel
= -1;
184 static gint ett_ess_ESSPrivacyMark
= -1;
185 static gint ett_ess_SecurityCategories
= -1;
186 static gint ett_ess_SecurityCategory
= -1;
187 static gint ett_ess_RestrictiveTag
= -1;
188 static gint ett_ess_EnumeratedTag
= -1;
189 static gint ett_ess_SET_OF_SecurityAttribute
= -1;
190 static gint ett_ess_PermissiveTag
= -1;
191 static gint ett_ess_InformativeTag
= -1;
192 static gint ett_ess_FreeFormField
= -1;
193 static gint ett_ess_EquivalentLabels
= -1;
194 static gint ett_ess_MLExpansionHistory
= -1;
195 static gint ett_ess_MLData
= -1;
196 static gint ett_ess_EntityIdentifier
= -1;
197 static gint ett_ess_MLReceiptPolicy
= -1;
198 static gint ett_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames
= -1;
199 static gint ett_ess_SigningCertificate
= -1;
200 static gint ett_ess_SEQUENCE_OF_ESSCertID
= -1;
201 static gint ett_ess_SEQUENCE_OF_PolicyInformation
= -1;
202 static gint ett_ess_SigningCertificateV2
= -1;
203 static gint ett_ess_SEQUENCE_OF_ESSCertIDv2
= -1;
204 static gint ett_ess_ESSCertIDv2
= -1;
205 static gint ett_ess_ESSCertID
= -1;
206 static gint ett_ess_IssuerSerial
= -1;
208 /*--- End of included file: packet-ess-ett.c ---*/
209 #line 69 "../../asn1/ess/packet-ess-template.c"
211 static const char *object_identifier_id
;
213 UAT_CSTRING_CB_DEF(ess_category_attributes
, oid
, ess_category_attributes_t
)
214 UAT_DEC_CB_DEF(ess_category_attributes
, lacv
, ess_category_attributes_t
)
215 UAT_CSTRING_CB_DEF(ess_category_attributes
, name
, ess_category_attributes_t
)
218 ess_copy_cb(void *dest
, const void *orig
, size_t len _U_
)
220 ess_category_attributes_t
*u
= (ess_category_attributes_t
*)dest
;
221 const ess_category_attributes_t
*o
= (ess_category_attributes_t
*)orig
;
223 u
->oid
= g_strdup(o
->oid
);
225 u
->name
= g_strdup(o
->name
);
233 ess_category_attributes_t
*u
= (ess_category_attributes_t
*)r
;
240 ess_dissect_attribute (guint32 value
, asn1_ctx_t
*actx
)
244 for (i
= 0; i
< num_ess_category_attributes
; i
++) {
245 ess_category_attributes_t
*u
= &(ess_category_attributes
[i
]);
247 if ((strcmp (u
->oid
, object_identifier_id
) == 0) &&
250 proto_item_append_text (actx
->created_item
, " (%s)", u
->name
);
257 ess_dissect_attribute_flags (tvbuff_t
*tvb
, asn1_ctx_t
*actx
)
263 tree
= proto_item_add_subtree (actx
->created_item
, ett_Category_attributes
);
264 value
= tvb_get_string (wmem_packet_scope(), tvb
, 0, tvb_length (tvb
));
266 for (i
= 0; i
< num_ess_category_attributes
; i
++) {
267 ess_category_attributes_t
*u
= &(ess_category_attributes
[i
]);
269 if ((strcmp (u
->oid
, object_identifier_id
) == 0) &&
270 ((u
->lacv
/ 8) < tvb_length (tvb
)) &&
271 (value
[u
->lacv
/ 8] & (1 << (7 - (u
->lacv
% 8)))))
273 proto_tree_add_string_format (tree
, hf_ess_Category_attribute
, tvb
,
274 u
->lacv
/ 8, 1, u
->name
,
275 "%s (%d)", u
->name
, u
->lacv
);
281 /*--- Included file: packet-ess-fn.c ---*/
282 #line 1 "../../asn1/ess/packet-ess-fn.c"
286 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_
) {
287 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
294 static const value_string ess_AllOrFirstTier_vals
[] = {
295 { 0, "allReceipts" },
296 { 1, "firstTierRecipients" },
302 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_
) {
303 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
310 static const ber_sequence_t SEQUENCE_OF_GeneralNames_sequence_of
[1] = {
311 { &hf_ess_receiptList_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509ce_GeneralNames
},
315 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_
) {
316 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
317 SEQUENCE_OF_GeneralNames_sequence_of
, hf_index
, ett_ess_SEQUENCE_OF_GeneralNames
);
323 static const value_string ess_ReceiptsFrom_vals
[] = {
324 { 0, "allOrFirstTier" },
325 { 1, "receiptList" },
329 static const ber_choice_t ReceiptsFrom_choice
[] = {
330 { 0, &hf_ess_allOrFirstTier
, BER_CLASS_CON
, 0, BER_FLAGS_IMPLTAG
, dissect_ess_AllOrFirstTier
},
331 { 1, &hf_ess_receiptList
, BER_CLASS_CON
, 1, BER_FLAGS_IMPLTAG
, dissect_ess_SEQUENCE_OF_GeneralNames
},
332 { 0, NULL
, 0, 0, 0, NULL
}
336 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_
) {
337 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
338 ReceiptsFrom_choice
, hf_index
, ett_ess_ReceiptsFrom
,
345 static const ber_sequence_t SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames_sequence_of
[1] = {
346 { &hf_ess_receiptsTo_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509ce_GeneralNames
},
350 dissect_ess_SEQUENCE_SIZE_1_ub_receiptsTo_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_
) {
351 offset
= dissect_ber_constrained_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
352 1, ub_receiptsTo
, SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames_sequence_of
, hf_index
, ett_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames
);
358 static const ber_sequence_t ReceiptRequest_sequence
[] = {
359 { &hf_ess_signedContentIdentifier
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_ContentIdentifier
},
360 { &hf_ess_receiptsFrom
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_ess_ReceiptsFrom
},
361 { &hf_ess_receiptsTo
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames
},
362 { NULL
, 0, 0, 0, NULL
}
366 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_
) {
367 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
368 ReceiptRequest_sequence
, hf_index
, ett_ess_ReceiptRequest
);
374 static const value_string ess_ESSVersion_vals
[] = {
381 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_
) {
382 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
391 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_
) {
392 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
399 static const ber_sequence_t Receipt_sequence
[] = {
400 { &hf_ess_version
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_ess_ESSVersion
},
401 { &hf_ess_contentType
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_cms_ContentType
},
402 { &hf_ess_signedContentIdentifier
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_ContentIdentifier
},
403 { &hf_ess_originatorSignatureValue
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_OCTET_STRING
},
404 { NULL
, 0, 0, 0, NULL
}
408 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_
) {
409 #line 102 "../../asn1/ess/ess.cnf"
410 col_set_str(actx
->pinfo
->cinfo
, COL_PROTOCOL
, "ESS");
411 col_set_str(actx
->pinfo
->cinfo
, COL_INFO
, "Signed Receipt");
412 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
413 Receipt_sequence
, hf_index
, ett_ess_Receipt
);
424 dissect_ess_UTF8String_SIZE_1_MAX(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
425 offset
= dissect_ber_constrained_restricted_string(implicit_tag
, BER_UNI_TAG_UTF8String
,
426 actx
, tree
, tvb
, offset
,
427 1, NO_BOUND
, hf_index
, NULL
);
433 static const ber_sequence_t ContentHints_sequence
[] = {
434 { &hf_ess_contentDescription
, BER_CLASS_UNI
, BER_UNI_TAG_UTF8String
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_ess_UTF8String_SIZE_1_MAX
},
435 { &hf_ess_contentType
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_cms_ContentType
},
436 { NULL
, 0, 0, 0, NULL
}
440 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_
) {
441 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
442 ContentHints_sequence
, hf_index
, ett_ess_ContentHints
);
450 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_
) {
451 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
458 static const ber_sequence_t ContentReference_sequence
[] = {
459 { &hf_ess_contentType
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_cms_ContentType
},
460 { &hf_ess_signedContentIdentifier
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_ContentIdentifier
},
461 { &hf_ess_originatorSignatureValue
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_OCTET_STRING
},
462 { NULL
, 0, 0, 0, NULL
}
466 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_
) {
467 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
468 ContentReference_sequence
, hf_index
, ett_ess_ContentReference
);
476 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_
) {
477 offset
= dissect_ber_object_identifier(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, NULL
);
483 static const value_string ess_SecurityClassification_vals
[] = {
485 { 1, "unclassified" },
487 { 3, "confidential" },
495 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_
) {
496 offset
= dissect_ber_constrained_integer(implicit_tag
, actx
, tree
, tvb
, offset
,
497 0U, ub_integer_options
, hf_index
, NULL
);
505 dissect_ess_PrintableString_SIZE_1_ub_privacy_mark_length(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
506 offset
= dissect_ber_constrained_restricted_string(implicit_tag
, BER_UNI_TAG_PrintableString
,
507 actx
, tree
, tvb
, offset
,
508 1, ub_privacy_mark_length
, hf_index
, NULL
);
514 static const value_string ess_ESSPrivacyMark_vals
[] = {
520 static const ber_choice_t ESSPrivacyMark_choice
[] = {
521 { 0, &hf_ess_pString
, BER_CLASS_UNI
, BER_UNI_TAG_PrintableString
, BER_FLAGS_NOOWNTAG
, dissect_ess_PrintableString_SIZE_1_ub_privacy_mark_length
},
522 { 1, &hf_ess_utf8String
, BER_CLASS_UNI
, BER_UNI_TAG_UTF8String
, BER_FLAGS_NOOWNTAG
, dissect_ess_UTF8String_SIZE_1_MAX
},
523 { 0, NULL
, 0, 0, 0, NULL
}
527 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_
) {
528 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
529 ESSPrivacyMark_choice
, hf_index
, ett_ess_ESSPrivacyMark
,
538 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_
) {
539 offset
= dissect_ber_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_ess_SecurityCategory_type_OID
, &object_identifier_id
);
547 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_
) {
548 #line 51 "../../asn1/ess/ess.cnf"
549 offset
=call_ber_oid_callback(object_identifier_id
, tvb
, offset
, actx
->pinfo
, tree
, NULL
);
557 static const ber_sequence_t SecurityCategory_sequence
[] = {
558 { &hf_ess_type
, BER_CLASS_CON
, 0, BER_FLAGS_IMPLTAG
, dissect_ess_T_type
},
559 { &hf_ess_value
, BER_CLASS_CON
, 1, BER_FLAGS_IMPLTAG
, dissect_ess_T_value
},
560 { NULL
, 0, 0, 0, NULL
}
564 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_
) {
565 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
566 SecurityCategory_sequence
, hf_index
, ett_ess_SecurityCategory
);
572 static const ber_sequence_t SecurityCategories_set_of
[1] = {
573 { &hf_ess_SecurityCategories_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ess_SecurityCategory
},
577 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_
) {
578 offset
= dissect_ber_constrained_set_of(implicit_tag
, actx
, tree
, tvb
, offset
,
579 1, ub_security_categories
, SecurityCategories_set_of
, hf_index
, ett_ess_SecurityCategories
);
585 static const ber_sequence_t ESSSecurityLabel_set
[] = {
586 { &hf_ess_security_policy_identifier
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_ess_SecurityPolicyIdentifier
},
587 { &hf_ess_security_classification
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_ess_SecurityClassification
},
588 { &hf_ess_privacy_mark
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_ess_ESSPrivacyMark
},
589 { &hf_ess_security_categories
, BER_CLASS_UNI
, BER_UNI_TAG_SET
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_ess_SecurityCategories
},
590 { NULL
, 0, 0, 0, NULL
}
594 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_
) {
595 offset
= dissect_ber_set(implicit_tag
, actx
, tree
, tvb
, offset
,
596 ESSSecurityLabel_set
, hf_index
, ett_ess_ESSSecurityLabel
);
604 dissect_ess_T_restrictiveTagName(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
605 offset
= dissect_ber_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, &object_identifier_id
);
613 dissect_ess_T_restrictiveAttributeFlags(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
614 #line 78 "../../asn1/ess/ess.cnf"
615 tvbuff_t
*attributes
;
617 offset
= dissect_ber_bitstring(implicit_tag
, actx
, tree
, tvb
, offset
,
621 ess_dissect_attribute_flags (attributes
, actx
);
629 static const ber_sequence_t RestrictiveTag_sequence
[] = {
630 { &hf_ess_restrictiveTagName
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_ess_T_restrictiveTagName
},
631 { &hf_ess_restrictiveAttributeFlags
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_T_restrictiveAttributeFlags
},
632 { NULL
, 0, 0, 0, NULL
}
636 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_
) {
637 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
638 RestrictiveTag_sequence
, hf_index
, ett_ess_RestrictiveTag
);
646 dissect_ess_T_tagName(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
647 offset
= dissect_ber_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, &object_identifier_id
);
655 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_
) {
656 #line 69 "../../asn1/ess/ess.cnf"
659 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
662 ess_dissect_attribute (attribute
, actx
);
670 static const ber_sequence_t SET_OF_SecurityAttribute_set_of
[1] = {
671 { &hf_ess_attributeList_item
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_ess_SecurityAttribute
},
675 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_
) {
676 offset
= dissect_ber_set_of(implicit_tag
, actx
, tree
, tvb
, offset
,
677 SET_OF_SecurityAttribute_set_of
, hf_index
, ett_ess_SET_OF_SecurityAttribute
);
683 static const ber_sequence_t EnumeratedTag_sequence
[] = {
684 { &hf_ess_tagName
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_ess_T_tagName
},
685 { &hf_ess_attributeList
, BER_CLASS_UNI
, BER_UNI_TAG_SET
, BER_FLAGS_NOOWNTAG
, dissect_ess_SET_OF_SecurityAttribute
},
686 { NULL
, 0, 0, 0, NULL
}
690 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_
) {
691 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
692 EnumeratedTag_sequence
, hf_index
, ett_ess_EnumeratedTag
);
700 dissect_ess_T_permissiveTagName(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
701 offset
= dissect_ber_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, &object_identifier_id
);
709 dissect_ess_T_permissiveAttributeFlags(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
710 #line 87 "../../asn1/ess/ess.cnf"
711 tvbuff_t
*attributes
;
713 offset
= dissect_ber_bitstring(implicit_tag
, actx
, tree
, tvb
, offset
,
717 ess_dissect_attribute_flags (attributes
, actx
);
725 static const ber_sequence_t PermissiveTag_sequence
[] = {
726 { &hf_ess_permissiveTagName
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_ess_T_permissiveTagName
},
727 { &hf_ess_permissiveAttributeFlags
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_T_permissiveAttributeFlags
},
728 { NULL
, 0, 0, 0, NULL
}
732 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_
) {
733 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
734 PermissiveTag_sequence
, hf_index
, ett_ess_PermissiveTag
);
742 dissect_ess_T_informativeTagName(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_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, &object_identifier_id
);
751 dissect_ess_T_informativeAttributeFlags(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
752 #line 96 "../../asn1/ess/ess.cnf"
753 tvbuff_t
*attributes
;
755 offset
= dissect_ber_bitstring(implicit_tag
, actx
, tree
, tvb
, offset
,
759 ess_dissect_attribute_flags (attributes
, actx
);
767 static const value_string ess_FreeFormField_vals
[] = {
768 { 0, "bitSetAttributes" },
769 { 1, "securityAttributes" },
773 static const ber_choice_t FreeFormField_choice
[] = {
774 { 0, &hf_ess_informativeAttributeFlags
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_T_informativeAttributeFlags
},
775 { 1, &hf_ess_securityAttributes
, BER_CLASS_UNI
, BER_UNI_TAG_SET
, BER_FLAGS_NOOWNTAG
, dissect_ess_SET_OF_SecurityAttribute
},
776 { 0, NULL
, 0, 0, 0, NULL
}
780 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_
) {
781 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
782 FreeFormField_choice
, hf_index
, ett_ess_FreeFormField
,
789 static const ber_sequence_t InformativeTag_sequence
[] = {
790 { &hf_ess_informativeTagName
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_ess_T_informativeTagName
},
791 { &hf_ess_attributes
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_ess_FreeFormField
},
792 { NULL
, 0, 0, 0, NULL
}
796 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_
) {
797 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
798 InformativeTag_sequence
, hf_index
, ett_ess_InformativeTag
);
804 static const ber_sequence_t EquivalentLabels_sequence_of
[1] = {
805 { &hf_ess_EquivalentLabels_item
, BER_CLASS_UNI
, BER_UNI_TAG_SET
, BER_FLAGS_NOOWNTAG
, dissect_ess_ESSSecurityLabel
},
809 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_
) {
810 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
811 EquivalentLabels_sequence_of
, hf_index
, ett_ess_EquivalentLabels
);
817 static const value_string ess_EntityIdentifier_vals
[] = {
818 { 0, "issuerAndSerialNumber" },
819 { 1, "subjectKeyIdentifier" },
823 static const ber_choice_t EntityIdentifier_choice
[] = {
824 { 0, &hf_ess_issuerAndSerialNumber
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_cms_IssuerAndSerialNumber
},
825 { 1, &hf_ess_subjectKeyIdentifier
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_x509ce_SubjectKeyIdentifier
},
826 { 0, NULL
, 0, 0, 0, NULL
}
830 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_
) {
831 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
832 EntityIdentifier_choice
, hf_index
, ett_ess_EntityIdentifier
,
841 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_
) {
842 offset
= dissect_ber_GeneralizedTime(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
);
850 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_
) {
851 offset
= dissect_ber_null(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
);
857 static const ber_sequence_t SEQUENCE_SIZE_1_MAX_OF_GeneralNames_sequence_of
[1] = {
858 { &hf_ess_insteadOf_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509ce_GeneralNames
},
862 dissect_ess_SEQUENCE_SIZE_1_MAX_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_
) {
863 offset
= dissect_ber_constrained_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
864 1, NO_BOUND
, SEQUENCE_SIZE_1_MAX_OF_GeneralNames_sequence_of
, hf_index
, ett_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames
);
870 static const value_string ess_MLReceiptPolicy_vals
[] = {
873 { 2, "inAdditionTo" },
877 static const ber_choice_t MLReceiptPolicy_choice
[] = {
878 { 0, &hf_ess_none
, BER_CLASS_CON
, 0, BER_FLAGS_IMPLTAG
, dissect_ess_NULL
},
879 { 1, &hf_ess_insteadOf
, BER_CLASS_CON
, 1, BER_FLAGS_IMPLTAG
, dissect_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames
},
880 { 2, &hf_ess_inAdditionTo
, BER_CLASS_CON
, 2, BER_FLAGS_IMPLTAG
, dissect_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames
},
881 { 0, NULL
, 0, 0, 0, NULL
}
885 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_
) {
886 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
887 MLReceiptPolicy_choice
, hf_index
, ett_ess_MLReceiptPolicy
,
894 static const ber_sequence_t MLData_sequence
[] = {
895 { &hf_ess_mailListIdentifier
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_ess_EntityIdentifier
},
896 { &hf_ess_expansionTime
, BER_CLASS_UNI
, BER_UNI_TAG_GeneralizedTime
, BER_FLAGS_NOOWNTAG
, dissect_ess_GeneralizedTime
},
897 { &hf_ess_mlReceiptPolicy
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_ess_MLReceiptPolicy
},
898 { NULL
, 0, 0, 0, NULL
}
902 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_
) {
903 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
904 MLData_sequence
, hf_index
, ett_ess_MLData
);
910 static const ber_sequence_t MLExpansionHistory_sequence_of
[1] = {
911 { &hf_ess_MLExpansionHistory_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ess_MLData
},
915 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_
) {
916 offset
= dissect_ber_constrained_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
917 1, ub_ml_expansion_history
, MLExpansionHistory_sequence_of
, hf_index
, ett_ess_MLExpansionHistory
);
925 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_
) {
926 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
933 static const ber_sequence_t IssuerSerial_sequence
[] = {
934 { &hf_ess_issuer
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509ce_GeneralNames
},
935 { &hf_ess_serialNumber
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_x509af_CertificateSerialNumber
},
936 { NULL
, 0, 0, 0, NULL
}
940 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_
) {
941 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
942 IssuerSerial_sequence
, hf_index
, ett_ess_IssuerSerial
);
948 static const ber_sequence_t ESSCertID_sequence
[] = {
949 { &hf_ess_certHash
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_Hash
},
950 { &hf_ess_issuerSerial
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_ess_IssuerSerial
},
951 { NULL
, 0, 0, 0, NULL
}
955 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_
) {
956 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
957 ESSCertID_sequence
, hf_index
, ett_ess_ESSCertID
);
963 static const ber_sequence_t SEQUENCE_OF_ESSCertID_sequence_of
[1] = {
964 { &hf_ess_certs_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ess_ESSCertID
},
968 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_
) {
969 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
970 SEQUENCE_OF_ESSCertID_sequence_of
, hf_index
, ett_ess_SEQUENCE_OF_ESSCertID
);
976 static const ber_sequence_t SEQUENCE_OF_PolicyInformation_sequence_of
[1] = {
977 { &hf_ess_policies_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509ce_PolicyInformation
},
981 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_
) {
982 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
983 SEQUENCE_OF_PolicyInformation_sequence_of
, hf_index
, ett_ess_SEQUENCE_OF_PolicyInformation
);
989 static const ber_sequence_t SigningCertificate_sequence
[] = {
990 { &hf_ess_certs
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ess_SEQUENCE_OF_ESSCertID
},
991 { &hf_ess_policies
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_ess_SEQUENCE_OF_PolicyInformation
},
992 { NULL
, 0, 0, 0, NULL
}
996 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_
) {
997 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
998 SigningCertificate_sequence
, hf_index
, ett_ess_SigningCertificate
);
1004 static const ber_sequence_t ESSCertIDv2_sequence
[] = {
1005 { &hf_ess_hashAlgorithm
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_x509af_AlgorithmIdentifier
},
1006 { &hf_ess_certHash
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ess_Hash
},
1007 { &hf_ess_issuerSerial
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_ess_IssuerSerial
},
1008 { NULL
, 0, 0, 0, NULL
}
1012 dissect_ess_ESSCertIDv2(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
1013 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
1014 ESSCertIDv2_sequence
, hf_index
, ett_ess_ESSCertIDv2
);
1020 static const ber_sequence_t SEQUENCE_OF_ESSCertIDv2_sequence_of
[1] = {
1021 { &hf_ess_certsV2_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ess_ESSCertIDv2
},
1025 dissect_ess_SEQUENCE_OF_ESSCertIDv2(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
1026 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
1027 SEQUENCE_OF_ESSCertIDv2_sequence_of
, hf_index
, ett_ess_SEQUENCE_OF_ESSCertIDv2
);
1033 static const ber_sequence_t SigningCertificateV2_sequence
[] = {
1034 { &hf_ess_certsV2
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ess_SEQUENCE_OF_ESSCertIDv2
},
1035 { &hf_ess_policies
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_OPTIONAL
|BER_FLAGS_NOOWNTAG
, dissect_ess_SEQUENCE_OF_PolicyInformation
},
1036 { NULL
, 0, 0, 0, NULL
}
1040 dissect_ess_SigningCertificateV2(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
1041 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
1042 SigningCertificateV2_sequence
, hf_index
, ett_ess_SigningCertificateV2
);
1049 static void dissect_ReceiptRequest_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1050 asn1_ctx_t asn1_ctx
;
1051 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1052 dissect_ess_ReceiptRequest(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_ReceiptRequest_PDU
);
1054 static void dissect_ContentIdentifier_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1055 asn1_ctx_t asn1_ctx
;
1056 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1057 dissect_ess_ContentIdentifier(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_ContentIdentifier_PDU
);
1059 static void dissect_Receipt_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1060 asn1_ctx_t asn1_ctx
;
1061 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1062 dissect_ess_Receipt(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_Receipt_PDU
);
1064 static void dissect_ContentHints_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1065 asn1_ctx_t asn1_ctx
;
1066 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1067 dissect_ess_ContentHints(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_ContentHints_PDU
);
1069 static void dissect_MsgSigDigest_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1070 asn1_ctx_t asn1_ctx
;
1071 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1072 dissect_ess_MsgSigDigest(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_MsgSigDigest_PDU
);
1074 static void dissect_ContentReference_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1075 asn1_ctx_t asn1_ctx
;
1076 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1077 dissect_ess_ContentReference(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_ContentReference_PDU
);
1079 void dissect_ess_ESSSecurityLabel_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1080 asn1_ctx_t asn1_ctx
;
1081 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1082 dissect_ess_ESSSecurityLabel(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_ess_ESSSecurityLabel_PDU
);
1084 static void dissect_RestrictiveTag_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1085 asn1_ctx_t asn1_ctx
;
1086 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1087 dissect_ess_RestrictiveTag(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_RestrictiveTag_PDU
);
1089 static void dissect_EnumeratedTag_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1090 asn1_ctx_t asn1_ctx
;
1091 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1092 dissect_ess_EnumeratedTag(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_EnumeratedTag_PDU
);
1094 static void dissect_PermissiveTag_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1095 asn1_ctx_t asn1_ctx
;
1096 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1097 dissect_ess_PermissiveTag(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_PermissiveTag_PDU
);
1099 static void dissect_InformativeTag_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1100 asn1_ctx_t asn1_ctx
;
1101 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1102 dissect_ess_InformativeTag(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_InformativeTag_PDU
);
1104 static void dissect_EquivalentLabels_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1105 asn1_ctx_t asn1_ctx
;
1106 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1107 dissect_ess_EquivalentLabels(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_EquivalentLabels_PDU
);
1109 static void dissect_MLExpansionHistory_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1110 asn1_ctx_t asn1_ctx
;
1111 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1112 dissect_ess_MLExpansionHistory(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_MLExpansionHistory_PDU
);
1114 static void dissect_SigningCertificate_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1115 asn1_ctx_t asn1_ctx
;
1116 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1117 dissect_ess_SigningCertificate(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_SigningCertificate_PDU
);
1119 static void dissect_SigningCertificateV2_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
1120 asn1_ctx_t asn1_ctx
;
1121 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
1122 dissect_ess_SigningCertificateV2(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ess_SigningCertificateV2_PDU
);
1126 /*--- End of included file: packet-ess-fn.c ---*/
1127 #line 140 "../../asn1/ess/packet-ess-template.c"
1129 /*--- proto_register_ess ----------------------------------------------*/
1130 void proto_register_ess(void) {
1132 /* List of fields */
1133 static hf_register_info hf
[] = {
1134 { &hf_ess_SecurityCategory_type_OID
,
1135 { "type", "ess.type_OID", FT_STRING
, BASE_NONE
, NULL
, 0,
1136 "Type of Security Category", HFILL
}},
1137 { &hf_ess_Category_attribute
,
1138 { "Attribute", "ess.attribute", FT_STRING
, BASE_NONE
, NULL
, 0,
1141 /*--- Included file: packet-ess-hfarr.c ---*/
1142 #line 1 "../../asn1/ess/packet-ess-hfarr.c"
1143 { &hf_ess_ReceiptRequest_PDU
,
1144 { "ReceiptRequest", "ess.ReceiptRequest_element",
1145 FT_NONE
, BASE_NONE
, NULL
, 0,
1147 { &hf_ess_ContentIdentifier_PDU
,
1148 { "ContentIdentifier", "ess.ContentIdentifier",
1149 FT_BYTES
, BASE_NONE
, NULL
, 0,
1151 { &hf_ess_Receipt_PDU
,
1152 { "Receipt", "ess.Receipt_element",
1153 FT_NONE
, BASE_NONE
, NULL
, 0,
1155 { &hf_ess_ContentHints_PDU
,
1156 { "ContentHints", "ess.ContentHints_element",
1157 FT_NONE
, BASE_NONE
, NULL
, 0,
1159 { &hf_ess_MsgSigDigest_PDU
,
1160 { "MsgSigDigest", "ess.MsgSigDigest",
1161 FT_BYTES
, BASE_NONE
, NULL
, 0,
1163 { &hf_ess_ContentReference_PDU
,
1164 { "ContentReference", "ess.ContentReference_element",
1165 FT_NONE
, BASE_NONE
, NULL
, 0,
1167 { &hf_ess_ess_ESSSecurityLabel_PDU
,
1168 { "ESSSecurityLabel", "ess.ESSSecurityLabel_element",
1169 FT_NONE
, BASE_NONE
, NULL
, 0,
1171 { &hf_ess_RestrictiveTag_PDU
,
1172 { "RestrictiveTag", "ess.RestrictiveTag_element",
1173 FT_NONE
, BASE_NONE
, NULL
, 0,
1175 { &hf_ess_EnumeratedTag_PDU
,
1176 { "EnumeratedTag", "ess.EnumeratedTag_element",
1177 FT_NONE
, BASE_NONE
, NULL
, 0,
1179 { &hf_ess_PermissiveTag_PDU
,
1180 { "PermissiveTag", "ess.PermissiveTag_element",
1181 FT_NONE
, BASE_NONE
, NULL
, 0,
1183 { &hf_ess_InformativeTag_PDU
,
1184 { "InformativeTag", "ess.InformativeTag_element",
1185 FT_NONE
, BASE_NONE
, NULL
, 0,
1187 { &hf_ess_EquivalentLabels_PDU
,
1188 { "EquivalentLabels", "ess.EquivalentLabels",
1189 FT_UINT32
, BASE_DEC
, NULL
, 0,
1191 { &hf_ess_MLExpansionHistory_PDU
,
1192 { "MLExpansionHistory", "ess.MLExpansionHistory",
1193 FT_UINT32
, BASE_DEC
, NULL
, 0,
1195 { &hf_ess_SigningCertificate_PDU
,
1196 { "SigningCertificate", "ess.SigningCertificate_element",
1197 FT_NONE
, BASE_NONE
, NULL
, 0,
1199 { &hf_ess_SigningCertificateV2_PDU
,
1200 { "SigningCertificateV2", "ess.SigningCertificateV2_element",
1201 FT_NONE
, BASE_NONE
, NULL
, 0,
1203 { &hf_ess_signedContentIdentifier
,
1204 { "signedContentIdentifier", "ess.signedContentIdentifier",
1205 FT_BYTES
, BASE_NONE
, NULL
, 0,
1206 "ContentIdentifier", HFILL
}},
1207 { &hf_ess_receiptsFrom
,
1208 { "receiptsFrom", "ess.receiptsFrom",
1209 FT_UINT32
, BASE_DEC
, VALS(ess_ReceiptsFrom_vals
), 0,
1211 { &hf_ess_receiptsTo
,
1212 { "receiptsTo", "ess.receiptsTo",
1213 FT_UINT32
, BASE_DEC
, NULL
, 0,
1214 "SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames", HFILL
}},
1215 { &hf_ess_receiptsTo_item
,
1216 { "GeneralNames", "ess.GeneralNames",
1217 FT_UINT32
, BASE_DEC
, NULL
, 0,
1219 { &hf_ess_allOrFirstTier
,
1220 { "allOrFirstTier", "ess.allOrFirstTier",
1221 FT_INT32
, BASE_DEC
, VALS(ess_AllOrFirstTier_vals
), 0,
1223 { &hf_ess_receiptList
,
1224 { "receiptList", "ess.receiptList",
1225 FT_UINT32
, BASE_DEC
, NULL
, 0,
1226 "SEQUENCE_OF_GeneralNames", HFILL
}},
1227 { &hf_ess_receiptList_item
,
1228 { "GeneralNames", "ess.GeneralNames",
1229 FT_UINT32
, BASE_DEC
, NULL
, 0,
1232 { "version", "ess.version",
1233 FT_INT32
, BASE_DEC
, VALS(ess_ESSVersion_vals
), 0,
1234 "ESSVersion", HFILL
}},
1235 { &hf_ess_contentType
,
1236 { "contentType", "ess.contentType",
1237 FT_OID
, BASE_NONE
, NULL
, 0,
1239 { &hf_ess_originatorSignatureValue
,
1240 { "originatorSignatureValue", "ess.originatorSignatureValue",
1241 FT_BYTES
, BASE_NONE
, NULL
, 0,
1242 "OCTET_STRING", HFILL
}},
1243 { &hf_ess_contentDescription
,
1244 { "contentDescription", "ess.contentDescription",
1245 FT_STRING
, BASE_NONE
, NULL
, 0,
1246 "UTF8String_SIZE_1_MAX", HFILL
}},
1247 { &hf_ess_security_policy_identifier
,
1248 { "security-policy-identifier", "ess.security_policy_identifier",
1249 FT_OID
, BASE_NONE
, NULL
, 0,
1250 "SecurityPolicyIdentifier", HFILL
}},
1251 { &hf_ess_security_classification
,
1252 { "security-classification", "ess.security_classification",
1253 FT_UINT32
, BASE_DEC
, VALS(ess_SecurityClassification_vals
), 0,
1254 "SecurityClassification", HFILL
}},
1255 { &hf_ess_privacy_mark
,
1256 { "privacy-mark", "ess.privacy_mark",
1257 FT_UINT32
, BASE_DEC
, VALS(ess_ESSPrivacyMark_vals
), 0,
1258 "ESSPrivacyMark", HFILL
}},
1259 { &hf_ess_security_categories
,
1260 { "security-categories", "ess.security_categories",
1261 FT_UINT32
, BASE_DEC
, NULL
, 0,
1262 "SecurityCategories", HFILL
}},
1264 { "pString", "ess.pString",
1265 FT_STRING
, BASE_NONE
, NULL
, 0,
1266 "PrintableString_SIZE_1_ub_privacy_mark_length", HFILL
}},
1267 { &hf_ess_utf8String
,
1268 { "utf8String", "ess.utf8String",
1269 FT_STRING
, BASE_NONE
, NULL
, 0,
1270 "UTF8String_SIZE_1_MAX", HFILL
}},
1271 { &hf_ess_SecurityCategories_item
,
1272 { "SecurityCategory", "ess.SecurityCategory_element",
1273 FT_NONE
, BASE_NONE
, NULL
, 0,
1276 { "type", "ess.type",
1277 FT_OID
, BASE_NONE
, NULL
, 0,
1280 { "value", "ess.value_element",
1281 FT_NONE
, BASE_NONE
, NULL
, 0,
1283 { &hf_ess_restrictiveTagName
,
1284 { "tagName", "ess.tagName",
1285 FT_OID
, BASE_NONE
, NULL
, 0,
1286 "T_restrictiveTagName", HFILL
}},
1287 { &hf_ess_restrictiveAttributeFlags
,
1288 { "attributeFlags", "ess.attributeFlags",
1289 FT_BYTES
, BASE_NONE
, NULL
, 0,
1290 "T_restrictiveAttributeFlags", HFILL
}},
1292 { "tagName", "ess.tagName",
1293 FT_OID
, BASE_NONE
, NULL
, 0,
1295 { &hf_ess_attributeList
,
1296 { "attributeList", "ess.attributeList",
1297 FT_UINT32
, BASE_DEC
, NULL
, 0,
1298 "SET_OF_SecurityAttribute", HFILL
}},
1299 { &hf_ess_attributeList_item
,
1300 { "SecurityAttribute", "ess.SecurityAttribute",
1301 FT_INT32
, BASE_DEC
, NULL
, 0,
1303 { &hf_ess_permissiveTagName
,
1304 { "tagName", "ess.tagName",
1305 FT_OID
, BASE_NONE
, NULL
, 0,
1306 "T_permissiveTagName", HFILL
}},
1307 { &hf_ess_permissiveAttributeFlags
,
1308 { "attributeFlags", "ess.attributeFlags",
1309 FT_BYTES
, BASE_NONE
, NULL
, 0,
1310 "T_permissiveAttributeFlags", HFILL
}},
1311 { &hf_ess_informativeTagName
,
1312 { "tagName", "ess.tagName",
1313 FT_OID
, BASE_NONE
, NULL
, 0,
1314 "T_informativeTagName", HFILL
}},
1315 { &hf_ess_attributes
,
1316 { "attributes", "ess.attributes",
1317 FT_UINT32
, BASE_DEC
, VALS(ess_FreeFormField_vals
), 0,
1318 "FreeFormField", HFILL
}},
1319 { &hf_ess_informativeAttributeFlags
,
1320 { "bitSetAttributes", "ess.bitSetAttributes",
1321 FT_BYTES
, BASE_NONE
, NULL
, 0,
1322 "T_informativeAttributeFlags", HFILL
}},
1323 { &hf_ess_securityAttributes
,
1324 { "securityAttributes", "ess.securityAttributes",
1325 FT_UINT32
, BASE_DEC
, NULL
, 0,
1326 "SET_OF_SecurityAttribute", HFILL
}},
1327 { &hf_ess_securityAttributes_item
,
1328 { "SecurityAttribute", "ess.SecurityAttribute",
1329 FT_INT32
, BASE_DEC
, NULL
, 0,
1331 { &hf_ess_EquivalentLabels_item
,
1332 { "ESSSecurityLabel", "ess.ESSSecurityLabel_element",
1333 FT_NONE
, BASE_NONE
, NULL
, 0,
1335 { &hf_ess_MLExpansionHistory_item
,
1336 { "MLData", "ess.MLData_element",
1337 FT_NONE
, BASE_NONE
, NULL
, 0,
1339 { &hf_ess_mailListIdentifier
,
1340 { "mailListIdentifier", "ess.mailListIdentifier",
1341 FT_UINT32
, BASE_DEC
, VALS(ess_EntityIdentifier_vals
), 0,
1342 "EntityIdentifier", HFILL
}},
1343 { &hf_ess_expansionTime
,
1344 { "expansionTime", "ess.expansionTime",
1345 FT_STRING
, BASE_NONE
, NULL
, 0,
1346 "GeneralizedTime", HFILL
}},
1347 { &hf_ess_mlReceiptPolicy
,
1348 { "mlReceiptPolicy", "ess.mlReceiptPolicy",
1349 FT_UINT32
, BASE_DEC
, VALS(ess_MLReceiptPolicy_vals
), 0,
1351 { &hf_ess_issuerAndSerialNumber
,
1352 { "issuerAndSerialNumber", "ess.issuerAndSerialNumber_element",
1353 FT_NONE
, BASE_NONE
, NULL
, 0,
1355 { &hf_ess_subjectKeyIdentifier
,
1356 { "subjectKeyIdentifier", "ess.subjectKeyIdentifier",
1357 FT_BYTES
, BASE_NONE
, NULL
, 0,
1360 { "none", "ess.none_element",
1361 FT_NONE
, BASE_NONE
, NULL
, 0,
1363 { &hf_ess_insteadOf
,
1364 { "insteadOf", "ess.insteadOf",
1365 FT_UINT32
, BASE_DEC
, NULL
, 0,
1366 "SEQUENCE_SIZE_1_MAX_OF_GeneralNames", HFILL
}},
1367 { &hf_ess_insteadOf_item
,
1368 { "GeneralNames", "ess.GeneralNames",
1369 FT_UINT32
, BASE_DEC
, NULL
, 0,
1371 { &hf_ess_inAdditionTo
,
1372 { "inAdditionTo", "ess.inAdditionTo",
1373 FT_UINT32
, BASE_DEC
, NULL
, 0,
1374 "SEQUENCE_SIZE_1_MAX_OF_GeneralNames", HFILL
}},
1375 { &hf_ess_inAdditionTo_item
,
1376 { "GeneralNames", "ess.GeneralNames",
1377 FT_UINT32
, BASE_DEC
, NULL
, 0,
1380 { "certs", "ess.certs",
1381 FT_UINT32
, BASE_DEC
, NULL
, 0,
1382 "SEQUENCE_OF_ESSCertID", HFILL
}},
1383 { &hf_ess_certs_item
,
1384 { "ESSCertID", "ess.ESSCertID_element",
1385 FT_NONE
, BASE_NONE
, NULL
, 0,
1388 { "policies", "ess.policies",
1389 FT_UINT32
, BASE_DEC
, NULL
, 0,
1390 "SEQUENCE_OF_PolicyInformation", HFILL
}},
1391 { &hf_ess_policies_item
,
1392 { "PolicyInformation", "ess.PolicyInformation_element",
1393 FT_NONE
, BASE_NONE
, NULL
, 0,
1396 { "certs", "ess.certs",
1397 FT_UINT32
, BASE_DEC
, NULL
, 0,
1398 "SEQUENCE_OF_ESSCertIDv2", HFILL
}},
1399 { &hf_ess_certsV2_item
,
1400 { "ESSCertIDv2", "ess.ESSCertIDv2_element",
1401 FT_NONE
, BASE_NONE
, NULL
, 0,
1403 { &hf_ess_hashAlgorithm
,
1404 { "hashAlgorithm", "ess.hashAlgorithm_element",
1405 FT_NONE
, BASE_NONE
, NULL
, 0,
1406 "AlgorithmIdentifier", HFILL
}},
1408 { "certHash", "ess.certHash",
1409 FT_BYTES
, BASE_NONE
, NULL
, 0,
1411 { &hf_ess_issuerSerial
,
1412 { "issuerSerial", "ess.issuerSerial_element",
1413 FT_NONE
, BASE_NONE
, NULL
, 0,
1416 { "issuer", "ess.issuer",
1417 FT_UINT32
, BASE_DEC
, NULL
, 0,
1418 "GeneralNames", HFILL
}},
1419 { &hf_ess_serialNumber
,
1420 { "serialNumber", "ess.serialNumber",
1421 FT_INT32
, BASE_DEC
, NULL
, 0,
1422 "CertificateSerialNumber", HFILL
}},
1424 /*--- End of included file: packet-ess-hfarr.c ---*/
1425 #line 153 "../../asn1/ess/packet-ess-template.c"
1428 /* List of subtrees */
1429 static gint
*ett
[] = {
1430 &ett_Category_attributes
,
1432 /*--- Included file: packet-ess-ettarr.c ---*/
1433 #line 1 "../../asn1/ess/packet-ess-ettarr.c"
1434 &ett_ess_ReceiptRequest
,
1435 &ett_ess_SEQUENCE_SIZE_1_ub_receiptsTo_OF_GeneralNames
,
1436 &ett_ess_ReceiptsFrom
,
1437 &ett_ess_SEQUENCE_OF_GeneralNames
,
1439 &ett_ess_ContentHints
,
1440 &ett_ess_ContentReference
,
1441 &ett_ess_ESSSecurityLabel
,
1442 &ett_ess_ESSPrivacyMark
,
1443 &ett_ess_SecurityCategories
,
1444 &ett_ess_SecurityCategory
,
1445 &ett_ess_RestrictiveTag
,
1446 &ett_ess_EnumeratedTag
,
1447 &ett_ess_SET_OF_SecurityAttribute
,
1448 &ett_ess_PermissiveTag
,
1449 &ett_ess_InformativeTag
,
1450 &ett_ess_FreeFormField
,
1451 &ett_ess_EquivalentLabels
,
1452 &ett_ess_MLExpansionHistory
,
1454 &ett_ess_EntityIdentifier
,
1455 &ett_ess_MLReceiptPolicy
,
1456 &ett_ess_SEQUENCE_SIZE_1_MAX_OF_GeneralNames
,
1457 &ett_ess_SigningCertificate
,
1458 &ett_ess_SEQUENCE_OF_ESSCertID
,
1459 &ett_ess_SEQUENCE_OF_PolicyInformation
,
1460 &ett_ess_SigningCertificateV2
,
1461 &ett_ess_SEQUENCE_OF_ESSCertIDv2
,
1462 &ett_ess_ESSCertIDv2
,
1464 &ett_ess_IssuerSerial
,
1466 /*--- End of included file: packet-ess-ettarr.c ---*/
1467 #line 159 "../../asn1/ess/packet-ess-template.c"
1470 static uat_field_t attributes_flds
[] = {
1471 UAT_FLD_CSTRING(ess_category_attributes
,oid
, "Tag Set", "Category Tag Set (Object Identifier)"),
1472 UAT_FLD_DEC(ess_category_attributes
,lacv
, "Value", "Label And Cert Value"),
1473 UAT_FLD_CSTRING(ess_category_attributes
,name
, "Name", "Category Name"),
1477 uat_t
*attributes_uat
= uat_new("ESS Category Attributes",
1478 sizeof(ess_category_attributes_t
),
1479 "ess_category_attributes",
1481 (void**) &ess_category_attributes
,
1482 &num_ess_category_attributes
,
1483 UAT_AFFECTS_DISSECTION
, /* affects dissection of packets, but not set of named fields */
1484 "ChEssCategoryAttributes",
1491 static module_t
*ess_module
;
1493 /* Register protocol */
1494 proto_ess
= proto_register_protocol(PNAME
, PSNAME
, PFNAME
);
1496 /* Register fields and subtrees */
1497 proto_register_field_array(proto_ess
, hf
, array_length(hf
));
1498 proto_register_subtree_array(ett
, array_length(ett
));
1500 ess_module
= prefs_register_protocol(proto_ess
, NULL
);
1502 prefs_register_uat_preference(ess_module
, "attributes_table",
1503 "ESS Category Attributes",
1504 "ESS category attributes translation table",
1510 /*--- proto_reg_handoff_ess -------------------------------------------*/
1511 void proto_reg_handoff_ess(void) {
1513 /*--- Included file: packet-ess-dis-tab.c ---*/
1514 #line 1 "../../asn1/ess/packet-ess-dis-tab.c"
1515 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.1", dissect_ReceiptRequest_PDU
, proto_ess
, "id-aa-receiptRequest");
1516 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.7", dissect_ContentIdentifier_PDU
, proto_ess
, "id-aa-contentIdentifier");
1517 register_ber_oid_dissector("1.2.840.113549.1.9.16.1.1", dissect_Receipt_PDU
, proto_ess
, "id-ct-receipt");
1518 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.4", dissect_ContentHints_PDU
, proto_ess
, "id-aa-contentHint");
1519 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.5", dissect_MsgSigDigest_PDU
, proto_ess
, "id-aa-msgSigDigest");
1520 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.10", dissect_ContentReference_PDU
, proto_ess
, "id-aa-contentReference");
1521 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.2", dissect_ess_ESSSecurityLabel_PDU
, proto_ess
, "id-aa-securityLabel");
1522 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.9", dissect_EquivalentLabels_PDU
, proto_ess
, "id-aa-equivalentLabels");
1523 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.3", dissect_MLExpansionHistory_PDU
, proto_ess
, "id-aa-mlExpandHistory");
1524 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.12", dissect_SigningCertificate_PDU
, proto_ess
, "id-aa-signingCertificate");
1525 register_ber_oid_dissector("1.2.840.113549.1.9.16.2.47", dissect_SigningCertificateV2_PDU
, proto_ess
, "id-aa-signingCertificateV2");
1526 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.0", dissect_RestrictiveTag_PDU
, proto_ess
, "id-restrictiveAttributes");
1527 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.1", dissect_EnumeratedTag_PDU
, proto_ess
, "id-enumeratedPermissiveAttributes");
1528 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.2", dissect_PermissiveTag_PDU
, proto_ess
, "id-permissiveAttributes");
1529 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.3", dissect_InformativeTag_PDU
, proto_ess
, "id-informativeAttributes");
1530 register_ber_oid_dissector("2.16.840.1.101.2.1.8.3.4", dissect_EnumeratedTag_PDU
, proto_ess
, "id-enumeratedRestrictiveAttributes");
1533 /*--- End of included file: packet-ess-dis-tab.c ---*/
1534 #line 204 "../../asn1/ess/packet-ess-template.c"