2004-09-16 09:01:20 +00:00
|
|
|
/* Do not modify this file. */
|
2006-05-24 12:24:54 +00:00
|
|
|
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
2007-03-21 10:22:22 +00:00
|
|
|
/* ./packet-pkix1explicit.c */
|
2006-05-24 12:24:54 +00:00
|
|
|
/* ../../tools/asn2wrs.py -e -b -p pkix1explicit -c pkix1explicit.cnf -s packet-pkix1explicit-template PKIX1EXPLICIT93.asn */
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/* Input file: packet-pkix1explicit-template.c */
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1explicit-template.c"
|
2006-05-24 12:24:54 +00:00
|
|
|
#define BER_UNI_TAG_TeletexString 20 /* workaround bug in asn2wrs */
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/* packet-pkix1explicit.c
|
|
|
|
* Routines for PKIX1Explitic packet dissection
|
|
|
|
*
|
2005-07-09 02:58:07 +00:00
|
|
|
* $Id$
|
2004-09-16 09:01:20 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-09-16 09:01:20 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include <epan/conversation.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "packet-ber.h"
|
|
|
|
#include "packet-pkix1explicit.h"
|
|
|
|
#include "packet-x509af.h"
|
|
|
|
#include "packet-x509if.h"
|
2004-11-29 08:43:19 +00:00
|
|
|
#include "packet-x509ce.h"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
#define PNAME "PKIX1Explitit"
|
|
|
|
#define PSNAME "PKIX1EXPLICIT"
|
|
|
|
#define PFNAME "pkix1explicit"
|
|
|
|
|
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
static int proto_pkix1explicit = -1;
|
2004-11-29 08:43:19 +00:00
|
|
|
static int hf_pkix1explicit_object_identifier_id = -1;
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1explicit-hf.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1explicit-hf.c"
|
2004-11-01 18:11:48 +00:00
|
|
|
static int hf_pkix1explicit_DomainParameters_PDU = -1; /* DomainParameters */
|
2004-11-21 11:12:20 +00:00
|
|
|
static int hf_pkix1explicit_DirectoryString_PDU = -1; /* DirectoryString */
|
2004-11-29 08:43:19 +00:00
|
|
|
static int hf_pkix1explicit_Extensions_item = -1; /* Extension */
|
|
|
|
static int hf_pkix1explicit_extnId = -1; /* T_extnId */
|
|
|
|
static int hf_pkix1explicit_critical = -1; /* BOOLEAN */
|
|
|
|
static int hf_pkix1explicit_extnValue = -1; /* T_extnValue */
|
2004-11-01 18:11:48 +00:00
|
|
|
static int hf_pkix1explicit_p = -1; /* INTEGER */
|
|
|
|
static int hf_pkix1explicit_g = -1; /* INTEGER */
|
|
|
|
static int hf_pkix1explicit_q = -1; /* INTEGER */
|
|
|
|
static int hf_pkix1explicit_j = -1; /* INTEGER */
|
|
|
|
static int hf_pkix1explicit_validationParms = -1; /* ValidationParms */
|
|
|
|
static int hf_pkix1explicit_seed = -1; /* BIT_STRING */
|
|
|
|
static int hf_pkix1explicit_pgenCounter = -1; /* INTEGER */
|
2004-11-29 08:43:19 +00:00
|
|
|
static int hf_pkix1explicit_type = -1; /* OBJECT_IDENTIFIER */
|
|
|
|
static int hf_pkix1explicit_value = -1; /* T_value */
|
|
|
|
static int hf_pkix1explicit_RDNSequence_item = -1; /* RelativeDistinguishedName */
|
|
|
|
static int hf_pkix1explicit_RelativeDistinguishedName_item = -1; /* AttributeTypeAndValue */
|
|
|
|
static int hf_pkix1explicit_type1 = -1; /* TeletexString */
|
|
|
|
static int hf_pkix1explicit_value1 = -1; /* TeletexString */
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1explicit-hf.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 52 "packet-pkix1explicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1explicit-ett.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1explicit-ett.c"
|
2004-11-29 08:43:19 +00:00
|
|
|
static gint ett_pkix1explicit_Extensions = -1;
|
|
|
|
static gint ett_pkix1explicit_Extension = -1;
|
2004-11-01 18:11:48 +00:00
|
|
|
static gint ett_pkix1explicit_DomainParameters = -1;
|
|
|
|
static gint ett_pkix1explicit_ValidationParms = -1;
|
2004-11-29 08:43:19 +00:00
|
|
|
static gint ett_pkix1explicit_AttributeTypeAndValue = -1;
|
|
|
|
static gint ett_pkix1explicit_RDNSequence = -1;
|
|
|
|
static gint ett_pkix1explicit_RelativeDistinguishedName = -1;
|
2004-09-16 09:01:20 +00:00
|
|
|
static gint ett_pkix1explicit_TeletexDomainDefinedAttribute = -1;
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1explicit-ett.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 55 "packet-pkix1explicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
static const char *object_identifier_id;
|
2004-11-29 08:43:19 +00:00
|
|
|
|
2004-12-24 12:16:27 +00:00
|
|
|
int
|
|
|
|
dissect_pkix1explicit_Certificate(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
|
|
|
|
offset = dissect_x509af_Certificate(implicit_tag, tvb, offset, pinfo, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
int
|
|
|
|
dissect_pkix1explicit_CertificateList(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
|
|
|
|
offset = dissect_x509af_CertificateList(implicit_tag, tvb, offset, pinfo, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2004-09-16 09:01:20 +00:00
|
|
|
int
|
2004-11-29 08:43:19 +00:00
|
|
|
dissect_pkix1explicit_GeneralName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
|
|
|
|
offset = dissect_x509ce_GeneralName(implicit_tag, tvb, offset, pinfo, tree, hf_index);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
int
|
2004-11-29 08:43:19 +00:00
|
|
|
dissect_pkix1explicit_Name(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
|
2004-09-16 09:01:20 +00:00
|
|
|
offset = dissect_x509if_Name(implicit_tag, tvb, offset, pinfo, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2004-09-17 23:24:17 +00:00
|
|
|
int
|
2004-09-16 09:01:20 +00:00
|
|
|
dissect_pkix1explicit_AlgorithmIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
|
|
|
|
offset = dissect_x509af_AlgorithmIdentifier(implicit_tag, tvb, offset, pinfo, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
dissect_pkix1explicit_SubjectPublicKeyInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int hf_index) {
|
|
|
|
offset = dissect_x509af_SubjectPublicKeyInfo(implicit_tag, tvb, offset, pinfo, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1explicit-fn.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1explicit-fn.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
/*--- Fields for imported types ---*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-11-29 08:43:19 +00:00
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_CertificateSerialNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-07-09 02:58:07 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
|
|
|
|
NULL);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-09 02:58:07 +00:00
|
|
|
|
2004-11-29 08:43:19 +00:00
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_T_extnId(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-11-14 10:02:31 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(implicit_tag, pinfo, tree, tvb, offset, hf_pkix1explicit_object_identifier_id, &object_identifier_id);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_extnId(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_T_extnId(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_extnId);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-09 02:58:07 +00:00
|
|
|
|
2004-11-29 08:43:19 +00:00
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_BOOLEAN(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-02-23 08:57:47 +00:00
|
|
|
offset = dissect_ber_boolean(implicit_tag, pinfo, tree, tvb, offset, hf_index);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_critical(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_BOOLEAN(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_critical);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-09 02:58:07 +00:00
|
|
|
|
2004-11-29 08:43:19 +00:00
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_T_extnValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 44 "pkix1explicit.cnf"
|
2005-07-09 02:58:07 +00:00
|
|
|
gint8 class;
|
2004-11-29 08:43:19 +00:00
|
|
|
gboolean pc, ind;
|
2005-07-09 02:58:07 +00:00
|
|
|
gint32 tag;
|
2004-11-29 08:43:19 +00:00
|
|
|
guint32 len;
|
|
|
|
/* skip past the T and L */
|
|
|
|
offset = dissect_ber_identifier(pinfo, tree, tvb, offset, &class, &pc, &tag);
|
|
|
|
offset = dissect_ber_length(pinfo, tree, tvb, offset, &len, &ind);
|
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2004-11-29 08:43:19 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_extnValue(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_T_extnValue(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_extnValue);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t Extension_sequence[] = {
|
2004-11-29 08:43:19 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_extnId },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_BOOLEAN, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_critical },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_extnValue },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_Extension(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
Extension_sequence, hf_index, ett_pkix1explicit_Extension);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_Extensions_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_Extension(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_Extensions_item);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t Extensions_sequence_of[1] = {
|
2004-11-29 08:43:19 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_Extensions_item },
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_Extensions(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
Extensions_sequence_of, hf_index, ett_pkix1explicit_Extensions);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-01 18:11:48 +00:00
|
|
|
|
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-07-09 02:58:07 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
|
|
|
|
NULL);
|
2004-11-01 18:11:48 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_p(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_p);
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_g(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_g);
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_q(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_q);
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_j(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_j);
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_pgenCounter(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
return dissect_pkix1explicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_pgenCounter);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-11-01 18:11:48 +00:00
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_BIT_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
offset = dissect_ber_bitstring(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
NULL, hf_index, -1,
|
|
|
|
NULL);
|
2004-11-01 18:11:48 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_seed(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
return dissect_pkix1explicit_BIT_STRING(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_seed);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t ValidationParms_sequence[] = {
|
2004-11-01 18:11:48 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_BITSTRING, BER_FLAGS_NOOWNTAG, dissect_seed },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pgenCounter },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_ValidationParms(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
ValidationParms_sequence, hf_index, ett_pkix1explicit_ValidationParms);
|
2004-11-01 18:11:48 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_validationParms(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
return dissect_pkix1explicit_ValidationParms(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_validationParms);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t DomainParameters_sequence[] = {
|
2004-11-01 18:11:48 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_p },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_g },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_q },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_j },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_validationParms },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_DomainParameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
DomainParameters_sequence, hf_index, ett_pkix1explicit_DomainParameters);
|
2004-11-01 18:11:48 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-07-09 02:58:07 +00:00
|
|
|
|
2004-11-29 08:43:19 +00:00
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-11-14 10:02:31 +00:00
|
|
|
offset = dissect_ber_object_identifier(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_type(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_OBJECT_IDENTIFIER(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_type);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_T_value(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 38 "pkix1explicit.cnf"
|
2004-11-29 08:43:19 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2004-11-29 08:43:19 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_value(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_T_value(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_value);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t AttributeTypeAndValue_sequence[] = {
|
2004-11-29 08:43:19 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_type },
|
|
|
|
{ BER_CLASS_ANY, 0, BER_FLAGS_NOOWNTAG, dissect_value },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_AttributeTypeAndValue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
AttributeTypeAndValue_sequence, hf_index, ett_pkix1explicit_AttributeTypeAndValue);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_RelativeDistinguishedName_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_AttributeTypeAndValue(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_RelativeDistinguishedName_item);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t RelativeDistinguishedName_set_of[1] = {
|
2004-11-29 08:43:19 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_RelativeDistinguishedName_item },
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_RelativeDistinguishedName(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
offset = dissect_ber_set_of(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
RelativeDistinguishedName_set_of, hf_index, ett_pkix1explicit_RelativeDistinguishedName);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_RDNSequence_item(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_RelativeDistinguishedName(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_RDNSequence_item);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t RDNSequence_sequence_of[1] = {
|
2004-11-29 08:43:19 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SET, BER_FLAGS_NOOWNTAG, dissect_RDNSequence_item },
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_RDNSequence(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
RDNSequence_sequence_of, hf_index, ett_pkix1explicit_RDNSequence);
|
2004-11-29 08:43:19 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-11-21 05:21:26 +00:00
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_DirectoryString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 32 "pkix1explicit.cnf"
|
2004-11-21 05:21:26 +00:00
|
|
|
offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
|
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2004-11-21 05:21:26 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-02-23 08:57:47 +00:00
|
|
|
const value_string pkix1explicit_TerminalType_vals[] = {
|
2004-09-16 09:01:20 +00:00
|
|
|
{ 3, "telex" },
|
|
|
|
{ 4, "teletex" },
|
|
|
|
{ 5, "g3-facsimile" },
|
|
|
|
{ 6, "g4-facsimile" },
|
|
|
|
{ 7, "ia5-terminal" },
|
|
|
|
{ 8, "videotex" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-09-17 23:24:17 +00:00
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_TerminalType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2005-07-09 02:58:07 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
|
|
|
|
NULL);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
static int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_TeletexString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-09-16 09:01:20 +00:00
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_TeletexString,
|
2005-09-02 05:43:49 +00:00
|
|
|
pinfo, tree, tvb, offset, hf_index,
|
|
|
|
NULL);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_type1(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_TeletexString(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_type1);
|
2004-09-16 09:01:20 +00:00
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static int dissect_value1(packet_info *pinfo _U_, proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_) {
|
2004-11-29 08:43:19 +00:00
|
|
|
return dissect_pkix1explicit_TeletexString(FALSE, tvb, offset, pinfo, tree, hf_pkix1explicit_value1);
|
2004-09-16 09:01:20 +00:00
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t TeletexDomainDefinedAttribute_sequence[] = {
|
2004-11-29 08:43:19 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_TeletexString, BER_FLAGS_NOOWNTAG, dissect_type1 },
|
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_TeletexString, BER_FLAGS_NOOWNTAG, dissect_value1 },
|
2004-09-16 09:01:20 +00:00
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
2004-09-17 23:24:17 +00:00
|
|
|
int
|
2007-03-21 10:22:22 +00:00
|
|
|
dissect_pkix1explicit_TeletexDomainDefinedAttribute(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2004-09-16 09:01:20 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
TeletexDomainDefinedAttribute_sequence, hf_index, ett_pkix1explicit_TeletexDomainDefinedAttribute);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2004-11-01 18:11:48 +00:00
|
|
|
/*--- PDUs ---*/
|
|
|
|
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_DomainParameters_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2004-11-01 18:11:48 +00:00
|
|
|
dissect_pkix1explicit_DomainParameters(FALSE, tvb, 0, pinfo, tree, hf_pkix1explicit_DomainParameters_PDU);
|
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_DirectoryString_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2004-11-21 11:12:20 +00:00
|
|
|
dissect_pkix1explicit_DirectoryString(FALSE, tvb, 0, pinfo, tree, hf_pkix1explicit_DirectoryString_PDU);
|
|
|
|
}
|
2004-11-01 18:11:48 +00:00
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1explicit-fn.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 99 "packet-pkix1explicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- proto_register_pkix1explicit ----------------------------------------------*/
|
|
|
|
void proto_register_pkix1explicit(void) {
|
|
|
|
|
|
|
|
/* List of fields */
|
|
|
|
static hf_register_info hf[] = {
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_object_identifier_id,
|
|
|
|
{ "Id", "pkix1explicit.id", FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
"Object identifier Id", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1explicit-hfarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1explicit-hfarr.c"
|
2004-11-01 18:11:48 +00:00
|
|
|
{ &hf_pkix1explicit_DomainParameters_PDU,
|
|
|
|
{ "DomainParameters", "pkix1explicit.DomainParameters",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.DomainParameters", HFILL }},
|
2004-11-21 11:12:20 +00:00
|
|
|
{ &hf_pkix1explicit_DirectoryString_PDU,
|
|
|
|
{ "DirectoryString", "pkix1explicit.DirectoryString",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.DirectoryString", HFILL }},
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_Extensions_item,
|
|
|
|
{ "Item", "pkix1explicit.Extensions_item",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.Extension", HFILL }},
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_extnId,
|
|
|
|
{ "extnId", "pkix1explicit.extnId",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.T_extnId", HFILL }},
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_critical,
|
|
|
|
{ "critical", "pkix1explicit.critical",
|
|
|
|
FT_BOOLEAN, 8, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.BOOLEAN", HFILL }},
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_extnValue,
|
|
|
|
{ "extnValue", "pkix1explicit.extnValue",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.T_extnValue", HFILL }},
|
2004-11-01 18:11:48 +00:00
|
|
|
{ &hf_pkix1explicit_p,
|
|
|
|
{ "p", "pkix1explicit.p",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.INTEGER", HFILL }},
|
2004-11-01 18:11:48 +00:00
|
|
|
{ &hf_pkix1explicit_g,
|
|
|
|
{ "g", "pkix1explicit.g",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.INTEGER", HFILL }},
|
2004-11-01 18:11:48 +00:00
|
|
|
{ &hf_pkix1explicit_q,
|
|
|
|
{ "q", "pkix1explicit.q",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.INTEGER", HFILL }},
|
2004-11-01 18:11:48 +00:00
|
|
|
{ &hf_pkix1explicit_j,
|
|
|
|
{ "j", "pkix1explicit.j",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.INTEGER", HFILL }},
|
2004-11-01 18:11:48 +00:00
|
|
|
{ &hf_pkix1explicit_validationParms,
|
|
|
|
{ "validationParms", "pkix1explicit.validationParms",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.ValidationParms", HFILL }},
|
2004-11-01 18:11:48 +00:00
|
|
|
{ &hf_pkix1explicit_seed,
|
|
|
|
{ "seed", "pkix1explicit.seed",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.BIT_STRING", HFILL }},
|
2004-11-01 18:11:48 +00:00
|
|
|
{ &hf_pkix1explicit_pgenCounter,
|
|
|
|
{ "pgenCounter", "pkix1explicit.pgenCounter",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.INTEGER", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1explicit_type,
|
|
|
|
{ "type", "pkix1explicit.type",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.OBJECT_IDENTIFIER", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1explicit_value,
|
2004-11-29 08:43:19 +00:00
|
|
|
{ "value", "pkix1explicit.value",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.T_value", HFILL }},
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_RDNSequence_item,
|
|
|
|
{ "Item", "pkix1explicit.RDNSequence_item",
|
2005-09-02 05:43:49 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.RelativeDistinguishedName", HFILL }},
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_RelativeDistinguishedName_item,
|
|
|
|
{ "Item", "pkix1explicit.RelativeDistinguishedName_item",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.AttributeTypeAndValue", HFILL }},
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_type1,
|
|
|
|
{ "type", "pkix1explicit.type",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.TeletexString", HFILL }},
|
2004-11-29 08:43:19 +00:00
|
|
|
{ &hf_pkix1explicit_value1,
|
2004-09-16 09:01:20 +00:00
|
|
|
{ "value", "pkix1explicit.value",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"pkix1explicit.TeletexString", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1explicit-hfarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 110 "packet-pkix1explicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* List of subtrees */
|
|
|
|
static gint *ett[] = {
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1explicit-ettarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1explicit-ettarr.c"
|
2004-11-29 08:43:19 +00:00
|
|
|
&ett_pkix1explicit_Extensions,
|
|
|
|
&ett_pkix1explicit_Extension,
|
2004-11-01 18:11:48 +00:00
|
|
|
&ett_pkix1explicit_DomainParameters,
|
|
|
|
&ett_pkix1explicit_ValidationParms,
|
2004-11-29 08:43:19 +00:00
|
|
|
&ett_pkix1explicit_AttributeTypeAndValue,
|
|
|
|
&ett_pkix1explicit_RDNSequence,
|
|
|
|
&ett_pkix1explicit_RelativeDistinguishedName,
|
2004-09-16 09:01:20 +00:00
|
|
|
&ett_pkix1explicit_TeletexDomainDefinedAttribute,
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1explicit-ettarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 115 "packet-pkix1explicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Register protocol */
|
|
|
|
proto_pkix1explicit = proto_register_protocol(PNAME, PSNAME, PFNAME);
|
|
|
|
|
|
|
|
/* Register fields and subtrees */
|
|
|
|
proto_register_field_array(proto_pkix1explicit, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*--- proto_reg_handoff_pkix1explicit -------------------------------------------*/
|
|
|
|
void proto_reg_handoff_pkix1explicit(void) {
|
2004-11-01 18:11:48 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1explicit-dis-tab.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1explicit-dis-tab.c"
|
2005-07-09 02:58:07 +00:00
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.2.1", dissect_DirectoryString_PDU, proto_pkix1explicit, "id-qt-cps");
|
|
|
|
register_ber_oid_dissector("1.2.840.10046.2.1", dissect_DomainParameters_PDU, proto_pkix1explicit, "dhpublicnumber");
|
2004-11-01 18:11:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1explicit-dis-tab.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 130 "packet-pkix1explicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
}
|
|
|
|
|