2 * Routines for RFC3820 PKIXProxy packet dissection
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
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.
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.
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.
31 #include <epan/packet.h>
32 #include <epan/oids.h>
33 #include <epan/asn1.h>
38 #include "packet-ber.h"
39 #include "packet-pkixproxy.h"
41 #define PNAME "PKIXProxy (RFC3820)"
42 #define PSNAME "PKIXPROXY"
43 #define PFNAME "pkixproxy"
45 /* Initialize the protocol and registered fields */
46 static int proto_pkixproxy = -1;
47 #include "packet-pkixproxy-hf.c"
49 /* Initialize the subtree pointers */
50 #include "packet-pkixproxy-ett.c"
52 #include "packet-pkixproxy-fn.c"
55 /*--- proto_register_pkixproxy ----------------------------------------------*/
56 void proto_register_pkixproxy(void) {
59 static hf_register_info hf[] = {
60 #include "packet-pkixproxy-hfarr.c"
63 /* List of subtrees */
64 static gint *ett[] = {
65 #include "packet-pkixproxy-ettarr.c"
68 /* Register protocol */
69 proto_pkixproxy = proto_register_protocol(PNAME, PSNAME, PFNAME);
71 /* Register fields and subtrees */
72 proto_register_field_array(proto_pkixproxy, hf, array_length(hf));
73 proto_register_subtree_array(ett, array_length(ett));
78 /*--- proto_reg_handoff_pkixproxy -------------------------------------------*/
79 void proto_reg_handoff_pkixproxy(void) {
80 #include "packet-pkixproxy-dis-tab.c"
81 oid_add_from_string("id-ppl-anyLanguage","1.3.6.1.5.5.7.21.0");
82 oid_add_from_string("id-ppl-inheritAll","1.3.6.1.5.5.7.21.1");
83 oid_add_from_string("id-ppl-independent","1.3.6.1.5.5.7.21.2");