Use MAC address documentation range in filter examples
[metze/wireshark/wip.git] / epan / dissectors / packet-logotypecertextn.c
1 /* Do not modify this file. Changes will be overwritten.                      */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler       */
3 /* packet-logotypecertextn.c                                                  */
4 /* ../../tools/asn2wrs.py -b -p logotypecertextn -c ./logotypecertextn.cnf -s ./packet-logotypecertextn-template -D . -O ../../epan/dissectors LogotypeCertExtn.asn */
5
6 /* Input file: packet-logotypecertextn-template.c */
7
8 #line 1 "../../asn1/logotypecertextn/packet-logotypecertextn-template.c"
9 /* packet-logotypecertextn.c
10  * Routines for RFC3709 Logotype Certificate Extensions packet dissection
11  *   Ronnie Sahlberg 2004
12  *
13  * Wireshark - Network traffic analyzer
14  * By Gerald Combs <gerald@wireshark.org>
15  * Copyright 1998 Gerald Combs
16  *
17  * This program is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU General Public License
19  * as published by the Free Software Foundation; either version 2
20  * of the License, or (at your option) any later version.
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25  * GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
30  */
31
32 #include "config.h"
33
34 #include <epan/packet.h>
35
36 #include "packet-ber.h"
37 #include "packet-logotypecertextn.h"
38 #include "packet-x509af.h"
39
40 #define PNAME  "Logotype Certificate Extensions"
41 #define PSNAME "LogotypeCertExtn"
42 #define PFNAME "logotypecertextn"
43
44 void proto_register_logotypecertextn(void);
45 void proto_reg_handoff_logotypecertextn(void);
46
47 /* Initialize the protocol and registered fields */
48 static int proto_logotypecertextn = -1;
49
50 /*--- Included file: packet-logotypecertextn-hf.c ---*/
51 #line 1 "../../asn1/logotypecertextn/packet-logotypecertextn-hf.c"
52 static int hf_logotypecertextn_LogotypeExtn_PDU = -1;  /* LogotypeExtn */
53 static int hf_logotypecertextn_communityLogos = -1;  /* SEQUENCE_OF_LogotypeInfo */
54 static int hf_logotypecertextn_communityLogos_item = -1;  /* LogotypeInfo */
55 static int hf_logotypecertextn_issuerLogo = -1;   /* LogotypeInfo */
56 static int hf_logotypecertextn_subjectLogo = -1;  /* LogotypeInfo */
57 static int hf_logotypecertextn_otherLogos = -1;   /* SEQUENCE_OF_OtherLogotypeInfo */
58 static int hf_logotypecertextn_otherLogos_item = -1;  /* OtherLogotypeInfo */
59 static int hf_logotypecertextn_direct = -1;       /* LogotypeData */
60 static int hf_logotypecertextn_indirect = -1;     /* LogotypeReference */
61 static int hf_logotypecertextn_image = -1;        /* SEQUENCE_OF_LogotypeImage */
62 static int hf_logotypecertextn_image_item = -1;   /* LogotypeImage */
63 static int hf_logotypecertextn_audio = -1;        /* SEQUENCE_OF_LogotypeAudio */
64 static int hf_logotypecertextn_audio_item = -1;   /* LogotypeAudio */
65 static int hf_logotypecertextn_imageDetails = -1;  /* LogotypeDetails */
66 static int hf_logotypecertextn_imageInfo = -1;    /* LogotypeImageInfo */
67 static int hf_logotypecertextn_audioDetails = -1;  /* LogotypeDetails */
68 static int hf_logotypecertextn_audioInfo = -1;    /* LogotypeAudioInfo */
69 static int hf_logotypecertextn_mediaType = -1;    /* IA5String */
70 static int hf_logotypecertextn_logotypeHash = -1;  /* SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue */
71 static int hf_logotypecertextn_logotypeHash_item = -1;  /* HashAlgAndValue */
72 static int hf_logotypecertextn_logotypeURI = -1;  /* T_logotypeURI */
73 static int hf_logotypecertextn_logotypeURI_item = -1;  /* T_logotypeURI_item */
74 static int hf_logotypecertextn_type = -1;         /* LogotypeImageType */
75 static int hf_logotypecertextn_fileSize = -1;     /* INTEGER */
76 static int hf_logotypecertextn_xSize = -1;        /* INTEGER */
77 static int hf_logotypecertextn_ySize = -1;        /* INTEGER */
78 static int hf_logotypecertextn_resolution = -1;   /* LogotypeImageResolution */
79 static int hf_logotypecertextn_language = -1;     /* IA5String */
80 static int hf_logotypecertextn_numBits = -1;      /* INTEGER */
81 static int hf_logotypecertextn_tableSize = -1;    /* INTEGER */
82 static int hf_logotypecertextn_playTime = -1;     /* INTEGER */
83 static int hf_logotypecertextn_channels = -1;     /* INTEGER */
84 static int hf_logotypecertextn_sampleRate = -1;   /* INTEGER */
85 static int hf_logotypecertextn_logotypeType = -1;  /* OBJECT_IDENTIFIER */
86 static int hf_logotypecertextn_info = -1;         /* LogotypeInfo */
87 static int hf_logotypecertextn_refStructHash = -1;  /* SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue */
88 static int hf_logotypecertextn_refStructHash_item = -1;  /* HashAlgAndValue */
89 static int hf_logotypecertextn_refStructURI = -1;  /* T_refStructURI */
90 static int hf_logotypecertextn_refStructURI_item = -1;  /* T_refStructURI_item */
91 static int hf_logotypecertextn_hashAlg = -1;      /* AlgorithmIdentifier */
92 static int hf_logotypecertextn_hashValue = -1;    /* OCTET_STRING */
93
94 /*--- End of included file: packet-logotypecertextn-hf.c ---*/
95 #line 42 "../../asn1/logotypecertextn/packet-logotypecertextn-template.c"
96
97 /* Initialize the subtree pointers */
98
99 /*--- Included file: packet-logotypecertextn-ett.c ---*/
100 #line 1 "../../asn1/logotypecertextn/packet-logotypecertextn-ett.c"
101 static gint ett_logotypecertextn_LogotypeExtn = -1;
102 static gint ett_logotypecertextn_SEQUENCE_OF_LogotypeInfo = -1;
103 static gint ett_logotypecertextn_SEQUENCE_OF_OtherLogotypeInfo = -1;
104 static gint ett_logotypecertextn_LogotypeInfo = -1;
105 static gint ett_logotypecertextn_LogotypeData = -1;
106 static gint ett_logotypecertextn_SEQUENCE_OF_LogotypeImage = -1;
107 static gint ett_logotypecertextn_SEQUENCE_OF_LogotypeAudio = -1;
108 static gint ett_logotypecertextn_LogotypeImage = -1;
109 static gint ett_logotypecertextn_LogotypeAudio = -1;
110 static gint ett_logotypecertextn_LogotypeDetails = -1;
111 static gint ett_logotypecertextn_SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue = -1;
112 static gint ett_logotypecertextn_T_logotypeURI = -1;
113 static gint ett_logotypecertextn_LogotypeImageInfo = -1;
114 static gint ett_logotypecertextn_LogotypeImageResolution = -1;
115 static gint ett_logotypecertextn_LogotypeAudioInfo = -1;
116 static gint ett_logotypecertextn_OtherLogotypeInfo = -1;
117 static gint ett_logotypecertextn_LogotypeReference = -1;
118 static gint ett_logotypecertextn_T_refStructURI = -1;
119 static gint ett_logotypecertextn_HashAlgAndValue = -1;
120
121 /*--- End of included file: packet-logotypecertextn-ett.c ---*/
122 #line 45 "../../asn1/logotypecertextn/packet-logotypecertextn-template.c"
123
124
125
126 /*--- Included file: packet-logotypecertextn-fn.c ---*/
127 #line 1 "../../asn1/logotypecertextn/packet-logotypecertextn-fn.c"
128
129
130 static int
131 dissect_logotypecertextn_IA5String(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
132   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
133                                             actx, tree, tvb, offset, hf_index,
134                                             NULL);
135
136   return offset;
137 }
138
139
140
141 static int
142 dissect_logotypecertextn_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_) {
143   offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
144                                        NULL);
145
146   return offset;
147 }
148
149
150 static const ber_sequence_t HashAlgAndValue_sequence[] = {
151   { &hf_logotypecertextn_hashAlg, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_x509af_AlgorithmIdentifier },
152   { &hf_logotypecertextn_hashValue, BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_OCTET_STRING },
153   { NULL, 0, 0, 0, NULL }
154 };
155
156 static int
157 dissect_logotypecertextn_HashAlgAndValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
158   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
159                                    HashAlgAndValue_sequence, hf_index, ett_logotypecertextn_HashAlgAndValue);
160
161   return offset;
162 }
163
164
165 static const ber_sequence_t SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue_sequence_of[1] = {
166   { &hf_logotypecertextn_logotypeHash_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_HashAlgAndValue },
167 };
168
169 static int
170 dissect_logotypecertextn_SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
171   offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
172                                       SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue_sequence_of, hf_index, ett_logotypecertextn_SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue);
173
174   return offset;
175 }
176
177
178
179 static int
180 dissect_logotypecertextn_T_logotypeURI_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
181   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
182                                             actx, tree, tvb, offset, hf_index,
183                                             NULL);
184
185 #line 16 "../../asn1/logotypecertextn/logotypecertextn.cnf"
186            PROTO_ITEM_SET_URL(actx->created_item);
187
188
189   return offset;
190 }
191
192
193 static const ber_sequence_t T_logotypeURI_sequence_of[1] = {
194   { &hf_logotypecertextn_logotypeURI_item, BER_CLASS_UNI, BER_UNI_TAG_IA5String, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_T_logotypeURI_item },
195 };
196
197 static int
198 dissect_logotypecertextn_T_logotypeURI(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                                       T_logotypeURI_sequence_of, hf_index, ett_logotypecertextn_T_logotypeURI);
201
202   return offset;
203 }
204
205
206 static const ber_sequence_t LogotypeDetails_sequence[] = {
207   { &hf_logotypecertextn_mediaType, BER_CLASS_UNI, BER_UNI_TAG_IA5String, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_IA5String },
208   { &hf_logotypecertextn_logotypeHash, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue },
209   { &hf_logotypecertextn_logotypeURI, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_T_logotypeURI },
210   { NULL, 0, 0, 0, NULL }
211 };
212
213 static int
214 dissect_logotypecertextn_LogotypeDetails(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
215   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
216                                    LogotypeDetails_sequence, hf_index, ett_logotypecertextn_LogotypeDetails);
217
218   return offset;
219 }
220
221
222 static const value_string logotypecertextn_LogotypeImageType_vals[] = {
223   {   0, "grayScale" },
224   {   1, "color" },
225   { 0, NULL }
226 };
227
228
229 static int
230 dissect_logotypecertextn_LogotypeImageType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
231   offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
232                                                 NULL);
233
234   return offset;
235 }
236
237
238
239 static int
240 dissect_logotypecertextn_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
241   offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
242                                                 NULL);
243
244   return offset;
245 }
246
247
248 static const value_string logotypecertextn_LogotypeImageResolution_vals[] = {
249   {   1, "numBits" },
250   {   2, "tableSize" },
251   { 0, NULL }
252 };
253
254 static const ber_choice_t LogotypeImageResolution_choice[] = {
255   {   1, &hf_logotypecertextn_numBits, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_logotypecertextn_INTEGER },
256   {   2, &hf_logotypecertextn_tableSize, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_logotypecertextn_INTEGER },
257   { 0, NULL, 0, 0, 0, NULL }
258 };
259
260 static int
261 dissect_logotypecertextn_LogotypeImageResolution(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_choice(actx, tree, tvb, offset,
263                                  LogotypeImageResolution_choice, hf_index, ett_logotypecertextn_LogotypeImageResolution,
264                                  NULL);
265
266   return offset;
267 }
268
269
270 static const ber_sequence_t LogotypeImageInfo_sequence[] = {
271   { &hf_logotypecertextn_type, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_logotypecertextn_LogotypeImageType },
272   { &hf_logotypecertextn_fileSize, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_INTEGER },
273   { &hf_logotypecertextn_xSize, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_INTEGER },
274   { &hf_logotypecertextn_ySize, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_INTEGER },
275   { &hf_logotypecertextn_resolution, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_logotypecertextn_LogotypeImageResolution },
276   { &hf_logotypecertextn_language, BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_logotypecertextn_IA5String },
277   { NULL, 0, 0, 0, NULL }
278 };
279
280 static int
281 dissect_logotypecertextn_LogotypeImageInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
282   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
283                                    LogotypeImageInfo_sequence, hf_index, ett_logotypecertextn_LogotypeImageInfo);
284
285   return offset;
286 }
287
288
289 static const ber_sequence_t LogotypeImage_sequence[] = {
290   { &hf_logotypecertextn_imageDetails, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_LogotypeDetails },
291   { &hf_logotypecertextn_imageInfo, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_LogotypeImageInfo },
292   { NULL, 0, 0, 0, NULL }
293 };
294
295 static int
296 dissect_logotypecertextn_LogotypeImage(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
297   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
298                                    LogotypeImage_sequence, hf_index, ett_logotypecertextn_LogotypeImage);
299
300   return offset;
301 }
302
303
304 static const ber_sequence_t SEQUENCE_OF_LogotypeImage_sequence_of[1] = {
305   { &hf_logotypecertextn_image_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_LogotypeImage },
306 };
307
308 static int
309 dissect_logotypecertextn_SEQUENCE_OF_LogotypeImage(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
310   offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
311                                       SEQUENCE_OF_LogotypeImage_sequence_of, hf_index, ett_logotypecertextn_SEQUENCE_OF_LogotypeImage);
312
313   return offset;
314 }
315
316
317 static const ber_sequence_t LogotypeAudioInfo_sequence[] = {
318   { &hf_logotypecertextn_fileSize, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_INTEGER },
319   { &hf_logotypecertextn_playTime, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_INTEGER },
320   { &hf_logotypecertextn_channels, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_INTEGER },
321   { &hf_logotypecertextn_sampleRate, BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_logotypecertextn_INTEGER },
322   { &hf_logotypecertextn_language, BER_CLASS_CON, 4, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_logotypecertextn_IA5String },
323   { NULL, 0, 0, 0, NULL }
324 };
325
326 static int
327 dissect_logotypecertextn_LogotypeAudioInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
328   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
329                                    LogotypeAudioInfo_sequence, hf_index, ett_logotypecertextn_LogotypeAudioInfo);
330
331   return offset;
332 }
333
334
335 static const ber_sequence_t LogotypeAudio_sequence[] = {
336   { &hf_logotypecertextn_audioDetails, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_LogotypeDetails },
337   { &hf_logotypecertextn_audioInfo, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_LogotypeAudioInfo },
338   { NULL, 0, 0, 0, NULL }
339 };
340
341 static int
342 dissect_logotypecertextn_LogotypeAudio(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
343   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
344                                    LogotypeAudio_sequence, hf_index, ett_logotypecertextn_LogotypeAudio);
345
346   return offset;
347 }
348
349
350 static const ber_sequence_t SEQUENCE_OF_LogotypeAudio_sequence_of[1] = {
351   { &hf_logotypecertextn_audio_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_LogotypeAudio },
352 };
353
354 static int
355 dissect_logotypecertextn_SEQUENCE_OF_LogotypeAudio(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
356   offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
357                                       SEQUENCE_OF_LogotypeAudio_sequence_of, hf_index, ett_logotypecertextn_SEQUENCE_OF_LogotypeAudio);
358
359   return offset;
360 }
361
362
363 static const ber_sequence_t LogotypeData_sequence[] = {
364   { &hf_logotypecertextn_image, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_SEQUENCE_OF_LogotypeImage },
365   { &hf_logotypecertextn_audio, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_logotypecertextn_SEQUENCE_OF_LogotypeAudio },
366   { NULL, 0, 0, 0, NULL }
367 };
368
369 static int
370 dissect_logotypecertextn_LogotypeData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
371   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
372                                    LogotypeData_sequence, hf_index, ett_logotypecertextn_LogotypeData);
373
374   return offset;
375 }
376
377
378
379 static int
380 dissect_logotypecertextn_T_refStructURI_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
381   offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
382                                             actx, tree, tvb, offset, hf_index,
383                                             NULL);
384
385 #line 19 "../../asn1/logotypecertextn/logotypecertextn.cnf"
386            PROTO_ITEM_SET_URL(actx->created_item);
387
388
389   return offset;
390 }
391
392
393 static const ber_sequence_t T_refStructURI_sequence_of[1] = {
394   { &hf_logotypecertextn_refStructURI_item, BER_CLASS_UNI, BER_UNI_TAG_IA5String, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_T_refStructURI_item },
395 };
396
397 static int
398 dissect_logotypecertextn_T_refStructURI(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
399   offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
400                                       T_refStructURI_sequence_of, hf_index, ett_logotypecertextn_T_refStructURI);
401
402   return offset;
403 }
404
405
406 static const ber_sequence_t LogotypeReference_sequence[] = {
407   { &hf_logotypecertextn_refStructHash, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue },
408   { &hf_logotypecertextn_refStructURI, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_T_refStructURI },
409   { NULL, 0, 0, 0, NULL }
410 };
411
412 static int
413 dissect_logotypecertextn_LogotypeReference(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
414   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
415                                    LogotypeReference_sequence, hf_index, ett_logotypecertextn_LogotypeReference);
416
417   return offset;
418 }
419
420
421 static const value_string logotypecertextn_LogotypeInfo_vals[] = {
422   {   0, "direct" },
423   {   1, "indirect" },
424   { 0, NULL }
425 };
426
427 static const ber_choice_t LogotypeInfo_choice[] = {
428   {   0, &hf_logotypecertextn_direct, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_logotypecertextn_LogotypeData },
429   {   1, &hf_logotypecertextn_indirect, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_logotypecertextn_LogotypeReference },
430   { 0, NULL, 0, 0, 0, NULL }
431 };
432
433 static int
434 dissect_logotypecertextn_LogotypeInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
435   offset = dissect_ber_choice(actx, tree, tvb, offset,
436                                  LogotypeInfo_choice, hf_index, ett_logotypecertextn_LogotypeInfo,
437                                  NULL);
438
439   return offset;
440 }
441
442
443 static const ber_sequence_t SEQUENCE_OF_LogotypeInfo_sequence_of[1] = {
444   { &hf_logotypecertextn_communityLogos_item, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_logotypecertextn_LogotypeInfo },
445 };
446
447 static int
448 dissect_logotypecertextn_SEQUENCE_OF_LogotypeInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
449   offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
450                                       SEQUENCE_OF_LogotypeInfo_sequence_of, hf_index, ett_logotypecertextn_SEQUENCE_OF_LogotypeInfo);
451
452   return offset;
453 }
454
455
456
457 static int
458 dissect_logotypecertextn_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_) {
459   offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
460
461   return offset;
462 }
463
464
465 static const ber_sequence_t OtherLogotypeInfo_sequence[] = {
466   { &hf_logotypecertextn_logotypeType, BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_OBJECT_IDENTIFIER },
467   { &hf_logotypecertextn_info, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_logotypecertextn_LogotypeInfo },
468   { NULL, 0, 0, 0, NULL }
469 };
470
471 static int
472 dissect_logotypecertextn_OtherLogotypeInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
473   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
474                                    OtherLogotypeInfo_sequence, hf_index, ett_logotypecertextn_OtherLogotypeInfo);
475
476   return offset;
477 }
478
479
480 static const ber_sequence_t SEQUENCE_OF_OtherLogotypeInfo_sequence_of[1] = {
481   { &hf_logotypecertextn_otherLogos_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_logotypecertextn_OtherLogotypeInfo },
482 };
483
484 static int
485 dissect_logotypecertextn_SEQUENCE_OF_OtherLogotypeInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
486   offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
487                                       SEQUENCE_OF_OtherLogotypeInfo_sequence_of, hf_index, ett_logotypecertextn_SEQUENCE_OF_OtherLogotypeInfo);
488
489   return offset;
490 }
491
492
493 static const ber_sequence_t LogotypeExtn_sequence[] = {
494   { &hf_logotypecertextn_communityLogos, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_logotypecertextn_SEQUENCE_OF_LogotypeInfo },
495   { &hf_logotypecertextn_issuerLogo, BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_NOTCHKTAG, dissect_logotypecertextn_LogotypeInfo },
496   { &hf_logotypecertextn_subjectLogo, BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_NOTCHKTAG, dissect_logotypecertextn_LogotypeInfo },
497   { &hf_logotypecertextn_otherLogos, BER_CLASS_CON, 3, BER_FLAGS_OPTIONAL, dissect_logotypecertextn_SEQUENCE_OF_OtherLogotypeInfo },
498   { NULL, 0, 0, 0, NULL }
499 };
500
501 static int
502 dissect_logotypecertextn_LogotypeExtn(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
503   offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
504                                    LogotypeExtn_sequence, hf_index, ett_logotypecertextn_LogotypeExtn);
505
506   return offset;
507 }
508
509 /*--- PDUs ---*/
510
511 static int dissect_LogotypeExtn_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
512   int offset = 0;
513   asn1_ctx_t asn1_ctx;
514   asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
515   offset = dissect_logotypecertextn_LogotypeExtn(FALSE, tvb, offset, &asn1_ctx, tree, hf_logotypecertextn_LogotypeExtn_PDU);
516   return offset;
517 }
518
519
520 /*--- End of included file: packet-logotypecertextn-fn.c ---*/
521 #line 48 "../../asn1/logotypecertextn/packet-logotypecertextn-template.c"
522
523
524 /*--- proto_register_logotypecertextn ----------------------------------------------*/
525 void proto_register_logotypecertextn(void) {
526
527   /* List of fields */
528   static hf_register_info hf[] = {
529
530 /*--- Included file: packet-logotypecertextn-hfarr.c ---*/
531 #line 1 "../../asn1/logotypecertextn/packet-logotypecertextn-hfarr.c"
532     { &hf_logotypecertextn_LogotypeExtn_PDU,
533       { "LogotypeExtn", "logotypecertextn.LogotypeExtn_element",
534         FT_NONE, BASE_NONE, NULL, 0,
535         NULL, HFILL }},
536     { &hf_logotypecertextn_communityLogos,
537       { "communityLogos", "logotypecertextn.communityLogos",
538         FT_UINT32, BASE_DEC, NULL, 0,
539         "SEQUENCE_OF_LogotypeInfo", HFILL }},
540     { &hf_logotypecertextn_communityLogos_item,
541       { "LogotypeInfo", "logotypecertextn.LogotypeInfo",
542         FT_UINT32, BASE_DEC, VALS(logotypecertextn_LogotypeInfo_vals), 0,
543         NULL, HFILL }},
544     { &hf_logotypecertextn_issuerLogo,
545       { "issuerLogo", "logotypecertextn.issuerLogo",
546         FT_UINT32, BASE_DEC, VALS(logotypecertextn_LogotypeInfo_vals), 0,
547         "LogotypeInfo", HFILL }},
548     { &hf_logotypecertextn_subjectLogo,
549       { "subjectLogo", "logotypecertextn.subjectLogo",
550         FT_UINT32, BASE_DEC, VALS(logotypecertextn_LogotypeInfo_vals), 0,
551         "LogotypeInfo", HFILL }},
552     { &hf_logotypecertextn_otherLogos,
553       { "otherLogos", "logotypecertextn.otherLogos",
554         FT_UINT32, BASE_DEC, NULL, 0,
555         "SEQUENCE_OF_OtherLogotypeInfo", HFILL }},
556     { &hf_logotypecertextn_otherLogos_item,
557       { "OtherLogotypeInfo", "logotypecertextn.OtherLogotypeInfo_element",
558         FT_NONE, BASE_NONE, NULL, 0,
559         NULL, HFILL }},
560     { &hf_logotypecertextn_direct,
561       { "direct", "logotypecertextn.direct_element",
562         FT_NONE, BASE_NONE, NULL, 0,
563         "LogotypeData", HFILL }},
564     { &hf_logotypecertextn_indirect,
565       { "indirect", "logotypecertextn.indirect_element",
566         FT_NONE, BASE_NONE, NULL, 0,
567         "LogotypeReference", HFILL }},
568     { &hf_logotypecertextn_image,
569       { "image", "logotypecertextn.image",
570         FT_UINT32, BASE_DEC, NULL, 0,
571         "SEQUENCE_OF_LogotypeImage", HFILL }},
572     { &hf_logotypecertextn_image_item,
573       { "LogotypeImage", "logotypecertextn.LogotypeImage_element",
574         FT_NONE, BASE_NONE, NULL, 0,
575         NULL, HFILL }},
576     { &hf_logotypecertextn_audio,
577       { "audio", "logotypecertextn.audio",
578         FT_UINT32, BASE_DEC, NULL, 0,
579         "SEQUENCE_OF_LogotypeAudio", HFILL }},
580     { &hf_logotypecertextn_audio_item,
581       { "LogotypeAudio", "logotypecertextn.LogotypeAudio_element",
582         FT_NONE, BASE_NONE, NULL, 0,
583         NULL, HFILL }},
584     { &hf_logotypecertextn_imageDetails,
585       { "imageDetails", "logotypecertextn.imageDetails_element",
586         FT_NONE, BASE_NONE, NULL, 0,
587         "LogotypeDetails", HFILL }},
588     { &hf_logotypecertextn_imageInfo,
589       { "imageInfo", "logotypecertextn.imageInfo_element",
590         FT_NONE, BASE_NONE, NULL, 0,
591         "LogotypeImageInfo", HFILL }},
592     { &hf_logotypecertextn_audioDetails,
593       { "audioDetails", "logotypecertextn.audioDetails_element",
594         FT_NONE, BASE_NONE, NULL, 0,
595         "LogotypeDetails", HFILL }},
596     { &hf_logotypecertextn_audioInfo,
597       { "audioInfo", "logotypecertextn.audioInfo_element",
598         FT_NONE, BASE_NONE, NULL, 0,
599         "LogotypeAudioInfo", HFILL }},
600     { &hf_logotypecertextn_mediaType,
601       { "mediaType", "logotypecertextn.mediaType",
602         FT_STRING, BASE_NONE, NULL, 0,
603         "IA5String", HFILL }},
604     { &hf_logotypecertextn_logotypeHash,
605       { "logotypeHash", "logotypecertextn.logotypeHash",
606         FT_UINT32, BASE_DEC, NULL, 0,
607         "SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue", HFILL }},
608     { &hf_logotypecertextn_logotypeHash_item,
609       { "HashAlgAndValue", "logotypecertextn.HashAlgAndValue_element",
610         FT_NONE, BASE_NONE, NULL, 0,
611         NULL, HFILL }},
612     { &hf_logotypecertextn_logotypeURI,
613       { "logotypeURI", "logotypecertextn.logotypeURI",
614         FT_UINT32, BASE_DEC, NULL, 0,
615         NULL, HFILL }},
616     { &hf_logotypecertextn_logotypeURI_item,
617       { "logotypeURI item", "logotypecertextn.logotypeURI_item",
618         FT_STRING, BASE_NONE, NULL, 0,
619         NULL, HFILL }},
620     { &hf_logotypecertextn_type,
621       { "type", "logotypecertextn.type",
622         FT_INT32, BASE_DEC, VALS(logotypecertextn_LogotypeImageType_vals), 0,
623         "LogotypeImageType", HFILL }},
624     { &hf_logotypecertextn_fileSize,
625       { "fileSize", "logotypecertextn.fileSize",
626         FT_INT32, BASE_DEC, NULL, 0,
627         "INTEGER", HFILL }},
628     { &hf_logotypecertextn_xSize,
629       { "xSize", "logotypecertextn.xSize",
630         FT_INT32, BASE_DEC, NULL, 0,
631         "INTEGER", HFILL }},
632     { &hf_logotypecertextn_ySize,
633       { "ySize", "logotypecertextn.ySize",
634         FT_INT32, BASE_DEC, NULL, 0,
635         "INTEGER", HFILL }},
636     { &hf_logotypecertextn_resolution,
637       { "resolution", "logotypecertextn.resolution",
638         FT_UINT32, BASE_DEC, VALS(logotypecertextn_LogotypeImageResolution_vals), 0,
639         "LogotypeImageResolution", HFILL }},
640     { &hf_logotypecertextn_language,
641       { "language", "logotypecertextn.language",
642         FT_STRING, BASE_NONE, NULL, 0,
643         "IA5String", HFILL }},
644     { &hf_logotypecertextn_numBits,
645       { "numBits", "logotypecertextn.numBits",
646         FT_INT32, BASE_DEC, NULL, 0,
647         "INTEGER", HFILL }},
648     { &hf_logotypecertextn_tableSize,
649       { "tableSize", "logotypecertextn.tableSize",
650         FT_INT32, BASE_DEC, NULL, 0,
651         "INTEGER", HFILL }},
652     { &hf_logotypecertextn_playTime,
653       { "playTime", "logotypecertextn.playTime",
654         FT_INT32, BASE_DEC, NULL, 0,
655         "INTEGER", HFILL }},
656     { &hf_logotypecertextn_channels,
657       { "channels", "logotypecertextn.channels",
658         FT_INT32, BASE_DEC, NULL, 0,
659         "INTEGER", HFILL }},
660     { &hf_logotypecertextn_sampleRate,
661       { "sampleRate", "logotypecertextn.sampleRate",
662         FT_INT32, BASE_DEC, NULL, 0,
663         "INTEGER", HFILL }},
664     { &hf_logotypecertextn_logotypeType,
665       { "logotypeType", "logotypecertextn.logotypeType",
666         FT_OID, BASE_NONE, NULL, 0,
667         "OBJECT_IDENTIFIER", HFILL }},
668     { &hf_logotypecertextn_info,
669       { "info", "logotypecertextn.info",
670         FT_UINT32, BASE_DEC, VALS(logotypecertextn_LogotypeInfo_vals), 0,
671         "LogotypeInfo", HFILL }},
672     { &hf_logotypecertextn_refStructHash,
673       { "refStructHash", "logotypecertextn.refStructHash",
674         FT_UINT32, BASE_DEC, NULL, 0,
675         "SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue", HFILL }},
676     { &hf_logotypecertextn_refStructHash_item,
677       { "HashAlgAndValue", "logotypecertextn.HashAlgAndValue_element",
678         FT_NONE, BASE_NONE, NULL, 0,
679         NULL, HFILL }},
680     { &hf_logotypecertextn_refStructURI,
681       { "refStructURI", "logotypecertextn.refStructURI",
682         FT_UINT32, BASE_DEC, NULL, 0,
683         NULL, HFILL }},
684     { &hf_logotypecertextn_refStructURI_item,
685       { "refStructURI item", "logotypecertextn.refStructURI_item",
686         FT_STRING, BASE_NONE, NULL, 0,
687         NULL, HFILL }},
688     { &hf_logotypecertextn_hashAlg,
689       { "hashAlg", "logotypecertextn.hashAlg_element",
690         FT_NONE, BASE_NONE, NULL, 0,
691         "AlgorithmIdentifier", HFILL }},
692     { &hf_logotypecertextn_hashValue,
693       { "hashValue", "logotypecertextn.hashValue",
694         FT_BYTES, BASE_NONE, NULL, 0,
695         "OCTET_STRING", HFILL }},
696
697 /*--- End of included file: packet-logotypecertextn-hfarr.c ---*/
698 #line 56 "../../asn1/logotypecertextn/packet-logotypecertextn-template.c"
699   };
700
701   /* List of subtrees */
702   static gint *ett[] = {
703
704 /*--- Included file: packet-logotypecertextn-ettarr.c ---*/
705 #line 1 "../../asn1/logotypecertextn/packet-logotypecertextn-ettarr.c"
706     &ett_logotypecertextn_LogotypeExtn,
707     &ett_logotypecertextn_SEQUENCE_OF_LogotypeInfo,
708     &ett_logotypecertextn_SEQUENCE_OF_OtherLogotypeInfo,
709     &ett_logotypecertextn_LogotypeInfo,
710     &ett_logotypecertextn_LogotypeData,
711     &ett_logotypecertextn_SEQUENCE_OF_LogotypeImage,
712     &ett_logotypecertextn_SEQUENCE_OF_LogotypeAudio,
713     &ett_logotypecertextn_LogotypeImage,
714     &ett_logotypecertextn_LogotypeAudio,
715     &ett_logotypecertextn_LogotypeDetails,
716     &ett_logotypecertextn_SEQUENCE_SIZE_1_MAX_OF_HashAlgAndValue,
717     &ett_logotypecertextn_T_logotypeURI,
718     &ett_logotypecertextn_LogotypeImageInfo,
719     &ett_logotypecertextn_LogotypeImageResolution,
720     &ett_logotypecertextn_LogotypeAudioInfo,
721     &ett_logotypecertextn_OtherLogotypeInfo,
722     &ett_logotypecertextn_LogotypeReference,
723     &ett_logotypecertextn_T_refStructURI,
724     &ett_logotypecertextn_HashAlgAndValue,
725
726 /*--- End of included file: packet-logotypecertextn-ettarr.c ---*/
727 #line 61 "../../asn1/logotypecertextn/packet-logotypecertextn-template.c"
728   };
729
730   /* Register protocol */
731   proto_logotypecertextn = proto_register_protocol(PNAME, PSNAME, PFNAME);
732
733   /* Register fields and subtrees */
734   proto_register_field_array(proto_logotypecertextn, hf, array_length(hf));
735   proto_register_subtree_array(ett, array_length(ett));
736
737 }
738
739
740 /*--- proto_reg_handoff_logotypecertextn -------------------------------------------*/
741 void proto_reg_handoff_logotypecertextn(void) {
742
743 /*--- Included file: packet-logotypecertextn-dis-tab.c ---*/
744 #line 1 "../../asn1/logotypecertextn/packet-logotypecertextn-dis-tab.c"
745   new_register_ber_oid_dissector("1.3.6.1.5.5.7.1.12", dissect_LogotypeExtn_PDU, proto_logotypecertextn, "id-pe-logotype");
746   new_register_ber_oid_dissector("1.3.6.1.5.5.7.20.1", dissect_LogotypeExtn_PDU, proto_logotypecertextn, "id-pe-logo-loyalty");
747   new_register_ber_oid_dissector("1.3.6.1.5.5.7.20.2", dissect_LogotypeExtn_PDU, proto_logotypecertextn, "id-pe-logo-background");
748
749
750 /*--- End of included file: packet-logotypecertextn-dis-tab.c ---*/
751 #line 76 "../../asn1/logotypecertextn/packet-logotypecertextn-template.c"
752 }
753