1 /* Do not modify this file. */
2 /* It is created automatically by the ASN.1 to Ethereal dissector compiler */
3 /* ./packet-pkix1explicit.c */
4 /* ../../tools/asn2eth.py -e -X -b -p pkix1explicit -c pkix1explicit.cnf -s packet-pkix1explicit-template PKIX1EXPLICIT93.asn */
6 /* Input file: packet-pkix1explicit-template.c */
8 #define BER_UNI_TAG_TeletexString 20 /* workaround bug in asn2eth */
10 /* packet-pkix1explicit.c
11 * Routines for PKIX1Explitic packet dissection
13 * $Id: packet-pkix1explicit-template.c 12826 2004-12-24 12:16:27Z sahlberg $
15 * Ethereal - Network traffic analyzer
16 * By Gerald Combs <gerald@ethereal.com>
17 * Copyright 1998 Gerald Combs
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation; either version 2
22 * of the License, or (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39 #include <epan/packet.h>
40 #include <epan/conversation.h>
45 #include "packet-ber.h"
46 #include "packet-pkix1explicit.h"
47 #include "packet-x509af.h"
48 #include "packet-x509if.h"
49 #include "packet-x509ce.h"
51 #define PNAME "PKIX1Explitit"
52 #define PSNAME "PKIX1EXPLICIT"
53 #define PFNAME "pkix1explicit"
55 /* Initialize the protocol and registered fields */
56 static int proto_pkix1explicit = -1;
57 static int hf_pkix1explicit_object_identifier_id = -1;
59 /*--- Included file: packet-pkix1explicit-hf.c ---*/
61 static int hf_pkix1explicit_DomainParameters_PDU = -1; /* DomainParameters */
62 static int hf_pkix1explicit_DirectoryString_PDU = -1; /* DirectoryString */
63 static int hf_pkix1explicit_Extensions_item = -1; /* Extension */
64 static int hf_pkix1explicit_extnId = -1; /* T_extnId */
65 static int hf_pkix1explicit_critical = -1; /* BOOLEAN */
66 static int hf_pkix1explicit_extnValue = -1; /* T_extnValue */
67 static int hf_pkix1explicit_p = -1; /* INTEGER */
68 static int hf_pkix1explicit_g = -1; /* INTEGER */
69 static int hf_pkix1explicit_q = -1; /* INTEGER */
70 static int hf_pkix1explicit_j = -1; /* INTEGER */
71 static int hf_pkix1explicit_validationParms = -1; /* ValidationParms */
72 static int hf_pkix1explicit_seed = -1; /* BIT_STRING */
73 static int hf_pkix1explicit_pgenCounter = -1; /* INTEGER */
74 static int hf_pkix1explicit_type = -1; /* OBJECT_IDENTIFIER */
75 static int hf_pkix1explicit_value = -1; /* T_value */
76 static int hf_pkix1explicit_RDNSequence_item = -1; /* RelativeDistinguishedName */
77 static int hf_pkix1explicit_RelativeDistinguishedName_item = -1; /* AttributeTypeAndValue */
78 static int hf_pkix1explicit_type1 = -1; /* TeletexString */
79 static int hf_pkix1explicit_value1 = -1; /* TeletexString */
81 /*--- End of included file: packet-pkix1explicit-hf.c ---*/
84 /* Initialize the subtree pointers */
86 /*--- Included file: packet-pkix1explicit-ett.c ---*/
88 static gint ett_pkix1explicit_Extensions = -1;
89 static gint ett_pkix1explicit_Extension = -1;
90 static gint ett_pkix1explicit_DomainParameters = -1;
91 static gint ett_pkix1explicit_ValidationParms = -1;
92 static gint ett_pkix1explicit_AttributeTypeAndValue = -1;
93 static gint ett_pkix1explicit_RDNSequence = -1;
94 static gint ett_pkix1explicit_RelativeDistinguishedName = -1;
95 static gint ett_pkix1explicit_TeletexDomainDefinedAttribute = -1;
97 /*--- End of included file: packet-pkix1explicit-ett.c ---*/
101 static char object_identifier_id[64]; /*64 chars should be long enough? */
104 dissect_pkix1explicit_Certificate(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
105 offset = dissect_x509af_Certificate(implicit_tag, tvb, offset, pinfo, tree, hf_index);
110 dissect_pkix1explicit_CertificateList(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
111 offset = dissect_x509af_CertificateList(implicit_tag, tvb, offset, pinfo, tree, hf_index);
116 dissect_pkix1explicit_GeneralName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
117 offset = dissect_x509ce_GeneralName(implicit_tag, tvb, offset, pinfo, tree, hf_index);
122 dissect_pkix1explicit_Name(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
123 offset = dissect_x509if_Name(implicit_tag, tvb, offset, pinfo, tree, hf_index);
128 dissect_pkix1explicit_AlgorithmIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
129 offset = dissect_x509af_AlgorithmIdentifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
135 dissect_pkix1explicit_SubjectPublicKeyInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int hf_index) {
136 offset = dissect_x509af_SubjectPublicKeyInfo(implicit_tag, tvb, offset, pinfo, tree, hf_index);
143 /*--- Included file: packet-pkix1explicit-fn.c ---*/
145 /*--- Fields for imported types ---*/
151 dissect_pkix1explicit_CertificateSerialNumber(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
152 offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
159 dissect_pkix1explicit_T_extnId(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
160 offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
161 hf_pkix1explicit_object_identifier_id, object_identifier_id);
166 static int dissect_extnId(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
167 return dissect_pkix1explicit_T_extnId(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_extnId);
172 dissect_pkix1explicit_BOOLEAN(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
173 offset = dissect_ber_boolean(implicit_tag, pinfo, tree, tvb, offset, hf_index);
177 static int dissect_critical(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
178 return dissect_pkix1explicit_BOOLEAN(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_critical);
183 dissect_pkix1explicit_T_extnValue(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
188 /* skip past the T and L */
189 offset = dissect_ber_identifier(pinfo, tree, tvb, offset, &class, &pc, &tag);
190 offset = dissect_ber_length(pinfo, tree, tvb, offset, &len, &ind);
191 offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
197 static int dissect_extnValue(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
198 return dissect_pkix1explicit_T_extnValue(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_extnValue);
201 static const ber_sequence_t Extension_sequence[] = {
202 { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_extnId },
203 { BER_CLASS_UNI, BER_UNI_TAG_BOOLEAN, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_critical },
204 { BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_extnValue },
209 dissect_pkix1explicit_Extension(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
210 offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
211 Extension_sequence, hf_index, ett_pkix1explicit_Extension);
215 static int dissect_Extensions_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
216 return dissect_pkix1explicit_Extension(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_Extensions_item);
219 static const ber_sequence_t Extensions_sequence_of[1] = {
220 { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_Extensions_item },
224 dissect_pkix1explicit_Extensions(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
225 offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
226 Extensions_sequence_of, hf_index, ett_pkix1explicit_Extensions);
234 dissect_pkix1explicit_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
235 offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
239 static int dissect_p(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
240 return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_p);
242 static int dissect_g(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
243 return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_g);
245 static int dissect_q(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
246 return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_q);
248 static int dissect_j(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
249 return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_j);
251 static int dissect_pgenCounter(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
252 return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_pgenCounter);
257 dissect_pkix1explicit_BIT_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
258 offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
264 static int dissect_seed(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
265 return dissect_pkix1explicit_BIT_STRING(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_seed);
268 static const ber_sequence_t ValidationParms_sequence[] = {
269 { BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_seed },
270 { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pgenCounter },
275 dissect_pkix1explicit_ValidationParms(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
276 offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
277 ValidationParms_sequence, hf_index, ett_pkix1explicit_ValidationParms);
281 static int dissect_validationParms(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
282 return dissect_pkix1explicit_ValidationParms(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_validationParms);
285 static const ber_sequence_t DomainParameters_sequence[] = {
286 { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_p },
287 { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_g },
288 { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_q },
289 { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_j },
290 { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_validationParms },
295 dissect_pkix1explicit_DomainParameters(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
296 offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
297 DomainParameters_sequence, hf_index, ett_pkix1explicit_DomainParameters);
304 dissect_pkix1explicit_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
305 offset = dissect_ber_object_identifier(implicit_tag, pinfo, tree, tvb, offset,
310 static int dissect_type(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
311 return dissect_pkix1explicit_OBJECT_IDENTIFIER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_type);
317 dissect_pkix1explicit_T_value(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
318 offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
319 hf_pkix1explicit_object_identifier_id, object_identifier_id);
321 offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
326 static int dissect_value(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
327 return dissect_pkix1explicit_T_value(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_value);
330 static const ber_sequence_t AttributeTypeAndValue_sequence[] = {
331 { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_type },
332 { BER_CLASS_ANY, 0, BER_FLAGS_NOOWNTAG, dissect_value },
337 dissect_pkix1explicit_AttributeTypeAndValue(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
338 offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
339 AttributeTypeAndValue_sequence, hf_index, ett_pkix1explicit_AttributeTypeAndValue);
343 static int dissect_RelativeDistinguishedName_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
344 return dissect_pkix1explicit_AttributeTypeAndValue(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_RelativeDistinguishedName_item);
347 static const ber_sequence_t RelativeDistinguishedName_set_of[1] = {
348 { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_RelativeDistinguishedName_item },
352 dissect_pkix1explicit_RelativeDistinguishedName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
353 offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
354 RelativeDistinguishedName_set_of, hf_index, ett_pkix1explicit_RelativeDistinguishedName);
358 static int dissect_RDNSequence_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
359 return dissect_pkix1explicit_RelativeDistinguishedName(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_RDNSequence_item);
362 static const ber_sequence_t RDNSequence_sequence_of[1] = {
363 { BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_RDNSequence_item },
367 dissect_pkix1explicit_RDNSequence(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
368 offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
369 RDNSequence_sequence_of, hf_index, ett_pkix1explicit_RDNSequence);
376 dissect_pkix1explicit_DirectoryString(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
377 offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
384 const value_string pkix1explicit_TerminalType_vals[] = {
387 { 5, "g3-facsimile" },
388 { 6, "g4-facsimile" },
389 { 7, "ia5-terminal" },
396 dissect_pkix1explicit_TerminalType(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
397 offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
404 dissect_pkix1explicit_TeletexString(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
405 offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_TeletexString,
406 pinfo, tree, tvb, offset, hf_index,
411 static int dissect_type1(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
412 return dissect_pkix1explicit_TeletexString(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_type1);
414 static int dissect_value1(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
415 return dissect_pkix1explicit_TeletexString(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_value1);
418 static const ber_sequence_t TeletexDomainDefinedAttribute_sequence[] = {
419 { BER_CLASS_UNI, BER_UNI_TAG_TeletexString, BER_FLAGS_NOOWNTAG, dissect_type1 },
420 { BER_CLASS_UNI, BER_UNI_TAG_TeletexString, BER_FLAGS_NOOWNTAG, dissect_value1 },
425 dissect_pkix1explicit_TeletexDomainDefinedAttribute(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
426 offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
427 TeletexDomainDefinedAttribute_sequence, hf_index, ett_pkix1explicit_TeletexDomainDefinedAttribute);
434 static void dissect_DomainParameters_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
435 dissect_pkix1explicit_DomainParameters(FALSE, tvb, 0, pinfo, tree, hf_pkix1explicit_DomainParameters_PDU);
437 static void dissect_DirectoryString_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
438 dissect_pkix1explicit_DirectoryString(FALSE, tvb, 0, pinfo, tree, hf_pkix1explicit_DirectoryString_PDU);
442 /*--- End of included file: packet-pkix1explicit-fn.c ---*/
446 /*--- proto_register_pkix1explicit ----------------------------------------------*/
447 void proto_register_pkix1explicit(void) {
450 static hf_register_info hf[] = {
451 { &hf_pkix1explicit_object_identifier_id,
452 { "Id", "pkix1explicit.id", FT_STRING, BASE_NONE, NULL, 0,
453 "Object identifier Id", HFILL }},
455 /*--- Included file: packet-pkix1explicit-hfarr.c ---*/
457 { &hf_pkix1explicit_DomainParameters_PDU,
458 { "DomainParameters", "pkix1explicit.DomainParameters",
459 FT_NONE, BASE_NONE, NULL, 0,
460 "DomainParameters", HFILL }},
461 { &hf_pkix1explicit_DirectoryString_PDU,
462 { "DirectoryString", "pkix1explicit.DirectoryString",
463 FT_STRING, BASE_NONE, NULL, 0,
464 "DirectoryString", HFILL }},
465 { &hf_pkix1explicit_Extensions_item,
466 { "Item", "pkix1explicit.Extensions_item",
467 FT_NONE, BASE_NONE, NULL, 0,
468 "Extensions/_item", HFILL }},
469 { &hf_pkix1explicit_extnId,
470 { "extnId", "pkix1explicit.extnId",
471 FT_STRING, BASE_NONE, NULL, 0,
472 "Extension/extnId", HFILL }},
473 { &hf_pkix1explicit_critical,
474 { "critical", "pkix1explicit.critical",
475 FT_BOOLEAN, 8, NULL, 0,
476 "Extension/critical", HFILL }},
477 { &hf_pkix1explicit_extnValue,
478 { "extnValue", "pkix1explicit.extnValue",
479 FT_BYTES, BASE_HEX, NULL, 0,
480 "Extension/extnValue", HFILL }},
481 { &hf_pkix1explicit_p,
482 { "p", "pkix1explicit.p",
483 FT_INT32, BASE_DEC, NULL, 0,
484 "DomainParameters/p", HFILL }},
485 { &hf_pkix1explicit_g,
486 { "g", "pkix1explicit.g",
487 FT_INT32, BASE_DEC, NULL, 0,
488 "DomainParameters/g", HFILL }},
489 { &hf_pkix1explicit_q,
490 { "q", "pkix1explicit.q",
491 FT_INT32, BASE_DEC, NULL, 0,
492 "DomainParameters/q", HFILL }},
493 { &hf_pkix1explicit_j,
494 { "j", "pkix1explicit.j",
495 FT_INT32, BASE_DEC, NULL, 0,
496 "DomainParameters/j", HFILL }},
497 { &hf_pkix1explicit_validationParms,
498 { "validationParms", "pkix1explicit.validationParms",
499 FT_NONE, BASE_NONE, NULL, 0,
500 "DomainParameters/validationParms", HFILL }},
501 { &hf_pkix1explicit_seed,
502 { "seed", "pkix1explicit.seed",
503 FT_BYTES, BASE_HEX, NULL, 0,
504 "ValidationParms/seed", HFILL }},
505 { &hf_pkix1explicit_pgenCounter,
506 { "pgenCounter", "pkix1explicit.pgenCounter",
507 FT_INT32, BASE_DEC, NULL, 0,
508 "ValidationParms/pgenCounter", HFILL }},
509 { &hf_pkix1explicit_type,
510 { "type", "pkix1explicit.type",
511 FT_STRING, BASE_NONE, NULL, 0,
512 "AttributeTypeAndValue/type", HFILL }},
513 { &hf_pkix1explicit_value,
514 { "value", "pkix1explicit.value",
515 FT_NONE, BASE_NONE, NULL, 0,
516 "AttributeTypeAndValue/value", HFILL }},
517 { &hf_pkix1explicit_RDNSequence_item,
518 { "Item", "pkix1explicit.RDNSequence_item",
519 FT_NONE, BASE_NONE, NULL, 0,
520 "RDNSequence/_item", HFILL }},
521 { &hf_pkix1explicit_RelativeDistinguishedName_item,
522 { "Item", "pkix1explicit.RelativeDistinguishedName_item",
523 FT_NONE, BASE_NONE, NULL, 0,
524 "RelativeDistinguishedName/_item", HFILL }},
525 { &hf_pkix1explicit_type1,
526 { "type", "pkix1explicit.type",
527 FT_STRING, BASE_NONE, NULL, 0,
528 "TeletexDomainDefinedAttribute/type", HFILL }},
529 { &hf_pkix1explicit_value1,
530 { "value", "pkix1explicit.value",
531 FT_STRING, BASE_NONE, NULL, 0,
532 "TeletexDomainDefinedAttribute/value", HFILL }},
534 /*--- End of included file: packet-pkix1explicit-hfarr.c ---*/
538 /* List of subtrees */
539 static gint *ett[] = {
541 /*--- Included file: packet-pkix1explicit-ettarr.c ---*/
543 &ett_pkix1explicit_Extensions,
544 &ett_pkix1explicit_Extension,
545 &ett_pkix1explicit_DomainParameters,
546 &ett_pkix1explicit_ValidationParms,
547 &ett_pkix1explicit_AttributeTypeAndValue,
548 &ett_pkix1explicit_RDNSequence,
549 &ett_pkix1explicit_RelativeDistinguishedName,
550 &ett_pkix1explicit_TeletexDomainDefinedAttribute,
552 /*--- End of included file: packet-pkix1explicit-ettarr.c ---*/
556 /* Register protocol */
557 proto_pkix1explicit = proto_register_protocol(PNAME, PSNAME, PFNAME);
559 /* Register fields and subtrees */
560 proto_register_field_array(proto_pkix1explicit, hf, array_length(hf));
561 proto_register_subtree_array(ett, array_length(ett));
566 /*--- proto_reg_handoff_pkix1explicit -------------------------------------------*/
567 void proto_reg_handoff_pkix1explicit(void) {
569 /*--- Included file: packet-pkix1explicit-dis-tab.c ---*/
571 register_ber_oid_dissector("1.3.6.1.5.5.7.2.1", dissect_DirectoryString_PDU, proto_pkix1explicit, "id-qt-cps");
572 register_ber_oid_dissector("1.2.840.10046.2.1", dissect_DomainParameters_PDU, proto_pkix1explicit, "dhpublicnumber");
575 /*--- End of included file: packet-pkix1explicit-dis-tab.c ---*/