1 /* packet-pkix1implicit.c
2 * Routines for PKIX1Implitic packet dissection
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
30 #include <epan/packet.h>
32 #include <epan/asn1.h>
33 #include "packet-ber.h"
34 #include "packet-pkix1implicit.h"
35 #include "packet-pkix1explicit.h"
36 #include "packet-x509ce.h"
38 #define PNAME "PKIX1Implitit"
39 #define PSNAME "PKIX1IMPLICIT"
40 #define PFNAME "pkix1implicit"
42 /* Initialize the protocol and registered fields */
43 static int proto_pkix1implicit = -1;
44 #include "packet-pkix1implicit-hf.c"
46 /* Initialize the subtree pointers */
47 #include "packet-pkix1implicit-ett.c"
51 dissect_pkix1implicit_ReasonFlags(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) {
52 offset = dissect_x509ce_ReasonFlags(implicit_tag, tvb, offset, actx, tree, hf_index);
57 dissect_pkix1implicit_GeneralName(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) {
58 offset = dissect_x509ce_GeneralName(implicit_tag, tvb, offset, actx, tree, hf_index);
63 #include "packet-pkix1implicit-fn.c"
66 /*--- proto_register_pkix1implicit ----------------------------------------------*/
67 void proto_register_pkix1implicit(void) {
70 static hf_register_info hf[] = {
71 #include "packet-pkix1implicit-hfarr.c"
74 /* List of subtrees */
75 static gint *ett[] = {
76 #include "packet-pkix1implicit-ettarr.c"
79 /* Register protocol */
80 proto_pkix1implicit = proto_register_protocol(PNAME, PSNAME, PFNAME);
82 /* Register fields and subtrees */
83 proto_register_field_array(proto_pkix1implicit, hf, array_length(hf));
84 proto_register_subtree_array(ett, array_length(ett));
89 /*--- proto_reg_handoff_pkix1implicit -------------------------------------------*/
90 void proto_reg_handoff_pkix1implicit(void) {
91 #include "packet-pkix1implicit-dis-tab.c"