summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/librpc/gen_ndr/cli_dfs.c46
-rw-r--r--source3/librpc/gen_ndr/cli_echo.c26
-rw-r--r--source3/librpc/gen_ndr/cli_eventlog.c48
-rw-r--r--source3/librpc/gen_ndr/cli_initshutdown.c6
-rw-r--r--source3/librpc/gen_ndr/cli_lsa.c164
-rw-r--r--source3/librpc/gen_ndr/cli_netlogon.c94
-rw-r--r--source3/librpc/gen_ndr/cli_srvsvc.c110
-rw-r--r--source3/librpc/gen_ndr/cli_svcctl.c106
-rw-r--r--source3/librpc/gen_ndr/cli_unixinfo.c12
-rw-r--r--source3/librpc/gen_ndr/cli_winreg.c88
-rw-r--r--source3/librpc/gen_ndr/cli_winreg.h2
-rw-r--r--source3/librpc/gen_ndr/cli_wkssvc.c62
-rw-r--r--source3/librpc/gen_ndr/dfs.h4
-rw-r--r--source3/librpc/gen_ndr/echo.h2
-rw-r--r--source3/librpc/gen_ndr/eventlog.h2
-rw-r--r--source3/librpc/gen_ndr/initshutdown.h2
-rw-r--r--source3/librpc/gen_ndr/lsa.h44
-rw-r--r--source3/librpc/gen_ndr/ndr_winreg.c322
-rw-r--r--source3/librpc/gen_ndr/netlogon.h48
-rw-r--r--source3/librpc/gen_ndr/notify.h2
-rw-r--r--source3/librpc/gen_ndr/srv_winreg.c4
-rw-r--r--source3/librpc/gen_ndr/srvsvc.h40
-rw-r--r--source3/librpc/gen_ndr/svcctl.h10
-rw-r--r--source3/librpc/gen_ndr/unixinfo.h6
-rw-r--r--source3/librpc/gen_ndr/winreg.h26
-rw-r--r--source3/librpc/gen_ndr/wkssvc.h10
-rw-r--r--source3/librpc/idl/winreg.idl14
-rw-r--r--source3/rpc_server/srv_winreg_nt.c12
28 files changed, 694 insertions, 618 deletions
diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c
index a5f4e681e0..e85800b1dc 100644
--- a/source3/librpc/gen_ndr/cli_dfs.c
+++ b/source3/librpc/gen_ndr/cli_dfs.c
@@ -18,7 +18,7 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -53,7 +53,7 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -85,7 +85,7 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -114,7 +114,7 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -147,7 +147,7 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -182,7 +182,7 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -217,7 +217,7 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -246,7 +246,7 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -275,7 +275,7 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -304,7 +304,7 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -333,7 +333,7 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -362,7 +362,7 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -391,7 +391,7 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -420,7 +420,7 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -449,7 +449,7 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -478,7 +478,7 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -507,7 +507,7 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -536,7 +536,7 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -565,7 +565,7 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -594,7 +594,7 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -623,7 +623,7 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -657,7 +657,7 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -692,7 +692,7 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_echo.c b/source3/librpc/gen_ndr/cli_echo.c
index c393de477c..ee7e0f6114 100644
--- a/source3/librpc/gen_ndr/cli_echo.c
+++ b/source3/librpc/gen_ndr/cli_echo.c
@@ -19,7 +19,7 @@ NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, ui
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_ADDONE, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_AddOne, (ndr_push_flags_fn_t)ndr_push_echo_AddOne);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -51,7 +51,7 @@ NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_ECHODATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_EchoData, (ndr_push_flags_fn_t)ndr_push_echo_EchoData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -63,7 +63,7 @@ NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
}
/* Return variables */
- *out_data = *r.out.out_data;
+ memcpy(out_data, r.out.out_data, r.in.len);
/* Return result */
return NT_STATUS_OK;
@@ -83,7 +83,7 @@ NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_SINKDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_SinkData, (ndr_push_flags_fn_t)ndr_push_echo_SinkData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -113,7 +113,7 @@ NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_SOURCEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_SourceData, (ndr_push_flags_fn_t)ndr_push_echo_SourceData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -125,7 +125,7 @@ NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
}
/* Return variables */
- *data = *r.out.data;
+ memcpy(data, r.out.data, r.in.len);
/* Return result */
return NT_STATUS_OK;
@@ -144,7 +144,7 @@ NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTCALL, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestCall, (ndr_push_flags_fn_t)ndr_push_echo_TestCall);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -175,7 +175,7 @@ NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTCALL2, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestCall2, (ndr_push_flags_fn_t)ndr_push_echo_TestCall2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -206,7 +206,7 @@ NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTSLEEP, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestSleep, (ndr_push_flags_fn_t)ndr_push_echo_TestSleep);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -220,7 +220,6 @@ NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* Return variables */
/* Return result */
- /* Sorry, don't know how to convert uint32 to NTSTATUS */
return NT_STATUS_OK;
}
@@ -239,7 +238,7 @@ NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestEnum, (ndr_push_flags_fn_t)ndr_push_echo_TestEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -272,7 +271,7 @@ NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTSURROUNDING, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestSurrounding, (ndr_push_flags_fn_t)ndr_push_echo_TestSurrounding);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -303,7 +302,7 @@ NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTDOUBLEPOINTER, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestDoublePointer, (ndr_push_flags_fn_t)ndr_push_echo_TestDoublePointer);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -317,7 +316,6 @@ NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *
/* Return variables */
/* Return result */
- /* Sorry, don't know how to convert uint16 to NTSTATUS */
return NT_STATUS_OK;
}
diff --git a/source3/librpc/gen_ndr/cli_eventlog.c b/source3/librpc/gen_ndr/cli_eventlog.c
index 8608816b20..038a30526a 100644
--- a/source3/librpc/gen_ndr/cli_eventlog.c
+++ b/source3/librpc/gen_ndr/cli_eventlog.c
@@ -20,7 +20,7 @@ NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLEAREVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ClearEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_ClearEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -49,7 +49,7 @@ NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_BACKUPEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_BackupEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_BackupEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -79,7 +79,7 @@ NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLOSEEVENTLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_CloseEventLog, (ndr_push_flags_fn_t)ndr_push_eventlog_CloseEventLog);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -109,7 +109,7 @@ NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_DEREGISTEREVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_DeregisterEventSource, (ndr_push_flags_fn_t)ndr_push_eventlog_DeregisterEventSource);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -139,7 +139,7 @@ NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETNUMRECORDS, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetNumRecords, (ndr_push_flags_fn_t)ndr_push_eventlog_GetNumRecords);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -169,7 +169,7 @@ NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETOLDESTRECORD, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetOldestRecord, (ndr_push_flags_fn_t)ndr_push_eventlog_GetOldestRecord);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -198,7 +198,7 @@ NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CHANGENOTIFY, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ChangeNotify, (ndr_push_flags_fn_t)ndr_push_eventlog_ChangeNotify);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -232,7 +232,7 @@ NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -262,7 +262,7 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTEREVENTSOURCEW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterEventSourceW, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterEventSourceW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -291,7 +291,7 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENBACKUPEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenBackupEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenBackupEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -324,7 +324,7 @@ NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_READEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReadEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_ReadEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -356,7 +356,7 @@ NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REPORTEVENTW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReportEventW, (ndr_push_flags_fn_t)ndr_push_eventlog_ReportEventW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -385,7 +385,7 @@ NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLEAREVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ClearEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_ClearEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -414,7 +414,7 @@ NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_BACKUPEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_BackupEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_BackupEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -443,7 +443,7 @@ NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -472,7 +472,7 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTEREVENTSOURCEA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterEventSourceA, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterEventSourceA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -501,7 +501,7 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENBACKUPEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenBackupEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenBackupEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -530,7 +530,7 @@ NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_READEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReadEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_ReadEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -559,7 +559,7 @@ NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REPORTEVENTA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReportEventA, (ndr_push_flags_fn_t)ndr_push_eventlog_ReportEventA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -588,7 +588,7 @@ NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTERCLUSTERSVC, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterClusterSvc, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterClusterSvc);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -617,7 +617,7 @@ NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_DEREGISTERCLUSTERSVC, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_DeregisterClusterSvc, (ndr_push_flags_fn_t)ndr_push_eventlog_DeregisterClusterSvc);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -646,7 +646,7 @@ NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_WRITECLUSTEREVENTS, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_WriteClusterEvents, (ndr_push_flags_fn_t)ndr_push_eventlog_WriteClusterEvents);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -675,7 +675,7 @@ NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETLOGINTORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetLogIntormation, (ndr_push_flags_fn_t)ndr_push_eventlog_GetLogIntormation);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -705,7 +705,7 @@ NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_FLUSHEVENTLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_FlushEventLog, (ndr_push_flags_fn_t)ndr_push_eventlog_FlushEventLog);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_initshutdown.c b/source3/librpc/gen_ndr/cli_initshutdown.c
index 02a4f9ad0a..06ae3fbe6d 100644
--- a/source3/librpc/gen_ndr/cli_initshutdown.c
+++ b/source3/librpc/gen_ndr/cli_initshutdown.c
@@ -23,7 +23,7 @@ NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_INIT, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_Init, (ndr_push_flags_fn_t)ndr_push_initshutdown_Init);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -53,7 +53,7 @@ NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_ABORT, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_Abort, (ndr_push_flags_fn_t)ndr_push_initshutdown_Abort);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -88,7 +88,7 @@ NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_INITEX, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_InitEx, (ndr_push_flags_fn_t)ndr_push_initshutdown_InitEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_lsa.c b/source3/librpc/gen_ndr/cli_lsa.c
index 063b78f7f6..bc786b61b4 100644
--- a/source3/librpc/gen_ndr/cli_lsa.c
+++ b/source3/librpc/gen_ndr/cli_lsa.c
@@ -19,7 +19,7 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, stru
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLOSE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_Close, (ndr_push_flags_fn_t)ndr_push_lsa_Close);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -50,7 +50,7 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, str
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_Delete, (ndr_push_flags_fn_t)ndr_push_lsa_Delete);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -82,7 +82,7 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMPRIVS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumPrivs, (ndr_push_flags_fn_t)ndr_push_lsa_EnumPrivs);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -115,7 +115,7 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QuerySecurity, (ndr_push_flags_fn_t)ndr_push_lsa_QuerySecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -147,7 +147,7 @@ NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSECOBJ, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSecObj, (ndr_push_flags_fn_t)ndr_push_lsa_SetSecObj);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -176,7 +176,7 @@ NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CHANGEPASSWORD, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_ChangePassword, (ndr_push_flags_fn_t)ndr_push_lsa_ChangePassword);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -208,7 +208,7 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_OpenPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -240,7 +240,7 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYINFOPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryInfoPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_QueryInfoPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -272,7 +272,7 @@ NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFOPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInfoPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_SetInfoPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -301,7 +301,7 @@ NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLEARAUDITLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_ClearAuditLog, (ndr_push_flags_fn_t)ndr_push_lsa_ClearAuditLog);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -333,7 +333,7 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATEACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateAccount, (ndr_push_flags_fn_t)ndr_push_lsa_CreateAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -366,7 +366,7 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccounts, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccounts);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -400,7 +400,7 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomain);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -433,7 +433,7 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMTRUSTDOM, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumTrustDom, (ndr_push_flags_fn_t)ndr_push_lsa_EnumTrustDom);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -470,7 +470,7 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -509,7 +509,7 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -546,7 +546,7 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATESECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateSecret, (ndr_push_flags_fn_t)ndr_push_lsa_CreateSecret);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -579,7 +579,7 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenAccount, (ndr_push_flags_fn_t)ndr_push_lsa_OpenAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -610,7 +610,7 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMPRIVSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumPrivsAccount, (ndr_push_flags_fn_t)ndr_push_lsa_EnumPrivsAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -644,7 +644,7 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ADDPRIVILEGESTOACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_AddPrivilegesToAccount, (ndr_push_flags_fn_t)ndr_push_lsa_AddPrivilegesToAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -676,7 +676,7 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TAL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_REMOVEPRIVILEGESFROMACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RemovePrivilegesFromAccount, (ndr_push_flags_fn_t)ndr_push_lsa_RemovePrivilegesFromAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -705,7 +705,7 @@ NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETQUOTASFORACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetQuotasForAccount, (ndr_push_flags_fn_t)ndr_push_lsa_GetQuotasForAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -734,7 +734,7 @@ NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETQUOTASFORACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetQuotasForAccount, (ndr_push_flags_fn_t)ndr_push_lsa_SetQuotasForAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -763,7 +763,7 @@ NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETSYSTEMACCESSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetSystemAccessAccount, (ndr_push_flags_fn_t)ndr_push_lsa_GetSystemAccessAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -792,7 +792,7 @@ NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSYSTEMACCESSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSystemAccessAccount, (ndr_push_flags_fn_t)ndr_push_lsa_SetSystemAccessAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -824,7 +824,7 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENTRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_OpenTrustedDomain);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -856,7 +856,7 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfo, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -888,7 +888,7 @@ NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TAL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFORMATIONTRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInformationTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_SetInformationTrustedDomain);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -920,7 +920,7 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenSecret, (ndr_push_flags_fn_t)ndr_push_lsa_OpenSecret);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -953,7 +953,7 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSecret, (ndr_push_flags_fn_t)ndr_push_lsa_SetSecret);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -987,7 +987,7 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QuerySecret, (ndr_push_flags_fn_t)ndr_push_lsa_QuerySecret);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1030,7 +1030,7 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivValue, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1062,7 +1062,7 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivName, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1098,7 +1098,7 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVDISPLAYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivDisplayName, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivDisplayName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1131,7 +1131,7 @@ NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETEOBJECT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_DeleteObject, (ndr_push_flags_fn_t)ndr_push_lsa_DeleteObject);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1162,7 +1162,7 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTSWITHUSERRIGHT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccountsWithUserRight, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccountsWithUserRight);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1194,7 +1194,7 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccountRights);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1227,7 +1227,7 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ADDACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_AddAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_AddAccountRights);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1260,7 +1260,7 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_REMOVEACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RemoveAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_RemoveAccountRights);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1292,7 +1292,7 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TAL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFOBYSID, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfoBySid, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfoBySid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1324,7 +1324,7 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETTRUSTEDDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetTrustedDomainInfo, (ndr_push_flags_fn_t)ndr_push_lsa_SetTrustedDomainInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1355,7 +1355,7 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETETRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_DeleteTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_DeleteTrustedDomain);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1384,7 +1384,7 @@ NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_STOREPRIVATEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_StorePrivateData, (ndr_push_flags_fn_t)ndr_push_lsa_StorePrivateData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1413,7 +1413,7 @@ NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_RETRIEVEPRIVATEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RetrievePrivateData, (ndr_push_flags_fn_t)ndr_push_lsa_RetrievePrivateData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1445,7 +1445,7 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_OpenPolicy2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1478,7 +1478,7 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETUSERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetUserName, (ndr_push_flags_fn_t)ndr_push_lsa_GetUserName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1515,7 +1515,7 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYINFOPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryInfoPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_QueryInfoPolicy2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1547,7 +1547,7 @@ NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFOPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInfoPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_SetInfoPolicy2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1579,7 +1579,7 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TA
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFOBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfoByName, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfoByName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1615,7 +1615,7 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETTRUSTEDDOMAININFOBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetTrustedDomainInfoByName, (ndr_push_flags_fn_t)ndr_push_lsa_SetTrustedDomainInfoByName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1647,7 +1647,7 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMTRUSTEDDOMAINSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumTrustedDomainsEx, (ndr_push_flags_fn_t)ndr_push_lsa_EnumTrustedDomainsEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1678,7 +1678,7 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAINEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomainEx, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomainEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1708,7 +1708,7 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLOSETRUSTEDDOMAINEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CloseTrustedDomainEx, (ndr_push_flags_fn_t)ndr_push_lsa_CloseTrustedDomainEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1740,7 +1740,7 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TA
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYDOMAININFORMATIONPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryDomainInformationPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_QueryDomainInformationPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1775,7 +1775,7 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETDOMAININFORMATIONPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetDomainInformationPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_SetDomainInformationPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1807,7 +1807,7 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENTRUSTEDDOMAINBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenTrustedDomainByName, (ndr_push_flags_fn_t)ndr_push_lsa_OpenTrustedDomainByName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1837,7 +1837,7 @@ NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_TESTCALL, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_TestCall, (ndr_push_flags_fn_t)ndr_push_lsa_TestCall);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1873,7 +1873,7 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids2, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1915,7 +1915,7 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames2, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1949,7 +1949,7 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAINEX2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomainEx2, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomainEx2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1978,7 +1978,7 @@ NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRWRITE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRWRITE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRWRITE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2007,7 +2007,7 @@ NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRREAD, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRREAD, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRREAD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2036,7 +2036,7 @@ NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRENUMERATE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRENUMERATE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRENUMERATE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2065,7 +2065,7 @@ NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TAL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRWRITEDOMAINCREDENTIALS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRWRITEDOMAINCREDENTIALS, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRWRITEDOMAINCREDENTIALS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2094,7 +2094,7 @@ NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRREADDOMAINCREDENTIALS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRREADDOMAINCREDENTIALS, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRREADDOMAINCREDENTIALS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2123,7 +2123,7 @@ NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRDELETE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRDELETE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRDELETE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2152,7 +2152,7 @@ NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRGETTARGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRGETTARGETINFO, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRGETTARGETINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2181,7 +2181,7 @@ NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRPROFILELOADED, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRPROFILELOADED, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRPROFILELOADED);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2218,7 +2218,7 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES3, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames3, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames3);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2252,7 +2252,7 @@ NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRGETSESSIONTYPES, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRGETSESSIONTYPES, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRGETSESSIONTYPES);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2281,7 +2281,7 @@ NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARREGISTERAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARREGISTERAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARREGISTERAUDITEVENT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2310,7 +2310,7 @@ NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARGENAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARGENAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARGENAUDITEVENT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2339,7 +2339,7 @@ NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARUNREGISTERAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARUNREGISTERAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARUNREGISTERAUDITEVENT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2368,7 +2368,7 @@ NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARQUERYFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARQUERYFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_lsa_LSARQUERYFORESTTRUSTINFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2397,7 +2397,7 @@ NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARSETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARSETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_lsa_LSARSETFORESTTRUSTINFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2426,7 +2426,7 @@ NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRRENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRRENAME, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRRENAME);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2461,7 +2461,7 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS3, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids3, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids3);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2502,7 +2502,7 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES4, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames4, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames4);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2536,7 +2536,7 @@ NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSAROPENPOLICYSCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSAROPENPOLICYSCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSAROPENPOLICYSCE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2565,7 +2565,7 @@ NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTREGISTERSECURITYEVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTREGISTERSECURITYEVENTSOURCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTREGISTERSECURITYEVENTSOURCE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2594,7 +2594,7 @@ NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -2623,7 +2623,7 @@ NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli, TALL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTREPORTSECURITYEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTREPORTSECURITYEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTREPORTSECURITYEVENT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_netlogon.c b/source3/librpc/gen_ndr/cli_netlogon.c
index 1f4e6c7867..661ef147fd 100644
--- a/source3/librpc/gen_ndr/cli_netlogon.c
+++ b/source3/librpc/gen_ndr/cli_netlogon.c
@@ -21,7 +21,7 @@ NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONUASLOGON, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonUasLogon, (ndr_push_flags_fn_t)ndr_push_netr_LogonUasLogon);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -56,7 +56,7 @@ NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONUASLOGOFF, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonUasLogoff, (ndr_push_flags_fn_t)ndr_push_netr_LogonUasLogoff);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -93,7 +93,7 @@ NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGON, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogon, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogon);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -133,7 +133,7 @@ NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGOFF, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogoff, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogoff);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -168,7 +168,7 @@ NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERREQCHALLENGE, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerReqChallenge, (ndr_push_flags_fn_t)ndr_push_netr_ServerReqChallenge);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -203,7 +203,7 @@ NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -239,7 +239,7 @@ NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERPASSWORDSET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerPasswordSet, (ndr_push_flags_fn_t)ndr_push_netr_ServerPasswordSet);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -276,7 +276,7 @@ NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASEDELTAS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseDeltas, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseDeltas);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -317,7 +317,7 @@ NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASESYNC, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseSync, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseSync);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -359,7 +359,7 @@ NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_ACCOUNTDELTAS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_AccountDeltas, (ndr_push_flags_fn_t)ndr_push_netr_AccountDeltas);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -401,7 +401,7 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_ACCOUNTSYNC, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_AccountSync, (ndr_push_flags_fn_t)ndr_push_netr_AccountSync);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -438,7 +438,7 @@ NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_GETDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_GetDcName, (ndr_push_flags_fn_t)ndr_push_netr_GetDcName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -471,7 +471,7 @@ NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -503,7 +503,7 @@ NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_GETANYDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_GetAnyDCName, (ndr_push_flags_fn_t)ndr_push_netr_GetAnyDCName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -537,7 +537,7 @@ NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl2, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -573,7 +573,7 @@ NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate2, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -612,7 +612,7 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASESYNC2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseSync2, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseSync2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -652,7 +652,7 @@ NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASEREDO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseRedo, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseRedo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -689,7 +689,7 @@ NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL2EX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl2Ex, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl2Ex);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -719,7 +719,7 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TA
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRENUMERATETRUSTEDDOMAINS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRENUMERATETRUSTEDDOMAINS, (ndr_push_flags_fn_t)ndr_push_netr_NETRENUMERATETRUSTEDDOMAINS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -753,7 +753,7 @@ NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCName, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -785,7 +785,7 @@ NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONDUMMYROUTINE1, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONDUMMYROUTINE1, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONDUMMYROUTINE1);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -814,7 +814,7 @@ NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONSETSERVICEBITS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONSETSERVICEBITS, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONSETSERVICEBITS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -843,7 +843,7 @@ NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONGETTRUSTRID, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONGETTRUSTRID, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONGETTRUSTRID);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -872,7 +872,7 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONCOMPUTESERVERDIGEST, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONCOMPUTESERVERDIGEST, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONCOMPUTESERVERDIGEST);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -901,7 +901,7 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONCOMPUTECLIENTDIGEST, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONCOMPUTECLIENTDIGEST, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONCOMPUTECLIENTDIGEST);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -936,7 +936,7 @@ NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE3, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate3, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate3);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -973,7 +973,7 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAMEEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCNameEx, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCNameEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1006,7 +1006,7 @@ NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETSITENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetSiteName, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetSiteName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1042,7 +1042,7 @@ NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONGETDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonGetDomainInfo, (ndr_push_flags_fn_t)ndr_push_netr_LogonGetDomainInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1079,7 +1079,7 @@ NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERPASSWORDSET2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerPasswordSet2, (ndr_push_flags_fn_t)ndr_push_netr_ServerPasswordSet2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1109,7 +1109,7 @@ NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERPASSWORDGET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERPASSWORDGET, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERPASSWORDGET);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1138,7 +1138,7 @@ NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONSENDTOSAM, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONSENDTOSAM, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONSENDTOSAM);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1167,7 +1167,7 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRADDRESSTOSITENAMESW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRADDRESSTOSITENAMESW, (ndr_push_flags_fn_t)ndr_push_netr_DSRADDRESSTOSITENAMESW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1203,7 +1203,7 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAMEEX2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCNameEx2, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCNameEx2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1235,7 +1235,7 @@ NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1264,7 +1264,7 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRENUMERATETRUSTEDDOMAINSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRENUMERATETRUSTEDDOMAINSEX, (ndr_push_flags_fn_t)ndr_push_netr_NETRENUMERATETRUSTEDDOMAINSEX);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1293,7 +1293,7 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRADDRESSTOSITENAMESEXW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRADDRESSTOSITENAMESEXW, (ndr_push_flags_fn_t)ndr_push_netr_DSRADDRESSTOSITENAMESEXW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1322,7 +1322,7 @@ NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCSITECOVERAGEW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRGETDCSITECOVERAGEW, (ndr_push_flags_fn_t)ndr_push_netr_DSRGETDCSITECOVERAGEW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1357,7 +1357,7 @@ NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGONEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogonEx, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogonEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1391,7 +1391,7 @@ NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRENUMERATEDOMAINTRUSTS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsrEnumerateDomainTrusts, (ndr_push_flags_fn_t)ndr_push_netr_DsrEnumerateDomainTrusts);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1422,7 +1422,7 @@ NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TA
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRDEREGISTERDNSHOSTRECORDS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRDEREGISTERDNSHOSTRECORDS, (ndr_push_flags_fn_t)ndr_push_netr_DSRDEREGISTERDNSHOSTRECORDS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1451,7 +1451,7 @@ NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TA
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERTRUSTPASSWORDSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERTRUSTPASSWORDSGET, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERTRUSTPASSWORDSGET);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1480,7 +1480,7 @@ NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRGETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_netr_DSRGETFORESTTRUSTINFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1509,7 +1509,7 @@ NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRGETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRGETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_netr_NETRGETFORESTTRUSTINFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1546,7 +1546,7 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGONWITHFLAGS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogonWithFlags, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogonWithFlags);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1581,7 +1581,7 @@ NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERGETTRUSTINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERGETTRUSTINFO, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERGETTRUSTINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_srvsvc.c b/source3/librpc/gen_ndr/cli_srvsvc.c
index 8470c7b3ac..d79474b6fe 100644
--- a/source3/librpc/gen_ndr/cli_srvsvc.c
+++ b/source3/librpc/gen_ndr/cli_srvsvc.c
@@ -23,7 +23,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -61,7 +61,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -94,7 +94,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVCONTROL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevControl, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevControl);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -129,7 +129,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -168,7 +168,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -203,7 +203,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQSetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -237,7 +237,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQPURGE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQPurge, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQPurge);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -269,7 +269,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQPURGESELF, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQPurgeSelf, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQPurgeSelf);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -304,7 +304,7 @@ NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCONNENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetConnEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetConnEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -346,7 +346,7 @@ NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETFILEENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -384,7 +384,7 @@ NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETFILEGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -416,7 +416,7 @@ NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETFILECLOSE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileClose, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileClose);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -452,7 +452,7 @@ NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSESSENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSessEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSessEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -490,7 +490,7 @@ NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSESSDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSessDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSessDel);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -523,7 +523,7 @@ NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREADD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareAdd, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareAdd);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -560,7 +560,7 @@ NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREENUMALL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareEnumAll, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareEnumAll);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -598,7 +598,7 @@ NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -633,7 +633,7 @@ NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHARESETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareSetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -668,7 +668,7 @@ NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDel);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -700,7 +700,7 @@ NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREDELSTICKY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelSticky, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelSticky);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -731,7 +731,7 @@ NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHARECHECK, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareCheck, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareCheck);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -763,7 +763,7 @@ NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSRVGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -797,7 +797,7 @@ NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSRVSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvSetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -834,7 +834,7 @@ NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETDISKENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetDiskEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetDiskEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -872,7 +872,7 @@ NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSERVERSTATISTICSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerStatisticsGet, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerStatisticsGet);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -905,7 +905,7 @@ NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETTRANSPORTADD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportAdd, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportAdd);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -939,7 +939,7 @@ NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETTRANSPORTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -977,7 +977,7 @@ NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETTRANSPORTDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportDel);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1007,7 +1007,7 @@ NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETREMOTETOD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetRemoteTOD, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetRemoteTOD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1043,7 +1043,7 @@ NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSETSERVICEBITS, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSetServiceBits, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSetServiceBits);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1075,7 +1075,7 @@ NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETPATHTYPE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathType, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathType);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1111,7 +1111,7 @@ NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETPATHCANONICALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathCanonicalize, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathCanonicalize);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1123,7 +1123,7 @@ NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_C
}
/* Return variables */
- *can_path = *r.out.can_path;
+ memcpy(can_path, r.out.can_path, r.in.maxbuf);
*pathtype = *r.out.pathtype;
/* Return result */
@@ -1147,7 +1147,7 @@ NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETPATHCOMPARE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathCompare, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathCompare);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1180,7 +1180,7 @@ NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETNAMEVALIDATE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetNameValidate, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetNameValidate);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1209,7 +1209,7 @@ NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRPRNAMECANONICALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRPRNAMECANONICALIZE, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRPRNAMECANONICALIZE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1243,7 +1243,7 @@ NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETPRNAMECOMPARE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPRNameCompare, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPRNameCompare);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1277,7 +1277,7 @@ NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1315,7 +1315,7 @@ NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREDELSTART, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelStart, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelStart);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1348,7 +1348,7 @@ NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREDELCOMMIT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelCommit, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelCommit);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1384,7 +1384,7 @@ NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETGETFILESECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetGetFileSecurity, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetGetFileSecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1421,7 +1421,7 @@ NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSETFILESECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSetFileSecurity, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSetFileSecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1453,7 +1453,7 @@ NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSERVERTRANSPORTADDEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerTransportAddEx, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerTransportAddEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1488,7 +1488,7 @@ NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TA
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSERVERSETSERVICEBITSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerSetServiceBitsEx, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerSetServiceBitsEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1517,7 +1517,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSGETVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSGETVERSION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSGETVERSION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1546,7 +1546,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSCREATELOCALPARTITION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSCREATELOCALPARTITION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSCREATELOCALPARTITION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1575,7 +1575,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSDELETELOCALPARTITION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSDELETELOCALPARTITION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSDELETELOCALPARTITION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1604,7 +1604,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSSETLOCALVOLUMESTATE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSSETLOCALVOLUMESTATE, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSSETLOCALVOLUMESTATE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1633,7 +1633,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSSETSERVERINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSSETSERVERINFO, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSSETSERVERINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1662,7 +1662,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSCREATEEXITPOINT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSCREATEEXITPOINT, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSCREATEEXITPOINT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1691,7 +1691,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSDELETEEXITPOINT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSDELETEEXITPOINT, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSDELETEEXITPOINT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1720,7 +1720,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSMODIFYPREFIX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSMODIFYPREFIX, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSMODIFYPREFIX);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1749,7 +1749,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSFIXLOCALVOLUME, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSFIXLOCALVOLUME, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSFIXLOCALVOLUME);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1778,7 +1778,7 @@ NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSMANAGERREPORTSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSMANAGERREPORTSITEINFO, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSMANAGERREPORTSITEINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1807,7 +1807,7 @@ NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli, TAL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRSERVERTRANSPORTDELEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRSERVERTRANSPORTDELEX, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRSERVERTRANSPORTDELEX);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_svcctl.c b/source3/librpc/gen_ndr/cli_svcctl.c
index a3b4df4992..5fb6f68b62 100644
--- a/source3/librpc/gen_ndr/cli_svcctl.c
+++ b/source3/librpc/gen_ndr/cli_svcctl.c
@@ -19,7 +19,7 @@ NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CLOSESERVICEHANDLE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_CloseServiceHandle, (ndr_push_flags_fn_t)ndr_push_svcctl_CloseServiceHandle);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -51,7 +51,7 @@ NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CONTROLSERVICE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ControlService, (ndr_push_flags_fn_t)ndr_push_svcctl_ControlService);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -82,7 +82,7 @@ NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_DELETESERVICE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_DeleteService, (ndr_push_flags_fn_t)ndr_push_svcctl_DeleteService);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -112,7 +112,7 @@ NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_LOCKSERVICEDATABASE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_LockServiceDatabase, (ndr_push_flags_fn_t)ndr_push_svcctl_LockServiceDatabase);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -142,7 +142,7 @@ NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICEOBJECTSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceObjectSecurity, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceObjectSecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -171,7 +171,7 @@ NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli, TAL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SETSERVICEOBJECTSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SetServiceObjectSecurity, (ndr_push_flags_fn_t)ndr_push_svcctl_SetServiceObjectSecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -201,7 +201,7 @@ NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICESTATUS, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceStatus, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceStatus);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -231,7 +231,7 @@ NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SETSERVICESTATUS, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SetServiceStatus, (ndr_push_flags_fn_t)ndr_push_svcctl_SetServiceStatus);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -261,7 +261,7 @@ NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_UNLOCKSERVICEDATABASE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_UnlockServiceDatabase, (ndr_push_flags_fn_t)ndr_push_svcctl_UnlockServiceDatabase);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -291,7 +291,7 @@ NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_NOTIFYBOOTCONFIGSTATUS, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_NotifyBootConfigStatus, (ndr_push_flags_fn_t)ndr_push_svcctl_NotifyBootConfigStatus);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -324,7 +324,7 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SCSETSERVICEBITSW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SCSetServiceBitsW, (ndr_push_flags_fn_t)ndr_push_svcctl_SCSetServiceBitsW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -363,7 +363,7 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CHANGESERVICECONFIGW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ChangeServiceConfigW, (ndr_push_flags_fn_t)ndr_push_svcctl_ChangeServiceConfigW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -408,7 +408,7 @@ NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CREATESERVICEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_CreateServiceW, (ndr_push_flags_fn_t)ndr_push_svcctl_CreateServiceW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -444,7 +444,7 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMDEPENDENTSERVICESW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumDependentServicesW, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumDependentServicesW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -483,7 +483,7 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMSERVICESSTATUSW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumServicesStatusW, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumServicesStatusW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -495,7 +495,7 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_C
}
/* Return variables */
- *service = *r.out.service;
+ memcpy(service, r.out.service, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
*services_returned = *r.out.services_returned;
if ( resume_handle ) {
@@ -521,7 +521,7 @@ NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_OPENSCMANAGERW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_OpenSCManagerW, (ndr_push_flags_fn_t)ndr_push_svcctl_OpenSCManagerW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -554,7 +554,7 @@ NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_OPENSERVICEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_OpenServiceW, (ndr_push_flags_fn_t)ndr_push_svcctl_OpenServiceW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -586,7 +586,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICECONFIGW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceConfigW, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceConfigW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -598,7 +598,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_C
}
/* Return variables */
- *query = *r.out.query;
+ memcpy(query, r.out.query, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -619,7 +619,7 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICELOCKSTATUSW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceLockStatusW, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceLockStatusW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -653,7 +653,7 @@ NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_STARTSERVICEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_StartServiceW, (ndr_push_flags_fn_t)ndr_push_svcctl_StartServiceW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -685,7 +685,7 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETSERVICEDISPLAYNAMEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetServiceDisplayNameW, (ndr_push_flags_fn_t)ndr_push_svcctl_GetServiceDisplayNameW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -721,7 +721,7 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETSERVICEKEYNAMEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetServiceKeyNameW, (ndr_push_flags_fn_t)ndr_push_svcctl_GetServiceKeyNameW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -758,7 +758,7 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SCSETSERVICEBITSA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SCSetServiceBitsA, (ndr_push_flags_fn_t)ndr_push_svcctl_SCSetServiceBitsA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -797,7 +797,7 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CHANGESERVICECONFIGA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ChangeServiceConfigA, (ndr_push_flags_fn_t)ndr_push_svcctl_ChangeServiceConfigA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -839,7 +839,7 @@ NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CREATESERVICEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_CreateServiceA, (ndr_push_flags_fn_t)ndr_push_svcctl_CreateServiceA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -874,7 +874,7 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMDEPENDENTSERVICESA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumDependentServicesA, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumDependentServicesA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -913,7 +913,7 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMSERVICESSTATUSA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumServicesStatusA, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumServicesStatusA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -925,7 +925,7 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_C
}
/* Return variables */
- *service = *r.out.service;
+ memcpy(service, r.out.service, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
*services_returned = *r.out.services_returned;
if ( resume_handle ) {
@@ -951,7 +951,7 @@ NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_OPENSCMANAGERA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_OpenSCManagerA, (ndr_push_flags_fn_t)ndr_push_svcctl_OpenSCManagerA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -984,7 +984,7 @@ NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_OPENSERVICEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_OpenServiceA, (ndr_push_flags_fn_t)ndr_push_svcctl_OpenServiceA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1015,7 +1015,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICECONFIGA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceConfigA, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceConfigA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1027,7 +1027,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_C
}
/* Return variables */
- *query = *r.out.query;
+ memcpy(query, r.out.query, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -1048,7 +1048,7 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICELOCKSTATUSA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceLockStatusA, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceLockStatusA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1082,7 +1082,7 @@ NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *me
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_STARTSERVICEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_StartServiceA, (ndr_push_flags_fn_t)ndr_push_svcctl_StartServiceA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1114,7 +1114,7 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETSERVICEDISPLAYNAMEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetServiceDisplayNameA, (ndr_push_flags_fn_t)ndr_push_svcctl_GetServiceDisplayNameA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1150,7 +1150,7 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETSERVICEKEYNAMEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetServiceKeyNameA, (ndr_push_flags_fn_t)ndr_push_svcctl_GetServiceKeyNameA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1183,7 +1183,7 @@ NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETCURRENTGROUPESTATEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetCurrentGroupeStateW, (ndr_push_flags_fn_t)ndr_push_svcctl_GetCurrentGroupeStateW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1212,7 +1212,7 @@ NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMSERVICEGROUPW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumServiceGroupW, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumServiceGroupW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1244,7 +1244,7 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CHANGESERVICECONFIG2A, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ChangeServiceConfig2A, (ndr_push_flags_fn_t)ndr_push_svcctl_ChangeServiceConfig2A);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1276,7 +1276,7 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CHANGESERVICECONFIG2W, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ChangeServiceConfig2W, (ndr_push_flags_fn_t)ndr_push_svcctl_ChangeServiceConfig2W);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1308,7 +1308,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICECONFIG2A, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceConfig2A, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceConfig2A);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1320,7 +1320,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_
}
/* Return variables */
- *buffer = *r.out.buffer;
+ memcpy(buffer, r.out.buffer, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -1342,7 +1342,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICECONFIG2W, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceConfig2W, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceConfig2W);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1354,7 +1354,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_
}
/* Return variables */
- *buffer = *r.out.buffer;
+ memcpy(buffer, r.out.buffer, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -1376,7 +1376,7 @@ NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICESTATUSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceStatusEx, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceStatusEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1388,7 +1388,7 @@ NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_
}
/* Return variables */
- *buffer = *r.out.buffer;
+ memcpy(buffer, r.out.buffer, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -1413,7 +1413,7 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_ENUMSERVICESSTATUSEXA, &r, (ndr_pull_flags_fn_t)ndr_pull_EnumServicesStatusExA, (ndr_push_flags_fn_t)ndr_push_EnumServicesStatusExA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1425,7 +1425,7 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m
}
/* Return variables */
- *services = *r.out.services;
+ memcpy(services, r.out.services, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
*service_returned = *r.out.service_returned;
if ( resume_handle ) {
@@ -1455,7 +1455,7 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_ENUMSERVICESSTATUSEXW, &r, (ndr_pull_flags_fn_t)ndr_pull_EnumServicesStatusExW, (ndr_push_flags_fn_t)ndr_push_EnumServicesStatusExW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1467,7 +1467,7 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m
}
/* Return variables */
- *services = *r.out.services;
+ memcpy(services, r.out.services, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
*service_returned = *r.out.service_returned;
if ( resume_handle ) {
@@ -1491,7 +1491,7 @@ NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SCSENDTSMESSAGE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SCSendTSMessage, (ndr_push_flags_fn_t)ndr_push_svcctl_SCSendTSMessage);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_unixinfo.c b/source3/librpc/gen_ndr/cli_unixinfo.c
index d9a9b1fe87..687ba7e5c1 100644
--- a/source3/librpc/gen_ndr/cli_unixinfo.c
+++ b/source3/librpc/gen_ndr/cli_unixinfo.c
@@ -19,7 +19,7 @@ NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_SIDTOUID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_SidToUid, (ndr_push_flags_fn_t)ndr_push_unixinfo_SidToUid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -50,7 +50,7 @@ NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_UIDTOSID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_UidToSid, (ndr_push_flags_fn_t)ndr_push_unixinfo_UidToSid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -81,7 +81,7 @@ NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_SIDTOGID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_SidToGid, (ndr_push_flags_fn_t)ndr_push_unixinfo_SidToGid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -112,7 +112,7 @@ NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_GIDTOSID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_GidToSid, (ndr_push_flags_fn_t)ndr_push_unixinfo_GidToSid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -144,7 +144,7 @@ NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_GETPWUID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_GetPWUid, (ndr_push_flags_fn_t)ndr_push_unixinfo_GetPWUid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -157,7 +157,7 @@ NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* Return variables */
*count = *r.out.count;
- *infos = *r.out.infos;
+ memcpy(infos, r.out.infos, *r.in.count);
/* Return result */
return r.out.result;
diff --git a/source3/librpc/gen_ndr/cli_winreg.c b/source3/librpc/gen_ndr/cli_winreg.c
index 79b1a2d93a..c7eebe8ebf 100644
--- a/source3/librpc/gen_ndr/cli_winreg.c
+++ b/source3/librpc/gen_ndr/cli_winreg.c
@@ -20,7 +20,7 @@ NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCR, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCR, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCR);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -52,7 +52,7 @@ NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCU, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCU, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCU);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -84,7 +84,7 @@ NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKLM, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKLM, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKLM);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -116,7 +116,7 @@ NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPD, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPD, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -148,7 +148,7 @@ NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKU, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKU, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKU);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -179,7 +179,7 @@ NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_CLOSEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_CloseKey, (ndr_push_flags_fn_t)ndr_push_winreg_CloseKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -216,7 +216,7 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_CREATEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_CreateKey, (ndr_push_flags_fn_t)ndr_push_winreg_CreateKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -251,7 +251,7 @@ NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_DELETEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_DeleteKey, (ndr_push_flags_fn_t)ndr_push_winreg_DeleteKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -282,7 +282,7 @@ NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_DELETEVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_DeleteValue, (ndr_push_flags_fn_t)ndr_push_winreg_DeleteValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -316,7 +316,7 @@ NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ENUMKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_EnumKey, (ndr_push_flags_fn_t)ndr_push_winreg_EnumKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -340,7 +340,7 @@ NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *data_size, uint32_t *value_length)
+NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length)
{
struct winreg_EnumValue r;
NTSTATUS status;
@@ -351,15 +351,15 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.name = name;
r.in.type = type;
r.in.data = data;
- r.in.data_size = data_size;
- r.in.value_length = value_length;
+ r.in.size = size;
+ r.in.length = length;
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_EnumValue, &r);
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ENUMVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_EnumValue, (ndr_push_flags_fn_t)ndr_push_winreg_EnumValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -375,12 +375,14 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
if ( type ) {
*type = *r.out.type;
}
- *data = *r.out.data;
- if ( data_size ) {
- *data_size = *r.out.data_size;
+ if ( data ) {
+ *data = *r.out.data;
}
- if ( value_length ) {
- *value_length = *r.out.value_length;
+ if ( size ) {
+ *size = *r.out.size;
+ }
+ if ( length ) {
+ *length = *r.out.length;
}
/* Return result */
@@ -400,7 +402,7 @@ NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_FLUSHKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_FlushKey, (ndr_push_flags_fn_t)ndr_push_winreg_FlushKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -432,7 +434,7 @@ NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_GETKEYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_GetKeySecurity, (ndr_push_flags_fn_t)ndr_push_winreg_GetKeySecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -465,7 +467,7 @@ NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_LOADKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_LoadKey, (ndr_push_flags_fn_t)ndr_push_winreg_LoadKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -501,7 +503,7 @@ NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_NOTIFYCHANGEKEYVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_NotifyChangeKeyValue, (ndr_push_flags_fn_t)ndr_push_winreg_NotifyChangeKeyValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -534,7 +536,7 @@ NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenKey, (ndr_push_flags_fn_t)ndr_push_winreg_OpenKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -566,7 +568,7 @@ NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYINFOKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryInfoKey, (ndr_push_flags_fn_t)ndr_push_winreg_QueryInfoKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -610,7 +612,7 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryValue, (ndr_push_flags_fn_t)ndr_push_winreg_QueryValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -651,7 +653,7 @@ NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_REPLACEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_ReplaceKey, (ndr_push_flags_fn_t)ndr_push_winreg_ReplaceKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -683,7 +685,7 @@ NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_RESTOREKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_RestoreKey, (ndr_push_flags_fn_t)ndr_push_winreg_RestoreKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -715,7 +717,7 @@ NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SAVEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SaveKey, (ndr_push_flags_fn_t)ndr_push_winreg_SaveKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -747,7 +749,7 @@ NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SETKEYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SetKeySecurity, (ndr_push_flags_fn_t)ndr_push_winreg_SetKeySecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -781,7 +783,7 @@ NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SETVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SetValue, (ndr_push_flags_fn_t)ndr_push_winreg_SetValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -810,7 +812,7 @@ NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_UNLOADKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_UnLoadKey, (ndr_push_flags_fn_t)ndr_push_winreg_UnLoadKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -844,7 +846,7 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_INITIATESYSTEMSHUTDOWN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_InitiateSystemShutdown, (ndr_push_flags_fn_t)ndr_push_winreg_InitiateSystemShutdown);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -874,7 +876,7 @@ NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ABORTSYSTEMSHUTDOWN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_AbortSystemShutdown, (ndr_push_flags_fn_t)ndr_push_winreg_AbortSystemShutdown);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -904,7 +906,7 @@ NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_GETVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_GetVersion, (ndr_push_flags_fn_t)ndr_push_winreg_GetVersion);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -936,7 +938,7 @@ NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCC, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCC, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCC);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -968,7 +970,7 @@ NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKDD, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKDD, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKDD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1003,7 +1005,7 @@ NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYMULTIPLEVALUES, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryMultipleValues, (ndr_push_flags_fn_t)ndr_push_winreg_QueryMultipleValues);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1043,7 +1045,7 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TAL
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_INITIATESYSTEMSHUTDOWNEX, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_InitiateSystemShutdownEx, (ndr_push_flags_fn_t)ndr_push_winreg_InitiateSystemShutdownEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1072,7 +1074,7 @@ NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SAVEKEYEX, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SaveKeyEx, (ndr_push_flags_fn_t)ndr_push_winreg_SaveKeyEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1103,7 +1105,7 @@ NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPT, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPT, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1135,7 +1137,7 @@ NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPN, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -1165,7 +1167,7 @@ NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYMULTIPLEVALUES2, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryMultipleValues2, (ndr_push_flags_fn_t)ndr_push_winreg_QueryMultipleValues2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_winreg.h b/source3/librpc/gen_ndr/cli_winreg.h
index ef49b8037f..c269e38c2d 100644
--- a/source3/librpc/gen_ndr/cli_winreg.h
+++ b/source3/librpc/gen_ndr/cli_winreg.h
@@ -11,7 +11,7 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String key);
NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value);
NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_StringBuf *name, struct winreg_StringBuf *keyclass, NTTIME *last_changed_time);
-NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *data_size, uint32_t *value_length);
+NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length);
NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct KeySecurityData *sd);
NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *keyname, struct winreg_String *filename);
diff --git a/source3/librpc/gen_ndr/cli_wkssvc.c b/source3/librpc/gen_ndr/cli_wkssvc.c
index 918851a15e..18d171827e 100644
--- a/source3/librpc/gen_ndr/cli_wkssvc.c
+++ b/source3/librpc/gen_ndr/cli_wkssvc.c
@@ -20,7 +20,7 @@ NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTAGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaGetInfo, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -54,7 +54,7 @@ NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTASETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaSetInfo, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaSetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -89,7 +89,7 @@ NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTAENUMUSERS, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaEnumUsers, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaEnumUsers);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -126,7 +126,7 @@ NTSTATUS rpccli_WKSSVC_NETRWKSTAUSERGETINFO(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTAUSERGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTAUSERGETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTAUSERGETINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -155,7 +155,7 @@ NTSTATUS rpccli_WKSSVC_NETRWKSTAUSERSETINFO(struct rpc_pipe_client *cli, TALLOC_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTAUSERSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTAUSERSETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTAUSERSETINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -189,7 +189,7 @@ NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTATRANSPORTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaTransportEnum, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaTransportEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -224,7 +224,7 @@ NTSTATUS rpccli_WKSSVC_NETRWKSTATRANSPORTADD(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTATRANSPORTADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTATRANSPORTADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTATRANSPORTADD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -253,7 +253,7 @@ NTSTATUS rpccli_WKSSVC_NETRWKSTATRANSPORTDEL(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTATRANSPORTDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTATRANSPORTDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTATRANSPORTDEL);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -282,7 +282,7 @@ NTSTATUS rpccli_WKSSVC_NETRUSEADD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEADD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -311,7 +311,7 @@ NTSTATUS rpccli_WKSSVC_NETRUSEGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEGETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEGETINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -340,7 +340,7 @@ NTSTATUS rpccli_WKSSVC_NETRUSEDEL(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEDEL);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -369,7 +369,7 @@ NTSTATUS rpccli_WKSSVC_NETRUSEENUM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEENUM, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEENUM);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -398,7 +398,7 @@ NTSTATUS rpccli_WKSSVC_NETRMESSAGEBUFFERSEND(struct rpc_pipe_client *cli, TALLOC
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRMESSAGEBUFFERSEND, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRMESSAGEBUFFERSEND, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRMESSAGEBUFFERSEND);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -427,7 +427,7 @@ NTSTATUS rpccli_WKSSVC_NETRWORKSTATIONSTATISTICSGET(struct rpc_pipe_client *cli,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWORKSTATIONSTATISTICSGET, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWORKSTATIONSTATISTICSGET);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -456,7 +456,7 @@ NTSTATUS rpccli_WKSSVC_NETRLOGONDOMAINNAMEADD(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRLOGONDOMAINNAMEADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRLOGONDOMAINNAMEADD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -485,7 +485,7 @@ NTSTATUS rpccli_WKSSVC_NETRLOGONDOMAINNAMEDEL(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRLOGONDOMAINNAMEDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRLOGONDOMAINNAMEDEL);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -514,7 +514,7 @@ NTSTATUS rpccli_WKSSVC_NETRJOINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *m
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRJOINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRJOINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRJOINDOMAIN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -543,7 +543,7 @@ NTSTATUS rpccli_WKSSVC_NETRUNJOINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUNJOINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUNJOINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUNJOINDOMAIN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -572,7 +572,7 @@ NTSTATUS rpccli_WKSSVC_NETRRENAMEMACHINEINDOMAIN(struct rpc_pipe_client *cli, TA
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRRENAMEMACHINEINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRRENAMEMACHINEINDOMAIN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -601,7 +601,7 @@ NTSTATUS rpccli_WKSSVC_NETRVALIDATENAME(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRVALIDATENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRVALIDATENAME, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRVALIDATENAME);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -630,7 +630,7 @@ NTSTATUS rpccli_WKSSVC_NETRGETJOININFORMATION(struct rpc_pipe_client *cli, TALLO
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOININFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOININFORMATION, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOININFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -659,7 +659,7 @@ NTSTATUS rpccli_WKSSVC_NETRGETJOINABLEOUS(struct rpc_pipe_client *cli, TALLOC_CT
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOINABLEOUS, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOINABLEOUS, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOINABLEOUS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -694,7 +694,7 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRJOINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrJoinDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrJoinDomain2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -727,7 +727,7 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUNJOINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrUnjoinDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrUnjoinDomain2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -761,7 +761,7 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrRenameMachineInDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrRenameMachineInDomain2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -790,7 +790,7 @@ NTSTATUS rpccli_WKSSVC_NETRVALIDATENAME2(struct rpc_pipe_client *cli, TALLOC_CTX
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRVALIDATENAME2, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRVALIDATENAME2, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRVALIDATENAME2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -819,7 +819,7 @@ NTSTATUS rpccli_WKSSVC_NETRGETJOINABLEOUS2(struct rpc_pipe_client *cli, TALLOC_C
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOINABLEOUS2, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOINABLEOUS2, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOINABLEOUS2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -853,7 +853,7 @@ NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRADDALTERNATECOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrAddAlternateComputerName, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrAddAlternateComputerName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -887,7 +887,7 @@ NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *c
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrRemoveAlternateComputerName, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrRemoveAlternateComputerName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -916,7 +916,7 @@ NTSTATUS rpccli_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRSETPRIMARYCOMPUTERNAME);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -945,7 +945,7 @@ NTSTATUS rpccli_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct rpc_pipe_client *cli, T
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRENUMERATECOMPUTERNAMES, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRENUMERATECOMPUTERNAMES, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRENUMERATECOMPUTERNAMES);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/dfs.h b/source3/librpc/gen_ndr/dfs.h
index bd4dc5ed12..1cfea4b42b 100644
--- a/source3/librpc/gen_ndr/dfs.h
+++ b/source3/librpc/gen_ndr/dfs.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_netdfs
#define _HEADER_netdfs
@@ -185,8 +187,8 @@ struct dfs_Enum {
struct {
uint32_t level;
uint32_t bufsize;
- struct dfs_EnumStruct *info;/* [unique] */
uint32_t *unknown;/* [unique] */
+ struct dfs_EnumStruct *info;/* [unique] */
uint32_t *total;/* [unique] */
} in;
diff --git a/source3/librpc/gen_ndr/echo.h b/source3/librpc/gen_ndr/echo.h
index d41853f8a1..6c7f918814 100644
--- a/source3/librpc/gen_ndr/echo.h
+++ b/source3/librpc/gen_ndr/echo.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_rpcecho
#define _HEADER_rpcecho
diff --git a/source3/librpc/gen_ndr/eventlog.h b/source3/librpc/gen_ndr/eventlog.h
index 6b5bdf1b89..656dadcc6c 100644
--- a/source3/librpc/gen_ndr/eventlog.h
+++ b/source3/librpc/gen_ndr/eventlog.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/lsa.h"
#include "librpc/gen_ndr/security.h"
#ifndef _HEADER_eventlog
diff --git a/source3/librpc/gen_ndr/initshutdown.h b/source3/librpc/gen_ndr/initshutdown.h
index c0590c0462..665d435919 100644
--- a/source3/librpc/gen_ndr/initshutdown.h
+++ b/source3/librpc/gen_ndr/initshutdown.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_initshutdown
#define _HEADER_initshutdown
diff --git a/source3/librpc/gen_ndr/lsa.h b/source3/librpc/gen_ndr/lsa.h
index 5d86d81c34..96d710647c 100644
--- a/source3/librpc/gen_ndr/lsa.h
+++ b/source3/librpc/gen_ndr/lsa.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/security.h"
#ifndef _HEADER_lsarpc
#define _HEADER_lsarpc
@@ -481,13 +483,13 @@ struct lsa_Delete {
struct lsa_EnumPrivs {
struct {
struct policy_handle *handle;/* [ref] */
- uint32_t *resume_handle;/* [ref] */
uint32_t max_count;
+ uint32_t *resume_handle;/* [ref] */
} in;
struct {
- uint32_t *resume_handle;/* [ref] */
struct lsa_PrivArray *privs;/* [ref] */
+ uint32_t *resume_handle;/* [ref] */
NTSTATUS result;
} out;
@@ -587,13 +589,13 @@ struct lsa_CreateAccount {
struct lsa_EnumAccounts {
struct {
struct policy_handle *handle;/* [ref] */
- uint32_t *resume_handle;/* [ref] */
uint32_t num_entries;/* [range(0 8192)] */
+ uint32_t *resume_handle;/* [ref] */
} in;
struct {
- uint32_t *resume_handle;/* [ref] */
struct lsa_SidArray *sids;/* [ref] */
+ uint32_t *resume_handle;/* [ref] */
NTSTATUS result;
} out;
@@ -618,13 +620,13 @@ struct lsa_CreateTrustedDomain {
struct lsa_EnumTrustDom {
struct {
struct policy_handle *handle;/* [ref] */
- uint32_t *resume_handle;/* [ref] */
uint32_t max_size;/* [range(0 1000)] */
+ uint32_t *resume_handle;/* [ref] */
} in;
struct {
- uint32_t *resume_handle;/* [ref] */
struct lsa_DomainList *domains;/* [ref] */
+ uint32_t *resume_handle;/* [ref] */
NTSTATUS result;
} out;
@@ -636,8 +638,8 @@ struct lsa_LookupNames {
struct policy_handle *handle;/* [ref] */
uint32_t num_names;/* [range(0 1000)] */
struct lsa_String *names;/* [size_is(num_names)] */
- struct lsa_TransSidArray *sids;/* [ref] */
uint16_t level;
+ struct lsa_TransSidArray *sids;/* [ref] */
uint32_t *count;/* [ref] */
} in;
@@ -655,8 +657,8 @@ struct lsa_LookupSids {
struct {
struct policy_handle *handle;/* [ref] */
struct lsa_SidArray *sids;/* [ref] */
- struct lsa_TransNameArray *names;/* [ref] */
uint16_t level;
+ struct lsa_TransNameArray *names;/* [ref] */
uint32_t *count;/* [ref] */
} in;
@@ -890,8 +892,8 @@ struct lsa_LookupPrivDisplayName {
struct {
struct policy_handle *handle;/* [ref] */
struct lsa_String *name;/* [ref] */
- uint16_t *language_id;/* [ref] */
uint16_t unknown;
+ uint16_t *language_id;/* [ref] */
} in;
struct {
@@ -1106,13 +1108,13 @@ struct lsa_SetTrustedDomainInfoByName {
struct lsa_EnumTrustedDomainsEx {
struct {
struct policy_handle *handle;/* [ref] */
- uint32_t *resume_handle;/* [ref] */
uint32_t max_size;
+ uint32_t *resume_handle;/* [ref] */
} in;
struct {
- uint32_t *resume_handle;/* [ref] */
struct lsa_DomainListEx *domains;/* [ref] */
+ uint32_t *resume_handle;/* [ref] */
NTSTATUS result;
} out;
@@ -1195,11 +1197,11 @@ struct lsa_LookupSids2 {
struct {
struct policy_handle *handle;/* [ref] */
struct lsa_SidArray *sids;/* [ref] */
- struct lsa_TransNameArray2 *names;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransNameArray2 *names;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
@@ -1217,11 +1219,11 @@ struct lsa_LookupNames2 {
struct policy_handle *handle;/* [ref] */
uint32_t num_names;/* [range(0 1000)] */
struct lsa_String *names;/* [size_is(num_names)] */
- struct lsa_TransSidArray2 *sids;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransSidArray2 *sids;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
@@ -1311,11 +1313,11 @@ struct lsa_LookupNames3 {
struct policy_handle *handle;/* [ref] */
uint32_t num_names;/* [range(0 1000)] */
struct lsa_String *names;/* [size_is(num_names)] */
- struct lsa_TransSidArray3 *sids;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransSidArray3 *sids;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
@@ -1387,11 +1389,11 @@ struct lsa_CREDRRENAME {
struct lsa_LookupSids3 {
struct {
struct lsa_SidArray *sids;/* [ref] */
- struct lsa_TransNameArray2 *names;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransNameArray2 *names;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
@@ -1408,11 +1410,11 @@ struct lsa_LookupNames4 {
struct {
uint32_t num_names;/* [range(0 1000)] */
struct lsa_String *names;/* [size_is(num_names)] */
- struct lsa_TransSidArray3 *sids;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransSidArray3 *sids;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
diff --git a/source3/librpc/gen_ndr/ndr_winreg.c b/source3/librpc/gen_ndr/ndr_winreg.c
index 7001152ce7..7b500520f1 100644
--- a/source3/librpc/gen_ndr/ndr_winreg.c
+++ b/source3/librpc/gen_ndr/ndr_winreg.c
@@ -24,6 +24,14 @@ _PUBLIC_ void ndr_print_winreg_AccessMask(struct ndr_print *ndr, const char *nam
{
ndr_print_uint32(ndr, name, r);
ndr->depth++;
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_QUERY_VALUE", KEY_QUERY_VALUE, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_SET_VALUE", KEY_SET_VALUE, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_CREATE_SUB_KEY", KEY_CREATE_SUB_KEY, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_ENUMERATE_SUB_KEYS", KEY_ENUMERATE_SUB_KEYS, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_NOTIFY", KEY_NOTIFY, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_CREATE_LINK", KEY_CREATE_LINK, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_WOW64_64KEY", KEY_WOW64_64KEY, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_WOW64_32KEY", KEY_WOW64_32KEY, r);
ndr->depth--;
}
@@ -1471,21 +1479,22 @@ NTSTATUS ndr_push_winreg_EnumValue(struct ndr_push *ndr, int flags, const struct
if (r->in.type) {
NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, *r->in.type));
}
- if (r->in.data == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.data_size));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.value_length));
- for (cntr_data_1 = 0; cntr_data_1 < *r->in.value_length; cntr_data_1++) {
- if (r->in.data[cntr_data_1] == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_push_ref_ptr(ndr));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data));
+ if (r->in.data) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.size));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.length));
+ for (cntr_data_1 = 0; cntr_data_1 < *r->in.length; cntr_data_1++) {
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data[cntr_data_1]));
+ }
}
- NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data_size));
- if (r->in.data_size) {
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.data_size));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.size));
+ if (r->in.size) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.size));
}
- NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.value_length));
- if (r->in.value_length) {
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.value_length));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.length));
+ if (r->in.length) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.length));
}
}
if (flags & NDR_OUT) {
@@ -1495,21 +1504,22 @@ NTSTATUS ndr_push_winreg_EnumValue(struct ndr_push *ndr, int flags, const struct
if (r->out.type) {
NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, *r->out.type));
}
- if (r->out.data == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.data_size));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.value_length));
- for (cntr_data_1 = 0; cntr_data_1 < *r->out.value_length; cntr_data_1++) {
- if (r->out.data[cntr_data_1] == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_push_ref_ptr(ndr));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.data));
+ if (r->out.data) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.size));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.length));
+ for (cntr_data_1 = 0; cntr_data_1 < *r->out.length; cntr_data_1++) {
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.data[cntr_data_1]));
+ }
}
- NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.data_size));
- if (r->out.data_size) {
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.data_size));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.size));
+ if (r->out.size) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.size));
}
- NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.value_length));
- if (r->out.value_length) {
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.value_length));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.length));
+ if (r->out.length) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.length));
}
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
}
@@ -1521,15 +1531,16 @@ NTSTATUS ndr_pull_winreg_EnumValue(struct ndr_pull *ndr, int flags, struct winre
uint32_t _ptr_type;
uint32_t _ptr_data;
uint32_t cntr_data_1;
- uint32_t _ptr_data_size;
- uint32_t _ptr_value_length;
+ uint32_t _ptr_size;
+ uint32_t _ptr_length;
TALLOC_CTX *_mem_save_handle_0;
TALLOC_CTX *_mem_save_name_0;
TALLOC_CTX *_mem_save_type_0;
+ TALLOC_CTX *_mem_save_data_0;
TALLOC_CTX *_mem_save_data_1;
TALLOC_CTX *_mem_save_data_2;
- TALLOC_CTX *_mem_save_data_size_0;
- TALLOC_CTX *_mem_save_value_length_0;
+ TALLOC_CTX *_mem_save_size_0;
+ TALLOC_CTX *_mem_save_length_0;
if (flags & NDR_IN) {
ZERO_STRUCT(r->out);
@@ -1560,60 +1571,67 @@ NTSTATUS ndr_pull_winreg_EnumValue(struct ndr_pull *ndr, int flags, struct winre
NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, r->in.type));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_type_0, 0);
}
- NDR_CHECK(ndr_pull_array_size(ndr, &r->in.data));
- NDR_CHECK(ndr_pull_array_length(ndr, &r->in.data));
- if (ndr_get_array_length(ndr, &r->in.data) > ndr_get_array_size(ndr, &r->in.data)) {
- return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.data), ndr_get_array_length(ndr, &r->in.data));
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
+ if (_ptr_data) {
+ NDR_PULL_ALLOC(ndr, r->in.data);
+ } else {
+ r->in.data = NULL;
}
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
+ if (r->in.data) {
+ _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
+ NDR_CHECK(ndr_pull_array_size(ndr, &r->in.data));
+ NDR_CHECK(ndr_pull_array_length(ndr, &r->in.data));
+ if (ndr_get_array_length(ndr, &r->in.data) > ndr_get_array_size(ndr, &r->in.data)) {
+ return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.data), ndr_get_array_length(ndr, &r->in.data));
+ }
NDR_PULL_ALLOC_N(ndr, r->in.data, ndr_get_array_size(ndr, &r->in.data));
- }
- memcpy(r->out.data, r->in.data, ndr_get_array_size(ndr, &r->in.data) * sizeof(*r->in.data));
- _mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
- for (cntr_data_1 = 0; cntr_data_1 < *r->in.value_length; cntr_data_1++) {
- NDR_CHECK(ndr_pull_ref_ptr(ndr, &_ptr_data));
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
- NDR_PULL_ALLOC(ndr, r->in.data[cntr_data_1]);
+ _mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
+ for (cntr_data_1 = 0; cntr_data_1 < *r->in.length; cntr_data_1++) {
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
+ if (_ptr_data) {
+ NDR_PULL_ALLOC(ndr, r->in.data[cntr_data_1]);
+ } else {
+ r->in.data[cntr_data_1] = NULL;
+ }
}
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_1, 0);
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
}
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_1, 0);
- NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data_size));
- if (_ptr_data_size) {
- NDR_PULL_ALLOC(ndr, r->in.data_size);
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_size));
+ if (_ptr_size) {
+ NDR_PULL_ALLOC(ndr, r->in.size);
} else {
- r->in.data_size = NULL;
+ r->in.size = NULL;
}
- if (r->in.data_size) {
- _mem_save_data_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->in.data_size, 0);
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.data_size));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_size_0, 0);
+ if (r->in.size) {
+ _mem_save_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.size, 0);
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.size));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_size_0, 0);
}
- NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_value_length));
- if (_ptr_value_length) {
- NDR_PULL_ALLOC(ndr, r->in.value_length);
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_length));
+ if (_ptr_length) {
+ NDR_PULL_ALLOC(ndr, r->in.length);
} else {
- r->in.value_length = NULL;
+ r->in.length = NULL;
}
- if (r->in.value_length) {
- _mem_save_value_length_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->in.value_length, 0);
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.value_length));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_value_length_0, 0);
+ if (r->in.length) {
+ _mem_save_length_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.length, 0);
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.length));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_length_0, 0);
}
NDR_PULL_ALLOC(ndr, r->out.name);
*r->out.name = *r->in.name;
- if (r->in.data_size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_PULL_ALLOC_N(ndr, r->out.data, *r->in.data_size);
- memcpy(r->out.data, r->in.data, *r->in.data_size * sizeof(*r->in.data));
if (r->in.data) {
- if (r->in.data_size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.data, *r->in.data_size));
+ if (r->in.size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+ NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.data, *r->in.size));
}
if (r->in.data) {
- if (r->in.value_length == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->in.data, *r->in.value_length));
+ if (r->in.length == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+ NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->in.data, *r->in.length));
}
}
if (flags & NDR_OUT) {
@@ -1636,56 +1654,66 @@ NTSTATUS ndr_pull_winreg_EnumValue(struct ndr_pull *ndr, int flags, struct winre
NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, r->out.type));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_type_0, 0);
}
- NDR_CHECK(ndr_pull_array_size(ndr, &r->out.data));
- NDR_CHECK(ndr_pull_array_length(ndr, &r->out.data));
- if (ndr_get_array_length(ndr, &r->out.data) > ndr_get_array_size(ndr, &r->out.data)) {
- return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->out.data), ndr_get_array_length(ndr, &r->out.data));
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
+ if (_ptr_data) {
+ NDR_PULL_ALLOC(ndr, r->out.data);
+ } else {
+ r->out.data = NULL;
}
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
+ if (r->out.data) {
+ _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.data, 0);
+ NDR_CHECK(ndr_pull_array_size(ndr, &r->out.data));
+ NDR_CHECK(ndr_pull_array_length(ndr, &r->out.data));
+ if (ndr_get_array_length(ndr, &r->out.data) > ndr_get_array_size(ndr, &r->out.data)) {
+ return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->out.data), ndr_get_array_length(ndr, &r->out.data));
+ }
NDR_PULL_ALLOC_N(ndr, r->out.data, ndr_get_array_size(ndr, &r->out.data));
- }
- memcpy(r->out.data, r->in.data, ndr_get_array_size(ndr, &r->out.data) * sizeof(*r->in.data));
- _mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->out.data, 0);
- for (cntr_data_1 = 0; cntr_data_1 < *r->out.value_length; cntr_data_1++) {
- NDR_CHECK(ndr_pull_ref_ptr(ndr, &_ptr_data));
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
- NDR_PULL_ALLOC(ndr, r->out.data[cntr_data_1]);
+ _mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.data, 0);
+ for (cntr_data_1 = 0; cntr_data_1 < *r->out.length; cntr_data_1++) {
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
+ if (_ptr_data) {
+ NDR_PULL_ALLOC(ndr, r->out.data[cntr_data_1]);
+ } else {
+ r->out.data[cntr_data_1] = NULL;
+ }
}
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_1, 0);
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
}
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_1, 0);
- NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data_size));
- if (_ptr_data_size) {
- NDR_PULL_ALLOC(ndr, r->out.data_size);
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_size));
+ if (_ptr_size) {
+ NDR_PULL_ALLOC(ndr, r->out.size);
} else {
- r->out.data_size = NULL;
+ r->out.size = NULL;
}
- if (r->out.data_size) {
- _mem_save_data_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->out.data_size, 0);
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.data_size));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_size_0, 0);
+ if (r->out.size) {
+ _mem_save_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.size, 0);
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.size));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_size_0, 0);
}
- NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_value_length));
- if (_ptr_value_length) {
- NDR_PULL_ALLOC(ndr, r->out.value_length);
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_length));
+ if (_ptr_length) {
+ NDR_PULL_ALLOC(ndr, r->out.length);
} else {
- r->out.value_length = NULL;
+ r->out.length = NULL;
}
- if (r->out.value_length) {
- _mem_save_value_length_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->out.value_length, 0);
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.value_length));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_value_length_0, 0);
+ if (r->out.length) {
+ _mem_save_length_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.length, 0);
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.length));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_length_0, 0);
}
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
if (r->out.data) {
- if (r->out.data_size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.data, *r->out.data_size));
+ if (r->out.size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+ NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.data, *r->out.size));
}
if (r->out.data) {
- if (r->out.value_length == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->out.data, *r->out.value_length));
+ if (r->out.length == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+ NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->out.data, *r->out.length));
}
}
return NT_STATUS_OK;
@@ -1719,32 +1747,36 @@ _PUBLIC_ void ndr_print_winreg_EnumValue(struct ndr_print *ndr, const char *name
ndr->depth--;
ndr_print_ptr(ndr, "data", r->in.data);
ndr->depth++;
- if (r->in.value_length == NULL) return;
- ndr->print(ndr, "%s: ARRAY(%d)", "data", *r->in.value_length);
- ndr->depth++;
- for (cntr_data_1=0;cntr_data_1<*r->in.value_length;cntr_data_1++) {
- char *idx_1=NULL;
- asprintf(&idx_1, "[%d]", cntr_data_1);
- if (idx_1) {
- ndr_print_ptr(ndr, "data", r->in.data[cntr_data_1]);
- ndr->depth++;
- ndr_print_uint8(ndr, "data", *r->in.data[cntr_data_1]);
- ndr->depth--;
- free(idx_1);
+ if (r->in.data) {
+ if (r->in.length == NULL) return;
+ ndr->print(ndr, "%s: ARRAY(%d)", "data", *r->in.length);
+ ndr->depth++;
+ for (cntr_data_1=0;cntr_data_1<*r->in.length;cntr_data_1++) {
+ char *idx_1=NULL;
+ asprintf(&idx_1, "[%d]", cntr_data_1);
+ if (idx_1) {
+ ndr_print_ptr(ndr, "data", r->in.data[cntr_data_1]);
+ ndr->depth++;
+ if (r->in.data[cntr_data_1]) {
+ ndr_print_uint8(ndr, "data", *r->in.data[cntr_data_1]);
+ }
+ ndr->depth--;
+ free(idx_1);
+ }
}
+ ndr->depth--;
}
ndr->depth--;
- ndr->depth--;
- ndr_print_ptr(ndr, "data_size", r->in.data_size);
+ ndr_print_ptr(ndr, "size", r->in.size);
ndr->depth++;
- if (r->in.data_size) {
- ndr_print_uint32(ndr, "data_size", *r->in.data_size);
+ if (r->in.size) {
+ ndr_print_uint32(ndr, "size", *r->in.size);
}
ndr->depth--;
- ndr_print_ptr(ndr, "value_length", r->in.value_length);
+ ndr_print_ptr(ndr, "length", r->in.length);
ndr->depth++;
- if (r->in.value_length) {
- ndr_print_uint32(ndr, "value_length", *r->in.value_length);
+ if (r->in.length) {
+ ndr_print_uint32(ndr, "length", *r->in.length);
}
ndr->depth--;
ndr->depth--;
@@ -1764,32 +1796,36 @@ _PUBLIC_ void ndr_print_winreg_EnumValue(struct ndr_print *ndr, const char *name
ndr->depth--;
ndr_print_ptr(ndr, "data", r->out.data);
ndr->depth++;
- if (r->out.value_length == NULL) return;
- ndr->print(ndr, "%s: ARRAY(%d)", "data", *r->out.value_length);
- ndr->depth++;
- for (cntr_data_1=0;cntr_data_1<*r->out.value_length;cntr_data_1++) {
- char *idx_1=NULL;
- asprintf(&idx_1, "[%d]", cntr_data_1);
- if (idx_1) {
- ndr_print_ptr(ndr, "data", r->out.data[cntr_data_1]);
- ndr->depth++;
- ndr_print_uint8(ndr, "data", *r->out.data[cntr_data_1]);
- ndr->depth--;
- free(idx_1);
+ if (r->out.data) {
+ if (r->out.length == NULL) return;
+ ndr->print(ndr, "%s: ARRAY(%d)", "data", *r->out.length);
+ ndr->depth++;
+ for (cntr_data_1=0;cntr_data_1<*r->out.length;cntr_data_1++) {
+ char *idx_1=NULL;
+ asprintf(&idx_1, "[%d]", cntr_data_1);
+ if (idx_1) {
+ ndr_print_ptr(ndr, "data", r->out.data[cntr_data_1]);
+ ndr->depth++;
+ if (r->out.data[cntr_data_1]) {
+ ndr_print_uint8(ndr, "data", *r->out.data[cntr_data_1]);
+ }
+ ndr->depth--;
+ free(idx_1);
+ }
}
+ ndr->depth--;
}
ndr->depth--;
- ndr->depth--;
- ndr_print_ptr(ndr, "data_size", r->out.data_size);
+ ndr_print_ptr(ndr, "size", r->out.size);
ndr->depth++;
- if (r->out.data_size) {
- ndr_print_uint32(ndr, "data_size", *r->out.data_size);
+ if (r->out.size) {
+ ndr_print_uint32(ndr, "size", *r->out.size);
}
ndr->depth--;
- ndr_print_ptr(ndr, "value_length", r->out.value_length);
+ ndr_print_ptr(ndr, "length", r->out.length);
ndr->depth++;
- if (r->out.value_length) {
- ndr_print_uint32(ndr, "value_length", *r->out.value_length);
+ if (r->out.length) {
+ ndr_print_uint32(ndr, "length", *r->out.length);
}
ndr->depth--;
ndr_print_WERROR(ndr, "result", r->out.result);
diff --git a/source3/librpc/gen_ndr/netlogon.h b/source3/librpc/gen_ndr/netlogon.h
index 76eac2a383..f97ddc6ad4 100644
--- a/source3/librpc/gen_ndr/netlogon.h
+++ b/source3/librpc/gen_ndr/netlogon.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/lsa.h"
#include "librpc/gen_ndr/samr.h"
#include "librpc/gen_ndr/security.h"
@@ -757,16 +759,16 @@ struct netr_LogonSamLogon {
const char *server_name;/* [unique,charset(UTF16)] */
const char *computer_name;/* [unique,charset(UTF16)] */
struct netr_Authenticator *credential;/* [unique] */
- struct netr_Authenticator *return_authenticator;/* [unique] */
uint16_t logon_level;
union netr_LogonLevel logon;/* [switch_is(logon_level)] */
uint16_t validation_level;
+ struct netr_Authenticator *return_authenticator;/* [unique] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [unique] */
union netr_Validation *validation;/* [ref,switch_is(validation_level)] */
uint8_t *authoritative;/* [ref] */
+ struct netr_Authenticator *return_authenticator;/* [unique] */
NTSTATUS result;
} out;
@@ -778,9 +780,9 @@ struct netr_LogonSamLogoff {
const char *server_name;/* [unique,charset(UTF16)] */
const char *computer_name;/* [unique,charset(UTF16)] */
struct netr_Authenticator *credential;/* [unique] */
- struct netr_Authenticator *return_authenticator;/* [unique] */
uint16_t logon_level;
union netr_LogonLevel logon;/* [switch_is(logon_level)] */
+ struct netr_Authenticator *return_authenticator;/* [unique] */
} in;
struct {
@@ -846,16 +848,16 @@ struct netr_DatabaseDeltas {
const char *logon_server;/* [charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
enum netr_SamDatabaseID database_id;
- uint64_t *sequence_num;/* [ref] */
uint32_t preferredmaximumlength;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
+ uint64_t *sequence_num;/* [ref] */
} in;
struct {
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
struct netr_Authenticator *return_authenticator;/* [ref] */
uint64_t *sequence_num;/* [ref] */
- struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
NTSTATUS result;
} out;
@@ -867,16 +869,16 @@ struct netr_DatabaseSync {
const char *logon_server;/* [charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
enum netr_SamDatabaseID database_id;
- uint32_t *sync_context;/* [ref] */
uint32_t preferredmaximumlength;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
+ uint32_t *sync_context;/* [ref] */
} in;
struct {
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
struct netr_Authenticator *return_authenticator;/* [ref] */
uint32_t *sync_context;/* [ref] */
- struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
NTSTATUS result;
} out;
@@ -888,19 +890,19 @@ struct netr_AccountDeltas {
const char *logon_server;/* [unique,charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_UAS_INFO_0 uas;
uint32_t count;
uint32_t level;
uint32_t buffersize;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_AccountBuffer *buffer;/* [ref,subcontext(4)] */
uint32_t *count_returned;/* [ref] */
uint32_t *total_entries;/* [ref] */
struct netr_UAS_INFO_0 *recordid;/* [ref] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
NTSTATUS result;
} out;
@@ -912,19 +914,19 @@ struct netr_AccountSync {
const char *logon_server;/* [unique,charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
uint32_t reference;
uint32_t level;
uint32_t buffersize;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_UAS_INFO_0 *recordid;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_AccountBuffer *buffer;/* [ref,subcontext(4)] */
uint32_t *count_returned;/* [ref] */
uint32_t *total_entries;/* [ref] */
uint32_t *next_reference;/* [ref] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_UAS_INFO_0 *recordid;/* [ref] */
NTSTATUS result;
} out;
@@ -1015,17 +1017,17 @@ struct netr_DatabaseSync2 {
const char *logon_server;/* [charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
enum netr_SamDatabaseID database_id;
uint16_t restart_state;
- uint32_t *sync_context;/* [ref] */
uint32_t preferredmaximumlength;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
+ uint32_t *sync_context;/* [ref] */
} in;
struct {
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
struct netr_Authenticator *return_authenticator;/* [ref] */
uint32_t *sync_context;/* [ref] */
- struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
NTSTATUS result;
} out;
@@ -1037,14 +1039,14 @@ struct netr_DatabaseRedo {
const char *logon_server;/* [charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
uint8_t *change_log_entry;/* [unique,size_is(change_log_entry_size)] */
uint32_t change_log_entry_size;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
NTSTATUS result;
} out;
@@ -1143,9 +1145,9 @@ struct netr_ServerAuthenticate3 {
} in;
struct {
+ uint32_t *rid;/* [ref] */
struct netr_Credential *credentials;/* [ref] */
uint32_t *negotiate_flags;/* [ref] */
- uint32_t *rid;/* [ref] */
NTSTATUS result;
} out;
@@ -1187,14 +1189,14 @@ struct netr_LogonGetDomainInfo {
const char *server_name;/* [charset(UTF16)] */
const char *computer_name;/* [unique,charset(UTF16)] */
struct netr_Authenticator *credential;/* [ref] */
- struct netr_Authenticator *return_authenticator;/* [ref] */
uint32_t level;
union netr_DomainQuery query;/* [switch_is(level)] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [ref] */
union netr_DomainInfo *info;/* [ref,switch_is(level)] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
NTSTATUS result;
} out;
@@ -1366,17 +1368,17 @@ struct netr_LogonSamLogonWithFlags {
const char *server_name;/* [unique,charset(UTF16)] */
const char *computer_name;/* [unique,charset(UTF16)] */
struct netr_Authenticator *credential;/* [unique] */
- struct netr_Authenticator *return_authenticator;/* [unique] */
uint16_t logon_level;
union netr_LogonLevel logon;/* [switch_is(logon_level)] */
uint16_t validation_level;
+ struct netr_Authenticator *return_authenticator;/* [unique] */
uint32_t *flags;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [unique] */
union netr_Validation *validation;/* [ref,switch_is(validation_level)] */
uint8_t *authoritative;/* [ref] */
+ struct netr_Authenticator *return_authenticator;/* [unique] */
uint32_t *flags;/* [ref] */
NTSTATUS result;
} out;
diff --git a/source3/librpc/gen_ndr/notify.h b/source3/librpc/gen_ndr/notify.h
index f85b9b1bac..c809702e5d 100644
--- a/source3/librpc/gen_ndr/notify.h
+++ b/source3/librpc/gen_ndr/notify.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_notify
#define _HEADER_notify
diff --git a/source3/librpc/gen_ndr/srv_winreg.c b/source3/librpc/gen_ndr/srv_winreg.c
index cc161c91d7..ee0b110bd6 100644
--- a/source3/librpc/gen_ndr/srv_winreg.c
+++ b/source3/librpc/gen_ndr/srv_winreg.c
@@ -729,8 +729,8 @@ static BOOL api_winreg_EnumValue(pipes_struct *p)
r.out.name = r.in.name;
r.out.type = r.in.type;
r.out.data = r.in.data;
- r.out.data_size = r.in.data_size;
- r.out.value_length = r.in.value_length;
+ r.out.size = r.in.size;
+ r.out.length = r.in.length;
r.out.result = _winreg_EnumValue(p, &r);
if (p->rng_fault_state) {
diff --git a/source3/librpc/gen_ndr/srvsvc.h b/source3/librpc/gen_ndr/srvsvc.h
index 7ec6575b95..1222c5ece3 100644
--- a/source3/librpc/gen_ndr/srvsvc.h
+++ b/source3/librpc/gen_ndr/srvsvc.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/security.h"
#include "librpc/gen_ndr/svcctl.h"
#ifndef _HEADER_srvsvc
@@ -1003,16 +1005,16 @@ union srvsvc_NetTransportInfo {
struct srvsvc_NetCharDevEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetCharDevCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetCharDevCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -1053,16 +1055,16 @@ struct srvsvc_NetCharDevQEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
const char *user;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetCharDevQCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetCharDevQCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -1134,16 +1136,16 @@ struct srvsvc_NetConnEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
const char *path;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetConnCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetConnCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -1156,16 +1158,16 @@ struct srvsvc_NetFileEnum {
const char *server_unc;/* [unique,charset(UTF16)] */
const char *path;/* [unique,charset(UTF16)] */
const char *user;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetFileCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetFileCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -1206,16 +1208,16 @@ struct srvsvc_NetSessEnum {
const char *server_unc;/* [unique,charset(UTF16)] */
const char *client;/* [unique,charset(UTF16)] */
const char *user;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetSessCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetSessCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -1256,16 +1258,16 @@ struct srvsvc_NetShareAdd {
struct srvsvc_NetShareEnumAll {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetShareCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetShareCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -1381,14 +1383,14 @@ struct srvsvc_NetDiskEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
uint32_t level;
- struct srvsvc_NetDiskInfo *info;/* [ref] */
uint32_t maxlen;
+ struct srvsvc_NetDiskInfo *info;/* [ref] */
uint32_t *resume_handle;/* [unique] */
} in;
struct {
- struct srvsvc_NetDiskInfo *info;/* [ref] */
uint32_t *totalentries;/* [ref] */
+ struct srvsvc_NetDiskInfo *info;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -1429,16 +1431,16 @@ struct srvsvc_NetTransportAdd {
struct srvsvc_NetTransportEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetTransportCtr *transports;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetTransportCtr *transports;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -1509,8 +1511,8 @@ struct srvsvc_NetPathCanonicalize {
const char *path;/* [charset(UTF16)] */
uint32_t maxbuf;
const char *prefix;/* [charset(UTF16)] */
- uint32_t *pathtype;/* [ref] */
uint32_t pathflags;
+ uint32_t *pathtype;/* [ref] */
} in;
struct {
@@ -1580,16 +1582,16 @@ struct srvsvc_NetPRNameCompare {
struct srvsvc_NetShareEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetShareCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetShareCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
diff --git a/source3/librpc/gen_ndr/svcctl.h b/source3/librpc/gen_ndr/svcctl.h
index 21e182aa06..c4abfe785f 100644
--- a/source3/librpc/gen_ndr/svcctl.h
+++ b/source3/librpc/gen_ndr/svcctl.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_svcctl
#define _HEADER_svcctl
@@ -234,17 +236,17 @@ struct svcctl_CreateServiceW {
uint32_t error_control;
const char *binary_path;/* [charset(UTF16)] */
const char *LoadOrderGroupKey;/* [unique,charset(UTF16)] */
- uint32_t *TagId;/* [unique] */
uint8_t *dependencies;/* [unique,size_is(dependencies_size)] */
uint32_t dependencies_size;
const char *service_start_name;/* [unique,charset(UTF16)] */
uint8_t *password;/* [unique,size_is(password_size)] */
uint32_t password_size;
+ uint32_t *TagId;/* [unique] */
} in;
struct {
- uint32_t *TagId;/* [unique] */
struct policy_handle *handle;/* [ref] */
+ uint32_t *TagId;/* [unique] */
WERROR result;
} out;
@@ -703,8 +705,8 @@ struct EnumServicesStatusExA {
uint8_t *services;
uint32_t *bytes_needed;/* [ref] */
uint32_t *service_returned;/* [ref] */
- uint32_t *resume_handle;/* [unique] */
const char **group_name;/* [ref,charset(UTF16)] */
+ uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
@@ -725,8 +727,8 @@ struct EnumServicesStatusExW {
uint8_t *services;
uint32_t *bytes_needed;/* [ref] */
uint32_t *service_returned;/* [ref] */
- uint32_t *resume_handle;/* [unique] */
const char **group_name;/* [ref,charset(UTF16)] */
+ uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
diff --git a/source3/librpc/gen_ndr/unixinfo.h b/source3/librpc/gen_ndr/unixinfo.h
index 61747aeb9d..34dc27f469 100644
--- a/source3/librpc/gen_ndr/unixinfo.h
+++ b/source3/librpc/gen_ndr/unixinfo.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/security.h"
#ifndef _HEADER_unixinfo
#define _HEADER_unixinfo
@@ -65,13 +67,13 @@ struct unixinfo_GidToSid {
struct unixinfo_GetPWUid {
struct {
- uint32_t *count;/* [ref,range(0 1023)] */
uint64_t *uids;/* [size_is(*count)] */
+ uint32_t *count;/* [ref,range(0 1023)] */
} in;
struct {
- uint32_t *count;/* [ref,range(0 1023)] */
struct unixinfo_GetPWUidInfo *infos;/* [size_is(*count)] */
+ uint32_t *count;/* [ref,range(0 1023)] */
NTSTATUS result;
} out;
diff --git a/source3/librpc/gen_ndr/winreg.h b/source3/librpc/gen_ndr/winreg.h
index ac42edca17..4420a60b12 100644
--- a/source3/librpc/gen_ndr/winreg.h
+++ b/source3/librpc/gen_ndr/winreg.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/lsa.h"
#include "librpc/gen_ndr/initshutdown.h"
#include "librpc/gen_ndr/security.h"
@@ -7,6 +9,14 @@
#define _HEADER_winreg
/* bitmap winreg_AccessMask */
+#define KEY_QUERY_VALUE ( 0x00001 )
+#define KEY_SET_VALUE ( 0x00002 )
+#define KEY_CREATE_SUB_KEY ( 0x00004 )
+#define KEY_ENUMERATE_SUB_KEYS ( 0x00008 )
+#define KEY_NOTIFY ( 0x00010 )
+#define KEY_CREATE_LINK ( 0x00020 )
+#define KEY_WOW64_64KEY ( 0x00100 )
+#define KEY_WOW64_32KEY ( 0x00200 )
#ifndef USE_UINT_ENUMS
enum winreg_Type {
@@ -250,17 +260,17 @@ struct winreg_EnumValue {
uint32_t enum_index;
struct winreg_ValNameBuf *name;/* [ref] */
enum winreg_Type *type;/* [unique] */
- uint8_t **data;/* [ref,length_is(*value_length),size_is(*data_size)] */
- uint32_t *data_size;/* [unique] */
- uint32_t *value_length;/* [unique] */
+ uint8_t **data;/* [unique,length_is(*length),size_is(*size)] */
+ uint32_t *size;/* [unique] */
+ uint32_t *length;/* [unique] */
} in;
struct {
struct winreg_ValNameBuf *name;/* [ref] */
enum winreg_Type *type;/* [unique] */
- uint8_t **data;/* [ref,length_is(*value_length),size_is(*data_size)] */
- uint32_t *data_size;/* [unique] */
- uint32_t *value_length;/* [unique] */
+ uint8_t **data;/* [unique,length_is(*length),size_is(*size)] */
+ uint32_t *size;/* [unique] */
+ uint32_t *length;/* [unique] */
WERROR result;
} out;
@@ -349,7 +359,6 @@ struct winreg_QueryInfoKey {
} in;
struct {
- struct winreg_String *classname;/* [ref] */
uint32_t *num_subkeys;/* [ref] */
uint32_t *max_subkeylen;/* [ref] */
uint32_t *max_classlen;/* [ref] */
@@ -358,6 +367,7 @@ struct winreg_QueryInfoKey {
uint32_t *max_valbufsize;/* [ref] */
uint32_t *secdescsize;/* [ref] */
NTTIME *last_changed_time;/* [ref] */
+ struct winreg_String *classname;/* [ref] */
WERROR result;
} out;
@@ -531,8 +541,8 @@ struct winreg_OpenHKDD {
struct winreg_QueryMultipleValues {
struct {
struct policy_handle *key_handle;/* [ref] */
- struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
uint32_t num_values;
+ struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
uint8_t *buffer;/* [unique,length_is(*buffer_size),size_is(*buffer_size)] */
uint32_t *buffer_size;/* [ref] */
} in;
diff --git a/source3/librpc/gen_ndr/wkssvc.h b/source3/librpc/gen_ndr/wkssvc.h
index a6b75920ac..97200989c7 100644
--- a/source3/librpc/gen_ndr/wkssvc.h
+++ b/source3/librpc/gen_ndr/wkssvc.h
@@ -1,5 +1,7 @@
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/srvsvc.h"
#ifndef _HEADER_wkssvc
#define _HEADER_wkssvc
@@ -211,15 +213,15 @@ struct wkssvc_NetWkstaEnumUsers {
struct {
const char *server_name;/* [unique,charset(UTF16)] */
uint32_t level;
- union WKS_USER_ENUM_UNION *users;/* [ref] */
uint32_t prefmaxlen;
+ union WKS_USER_ENUM_UNION *users;/* [ref] */
uint32_t *resumehandle;/* [ref] */
} in;
struct {
- union WKS_USER_ENUM_UNION *users;/* [ref] */
uint32_t *entriesread;/* [unique] */
uint32_t *totalentries;/* [unique] */
+ union WKS_USER_ENUM_UNION *users;/* [ref] */
uint32_t *resumehandle;/* [ref] */
WERROR result;
} out;
@@ -246,16 +248,16 @@ struct WKSSVC_NETRWKSTAUSERSETINFO {
struct wkssvc_NetWkstaTransportEnum {
struct {
const char *server_name;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union wkssvc_NetWkstaTransportCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [ref] */
} in;
struct {
+ uint32_t *totalentries;/* [unique] */
uint32_t *level;/* [ref] */
union wkssvc_NetWkstaTransportCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [unique] */
uint32_t *resume_handle;/* [ref] */
WERROR result;
} out;
diff --git a/source3/librpc/idl/winreg.idl b/source3/librpc/idl/winreg.idl
index c7efedde16..3fa7b7f601 100644
--- a/source3/librpc/idl/winreg.idl
+++ b/source3/librpc/idl/winreg.idl
@@ -16,6 +16,14 @@ import "lsa.idl", "initshutdown.idl", "security.idl";
declare bitmap security_secinfo;
typedef [bitmap32bit] bitmap {
+ KEY_QUERY_VALUE = 0x00001,
+ KEY_SET_VALUE = 0x00002,
+ KEY_CREATE_SUB_KEY = 0x00004,
+ KEY_ENUMERATE_SUB_KEYS = 0x00008,
+ KEY_NOTIFY = 0x00010,
+ KEY_CREATE_LINK = 0x00020,
+ KEY_WOW64_64KEY = 0x00100,
+ KEY_WOW64_32KEY = 0x00200
} winreg_AccessMask;
typedef [v1_enum] enum {
@@ -167,9 +175,9 @@ import "lsa.idl", "initshutdown.idl", "security.idl";
[in] uint32 enum_index,
[in,out,ref] winreg_ValNameBuf *name,
[in,out,unique] winreg_Type *type,
- [in,out,ref,size_is(*data_size),length_is(*value_length)] uint8 **data,
- [in,out,unique] uint32 *data_size,
- [in,out,unique] uint32 *value_length
+ [in,out,unique,size_is(*size),length_is(*length)] uint8 **data,
+ [in,out,unique] uint32 *size,
+ [in,out,unique] uint32 *length
);
/******************/
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c
index 404210a416..6db31eeb80 100644
--- a/source3/rpc_server/srv_winreg_nt.c
+++ b/source3/rpc_server/srv_winreg_nt.c
@@ -445,22 +445,22 @@ WERROR _winreg_EnumValue(pipes_struct *p, struct winreg_EnumValue *r)
}
if (r->out.data != NULL) {
- if ((r->out.data_size == NULL) || (r->out.value_length == NULL)) {
+ if ((r->out.size == NULL) || (r->out.length == NULL)) {
return WERR_INVALID_PARAM;
}
- if (value_blob.length > *r->out.data_size) {
+ if (value_blob.length > *r->out.size) {
return WERR_MORE_DATA;
}
memcpy( r->out.data, value_blob.data, value_blob.length );
}
- if (r->out.value_length != NULL) {
- *r->out.value_length = value_blob.length;
+ if (r->out.length != NULL) {
+ *r->out.length = value_blob.length;
}
- if (r->out.data_size != NULL) {
- *r->out.data_size = value_blob.length;
+ if (r->out.size != NULL) {
+ *r->out.size = value_blob.length;
}
return WERR_OK;