char *drep -> guint8 *drep
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 19 Jan 2004 20:10:37 +0000 (20:10 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 19 Jan 2004 20:10:37 +0000 (20:10 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9735 f5534014-38df-0310-8fa8-9805f1628bb7

36 files changed:
packet-dcerpc-atsvc.c
packet-dcerpc-browser.c
packet-dcerpc-conv.c
packet-dcerpc-epm.c
packet-dcerpc-epm4.c
packet-dcerpc-initshutdown.c
packet-dcerpc-krb5rpc.c
packet-dcerpc-lsa-ds.c
packet-dcerpc-lsa.c
packet-dcerpc-lsa.h
packet-dcerpc-mapi.c
packet-dcerpc-messenger.c
packet-dcerpc-ndr.c
packet-dcerpc-netlogon.c
packet-dcerpc-nt.c
packet-dcerpc-nt.h
packet-dcerpc-oxid.c
packet-dcerpc-reg.c
packet-dcerpc-rpriv.c
packet-dcerpc-rs_acct.c
packet-dcerpc-rs_misc.c
packet-dcerpc-rs_pgo.c
packet-dcerpc-samr.c
packet-dcerpc-spoolss.c
packet-dcerpc-srvsvc.c
packet-dcerpc-svcctl.c
packet-dcerpc-tapi.c
packet-dcerpc-wkssvc.c
packet-dcerpc.c
packet-dcerpc.h
packet-gssapi.c
packet-ntlmssp.c
packet-smb-browse.c
packet-smb-browse.h
packet-smb-common.h
packet-smb.c

index e8477d72be4af13e55285fec61386bdbc02ef905..b239224c286c42ed0a82ea2c32eb5e5bb6111546 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for SMB \pipe\atsvc packet disassembly
  * Copyright 2003 Jean-Baptiste Marchand <jbm@hsc.fr>
  *
- * $Id: packet-dcerpc-atsvc.c,v 1.4 2003/08/04 02:49:04 tpot Exp $
+ * $Id: packet-dcerpc-atsvc.c,v 1.5 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -94,7 +94,7 @@ static guint16 ver_dcerpc_atsvc = 1;
 
 static int
 atsvc_dissect_AT_INFO_fields(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        proto_item *item = NULL;
        proto_tree *flags_tree = NULL;
@@ -222,7 +222,7 @@ atsvc_dissect_AT_INFO_fields(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_AT_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        proto_item *item = NULL;
        proto_tree *subtree = NULL;
@@ -249,7 +249,7 @@ atsvc_dissect_AT_INFO(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_add_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "Server", hf_atsvc_server, 0);
@@ -261,7 +261,7 @@ atsvc_dissect_add_rqst(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_add_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                        hf_atsvc_job_id, NULL);
@@ -283,7 +283,7 @@ atsvc_dissect_add_reply(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_del_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "Server", hf_atsvc_server, 0);
@@ -299,7 +299,7 @@ atsvc_dissect_del_rqst(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_del_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep, 
                        hf_atsvc_rc, NULL);
@@ -320,7 +320,7 @@ atsvc_dissect_del_reply(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_AT_ENUM(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        proto_item *item = NULL;
        proto_tree *subtree = NULL;
@@ -346,7 +346,7 @@ atsvc_dissect_AT_ENUM(tvbuff_t *tvb, int offset,
 static int
 atsvc_dissect_ENUM_HANDLE(tvbuff_t *tvb, int offset,
                           packet_info *pinfo, proto_tree *tree,
-                          char *drep)
+                          guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                              hf_atsvc_enum_handle, 0);
@@ -357,7 +357,7 @@ atsvc_dissect_ENUM_HANDLE(tvbuff_t *tvb, int offset,
 static int
 atsvc_dissect_AT_ENUM_array(tvbuff_t *tvb, int offset,
                                     packet_info *pinfo, proto_tree *tree,
-                                    char *drep)
+                                    guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        atsvc_dissect_AT_ENUM);
@@ -375,7 +375,7 @@ atsvc_dissect_AT_ENUM_array(tvbuff_t *tvb, int offset,
 static int
 atsvc_dissect_AT_ENUM_CONTAINER(tvbuff_t *tvb, int offset,
                                     packet_info *pinfo, proto_tree *tree,
-                                    char *drep)
+                                    guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_atsvc_num_entries, NULL);
@@ -400,7 +400,7 @@ atsvc_dissect_AT_ENUM_CONTAINER(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_enum_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "Server", hf_atsvc_server, 0);
@@ -421,7 +421,7 @@ atsvc_dissect_enum_rqst(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_enum_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        atsvc_dissect_AT_ENUM_CONTAINER,
@@ -451,7 +451,7 @@ atsvc_dissect_enum_reply(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_getinfo_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "Server", hf_atsvc_server, 0);
@@ -464,7 +464,7 @@ atsvc_dissect_getinfo_rqst(tvbuff_t *tvb, int offset,
 
 static int
 atsvc_dissect_getinfo_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        atsvc_dissect_AT_INFO, NDR_POINTER_UNIQUE,
index 00bc119c13259ac7f11132f1e924fdad784691c0..8fee1bdd9962a5c7ebf0e3998b801a1f41823c67 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for DCERPC Browser packet disassembly
  * Copyright 2001, Ronnie Sahlberg
  *
- * $Id: packet-dcerpc-browser.c,v 1.13 2003/10/02 21:48:35 guy Exp $
+ * $Id: packet-dcerpc-browser.c,v 1.14 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -53,7 +53,7 @@ static gint ett_dcerpc_browser = -1;
 static int
 dissect_browser_long_pointer(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -90,7 +90,7 @@ static guint16 ver_dcerpc_browser = 0;
 static int
 dissect_browser_TYPE_4_data(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 len;
        dcerpc_info *di;
@@ -114,7 +114,7 @@ dissect_browser_TYPE_4_data(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_4(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_long, NULL);
@@ -136,7 +136,7 @@ dissect_browser_TYPE_4(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_3_data(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 len;
        dcerpc_info *di;
@@ -161,7 +161,7 @@ dissect_browser_TYPE_3_data(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_3(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_long, NULL);
@@ -184,7 +184,7 @@ dissect_browser_TYPE_3(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_2(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -220,7 +220,7 @@ dissect_browser_TYPE_2(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_1(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_long, NULL);
@@ -248,7 +248,7 @@ dissect_browser_TYPE_1(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_server_enum_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -285,7 +285,7 @@ dissect_browser_browserr_server_enum_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_server_enum_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        dissect_browser_TYPE_1, NDR_POINTER_REF,
@@ -314,7 +314,7 @@ dissect_browser_browserr_server_enum_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_debug_call_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -331,7 +331,7 @@ dissect_browser_browserr_debug_call_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_debug_call_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_rc, NULL);
@@ -350,7 +350,7 @@ dissect_browser_browserr_debug_call_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_query_other_domains_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -365,7 +365,7 @@ dissect_browser_browserr_query_other_domains_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_query_other_domains_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_long, NULL);
@@ -385,7 +385,7 @@ dissect_browser_browserr_query_other_domains_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_reset_netlogon_state_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -396,7 +396,7 @@ dissect_browser_browserr_reset_netlogon_state_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_reset_netlogon_state_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_rc, NULL);
@@ -414,7 +414,7 @@ dissect_browser_browserr_reset_netlogon_state_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_debug_trace_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -429,7 +429,7 @@ dissect_browser_browserr_debug_trace_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_debug_trace_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_rc, NULL);
@@ -469,7 +469,7 @@ dissect_browser_browserr_debug_trace_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_5(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint64(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_hyper, NULL);
@@ -541,7 +541,7 @@ dissect_browser_TYPE_5(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_query_statistics_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -552,7 +552,7 @@ dissect_browser_browserr_query_statistics_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_query_statistics_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        dissect_browser_TYPE_5, NDR_POINTER_UNIQUE,
@@ -573,7 +573,7 @@ dissect_browser_browserr_query_statistics_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_reset_statistics_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -584,7 +584,7 @@ dissect_browser_browserr_reset_statistics_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_reset_statistics_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_rc, NULL);
@@ -601,7 +601,7 @@ dissect_browser_browserr_reset_statistics_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_netr_browser_statistics_clear_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -612,7 +612,7 @@ dissect_browser_netr_browser_statistics_clear_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_netr_browser_statistics_clear_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_rc, NULL);
@@ -644,7 +644,7 @@ dissect_browser_netr_browser_statistics_clear_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_11(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint64(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_hyper, NULL);
@@ -706,7 +706,7 @@ dissect_browser_TYPE_11(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_11_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                dissect_browser_TYPE_11);
@@ -717,7 +717,7 @@ dissect_browser_TYPE_11_array(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_10(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_long, NULL);
@@ -739,7 +739,7 @@ dissect_browser_TYPE_10(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_9_data(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 len;
        dcerpc_info *di;
@@ -765,7 +765,7 @@ dissect_browser_TYPE_9_data(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_9(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_long, NULL);
@@ -787,7 +787,7 @@ dissect_browser_TYPE_9(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_8(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -823,7 +823,7 @@ dissect_browser_TYPE_8(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_7(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_long, NULL);
@@ -844,7 +844,7 @@ dissect_browser_TYPE_7(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_netr_browser_statistics_get_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -862,7 +862,7 @@ dissect_browser_netr_browser_statistics_get_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_netr_browser_statistics_get_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        dissect_browser_TYPE_7, NDR_POINTER_REF,
@@ -886,7 +886,7 @@ dissect_browser_netr_browser_statistics_get_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_set_netlogon_state_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -908,7 +908,7 @@ dissect_browser_browserr_set_netlogon_state_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_set_netlogon_state_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_rc, NULL);
@@ -928,7 +928,7 @@ dissect_browser_browserr_set_netlogon_state_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_12_data(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 len;
        dcerpc_info *di;
@@ -954,7 +954,7 @@ dissect_browser_TYPE_12_data(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_TYPE_12(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_browser_unknown_long, NULL);
@@ -976,7 +976,7 @@ dissect_browser_TYPE_12(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_query_emulated_domains_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -991,7 +991,7 @@ dissect_browser_browserr_query_emulated_domains_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_query_emulated_domains_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        dissect_browser_TYPE_12, NDR_POINTER_REF,
@@ -1020,7 +1020,7 @@ dissect_browser_browserr_query_emulated_domains_reply(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_server_enum_ex_rqst(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                        NDR_POINTER_UNIQUE, "unknown string", 
@@ -1057,7 +1057,7 @@ dissect_browser_browserr_server_enum_ex_rqst(tvbuff_t *tvb, int offset,
 static int
 dissect_browser_browserr_server_enum_ex_reply(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        dissect_browser_TYPE_1, NDR_POINTER_REF,
index 3a2cb64086bbd8ded6211e9f2bacf77e9d703fa1..de55f7146dd13bee1a5e1747e204cfa227e9971b 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for dcerpc conv dissection
  * Copyright 2001, Todd Sabin <tas@webspan.net>
  *
- * $Id: packet-dcerpc-conv.c,v 1.8 2003/08/04 02:49:03 tpot Exp $
+ * $Id: packet-dcerpc-conv.c,v 1.9 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -61,7 +61,7 @@ static guint16  ver_conv = 3;
 static int
 conv_dissect_who_are_you_rqst (tvbuff_t *tvb, int offset,
                                 packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
        /*
         *         [in]    uuid_t          *actuid,
@@ -85,7 +85,7 @@ conv_dissect_who_are_you_rqst (tvbuff_t *tvb, int offset,
 static int
 conv_dissect_who_are_you_resp (tvbuff_t *tvb, int offset,
                                 packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
        /*
         *         [out]   unsigned32      *seq,
@@ -110,7 +110,7 @@ conv_dissect_who_are_you_resp (tvbuff_t *tvb, int offset,
 static int
 conv_dissect_who_are_you2_rqst (tvbuff_t *tvb, int offset,
                                 packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
        /*
         *         [in]    uuid_t          *actuid,
@@ -133,7 +133,7 @@ conv_dissect_who_are_you2_rqst (tvbuff_t *tvb, int offset,
 static int
 conv_dissect_who_are_you2_resp (tvbuff_t *tvb, int offset,
                                 packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
        /*
         *         [out]   unsigned32      *seq,
index d919a0f20ecb3daa49caf23def376494271219fd..2c2d81e48ea1d1577fad7f9d3610d6931a6d4da6 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for dcerpc endpoint mapper dissection
  * Copyright 2001, Todd Sabin <tas@webspan.net>
  *
- * $Id: packet-dcerpc-epm.c,v 1.24 2003/11/21 08:40:00 guy Exp $
+ * $Id: packet-dcerpc-epm.c,v 1.25 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -88,13 +88,13 @@ static const value_string ep_service[] = {
       [size_is(tower_len)] char tower[];
    } twr_t, *twr_p_t;
 */
-static int epm_dissect_tower (tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, char *drep);
+static int epm_dissect_tower (tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
 
 
 static int
 epm_dissect_pointer_IF_ID(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -111,7 +111,7 @@ epm_dissect_pointer_IF_ID(tvbuff_t *tvb, int offset,
 static int
 epm_dissect_pointer_UUID(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -124,7 +124,7 @@ epm_dissect_pointer_UUID(tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_lookup_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                  hf_epm_inquiry_type, NULL);
@@ -152,7 +152,7 @@ epm_dissect_ept_lookup_rqst (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_entry_t(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *parent_tree,
-                             char *drep)
+                             guint8 *drep)
 {
     proto_item *item=NULL;
     proto_tree *tree=NULL;
@@ -206,7 +206,7 @@ epm_dissect_ept_entry_t(tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_entry_t_array(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_ucvarray(tvb, offset, pinfo, tree, drep,
                              epm_dissect_ept_entry_t);
@@ -217,7 +217,7 @@ epm_dissect_ept_entry_t_array(tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_lookup_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_ctx_hnd (tvb, offset, pinfo, tree, drep,
                                   hf_epm_hnd, NULL);
@@ -238,7 +238,7 @@ epm_dissect_ept_lookup_resp (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_uuid (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_uuid_t (tvb, offset, pinfo, tree, drep,
                                   hf_epm_uuid, NULL);
@@ -313,7 +313,7 @@ static const value_string proto_id_vals[] = {
 static int
 epm_dissect_tower_data (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     guint16 num_floors, i;
     dcerpc_info *di;
@@ -436,7 +436,7 @@ epm_dissect_tower_data (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_tower (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     guint32 len;
     dcerpc_info *di;
@@ -459,7 +459,7 @@ epm_dissect_tower (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_tower_pointer (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                              epm_dissect_tower, NDR_POINTER_PTR,
@@ -469,7 +469,7 @@ epm_dissect_tower_pointer (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_tower_array (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_ucvarray(tvb, offset, pinfo, tree, drep,
                              epm_dissect_tower_pointer);
@@ -480,7 +480,7 @@ epm_dissect_tower_array (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_map_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [in, ptr] uuid_p_t object */
     offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -506,7 +506,7 @@ epm_dissect_ept_map_rqst (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_map_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [in, out] ept_lookup_handle_t *entry_handle */
     offset = dissect_ndr_ctx_hnd (tvb, offset, pinfo, tree, drep,
@@ -531,7 +531,7 @@ epm_dissect_ept_map_resp (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_entry_t_ucarray(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                              epm_dissect_ept_entry_t);
@@ -542,7 +542,7 @@ epm_dissect_ept_entry_t_ucarray(tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_insert_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                  hf_epm_num_ents, NULL);
@@ -562,7 +562,7 @@ epm_dissect_ept_insert_rqst (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_insert_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [out] error_status_t *status */
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
@@ -575,7 +575,7 @@ epm_dissect_ept_insert_resp (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_delete_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                  hf_epm_num_ents, NULL);
@@ -592,7 +592,7 @@ epm_dissect_ept_delete_rqst (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_delete_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [out] error_status_t *status */
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
@@ -606,7 +606,7 @@ epm_dissect_ept_delete_resp (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_lookup_handle_free_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [in, out] ept_lookup_handle_t *entry_handle */
     offset = dissect_ndr_ctx_hnd (tvb, offset, pinfo, tree, drep,
@@ -618,7 +618,7 @@ epm_dissect_ept_lookup_handle_free_rqst (tvbuff_t *tvb, int offset,
 static int
 epm_dissect_ept_lookup_handle_free_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [in, out] ept_lookup_handle_t *entry_handle */
     offset = dissect_ndr_ctx_hnd (tvb, offset, pinfo, tree, drep,
index ad66e591f504c89b0ee232a3a45060f370557c71..5a364f4cfa248edd49154965464fec333c97c316 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for dcerpc endpoint mapper dissection
  * Copyright 2001, Todd Sabin <tas@webspan.net>
  *
- * $Id: packet-dcerpc-epm4.c,v 1.1 2003/11/25 08:10:57 guy Exp $
+ * $Id: packet-dcerpc-epm4.c,v 1.2 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -88,13 +88,13 @@ static const value_string ep_service[] = {
       [size_is(tower_len)] char tower[];
    } twr_t, *twr_p_t;
 */
-static int epm4_dissect_tower (tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, char *drep);
+static int epm4_dissect_tower (tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
 
 
 static int
 epm4_dissect_pointer_IF_ID(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -111,7 +111,7 @@ epm4_dissect_pointer_IF_ID(tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_pointer_UUID(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -124,7 +124,7 @@ epm4_dissect_pointer_UUID(tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_lookup_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                  hf_epm4_inquiry_type, NULL);
@@ -152,7 +152,7 @@ epm4_dissect_ept_lookup_rqst (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_entry_t(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *parent_tree,
-                             char *drep)
+                             guint8 *drep)
 {
     proto_item *item=NULL;
     proto_tree *tree=NULL;
@@ -206,7 +206,7 @@ epm4_dissect_ept_entry_t(tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_entry_t_array(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_ucvarray(tvb, offset, pinfo, tree, drep,
                              epm4_dissect_ept_entry_t);
@@ -217,7 +217,7 @@ epm4_dissect_ept_entry_t_array(tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_lookup_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_ctx_hnd (tvb, offset, pinfo, tree, drep,
                                   hf_epm4_hnd, NULL);
@@ -238,7 +238,7 @@ epm4_dissect_ept_lookup_resp (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_uuid (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_uuid_t (tvb, offset, pinfo, tree, drep,
                                   hf_epm4_uuid, NULL);
@@ -313,7 +313,7 @@ static const value_string proto_id_vals[] = {
 static int
 epm4_dissect_tower_data (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     guint16 num_floors, i;
     dcerpc_info *di;
@@ -436,7 +436,7 @@ epm4_dissect_tower_data (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_tower (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     guint32 len;
     dcerpc_info *di;
@@ -459,7 +459,7 @@ epm4_dissect_tower (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_tower_pointer (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                              epm4_dissect_tower, NDR_POINTER_PTR,
@@ -469,7 +469,7 @@ epm4_dissect_tower_pointer (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_tower_array (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_ucvarray(tvb, offset, pinfo, tree, drep,
                              epm4_dissect_tower_pointer);
@@ -480,7 +480,7 @@ epm4_dissect_tower_array (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_map_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [in, ptr] uuid_p_t object */
     offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -506,7 +506,7 @@ epm4_dissect_ept_map_rqst (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_map_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [in, out] ept_lookup_handle_t *entry_handle */
     offset = dissect_ndr_ctx_hnd (tvb, offset, pinfo, tree, drep,
@@ -531,7 +531,7 @@ epm4_dissect_ept_map_resp (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_entry_t_ucarray(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                              epm4_dissect_ept_entry_t);
@@ -542,7 +542,7 @@ epm4_dissect_ept_entry_t_ucarray(tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_insert_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                  hf_epm4_num_ents, NULL);
@@ -562,7 +562,7 @@ epm4_dissect_ept_insert_rqst (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_insert_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [out] error_status_t *status */
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
@@ -575,7 +575,7 @@ epm4_dissect_ept_insert_resp (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_delete_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                  hf_epm4_num_ents, NULL);
@@ -592,7 +592,7 @@ epm4_dissect_ept_delete_rqst (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_delete_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [out] error_status_t *status */
     offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
@@ -606,7 +606,7 @@ epm4_dissect_ept_delete_resp (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_lookup_handle_free_rqst (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [in, out] ept_lookup_handle_t *entry_handle */
     offset = dissect_ndr_ctx_hnd (tvb, offset, pinfo, tree, drep,
@@ -618,7 +618,7 @@ epm4_dissect_ept_lookup_handle_free_rqst (tvbuff_t *tvb, int offset,
 static int
 epm4_dissect_ept_lookup_handle_free_resp (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
     /* [in, out] ept_lookup_handle_t *entry_handle */
     offset = dissect_ndr_ctx_hnd (tvb, offset, pinfo, tree, drep,
index e46c006817fadfbea9c009cce94ef5e70986ef14..4fd58210c6e6199eaaedd1015822075a38a68b0e 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright 2001-2003 Tim Potter <tpot@samba.org>
  * as per a suggestion by Jim McDonough
  *
- * $Id: packet-dcerpc-initshutdown.c,v 1.1 2003/10/27 23:31:54 guy Exp $
+ * $Id: packet-dcerpc-initshutdown.c,v 1.2 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -50,7 +50,7 @@ static int hf_shutdown_reason = -1;
 /* Reg Shutdown functions */
 static int
 dissect_shutdown_server(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                       proto_tree *tree, char *drep)
+                       proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint16(
                tvb, offset, pinfo, tree, drep, hf_shutdown_server, NULL);
@@ -60,7 +60,7 @@ dissect_shutdown_server(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 dissect_shutdown_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                       proto_tree *tree, char *drep)
+                       proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_counted_string(
                tvb, offset, pinfo, tree, drep, hf_shutdown_message, 0);
@@ -70,7 +70,7 @@ dissect_shutdown_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 InitshutdownShutdown_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-        proto_tree *tree, char *drep)
+        proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(
                tvb, offset, pinfo, tree, drep,
@@ -95,7 +95,7 @@ InitshutdownShutdown_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 InitshutdownShutdown_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-        proto_tree *tree, char *drep)
+        proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_rc, NULL);
@@ -105,7 +105,7 @@ InitshutdownShutdown_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 InitshutdownAbortShutdown_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                  proto_tree *tree, char *drep)
+                  proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(
                tvb, offset, pinfo, tree, drep,
@@ -117,7 +117,7 @@ InitshutdownAbortShutdown_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 InitshutdownShutdownEx_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-               proto_tree *tree, char *drep)
+               proto_tree *tree, guint8 *drep)
 {
        offset = InitshutdownShutdown_q(tvb, offset, pinfo, tree, drep);
        offset = dissect_ndr_uint32(
index 41b8475992605acad7ade8bc7c7ad9fbd3ed7250..d54e46355737ad59272db371a5537a493672d8fc 100644 (file)
@@ -5,7 +5,7 @@
  * This information is based off the released idl files from opengroup.
  * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/krb5rpc.idl
  *
- * $Id: packet-dcerpc-krb5rpc.c,v 1.6 2003/08/04 02:49:02 tpot Exp $
+ * $Id: packet-dcerpc-krb5rpc.c,v 1.7 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -67,7 +67,7 @@ static gint ett_krb5rpc_krb5 = -1;
 static int
 krb5rpc_dissect_sendto_kdc_rqst (tvbuff_t * tvb, int offset,
                                 packet_info * pinfo, proto_tree * tree,
-                                char *drep)
+                                guint8 *drep)
 {
   guint32 keysize, spare1, remain;
   proto_item *item;
@@ -104,7 +104,7 @@ krb5rpc_dissect_sendto_kdc_rqst (tvbuff_t * tvb, int offset,
 static int
 krb5rpc_dissect_sendto_kdc_resp (tvbuff_t * tvb, int offset,
                                 packet_info * pinfo, proto_tree * tree,
-                                char *drep)
+                                guint8 *drep)
 {
   guint32 resp_len, maxsize, spare1, keysize, remain;
   proto_item *item;
index 889099fb8db6f4f3c928dc824f82f720382825d0..46a18470f15b834bc5e9a12bfc1ba1ef4761ab89 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2002-2003, Tim Potter <tpot@samba.org>
  * Copyright 2002, Jim McDonough <jmcd@samba.org>
  *
- * $Id: packet-dcerpc-lsa-ds.c,v 1.12 2003/08/04 02:49:02 tpot Exp $
+ * $Id: packet-dcerpc-lsa-ds.c,v 1.13 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -64,7 +64,7 @@ static gint ett_lsa_ds_op_status = -1;
 
 static int
 lsa_ds_dissect_DSROLE_BASIC_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -106,7 +106,7 @@ lsa_ds_dissect_DSROLE_BASIC_INFO(tvbuff_t *tvb, int offset,
 static int 
 lsa_ds_dissect_DSROLE_UPGRADE_STATUS(tvbuff_t *tvb, int offset,
                                     packet_info *pinfo, 
-                                    proto_tree *parent_tree, char *drep)
+                                    proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -131,7 +131,7 @@ lsa_ds_dissect_DSROLE_UPGRADE_STATUS(tvbuff_t *tvb, int offset,
 static int
 lsa_ds_dissect_DSROLE_OP_STATUS(tvbuff_t *tvb, int offset,
                                     packet_info *pinfo, 
-                                    proto_tree *parent_tree, char *drep)
+                                    proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -152,7 +152,7 @@ lsa_ds_dissect_DSROLE_OP_STATUS(tvbuff_t *tvb, int offset,
        
 static int
 lsa_ds_dissect_DS_DOMINFO_CTR(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -189,7 +189,7 @@ lsa_ds_dissect_DS_DOMINFO_CTR(tvbuff_t *tvb, int offset,
 
 static int
 lsa_ds_dissect_role_get_dom_info_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        guint16 level;
 
@@ -204,7 +204,7 @@ lsa_ds_dissect_role_get_dom_info_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_ds_dissect_role_get_dom_info_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                lsa_ds_dissect_DS_DOMINFO_CTR, NDR_POINTER_UNIQUE,
index d7a87395fc8122b96343e964c65d569703d907bf..87833578dcf70c4d05e33d09a2d2432085e4433e 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2001,2003 Tim Potter <tpot@samba.org>
  *  2002  Added LSA command dissectors  Ronnie Sahlberg
  *
- * $Id: packet-dcerpc-lsa.c,v 1.91 2003/09/29 00:01:26 tpot Exp $
+ * $Id: packet-dcerpc-lsa.c,v 1.92 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -166,7 +166,7 @@ static gint ett_lsa_auth_information = -1;
 static int
 lsa_dissect_pointer_NTTIME(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -185,7 +185,7 @@ lsa_dissect_pointer_NTTIME(tvbuff_t *tvb, int offset,
 static int
 lsa_dissect_pointer_UNICODE_STRING(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -203,7 +203,7 @@ lsa_dissect_pointer_UNICODE_STRING(tvbuff_t *tvb, int offset,
 static int
 lsa_dissect_pointer_pointer_UNICODE_STRING(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -223,7 +223,7 @@ lsa_dissect_pointer_pointer_UNICODE_STRING(tvbuff_t *tvb, int offset,
 static int
 lsa_dissect_pointer_STRING(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -242,7 +242,7 @@ lsa_dissect_pointer_STRING(tvbuff_t *tvb, int offset,
 static int
 lsa_dissect_LSA_SECRET_data(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 len;
        dcerpc_info *di;
@@ -268,7 +268,7 @@ lsa_dissect_LSA_SECRET_data(tvbuff_t *tvb, int offset,
 int
 lsa_dissect_LSA_SECRET(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -296,7 +296,7 @@ lsa_dissect_LSA_SECRET(tvbuff_t *tvb, int offset,
 static int
 lsa_dissect_LSA_SECRET_pointer(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_SECRET, NDR_POINTER_UNIQUE,
@@ -367,7 +367,7 @@ struct access_mask_info lsa_access_mask_info = {
 int
 lsa_dissect_LSA_SECURITY_DESCRIPTOR_data(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        guint32 len;
        dcerpc_info *di;
@@ -391,7 +391,7 @@ lsa_dissect_LSA_SECURITY_DESCRIPTOR_data(tvbuff_t *tvb, int offset,
 int
 lsa_dissect_LSA_SECURITY_DESCRIPTOR(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -416,7 +416,7 @@ lsa_dissect_LSA_SECURITY_DESCRIPTOR(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LPSTR(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint8 (tvb, offset, pinfo, tree, drep,
                        hf_lsa_unknown_char, NULL);
@@ -435,7 +435,7 @@ static const value_string lsa_impersonation_level_vals[] = {
 
 static int
 lsa_dissect_SECURITY_QUALITY_OF_SERVICE(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* Length */
        offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
@@ -458,7 +458,7 @@ lsa_dissect_SECURITY_QUALITY_OF_SERVICE(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_ACCESS_MASK(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_access_mask(
                tvb, offset, pinfo, tree, drep, hf_lsa_access_mask,
@@ -469,7 +469,7 @@ lsa_dissect_ACCESS_MASK(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_OBJECT_ATTRIBUTES(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        int old_offset=offset;
        proto_item *item = NULL;
@@ -514,7 +514,7 @@ lsa_dissect_LSA_OBJECT_ATTRIBUTES(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarclose_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, TRUE);
@@ -524,7 +524,7 @@ lsa_dissect_lsarclose_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarclose_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -541,7 +541,7 @@ lsa_dissect_lsarclose_reply(tvbuff_t *tvb, int offset,
 
 static int dissect_lsa_openpolicy_server(tvbuff_t *tvb, int offset,
                                             packet_info *pinfo,
-                                            proto_tree *tree, char *drep)
+                                            proto_tree *tree, guint8 *drep)
 {
        return dissect_ndr_uint16(tvb, offset, pinfo, tree, drep,
                                  hf_lsa_server, NULL);
@@ -549,7 +549,7 @@ static int dissect_lsa_openpolicy_server(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropenpolicy_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                dissect_lsa_openpolicy_server, NDR_POINTER_UNIQUE,
@@ -567,7 +567,7 @@ lsa_dissect_lsaropenpolicy_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropenpolicy_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        e_ctx_hnd policy_hnd;
        proto_item *hnd_item;
@@ -592,7 +592,7 @@ lsa_dissect_lsaropenpolicy_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropenpolicy2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer_cb(tvb, offset, pinfo, tree, drep,
                dissect_ndr_wchar_cvstring, NDR_POINTER_UNIQUE, "Server", 
@@ -612,7 +612,7 @@ lsa_dissect_lsaropenpolicy2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropenpolicy2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
        dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
@@ -663,7 +663,7 @@ static const value_string policy_information_class_vals[] = {
 
 static int
 lsa_dissect_lsarqueryinformationpolicy_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        guint16 level;
 
@@ -684,7 +684,7 @@ lsa_dissect_lsarqueryinformationpolicy_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_AUDIT_LOG_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -726,7 +726,7 @@ lsa_dissect_POLICY_AUDIT_LOG_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_AUDIT_EVENTS_INFO_settings(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                      hf_lsa_paei_settings, NULL);
@@ -735,7 +735,7 @@ lsa_dissect_POLICY_AUDIT_EVENTS_INFO_settings(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_AUDIT_EVENTS_INFO_settings_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_POLICY_AUDIT_EVENTS_INFO_settings);
@@ -745,7 +745,7 @@ lsa_dissect_POLICY_AUDIT_EVENTS_INFO_settings_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_AUDIT_EVENTS_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -777,7 +777,7 @@ lsa_dissect_POLICY_AUDIT_EVENTS_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_PRIMARY_DOMAIN_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -804,7 +804,7 @@ lsa_dissect_POLICY_PRIMARY_DOMAIN_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_ACCOUNT_DOMAIN_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -838,7 +838,7 @@ static const value_string server_role_vals[] = {
 };
 static int
 lsa_dissect_POLICY_SERVER_ROLE_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -860,7 +860,7 @@ lsa_dissect_POLICY_SERVER_ROLE_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_REPLICA_SOURCE_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -887,7 +887,7 @@ lsa_dissect_POLICY_REPLICA_SOURCE_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_DEFAULT_QUOTA_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -930,7 +930,7 @@ lsa_dissect_POLICY_DEFAULT_QUOTA_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_MODIFICATION_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -957,7 +957,7 @@ lsa_dissect_POLICY_MODIFICATION_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_AUDIT_FULL_SET_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -980,7 +980,7 @@ lsa_dissect_POLICY_AUDIT_FULL_SET_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_AUDIT_FULL_QUERY_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1007,7 +1007,7 @@ lsa_dissect_POLICY_AUDIT_FULL_QUERY_INFO(tvbuff_t *tvb, int offset,
 
 int
 lsa_dissect_POLICY_DNS_DOMAIN_INFO(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1044,7 +1044,7 @@ lsa_dissect_POLICY_DNS_DOMAIN_INFO(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_POLICY_INFORMATION(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1118,7 +1118,7 @@ lsa_dissect_POLICY_INFORMATION(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarqueryinformationpolicy_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* This is really a pointer to a pointer though the first level is REF
          so we just ignore that one */
@@ -1134,7 +1134,7 @@ lsa_dissect_lsarqueryinformationpolicy_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsardelete_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1144,7 +1144,7 @@ lsa_dissect_lsardelete_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsardelete_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -1155,7 +1155,7 @@ lsa_dissect_lsardelete_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerysecurityobject_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1169,7 +1169,7 @@ lsa_dissect_lsarquerysecurityobject_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerysecurityobject_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_SECURITY_DESCRIPTOR, NDR_POINTER_UNIQUE,
@@ -1184,7 +1184,7 @@ lsa_dissect_lsarquerysecurityobject_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetsecurityobject_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1201,7 +1201,7 @@ lsa_dissect_lsarsetsecurityobject_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetsecurityobject_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -1212,7 +1212,7 @@ lsa_dissect_lsarsetsecurityobject_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarchangepassword_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* server */
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
@@ -1239,7 +1239,7 @@ lsa_dissect_lsarchangepassword_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarchangepassword_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -1261,7 +1261,7 @@ static const value_string sid_type_vals[] = {
 };
 static int
 lsa_dissect_LSA_TRANSLATED_NAME(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1291,7 +1291,7 @@ lsa_dissect_LSA_TRANSLATED_NAME(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRANSLATED_NAME_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_TRANSLATED_NAME);
@@ -1301,7 +1301,7 @@ lsa_dissect_LSA_TRANSLATED_NAME_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRANSLATED_NAMES(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1329,7 +1329,7 @@ lsa_dissect_LSA_TRANSLATED_NAMES(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupsids_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1353,7 +1353,7 @@ lsa_dissect_lsarlookupsids_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRUST_INFORMATION(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1410,7 +1410,7 @@ static const true_false_string tfs_trust_attr_tree_root = {
 };
 static int
 lsa_dissect_trust_attr(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                       proto_tree *parent_tree, char *drep)
+                       proto_tree *parent_tree, guint8 *drep)
 {
        guint32 mask;
        proto_item *item = NULL;
@@ -1439,7 +1439,7 @@ lsa_dissect_trust_attr(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 lsa_dissect_LSA_TRUST_INFORMATION_EX(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1480,7 +1480,7 @@ lsa_dissect_LSA_TRUST_INFORMATION_EX(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_auth_info_blob(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di;
        guint32 len;
@@ -1503,7 +1503,7 @@ lsa_dissect_auth_info_blob(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_auth_info(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1538,7 +1538,7 @@ lsa_dissect_auth_info(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRUSTED_DOMAIN_AUTH_INFORMATION(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1577,7 +1577,7 @@ lsa_dissect_LSA_TRUSTED_DOMAIN_AUTH_INFORMATION(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRUST_INFORMATION_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_TRUST_INFORMATION);
@@ -1587,7 +1587,7 @@ lsa_dissect_LSA_TRUST_INFORMATION_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_REFERENCED_DOMAIN_LIST(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1618,7 +1618,7 @@ lsa_dissect_LSA_REFERENCED_DOMAIN_LIST(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupsids_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_REFERENCED_DOMAIN_LIST, NDR_POINTER_UNIQUE,
@@ -1640,7 +1640,7 @@ lsa_dissect_lsarlookupsids_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetquotasforaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1655,7 +1655,7 @@ lsa_dissect_lsarsetquotasforaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetquotasforaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -1666,7 +1666,7 @@ lsa_dissect_lsarsetquotasforaccount_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsargetquotasforaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1677,7 +1677,7 @@ lsa_dissect_lsargetquotasforaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsargetquotasforaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                lsa_dissect_POLICY_DEFAULT_QUOTA_INFO, NDR_POINTER_REF,
@@ -1692,7 +1692,7 @@ lsa_dissect_lsargetquotasforaccount_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetinformationpolicy_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1710,7 +1710,7 @@ lsa_dissect_lsarsetinformationpolicy_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetinformationpolicy_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -1721,7 +1721,7 @@ lsa_dissect_lsarsetinformationpolicy_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarclearauditlog_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1739,7 +1739,7 @@ lsa_dissect_lsarclearauditlog_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarclearauditlog_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1752,7 +1752,7 @@ lsa_dissect_lsarclearauditlog_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsargetsystemaccessaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1763,7 +1763,7 @@ lsa_dissect_lsargetsystemaccessaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsargetsystemaccessaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
                                      hf_lsa_rid, NULL);
@@ -1777,7 +1777,7 @@ lsa_dissect_lsargetsystemaccessaccount_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetsystemaccessaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1791,7 +1791,7 @@ lsa_dissect_lsarsetsystemaccessaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetsystemaccessaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -1802,7 +1802,7 @@ lsa_dissect_lsarsetsystemaccessaccount_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropentrusteddomain_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1819,7 +1819,7 @@ lsa_dissect_lsaropentrusteddomain_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropentrusteddomain_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1833,7 +1833,7 @@ lsa_dissect_lsaropentrusteddomain_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsardeletetrusteddomain_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1847,7 +1847,7 @@ lsa_dissect_lsardeletetrusteddomain_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsardeletetrusteddomain_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -1857,7 +1857,7 @@ lsa_dissect_lsardeletetrusteddomain_reply(tvbuff_t *tvb, int offset,
 
 int
 dissect_nt_LUID(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1881,7 +1881,7 @@ dissect_nt_LUID(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_PRIVILEGE(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1906,7 +1906,7 @@ lsa_dissect_LSA_PRIVILEGE(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_PRIVILEGE_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_PRIVILEGE);
@@ -1916,7 +1916,7 @@ lsa_dissect_LSA_PRIVILEGE_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_PRIVILEGES(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1942,7 +1942,7 @@ lsa_dissect_LSA_PRIVILEGES(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateprivileges_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1958,7 +1958,7 @@ lsa_dissect_lsarenumerateprivileges_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateprivileges_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_lsa_count, NULL);
@@ -1975,7 +1975,7 @@ lsa_dissect_lsarenumerateprivileges_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupprivilegevalue_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -1991,7 +1991,7 @@ lsa_dissect_lsarlookupprivilegevalue_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupprivilegevalue_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        /* LUID */
@@ -2006,7 +2006,7 @@ lsa_dissect_lsarlookupprivilegevalue_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupprivilegename_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -2022,7 +2022,7 @@ lsa_dissect_lsarlookupprivilegename_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupprivilegename_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] LSA_UNICODE_STRING **name */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -2038,7 +2038,7 @@ lsa_dissect_lsarlookupprivilegename_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateprivilegesaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2050,7 +2050,7 @@ lsa_dissect_lsarenumerateprivilegesaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LUID_AND_ATTRIBUTES(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2075,7 +2075,7 @@ lsa_dissect_LUID_AND_ATTRIBUTES(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LUID_AND_ATTRIBUTES_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LUID_AND_ATTRIBUTES);
@@ -2085,7 +2085,7 @@ lsa_dissect_LUID_AND_ATTRIBUTES_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LUID_AND_ATTRIBUTES_ARRAY(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2111,7 +2111,7 @@ lsa_dissect_LUID_AND_ATTRIBUTES_ARRAY(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateprivilegesaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] LUID_AND_ATTRIBUTES_ARRAY * *privs */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -2126,7 +2126,7 @@ lsa_dissect_lsarenumerateprivilegesaccount_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaraddprivilegestoaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2142,7 +2142,7 @@ lsa_dissect_lsaraddprivilegestoaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaraddprivilegestoaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -2152,7 +2152,7 @@ lsa_dissect_lsaraddprivilegestoaccount_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarremoveprivilegesfromaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2173,7 +2173,7 @@ lsa_dissect_lsarremoveprivilegesfromaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarremoveprivilegesfromaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -2183,7 +2183,7 @@ lsa_dissect_lsarremoveprivilegesfromaccount_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateaccounts_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2202,7 +2202,7 @@ lsa_dissect_lsarenumerateaccounts_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateaccounts_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in,out, ref] LSA_ENUMERATION_HANDLE *resume_hnd */
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
@@ -2221,7 +2221,7 @@ lsa_dissect_lsarenumerateaccounts_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreatetrusteddomain_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd_pol */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2241,7 +2241,7 @@ lsa_dissect_lsarcreatetrusteddomain_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreatetrusteddomain_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out] LSA_HANDLE *hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2255,7 +2255,7 @@ lsa_dissect_lsarcreatetrusteddomain_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumeratetrusteddomains_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2274,7 +2274,7 @@ lsa_dissect_lsarenumeratetrusteddomains_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRUSTED_DOMAIN(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2300,7 +2300,7 @@ lsa_dissect_LSA_TRUSTED_DOMAIN(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRUSTED_DOMAIN_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_TRUSTED_DOMAIN);
@@ -2310,7 +2310,7 @@ lsa_dissect_LSA_TRUSTED_DOMAIN_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRUSTED_DOMAIN_LIST(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2336,7 +2336,7 @@ lsa_dissect_LSA_TRUSTED_DOMAIN_LIST(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumeratetrusteddomains_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in, out, ref] LSA_ENUMERATION_HANDLE *resume_hnd */
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
@@ -2356,7 +2356,7 @@ lsa_dissect_lsarenumeratetrusteddomains_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_UNICODE_STRING_item(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -2374,7 +2374,7 @@ lsa_dissect_LSA_UNICODE_STRING_item(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_UNICODE_STRING_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_UNICODE_STRING_item);
@@ -2384,7 +2384,7 @@ lsa_dissect_LSA_UNICODE_STRING_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_UNICODE_STRING_ARRAY(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -2401,7 +2401,7 @@ lsa_dissect_LSA_UNICODE_STRING_ARRAY(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRANSLATED_SID(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* sid type */
        offset = dissect_ndr_uint16 (tvb, offset, pinfo, tree, drep,
@@ -2418,7 +2418,7 @@ lsa_dissect_LSA_TRANSLATED_SID(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRANSLATED_SIDS_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_TRANSLATED_SID);
@@ -2428,7 +2428,7 @@ lsa_dissect_LSA_TRANSLATED_SIDS_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRANSLATED_SIDS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2455,7 +2455,7 @@ lsa_dissect_LSA_TRANSLATED_SIDS(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupnames_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2489,7 +2489,7 @@ lsa_dissect_lsarlookupnames_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupnames_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out] LSA_REFERENCED_DOMAIN_LIST *domains */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -2513,7 +2513,7 @@ lsa_dissect_lsarlookupnames_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreatesecret_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd_pol */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2532,7 +2532,7 @@ lsa_dissect_lsarcreatesecret_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreatesecret_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        /* [out] LSA_HANDLE *hnd */
@@ -2547,7 +2547,7 @@ lsa_dissect_lsarcreatesecret_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropenaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd_pol */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2567,7 +2567,7 @@ lsa_dissect_lsaropenaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropenaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out] LSA_HANDLE *hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2595,7 +2595,7 @@ static const value_string trusted_info_level_vals[] = {
 
 static int
 lsa_dissect_TRUSTED_DOMAIN_INFORMATION(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2668,7 +2668,7 @@ lsa_dissect_TRUSTED_DOMAIN_INFORMATION(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarqueryinfotrusteddomain_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2684,7 +2684,7 @@ lsa_dissect_lsarqueryinfotrusteddomain_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarqueryinfotrusteddomain_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] TRUSTED_DOMAIN_INFORMATION *info */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -2699,7 +2699,7 @@ lsa_dissect_lsarqueryinfotrusteddomain_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetinformationtrusteddomain_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2720,7 +2720,7 @@ lsa_dissect_lsarsetinformationtrusteddomain_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetinformationtrusteddomain_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -2730,7 +2730,7 @@ lsa_dissect_lsarsetinformationtrusteddomain_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropensecret_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd_pol */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2752,7 +2752,7 @@ lsa_dissect_lsaropensecret_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropensecret_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out] LSA_HANDLE *hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2766,7 +2766,7 @@ lsa_dissect_lsaropensecret_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetsecret_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2788,7 +2788,7 @@ lsa_dissect_lsarsetsecret_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetsecret_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -2798,7 +2798,7 @@ lsa_dissect_lsarsetsecret_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerysecret_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2830,7 +2830,7 @@ lsa_dissect_lsarquerysecret_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerysecret_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in, out, unique] LSA_SECRET **curr_val */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -2860,7 +2860,7 @@ lsa_dissect_lsarquerysecret_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsardeleteobject_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2872,7 +2872,7 @@ lsa_dissect_lsardeleteobject_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsardeleteobject_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -2882,7 +2882,7 @@ lsa_dissect_lsardeleteobject_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateaccountswithuserright_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2898,7 +2898,7 @@ lsa_dissect_lsarenumerateaccountswithuserright_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateaccountswithuserright_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] LSA_UNICODE_STRING_ARRAY *accounts */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -2913,7 +2913,7 @@ lsa_dissect_lsarenumerateaccountswithuserright_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateaccountrights_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2929,7 +2929,7 @@ lsa_dissect_lsarenumerateaccountrights_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumerateaccountrights_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] LSA_UNICODE_STRING_ARRAY *rights */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -2944,7 +2944,7 @@ lsa_dissect_lsarenumerateaccountrights_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaraddaccountrights_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -2965,7 +2965,7 @@ lsa_dissect_lsaraddaccountrights_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaraddaccountrights_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -2975,7 +2975,7 @@ lsa_dissect_lsaraddaccountrights_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarremoveaccountrights_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3000,7 +3000,7 @@ lsa_dissect_lsarremoveaccountrights_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarremoveaccountrights_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -3011,7 +3011,7 @@ lsa_dissect_lsarremoveaccountrights_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerytrusteddomaininfobyname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE handle */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3032,7 +3032,7 @@ lsa_dissect_lsarquerytrusteddomaininfobyname_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerytrusteddomaininfobyname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] TRUSTED_DOMAIN_INFORMATION *info) */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -3048,7 +3048,7 @@ lsa_dissect_lsarquerytrusteddomaininfobyname_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsettrusteddomaininfobyname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE handle */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3074,7 +3074,7 @@ lsa_dissect_lsarsettrusteddomaininfobyname_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsettrusteddomaininfobyname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -3084,7 +3084,7 @@ lsa_dissect_lsarsettrusteddomaininfobyname_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerytrusteddomaininfo_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE handle */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3103,7 +3103,7 @@ lsa_dissect_lsarquerytrusteddomaininfo_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropentrusteddomainbyname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE handle */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3124,7 +3124,7 @@ lsa_dissect_lsaropentrusteddomainbyname_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsaropentrusteddomainbyname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out] LSA_HANDLE handle */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3140,7 +3140,7 @@ lsa_dissect_lsaropentrusteddomainbyname_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerytrusteddomaininfo_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] TRUSTED_DOMAIN_INFORMATION *info) */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -3155,7 +3155,7 @@ lsa_dissect_lsarquerytrusteddomaininfo_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsettrusteddomaininfo_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE handle */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3180,7 +3180,7 @@ lsa_dissect_lsarsettrusteddomaininfo_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsettrusteddomaininfo_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -3190,7 +3190,7 @@ lsa_dissect_lsarsettrusteddomaininfo_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarqueryinformationpolicy2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -3203,7 +3203,7 @@ lsa_dissect_lsarqueryinformationpolicy2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarqueryinformationpolicy2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* This is really a pointer to a pointer though the first level is REF
          so we just ignore that one */
@@ -3219,7 +3219,7 @@ lsa_dissect_lsarqueryinformationpolicy2_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetinformationpolicy2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -3236,7 +3236,7 @@ lsa_dissect_lsarsetinformationpolicy2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetinformationpolicy2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -3246,7 +3246,7 @@ lsa_dissect_lsarsetinformationpolicy2_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerydomaininformationpolicy_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -3259,7 +3259,7 @@ lsa_dissect_lsarquerydomaininformationpolicy_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarquerydomaininformationpolicy_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                lsa_dissect_POLICY_INFORMATION, NDR_POINTER_REF,
@@ -3273,7 +3273,7 @@ lsa_dissect_lsarquerydomaininformationpolicy_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetdomaininformationpolicy_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -3290,7 +3290,7 @@ lsa_dissect_lsarsetdomaininformationpolicy_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarsetdomaininformationpolicy_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -3300,7 +3300,7 @@ lsa_dissect_lsarsetdomaininformationpolicy_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupnames2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3342,7 +3342,7 @@ lsa_dissect_lsarlookupnames2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupnames2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out] LSA_REFERENCED_DOMAIN_LIST *domains */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -3367,7 +3367,7 @@ lsa_dissect_lsarlookupnames2_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreateaccount_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3384,7 +3384,7 @@ lsa_dissect_lsarcreateaccount_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreateaccount_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -3397,7 +3397,7 @@ lsa_dissect_lsarcreateaccount_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupprivilegedisplayname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3417,7 +3417,7 @@ lsa_dissect_lsarlookupprivilegedisplayname_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupprivilegedisplayname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] LSA_UNICODE_STRING **disp_name */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -3436,7 +3436,7 @@ lsa_dissect_lsarlookupprivilegedisplayname_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarstoreprivatedata_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3457,7 +3457,7 @@ lsa_dissect_lsarstoreprivatedata_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarstoreprivatedata_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_lsa_rc, NULL);
@@ -3467,7 +3467,7 @@ lsa_dissect_lsarstoreprivatedata_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarretrieveprivatedata_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3488,7 +3488,7 @@ lsa_dissect_lsarretrieveprivatedata_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarretrieveprivatedata_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in, out, ref] LSA_SECRET **data */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -3503,7 +3503,7 @@ lsa_dissect_lsarretrieveprivatedata_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarclosetrusteddomainex_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        /* [in, out] LSA_HANDLE *tdHnd */
@@ -3516,7 +3516,7 @@ lsa_dissect_lsarclosetrusteddomainex_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarclosetrusteddomainex_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        /* [in, out] LSA_HANDLE *tdHnd */
@@ -3531,7 +3531,7 @@ lsa_dissect_lsarclosetrusteddomainex_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRANSLATED_NAME_EX(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -3565,7 +3565,7 @@ lsa_dissect_LSA_TRANSLATED_NAME_EX(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRANSLATED_NAME_EX_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_TRANSLATED_NAME_EX);
@@ -3574,7 +3574,7 @@ lsa_dissect_LSA_TRANSLATED_NAME_EX_array(tvbuff_t *tvb, int offset,
 }
 static int
 lsa_dissect_LSA_TRANSLATED_NAMES_EX(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* count */
         offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
@@ -3590,7 +3590,7 @@ lsa_dissect_LSA_TRANSLATED_NAMES_EX(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupsids2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                        hf_lsa_hnd, NULL, NULL, FALSE, FALSE);
@@ -3622,7 +3622,7 @@ lsa_dissect_lsarlookupsids2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarlookupsids2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_REFERENCED_DOMAIN_LIST, NDR_POINTER_UNIQUE,
@@ -3643,7 +3643,7 @@ lsa_dissect_lsarlookupsids2_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsargetusername_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        /* [in, unique, string] WCHAR *server */
@@ -3667,7 +3667,7 @@ lsa_dissect_lsargetusername_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsargetusername_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in, out, ref] LSA_UNICODE_STRING **user */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -3687,7 +3687,7 @@ lsa_dissect_lsargetusername_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreatetrusteddomainex_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3713,7 +3713,7 @@ lsa_dissect_lsarcreatetrusteddomainex_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreatetrusteddomainex_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out] LSA_HANDLE *tdHnd) */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3727,7 +3727,7 @@ lsa_dissect_lsarcreatetrusteddomainex_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumeratetrusteddomainsex_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3747,7 +3747,7 @@ lsa_dissect_lsarenumeratetrusteddomainsex_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRUSTED_DOMAIN_INFORMATION_EX_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                lsa_dissect_LSA_TRUST_INFORMATION_EX);
@@ -3757,7 +3757,7 @@ lsa_dissect_LSA_TRUSTED_DOMAIN_INFORMATION_EX_array(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_LSA_TRUSTED_DOMAIN_INFORMATION_LIST_EX(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* count */
         offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
@@ -3779,7 +3779,7 @@ lsa_dissect_LSA_TRUSTED_DOMAIN_INFORMATION_LIST_EX(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarenumeratetrusteddomainsex_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in, out, ref] LSA_ENUMERATION_HANDLE *resume_hnd */
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
@@ -3798,7 +3798,7 @@ lsa_dissect_lsarenumeratetrusteddomainsex_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsartestcall_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE handle */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3819,7 +3819,7 @@ lsa_dissect_lsartestcall_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsartestcall_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out, ref] LSA_SECURITY_DESCRIPTOR **psd) */
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -3834,7 +3834,7 @@ lsa_dissect_lsartestcall_reply(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreatetrusteddomainex2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [in] LSA_HANDLE hnd */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
@@ -3860,7 +3860,7 @@ lsa_dissect_lsarcreatetrusteddomainex2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 lsa_dissect_lsarcreatetrusteddomainex2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* [out] LSA_HANDLE *h2) */
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
index dfebdc7f5ddb183518ba8895f9b10c658e29c82c..500ba00ce4c3621af914fbe62b984ba26af1e364 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for SMB \PIPE\lsarpc packet disassembly
  * Copyright 2001, Tim Potter <tpot@samba.org>
  *
- * $Id: packet-dcerpc-lsa.h,v 1.12 2003/09/29 00:01:26 tpot Exp $
+ * $Id: packet-dcerpc-lsa.h,v 1.13 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
 int
 lsa_dissect_LSA_SECURITY_DESCRIPTOR(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep);
+                             guint8 *drep);
 int
 lsa_dissect_LSA_SECURITY_DESCRIPTOR_data(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                            char *drep);
+                            guint8 *drep);
 int
 lsa_dissect_LSA_SECRET(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep);
+                       guint8 *drep);
 
 int
 lsa_dissect_POLICY_DNS_DOMAIN_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep);
+                       guint8 *drep);
 
 /* Specific access rights */
 
index 784076be59000a98b68b8015c97f4bffc0c03280..611cf09254dd968bfc2589f92fb93db25a21b6e6 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for MS Exchange MAPI
  * Copyright 2002, Ronnie Sahlberg
  *
- * $Id: packet-dcerpc-mapi.c,v 1.25 2003/10/24 00:42:16 guy Exp $
+ * $Id: packet-dcerpc-mapi.c,v 1.26 2004/01/19 20:10:33 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -139,7 +139,7 @@ mapi_decrypt_init(void)
 
 static int
 mapi_decrypt_pdu(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di;
        mapi_decrypted_data_t *mmd=NULL;
@@ -236,7 +236,7 @@ mapi_decrypt_pdu(tvbuff_t *tvb, int offset,
 
 static int
 mapi_logon_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_cvstring(tvb, offset, pinfo, tree, drep,
                        sizeof(guint8), hf_mapi_unknown_string, TRUE, NULL);
@@ -251,7 +251,7 @@ There might be offsets/padding mismatched due to potential pointer expansions
 or padding bytes. Captures where this code breaks will tell us about that */
 static int
 mapi_logon_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                                       hf_mapi_hnd, NULL, NULL, FALSE, FALSE);
@@ -281,7 +281,7 @@ mapi_logon_reply(tvbuff_t *tvb, int offset,
 
 static int
 mapi_ec_do_rpc_request(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                                       hf_mapi_hnd, NULL, NULL, FALSE, FALSE);
@@ -307,7 +307,7 @@ mapi_ec_do_rpc_request(tvbuff_t *tvb, int offset,
 }
 static int
 mapi_ec_do_rpc_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                                       hf_mapi_hnd, NULL, NULL, FALSE, FALSE);
@@ -334,7 +334,7 @@ mapi_ec_do_rpc_reply(tvbuff_t *tvb, int offset,
 
 static int
 mapi_logoff_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                                       hf_mapi_hnd, NULL, NULL, FALSE, FALSE);
@@ -344,7 +344,7 @@ mapi_logoff_rqst(tvbuff_t *tvb, int offset,
 
 static int
 mapi_logoff_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                                       hf_mapi_hnd, NULL, NULL, FALSE, FALSE);
index 1be543e598b4df1f312fd4b5004327864fcea787..6fb350b9c2abcc1b43f8ae26aba8d50821166e2e 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for SMB \PIPE\msgsvc packet disassembly
  * Copyright 2003 Ronnie Sahlberg
  *
- * $Id: packet-dcerpc-messenger.c,v 1.5 2003/09/27 23:45:25 sahlberg Exp $
+ * $Id: packet-dcerpc-messenger.c,v 1.6 2004/01/19 20:10:34 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -65,7 +65,7 @@ static guint16 ver_dcerpc_messenger = 1;
  */
 static int
 messenger_dissect_send_message_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                           proto_tree *tree, char *drep)
+                           proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        dissect_ndr_char_cvstring, NDR_POINTER_REF,
@@ -82,7 +82,7 @@ messenger_dissect_send_message_rqst(tvbuff_t *tvb, int offset, packet_info *pinf
 }
 static int
 messenger_dissect_send_message_reply(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                           proto_tree *tree, char *drep)
+                           proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep,
                                  hf_messenger_rc, NULL);
index 98e59fc36c150a2f76dfa0eb300649041017c10a..60d20365dd1f950aa1ef92726113c1d5bf00d409 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for DCERPC NDR dissection
  * Copyright 2001, Todd Sabin <tas@webspan.net>
  *
- * $Id: packet-dcerpc-ndr.c,v 1.14 2003/11/21 02:48:11 guy Exp $
+ * $Id: packet-dcerpc-ndr.c,v 1.15 2004/01/19 20:10:34 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -43,7 +43,7 @@
 
 int
 dissect_ndr_uint8 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                   proto_tree *tree, char *drep,
+                   proto_tree *tree, guint8 *drep,
                    int hfindex, guint8 *pdata)
 {
     dcerpc_info *di;
@@ -61,7 +61,7 @@ dissect_ndr_uint8 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_ndr_uint16 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                    proto_tree *tree, char *drep,
+                    proto_tree *tree, guint8 *drep,
                     int hfindex, guint16 *pdata)
 {
     dcerpc_info *di;
@@ -82,7 +82,7 @@ dissect_ndr_uint16 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_ndr_uint32 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                    proto_tree *tree, char *drep,
+                    proto_tree *tree, guint8 *drep,
                     int hfindex, guint32 *pdata)
 {
     dcerpc_info *di;
@@ -103,7 +103,7 @@ dissect_ndr_uint32 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_ndr_uint64 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                    proto_tree *tree, char *drep,
+                    proto_tree *tree, guint8 *drep,
                     int hfindex, unsigned char *pdata)
 {
     dcerpc_info *di;
@@ -124,7 +124,7 @@ dissect_ndr_uint64 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_ndr_float(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                    proto_tree *tree, char *drep, 
+                    proto_tree *tree, guint8 *drep, 
                     int hfindex, gfloat *pdata)
 {
     dcerpc_info *di;
@@ -146,7 +146,7 @@ dissect_ndr_float(tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_ndr_double(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                    proto_tree *tree, char *drep, 
+                    proto_tree *tree, guint8 *drep, 
                     int hfindex, gdouble *pdata)
 {
     dcerpc_info *di;
@@ -168,7 +168,7 @@ dissect_ndr_double(tvbuff_t *tvb, gint offset, packet_info *pinfo,
 /* handles unix 32 bit time_t */
 int
 dissect_ndr_time_t (tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                    proto_tree *tree, char *drep,
+                    proto_tree *tree, guint8 *drep,
                     int hfindex, guint32 *pdata)
 {
     dcerpc_info *di;
@@ -189,7 +189,7 @@ dissect_ndr_time_t (tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_ndr_uuid_t (tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                    proto_tree *tree, char *drep,
+                    proto_tree *tree, guint8 *drep,
                     int hfindex, e_uuid_t *pdata)
 {
     e_uuid_t uuid;
@@ -245,7 +245,7 @@ dissect_ndr_uuid_t (tvbuff_t *tvb, gint offset, packet_info *pinfo,
  */
 int
 dissect_ndr_ctx_hnd (tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                     proto_tree *tree, char *drep,
+                     proto_tree *tree, guint8 *drep,
                      int hfindex, e_ctx_hnd *pdata)
 {
     static e_ctx_hnd ctx_hnd;
index 7c9c9708a0f9a053e17a778fc1aabaa5d0a020d2..d7433ae993cdccfc3a0aa5f67109cb225245bd68 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2001,2003 Tim Potter <tpot@samba.org>
  *  2002 structure and command dissectors by Ronnie Sahlberg
  *
- * $Id: packet-dcerpc-netlogon.c,v 1.95 2003/11/02 03:55:32 tpot Exp $
+ * $Id: packet-dcerpc-netlogon.c,v 1.96 2004/01/19 20:10:34 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -259,7 +259,7 @@ static guint16 ver_dcerpc_netlogon = 1;
 static int
 netlogon_dissect_LOGONSRV_HANDLE(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Server Handle", 
@@ -290,7 +290,7 @@ netlogon_dissect_LOGONSRV_HANDLE(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION_UAS_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -366,7 +366,7 @@ netlogon_dissect_VALIDATION_UAS_INFO(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogonuaslogon_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -383,7 +383,7 @@ netlogon_dissect_netrlogonuaslogon_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonuaslogon_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_VALIDATION_UAS_INFO, NDR_POINTER_UNIQUE,
@@ -404,7 +404,7 @@ netlogon_dissect_netrlogonuaslogon_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_LOGOFF_UAS_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -433,7 +433,7 @@ netlogon_dissect_LOGOFF_UAS_INFO(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogonuaslogoff_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -450,7 +450,7 @@ netlogon_dissect_netrlogonuaslogoff_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonuaslogoff_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_LOGOFF_UAS_INFO, NDR_POINTER_REF,
@@ -477,7 +477,7 @@ netlogon_dissect_netrlogonuaslogoff_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_LOGON_IDENTITY_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -530,7 +530,7 @@ netlogon_dissect_LOGON_IDENTITY_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_LM_OWF_PASSWORD(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -563,7 +563,7 @@ netlogon_dissect_LM_OWF_PASSWORD(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NT_OWF_PASSWORD(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -599,7 +599,7 @@ netlogon_dissect_NT_OWF_PASSWORD(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_INTERACTIVE_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = netlogon_dissect_LOGON_IDENTITY_INFO(tvb, offset,
                pinfo, tree, drep);
@@ -621,7 +621,7 @@ netlogon_dissect_INTERACTIVE_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CHALLENGE(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
 
@@ -671,7 +671,7 @@ static void dissect_nt_chal_resp_cb(packet_info *pinfo _U_, proto_tree *tree,
 static int
 netlogon_dissect_NETWORK_INFO(tvbuff_t *tvb, int offset,
                packet_info *pinfo, proto_tree *tree,
-               char *drep)
+               guint8 *drep)
 {
        offset = netlogon_dissect_LOGON_IDENTITY_INFO(tvb, offset,
                pinfo, tree, drep);
@@ -699,7 +699,7 @@ netlogon_dissect_NETWORK_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_SERVICE_INFO(tvbuff_t *tvb, int offset,
                packet_info *pinfo, proto_tree *tree,
-               char *drep)
+               guint8 *drep)
 {
        offset = netlogon_dissect_LOGON_IDENTITY_INFO(tvb, offset,
                pinfo, tree, drep);
@@ -723,7 +723,7 @@ netlogon_dissect_SERVICE_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_LEVEL(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint16 level;
 
@@ -760,7 +760,7 @@ netlogon_dissect_LEVEL(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CREDENTIAL(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
 
@@ -787,7 +787,7 @@ netlogon_dissect_CREDENTIAL(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_AUTHENTICATOR(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
        nstime_t ts;
@@ -827,7 +827,7 @@ netlogon_dissect_AUTHENTICATOR(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_GROUP_MEMBERSHIP(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -850,7 +850,7 @@ netlogon_dissect_GROUP_MEMBERSHIP(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_GROUP_MEMBERSHIP_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_GROUP_MEMBERSHIP);
@@ -866,7 +866,7 @@ netlogon_dissect_GROUP_MEMBERSHIP_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_USER_SESSION_KEY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
 
@@ -914,7 +914,7 @@ netlogon_dissect_USER_SESSION_KEY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION_SAM_INFO(tvbuff_t *tvb, int offset,
                packet_info *pinfo, proto_tree *tree,
-               char *drep)
+               guint8 *drep)
 {
        int i;
 
@@ -1031,7 +1031,7 @@ netlogon_dissect_VALIDATION_SAM_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION_SAM_INFO2(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        int i;
 
@@ -1125,7 +1125,7 @@ netlogon_dissect_VALIDATION_SAM_INFO2(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PAC(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
        guint32 pac_size;
@@ -1149,7 +1149,7 @@ netlogon_dissect_PAC(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_AUTH(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
        guint32 auth_size;
@@ -1191,7 +1191,7 @@ netlogon_dissect_AUTH(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION_PAC_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        int i;
 
@@ -1251,7 +1251,7 @@ netlogon_dissect_VALIDATION_PAC_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint16 level;
 
@@ -1301,7 +1301,7 @@ netlogon_dissect_VALIDATION(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogonsamlogon_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1333,7 +1333,7 @@ netlogon_dissect_netrlogonsamlogon_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonsamlogon_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_UNIQUE,
@@ -1365,7 +1365,7 @@ netlogon_dissect_netrlogonsamlogon_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogonsamlogoff_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1393,7 +1393,7 @@ netlogon_dissect_netrlogonsamlogoff_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrlogonsamlogoff_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -1417,7 +1417,7 @@ netlogon_dissect_netrlogonsamlogoff_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrserverreqchallenge_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1437,7 +1437,7 @@ netlogon_dissect_netrserverreqchallenge_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrserverreqchallenge_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -1453,7 +1453,7 @@ netlogon_dissect_netrserverreqchallenge_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NETLOGON_SECURE_CHANNEL_TYPE(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_secure_channel_type, NULL);
@@ -1474,7 +1474,7 @@ netlogon_dissect_NETLOGON_SECURE_CHANNEL_TYPE(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrserverauthenticate_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1496,7 +1496,7 @@ netlogon_dissect_netrserverauthenticate_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrserverauthenticate_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -1518,7 +1518,7 @@ netlogon_dissect_netrserverauthenticate_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_ENCRYPTED_LM_OWF_PASSWORD(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
 
@@ -1548,7 +1548,7 @@ netlogon_dissect_ENCRYPTED_LM_OWF_PASSWORD(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrserverpasswordset_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1574,7 +1574,7 @@ netlogon_dissect_netrserverpasswordset_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrserverpasswordset_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -1603,7 +1603,7 @@ netlogon_dissect_netrserverpasswordset_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_DELETE_USER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Account Name", hf_netlogon_acct_name, 0);
@@ -1646,7 +1646,7 @@ netlogon_dissect_DELTA_DELETE_USER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_SENSITIVE_DATA(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
        guint32 data_len;
@@ -1669,7 +1669,7 @@ netlogon_dissect_SENSITIVE_DATA(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_USER_PRIVATE_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                hf_netlogon_sensitive_data_flag, NULL);
@@ -1728,7 +1728,7 @@ netlogon_dissect_USER_PRIVATE_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_USER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_acct_name, 3);
@@ -1869,7 +1869,7 @@ netlogon_dissect_DELTA_USER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_DOMAIN(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_domain_name, 3);
@@ -1952,7 +1952,7 @@ netlogon_dissect_DELTA_DOMAIN(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_GROUP(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_group_name, 3);
@@ -2014,7 +2014,7 @@ netlogon_dissect_DELTA_GROUP(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_RENAME(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -2057,7 +2057,7 @@ netlogon_dissect_DELTA_RENAME(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_RID(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                                hf_netlogon_user_rid, NULL);
@@ -2068,7 +2068,7 @@ netlogon_dissect_RID(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_RID_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        netlogon_dissect_RID);
@@ -2079,7 +2079,7 @@ netlogon_dissect_RID_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_ATTRIB(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_attrs, NULL);
@@ -2090,7 +2090,7 @@ netlogon_dissect_ATTRIB(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_ATTRIB_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        netlogon_dissect_ATTRIB);
@@ -2112,7 +2112,7 @@ netlogon_dissect_ATTRIB_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_GROUP_MEMBER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_RID_array, NDR_POINTER_UNIQUE,
@@ -2160,7 +2160,7 @@ netlogon_dissect_DELTA_GROUP_MEMBER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ALIAS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_alias_name, 0);
@@ -2214,7 +2214,7 @@ netlogon_dissect_DELTA_ALIAS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ALIAS_MEMBER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_nt_PSID_ARRAY(tvb, offset, pinfo, tree, drep);
 
@@ -2237,7 +2237,7 @@ netlogon_dissect_DELTA_ALIAS_MEMBER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_EVENT_AUDIT_OPTION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_event_audit_option, NULL);
@@ -2248,7 +2248,7 @@ netlogon_dissect_EVENT_AUDIT_OPTION(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_EVENT_AUDIT_OPTIONS_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_EVENT_AUDIT_OPTION);
@@ -2270,7 +2270,7 @@ netlogon_dissect_EVENT_AUDIT_OPTIONS_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_QUOTA_LIMITS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2332,7 +2332,7 @@ netlogon_dissect_QUOTA_LIMITS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_POLICY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_max_log_size, NULL);
@@ -2402,7 +2402,7 @@ netlogon_dissect_DELTA_POLICY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CONTROLLER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_dc_name, 0);
@@ -2413,7 +2413,7 @@ netlogon_dissect_CONTROLLER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CONTROLLER_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CONTROLLER);
@@ -2442,7 +2442,7 @@ netlogon_dissect_CONTROLLER_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_TRUSTED_DOMAINS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_domain_name, 0);
@@ -2491,7 +2491,7 @@ netlogon_dissect_DELTA_TRUSTED_DOMAINS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PRIV_ATTR(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_attrs, NULL);
@@ -2502,7 +2502,7 @@ netlogon_dissect_PRIV_ATTR(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PRIV_ATTR_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_PRIV_ATTR);
@@ -2513,7 +2513,7 @@ netlogon_dissect_PRIV_ATTR_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PRIV_NAME(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_privilege_name, 1);
@@ -2524,7 +2524,7 @@ netlogon_dissect_PRIV_NAME(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PRIV_NAME_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_PRIV_NAME);
@@ -2556,7 +2556,7 @@ netlogon_dissect_PRIV_NAME_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ACCOUNTS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_privilege_entries, NULL);
@@ -2621,7 +2621,7 @@ netlogon_dissect_DELTA_ACCOUNTS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CIPHER_VALUE_DATA(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
        guint32 data_len;
@@ -2650,7 +2650,7 @@ netlogon_dissect_CIPHER_VALUE_DATA(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CIPHER_VALUE(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep, char *name, int hf_index)
+                       guint8 *drep, char *name, int hf_index)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2697,7 +2697,7 @@ netlogon_dissect_CIPHER_VALUE(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_SECRET(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = netlogon_dissect_CIPHER_VALUE(tvb, offset,
                pinfo, tree, drep,
@@ -2757,7 +2757,7 @@ netlogon_dissect_DELTA_SECRET(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_MODIFIED_COUNT(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint64(tvb, offset, pinfo, tree, drep,
                hf_netlogon_modify_count, NULL);
@@ -2824,7 +2824,7 @@ static const value_string delta_type_vals[] = {
 static int
 netlogon_dissect_DELTA_UNION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2958,7 +2958,7 @@ netlogon_dissect_DELTA_UNION(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ID_UNION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -3078,7 +3078,7 @@ netlogon_dissect_DELTA_ID_UNION(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ENUM(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -3110,7 +3110,7 @@ netlogon_dissect_DELTA_ENUM(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ENUM_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DELTA_ENUM);
@@ -3127,7 +3127,7 @@ netlogon_dissect_DELTA_ENUM_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ENUM_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_num_deltas, NULL);
@@ -3154,7 +3154,7 @@ netlogon_dissect_DELTA_ENUM_ARRAY(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrdatabasedeltas_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3184,7 +3184,7 @@ netlogon_dissect_netrdatabasedeltas_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrdatabasedeltas_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3219,7 +3219,7 @@ netlogon_dissect_netrdatabasedeltas_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrdatabasesync_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3250,7 +3250,7 @@ netlogon_dissect_netrdatabasesync_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrdatabasesync_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3279,7 +3279,7 @@ netlogon_dissect_netrdatabasesync_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UAS_INFO_0(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -3305,7 +3305,7 @@ netlogon_dissect_UAS_INFO_0(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_BYTE_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -3316,7 +3316,7 @@ netlogon_dissect_BYTE_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_BYTE_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_BYTE_byte);
@@ -3341,7 +3341,7 @@ netlogon_dissect_BYTE_array(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netraccountdeltas_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3374,7 +3374,7 @@ netlogon_dissect_netraccountdeltas_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netraccountdeltas_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3419,7 +3419,7 @@ netlogon_dissect_netraccountdeltas_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netraccountsync_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3448,7 +3448,7 @@ netlogon_dissect_netraccountsync_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netraccountsync_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3487,7 +3487,7 @@ netlogon_dissect_netraccountsync_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrgetdcname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3499,7 +3499,7 @@ netlogon_dissect_netrgetdcname_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrgetdcname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Domain", hf_netlogon_dc_name, 0);
@@ -3521,7 +3521,7 @@ netlogon_dissect_netrgetdcname_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NETLOGON_INFO_1(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_flags, NULL);
@@ -3544,7 +3544,7 @@ netlogon_dissect_NETLOGON_INFO_1(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NETLOGON_INFO_2(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_flags, NULL);
@@ -3577,7 +3577,7 @@ netlogon_dissect_NETLOGON_INFO_2(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NETLOGON_INFO_3(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_flags, NULL);
@@ -3614,7 +3614,7 @@ netlogon_dissect_NETLOGON_INFO_3(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CONTROL_QUERY_INFORMATION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -3654,7 +3654,7 @@ netlogon_dissect_CONTROL_QUERY_INFORMATION(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogoncontrol_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3669,7 +3669,7 @@ netlogon_dissect_netrlogoncontrol_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrlogoncontrol_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CONTROL_QUERY_INFORMATION, NDR_POINTER_REF,
@@ -3691,7 +3691,7 @@ netlogon_dissect_netrlogoncontrol_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrgetanydcname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Server Handle", 
@@ -3704,7 +3704,7 @@ netlogon_dissect_netrgetanydcname_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrgetanydcname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Domain", hf_netlogon_dc_name, 0);
@@ -3734,7 +3734,7 @@ netlogon_dissect_netrgetanydcname_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CONTROL_DATA_INFORMATION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -3779,7 +3779,7 @@ netlogon_dissect_CONTROL_DATA_INFORMATION(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogoncontrol2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3799,7 +3799,7 @@ netlogon_dissect_netrlogoncontrol2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogoncontrol2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CONTROL_QUERY_INFORMATION, NDR_POINTER_REF,
@@ -3825,7 +3825,7 @@ netlogon_dissect_netrlogoncontrol2_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrserverauthenticate2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3854,7 +3854,7 @@ netlogon_dissect_netrserverauthenticate2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverauthenticate2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -3885,7 +3885,7 @@ netlogon_dissect_netrserverauthenticate2_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrdatabasesync2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3918,7 +3918,7 @@ netlogon_dissect_netrdatabasesync2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrdatabasesync2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3951,7 +3951,7 @@ netlogon_dissect_netrdatabasesync2_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrdatabaseredo_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3979,7 +3979,7 @@ netlogon_dissect_netrdatabaseredo_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrdatabaseredo_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -4007,7 +4007,7 @@ netlogon_dissect_netrdatabaseredo_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogoncontrol2ex_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -4026,7 +4026,7 @@ netlogon_dissect_netrlogoncontrol2ex_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrlogoncontrol2ex_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CONTROL_QUERY_INFORMATION, NDR_POINTER_REF,
@@ -4090,7 +4090,7 @@ static const true_false_string trust_tree_root = {
 };
 static int
 netlogon_dissect_DOMAIN_TRUST_FLAGS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        guint32 mask;
        proto_item *item = NULL;
@@ -4216,7 +4216,7 @@ static const true_false_string get_dcname_request_flags_return_flat_name = {
 };
 static int
 netlogon_dissect_GET_DCNAME_REQUEST_FLAGS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        guint32 mask;
        proto_item *item = NULL;
@@ -4345,7 +4345,7 @@ static const true_false_string dc_flags_dns_forest_flag = {
 };
 static int
 netlogon_dissect_DC_FLAGS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        guint32 mask;
        proto_item *item = NULL;
@@ -4402,7 +4402,7 @@ netlogon_dissect_DC_FLAGS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_pointer_long(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -4415,7 +4415,7 @@ netlogon_dissect_pointer_long(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_pointer_char(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -4428,7 +4428,7 @@ netlogon_dissect_pointer_char(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UNICODE_MULTI_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -4439,7 +4439,7 @@ netlogon_dissect_UNICODE_MULTI_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UNICODE_MULTI_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_UNICODE_MULTI_byte);
@@ -4450,7 +4450,7 @@ netlogon_dissect_UNICODE_MULTI_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UNICODE_MULTI(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4476,7 +4476,7 @@ netlogon_dissect_UNICODE_MULTI(tvbuff_t *tvb, int offset,
 int
 dissect_nt_GUID(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset=dissect_ndr_uuid_t(tvb, offset, pinfo, tree, drep, hf_netlogon_guid, NULL);
 
@@ -4486,7 +4486,7 @@ dissect_nt_GUID(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_CONTROLLER_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4532,7 +4532,7 @@ netlogon_dissect_DOMAIN_CONTROLLER_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_BLOB_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 len;
        dcerpc_info *di;
@@ -4556,7 +4556,7 @@ netlogon_dissect_BLOB_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_BLOB(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4580,7 +4580,7 @@ netlogon_dissect_BLOB(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_TRUST_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4627,7 +4627,7 @@ netlogon_dissect_DOMAIN_TRUST_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_TRUST_INFO_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DOMAIN_TRUST_INFO);
@@ -4638,7 +4638,7 @@ netlogon_dissect_DOMAIN_TRUST_INFO_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_QUERY_1(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = netlogon_dissect_BLOB(tvb, offset,
                pinfo, tree, drep);
@@ -4693,7 +4693,7 @@ netlogon_dissect_DOMAIN_QUERY_1(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_INFO_1(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = netlogon_dissect_DOMAIN_TRUST_INFO(tvb, offset, pinfo, tree, drep);
 
@@ -4743,7 +4743,7 @@ netlogon_dissect_DOMAIN_INFO_1(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -4765,7 +4765,7 @@ netlogon_dissect_DOMAIN_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UNICODE_STRING_512(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4793,7 +4793,7 @@ netlogon_dissect_UNICODE_STRING_512(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_844_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -4804,7 +4804,7 @@ netlogon_dissect_element_844_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_844_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_element_844_byte);
@@ -4815,7 +4815,7 @@ netlogon_dissect_element_844_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_50(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4841,7 +4841,7 @@ netlogon_dissect_TYPE_50(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_50_ptr(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_TYPE_50, NDR_POINTER_UNIQUE,
@@ -4852,7 +4852,7 @@ netlogon_dissect_TYPE_50_ptr(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_DS_DOMAIN_TRUSTS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        guint32 tmp;
        proto_item *item=NULL;
@@ -4899,7 +4899,7 @@ netlogon_dissect_DS_DOMAIN_TRUSTS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DS_DOMAIN_TRUSTS_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DS_DOMAIN_TRUSTS);
@@ -4910,7 +4910,7 @@ netlogon_dissect_DS_DOMAIN_TRUSTS_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_865_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -4921,7 +4921,7 @@ netlogon_dissect_element_865_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_865_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_element_865_byte);
@@ -4932,7 +4932,7 @@ netlogon_dissect_element_865_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_866_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -4943,7 +4943,7 @@ netlogon_dissect_element_866_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_866_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_element_866_byte);
@@ -4954,7 +4954,7 @@ netlogon_dissect_element_866_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_52(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4984,7 +4984,7 @@ netlogon_dissect_TYPE_52(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_52_ptr(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_TYPE_52, NDR_POINTER_UNIQUE,
@@ -4996,7 +4996,7 @@ netlogon_dissect_TYPE_52_ptr(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_44(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -5027,7 +5027,7 @@ netlogon_dissect_TYPE_44(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_QUERY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -5053,7 +5053,7 @@ netlogon_dissect_DOMAIN_QUERY(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrenumeratetrusteddomains_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5064,7 +5064,7 @@ netlogon_dissect_netrenumeratetrusteddomains_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrenumeratetrusteddomains_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_UNICODE_MULTI, NDR_POINTER_REF,
@@ -5078,7 +5078,7 @@ netlogon_dissect_netrenumeratetrusteddomains_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetdcname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5103,7 +5103,7 @@ netlogon_dissect_dsrgetdcname_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetdcname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DOMAIN_CONTROLLER_INFO, NDR_POINTER_UNIQUE,
@@ -5117,7 +5117,7 @@ netlogon_dissect_dsrgetdcname_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogondummyroutine1_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5143,7 +5143,7 @@ netlogon_dissect_netrlogondummyroutine1_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogondummyroutine1_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_UNIQUE,
@@ -5161,7 +5161,7 @@ netlogon_dissect_netrlogondummyroutine1_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonsetservicebits_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5178,7 +5178,7 @@ netlogon_dissect_netrlogonsetservicebits_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonsetservicebits_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep,
                                  hf_netlogon_rc, NULL);
@@ -5189,7 +5189,7 @@ netlogon_dissect_netrlogonsetservicebits_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongettrustrid_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5204,7 +5204,7 @@ netlogon_dissect_netrlogongettrustrid_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongettrustrid_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_pointer_long, NDR_POINTER_UNIQUE,
@@ -5219,7 +5219,7 @@ netlogon_dissect_netrlogongettrustrid_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogoncomputeserverdigest_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5239,7 +5239,7 @@ netlogon_dissect_netrlogoncomputeserverdigest_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_BYTE_16_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        int i;
 
@@ -5253,7 +5253,7 @@ netlogon_dissect_BYTE_16_array(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogoncomputeserverdigest_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_BYTE_16_array, NDR_POINTER_UNIQUE,
@@ -5267,7 +5267,7 @@ netlogon_dissect_netrlogoncomputeserverdigest_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogoncomputeclientdigest_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5289,7 +5289,7 @@ netlogon_dissect_netrlogoncomputeclientdigest_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogoncomputeclientdigest_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_BYTE_16_array, NDR_POINTER_UNIQUE,
@@ -5303,7 +5303,7 @@ netlogon_dissect_netrlogoncomputeclientdigest_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverauthenticate3_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5330,7 +5330,7 @@ netlogon_dissect_netrserverauthenticate3_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverauthenticate3_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -5351,7 +5351,7 @@ netlogon_dissect_netrserverauthenticate3_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetdcnameex_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5374,7 +5374,7 @@ netlogon_dissect_dsrgetdcnameex_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetdcnameex_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DOMAIN_CONTROLLER_INFO, NDR_POINTER_UNIQUE,
@@ -5388,7 +5388,7 @@ netlogon_dissect_dsrgetdcnameex_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetsitename_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5399,7 +5399,7 @@ netlogon_dissect_dsrgetsitename_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetsitename_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        /* XXX hmmm this does not really look like a UNIQUE pointer but
@@ -5418,7 +5418,7 @@ netlogon_dissect_dsrgetsitename_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongetdomaininfo_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* Unlike the other NETLOGON RPCs, this is not a unique pointer. */
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
@@ -5449,7 +5449,7 @@ netlogon_dissect_netrlogongetdomaininfo_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongetdomaininfo_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -5467,7 +5467,7 @@ netlogon_dissect_netrlogongetdomaininfo_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverpasswordset2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5496,7 +5496,7 @@ netlogon_dissect_netrserverpasswordset2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverpasswordset2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_UNIQUE,
@@ -5510,7 +5510,7 @@ netlogon_dissect_netrserverpasswordset2_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverpasswordget_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5535,7 +5535,7 @@ netlogon_dissect_netrserverpasswordget_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverpasswordget_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -5553,7 +5553,7 @@ netlogon_dissect_netrserverpasswordget_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonsendtosam_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5579,7 +5579,7 @@ netlogon_dissect_netrlogonsendtosam_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonsendtosam_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_UNIQUE,
@@ -5593,7 +5593,7 @@ netlogon_dissect_netrlogonsendtosam_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsraddresstositenamesw_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5611,7 +5611,7 @@ netlogon_dissect_dsraddresstositenamesw_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsraddresstositenamesw_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_TYPE_50_ptr, NDR_POINTER_UNIQUE,
@@ -5625,7 +5625,7 @@ netlogon_dissect_dsraddresstositenamesw_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetdcnameex2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5658,7 +5658,7 @@ netlogon_dissect_dsrgetdcnameex2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetdcnameex2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DOMAIN_CONTROLLER_INFO, NDR_POINTER_UNIQUE,
@@ -5672,7 +5672,7 @@ netlogon_dissect_dsrgetdcnameex2_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongettimeserviceparentdomain_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5683,7 +5683,7 @@ netlogon_dissect_netrlogongettimeserviceparentdomain_rqst(tvbuff_t *tvb, int off
 
 static int
 netlogon_dissect_netrlogongettimeserviceparentdomain_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "unknown string", 
@@ -5701,7 +5701,7 @@ netlogon_dissect_netrlogongettimeserviceparentdomain_reply(tvbuff_t *tvb, int of
 
 static int
 netlogon_dissect_netrenumeratetrusteddomainsex_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5711,7 +5711,7 @@ netlogon_dissect_netrenumeratetrusteddomainsex_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrenumeratetrusteddomainsex_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_entries, NULL);
@@ -5728,7 +5728,7 @@ netlogon_dissect_netrenumeratetrusteddomainsex_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsraddresstositenamesexw_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5746,7 +5746,7 @@ netlogon_dissect_dsraddresstositenamesexw_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsraddresstositenamesexw_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_TYPE_52_ptr, NDR_POINTER_UNIQUE,
@@ -5761,7 +5761,7 @@ netlogon_dissect_dsraddresstositenamesexw_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_site_name_item(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_counted_string_cb(
                tvb, offset, pinfo, tree, drep, hf_netlogon_site_name,
@@ -5772,7 +5772,7 @@ netlogon_dissect_site_name_item(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_site_name_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_site_name_item);
@@ -5782,7 +5782,7 @@ netlogon_dissect_site_name_array(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_site_names(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_count, NULL);
@@ -5796,7 +5796,7 @@ netlogon_dissect_site_names(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetdcsitecoveragew_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5807,7 +5807,7 @@ netlogon_dissect_dsrgetdcsitecoveragew_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetdcsitecoveragew_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_site_names, NDR_POINTER_UNIQUE,
@@ -5821,7 +5821,7 @@ netlogon_dissect_dsrgetdcsitecoveragew_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonsamlogonex_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "unknown string", 
@@ -5850,7 +5850,7 @@ netlogon_dissect_netrlogonsamlogonex_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonsamlogonex_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_VALIDATION, NDR_POINTER_UNIQUE,
@@ -5873,7 +5873,7 @@ netlogon_dissect_netrlogonsamlogonex_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrenumeratedomaintrusts_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5886,7 +5886,7 @@ netlogon_dissect_dsrenumeratedomaintrusts_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrenumeratedomaintrusts_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_entries, NULL);
@@ -5903,7 +5903,7 @@ netlogon_dissect_dsrenumeratedomaintrusts_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrderegisterdnshostrecords_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5928,7 +5928,7 @@ netlogon_dissect_dsrderegisterdnshostrecords_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrderegisterdnshostrecords_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep,
                                  hf_netlogon_rc, NULL);
@@ -5952,7 +5952,7 @@ static gint ett_secchan_bind_ack_creds = -1;
 
 static int dissect_secchan_bind_creds(tvbuff_t *tvb, int offset,
                                      packet_info *pinfo, 
-                                     proto_tree *tree, char *drep)
+                                     proto_tree *tree, guint8 *drep)
 {
        proto_item *item = NULL;
        proto_tree *subtree = NULL;
@@ -5997,7 +5997,7 @@ static int dissect_secchan_bind_creds(tvbuff_t *tvb, int offset,
 
 static int dissect_secchan_bind_ack_creds(tvbuff_t *tvb, int offset,
                                          packet_info *pinfo, 
-                                         proto_tree *tree, char *drep)
+                                         proto_tree *tree, guint8 *drep)
 {
        proto_item *item = NULL;
        proto_tree *subtree = NULL;
@@ -6178,7 +6178,7 @@ static int hf_netlogon_secchan_verf_nonce = -1;
 
 static int
 dissect_secchan_verf(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, 
-                    proto_tree *tree, char *drep _U_)
+                    proto_tree *tree, guint8 *drep _U_)
 {
           proto_item *vf = NULL;
           proto_tree *subtree = NULL;
index 6ef7e50136591525a316eeab76534774db1bf223..8f79dded7d6d2902279c1a52ab9ce7cf04bc5144 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for DCERPC over SMB packet disassembly
  * Copyright 2001-2003, Tim Potter <tpot@samba.org>
  *
- * $Id: packet-dcerpc-nt.c,v 1.77 2003/07/01 00:59:43 guy Exp $
+ * $Id: packet-dcerpc-nt.c,v 1.78 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -63,7 +63,7 @@ static int hf_nt_cs_size = -1;
 int
 dissect_ndr_counted_string_cb(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep, int hf_index,
+                             guint8 *drep, int hf_index,
                              dcerpc_callback_fnct_t *callback,
                              void *callback_args)
 {
@@ -104,7 +104,7 @@ static gint ett_nt_counted_string = -1;
 static int
 dissect_ndr_counted_string_helper(tvbuff_t *tvb, int offset,
                                  packet_info *pinfo, proto_tree *tree,
-                                 char *drep, int hf_index, int levels,
+                                 guint8 *drep, int hf_index, int levels,
                                  gboolean add_subtree)
 {
        proto_item *item;
@@ -134,7 +134,7 @@ dissect_ndr_counted_string_helper(tvbuff_t *tvb, int offset,
 int
 dissect_ndr_counted_string(tvbuff_t *tvb, int offset,
                           packet_info *pinfo, proto_tree *tree,
-                          char *drep, int hf_index, int levels)
+                          guint8 *drep, int hf_index, int levels)
 {
        return dissect_ndr_counted_string_helper(
                tvb, offset, pinfo, tree, drep, hf_index, levels, TRUE);
@@ -147,7 +147,7 @@ dissect_ndr_counted_string(tvbuff_t *tvb, int offset,
 int
 dissect_ndr_counted_string_ptr(tvbuff_t *tvb, int offset,
                               packet_info *pinfo, proto_tree *tree,
-                              char *drep)
+                              guint8 *drep)
 {
        dcerpc_info *di = pinfo->private_data;
 
@@ -164,7 +164,7 @@ static gint ett_nt_counted_byte_array = -1;
 int
 dissect_ndr_counted_byte_array_cb(tvbuff_t *tvb, int offset,
                                  packet_info *pinfo, proto_tree *tree,
-                                 char *drep, int hf_index,
+                                 guint8 *drep, int hf_index,
                                  dcerpc_callback_fnct_t *callback,
                                  void *callback_args)
 {
@@ -210,7 +210,7 @@ dissect_ndr_counted_byte_array_cb(tvbuff_t *tvb, int offset,
 int
 dissect_ndr_counted_byte_array(tvbuff_t *tvb, int offset,
                               packet_info *pinfo, proto_tree *tree,
-                              char *drep, int hf_index)
+                              guint8 *drep, int hf_index)
 {
        return dissect_ndr_counted_byte_array_cb(
                tvb, offset, pinfo, tree, drep, hf_index, NULL, NULL);
@@ -223,7 +223,7 @@ dissect_ndr_counted_byte_array(tvbuff_t *tvb, int offset,
 int
 dissect_ndr_nt_NTTIME (tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_, int hf_index)
+                       guint8 *drep _U_, int hf_index)
 {
        dcerpc_info *di;
 
@@ -659,7 +659,7 @@ static void init_pol_hash(void)
 
 int
 dissect_ntstatus(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                proto_tree *tree, char *drep,
+                proto_tree *tree, guint8 *drep,
                 int hfindex, guint32 *pdata)
 {
        guint32 status;
@@ -681,7 +681,7 @@ dissect_ntstatus(tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_doserror(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-              proto_tree *tree, char *drep,
+              proto_tree *tree, guint8 *drep,
               int hfindex, guint32 *pdata)
 {
        guint32 status;
@@ -708,7 +708,7 @@ static gint ett_nt_policy_hnd = -1;
 
 int
 dissect_nt_policy_hnd(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                     proto_tree *tree, char *drep, int hfindex,
+                     proto_tree *tree, guint8 *drep, int hfindex,
                      e_ctx_hnd *pdata, proto_item **pitem,
                      gboolean is_open, gboolean is_close)
 {
@@ -789,7 +789,7 @@ dissect_nt_policy_hnd(tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_dcerpc_uint8s(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
-                      proto_tree *tree, char *drep, int hfindex,
+                      proto_tree *tree, guint8 *drep, int hfindex,
                      int length, const guint8 **pdata)
 {
     const guint8 *data;
@@ -808,7 +808,7 @@ dissect_dcerpc_uint8s(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
 
 int
 dissect_ndr_uint8s(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                   proto_tree *tree, char *drep,
+                   proto_tree *tree, guint8 *drep,
                    int hfindex, int length, const guint8 **pdata)
 {
     dcerpc_info *di;
@@ -826,7 +826,7 @@ dissect_ndr_uint8s(tvbuff_t *tvb, gint offset, packet_info *pinfo,
 
 int
 dissect_dcerpc_uint16s(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
-                      proto_tree *tree, char *drep, int hfindex,
+                      proto_tree *tree, guint8 *drep, int hfindex,
                      int length)
 {
     if (tree) {
@@ -838,7 +838,7 @@ dissect_dcerpc_uint16s(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
 
 int
 dissect_ndr_uint16s(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                   proto_tree *tree, char *drep,
+                   proto_tree *tree, guint8 *drep,
                    int hfindex, int length)
 {
     dcerpc_info *di;
@@ -1000,7 +1000,7 @@ void cb_str_postprocess(packet_info *pinfo, proto_tree *tree _U_,
 
 int dissect_ndr_str_pointer_item(tvbuff_t *tvb, gint offset, 
                                 packet_info *pinfo, proto_tree *tree, 
-                                char *drep, int type, char *text, 
+                                guint8 *drep, int type, char *text, 
                                 int hf_index, int levels)
 {
        return dissect_ndr_pointer_cb(
index 4b0ca6604d37248340a55a310b4b662fea70e268..2506739cea1e7f183e7f1d639a776e5c73efc597 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for DCERPC over SMB packet disassembly
  * Copyright 2001-2003 Tim Potter <tpot@samba.org>
  *
- * $Id: packet-dcerpc-nt.h,v 1.48 2003/06/17 05:29:46 tpot Exp $
+ * $Id: packet-dcerpc-nt.h,v 1.49 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -51,64 +51,64 @@ extern const value_string platform_id_vals[];
 int
 dissect_ndr_counted_string_cb(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep, int hf_index, 
+                             guint8 *drep, int hf_index, 
                              dcerpc_callback_fnct_t *callback,
                              void *callback_args);
 
 int
 dissect_ndr_counted_string_ptr(tvbuff_t *tvb, int offset,
                               packet_info *pinfo, proto_tree *parent_tree,
-                              char *drep);
+                              guint8 *drep);
 
 int
 dissect_ndr_counted_string(tvbuff_t *tvb, int offset,
                           packet_info *pinfo, proto_tree *parent_tree,
-                          char *drep, int hf_index, int levels);
+                          guint8 *drep, int hf_index, int levels);
 
 int
 dissect_ndr_counted_byte_array(tvbuff_t *tvb, int offset,
                               packet_info *pinfo, proto_tree *parent_tree,
-                              char *drep, int hf_index);
+                              guint8 *drep, int hf_index);
 
 int
 dissect_ndr_counted_byte_array_cb(tvbuff_t *tvb, int offset,
                                  packet_info *pinfo, proto_tree *tree,
-                                 char *drep, int hf_index,
+                                 guint8 *drep, int hf_index,
                                  dcerpc_callback_fnct_t *callback,
                                  void *callback_args);
 
 int
 dissect_ndr_nt_acct_ctrl(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                       proto_tree *parent_tree, char *drep);
+                       proto_tree *parent_tree, guint8 *drep);
 int
 dissect_ndr_nt_NTTIME (tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep, int hf_index);
+                       guint8 *drep, int hf_index);
 int
 dissect_ndr_nt_LOGON_HOURS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep);
+                       guint8 *drep);
 int
 dissect_ndr_nt_SID(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep, int hf_sid);
+                       guint8 *drep, int hf_sid);
 int
 dissect_ndr_nt_PSID(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *parent_tree,
-                             char *drep, int hf_sid);
+                             guint8 *drep, int hf_sid);
 int
 dissect_ndr_nt_PSID_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep);
+                       guint8 *drep);
 
 int
 dissect_ndr_nt_SID_AND_ATTRIBUTES_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep);
+                       guint8 *drep);
 int
 dissect_ndr_nt_SID_AND_ATTRIBUTES(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep);
+                       guint8 *drep);
 
 /*
  * Policy handle hashing
@@ -137,52 +137,52 @@ dcerpc_smb_fetch_pol(e_ctx_hnd *policy_hnd, char **name,
 
 int
 dissect_ntstatus(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                proto_tree *tree, char *drep,
+                proto_tree *tree, guint8 *drep,
                 int hfindex, guint32 *pdata);
 
 int
 dissect_doserror(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                proto_tree *tree, char *drep,
+                proto_tree *tree, guint8 *drep,
                 int hfindex, guint32 *pdata);
 
 int
 dissect_nt_policy_hnd(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                     proto_tree *tree, char *drep, int hfindex,
+                     proto_tree *tree, guint8 *drep, int hfindex,
                      e_ctx_hnd *pdata, proto_item **pitem,
                      gboolean is_open, gboolean is_close);
 
 int
 dissect_nt_GUID(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep);
+                       guint8 *drep);
 
 int
 dissect_nt_LUID(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep);
+                       guint8 *drep);
 
 /* Stored here instead of packet-dcerpc{,-ndr}.c as they are probably not
    official NDR representations. */
 
 int dissect_dcerpc_uint8s(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                          proto_tree *tree, char *drep,
+                          proto_tree *tree, guint8 *drep,
                           int hfindex, int length, const guint8 **pdata);
 
 int dissect_ndr_uint8s(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                       proto_tree *tree, char *drep,
+                       proto_tree *tree, guint8 *drep,
                        int hfindex, int length, const guint8 **pdata);
 
 int dissect_dcerpc_uint16s(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                          proto_tree *tree, char *drep,
+                          proto_tree *tree, guint8 *drep,
                           int hfindex, int length);
 
 int dissect_ndr_uint16s(tvbuff_t *tvb, gint offset, packet_info *pinfo,
-                       proto_tree *tree, char *drep,
+                       proto_tree *tree, guint8 *drep,
                        int hfindex, int length);
 
 int dissect_ndr_str_pointer_item(tvbuff_t *tvb, gint offset, 
                                 packet_info *pinfo, proto_tree *tree, 
-                                char *drep, int type, char *text, 
+                                guint8 *drep, int type, char *text, 
                                 int hf_index, int levels);
 
 /*
index c380a2ad33ce2c470ef5fa81800031140d9d69b8..7381784bc115e941f3be7d062aede742fc80393d 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for DCOM OXID Resolver
  * Copyright 2001, Todd Sabin <tas@webspan.net>
  *
- * $Id: packet-dcerpc-oxid.c,v 1.10 2003/10/12 16:03:10 sharpe Exp $
+ * $Id: packet-dcerpc-oxid.c,v 1.11 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -157,7 +157,7 @@ towerid_val2str(unsigned short tower) {
 
 static int
 oxid_server_alive2_dissect_rply(tvbuff_t *tvb, int offset, packet_info *pinfo, 
-                               proto_tree *tree, char *drep) {
+                               proto_tree *tree, guint8 *drep) {
        COMVERSION comver;
        DUALSTRINGARRAY stringarray;
        STRINGBINDING stringbind;
index bbfd1c9b725dc5af6a825424d1fda9db0ef44636..75370a3a36fa1b143db714cd22bc4c038025b437 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for SMB \PIPE\winreg packet disassembly
  * Copyright 2001-2003 Tim Potter <tpot@samba.org>
  *
- * $Id: packet-dcerpc-reg.c,v 1.23 2003/10/24 00:35:29 guy Exp $
+ * $Id: packet-dcerpc-reg.c,v 1.24 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -84,7 +84,7 @@ static int hf_shutdown_reason = -1;
 
 static int
 dissect_open_data(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                 proto_tree *tree, char *drep)
+                 proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint16(
                tvb, offset, pinfo, tree, drep,
@@ -107,7 +107,7 @@ dissect_open_data(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegOpenHKLM_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-             proto_tree *tree, char *drep)
+             proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -121,7 +121,7 @@ RegOpenHKLM_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegOpenHKLM_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-             proto_tree *tree, char *drep)
+             proto_tree *tree, guint8 *drep)
 {
        e_ctx_hnd policy_hnd;
        proto_item *hnd_item;
@@ -151,7 +151,7 @@ RegOpenHKLM_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegOpenHKU_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-            proto_tree *tree, char *drep)
+            proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -165,7 +165,7 @@ RegOpenHKU_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegOpenHKU_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-            proto_tree *tree, char *drep)
+            proto_tree *tree, guint8 *drep)
 {
        e_ctx_hnd policy_hnd;
        proto_item *hnd_item;
@@ -195,7 +195,7 @@ RegOpenHKU_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegOpenHKCR_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-             proto_tree *tree, char *drep)
+             proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -209,7 +209,7 @@ RegOpenHKCR_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegOpenHKCR_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-             proto_tree *tree, char *drep)
+             proto_tree *tree, guint8 *drep)
 {
        e_ctx_hnd policy_hnd;
        proto_item *hnd_item;
@@ -239,7 +239,7 @@ RegOpenHKCR_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegCloseKey_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-          proto_tree *tree, char *drep)
+          proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -252,7 +252,7 @@ RegCloseKey_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegCloseKey_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-          proto_tree *tree, char *drep)
+          proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -272,7 +272,7 @@ RegCloseKey_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegQueryInfoKey_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-             proto_tree *tree, char *drep)
+             proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -288,7 +288,7 @@ RegQueryInfoKey_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegQueryInfoKey_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-             proto_tree *tree, char *drep)
+             proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -338,7 +338,7 @@ RegQueryInfoKey_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegOpenKey_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-              proto_tree *tree, char *drep)
+              proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -362,7 +362,7 @@ RegOpenKey_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegOpenKey_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-              proto_tree *tree, char *drep)
+              proto_tree *tree, guint8 *drep)
 {
        e_ctx_hnd policy_hnd;
        proto_item *hnd_item;
@@ -393,7 +393,7 @@ RegOpenKey_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegGetVersion_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-              proto_tree *tree, char *drep)
+              proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -406,7 +406,7 @@ RegGetVersion_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegGetVersion_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-              proto_tree *tree, char *drep)
+              proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -426,7 +426,7 @@ RegGetVersion_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegEnumKey_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-            proto_tree *tree, char *drep)
+            proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -439,7 +439,7 @@ RegEnumKey_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegEnumKey_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-            proto_tree *tree, char *drep)
+            proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -455,7 +455,7 @@ RegEnumKey_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 dissect_reserved(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                proto_tree *tree, char *drep)
+                proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(
                tvb, offset, pinfo, tree, drep, hf_reserved, NULL);
@@ -465,7 +465,7 @@ dissect_reserved(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 dissect_offered(tvbuff_t *tvb, int offset, packet_info *pinfo,
-               proto_tree *tree, char *drep)
+               proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(
                tvb, offset, pinfo, tree, drep, hf_offered, NULL);
@@ -475,7 +475,7 @@ dissect_offered(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 dissect_returned(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                proto_tree *tree, char *drep)
+                proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(
                tvb, offset, pinfo, tree, drep, hf_returned, NULL);
@@ -485,7 +485,7 @@ dissect_returned(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 dissect_unknown(tvbuff_t *tvb, int offset, packet_info *pinfo,
-               proto_tree *tree, char *drep)
+               proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(
                tvb, offset, pinfo, tree, drep, hf_unknown, NULL);
@@ -495,7 +495,7 @@ dissect_unknown(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegQueryValue_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-               proto_tree *tree, char *drep)
+               proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -541,7 +541,7 @@ RegQueryValue_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 dissect_key_type(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                proto_tree *tree, char *drep)
+                proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(
                tvb, offset, pinfo, tree, drep, hf_keytype, NULL);
@@ -551,7 +551,7 @@ dissect_key_type(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegQueryValue_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-               proto_tree *tree, char *drep)
+               proto_tree *tree, guint8 *drep)
 {
        /* Parse packet */
 
@@ -584,7 +584,7 @@ RegQueryValue_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 /* Reg Shutdown functions */
 static int
 dissect_shutdown_server(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                       proto_tree *tree, char *drep)
+                       proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint16(
                tvb, offset, pinfo, tree, drep, hf_shutdown_server, NULL);
@@ -594,7 +594,7 @@ dissect_shutdown_server(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 dissect_shutdown_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                       proto_tree *tree, char *drep)
+                       proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_counted_string(
                tvb, offset, pinfo, tree, drep, hf_shutdown_message, 0);
@@ -604,7 +604,7 @@ dissect_shutdown_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegShutdown_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-        proto_tree *tree, char *drep)
+        proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(
                tvb, offset, pinfo, tree, drep,
@@ -629,7 +629,7 @@ RegShutdown_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegShutdown_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-        proto_tree *tree, char *drep)
+        proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(
                tvb, offset, pinfo, tree, drep, hf_rc, NULL);
@@ -639,7 +639,7 @@ RegShutdown_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegAbortShutdown_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                  proto_tree *tree, char *drep)
+                  proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(
                tvb, offset, pinfo, tree, drep,
@@ -651,7 +651,7 @@ RegAbortShutdown_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegShutdownEx_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-               proto_tree *tree, char *drep)
+               proto_tree *tree, guint8 *drep)
 {
        offset = RegShutdown_q(tvb, offset, pinfo, tree, drep);
        offset = dissect_ndr_uint32(
@@ -670,7 +670,7 @@ RegShutdownEx_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegFoo_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
-        proto_tree *tree, char *drep)
+        proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
 
@@ -681,7 +681,7 @@ RegFoo_q(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 RegFoo_r(tvbuff_t *tvb, int offset, packet_info *pinfo,
-        proto_tree *tree, char *drep)
+        proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
 
index 5853788aeeb7f3a79a0e5ff1fed7c5c6b782cd6a..a04bc7c6b1fcfc04a08ede6fb402320e1046429f 100644 (file)
@@ -5,7 +5,7 @@
  * This information is based off the released idl files from opengroup.
  * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz  security/idl/rpriv.idl
  *
- * $Id: packet-dcerpc-rpriv.c,v 1.8 2003/12/28 23:50:31 guy Exp $
+ * $Id: packet-dcerpc-rpriv.c,v 1.9 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -62,7 +62,7 @@ static guint16  ver_rpriv = 1;
 static int
 rpriv_dissect_get_eptgt_rqst (tvbuff_t *tvb, int offset,
                          packet_info *pinfo, proto_tree *tree,
-                         char *drep)
+                         guint8 *drep)
 {
        /*        [in]        handle_t         handle,
         *        [in]        unsigned32       authn_svc,
index b02a51a37ae5592055b9ec2e649404bb1f677afc..fe815498ee16923e9d8703d74d5a5f4556cfa463 100644 (file)
@@ -5,7 +5,7 @@
  * This information is based off the released idl files from opengroup.
  * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_acct.idl
  *      
- * $Id: packet-dcerpc-rs_acct.c,v 1.6 2003/12/21 05:51:33 jmayer Exp $
+ * $Id: packet-dcerpc-rs_acct.c,v 1.7 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -62,7 +62,7 @@ static guint16  ver_rs_acct = 1;
 
 static int
 rs_acct_dissect_lookup_rqst (tvbuff_t *tvb, int offset,
-               packet_info *pinfo, proto_tree *tree, char *drep)
+               packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        guint32 key_size;
        const char *key_t = NULL;
@@ -95,7 +95,7 @@ rs_acct_dissect_lookup_rqst (tvbuff_t *tvb, int offset,
 
 static int
 rs_acct_dissect_get_projlist_rqst (tvbuff_t *tvb, int offset,
-               packet_info *pinfo, proto_tree *tree, char *drep)
+               packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        guint32 key_size;
        const char *key_t = NULL;
index 7170b3374eebcf2c7f536c82001aa93fe8c091b1..e469b43de2bec19ae28d8397d5617c6a98e00339 100644 (file)
@@ -5,7 +5,7 @@
  * This information is based off the released idl files from opengroup.
  * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_misc.idl
  *      
- * $Id: packet-dcerpc-rs_misc.c,v 1.6 2003/12/21 05:51:33 jmayer Exp $
+ * $Id: packet-dcerpc-rs_misc.c,v 1.7 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -58,7 +58,7 @@ static guint16  ver_rs_misc = 1;
 
 static int
 rs_misc_dissect_login_get_info_rqst (tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        guint32 key_size;
index d68109a6d04c66cb2f0a52795f86d9508e177dea..8f83e73d55ddfe5442965f3bd0fac1d3fe7a4da2 100644 (file)
@@ -5,7 +5,7 @@
  * This information is based off the released idl files from opengroup.
  * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz  security/idl/rs_pgo.idl
  *      
- * $Id: packet-dcerpc-rs_pgo.c,v 1.5 2003/08/04 02:49:01 tpot Exp $
+ * $Id: packet-dcerpc-rs_pgo.c,v 1.6 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -75,7 +75,7 @@ static guint16  ver_rs_pgo = 1;
 static int
 rs_pgo_dissect_get_members_rqst (tvbuff_t *tvb, int offset,
                                  packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
      guint32 name_domain,  sec_rgy_name_max_len, sec_rgy_name_t_size;
      const char *sec_rgy_name_t = NULL;
@@ -102,7 +102,7 @@ rs_pgo_dissect_get_members_rqst (tvbuff_t *tvb, int offset,
 static int
 rs_pgo_dissect_key_transfer_rqst (tvbuff_t *tvb, int offset,
                                  packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
     guint32 var1, var2, var3;
 
@@ -122,7 +122,7 @@ rs_pgo_dissect_key_transfer_rqst (tvbuff_t *tvb, int offset,
 static int
 rs_pgo_dissect_is_member_rqst (tvbuff_t *tvb, int offset,
                                  packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
      guint32 var1, var2, key1_size, key2_size, var3;
      const char *key1, *key2; 
@@ -156,7 +156,7 @@ rs_pgo_dissect_is_member_rqst (tvbuff_t *tvb, int offset,
 static int
 rs_pgo_dissect_get_rqst (tvbuff_t *tvb, int offset,
                                 packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
 
      guint32 name_domain, key_size, var, var2;
index e1f912875c4a949608f942ff8cedf17b48695d81..b8b25c137b4bc0d7478056882e22d3fffc3dfa7f 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2001,2003 Tim Potter <tpot@samba.org>
  *   2002 Added all command dissectors  Ronnie Sahlberg
  *
- * $Id: packet-dcerpc-samr.c,v 1.102 2003/09/29 00:01:26 tpot Exp $
+ * $Id: packet-dcerpc-samr.c,v 1.103 2004/01/19 20:10:35 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -473,7 +473,7 @@ struct access_mask_info samr_group_access_mask_info = {
 
 int
 dissect_ndr_nt_SID(tvbuff_t *tvb, int offset, packet_info *pinfo, 
-                  proto_tree *tree, char *drep, int hf_sid)
+                  proto_tree *tree, guint8 *drep, int hf_sid)
 {
        dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
        dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
@@ -504,14 +504,14 @@ dissect_ndr_nt_SID(tvbuff_t *tvb, int offset, packet_info *pinfo,
 }
 static int
 dissect_ndr_nt_SID_no_hf(tvbuff_t *tvb, int offset, packet_info *pinfo, 
-                  proto_tree *tree, char *drep)
+                  proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_nt_SID(tvb, offset, pinfo, tree, drep, -1);
        return offset;
 }
 static int
 dissect_ndr_nt_SID_hf_through_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, 
-                  proto_tree *tree, char *drep)
+                  proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
 
@@ -567,7 +567,7 @@ static const true_false_string tfs_nt_acb_autolock = {
 };
 int
 dissect_ndr_nt_acct_ctrl(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                       proto_tree *parent_tree, char *drep)
+                       proto_tree *parent_tree, guint8 *drep)
 {
        guint32 mask;
        proto_item *item = NULL;
@@ -615,7 +615,7 @@ dissect_ndr_nt_acct_ctrl(tvbuff_t *tvb, int offset, packet_info *pinfo,
 
 static int
 samr_dissect_open_user_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                           proto_tree *tree, char *drep)
+                           proto_tree *tree, guint8 *drep)
 {
        dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
        dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
@@ -641,7 +641,7 @@ samr_dissect_open_user_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo,
 static int
 samr_dissect_open_user_reply(tvbuff_t *tvb, int offset,
                             packet_info *pinfo, proto_tree *tree,
-                            char *drep)
+                            guint8 *drep)
 {
        dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
        dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
@@ -678,7 +678,7 @@ samr_dissect_open_user_reply(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_pointer_long(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -691,7 +691,7 @@ samr_dissect_pointer_long(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_pointer_STRING(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -709,7 +709,7 @@ samr_dissect_pointer_STRING(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_pointer_short(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -723,7 +723,7 @@ samr_dissect_pointer_short(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_query_dispinfo_rqst(tvbuff_t *tvb, int offset,
                                 packet_info *pinfo, proto_tree *tree,
-                                char *drep)
+                                guint8 *drep)
 {
        guint16 level;
        guint32 start_idx;
@@ -751,7 +751,7 @@ samr_dissect_query_dispinfo_rqst(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_DISPINFO_1(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -782,7 +782,7 @@ samr_dissect_USER_DISPINFO_1(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_DISPINFO_1_ARRAY_users(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        samr_dissect_USER_DISPINFO_1);
@@ -793,7 +793,7 @@ samr_dissect_USER_DISPINFO_1_ARRAY_users(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_DISPINFO_1_ARRAY (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *parent_tree,
-                             char *drep)
+                             guint8 *drep)
 {
        guint32 count;
        proto_item *item=NULL;
@@ -822,7 +822,7 @@ samr_dissect_USER_DISPINFO_1_ARRAY (tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_DISPINFO_2(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -851,7 +851,7 @@ samr_dissect_USER_DISPINFO_2(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_DISPINFO_2_ARRAY_users (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        samr_dissect_USER_DISPINFO_2);
@@ -862,7 +862,7 @@ samr_dissect_USER_DISPINFO_2_ARRAY_users (tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_DISPINFO_2_ARRAY (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *parent_tree,
-                             char *drep)
+                             guint8 *drep)
 {
        guint32 count;
        proto_item *item=NULL;
@@ -889,7 +889,7 @@ samr_dissect_USER_DISPINFO_2_ARRAY (tvbuff_t *tvb, int offset,
 static int
 samr_dissect_GROUP_DISPINFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -919,7 +919,7 @@ samr_dissect_GROUP_DISPINFO(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_GROUP_DISPINFO_ARRAY_groups(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        samr_dissect_GROUP_DISPINFO);
@@ -930,7 +930,7 @@ samr_dissect_GROUP_DISPINFO_ARRAY_groups(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_GROUP_DISPINFO_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 count;
        proto_item *item=NULL;
@@ -958,7 +958,7 @@ samr_dissect_GROUP_DISPINFO_ARRAY(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_ASCII_DISPINFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -988,7 +988,7 @@ samr_dissect_ASCII_DISPINFO(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_ASCII_DISPINFO_ARRAY_users(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        samr_dissect_ASCII_DISPINFO);
@@ -999,7 +999,7 @@ samr_dissect_ASCII_DISPINFO_ARRAY_users(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_ASCII_DISPINFO_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 count;
        proto_item *item=NULL;
@@ -1026,7 +1026,7 @@ samr_dissect_ASCII_DISPINFO_ARRAY(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_DISPLAY_INFO (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *parent_tree,
-                             char *drep)
+                             guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1071,7 +1071,7 @@ samr_dissect_DISPLAY_INFO (tvbuff_t *tvb, int offset,
 static int
 samr_dissect_query_dispinfo_reply(tvbuff_t *tvb, int offset,
                                  packet_info *pinfo, proto_tree *tree,
-                                 char *drep)
+                                 guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        samr_dissect_pointer_long, NDR_POINTER_REF,
@@ -1092,7 +1092,7 @@ static int
 samr_dissect_get_display_enumeration_index_rqst(tvbuff_t *tvb, int offset,
                                                packet_info *pinfo,
                                                proto_tree *tree,
-                                               char *drep)
+                                               guint8 *drep)
 {
        guint16 level;
 
@@ -1114,7 +1114,7 @@ samr_dissect_get_display_enumeration_index_rqst(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_get_display_enumeration_index_reply(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        samr_dissect_pointer_long, NDR_POINTER_REF,
@@ -1132,7 +1132,7 @@ samr_dissect_get_display_enumeration_index_reply(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_PASSWORD_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1159,7 +1159,7 @@ samr_dissect_PASSWORD_INFO(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_get_usrdom_pwinfo_rqst(tvbuff_t *tvb, int offset,
                                    packet_info *pinfo, proto_tree *tree,
-                                   char *drep)
+                                   guint8 *drep)
 {
         offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                                       hf_samr_hnd, NULL, NULL, FALSE, FALSE);
@@ -1170,7 +1170,7 @@ samr_dissect_get_usrdom_pwinfo_rqst(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_get_usrdom_pwinfo_reply(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        samr_dissect_PASSWORD_INFO, NDR_POINTER_REF,
@@ -1184,7 +1184,7 @@ samr_dissect_get_usrdom_pwinfo_reply(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_connect2_rqst(tvbuff_t *tvb, int offset,
                           packet_info *pinfo, proto_tree *tree,
-                          char *drep)
+                          guint8 *drep)
 {
        offset = dissect_ndr_pointer_cb(
                tvb, offset, pinfo, tree, drep,
@@ -1202,7 +1202,7 @@ samr_dissect_connect2_rqst(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_connect4_rqst(tvbuff_t *tvb, int offset,
                           packet_info *pinfo, proto_tree *tree,
-                          char *drep)
+                          guint8 *drep)
 {
        offset = dissect_ndr_pointer_cb(
                tvb, offset, pinfo, tree, drep,
@@ -1223,7 +1223,7 @@ samr_dissect_connect4_rqst(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_connect2_reply(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
        dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
@@ -1259,7 +1259,7 @@ samr_dissect_connect2_reply(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_connect_anon_rqst(tvbuff_t *tvb, int offset,
                               packet_info *pinfo, proto_tree *tree,
-                              char *drep)
+                              guint8 *drep)
 {
        char str[2];
        guint16 server;
@@ -1277,7 +1277,7 @@ samr_dissect_connect_anon_rqst(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_connect_anon_reply(tvbuff_t *tvb, int offset,
                                packet_info *pinfo, proto_tree *tree,
-                               char *drep)
+                               guint8 *drep)
 {
        e_ctx_hnd policy_hnd;
        proto_item *hnd_item;
@@ -1304,7 +1304,7 @@ samr_dissect_connect_anon_reply(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_GROUP(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *parent_tree,
-                             char *drep)
+                             guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -1328,7 +1328,7 @@ samr_dissect_USER_GROUP(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_GROUP_ARRAY_groups (tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        samr_dissect_USER_GROUP);
@@ -1339,7 +1339,7 @@ samr_dissect_USER_GROUP_ARRAY_groups (tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_GROUP_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 count;
        proto_item *item=NULL;
@@ -1365,7 +1365,7 @@ samr_dissect_USER_GROUP_ARRAY(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_USER_GROUP_ARRAY_ptr(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        samr_dissect_USER_GROUP_ARRAY, NDR_POINTER_UNIQUE,
@@ -1376,7 +1376,7 @@ samr_dissect_USER_GROUP_ARRAY_ptr(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_get_groups_for_user_rqst(tvbuff_t *tvb, int offset,
                                      packet_info *pinfo, proto_tree *tree,
-                                     char *drep)
+                                     guint8 *drep)
 {
         offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                                       hf_samr_hnd, NULL, NULL, FALSE, FALSE);
@@ -1387,7 +1387,7 @@ samr_dissect_get_groups_for_user_rqst(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_get_groups_for_user_reply(tvbuff_t *tvb, int offset,
                                       packet_info *pinfo, proto_tree *tree,
-                                      char *drep)
+                                      guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                        samr_dissect_USER_GROUP_ARRAY_ptr, NDR_POINTER_REF,
@@ -1415,7 +1415,7 @@ static void append_sid_col_info(packet_info *pinfo, proto_tree *tree _U_,
 static int
 samr_dissect_open_domain_rqst(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
         offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
                                       hf_samr_hnd, NULL, NULL, FALSE, FALSE);
@@ -1434,7 +1434,7 @@ samr_dissect_open_domain_rqst(tvbuff_t *tvb, int offset,
 static int
 samr_dissect_open_domain_reply(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-