2004-09-16 09:01:20 +00:00
|
|
|
/* Do not modify this file. */
|
2006-05-21 04:49:01 +00:00
|
|
|
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
2004-09-16 09:01:20 +00:00
|
|
|
/* ./packet-pkix1implicit.c */
|
|
|
|
/* ../../tools/asn2eth.py -e -X -b -p pkix1implicit -c pkix1implicit.cnf -s packet-pkix1implicit-template PKIX1IMPLICIT93.asn */
|
|
|
|
|
|
|
|
/* Input file: packet-pkix1implicit-template.c */
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
/* packet-pkix1implicit.c
|
|
|
|
* Routines for PKIX1Implitic packet dissection
|
|
|
|
*
|
2005-08-02 05:39:45 +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-pkix1implicit.h"
|
2004-11-21 05:21:26 +00:00
|
|
|
#include "packet-pkix1explicit.h"
|
2004-12-05 21:47:49 +00:00
|
|
|
#include "packet-x509ce.h"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
#define PNAME "PKIX1Implitit"
|
|
|
|
#define PSNAME "PKIX1IMPLICIT"
|
|
|
|
#define PFNAME "pkix1implicit"
|
|
|
|
|
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
static int proto_pkix1implicit = -1;
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-hf.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1implicit-hf.c"
|
2004-11-20 21:26:08 +00:00
|
|
|
static int hf_pkix1implicit_Dummy_PDU = -1; /* Dummy */
|
2004-11-21 05:21:26 +00:00
|
|
|
static int hf_pkix1implicit_AuthorityInfoAccessSyntax_PDU = -1; /* AuthorityInfoAccessSyntax */
|
|
|
|
static int hf_pkix1implicit_nameAssigner = -1; /* DirectoryString */
|
|
|
|
static int hf_pkix1implicit_partyName = -1; /* DirectoryString */
|
|
|
|
static int hf_pkix1implicit_AuthorityInfoAccessSyntax_item = -1; /* AccessDescription */
|
|
|
|
static int hf_pkix1implicit_accessMethod = -1; /* OBJECT_IDENTIFIER */
|
|
|
|
static int hf_pkix1implicit_accessLocation = -1; /* GeneralName */
|
2004-09-16 09:01:20 +00:00
|
|
|
static int hf_pkix1implicit_noticeRef = -1; /* NoticeReference */
|
|
|
|
static int hf_pkix1implicit_explicitText = -1; /* DisplayText */
|
|
|
|
static int hf_pkix1implicit_organization = -1; /* DisplayText */
|
2005-06-26 05:48:50 +00:00
|
|
|
static int hf_pkix1implicit_noticeNumbers = -1; /* T_noticeNumbers */
|
2004-09-16 09:01:20 +00:00
|
|
|
static int hf_pkix1implicit_noticeNumbers_item = -1; /* INTEGER */
|
|
|
|
static int hf_pkix1implicit_visibleString = -1; /* VisibleString */
|
|
|
|
static int hf_pkix1implicit_bmpString = -1; /* BMPString */
|
|
|
|
static int hf_pkix1implicit_utf8String = -1; /* UTF8String */
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1implicit-hf.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 48 "packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-ett.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1implicit-ett.c"
|
2004-11-21 05:21:26 +00:00
|
|
|
static gint ett_pkix1implicit_EDIPartyName = -1;
|
|
|
|
static gint ett_pkix1implicit_AuthorityInfoAccessSyntax = -1;
|
|
|
|
static gint ett_pkix1implicit_AccessDescription = -1;
|
2004-09-16 09:01:20 +00:00
|
|
|
static gint ett_pkix1implicit_UserNotice = -1;
|
|
|
|
static gint ett_pkix1implicit_NoticeReference = -1;
|
2005-06-26 05:48:50 +00:00
|
|
|
static gint ett_pkix1implicit_T_noticeNumbers = -1;
|
2004-09-16 09:01:20 +00:00
|
|
|
static gint ett_pkix1implicit_DisplayText = -1;
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1implicit-ett.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 51 "packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
|
2004-12-24 12:22:52 +00:00
|
|
|
int
|
|
|
|
dissect_pkix1implicit_ReasonFlags(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
|
|
|
offset = dissect_x509ce_ReasonFlags(implicit_tag, tvb, offset, pinfo, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2004-12-05 21:47:49 +00:00
|
|
|
int
|
|
|
|
dissect_pkix1implicit_GeneralName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
|
|
|
offset = dissect_x509ce_GeneralName(implicit_tag, tvb, offset, pinfo, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-fn.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1implicit-fn.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
/*--- Fields for imported types ---*/
|
|
|
|
|
2004-11-21 05:21:26 +00:00
|
|
|
static int dissect_nameAssigner_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1explicit_DirectoryString(TRUE, tvb, offset, pinfo, tree, hf_pkix1implicit_nameAssigner);
|
|
|
|
}
|
|
|
|
static int dissect_partyName_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1explicit_DirectoryString(TRUE, tvb, offset, pinfo, tree, hf_pkix1implicit_partyName);
|
|
|
|
}
|
2004-12-05 21:47:49 +00:00
|
|
|
static int dissect_accessLocation(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_x509ce_GeneralName(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_accessLocation);
|
|
|
|
}
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
static int
|
2004-11-20 21:26:08 +00:00
|
|
|
dissect_pkix1implicit_Dummy(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
2005-06-26 05:48:50 +00:00
|
|
|
offset = dissect_ber_null(implicit_tag, pinfo, tree, tvb, offset, hf_index);
|
2004-11-20 21:26:08 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t EDIPartyName_sequence[] = {
|
2004-11-21 05:21:26 +00:00
|
|
|
{ BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_nameAssigner_impl },
|
|
|
|
{ BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_partyName_impl },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_pkix1implicit_EDIPartyName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
|
|
|
offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
EDIPartyName_sequence, hf_index, ett_pkix1implicit_EDIPartyName);
|
2004-11-21 05:21:26 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
|
2004-11-21 05:21:26 +00:00
|
|
|
static int
|
|
|
|
dissect_pkix1implicit_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
2005-12-08 23:29:21 +00:00
|
|
|
offset = dissect_ber_object_identifier(implicit_tag, pinfo, tree, tvb, offset, hf_index, NULL);
|
2004-11-21 05:21:26 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
static int dissect_accessMethod(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_OBJECT_IDENTIFIER(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_accessMethod);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t AccessDescription_sequence[] = {
|
2004-11-21 05:21:26 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_accessMethod },
|
2004-12-05 21:47:49 +00:00
|
|
|
{ BER_CLASS_CON, -1/*choice*/, BER_FLAGS_NOOWNTAG, dissect_accessLocation },
|
2004-11-21 05:21:26 +00:00
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_pkix1implicit_AccessDescription(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
|
|
|
offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
AccessDescription_sequence, hf_index, ett_pkix1implicit_AccessDescription);
|
2004-11-21 05:21:26 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
static int dissect_AuthorityInfoAccessSyntax_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_AccessDescription(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_AuthorityInfoAccessSyntax_item);
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t AuthorityInfoAccessSyntax_sequence_of[1] = {
|
2004-11-21 05:21:26 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_AuthorityInfoAccessSyntax_item },
|
|
|
|
};
|
|
|
|
|
2004-11-29 07:57:19 +00:00
|
|
|
int
|
2004-11-21 05:21:26 +00:00
|
|
|
dissect_pkix1implicit_AuthorityInfoAccessSyntax(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
|
2005-07-21 21:12:09 +00:00
|
|
|
AuthorityInfoAccessSyntax_sequence_of, hf_index, ett_pkix1implicit_AuthorityInfoAccessSyntax);
|
2004-11-21 05:21:26 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-11-20 21:26:08 +00:00
|
|
|
static int
|
|
|
|
dissect_pkix1implicit_VisibleString(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
2004-09-16 09:01:20 +00:00
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_VisibleString,
|
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;
|
|
|
|
}
|
|
|
|
static int dissect_visibleString(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_VisibleString(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_visibleString);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
static int
|
2004-11-20 21:26:08 +00:00
|
|
|
dissect_pkix1implicit_BMPString(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
2004-09-16 09:01:20 +00:00
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_BMPString,
|
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;
|
|
|
|
}
|
|
|
|
static int dissect_bmpString(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_BMPString(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_bmpString);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
static int
|
2004-11-20 21:26:08 +00:00
|
|
|
dissect_pkix1implicit_UTF8String(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
2004-09-16 09:01:20 +00:00
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_UTF8String,
|
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;
|
|
|
|
}
|
|
|
|
static int dissect_utf8String(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_UTF8String(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_utf8String);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
static const value_string pkix1implicit_DisplayText_vals[] = {
|
2004-09-16 09:01:20 +00:00
|
|
|
{ 0, "visibleString" },
|
|
|
|
{ 1, "bmpString" },
|
|
|
|
{ 2, "utf8String" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_choice_t DisplayText_choice[] = {
|
2004-09-16 09:01:20 +00:00
|
|
|
{ 0, BER_CLASS_UNI, BER_UNI_TAG_VisibleString, BER_FLAGS_NOOWNTAG, dissect_visibleString },
|
|
|
|
{ 1, BER_CLASS_UNI, BER_UNI_TAG_BMPString, BER_FLAGS_NOOWNTAG, dissect_bmpString },
|
|
|
|
{ 2, BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_NOOWNTAG, dissect_utf8String },
|
|
|
|
{ 0, 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2004-11-20 21:26:08 +00:00
|
|
|
dissect_pkix1implicit_DisplayText(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
2005-07-21 21:12:09 +00:00
|
|
|
offset = dissect_ber_choice(pinfo, tree, tvb, offset,
|
2005-09-02 05:43:49 +00:00
|
|
|
DisplayText_choice, hf_index, ett_pkix1implicit_DisplayText,
|
|
|
|
NULL);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
static int dissect_explicitText(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_DisplayText(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_explicitText);
|
|
|
|
}
|
|
|
|
static int dissect_organization(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_DisplayText(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_organization);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2004-11-20 21:26:08 +00:00
|
|
|
dissect_pkix1implicit_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
2005-06-26 05:48:50 +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;
|
|
|
|
}
|
|
|
|
static int dissect_noticeNumbers_item(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_INTEGER(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_noticeNumbers_item);
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
static const ber_sequence_t T_noticeNumbers_sequence_of[1] = {
|
2004-09-16 09:01:20 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_noticeNumbers_item },
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2005-06-26 05:48:50 +00:00
|
|
|
dissect_pkix1implicit_T_noticeNumbers(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
|
2004-09-16 09:01:20 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, pinfo, tree, tvb, offset,
|
2005-07-21 21:12:09 +00:00
|
|
|
T_noticeNumbers_sequence_of, hf_index, ett_pkix1implicit_T_noticeNumbers);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
static int dissect_noticeNumbers(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
2005-06-26 05:48:50 +00:00
|
|
|
return dissect_pkix1implicit_T_noticeNumbers(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_noticeNumbers);
|
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 NoticeReference_sequence[] = {
|
2005-09-02 05:43:49 +00:00
|
|
|
{ BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_organization },
|
2004-09-16 09:01:20 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_noticeNumbers },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2004-11-20 21:26:08 +00:00
|
|
|
dissect_pkix1implicit_NoticeReference(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, 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
|
|
|
NoticeReference_sequence, hf_index, ett_pkix1implicit_NoticeReference);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
static int dissect_noticeRef(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
|
|
|
|
return dissect_pkix1implicit_NoticeReference(FALSE, tvb, offset, pinfo, tree, hf_pkix1implicit_noticeRef);
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2004-12-13 08:15:34 +00:00
|
|
|
static const ber_sequence_t UserNotice_sequence[] = {
|
2004-09-16 09:01:20 +00:00
|
|
|
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_noticeRef },
|
2005-09-02 05:43:49 +00:00
|
|
|
{ BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_explicitText },
|
2004-09-16 09:01:20 +00:00
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
2004-09-17 23:16:17 +00:00
|
|
|
int
|
2004-11-20 21:26:08 +00:00
|
|
|
dissect_pkix1implicit_UserNotice(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, 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
|
|
|
UserNotice_sequence, hf_index, ett_pkix1implicit_UserNotice);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2004-11-20 21:26:08 +00:00
|
|
|
/*--- PDUs ---*/
|
|
|
|
|
|
|
|
static void dissect_Dummy_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
|
|
|
|
dissect_pkix1implicit_Dummy(FALSE, tvb, 0, pinfo, tree, hf_pkix1implicit_Dummy_PDU);
|
|
|
|
}
|
2004-11-21 05:21:26 +00:00
|
|
|
static void dissect_AuthorityInfoAccessSyntax_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
|
|
|
|
dissect_pkix1implicit_AuthorityInfoAccessSyntax(FALSE, tvb, 0, pinfo, tree, hf_pkix1implicit_AuthorityInfoAccessSyntax_PDU);
|
|
|
|
}
|
2004-11-20 21:26:08 +00:00
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1implicit-fn.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 67 "packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- proto_register_pkix1implicit ----------------------------------------------*/
|
|
|
|
void proto_register_pkix1implicit(void) {
|
|
|
|
|
|
|
|
/* List of fields */
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-hfarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1implicit-hfarr.c"
|
2004-11-20 21:26:08 +00:00
|
|
|
{ &hf_pkix1implicit_Dummy_PDU,
|
|
|
|
{ "Dummy", "pkix1implicit.Dummy",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
|
|
|
"Dummy", HFILL }},
|
2004-11-21 05:21:26 +00:00
|
|
|
{ &hf_pkix1implicit_AuthorityInfoAccessSyntax_PDU,
|
|
|
|
{ "AuthorityInfoAccessSyntax", "pkix1implicit.AuthorityInfoAccessSyntax",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2004-11-21 05:21:26 +00:00
|
|
|
"AuthorityInfoAccessSyntax", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_nameAssigner,
|
|
|
|
{ "nameAssigner", "pkix1implicit.nameAssigner",
|
2004-12-05 21:47:49 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2004-11-21 05:21:26 +00:00
|
|
|
"EDIPartyName/nameAssigner", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_partyName,
|
|
|
|
{ "partyName", "pkix1implicit.partyName",
|
2004-12-05 21:47:49 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2004-11-21 05:21:26 +00:00
|
|
|
"EDIPartyName/partyName", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_AuthorityInfoAccessSyntax_item,
|
|
|
|
{ "Item", "pkix1implicit.AuthorityInfoAccessSyntax_item",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
|
|
|
"AuthorityInfoAccessSyntax/_item", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_accessMethod,
|
|
|
|
{ "accessMethod", "pkix1implicit.accessMethod",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2004-11-21 05:21:26 +00:00
|
|
|
"AccessDescription/accessMethod", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_accessLocation,
|
|
|
|
{ "accessLocation", "pkix1implicit.accessLocation",
|
2004-12-05 21:47:49 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2004-11-21 05:21:26 +00:00
|
|
|
"AccessDescription/accessLocation", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_noticeRef,
|
|
|
|
{ "noticeRef", "pkix1implicit.noticeRef",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
|
|
|
"UserNotice/noticeRef", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_explicitText,
|
|
|
|
{ "explicitText", "pkix1implicit.explicitText",
|
2005-06-26 05:48:50 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(pkix1implicit_DisplayText_vals), 0,
|
2004-09-16 09:01:20 +00:00
|
|
|
"UserNotice/explicitText", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_organization,
|
|
|
|
{ "organization", "pkix1implicit.organization",
|
2005-06-26 05:48:50 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(pkix1implicit_DisplayText_vals), 0,
|
2004-09-16 09:01:20 +00:00
|
|
|
"NoticeReference/organization", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_noticeNumbers,
|
|
|
|
{ "noticeNumbers", "pkix1implicit.noticeNumbers",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2004-09-16 09:01:20 +00:00
|
|
|
"NoticeReference/noticeNumbers", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_noticeNumbers_item,
|
2004-10-11 18:36:51 +00:00
|
|
|
{ "Item", "pkix1implicit.noticeNumbers_item",
|
2004-09-16 09:01:20 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
|
|
|
"NoticeReference/noticeNumbers/_item", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_visibleString,
|
|
|
|
{ "visibleString", "pkix1implicit.visibleString",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
"DisplayText/visibleString", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_bmpString,
|
|
|
|
{ "bmpString", "pkix1implicit.bmpString",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
"DisplayText/bmpString", HFILL }},
|
|
|
|
{ &hf_pkix1implicit_utf8String,
|
|
|
|
{ "utf8String", "pkix1implicit.utf8String",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
"DisplayText/utf8String", HFILL }},
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1implicit-hfarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 75 "packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* List of subtrees */
|
|
|
|
static gint *ett[] = {
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-ettarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1implicit-ettarr.c"
|
2004-11-21 05:21:26 +00:00
|
|
|
&ett_pkix1implicit_EDIPartyName,
|
|
|
|
&ett_pkix1implicit_AuthorityInfoAccessSyntax,
|
|
|
|
&ett_pkix1implicit_AccessDescription,
|
2004-09-16 09:01:20 +00:00
|
|
|
&ett_pkix1implicit_UserNotice,
|
|
|
|
&ett_pkix1implicit_NoticeReference,
|
2005-06-26 05:48:50 +00:00
|
|
|
&ett_pkix1implicit_T_noticeNumbers,
|
2004-09-16 09:01:20 +00:00
|
|
|
&ett_pkix1implicit_DisplayText,
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1implicit-ettarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 80 "packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Register protocol */
|
|
|
|
proto_pkix1implicit = proto_register_protocol(PNAME, PSNAME, PFNAME);
|
|
|
|
|
|
|
|
/* Register fields and subtrees */
|
|
|
|
proto_register_field_array(proto_pkix1implicit, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*--- proto_reg_handoff_pkix1implicit -------------------------------------------*/
|
|
|
|
void proto_reg_handoff_pkix1implicit(void) {
|
2004-11-20 21:26:08 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-dis-tab.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-pkix1implicit-dis-tab.c"
|
2005-07-21 21:12:09 +00:00
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.1.1", dissect_AuthorityInfoAccessSyntax_PDU, proto_pkix1implicit, "id-pe-authorityInfoAccessSyntax");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.1", dissect_Dummy_PDU, proto_pkix1implicit, "id-kp-serverAuth");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.2", dissect_Dummy_PDU, proto_pkix1implicit, "id-kp-clientAuth");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.3", dissect_Dummy_PDU, proto_pkix1implicit, "id-kp-codeSigning");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.4", dissect_Dummy_PDU, proto_pkix1implicit, "id-kp-emailProtection");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.5", dissect_Dummy_PDU, proto_pkix1implicit, "id-kp-ip-kp-ipsecEndSystem");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.6", dissect_Dummy_PDU, proto_pkix1implicit, "id-kp-ipsecTunnel");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.7", dissect_Dummy_PDU, proto_pkix1implicit, "id-kp-ipsecUser");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.8", dissect_Dummy_PDU, proto_pkix1implicit, "id-kp-timeStamping");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.3.9", dissect_Dummy_PDU, proto_pkix1implicit, "OCSPSigning");
|
2004-11-20 21:26:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1implicit-dis-tab.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 95 "packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
}
|
|
|
|
|