summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-04-05 22:34:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:50:41 -0500
commitf9235e0964d921cc1df7b4c4b7ab91a1c1ab4d54 (patch)
tree061181b051405357299a0992614bc5da69aabc59 /source4/torture/rpc
parentb96025eb15e3648e77e0e6aa343e23ca2f1156da (diff)
downloadsamba-f9235e0964d921cc1df7b4c4b7ab91a1c1ab4d54.tar.gz
samba-f9235e0964d921cc1df7b4c4b7ab91a1c1ab4d54.tar.bz2
samba-f9235e0964d921cc1df7b4c4b7ab91a1c1ab4d54.zip
r62: Fix the build
(This used to be commit 1396db85372af1824592ef66f963603e3f35803c)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/winreg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 41804d3302..72fdc96c11 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -59,6 +59,7 @@ static BOOL test_CreateKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct winreg_CreateKey r;
struct policy_handle newhandle;
NTSTATUS status;
+ struct sec_desc_buf sec_desc;
printf("\ntesting CreateKey\n");
@@ -71,7 +72,9 @@ static BOOL test_CreateKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
r.in.access_mask = 0x02000000;
r.out.reserved = 0x0;
r.in.sec_info = 0x0;
- r.in.data = 0;
+ sec_desc.size = 0;
+ sec_desc.sd = NULL;
+ r.in.sec_desc = &sec_desc;
status = dcerpc_winreg_CreateKey(p, mem_ctx, &r);
@@ -130,7 +133,7 @@ static BOOL test_FlushKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
static BOOL test_OpenKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *hive_handle,
- char *keyname, struct policy_handle *key_handle)
+ const char *keyname, struct policy_handle *key_handle)
{
NTSTATUS status;
struct winreg_OpenKey r;
@@ -154,7 +157,7 @@ static BOOL test_OpenKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
}
static BOOL test_DeleteKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
- struct policy_handle *handle, char *key)
+ struct policy_handle *handle, const char *key)
{
NTSTATUS status;
struct winreg_DeleteKey r;