Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / ns_cert_exts / packet-ns_cert_exts-template.c
blob40d74dd936439f9ed9a169645c163bfd021b6465
1 /* packet-ns_cert_exts.c
2 * Routines for NetScape Certificate Extensions packet dissection
3 * Ronnie Sahlberg 2004
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #include "config.h"
14 #include <epan/packet.h>
15 #include <wsutil/array.h>
17 #include "packet-ber.h"
19 #define PNAME "NetScape Certificate Extensions"
20 #define PSNAME "NS_CERT_EXTS"
21 #define PFNAME "ns_cert_exts"
23 void proto_register_ns_cert_exts(void);
24 void proto_reg_handoff_ns_cert_exts(void);
26 /* Initialize the protocol and registered fields */
27 static int proto_ns_cert_exts;
28 #include "packet-ns_cert_exts-hf.c"
30 /* Initialize the subtree pointers */
31 #include "packet-ns_cert_exts-ett.c"
33 #include "packet-ns_cert_exts-fn.c"
36 /*--- proto_register_ns_cert_exts -------------------------------------------*/
37 void proto_register_ns_cert_exts(void) {
39 /* List of fields */
40 static hf_register_info hf[] = {
41 #include "packet-ns_cert_exts-hfarr.c"
44 /* List of subtrees */
45 static int *ett[] = {
46 #include "packet-ns_cert_exts-ettarr.c"
49 /* Register protocol */
50 proto_ns_cert_exts = proto_register_protocol(PNAME, PSNAME, PFNAME);
52 /* Register fields and subtrees */
53 proto_register_field_array(proto_ns_cert_exts, hf, array_length(hf));
54 proto_register_subtree_array(ett, array_length(ett));
59 /*--- proto_reg_handoff_ns_cert_exts ---------------------------------------*/
60 void proto_reg_handoff_ns_cert_exts(void) {
61 #include "packet-ns_cert_exts-dis-tab.c"