2013-04-11 18:14:53 +00:00
|
|
|
/* Do not modify this file. Changes will be overwritten. */
|
|
|
|
/* Generated automatically by the ASN.1 to Wireshark dissector compiler */
|
2007-11-04 19:03:48 +00:00
|
|
|
/* packet-pkix1implicit.c */
|
2011-10-15 19:27:27 +00:00
|
|
|
/* ../../tools/asn2wrs.py -b -p pkix1implicit -c ./pkix1implicit.cnf -s ./packet-pkix1implicit-template -D . -O ../../epan/dissectors PKIX1IMPLICIT93.asn */
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/* Input file: packet-pkix1implicit-template.c */
|
|
|
|
|
2011-05-13 08:12:27 +00:00
|
|
|
#line 1 "../../asn1/pkix1implicit/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
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-09-16 09:01:20 +00:00
|
|
|
*/
|
|
|
|
|
2012-09-20 02:03:38 +00:00
|
|
|
#include "config.h"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <epan/packet.h>
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
#include <epan/asn1.h>
|
2004-09-16 09:01:20 +00:00
|
|
|
#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"
|
|
|
|
|
2013-12-08 15:40:10 +00:00
|
|
|
void proto_register_pkix1implicit(void);
|
|
|
|
void proto_reg_handoff_pkix1implicit(void);
|
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
static int proto_pkix1implicit = -1;
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-hf.c ---*/
|
2011-05-13 08:12:27 +00:00
|
|
|
#line 1 "../../asn1/pkix1implicit/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 */
|
2009-06-02 09:17:16 +00:00
|
|
|
static int hf_pkix1implicit_UserNotice_PDU = -1; /* UserNotice */
|
2004-11-21 05:21:26 +00:00
|
|
|
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 */
|
2010-06-04 14:36:53 +00:00
|
|
|
static int hf_pkix1implicit_ia5String = -1; /* IA5String */
|
2004-09-16 09:01:20 +00:00
|
|
|
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 ---*/
|
2013-12-08 15:40:10 +00:00
|
|
|
#line 46 "../../asn1/pkix1implicit/packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-ett.c ---*/
|
2011-05-13 08:12:27 +00:00
|
|
|
#line 1 "../../asn1/pkix1implicit/packet-pkix1implicit-ett.c"
|
2004-11-21 05:21:26 +00:00
|
|
|
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 ---*/
|
2013-12-08 15:40:10 +00:00
|
|
|
#line 49 "../../asn1/pkix1implicit/packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
|
2004-12-24 12:22:52 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_ReasonFlags(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) {
|
|
|
|
offset = dissect_x509ce_ReasonFlags(implicit_tag, tvb, offset, actx, tree, hf_index);
|
2004-12-24 12:22:52 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2004-12-05 21:47:49 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_GeneralName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) {
|
|
|
|
offset = dissect_x509ce_GeneralName(implicit_tag, tvb, offset, actx, tree, hf_index);
|
2004-12-05 21:47:49 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-fn.c ---*/
|
2011-05-13 08:12:27 +00:00
|
|
|
#line 1 "../../asn1/pkix1implicit/packet-pkix1implicit-fn.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
|
2007-10-07 16:02:04 +00:00
|
|
|
int
|
|
|
|
dissect_pkix1implicit_KeyIdentifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
|
|
|
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-09-16 09:01:20 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_Dummy(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_null(implicit_tag, actx, tree, tvb, offset, hf_index);
|
2004-11-20 21:26:08 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
|
2004-11-21 05:21:26 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
|
2004-11-21 05:21:26 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-04 19:03:48 +00:00
|
|
|
static const ber_sequence_t AccessDescription_sequence[] = {
|
|
|
|
{ &hf_pkix1implicit_accessMethod, BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_OBJECT_IDENTIFIER },
|
|
|
|
{ &hf_pkix1implicit_accessLocation, BER_CLASS_CON, -1/*choice*/, BER_FLAGS_NOOWNTAG, dissect_x509ce_GeneralName },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-11-21 05:21:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_AccessDescription(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-04 19:03:48 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AccessDescription_sequence, hf_index, ett_pkix1implicit_AccessDescription);
|
2004-11-21 05:21:26 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-04 19:03:48 +00:00
|
|
|
static const ber_sequence_t AuthorityInfoAccessSyntax_sequence_of[1] = {
|
|
|
|
{ &hf_pkix1implicit_AuthorityInfoAccessSyntax_item, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_AccessDescription },
|
2004-11-21 05:21:26 +00:00
|
|
|
};
|
|
|
|
|
2004-11-29 07:57:19 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_AuthorityInfoAccessSyntax(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-04 19:03:48 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
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
|
|
|
|
2010-06-04 14:36:53 +00:00
|
|
|
static int
|
|
|
|
dissect_pkix1implicit_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_) {
|
|
|
|
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
|
|
|
|
actx, tree, tvb, offset, hf_index,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-11-20 21:26:08 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_VisibleString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _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_VisibleString,
|
2007-05-15 05:49:43 +00:00
|
|
|
actx, tree, tvb, offset, hf_index,
|
2005-09-02 05:43:49 +00:00
|
|
|
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-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_BMPString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _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_BMPString,
|
2007-05-15 05:49:43 +00:00
|
|
|
actx, tree, tvb, offset, hf_index,
|
2005-09-02 05:43:49 +00:00
|
|
|
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-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_UTF8String(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _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_UTF8String,
|
2007-05-15 05:49:43 +00:00
|
|
|
actx, tree, tvb, offset, hf_index,
|
2005-09-02 05:43:49 +00:00
|
|
|
NULL);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-26 05:48:50 +00:00
|
|
|
static const value_string pkix1implicit_DisplayText_vals[] = {
|
2010-06-04 14:36:53 +00:00
|
|
|
{ 0, "ia5String" },
|
|
|
|
{ 1, "visibleString" },
|
|
|
|
{ 2, "bmpString" },
|
|
|
|
{ 3, "utf8String" },
|
2004-09-16 09:01:20 +00:00
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-04 19:03:48 +00:00
|
|
|
static const ber_choice_t DisplayText_choice[] = {
|
2010-06-04 14:36:53 +00:00
|
|
|
{ 0, &hf_pkix1implicit_ia5String, BER_CLASS_UNI, BER_UNI_TAG_IA5String, BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_IA5String },
|
|
|
|
{ 1, &hf_pkix1implicit_visibleString, BER_CLASS_UNI, BER_UNI_TAG_VisibleString, BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_VisibleString },
|
|
|
|
{ 2, &hf_pkix1implicit_bmpString, BER_CLASS_UNI, BER_UNI_TAG_BMPString, BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_BMPString },
|
|
|
|
{ 3, &hf_pkix1implicit_utf8String, BER_CLASS_UNI, BER_UNI_TAG_UTF8String, BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_UTF8String },
|
2007-11-04 19:03:48 +00:00
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_DisplayText(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-04 19:03:48 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
DisplayText_choice, hf_index, ett_pkix1implicit_DisplayText,
|
|
|
|
NULL);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-07-23 12:45:24 +00:00
|
|
|
NULL);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-07-21 21:12:09 +00:00
|
|
|
|
2007-11-04 19:03:48 +00:00
|
|
|
static const ber_sequence_t T_noticeNumbers_sequence_of[1] = {
|
|
|
|
{ &hf_pkix1implicit_noticeNumbers_item, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_INTEGER },
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_T_noticeNumbers(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-04 19:03:48 +00:00
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
T_noticeNumbers_sequence_of, hf_index, ett_pkix1implicit_T_noticeNumbers);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-04 19:03:48 +00:00
|
|
|
static const ber_sequence_t NoticeReference_sequence[] = {
|
|
|
|
{ &hf_pkix1implicit_organization, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_pkix1implicit_DisplayText },
|
|
|
|
{ &hf_pkix1implicit_noticeNumbers, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_T_noticeNumbers },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_NoticeReference(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-04 19:03:48 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
NoticeReference_sequence, hf_index, ett_pkix1implicit_NoticeReference);
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-09-02 05:43:49 +00:00
|
|
|
|
2007-11-04 19:03:48 +00:00
|
|
|
static const ber_sequence_t UserNotice_sequence[] = {
|
|
|
|
{ &hf_pkix1implicit_noticeRef, BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_pkix1implicit_NoticeReference },
|
|
|
|
{ &hf_pkix1implicit_explicitText, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_pkix1implicit_DisplayText },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
2004-09-17 23:16:17 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_pkix1implicit_UserNotice(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-04 19:03:48 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
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 ---*/
|
|
|
|
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_Dummy_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
|
|
|
dissect_pkix1implicit_Dummy(FALSE, tvb, 0, &asn1_ctx, tree, hf_pkix1implicit_Dummy_PDU);
|
2004-11-20 21:26:08 +00:00
|
|
|
}
|
2007-03-21 10:22:22 +00:00
|
|
|
static void dissect_AuthorityInfoAccessSyntax_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
|
|
|
dissect_pkix1implicit_AuthorityInfoAccessSyntax(FALSE, tvb, 0, &asn1_ctx, tree, hf_pkix1implicit_AuthorityInfoAccessSyntax_PDU);
|
2004-11-21 05:21:26 +00:00
|
|
|
}
|
2009-06-02 09:17:16 +00:00
|
|
|
static void dissect_UserNotice_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
|
|
|
asn1_ctx_t asn1_ctx;
|
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
|
|
|
dissect_pkix1implicit_UserNotice(FALSE, tvb, 0, &asn1_ctx, tree, hf_pkix1implicit_UserNotice_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 ---*/
|
2013-12-08 15:40:10 +00:00
|
|
|
#line 65 "../../asn1/pkix1implicit/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 ---*/
|
2011-05-13 08:12:27 +00:00
|
|
|
#line 1 "../../asn1/pkix1implicit/packet-pkix1implicit-hfarr.c"
|
2004-11-20 21:26:08 +00:00
|
|
|
{ &hf_pkix1implicit_Dummy_PDU,
|
2013-05-27 20:26:49 +00:00
|
|
|
{ "Dummy", "pkix1implicit.Dummy_element",
|
2004-11-20 21:26:08 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
NULL, 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,
|
2010-05-11 02:37:46 +00:00
|
|
|
NULL, HFILL }},
|
2009-06-02 09:17:16 +00:00
|
|
|
{ &hf_pkix1implicit_UserNotice_PDU,
|
2013-05-27 20:26:49 +00:00
|
|
|
{ "UserNotice", "pkix1implicit.UserNotice_element",
|
2009-06-02 09:17:16 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
NULL, HFILL }},
|
2004-11-21 05:21:26 +00:00
|
|
|
{ &hf_pkix1implicit_AuthorityInfoAccessSyntax_item,
|
2013-05-27 20:26:49 +00:00
|
|
|
{ "AccessDescription", "pkix1implicit.AccessDescription_element",
|
2004-11-21 05:21:26 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
NULL, HFILL }},
|
2004-11-21 05:21:26 +00:00
|
|
|
{ &hf_pkix1implicit_accessMethod,
|
|
|
|
{ "accessMethod", "pkix1implicit.accessMethod",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
"OBJECT_IDENTIFIER", HFILL }},
|
2004-11-21 05:21:26 +00:00
|
|
|
{ &hf_pkix1implicit_accessLocation,
|
|
|
|
{ "accessLocation", "pkix1implicit.accessLocation",
|
2004-12-05 21:47:49 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
"GeneralName", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_noticeRef,
|
2013-05-27 20:26:49 +00:00
|
|
|
{ "noticeRef", "pkix1implicit.noticeRef_element",
|
2004-09-16 09:01:20 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
"NoticeReference", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_explicitText,
|
|
|
|
{ "explicitText", "pkix1implicit.explicitText",
|
2005-06-26 05:48:50 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(pkix1implicit_DisplayText_vals), 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
"DisplayText", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_organization,
|
|
|
|
{ "organization", "pkix1implicit.organization",
|
2005-06-26 05:48:50 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(pkix1implicit_DisplayText_vals), 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
"DisplayText", HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_noticeNumbers,
|
|
|
|
{ "noticeNumbers", "pkix1implicit.noticeNumbers",
|
2005-07-21 21:12:09 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2010-05-11 03:53:31 +00:00
|
|
|
NULL, HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_noticeNumbers_item,
|
2009-05-16 22:07:03 +00:00
|
|
|
{ "noticeNumbers item", "pkix1implicit.noticeNumbers_item",
|
2004-09-16 09:01:20 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
"INTEGER", HFILL }},
|
2010-06-04 14:36:53 +00:00
|
|
|
{ &hf_pkix1implicit_ia5String,
|
|
|
|
{ "ia5String", "pkix1implicit.ia5String",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
NULL, HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_visibleString,
|
|
|
|
{ "visibleString", "pkix1implicit.visibleString",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
NULL, HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_bmpString,
|
|
|
|
{ "bmpString", "pkix1implicit.bmpString",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
NULL, HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
{ &hf_pkix1implicit_utf8String,
|
|
|
|
{ "utf8String", "pkix1implicit.utf8String",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2010-05-11 02:37:46 +00:00
|
|
|
NULL, HFILL }},
|
2004-09-16 09:01:20 +00:00
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1implicit-hfarr.c ---*/
|
2013-12-08 15:40:10 +00:00
|
|
|
#line 73 "../../asn1/pkix1implicit/packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* List of subtrees */
|
|
|
|
static gint *ett[] = {
|
|
|
|
|
|
|
|
/*--- Included file: packet-pkix1implicit-ettarr.c ---*/
|
2011-05-13 08:12:27 +00:00
|
|
|
#line 1 "../../asn1/pkix1implicit/packet-pkix1implicit-ettarr.c"
|
2004-11-21 05:21:26 +00:00
|
|
|
&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 ---*/
|
2013-12-08 15:40:10 +00:00
|
|
|
#line 78 "../../asn1/pkix1implicit/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 ---*/
|
2011-05-13 08:12:27 +00:00
|
|
|
#line 1 "../../asn1/pkix1implicit/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");
|
2007-03-23 16:52:22 +00:00
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.12.1", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-any-application-policy");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.1", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-ctl-usage-signing");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.2", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-time-stamp-signing");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.4", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-efs");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.4.1", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-efs-recovery");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.5", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-whql-crypto");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.6", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-nt5-crypto");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.7", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-oem-whql-crypto");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.8", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-embedded-nt-crypto");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.9", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-root-list-signer");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.10", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-qualified-subordination");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.11", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-key-recovery");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.12", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-document-signing");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.3.13", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-lifetime-signing");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.5.1", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-drm");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.6.1", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-licenses");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.10.6.2", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-license-server");
|
2007-05-03 11:37:47 +00:00
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.20.1", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-auto-enroll-ctl-usage");
|
2007-03-23 16:52:22 +00:00
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.20.2.1", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-enrollment-agent");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.20.2.2", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-smartcard-logon");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.21.5", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-ca-exchange");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.21.6", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-kp-key-recovery-agent");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.4.1.311.21.19", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-ds-email-replication");
|
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.8.2.2", dissect_Dummy_PDU, proto_pkix1implicit, "id-ms-ipsec-kp-ike-intermediate");
|
2009-06-02 09:17:16 +00:00
|
|
|
register_ber_oid_dissector("1.3.6.1.5.5.7.2.2", dissect_UserNotice_PDU, proto_pkix1implicit, "id-qt-unotice");
|
2004-11-20 21:26:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- End of included file: packet-pkix1implicit-dis-tab.c ---*/
|
2013-12-08 15:40:10 +00:00
|
|
|
#line 93 "../../asn1/pkix1implicit/packet-pkix1implicit-template.c"
|
2004-09-16 09:01:20 +00:00
|
|
|
}
|
|
|
|
|