New protocol: RFC3709 LogotypeCertificateExtensions
[obnox/wireshark/wip.git] / asn1 / logotype-cert-extn / packet-logotype-cert-extn-template.c
1 /* packet-logotype-cert-extn.c
2  * Routines for RFC3709 Logotype Certificate Extensions packet dissection
3  *   Ronnie Sahlberg 2004
4  *
5  * $Id: packet-logotype-cert-extn-template.c 12438 2004-10-30 02:36:58Z sahlberg $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif
29
30 #include <glib.h>
31 #include <epan/packet.h>
32
33 #include <stdio.h>
34 #include <string.h>
35
36 #include "packet-ber.h"
37 #include "packet-logotypecertextn.h"
38 #include "packet-x509af.h"
39
40 #define PNAME  "Logotype Certificate Extensions"
41 #define PSNAME "LogotypeCertExtn"
42 #define PFNAME "logotypecertextn"
43
44 /* Initialize the protocol and registered fields */
45 static int proto_logotypecertextn = -1;
46 #include "packet-logotypecertextn-hf.c"
47
48 /* Initialize the subtree pointers */
49 #include "packet-logotypecertextn-ett.c"
50
51
52 #include "packet-logotypecertextn-fn.c"
53
54
55 /*--- proto_register_logotypecertextn ----------------------------------------------*/
56 void proto_register_logotypecertextn(void) {
57
58   /* List of fields */
59   static hf_register_info hf[] = {
60 #include "packet-logotypecertextn-hfarr.c"
61   };
62
63   /* List of subtrees */
64   static gint *ett[] = {
65 #include "packet-logotypecertextn-ettarr.c"
66   };
67
68   /* Register protocol */
69   proto_logotypecertextn = proto_register_protocol(PNAME, PSNAME, PFNAME);
70
71   /* Register fields and subtrees */
72   proto_register_field_array(proto_logotypecertextn, hf, array_length(hf));
73   proto_register_subtree_array(ett, array_length(ett));
74
75 }
76
77
78 /*--- proto_reg_handoff_logotypecertextn -------------------------------------------*/
79 void proto_reg_handoff_logotypecertextn(void) {
80 #include "packet-logotypecertextn-dis-tab.c"
81 }
82