Fixup: tvb_get_string(z) -> tvb_get_string(z)_enc
[metze/wireshark/wip.git] / epan / dissectors / packet-dcerpc-rs_prop_plcy.c
1 /* packet-dcerpc-rs_prop_plcy.c
2  *
3  * Routines for rs_prop_plcy dissection
4  * Copyright 2004, Jaime Fournier <jaime.fournier@hush.com>
5  * This information is based off the released idl files from opengroup.
6  * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_prop_plcy.idl
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25  */
26
27 #include "config.h"
28
29
30 #include <glib.h>
31 #include <epan/packet.h>
32 #include "packet-dcerpc.h"
33
34 void proto_register_rs_prop_plcy (void);
35 void proto_reg_handoff_rs_prop_plcy (void);
36
37 static int proto_rs_prop_plcy = -1;
38 static int hf_rs_prop_plcy_opnum = -1;
39
40
41 static gint ett_rs_prop_plcy = -1;
42 static e_uuid_t uuid_rs_prop_plcy =
43   { 0xe6ac5cb8, 0xde3e, 0x11ca, {0x93, 0x76, 0x08, 0x00, 0x1e, 0x03, 0x94,
44                                  0xc7} };
45
46 static guint16 ver_rs_prop_plcy = 1;
47
48
49 static dcerpc_sub_dissector rs_prop_plcy_dissectors[] = {
50   {0, "rs_prop_properties_set_info",     NULL, NULL},
51   {1, "rs_prop_plcy_set_info",           NULL, NULL},
52   {2, "rs_prop_auth_plcy_set_info",      NULL, NULL},
53   {3, "rs_prop_plcy_set_dom_cache_info", NULL, NULL},
54   {0, NULL, NULL, NULL}
55 };
56
57 void
58 proto_register_rs_prop_plcy (void)
59 {
60   static hf_register_info hf[] = {
61     {&hf_rs_prop_plcy_opnum,
62      {"Operation", "rs_prop_plcy.opnum", FT_UINT16, BASE_DEC, NULL, 0x0,
63       NULL, HFILL}},
64   };
65
66   static gint *ett[] = {
67     &ett_rs_prop_plcy,
68   };
69   proto_rs_prop_plcy =
70     proto_register_protocol
71     ("DCE/RPC Registry server propagation interface - properties and policies",
72      "rs_prop_plcy", "rs_prop_plcy");
73   proto_register_field_array (proto_rs_prop_plcy, hf, array_length (hf));
74   proto_register_subtree_array (ett, array_length (ett));
75 }
76
77 void
78 proto_reg_handoff_rs_prop_plcy (void)
79 {
80   /* Register the protocol as dcerpc */
81   dcerpc_init_uuid (proto_rs_prop_plcy, ett_rs_prop_plcy, &uuid_rs_prop_plcy,
82                     ver_rs_prop_plcy, rs_prop_plcy_dissectors,
83                     hf_rs_prop_plcy_opnum);
84 }