1 /* packet-ns_cert_exts.c
2 * Routines for NetScape Certificate Extensions packet dissection
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@ethereal.com>
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 #include <epan/packet.h>
31 #include <epan/conversation.h>
36 #include "packet-ber.h"
38 #define PNAME "NetScape Certificate Extensions"
39 #define PSNAME "NS_CERT_EXTS"
40 #define PFNAME "ns_cert_exts"
42 /* Initialize the protocol and registered fields */
43 int proto_ns_cert_exts = -1;
44 #include "packet-ns_cert_exts-hf.c"
46 /* Initialize the subtree pointers */
47 #include "packet-ns_cert_exts-ett.c"
49 #include "packet-ns_cert_exts-fn.c"
52 /*--- proto_register_ns_cert_exts -------------------------------------------*/
53 void proto_register_ns_cert_exts(void) {
56 static hf_register_info hf[] = {
57 #include "packet-ns_cert_exts-hfarr.c"
60 /* List of subtrees */
61 static gint *ett[] = {
62 #include "packet-ns_cert_exts-ettarr.c"
65 /* Register protocol */
66 proto_ns_cert_exts = proto_register_protocol(PNAME, PSNAME, PFNAME);
68 /* Register fields and subtrees */
69 proto_register_field_array(proto_ns_cert_exts, hf, array_length(hf));
70 proto_register_subtree_array(ett, array_length(ett));
75 /*--- proto_reg_handoff_ns_cert_exts ---------------------------------------*/
76 void proto_reg_handoff_ns_cert_exts(void) {
77 #include "packet-ns_cert_exts-dis-tab.c"