summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/gen_ndr/cli_dfs.c448
-rw-r--r--source3/librpc/gen_ndr/cli_dfs.h149
-rw-r--r--source3/librpc/gen_ndr/cli_echo.c179
-rw-r--r--source3/librpc/gen_ndr/cli_echo.h49
-rw-r--r--source3/librpc/gen_ndr/cli_epmapper.c152
-rw-r--r--source3/librpc/gen_ndr/cli_epmapper.h48
-rw-r--r--source3/librpc/gen_ndr/cli_eventlog.c403
-rw-r--r--source3/librpc/gen_ndr/cli_eventlog.h91
-rw-r--r--source3/librpc/gen_ndr/cli_initshutdown.c63
-rw-r--r--source3/librpc/gen_ndr/cli_initshutdown.h24
-rw-r--r--source3/librpc/gen_ndr/cli_lsa.c1495
-rw-r--r--source3/librpc/gen_ndr/cli_lsa.h429
-rw-r--r--source3/librpc/gen_ndr/cli_netlogon.c966
-rw-r--r--source3/librpc/gen_ndr/cli_netlogon.h355
-rw-r--r--source3/librpc/gen_ndr/cli_srvsvc.c1104
-rw-r--r--source3/librpc/gen_ndr/cli_srvsvc.h402
-rw-r--r--source3/librpc/gen_ndr/cli_svcctl.c939
-rw-r--r--source3/librpc/gen_ndr/cli_svcctl.h367
-rw-r--r--source3/librpc/gen_ndr/cli_unixinfo.c91
-rw-r--r--source3/librpc/gen_ndr/cli_unixinfo.h26
-rw-r--r--source3/librpc/gen_ndr/cli_winreg.c715
-rw-r--r--source3/librpc/gen_ndr/cli_winreg.h260
-rw-r--r--source3/librpc/gen_ndr/cli_wkssvc.c660
-rw-r--r--source3/librpc/gen_ndr/cli_wkssvc.h257
-rw-r--r--source3/librpc/gen_ndr/srv_dfs.c1296
-rw-r--r--source3/librpc/gen_ndr/srv_echo.c580
-rw-r--r--source3/librpc/gen_ndr/srv_epmapper.c464
-rw-r--r--source3/librpc/gen_ndr/srv_eventlog.c1364
-rw-r--r--source3/librpc/gen_ndr/srv_initshutdown.c168
-rw-r--r--source3/librpc/gen_ndr/srv_lsa.c4724
-rw-r--r--source3/librpc/gen_ndr/srv_netlogon.c2772
-rw-r--r--source3/librpc/gen_ndr/srv_srvsvc.c3108
-rw-r--r--source3/librpc/gen_ndr/srv_svcctl.c2656
-rw-r--r--source3/librpc/gen_ndr/srv_unixinfo.c300
-rw-r--r--source3/librpc/gen_ndr/srv_winreg.c2040
-rw-r--r--source3/librpc/gen_ndr/srv_wkssvc.c1780
36 files changed, 18834 insertions, 12090 deletions
diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c
index 1cd085eaec..9078ce7bba 100644
--- a/source3/librpc/gen_ndr/cli_dfs.c
+++ b/source3/librpc/gen_ndr/cli_dfs.c
@@ -6,24 +6,33 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_dfs.h"
-NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum dfs_ManagerVersion *version)
+NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ enum dfs_ManagerVersion *version)
{
struct dfs_GetManagerVersion r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETMANAGERVERSION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_GETMANAGERVERSION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -36,7 +45,14 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m
return NT_STATUS_OK;
}
-NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *path,
+ const char *server,
+ const char *share,
+ const char *comment,
+ uint32_t flags,
+ WERROR *werror)
{
struct dfs_Add r;
NTSTATUS status;
@@ -48,17 +64,24 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const
r.in.comment = comment;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Add, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_ADD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -74,7 +97,12 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, WERROR *werror)
+NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *dfs_entry_path,
+ const char *servername,
+ const char *sharename,
+ WERROR *werror)
{
struct dfs_Remove r;
NTSTATUS status;
@@ -84,17 +112,24 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
r.in.servername = servername;
r.in.sharename = sharename;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_REMOVE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -110,7 +145,14 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror)
+NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *dfs_entry_path,
+ const char *servername,
+ const char *sharename,
+ uint32_t level,
+ union dfs_Info *info,
+ WERROR *werror)
{
struct dfs_SetInfo r;
NTSTATUS status;
@@ -122,17 +164,24 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
r.in.level = level;
r.in.info = info;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_SETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -148,7 +197,14 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror)
+NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *dfs_entry_path,
+ const char *servername,
+ const char *sharename,
+ uint32_t level,
+ union dfs_Info *info,
+ WERROR *werror)
{
struct dfs_GetInfo r;
NTSTATUS status;
@@ -159,17 +215,24 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
r.in.sharename = sharename;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_GETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -186,7 +249,13 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror)
+NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t level,
+ uint32_t bufsize,
+ struct dfs_EnumStruct *info,
+ uint32_t *total,
+ WERROR *werror)
{
struct dfs_Enum r;
NTSTATUS status;
@@ -197,17 +266,24 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3
r.in.info = info;
r.in.total = total;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_ENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -229,24 +305,33 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_Rename r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_RENAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_RENAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -262,24 +347,33 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WER
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_Move r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Move, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MOVE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_MOVE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -295,24 +389,33 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_ManagerGetConfigInfo r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERGETCONFIGINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_MANAGERGETCONFIGINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -328,24 +431,33 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_ManagerSendSiteInfo r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERSENDSITEINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_MANAGERSENDSITEINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -361,7 +473,18 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, const char *comment, const char *dfs_config_dn, uint8_t unknown1, uint32_t flags, struct dfs_UnknownStruct **unknown2, WERROR *werror)
+NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *dns_servername,
+ const char *dfsname,
+ const char *rootshare,
+ const char *comment,
+ const char *dfs_config_dn,
+ uint8_t unknown1,
+ uint32_t flags,
+ struct dfs_UnknownStruct **unknown2,
+ WERROR *werror)
{
struct dfs_AddFtRoot r;
NTSTATUS status;
@@ -377,17 +500,24 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.flags = flags;
r.in.unknown2 = unknown2;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDFTROOT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_ADDFTROOT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -406,7 +536,15 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, uint32_t flags, struct dfs_UnknownStruct **unknown, WERROR *werror)
+NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *dns_servername,
+ const char *dfsname,
+ const char *rootshare,
+ uint32_t flags,
+ struct dfs_UnknownStruct **unknown,
+ WERROR *werror)
{
struct dfs_RemoveFtRoot r;
NTSTATUS status;
@@ -419,17 +557,24 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.flags = flags;
r.in.unknown = unknown;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVEFTROOT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_REMOVEFTROOT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -448,7 +593,13 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *rootshare,
+ const char *comment,
+ uint32_t flags,
+ WERROR *werror)
{
struct dfs_AddStdRoot r;
NTSTATUS status;
@@ -459,17 +610,24 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.comment = comment;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_ADDSTDROOT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -485,7 +643,12 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *rootshare,
+ uint32_t flags,
+ WERROR *werror)
{
struct dfs_RemoveStdRoot r;
NTSTATUS status;
@@ -495,17 +658,24 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.rootshare = rootshare;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVESTDROOT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_REMOVESTDROOT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -521,7 +691,11 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ uint32_t flags,
+ WERROR *werror)
{
struct dfs_ManagerInitialize r;
NTSTATUS status;
@@ -530,17 +704,24 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.servername = servername;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERINITIALIZE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_MANAGERINITIALIZE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -556,7 +737,13 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, const char *store, WERROR *werror)
+NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *rootshare,
+ const char *comment,
+ const char *store,
+ WERROR *werror)
{
struct dfs_AddStdRootForced r;
NTSTATUS status;
@@ -567,17 +754,24 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.comment = comment;
r.in.store = store;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOTFORCED, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_ADDSTDROOTFORCED,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -593,24 +787,33 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_GetDcAddress r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETDCADDRESS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_GETDCADDRESS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -626,24 +829,33 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_SetDcAddress r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETDCADDRESS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_SETDCADDRESS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -659,7 +871,11 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, WERROR *werror)
+NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *rootshare,
+ WERROR *werror)
{
struct dfs_FlushFtTable r;
NTSTATUS status;
@@ -668,17 +884,24 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.servername = servername;
r.in.rootshare = rootshare;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_FLUSHFTTABLE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_FLUSHFTTABLE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -694,24 +917,33 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_Add2 r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_ADD2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -727,24 +959,33 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_Remove2 r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_REMOVE2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -760,7 +1001,14 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WE
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror)
+NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *dfs_name,
+ uint32_t level,
+ uint32_t bufsize,
+ struct dfs_EnumStruct *info,
+ uint32_t *total,
+ WERROR *werror)
{
struct dfs_EnumEx r;
NTSTATUS status;
@@ -772,17 +1020,24 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
r.in.info = info;
r.in.total = total;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUMEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_ENUMEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -804,24 +1059,33 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct dfs_SetInfo2 r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETDFS,
+ &ndr_table_netdfs,
+ NDR_DFS_SETINFO2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_dfs.h b/source3/librpc/gen_ndr/cli_dfs.h
index 1b03fbf070..cdd0978bb4 100644
--- a/source3/librpc/gen_ndr/cli_dfs.h
+++ b/source3/librpc/gen_ndr/cli_dfs.h
@@ -1,27 +1,130 @@
#include "librpc/gen_ndr/ndr_dfs.h"
#ifndef __CLI_NETDFS__
#define __CLI_NETDFS__
-NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum dfs_ManagerVersion *version);
-NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, WERROR *werror);
-NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror);
-NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror);
-NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror);
-NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, const char *comment, const char *dfs_config_dn, uint8_t unknown1, uint32_t flags, struct dfs_UnknownStruct **unknown2, WERROR *werror);
-NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, uint32_t flags, struct dfs_UnknownStruct **unknown, WERROR *werror);
-NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, const char *store, WERROR *werror);
-NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, WERROR *werror);
-NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror);
-NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ enum dfs_ManagerVersion *version);
+NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *path,
+ const char *server,
+ const char *share,
+ const char *comment,
+ uint32_t flags,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *dfs_entry_path,
+ const char *servername,
+ const char *sharename,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *dfs_entry_path,
+ const char *servername,
+ const char *sharename,
+ uint32_t level,
+ union dfs_Info *info,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *dfs_entry_path,
+ const char *servername,
+ const char *sharename,
+ uint32_t level,
+ union dfs_Info *info,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t level,
+ uint32_t bufsize,
+ struct dfs_EnumStruct *info,
+ uint32_t *total,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *dns_servername,
+ const char *dfsname,
+ const char *rootshare,
+ const char *comment,
+ const char *dfs_config_dn,
+ uint8_t unknown1,
+ uint32_t flags,
+ struct dfs_UnknownStruct **unknown2,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *dns_servername,
+ const char *dfsname,
+ const char *rootshare,
+ uint32_t flags,
+ struct dfs_UnknownStruct **unknown,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *rootshare,
+ const char *comment,
+ uint32_t flags,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *rootshare,
+ uint32_t flags,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ uint32_t flags,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *rootshare,
+ const char *comment,
+ const char *store,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *servername,
+ const char *rootshare,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *dfs_name,
+ uint32_t level,
+ uint32_t bufsize,
+ struct dfs_EnumStruct *info,
+ uint32_t *total,
+ WERROR *werror);
+NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
#endif /* __CLI_NETDFS__ */
diff --git a/source3/librpc/gen_ndr/cli_echo.c b/source3/librpc/gen_ndr/cli_echo.c
index 2d6187a937..d2ef574821 100644
--- a/source3/librpc/gen_ndr/cli_echo.c
+++ b/source3/librpc/gen_ndr/cli_echo.c
@@ -6,7 +6,10 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_echo.h"
-NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t in_data, uint32_t *out_data)
+NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t in_data,
+ uint32_t *out_data)
{
struct echo_AddOne r;
NTSTATUS status;
@@ -14,17 +17,24 @@ NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, ui
/* In parameters */
r.in.in_data = in_data;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_AddOne, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_ADDONE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_ADDONE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_AddOne, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -37,7 +47,11 @@ NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, ui
return NT_STATUS_OK;
}
-NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *in_data, uint8_t *out_data)
+NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t len,
+ uint8_t *in_data,
+ uint8_t *out_data)
{
struct echo_EchoData r;
NTSTATUS status;
@@ -46,17 +60,24 @@ NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.len = len;
r.in.in_data = in_data;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_EchoData, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_ECHODATA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_ECHODATA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_EchoData, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -69,7 +90,10 @@ NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
-NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *data)
+NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t len,
+ uint8_t *data)
{
struct echo_SinkData r;
NTSTATUS status;
@@ -78,17 +102,24 @@ NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.len = len;
r.in.data = data;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_SinkData, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_SINKDATA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_SINKDATA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_SinkData, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -100,7 +131,10 @@ NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
-NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *data)
+NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t len,
+ uint8_t *data)
{
struct echo_SourceData r;
NTSTATUS status;
@@ -108,17 +142,24 @@ NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.len = len;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_SourceData, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_SOURCEDATA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_SOURCEDATA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_SourceData, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -131,7 +172,10 @@ NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return NT_STATUS_OK;
}
-NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *s1, const char **s2)
+NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *s1,
+ const char **s2)
{
struct echo_TestCall r;
NTSTATUS status;
@@ -139,17 +183,24 @@ NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.s1 = s1;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestCall, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTCALL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_TESTCALL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestCall, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -162,7 +213,10 @@ NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
-NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t level, union echo_Info *info)
+NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t level,
+ union echo_Info *info)
{
struct echo_TestCall2 r;
NTSTATUS status;
@@ -170,17 +224,24 @@ NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestCall2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTCALL2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_TESTCALL2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestCall2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -193,7 +254,9 @@ NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return r.out.result;
}
-NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t seconds)
+NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t seconds)
{
struct echo_TestSleep r;
NTSTATUS status;
@@ -201,17 +264,24 @@ NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.seconds = seconds;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestSleep, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTSLEEP, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_TESTSLEEP,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestSleep, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -223,7 +293,11 @@ NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
-NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum echo_Enum1 *foo1, struct echo_Enum2 *foo2, union echo_Enum3 *foo3)
+NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ enum echo_Enum1 *foo1,
+ struct echo_Enum2 *foo2,
+ union echo_Enum3 *foo3)
{
struct echo_TestEnum r;
NTSTATUS status;
@@ -233,17 +307,24 @@ NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.foo2 = foo2;
r.in.foo3 = foo3;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_TESTENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -258,7 +339,9 @@ NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
-NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct echo_Surrounding *data)
+NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct echo_Surrounding *data)
{
struct echo_TestSurrounding r;
NTSTATUS status;
@@ -266,17 +349,24 @@ NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *me
/* In parameters */
r.in.data = data;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestSurrounding, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTSURROUNDING, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_TESTSURROUNDING,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestSurrounding, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -289,7 +379,9 @@ NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *me
return NT_STATUS_OK;
}
-NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t ***data)
+NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t ***data)
{
struct echo_TestDoublePointer r;
NTSTATUS status;
@@ -297,17 +389,24 @@ NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.data = data;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestDoublePointer, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTDOUBLEPOINTER, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_RPCECHO,
+ &ndr_table_rpcecho,
+ NDR_ECHO_TESTDOUBLEPOINTER,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_echo.h b/source3/librpc/gen_ndr/cli_echo.h
index d7e7f31704..e682004c16 100644
--- a/source3/librpc/gen_ndr/cli_echo.h
+++ b/source3/librpc/gen_ndr/cli_echo.h
@@ -1,14 +1,43 @@
#include "librpc/gen_ndr/ndr_echo.h"
#ifndef __CLI_RPCECHO__
#define __CLI_RPCECHO__
-NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t in_data, uint32_t *out_data);
-NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *in_data, uint8_t *out_data);
-NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *data);
-NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t len, uint8_t *data);
-NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *s1, const char **s2);
-NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t level, union echo_Info *info);
-NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t seconds);
-NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum echo_Enum1 *foo1, struct echo_Enum2 *foo2, union echo_Enum3 *foo3);
-NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct echo_Surrounding *data);
-NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t ***data);
+NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t in_data,
+ uint32_t *out_data);
+NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t len,
+ uint8_t *in_data,
+ uint8_t *out_data);
+NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t len,
+ uint8_t *data);
+NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t len,
+ uint8_t *data);
+NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *s1,
+ const char **s2);
+NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t level,
+ union echo_Info *info);
+NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t seconds);
+NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ enum echo_Enum1 *foo1,
+ struct echo_Enum2 *foo2,
+ union echo_Enum3 *foo3);
+NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct echo_Surrounding *data);
+NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t ***data);
#endif /* __CLI_RPCECHO__ */
diff --git a/source3/librpc/gen_ndr/cli_epmapper.c b/source3/librpc/gen_ndr/cli_epmapper.c
index 1ac594ddd7..775e349cd2 100644
--- a/source3/librpc/gen_ndr/cli_epmapper.c
+++ b/source3/librpc/gen_ndr/cli_epmapper.c
@@ -6,7 +6,11 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_epmapper.h"
-NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_ents, struct epm_entry_t *entries, uint32_t replace)
+NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t num_ents,
+ struct epm_entry_t *entries,
+ uint32_t replace)
{
struct epm_Insert r;
NTSTATUS status;
@@ -16,17 +20,24 @@ NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
r.in.entries = entries;
r.in.replace = replace;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_Insert, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_INSERT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EPMAPPER,
+ &ndr_table_epmapper,
+ NDR_EPM_INSERT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_Insert, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -38,7 +49,10 @@ NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
return NT_STATUS_OK;
}
-NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_ents, struct epm_entry_t *entries)
+NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t num_ents,
+ struct epm_entry_t *entries)
{
struct epm_Delete r;
NTSTATUS status;
@@ -47,17 +61,24 @@ NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
r.in.num_ents = num_ents;
r.in.entries = entries;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_Delete, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_DELETE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EPMAPPER,
+ &ndr_table_epmapper,
+ NDR_EPM_DELETE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_Delete, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -69,7 +90,16 @@ NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
return NT_STATUS_OK;
}
-NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t inquiry_type, struct GUID *object, struct rpc_if_id_t *interface_id, uint32_t vers_option, struct policy_handle *entry_handle, uint32_t max_ents, uint32_t *num_ents, struct epm_entry_t *entries)
+NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t inquiry_type,
+ struct GUID *object,
+ struct rpc_if_id_t *interface_id,
+ uint32_t vers_option,
+ struct policy_handle *entry_handle,
+ uint32_t max_ents,
+ uint32_t *num_ents,
+ struct epm_entry_t *entries)
{
struct epm_Lookup r;
NTSTATUS status;
@@ -82,17 +112,24 @@ NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
r.in.entry_handle = entry_handle;
r.in.max_ents = max_ents;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_Lookup, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_LOOKUP, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EPMAPPER,
+ &ndr_table_epmapper,
+ NDR_EPM_LOOKUP,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_Lookup, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -107,7 +144,14 @@ NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin
return NT_STATUS_OK;
}
-NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct GUID *object, struct epm_twr_t *map_tower, struct policy_handle *entry_handle, uint32_t max_towers, uint32_t *num_towers, struct epm_twr_p_t *towers)
+NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct GUID *object,
+ struct epm_twr_t *map_tower,
+ struct policy_handle *entry_handle,
+ uint32_t max_towers,
+ uint32_t *num_towers,
+ struct epm_twr_p_t *towers)
{
struct epm_Map r;
NTSTATUS status;
@@ -118,17 +162,24 @@ NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct
r.in.entry_handle = entry_handle;
r.in.max_towers = max_towers;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_Map, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MAP, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EPMAPPER,
+ &ndr_table_epmapper,
+ NDR_EPM_MAP,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_Map, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -143,7 +194,9 @@ NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct
return NT_STATUS_OK;
}
-NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *entry_handle)
+NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *entry_handle)
{
struct epm_LookupHandleFree r;
NTSTATUS status;
@@ -151,17 +204,24 @@ NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *me
/* In parameters */
r.in.entry_handle = entry_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_LookupHandleFree, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_LOOKUPHANDLEFREE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EPMAPPER,
+ &ndr_table_epmapper,
+ NDR_EPM_LOOKUPHANDLEFREE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -174,7 +234,9 @@ NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *me
return NT_STATUS_OK;
}
-NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct GUID *epm_object)
+NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct GUID *epm_object)
{
struct epm_InqObject r;
NTSTATUS status;
@@ -182,17 +244,24 @@ NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.epm_object = epm_object;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_InqObject, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_INQOBJECT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EPMAPPER,
+ &ndr_table_epmapper,
+ NDR_EPM_INQOBJECT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_InqObject, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -204,7 +273,11 @@ NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
-NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t object_speced, struct GUID *object, struct epm_twr_t *tower)
+NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t object_speced,
+ struct GUID *object,
+ struct epm_twr_t *tower)
{
struct epm_MgmtDelete r;
NTSTATUS status;
@@ -214,17 +287,24 @@ NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.object = object;
r.in.tower = tower;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_MgmtDelete, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MGMTDELETE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EPMAPPER,
+ &ndr_table_epmapper,
+ NDR_EPM_MGMTDELETE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_MgmtDelete, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -236,24 +316,32 @@ NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
-NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct epm_MapAuth r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_MapAuth, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MAPAUTH, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EPMAPPER,
+ &ndr_table_epmapper,
+ NDR_EPM_MAPAUTH,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_MapAuth, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_epmapper.h b/source3/librpc/gen_ndr/cli_epmapper.h
index 88e05a4600..fe99e6441c 100644
--- a/source3/librpc/gen_ndr/cli_epmapper.h
+++ b/source3/librpc/gen_ndr/cli_epmapper.h
@@ -1,12 +1,44 @@
#include "librpc/gen_ndr/ndr_epmapper.h"
#ifndef __CLI_EPMAPPER__
#define __CLI_EPMAPPER__
-NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_ents, struct epm_entry_t *entries, uint32_t replace);
-NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_ents, struct epm_entry_t *entries);
-NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t inquiry_type, struct GUID *object, struct rpc_if_id_t *interface_id, uint32_t vers_option, struct policy_handle *entry_handle, uint32_t max_ents, uint32_t *num_ents, struct epm_entry_t *entries);
-NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct GUID *object, struct epm_twr_t *map_tower, struct policy_handle *entry_handle, uint32_t max_towers, uint32_t *num_towers, struct epm_twr_p_t *towers);
-NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *entry_handle);
-NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct GUID *epm_object);
-NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t object_speced, struct GUID *object, struct epm_twr_t *tower);
-NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t num_ents,
+ struct epm_entry_t *entries,
+ uint32_t replace);
+NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t num_ents,
+ struct epm_entry_t *entries);
+NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t inquiry_type,
+ struct GUID *object,
+ struct rpc_if_id_t *interface_id,
+ uint32_t vers_option,
+ struct policy_handle *entry_handle,
+ uint32_t max_ents,
+ uint32_t *num_ents,
+ struct epm_entry_t *entries);
+NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct GUID *object,
+ struct epm_twr_t *map_tower,
+ struct policy_handle *entry_handle,
+ uint32_t max_towers,
+ uint32_t *num_towers,
+ struct epm_twr_p_t *towers);
+NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *entry_handle);
+NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct GUID *epm_object);
+NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t object_speced,
+ struct GUID *object,
+ struct epm_twr_t *tower);
+NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
#endif /* __CLI_EPMAPPER__ */
diff --git a/source3/librpc/gen_ndr/cli_eventlog.c b/source3/librpc/gen_ndr/cli_eventlog.c
index fbcd098538..72cd886cb4 100644
--- a/source3/librpc/gen_ndr/cli_eventlog.c
+++ b/source3/librpc/gen_ndr/cli_eventlog.c
@@ -6,7 +6,10 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_eventlog.h"
-NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *unknown)
+NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String *unknown)
{
struct eventlog_ClearEventLogW r;
NTSTATUS status;
@@ -15,17 +18,24 @@ NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.handle = handle;
r.in.unknown = unknown;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLEAREVENTLOGW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_CLEAREVENTLOGW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -37,24 +47,32 @@ NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_BackupEventLogW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_BACKUPEVENTLOGW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_BACKUPEVENTLOGW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -66,7 +84,9 @@ NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle)
{
struct eventlog_CloseEventLog r;
NTSTATUS status;
@@ -74,17 +94,24 @@ NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_CloseEventLog, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLOSEEVENTLOG, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_CLOSEEVENTLOG,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_CloseEventLog, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -97,24 +124,32 @@ NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_DeregisterEventSource r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_DeregisterEventSource, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_DEREGISTEREVENTSOURCE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_DEREGISTEREVENTSOURCE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_DeregisterEventSource, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -126,7 +161,10 @@ NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALL
return r.out.result;
}
-NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *number)
+NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *number)
{
struct eventlog_GetNumRecords r;
NTSTATUS status;
@@ -134,17 +172,24 @@ NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_GetNumRecords, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETNUMRECORDS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_GETNUMRECORDS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_GetNumRecords, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -157,24 +202,32 @@ NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_GetOldestRecord r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_GetOldestRecord, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETOLDESTRECORD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_GETOLDESTRECORD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_GetOldestRecord, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -186,24 +239,32 @@ NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_ChangeNotify r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ChangeNotify, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CHANGENOTIFY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_CHANGENOTIFY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ChangeNotify, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -215,7 +276,14 @@ NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *m
return r.out.result;
}
-NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct eventlog_OpenUnknown0 *unknown0, struct lsa_String logname, struct lsa_String servername, uint32_t unknown2, uint32_t unknown3, struct policy_handle *handle)
+NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct eventlog_OpenUnknown0 *unknown0,
+ struct lsa_String logname,
+ struct lsa_String servername,
+ uint32_t unknown2,
+ uint32_t unknown3,
+ struct policy_handle *handle)
{
struct eventlog_OpenEventLogW r;
NTSTATUS status;
@@ -227,17 +295,24 @@ NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.unknown2 = unknown2;
r.in.unknown3 = unknown3;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENEVENTLOGW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_OPENEVENTLOGW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -250,24 +325,32 @@ NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_RegisterEventSourceW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTEREVENTSOURCEW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_REGISTEREVENTSOURCEW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -279,24 +362,32 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLO
return r.out.result;
}
-NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_OpenBackupEventLogW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENBACKUPEVENTLOGW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_OPENBACKUPEVENTLOGW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -308,7 +399,15 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC
return r.out.result;
}
-NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t flags, uint32_t offset, uint32_t number_of_bytes, uint8_t *data, uint32_t *sent_size, uint32_t *real_size)
+NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t flags,
+ uint32_t offset,
+ uint32_t number_of_bytes,
+ uint8_t *data,
+ uint32_t *sent_size,
+ uint32_t *real_size)
{
struct eventlog_ReadEventLogW r;
NTSTATUS status;
@@ -319,17 +418,24 @@ NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.offset = offset;
r.in.number_of_bytes = number_of_bytes;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_READEVENTLOGW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_READEVENTLOGW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -344,24 +450,32 @@ NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_ReportEventW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ReportEventW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REPORTEVENTW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_REPORTEVENTW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ReportEventW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -373,24 +487,32 @@ NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *m
return r.out.result;
}
-NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_ClearEventLogA r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLEAREVENTLOGA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_CLEAREVENTLOGA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -402,24 +524,32 @@ NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_BackupEventLogA r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_BACKUPEVENTLOGA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_BACKUPEVENTLOGA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -431,24 +561,32 @@ NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_OpenEventLogA r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENEVENTLOGA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_OPENEVENTLOGA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -460,24 +598,32 @@ NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_RegisterEventSourceA r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTEREVENTSOURCEA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_REGISTEREVENTSOURCEA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -489,24 +635,32 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLO
return r.out.result;
}
-NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_OpenBackupEventLogA r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENBACKUPEVENTLOGA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_OPENBACKUPEVENTLOGA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -518,24 +672,32 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC
return r.out.result;
}
-NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_ReadEventLogA r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_READEVENTLOGA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_READEVENTLOGA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -547,24 +709,32 @@ NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_ReportEventA r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ReportEventA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REPORTEVENTA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_REPORTEVENTA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ReportEventA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -576,24 +746,32 @@ NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *m
return r.out.result;
}
-NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_RegisterClusterSvc r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_RegisterClusterSvc, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTERCLUSTERSVC, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_REGISTERCLUSTERSVC,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_RegisterClusterSvc, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -605,24 +783,32 @@ NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_
return r.out.result;
}
-NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_DeregisterClusterSvc r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_DeregisterClusterSvc, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_DEREGISTERCLUSTERSVC, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_DEREGISTERCLUSTERSVC,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_DeregisterClusterSvc, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -634,24 +820,32 @@ NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLO
return r.out.result;
}
-NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_WriteClusterEvents r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_WriteClusterEvents, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_WRITECLUSTEREVENTS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_WRITECLUSTEREVENTS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_WriteClusterEvents, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -663,24 +857,32 @@ NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_
return r.out.result;
}
-NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct eventlog_GetLogIntormation r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_GetLogIntormation, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETLOGINTORMATION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_GETLOGINTORMATION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_GetLogIntormation, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -692,7 +894,9 @@ NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_C
return r.out.result;
}
-NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle)
{
struct eventlog_FlushEventLog r;
NTSTATUS status;
@@ -700,17 +904,24 @@ NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_FlushEventLog, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_FLUSHEVENTLOG, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_EVENTLOG,
+ &ndr_table_eventlog,
+ NDR_EVENTLOG_FLUSHEVENTLOG,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_FlushEventLog, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_eventlog.h b/source3/librpc/gen_ndr/cli_eventlog.h
index 9024641795..f75355c390 100644
--- a/source3/librpc/gen_ndr/cli_eventlog.h
+++ b/source3/librpc/gen_ndr/cli_eventlog.h
@@ -1,28 +1,71 @@
#include "librpc/gen_ndr/ndr_eventlog.h"
#ifndef __CLI_EVENTLOG__
#define __CLI_EVENTLOG__
-NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *unknown);
-NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
-NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *number);
-NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct eventlog_OpenUnknown0 *unknown0, struct lsa_String logname, struct lsa_String servername, uint32_t unknown2, uint32_t unknown3, struct policy_handle *handle);
-NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t flags, uint32_t offset, uint32_t number_of_bytes, uint8_t *data, uint32_t *sent_size, uint32_t *real_size);
-NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
+NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String *unknown);
+NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle);
+NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *number);
+NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct eventlog_OpenUnknown0 *unknown0,
+ struct lsa_String logname,
+ struct lsa_String servername,
+ uint32_t unknown2,
+ uint32_t unknown3,
+ struct policy_handle *handle);
+NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t flags,
+ uint32_t offset,
+ uint32_t number_of_bytes,
+ uint8_t *data,
+ uint32_t *sent_size,
+ uint32_t *real_size);
+NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle);
#endif /* __CLI_EVENTLOG__ */
diff --git a/source3/librpc/gen_ndr/cli_initshutdown.c b/source3/librpc/gen_ndr/cli_initshutdown.c
index a549c94ce5..10f5c308d5 100644
--- a/source3/librpc/gen_ndr/cli_initshutdown.c
+++ b/source3/librpc/gen_ndr/cli_initshutdown.c
@@ -6,7 +6,14 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_initshutdown.h"
-NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror)
+NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *hostname,
+ struct initshutdown_String *message,
+ uint32_t timeout,
+ uint8_t force_apps,
+ uint8_t reboot,
+ WERROR *werror)
{
struct initshutdown_Init r;
NTSTATUS status;
@@ -18,17 +25,24 @@ NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.force_apps = force_apps;
r.in.reboot = reboot;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(initshutdown_Init, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_INIT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_INITSHUTDOWN,
+ &ndr_table_initshutdown,
+ NDR_INITSHUTDOWN_INIT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(initshutdown_Init, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -44,7 +58,10 @@ NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror)
+NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *server,
+ WERROR *werror)
{
struct initshutdown_Abort r;
NTSTATUS status;
@@ -52,17 +69,24 @@ NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
/* In parameters */
r.in.server = server;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(initshutdown_Abort, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_ABORT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_INITSHUTDOWN,
+ &ndr_table_initshutdown,
+ NDR_INITSHUTDOWN_ABORT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(initshutdown_Abort, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -78,7 +102,15 @@ NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror)
+NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *hostname,
+ struct initshutdown_String *message,
+ uint32_t timeout,
+ uint8_t force_apps,
+ uint8_t reboot,
+ uint32_t reason,
+ WERROR *werror)
{
struct initshutdown_InitEx r;
NTSTATUS status;
@@ -91,17 +123,24 @@ NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.reboot = reboot;
r.in.reason = reason;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(initshutdown_InitEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_INITEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_INITSHUTDOWN,
+ &ndr_table_initshutdown,
+ NDR_INITSHUTDOWN_INITEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_initshutdown.h b/source3/librpc/gen_ndr/cli_initshutdown.h
index e2a35b6d50..624b79f94c 100644
--- a/source3/librpc/gen_ndr/cli_initshutdown.h
+++ b/source3/librpc/gen_ndr/cli_initshutdown.h
@@ -1,7 +1,25 @@
#include "librpc/gen_ndr/ndr_initshutdown.h"
#ifndef __CLI_INITSHUTDOWN__
#define __CLI_INITSHUTDOWN__
-NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror);
-NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror);
-NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror);
+NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *hostname,
+ struct initshutdown_String *message,
+ uint32_t timeout,
+ uint8_t force_apps,
+ uint8_t reboot,
+ WERROR *werror);
+NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *server,
+ WERROR *werror);
+NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *hostname,
+ struct initshutdown_String *message,
+ uint32_t timeout,
+ uint8_t force_apps,
+ uint8_t reboot,
+ uint32_t reason,
+ WERROR *werror);
#endif /* __CLI_INITSHUTDOWN__ */
diff --git a/source3/librpc/gen_ndr/cli_lsa.c b/source3/librpc/gen_ndr/cli_lsa.c
index 49bb44880a..470ab3e0a5 100644
--- a/source3/librpc/gen_ndr/cli_lsa.c
+++ b/source3/librpc/gen_ndr/cli_lsa.c
@@ -6,7 +6,9 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_lsa.h"
-NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle)
{
struct lsa_Close r;
NTSTATUS status;
@@ -14,17 +16,24 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, stru
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_Close, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLOSE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CLOSE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_Close, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -37,7 +46,9 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, stru
return r.out.result;
}
-NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle)
{
struct lsa_Delete r;
NTSTATUS status;
@@ -45,17 +56,24 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, str
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_Delete, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_DELETE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_Delete, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -67,7 +85,12 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, str
return r.out.result;
}
-NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_count, struct lsa_PrivArray *privs)
+NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *resume_handle,
+ uint32_t max_count,
+ struct lsa_PrivArray *privs)
{
struct lsa_EnumPrivs r;
NTSTATUS status;
@@ -77,17 +100,24 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.resume_handle = resume_handle;
r.in.max_count = max_count;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMPRIVS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ENUMPRIVS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -101,7 +131,11 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return r.out.result;
}
-NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct sec_desc_buf *sdbuf)
+NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t sec_info,
+ struct sec_desc_buf *sdbuf)
{
struct lsa_QuerySecurity r;
NTSTATUS status;
@@ -110,17 +144,24 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.handle = handle;
r.in.sec_info = sec_info;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYSECURITY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_QUERYSECURITY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -135,24 +176,32 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_SetSecObj r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetSecObj, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSECOBJ, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETSECOBJ,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -164,24 +213,32 @@ NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
return r.out.result;
}
-NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_ChangePassword r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_ChangePassword, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CHANGEPASSWORD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CHANGEPASSWORD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -193,7 +250,12 @@ NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return r.out.result;
}
-NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ struct lsa_ObjectAttribute *attr,
+ uint32_t access_mask,
+ struct policy_handle *handle)
{
struct lsa_OpenPolicy r;
NTSTATUS status;
@@ -203,17 +265,24 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.attr = attr;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENPOLICY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_OPENPOLICY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -226,7 +295,11 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return r.out.result;
}
-NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info)
+NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint16_t level,
+ union lsa_PolicyInformation *info)
{
struct lsa_QueryInfoPolicy r;
NTSTATUS status;
@@ -235,17 +308,24 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.handle = handle;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYINFOPOLICY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_QUERYINFOPOLICY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -260,24 +340,32 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_SetInfoPolicy r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFOPOLICY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETINFOPOLICY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -289,24 +377,32 @@ NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_ClearAuditLog r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLEARAUDITLOG, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CLEARAUDITLOG,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -318,7 +414,12 @@ NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle)
+NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ uint32_t access_mask,
+ struct policy_handle *acct_handle)
{
struct lsa_CreateAccount r;
NTSTATUS status;
@@ -328,17 +429,24 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.sid = sid;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATEACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREATEACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -351,7 +459,12 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t num_entries, struct lsa_SidArray *sids)
+NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *resume_handle,
+ uint32_t num_entries,
+ struct lsa_SidArray *sids)
{
struct lsa_EnumAccounts r;
NTSTATUS status;
@@ -361,17 +474,24 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.resume_handle = resume_handle;
r.in.num_entries = num_entries;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ENUMACCOUNTS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -385,7 +505,12 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return r.out.result;
}
-NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_DomainInfo *info, uint32_t access_mask, struct policy_handle *trustdom_handle)
+NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_DomainInfo *info,
+ uint32_t access_mask,
+ struct policy_handle *trustdom_handle)
{
struct lsa_CreateTrustedDomain r;
NTSTATUS status;
@@ -395,17 +520,24 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.info = info;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAIN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREATETRUSTEDDOMAIN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -418,7 +550,12 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_size, struct lsa_DomainList *domains)
+NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *resume_handle,
+ uint32_t max_size,
+ struct lsa_DomainList *domains)
{
struct lsa_EnumTrustDom r;
NTSTATUS status;
@@ -428,17 +565,24 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.resume_handle = resume_handle;
r.in.max_size = max_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMTRUSTDOM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ENUMTRUSTDOM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -452,7 +596,15 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray *sids, uint16_t level, uint32_t *count)
+NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t num_names,
+ struct lsa_String *names,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransSidArray *sids,
+ uint16_t level,
+ uint32_t *count)
{
struct lsa_LookupNames r;
NTSTATUS status;
@@ -465,17 +617,24 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.level = level;
r.in.count = count;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupNames, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPNAMES,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupNames, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -492,7 +651,14 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray *names, uint16_t level, uint32_t *count)
+NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_SidArray *sids,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransNameArray *names,
+ uint16_t level,
+ uint32_t *count)
{
struct lsa_LookupSids r;
NTSTATUS status;
@@ -504,17 +670,24 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.level = level;
r.in.count = count;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupSids, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPSIDS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupSids, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -531,7 +704,12 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return r.out.result;
}
-NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle)
+NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String name,
+ uint32_t access_mask,
+ struct policy_handle *sec_handle)
{
struct lsa_CreateSecret r;
NTSTATUS status;
@@ -541,17 +719,24 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.name = name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateSecret, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATESECRET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREATESECRET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -564,7 +749,12 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return r.out.result;
}
-NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle)
+NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ uint32_t access_mask,
+ struct policy_handle *acct_handle)
{
struct lsa_OpenAccount r;
NTSTATUS status;
@@ -574,17 +764,24 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.sid = sid;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_OPENACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -597,7 +794,10 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_PrivilegeSet *privs)
+NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_PrivilegeSet *privs)
{
struct lsa_EnumPrivsAccount r;
NTSTATUS status;
@@ -605,17 +805,24 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *me
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMPRIVSACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ENUMPRIVSACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -630,7 +837,10 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *me
return r.out.result;
}
-NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_PrivilegeSet *privs)
+NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_PrivilegeSet *privs)
{
struct lsa_AddPrivilegesToAccount r;
NTSTATUS status;
@@ -639,17 +849,24 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_C
r.in.handle = handle;
r.in.privs = privs;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ADDPRIVILEGESTOACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ADDPRIVILEGESTOACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -661,7 +878,11 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_C
return r.out.result;
}
-NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t remove_all, struct lsa_PrivilegeSet *privs)
+NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint8_t remove_all,
+ struct lsa_PrivilegeSet *privs)
{
struct lsa_RemovePrivilegesFromAccount r;
NTSTATUS status;
@@ -671,17 +892,24 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TAL
r.in.remove_all = remove_all;
r.in.privs = privs;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_REMOVEPRIVILEGESFROMACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_REMOVEPRIVILEGESFROMACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -693,24 +921,32 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TAL
return r.out.result;
}
-NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_GetQuotasForAccount r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETQUOTASFORACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_GETQUOTASFORACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -722,24 +958,32 @@ NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_SetQuotasForAccount r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETQUOTASFORACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETQUOTASFORACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -751,24 +995,32 @@ NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_GetSystemAccessAccount r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETSYSTEMACCESSACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_GETSYSTEMACCESSACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -780,24 +1032,32 @@ NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_SetSystemAccessAccount r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSYSTEMACCESSACCOUNT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETSYSTEMACCESSACCOUNT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -809,7 +1069,12 @@ NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C
return r.out.result;
}
-NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *trustdom_handle)
+NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ uint32_t access_mask,
+ struct policy_handle *trustdom_handle)
{
struct lsa_OpenTrustedDomain r;
NTSTATUS status;
@@ -819,17 +1084,24 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.sid = sid;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENTRUSTEDDOMAIN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_OPENTRUSTEDDOMAIN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -842,7 +1114,11 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
return r.out.result;
}
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *trustdom_handle, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info)
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *trustdom_handle,
+ enum lsa_TrustDomInfoEnum level,
+ union lsa_TrustedDomainInfo *info)
{
struct lsa_QueryTrustedDomainInfo r;
NTSTATUS status;
@@ -851,17 +1127,24 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_C
r.in.trustdom_handle = trustdom_handle;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_QUERYTRUSTEDDOMAININFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -876,24 +1159,32 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_C
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_SetInformationTrustedDomain r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFORMATIONTRUSTEDDOMAIN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETINFORMATIONTRUSTEDDOMAIN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -905,7 +1196,12 @@ NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TAL
return r.out.result;
}
-NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle)
+NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String name,
+ uint32_t access_mask,
+ struct policy_handle *sec_handle)
{
struct lsa_OpenSecret r;
NTSTATUS status;
@@ -915,17 +1211,24 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.name = name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenSecret, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENSECRET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_OPENSECRET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -938,7 +1241,11 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *sec_handle, struct lsa_DATA_BUF *new_val, struct lsa_DATA_BUF *old_val)
+NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *sec_handle,
+ struct lsa_DATA_BUF *new_val,
+ struct lsa_DATA_BUF *old_val)
{
struct lsa_SetSecret r;
NTSTATUS status;
@@ -948,17 +1255,24 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.new_val = new_val;
r.in.old_val = old_val;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetSecret, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSECRET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETSECRET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetSecret, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -970,7 +1284,13 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return r.out.result;
}
-NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *sec_handle, struct lsa_DATA_BUF_PTR *new_val, NTTIME *new_mtime, struct lsa_DATA_BUF_PTR *old_val, NTTIME *old_mtime)
+NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *sec_handle,
+ struct lsa_DATA_BUF_PTR *new_val,
+ NTTIME *new_mtime,
+ struct lsa_DATA_BUF_PTR *old_val,
+ NTTIME *old_mtime)
{
struct lsa_QuerySecret r;
NTSTATUS status;
@@ -982,17 +1302,24 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.old_val = old_val;
r.in.old_mtime = old_mtime;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QuerySecret, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYSECRET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_QUERYSECRET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1016,7 +1343,11 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_LUID *luid)
+NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String *name,
+ struct lsa_LUID *luid)
{
struct lsa_LookupPrivValue r;
NTSTATUS status;
@@ -1025,17 +1356,24 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.handle = handle;
r.in.name = name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVVALUE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPPRIVVALUE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1048,7 +1386,11 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_LUID *luid, struct lsa_StringLarge *name)
+NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_LUID *luid,
+ struct lsa_StringLarge *name)
{
struct lsa_LookupPrivName r;
NTSTATUS status;
@@ -1057,17 +1399,24 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.handle = handle;
r.in.luid = luid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPPRIVNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1082,7 +1431,13 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_StringLarge *disp_name, uint16_t *language_id, uint16_t unknown)
+NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String *name,
+ struct lsa_StringLarge *disp_name,
+ uint16_t *language_id,
+ uint16_t unknown)
{
struct lsa_LookupPrivDisplayName r;
NTSTATUS status;
@@ -1093,17 +1448,24 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CT
r.in.language_id = language_id;
r.in.unknown = unknown;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVDISPLAYNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPPRIVDISPLAYNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1119,24 +1481,32 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CT
return r.out.result;
}
-NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_DeleteObject r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_DeleteObject, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETEOBJECT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_DELETEOBJECT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1148,7 +1518,11 @@ NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return r.out.result;
}
-NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_SidArray *sids)
+NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String *name,
+ struct lsa_SidArray *sids)
{
struct lsa_EnumAccountsWithUserRight r;
NTSTATUS status;
@@ -1157,17 +1531,24 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLO
r.in.handle = handle;
r.in.name = name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTSWITHUSERRIGHT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ENUMACCOUNTSWITHUSERRIGHT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1180,7 +1561,11 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLO
return r.out.result;
}
-NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights)
+NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ struct lsa_RightSet *rights)
{
struct lsa_EnumAccountRights r;
NTSTATUS status;
@@ -1189,17 +1574,24 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.handle = handle;
r.in.sid = sid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTRIGHTS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ENUMACCOUNTRIGHTS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1212,7 +1604,11 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *m
return r.out.result;
}
-NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights)
+NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ struct lsa_RightSet *rights)
{
struct lsa_AddAccountRights r;
NTSTATUS status;
@@ -1222,17 +1618,24 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.sid = sid;
r.in.rights = rights;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ADDACCOUNTRIGHTS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ADDACCOUNTRIGHTS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1244,7 +1647,12 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *me
return r.out.result;
}
-NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t unknown, struct lsa_RightSet *rights)
+NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ uint32_t unknown,
+ struct lsa_RightSet *rights)
{
struct lsa_RemoveAccountRights r;
NTSTATUS status;
@@ -1255,17 +1663,24 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.unknown = unknown;
r.in.rights = rights;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_REMOVEACCOUNTRIGHTS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_REMOVEACCOUNTRIGHTS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1277,7 +1692,12 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *dom_sid, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info)
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *dom_sid,
+ enum lsa_TrustDomInfoEnum level,
+ union lsa_TrustedDomainInfo *info)
{
struct lsa_QueryTrustedDomainInfoBySid r;
NTSTATUS status;
@@ -1287,17 +1707,24 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TAL
r.in.dom_sid = dom_sid;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFOBYSID, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_QUERYTRUSTEDDOMAININFOBYSID,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1312,24 +1739,32 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TAL
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_SetTrustedDomainInfo r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETTRUSTEDDOMAININFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETTRUSTEDDOMAININFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1341,7 +1776,10 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *dom_sid)
+NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *dom_sid)
{
struct lsa_DeleteTrustedDomain r;
NTSTATUS status;
@@ -1350,17 +1788,24 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.handle = handle;
r.in.dom_sid = dom_sid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETETRUSTEDDOMAIN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_DELETETRUSTEDDOMAIN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1372,24 +1817,32 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_StorePrivateData r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_STOREPRIVATEDATA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_STOREPRIVATEDATA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1401,24 +1854,32 @@ NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *me
return r.out.result;
}
-NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_RetrievePrivateData r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_RETRIEVEPRIVATEDATA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_RETRIEVEPRIVATEDATA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1430,7 +1891,12 @@ NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *system_name,
+ struct lsa_ObjectAttribute *attr,
+ uint32_t access_mask,
+ struct policy_handle *handle)
{
struct lsa_OpenPolicy2 r;
NTSTATUS status;
@@ -1440,17 +1906,24 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.attr = attr;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENPOLICY2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_OPENPOLICY2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1463,7 +1936,11 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *system_name, struct lsa_String *account_name, struct lsa_StringPointer *authority_name)
+NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *system_name,
+ struct lsa_String *account_name,
+ struct lsa_StringPointer *authority_name)
{
struct lsa_GetUserName r;
NTSTATUS status;
@@ -1473,17 +1950,24 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.account_name = account_name;
r.in.authority_name = authority_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_GetUserName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETUSERNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_GETUSERNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_GetUserName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1501,7 +1985,11 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info)
+NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint16_t level,
+ union lsa_PolicyInformation *info)
{
struct lsa_QueryInfoPolicy2 r;
NTSTATUS status;
@@ -1510,17 +1998,24 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.handle = handle;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYINFOPOLICY2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_QUERYINFOPOLICY2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1535,24 +2030,32 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *me
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_SetInfoPolicy2 r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFOPOLICY2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETINFOPOLICY2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1564,7 +2067,12 @@ NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return r.out.result;
}
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info)
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String trusted_domain,
+ enum lsa_TrustDomInfoEnum level,
+ union lsa_TrustedDomainInfo *info)
{
struct lsa_QueryTrustedDomainInfoByName r;
NTSTATUS status;
@@ -1574,17 +2082,24 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TA
r.in.trusted_domain = trusted_domain;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFOBYNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_QUERYTRUSTEDDOMAININFOBYNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1599,7 +2114,12 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TA
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info)
+NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String trusted_domain,
+ enum lsa_TrustDomInfoEnum level,
+ union lsa_TrustedDomainInfo *info)
{
struct lsa_SetTrustedDomainInfoByName r;
NTSTATUS status;
@@ -1610,17 +2130,24 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALL
r.in.level = level;
r.in.info = info;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETTRUSTEDDOMAININFOBYNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETTRUSTEDDOMAININFOBYNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1632,7 +2159,12 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALL
return r.out.result;
}
-NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, struct lsa_DomainListEx *domains, uint32_t max_size)
+NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *resume_handle,
+ struct lsa_DomainListEx *domains,
+ uint32_t max_size)
{
struct lsa_EnumTrustedDomainsEx r;
NTSTATUS status;
@@ -1642,17 +2174,24 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.resume_handle = resume_handle;
r.in.max_size = max_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMTRUSTEDDOMAINSEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_ENUMTRUSTEDDOMAINSEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1666,24 +2205,32 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CreateTrustedDomainEx r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAINEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREATETRUSTEDDOMAINEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1695,7 +2242,9 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CT
return r.out.result;
}
-NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle)
+NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle)
{
struct lsa_CloseTrustedDomainEx r;
NTSTATUS status;
@@ -1703,17 +2252,24 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLOSETRUSTEDDOMAINEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CLOSETRUSTEDDOMAINEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1726,7 +2282,11 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info)
+NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint16_t level,
+ union lsa_DomainInformationPolicy *info)
{
struct lsa_QueryDomainInformationPolicy r;
NTSTATUS status;
@@ -1735,17 +2295,24 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TA
r.in.handle = handle;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYDOMAININFORMATIONPOLICY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_QUERYDOMAININFORMATIONPOLICY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1760,7 +2327,11 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TA
return r.out.result;
}
-NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info)
+NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint16_t level,
+ union lsa_DomainInformationPolicy *info)
{
struct lsa_SetDomainInformationPolicy r;
NTSTATUS status;
@@ -1770,17 +2341,24 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALL
r.in.level = level;
r.in.info = info;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETDOMAININFORMATIONPOLICY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_SETDOMAININFORMATIONPOLICY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1792,7 +2370,12 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALL
return r.out.result;
}
-NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *trustdom_handle)
+NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String name,
+ uint32_t access_mask,
+ struct policy_handle *trustdom_handle)
{
struct lsa_OpenTrustedDomainByName r;
NTSTATUS status;
@@ -1802,17 +2385,24 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_
r.in.name = name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENTRUSTEDDOMAINBYNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_OPENTRUSTEDDOMAINBYNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1825,24 +2415,32 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_
return r.out.result;
}
-NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_TestCall r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_TestCall, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_TESTCALL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_TESTCALL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_TestCall, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1854,7 +2452,16 @@ NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_SidArray *sids,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransNameArray2 *names,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2)
{
struct lsa_LookupSids2 r;
NTSTATUS status;
@@ -1868,17 +2475,24 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupSids2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPSIDS2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1895,7 +2509,17 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray2 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t num_names,
+ struct lsa_String *names,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransSidArray2 *sids,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2)
{
struct lsa_LookupNames2 r;
NTSTATUS status;
@@ -1910,17 +2534,24 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupNames2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPNAMES2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1937,24 +2568,32 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return r.out.result;
}
-NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CreateTrustedDomainEx2 r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAINEX2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREATETRUSTEDDOMAINEX2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1966,24 +2605,32 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_C
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRWRITE r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRWRITE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRWRITE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1995,24 +2642,32 @@ NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRREAD r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRREAD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRREAD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2024,24 +2679,32 @@ NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRENUMERATE r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRENUMERATE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRENUMERATE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2053,24 +2716,32 @@ NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRWRITEDOMAINCREDENTIALS r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRWRITEDOMAINCREDENTIALS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRWRITEDOMAINCREDENTIALS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2082,24 +2753,32 @@ NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TAL
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRREADDOMAINCREDENTIALS r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRREADDOMAINCREDENTIALS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRREADDOMAINCREDENTIALS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2111,24 +2790,32 @@ NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALL
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRDELETE r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRDELETE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRDELETE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2140,24 +2827,32 @@ NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRGETTARGETINFO r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRGETTARGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRGETTARGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2169,24 +2864,32 @@ NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRPROFILELOADED r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRPROFILELOADED, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRPROFILELOADED,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2198,7 +2901,17 @@ NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t num_names,
+ struct lsa_String *names,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransSidArray3 *sids,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2)
{
struct lsa_LookupNames3 r;
NTSTATUS status;
@@ -2213,17 +2926,24 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupNames3, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES3, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPNAMES3,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2240,24 +2960,32 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRGETSESSIONTYPES r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRGETSESSIONTYPES, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRGETSESSIONTYPES,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2269,24 +2997,32 @@ NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSARREGISTERAUDITEVENT r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARREGISTERAUDITEVENT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSARREGISTERAUDITEVENT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2298,24 +3034,32 @@ NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_C
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSARGENAUDITEVENT r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARGENAUDITEVENT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSARGENAUDITEVENT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2327,24 +3071,32 @@ NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *m
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSARUNREGISTERAUDITEVENT r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARUNREGISTERAUDITEVENT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSARUNREGISTERAUDITEVENT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2356,24 +3108,32 @@ NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSARQUERYFORESTTRUSTINFORMATION r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2385,24 +3145,32 @@ NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSARSETFORESTTRUSTINFORMATION r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARSETFORESTTRUSTINFORMATION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSARSETFORESTTRUSTINFORMATION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2414,24 +3182,32 @@ NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T
return r.out.result;
}
-NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_CREDRRENAME r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRRENAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_CREDRRENAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2443,7 +3219,15 @@ NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct lsa_SidArray *sids,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransNameArray2 *names,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2)
{
struct lsa_LookupSids3 r;
NTSTATUS status;
@@ -2456,17 +3240,24 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupSids3, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS3, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPSIDS3,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2483,7 +3274,16 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return r.out.result;
}
-NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2)
+NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t num_names,
+ struct lsa_String *names,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransSidArray3 *sids,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2)
{
struct lsa_LookupNames4 r;
NTSTATUS status;
@@ -2497,17 +3297,24 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupNames4, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES4, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LOOKUPNAMES4,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2524,24 +3331,32 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSAROPENPOLICYSCE r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSAROPENPOLICYSCE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSAROPENPOLICYSCE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2553,24 +3368,32 @@ NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *m
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSARADTREGISTERSECURITYEVENTSOURCE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2582,24 +3405,32 @@ NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *c
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2611,24 +3442,32 @@ NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client
return r.out.result;
}
-NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
{
struct lsa_LSARADTREPORTSECURITYEVENT r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTREPORTSECURITYEVENT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_LSARPC,
+ &ndr_table_lsarpc,
+ NDR_LSA_LSARADTREPORTSECURITYEVENT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_lsa.h b/source3/librpc/gen_ndr/cli_lsa.h
index a44105ea9c..ad5e60d591 100644
--- a/source3/librpc/gen_ndr/cli_lsa.h
+++ b/source3/librpc/gen_ndr/cli_lsa.h
@@ -1,86 +1,351 @@
#include "librpc/gen_ndr/ndr_lsa.h"
#ifndef __CLI_LSARPC__
#define __CLI_LSARPC__
-NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_count, struct lsa_PrivArray *privs);
-NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct sec_desc_buf *sdbuf);
-NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info);
-NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle);
-NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t num_entries, struct lsa_SidArray *sids);
-NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_DomainInfo *info, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_size, struct lsa_DomainList *domains);
-NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray *sids, uint16_t level, uint32_t *count);
-NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray *names, uint16_t level, uint32_t *count);
-NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle);
-NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle);
-NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_PrivilegeSet *privs);
-NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_PrivilegeSet *privs);
-NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t remove_all, struct lsa_PrivilegeSet *privs);
-NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *trustdom_handle, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle);
-NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *sec_handle, struct lsa_DATA_BUF *new_val, struct lsa_DATA_BUF *old_val);
-NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *sec_handle, struct lsa_DATA_BUF_PTR *new_val, NTTIME *new_mtime, struct lsa_DATA_BUF_PTR *old_val, NTTIME *old_mtime);
-NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_LUID *luid);
-NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_LUID *luid, struct lsa_StringLarge *name);
-NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_StringLarge *disp_name, uint16_t *language_id, uint16_t unknown);
-NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *name, struct lsa_SidArray *sids);
-NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights);
-NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights);
-NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t unknown, struct lsa_RightSet *rights);
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *dom_sid, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct dom_sid2 *dom_sid);
-NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *system_name, struct lsa_String *account_name, struct lsa_StringPointer *authority_name);
-NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info);
-NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *resume_handle, struct lsa_DomainListEx *domains, uint32_t max_size);
-NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
-NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info);
-NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info);
-NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray2 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
-NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle);
+NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle);
+NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *resume_handle,
+ uint32_t max_count,
+ struct lsa_PrivArray *privs);
+NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t sec_info,
+ struct sec_desc_buf *sdbuf);
+NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ struct lsa_ObjectAttribute *attr,
+ uint32_t access_mask,
+ struct policy_handle *handle);
+NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint16_t level,
+ union lsa_PolicyInformation *info);
+NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ uint32_t access_mask,
+ struct policy_handle *acct_handle);
+NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *resume_handle,
+ uint32_t num_entries,
+ struct lsa_SidArray *sids);
+NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_DomainInfo *info,
+ uint32_t access_mask,
+ struct policy_handle *trustdom_handle);
+NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *resume_handle,
+ uint32_t max_size,
+ struct lsa_DomainList *domains);
+NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t num_names,
+ struct lsa_String *names,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransSidArray *sids,
+ uint16_t level,
+ uint32_t *count);
+NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_SidArray *sids,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransNameArray *names,
+ uint16_t level,
+ uint32_t *count);
+NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String name,
+ uint32_t access_mask,
+ struct policy_handle *sec_handle);
+NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ uint32_t access_mask,
+ struct policy_handle *acct_handle);
+NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_PrivilegeSet *privs);
+NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_PrivilegeSet *privs);
+NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint8_t remove_all,
+ struct lsa_PrivilegeSet *privs);
+NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ uint32_t access_mask,
+ struct policy_handle *trustdom_handle);
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *trustdom_handle,
+ enum lsa_TrustDomInfoEnum level,
+ union lsa_TrustedDomainInfo *info);
+NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String name,
+ uint32_t access_mask,
+ struct policy_handle *sec_handle);
+NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *sec_handle,
+ struct lsa_DATA_BUF *new_val,
+ struct lsa_DATA_BUF *old_val);
+NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *sec_handle,
+ struct lsa_DATA_BUF_PTR *new_val,
+ NTTIME *new_mtime,
+ struct lsa_DATA_BUF_PTR *old_val,
+ NTTIME *old_mtime);
+NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String *name,
+ struct lsa_LUID *luid);
+NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_LUID *luid,
+ struct lsa_StringLarge *name);
+NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String *name,
+ struct lsa_StringLarge *disp_name,
+ uint16_t *language_id,
+ uint16_t unknown);
+NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String *name,
+ struct lsa_SidArray *sids);
+NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ struct lsa_RightSet *rights);
+NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ struct lsa_RightSet *rights);
+NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *sid,
+ uint32_t unknown,
+ struct lsa_RightSet *rights);
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *dom_sid,
+ enum lsa_TrustDomInfoEnum level,
+ union lsa_TrustedDomainInfo *info);
+NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct dom_sid2 *dom_sid);
+NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *system_name,
+ struct lsa_ObjectAttribute *attr,
+ uint32_t access_mask,
+ struct policy_handle *handle);
+NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *system_name,
+ struct lsa_String *account_name,
+ struct lsa_StringPointer *authority_name);
+NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint16_t level,
+ union lsa_PolicyInformation *info);
+NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String trusted_domain,
+ enum lsa_TrustDomInfoEnum level,
+ union lsa_TrustedDomainInfo *info);
+NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String trusted_domain,
+ enum lsa_TrustDomInfoEnum level,
+ union lsa_TrustedDomainInfo *info);
+NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *resume_handle,
+ struct lsa_DomainListEx *domains,
+ uint32_t max_size);
+NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle);
+NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint16_t level,
+ union lsa_DomainInformationPolicy *info);
+NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint16_t level,
+ union lsa_DomainInformationPolicy *info);
+NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_String name,
+ uint32_t access_mask,
+ struct policy_handle *trustdom_handle);
+NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct lsa_SidArray *sids,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransNameArray2 *names,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2);
+NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t num_names,
+ struct lsa_String *names,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransSidArray2 *sids,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2);
+NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t num_names,
+ struct lsa_String *names,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransSidArray3 *sids,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2);
+NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct lsa_SidArray *sids,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransNameArray2 *names,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2);
+NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t num_names,
+ struct lsa_String *names,
+ struct lsa_RefDomainList *domains,
+ struct lsa_TransSidArray3 *sids,
+ uint16_t level,
+ uint32_t *count,
+ uint32_t unknown1,
+ uint32_t unknown2);
+NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
+NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx);
#endif /* __CLI_LSARPC__ */
diff --git a/source3/librpc/gen_ndr/cli_netlogon.c b/source3/librpc/gen_ndr/cli_netlogon.c
index addf9f80d1..efabf2e08f 100644
--- a/source3/librpc/gen_ndr/cli_netlogon.c
+++ b/source3/librpc/gen_ndr/cli_netlogon.c
@@ -6,7 +6,13 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_netlogon.h"
-NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, const char *workstation, struct netr_UasInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ const char *workstation,
+ struct netr_UasInfo *info,
+ WERROR *werror)
{
struct netr_LogonUasLogon r;
NTSTATUS status;
@@ -16,17 +22,24 @@ NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.account_name = account_name;
r.in.workstation = workstation;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonUasLogon, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONUASLOGON, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONUASLOGON,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonUasLogon, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -45,7 +58,13 @@ NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, const char *workstation, struct netr_UasLogoffInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ const char *workstation,
+ struct netr_UasLogoffInfo *info,
+ WERROR *werror)
{
struct netr_LogonUasLogoff r;
NTSTATUS status;
@@ -55,17 +74,24 @@ NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.account_name = account_name;
r.in.workstation = workstation;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonUasLogoff, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONUASLOGOFF, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONUASLOGOFF,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonUasLogoff, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -82,7 +108,17 @@ NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative)
+NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Authenticator *credential,
+ struct netr_Authenticator *return_authenticator,
+ uint16_t logon_level,
+ union netr_LogonLevel logon,
+ uint16_t validation_level,
+ union netr_Validation *validation,
+ uint8_t *authoritative)
{
struct netr_LogonSamLogon r;
NTSTATUS status;
@@ -96,17 +132,24 @@ NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.logon = logon;
r.in.validation_level = validation_level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonSamLogon, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGON, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONSAMLOGON,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonSamLogon, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -123,7 +166,14 @@ NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return r.out.result;
}
-NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon)
+NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Authenticator *credential,
+ struct netr_Authenticator *return_authenticator,
+ uint16_t logon_level,
+ union netr_LogonLevel logon)
{
struct netr_LogonSamLogoff r;
NTSTATUS status;
@@ -136,17 +186,24 @@ NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.logon_level = logon_level;
r.in.logon = logon;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonSamLogoff, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGOFF, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONSAMLOGOFF,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonSamLogoff, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -161,7 +218,11 @@ NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return r.out.result;
}
-NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Credential *credentials)
+NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Credential *credentials)
{
struct netr_ServerReqChallenge r;
NTSTATUS status;
@@ -171,17 +232,24 @@ NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.computer_name = computer_name;
r.in.credentials = credentials;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerReqChallenge, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERREQCHALLENGE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_SERVERREQCHALLENGE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerReqChallenge, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -194,7 +262,13 @@ NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials)
+NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Credential *credentials)
{
struct netr_ServerAuthenticate r;
NTSTATUS status;
@@ -206,17 +280,24 @@ NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.computer_name = computer_name;
r.in.credentials = credentials;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_SERVERAUTHENTICATE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -229,7 +310,15 @@ NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct samr_Password new_password, struct netr_Authenticator *return_authenticator)
+NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Authenticator credential,
+ struct samr_Password new_password,
+ struct netr_Authenticator *return_authenticator)
{
struct netr_ServerPasswordSet r;
NTSTATUS status;
@@ -242,17 +331,24 @@ NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.credential = credential;
r.in.new_password = new_password;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERPASSWORDSET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_SERVERPASSWORDSET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -265,7 +361,16 @@ NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *
return r.out.result;
}
-NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint64_t *sequence_num, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
+NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ enum netr_SamDatabaseID database_id,
+ uint64_t *sequence_num,
+ uint32_t preferredmaximumlength,
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
{
struct netr_DatabaseDeltas r;
NTSTATUS status;
@@ -279,17 +384,24 @@ NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.sequence_num = sequence_num;
r.in.preferredmaximumlength = preferredmaximumlength;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DatabaseDeltas, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASEDELTAS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DATABASEDELTAS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DatabaseDeltas, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -306,7 +418,16 @@ NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return r.out.result;
}
-NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
+NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ enum netr_SamDatabaseID database_id,
+ uint32_t *sync_context,
+ uint32_t preferredmaximumlength,
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
{
struct netr_DatabaseSync r;
NTSTATUS status;
@@ -320,17 +441,24 @@ NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.sync_context = sync_context;
r.in.preferredmaximumlength = preferredmaximumlength;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DatabaseSync, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASESYNC, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DATABASESYNC,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DatabaseSync, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -347,7 +475,20 @@ NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, struct netr_UAS_INFO_0 uas, uint32_t count, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, struct netr_UAS_INFO_0 *recordid)
+NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ struct netr_UAS_INFO_0 uas,
+ uint32_t count,
+ uint32_t level,
+ uint32_t buffersize,
+ struct netr_AccountBuffer *buffer,
+ uint32_t *count_returned,
+ uint32_t *total_entries,
+ struct netr_UAS_INFO_0 *recordid)
{
struct netr_AccountDeltas r;
NTSTATUS status;
@@ -362,17 +503,24 @@ NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.level = level;
r.in.buffersize = buffersize;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_AccountDeltas, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_ACCOUNTDELTAS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_ACCOUNTDELTAS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_AccountDeltas, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -389,7 +537,20 @@ NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return r.out.result;
}
-NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint32_t reference, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, uint32_t *next_reference, struct netr_UAS_INFO_0 *recordid)
+NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ uint32_t reference,
+ uint32_t level,
+ uint32_t buffersize,
+ struct netr_AccountBuffer *buffer,
+ uint32_t *count_returned,
+ uint32_t *total_entries,
+ uint32_t *next_reference,
+ struct netr_UAS_INFO_0 *recordid)
{
struct netr_AccountSync r;
NTSTATUS status;
@@ -404,17 +565,24 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.buffersize = buffersize;
r.in.recordid = recordid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_AccountSync, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_ACCOUNTSYNC, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_ACCOUNTSYNC,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_AccountSync, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -432,7 +600,11 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return r.out.result;
}
-NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *domainname, const char **dcname)
+NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *domainname,
+ const char **dcname)
{
struct netr_GetDcName r;
NTSTATUS status;
@@ -441,17 +613,24 @@ NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.logon_server = logon_server;
r.in.domainname = domainname;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_GetDcName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_GETDCNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_GETDCNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_GetDcName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -464,7 +643,13 @@ NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return r.out.result;
}
-NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, enum netr_LogonControlCode function_code, uint32_t level, union netr_CONTROL_QUERY_INFORMATION *info, WERROR *werror)
+NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ enum netr_LogonControlCode function_code,
+ uint32_t level,
+ union netr_CONTROL_QUERY_INFORMATION *info,
+ WERROR *werror)
{
struct netr_LogonControl r;
NTSTATUS status;
@@ -474,17 +659,24 @@ NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.function_code = function_code;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonControl, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONCONTROL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonControl, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -501,7 +693,12 @@ NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *domainname, const char **dcname, WERROR *werror)
+NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *domainname,
+ const char **dcname,
+ WERROR *werror)
{
struct netr_GetAnyDCName r;
NTSTATUS status;
@@ -510,17 +707,24 @@ NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.logon_server = logon_server;
r.in.domainname = domainname;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_GetAnyDCName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_GETANYDCNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_GETANYDCNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_GetAnyDCName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -537,7 +741,14 @@ NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query, WERROR *werror)
+NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ uint32_t function_code,
+ uint32_t level,
+ union netr_CONTROL_DATA_INFORMATION data,
+ union netr_CONTROL_QUERY_INFORMATION *query,
+ WERROR *werror)
{
struct netr_LogonControl2 r;
NTSTATUS status;
@@ -548,17 +759,24 @@ NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.level = level;
r.in.data = data;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonControl2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONCONTROL2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonControl2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -575,7 +793,14 @@ NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags)
+NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Credential *credentials,
+ uint32_t *negotiate_flags)
{
struct netr_ServerAuthenticate2 r;
NTSTATUS status;
@@ -588,17 +813,24 @@ NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.credentials = credentials;
r.in.negotiate_flags = negotiate_flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_SERVERAUTHENTICATE2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -612,7 +844,17 @@ NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint16_t restart_state, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
+NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ enum netr_SamDatabaseID database_id,
+ uint16_t restart_state,
+ uint32_t *sync_context,
+ uint32_t preferredmaximumlength,
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
{
struct netr_DatabaseSync2 r;
NTSTATUS status;
@@ -627,17 +869,24 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.sync_context = sync_context;
r.in.preferredmaximumlength = preferredmaximumlength;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DatabaseSync2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASESYNC2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DATABASESYNC2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DatabaseSync2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -654,7 +903,15 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return r.out.result;
}
-NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint8_t *change_log_entry, uint32_t change_log_entry_size, struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
+NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ uint8_t *change_log_entry,
+ uint32_t change_log_entry_size,
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
{
struct netr_DatabaseRedo r;
NTSTATUS status;
@@ -667,17 +924,24 @@ NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.change_log_entry = change_log_entry;
r.in.change_log_entry_size = change_log_entry_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DatabaseRedo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASEREDO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DATABASEREDO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DatabaseRedo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -693,7 +957,14 @@ NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query, WERROR *werror)
+NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ uint32_t function_code,
+ uint32_t level,
+ union netr_CONTROL_DATA_INFORMATION data,
+ union netr_CONTROL_QUERY_INFORMATION *query,
+ WERROR *werror)
{
struct netr_LogonControl2Ex r;
NTSTATUS status;
@@ -704,17 +975,24 @@ NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.level = level;
r.in.data = data;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonControl2Ex, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL2EX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONCONTROL2EX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonControl2Ex, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -731,24 +1009,33 @@ NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRENUMERATETRUSTEDDOMAINS r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRENUMERATETRUSTEDDOMAINS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRENUMERATETRUSTEDDOMAINS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -764,7 +1051,15 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TA
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *domain_name, struct GUID *domain_guid, struct GUID *site_guid, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *domain_name,
+ struct GUID *domain_guid,
+ struct GUID *site_guid,
+ uint32_t flags,
+ struct netr_DsRGetDCNameInfo *info,
+ WERROR *werror)
{
struct netr_DsRGetDCName r;
NTSTATUS status;
@@ -776,17 +1071,24 @@ NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.site_guid = site_guid;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsRGetDCName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRGETDCNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsRGetDCName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -805,24 +1107,33 @@ NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRLOGONDUMMYROUTINE1 r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONDUMMYROUTINE1, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRLOGONDUMMYROUTINE1,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -838,24 +1149,33 @@ NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRLOGONSETSERVICEBITS r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONSETSERVICEBITS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRLOGONSETSERVICEBITS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -871,24 +1191,33 @@ NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRLOGONGETTRUSTRID r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONGETTRUSTRID, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRLOGONGETTRUSTRID,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -904,24 +1233,33 @@ NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRLOGONCOMPUTESERVERDIGEST r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONCOMPUTESERVERDIGEST, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRLOGONCOMPUTESERVERDIGEST,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -937,24 +1275,33 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, T
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRLOGONCOMPUTECLIENTDIGEST r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRLOGONCOMPUTECLIENTDIGEST,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -970,7 +1317,15 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, T
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags, uint32_t *rid)
+NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Credential *credentials,
+ uint32_t *negotiate_flags,
+ uint32_t *rid)
{
struct netr_ServerAuthenticate3 r;
NTSTATUS status;
@@ -983,17 +1338,24 @@ NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.credentials = credentials;
r.in.negotiate_flags = negotiate_flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate3, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE3, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_SERVERAUTHENTICATE3,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate3, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1008,7 +1370,15 @@ NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *domain_name,
+ struct GUID *domain_guid,
+ const char *site_name,
+ uint32_t flags,
+ struct netr_DsRGetDCNameInfo *info,
+ WERROR *werror)
{
struct netr_DsRGetDCNameEx r;
NTSTATUS status;
@@ -1020,17 +1390,24 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.site_name = site_name;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAMEEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRGETDCNAMEEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1049,7 +1426,11 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *computer_name, const char **site, WERROR *werror)
+NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *computer_name,
+ const char **site,
+ WERROR *werror)
{
struct netr_DsRGetSiteName r;
NTSTATUS status;
@@ -1057,17 +1438,24 @@ NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem
/* In parameters */
r.in.computer_name = computer_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsRGetSiteName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETSITENAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRGETSITENAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsRGetSiteName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1084,7 +1472,15 @@ NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint32_t level, union netr_DomainQuery query, union netr_DomainInfo *info)
+NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Authenticator *credential,
+ struct netr_Authenticator *return_authenticator,
+ uint32_t level,
+ union netr_DomainQuery query,
+ union netr_DomainInfo *info)
{
struct netr_LogonGetDomainInfo r;
NTSTATUS status;
@@ -1097,17 +1493,24 @@ NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.level = level;
r.in.query = query;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonGetDomainInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONGETDOMAININFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONGETDOMAININFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonGetDomainInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1121,7 +1524,15 @@ NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct netr_CryptPassword new_password, struct netr_Authenticator *return_authenticator)
+NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Authenticator credential,
+ struct netr_CryptPassword new_password,
+ struct netr_Authenticator *return_authenticator)
{
struct netr_ServerPasswordSet2 r;
NTSTATUS status;
@@ -1134,17 +1545,24 @@ NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.credential = credential;
r.in.new_password = new_password;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERPASSWORDSET2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_SERVERPASSWORDSET2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1157,24 +1575,33 @@ NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX
return r.out.result;
}
-NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRSERVERPASSWORDGET r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERPASSWORDGET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRSERVERPASSWORDGET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1190,24 +1617,33 @@ NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRLOGONSENDTOSAM r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONSENDTOSAM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRLOGONSENDTOSAM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1223,24 +1659,33 @@ NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_DSRADDRESSTOSITENAMESW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRADDRESSTOSITENAMESW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRADDRESSTOSITENAMESW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1256,7 +1701,17 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client_account, uint32_t mask, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror)
+NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *client_account,
+ uint32_t mask,
+ const char *domain_name,
+ struct GUID *domain_guid,
+ const char *site_name,
+ uint32_t flags,
+ struct netr_DsRGetDCNameInfo *info,
+ WERROR *werror)
{
struct netr_DsRGetDCNameEx2 r;
NTSTATUS status;
@@ -1270,17 +1725,24 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.site_name = site_name;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAMEEX2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRGETDCNAMEEX2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1299,24 +1761,33 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1332,24 +1803,33 @@ NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRENUMERATETRUSTEDDOMAINSEX r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRENUMERATETRUSTEDDOMAINSEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1365,24 +1845,33 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_DSRADDRESSTOSITENAMESEXW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRADDRESSTOSITENAMESEXW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRADDRESSTOSITENAMESEXW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1398,24 +1887,33 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_DSRGETDCSITECOVERAGEW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCSITECOVERAGEW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRGETDCSITECOVERAGEW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1431,7 +1929,16 @@ NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags)
+NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ uint16_t logon_level,
+ union netr_LogonLevel logon,
+ uint16_t validation_level,
+ union netr_Validation *validation,
+ uint8_t *authoritative,
+ uint32_t *flags)
{
struct netr_LogonSamLogonEx r;
NTSTATUS status;
@@ -1444,17 +1951,24 @@ NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.validation_level = validation_level;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonSamLogonEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGONEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONSAMLOGONEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1469,7 +1983,13 @@ NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *me
return r.out.result;
}
-NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t trust_flags, uint32_t *count, struct netr_DomainTrust **trusts, WERROR *werror)
+NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t trust_flags,
+ uint32_t *count,
+ struct netr_DomainTrust **trusts,
+ WERROR *werror)
{
struct netr_DsrEnumerateDomainTrusts r;
NTSTATUS status;
@@ -1478,17 +1998,24 @@ NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLO
r.in.server_name = server_name;
r.in.trust_flags = trust_flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRENUMERATEDOMAINTRUSTS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRENUMERATEDOMAINTRUSTS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1506,24 +2033,33 @@ NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_DSRDEREGISTERDNSHOSTRECORDS r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRDEREGISTERDNSHOSTRECORDS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRDEREGISTERDNSHOSTRECORDS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1539,24 +2075,33 @@ NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TA
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRSERVERTRUSTPASSWORDSGET r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERTRUSTPASSWORDSGET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRSERVERTRUSTPASSWORDSGET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1572,24 +2117,33 @@ NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TA
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_DSRGETFORESTTRUSTINFORMATION r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETFORESTTRUSTINFORMATION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_DSRGETFORESTTRUSTINFORMATION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1605,24 +2159,33 @@ NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRGETFORESTTRUSTINFORMATION r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRGETFORESTTRUSTINFORMATION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRGETFORESTTRUSTINFORMATION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1638,7 +2201,18 @@ NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags)
+NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Authenticator *credential,
+ struct netr_Authenticator *return_authenticator,
+ uint16_t logon_level,
+ union netr_LogonLevel logon,
+ uint16_t validation_level,
+ union netr_Validation *validation,
+ uint8_t *authoritative,
+ uint32_t *flags)
{
struct netr_LogonSamLogonWithFlags r;
NTSTATUS status;
@@ -1653,17 +2227,24 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_
r.in.validation_level = validation_level;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonSamLogonWithFlags, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGONWITHFLAGS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_LOGONSAMLOGONWITHFLAGS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonWithFlags, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1681,24 +2262,33 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_
return r.out.result;
}
-NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct netr_NETRSERVERGETTRUSTINFO r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERGETTRUSTINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_NETLOGON,
+ &ndr_table_netlogon,
+ NDR_NETR_NETRSERVERGETTRUSTINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_netlogon.h b/source3/librpc/gen_ndr/cli_netlogon.h
index 4273fedf13..9409077d09 100644
--- a/source3/librpc/gen_ndr/cli_netlogon.h
+++ b/source3/librpc/gen_ndr/cli_netlogon.h
@@ -1,51 +1,312 @@
#include "librpc/gen_ndr/ndr_netlogon.h"
#ifndef __CLI_NETLOGON__
#define __CLI_NETLOGON__
-NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, const char *workstation, struct netr_UasInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, const char *workstation, struct netr_UasLogoffInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative);
-NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon);
-NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Credential *credentials);
-NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials);
-NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct samr_Password new_password, struct netr_Authenticator *return_authenticator);
-NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint64_t *sequence_num, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, struct netr_UAS_INFO_0 uas, uint32_t count, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, struct netr_UAS_INFO_0 *recordid);
-NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint32_t reference, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, uint32_t *next_reference, struct netr_UAS_INFO_0 *recordid);
-NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *domainname, const char **dcname);
-NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, enum netr_LogonControlCode function_code, uint32_t level, union netr_CONTROL_QUERY_INFORMATION *info, WERROR *werror);
-NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *domainname, const char **dcname, WERROR *werror);
-NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query, WERROR *werror);
-NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags);
-NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint16_t restart_state, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint8_t *change_log_entry, uint32_t change_log_entry_size, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query, WERROR *werror);
-NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *domain_name, struct GUID *domain_guid, struct GUID *site_guid, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags, uint32_t *rid);
-NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *computer_name, const char **site, WERROR *werror);
-NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint32_t level, union netr_DomainQuery query, union netr_DomainInfo *info);
-NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct netr_CryptPassword new_password, struct netr_Authenticator *return_authenticator);
-NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client_account, uint32_t mask, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info, WERROR *werror);
-NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags);
-NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t trust_flags, uint32_t *count, struct netr_DomainTrust **trusts, WERROR *werror);
-NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags);
-NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ const char *workstation,
+ struct netr_UasInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ const char *workstation,
+ struct netr_UasLogoffInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Authenticator *credential,
+ struct netr_Authenticator *return_authenticator,
+ uint16_t logon_level,
+ union netr_LogonLevel logon,
+ uint16_t validation_level,
+ union netr_Validation *validation,
+ uint8_t *authoritative);
+NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Authenticator *credential,
+ struct netr_Authenticator *return_authenticator,
+ uint16_t logon_level,
+ union netr_LogonLevel logon);
+NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Credential *credentials);
+NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Credential *credentials);
+NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Authenticator credential,
+ struct samr_Password new_password,
+ struct netr_Authenticator *return_authenticator);
+NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ enum netr_SamDatabaseID database_id,
+ uint64_t *sequence_num,
+ uint32_t preferredmaximumlength,
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
+NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ enum netr_SamDatabaseID database_id,
+ uint32_t *sync_context,
+ uint32_t preferredmaximumlength,
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
+NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ struct netr_UAS_INFO_0 uas,
+ uint32_t count,
+ uint32_t level,
+ uint32_t buffersize,
+ struct netr_AccountBuffer *buffer,
+ uint32_t *count_returned,
+ uint32_t *total_entries,
+ struct netr_UAS_INFO_0 *recordid);
+NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ uint32_t reference,
+ uint32_t level,
+ uint32_t buffersize,
+ struct netr_AccountBuffer *buffer,
+ uint32_t *count_returned,
+ uint32_t *total_entries,
+ uint32_t *next_reference,
+ struct netr_UAS_INFO_0 *recordid);
+NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *domainname,
+ const char **dcname);
+NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ enum netr_LogonControlCode function_code,
+ uint32_t level,
+ union netr_CONTROL_QUERY_INFORMATION *info,
+ WERROR *werror);
+NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *domainname,
+ const char **dcname,
+ WERROR *werror);
+NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ uint32_t function_code,
+ uint32_t level,
+ union netr_CONTROL_DATA_INFORMATION data,
+ union netr_CONTROL_QUERY_INFORMATION *query,
+ WERROR *werror);
+NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Credential *credentials,
+ uint32_t *negotiate_flags);
+NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ enum netr_SamDatabaseID database_id,
+ uint16_t restart_state,
+ uint32_t *sync_context,
+ uint32_t preferredmaximumlength,
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
+NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ const char *computername,
+ struct netr_Authenticator credential,
+ struct netr_Authenticator *return_authenticator,
+ uint8_t *change_log_entry,
+ uint32_t change_log_entry_size,
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
+NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *logon_server,
+ uint32_t function_code,
+ uint32_t level,
+ union netr_CONTROL_DATA_INFORMATION data,
+ union netr_CONTROL_QUERY_INFORMATION *query,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *domain_name,
+ struct GUID *domain_guid,
+ struct GUID *site_guid,
+ uint32_t flags,
+ struct netr_DsRGetDCNameInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Credential *credentials,
+ uint32_t *negotiate_flags,
+ uint32_t *rid);
+NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *domain_name,
+ struct GUID *domain_guid,
+ const char *site_name,
+ uint32_t flags,
+ struct netr_DsRGetDCNameInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *computer_name,
+ const char **site,
+ WERROR *werror);
+NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Authenticator *credential,
+ struct netr_Authenticator *return_authenticator,
+ uint32_t level,
+ union netr_DomainQuery query,
+ union netr_DomainInfo *info);
+NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account_name,
+ enum netr_SchannelType secure_channel_type,
+ const char *computer_name,
+ struct netr_Authenticator credential,
+ struct netr_CryptPassword new_password,
+ struct netr_Authenticator *return_authenticator);
+NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *client_account,
+ uint32_t mask,
+ const char *domain_name,
+ struct GUID *domain_guid,
+ const char *site_name,
+ uint32_t flags,
+ struct netr_DsRGetDCNameInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ uint16_t logon_level,
+ union netr_LogonLevel logon,
+ uint16_t validation_level,
+ union netr_Validation *validation,
+ uint8_t *authoritative,
+ uint32_t *flags);
+NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t trust_flags,
+ uint32_t *count,
+ struct netr_DomainTrust **trusts,
+ WERROR *werror);
+NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *computer_name,
+ struct netr_Authenticator *credential,
+ struct netr_Authenticator *return_authenticator,
+ uint16_t logon_level,
+ union netr_LogonLevel logon,
+ uint16_t validation_level,
+ union netr_Validation *validation,
+ uint8_t *authoritative,
+ uint32_t *flags);
+NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
#endif /* __CLI_NETLOGON__ */
diff --git a/source3/librpc/gen_ndr/cli_srvsvc.c b/source3/librpc/gen_ndr/cli_srvsvc.c
index 9353390e96..2b1d050a14 100644
--- a/source3/librpc/gen_ndr/cli_srvsvc.c
+++ b/source3/librpc/gen_ndr/cli_srvsvc.c
@@ -6,7 +6,15 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_srvsvc.h"
-NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetCharDevCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t *level,
+ union srvsvc_NetCharDevCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetCharDevEnum r;
NTSTATUS status;
@@ -18,17 +26,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCHARDEVENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -50,7 +65,13 @@ NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t level, union srvsvc_NetCharDevInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *device_name,
+ uint32_t level,
+ union srvsvc_NetCharDevInfo *info,
+ WERROR *werror)
{
struct srvsvc_NetCharDevGetInfo r;
NTSTATUS status;
@@ -60,17 +81,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.device_name = device_name;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCHARDEVGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -87,7 +115,12 @@ NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t opcode, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *device_name,
+ uint32_t opcode,
+ WERROR *werror)
{
struct srvsvc_NetCharDevControl r;
NTSTATUS status;
@@ -97,17 +130,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.device_name = device_name;
r.in.opcode = opcode;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVCONTROL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCHARDEVCONTROL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -123,7 +163,16 @@ NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *user, uint32_t *level, union srvsvc_NetCharDevQCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *user,
+ uint32_t *level,
+ union srvsvc_NetCharDevQCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetCharDevQEnum r;
NTSTATUS status;
@@ -136,17 +185,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCHARDEVQENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -168,7 +224,14 @@ NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *user, uint32_t level, union srvsvc_NetCharDevQInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *queue_name,
+ const char *user,
+ uint32_t level,
+ union srvsvc_NetCharDevQInfo *info,
+ WERROR *werror)
{
struct srvsvc_NetCharDevQGetInfo r;
NTSTATUS status;
@@ -179,17 +242,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CT
r.in.user = user;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCHARDEVQGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -206,7 +276,14 @@ NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, uint32_t level, union srvsvc_NetCharDevQInfo info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *queue_name,
+ uint32_t level,
+ union srvsvc_NetCharDevQInfo info,
+ uint32_t *parm_error,
+ WERROR *werror)
{
struct srvsvc_NetCharDevQSetInfo r;
NTSTATUS status;
@@ -218,17 +295,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CT
r.in.info = info;
r.in.parm_error = parm_error;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQSetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQSETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCHARDEVQSETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -247,7 +331,11 @@ NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *queue_name,
+ WERROR *werror)
{
struct srvsvc_NetCharDevQPurge r;
NTSTATUS status;
@@ -256,17 +344,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.server_unc = server_unc;
r.in.queue_name = queue_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQPURGE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCHARDEVQPURGE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -282,7 +377,12 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *computer_name, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *queue_name,
+ const char *computer_name,
+ WERROR *werror)
{
struct srvsvc_NetCharDevQPurgeSelf r;
NTSTATUS status;
@@ -292,17 +392,24 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_
r.in.queue_name = queue_name;
r.in.computer_name = computer_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCHARDEVQPURGESELF, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCHARDEVQPURGESELF,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -318,7 +425,16 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t *level, union srvsvc_NetConnCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path,
+ uint32_t *level,
+ union srvsvc_NetConnCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetConnEnum r;
NTSTATUS status;
@@ -331,17 +447,24 @@ NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetConnEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETCONNENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETCONNENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -363,7 +486,17 @@ NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, const char *user, uint32_t *level, union srvsvc_NetFileCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path,
+ const char *user,
+ uint32_t *level,
+ union srvsvc_NetFileCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetFileEnum r;
NTSTATUS status;
@@ -377,17 +510,24 @@ NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetFileEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETFILEENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETFILEENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -409,7 +549,13 @@ NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, uint32_t level, union srvsvc_NetFileInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t fid,
+ uint32_t level,
+ union srvsvc_NetFileInfo *info,
+ WERROR *werror)
{
struct srvsvc_NetFileGetInfo r;
NTSTATUS status;
@@ -419,17 +565,24 @@ NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.fid = fid;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETFILEGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETFILEGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -446,7 +599,11 @@ NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t fid,
+ WERROR *werror)
{
struct srvsvc_NetFileClose r;
NTSTATUS status;
@@ -455,17 +612,24 @@ NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.server_unc = server_unc;
r.in.fid = fid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETFILECLOSE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETFILECLOSE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -481,7 +645,17 @@ NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, uint32_t *level, union srvsvc_NetSessCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *client,
+ const char *user,
+ uint32_t *level,
+ union srvsvc_NetSessCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetSessEnum r;
NTSTATUS status;
@@ -495,17 +669,24 @@ NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSessEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSESSENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSESSENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -527,7 +708,12 @@ NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *client,
+ const char *user,
+ WERROR *werror)
{
struct srvsvc_NetSessDel r;
NTSTATUS status;
@@ -537,17 +723,24 @@ NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.client = client;
r.in.user = user;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSESSDEL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSESSDEL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -563,7 +756,13 @@ NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetShareInfo info,
+ uint32_t *parm_error,
+ WERROR *werror)
{
struct srvsvc_NetShareAdd r;
NTSTATUS status;
@@ -574,17 +773,24 @@ NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.info = info;
r.in.parm_error = parm_error;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareAdd, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREADD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHAREADD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -603,7 +809,15 @@ NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t *level,
+ union srvsvc_NetShareCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetShareEnumAll r;
NTSTATUS status;
@@ -615,17 +829,24 @@ NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnumAll, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREENUMALL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHAREENUMALL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -647,7 +868,13 @@ NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share_name,
+ uint32_t level,
+ union srvsvc_NetShareInfo *info,
+ WERROR *werror)
{
struct srvsvc_NetShareGetInfo r;
NTSTATUS status;
@@ -657,17 +884,24 @@ NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.share_name = share_name;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHAREGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -684,7 +918,14 @@ NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share_name,
+ uint32_t level,
+ union srvsvc_NetShareInfo info,
+ uint32_t *parm_error,
+ WERROR *werror)
{
struct srvsvc_NetShareSetInfo r;
NTSTATUS status;
@@ -696,17 +937,24 @@ NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.info = info;
r.in.parm_error = parm_error;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareSetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHARESETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHARESETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -725,7 +973,12 @@ NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share_name,
+ uint32_t reserved,
+ WERROR *werror)
{
struct srvsvc_NetShareDel r;
NTSTATUS status;
@@ -735,17 +988,24 @@ NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.share_name = share_name;
r.in.reserved = reserved;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREDEL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHAREDEL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -761,7 +1021,12 @@ NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share_name,
+ uint32_t reserved,
+ WERROR *werror)
{
struct srvsvc_NetShareDelSticky r;
NTSTATUS status;
@@ -771,17 +1036,24 @@ NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.share_name = share_name;
r.in.reserved = reserved;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREDELSTICKY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHAREDELSTICKY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -797,7 +1069,12 @@ NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, enum srvsvc_ShareType *type, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *device_name,
+ enum srvsvc_ShareType *type,
+ WERROR *werror)
{
struct srvsvc_NetShareCheck r;
NTSTATUS status;
@@ -806,17 +1083,24 @@ NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.server_unc = server_unc;
r.in.device_name = device_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareCheck, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHARECHECK, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHARECHECK,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -833,7 +1117,12 @@ NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetSrvInfo *info,
+ WERROR *werror)
{
struct srvsvc_NetSrvGetInfo r;
NTSTATUS status;
@@ -842,17 +1131,24 @@ NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.server_unc = server_unc;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSRVGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSRVGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -869,7 +1165,13 @@ NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetSrvInfo info,
+ uint32_t *parm_error,
+ WERROR *werror)
{
struct srvsvc_NetSrvSetInfo r;
NTSTATUS status;
@@ -880,17 +1182,24 @@ NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.info = info;
r.in.parm_error = parm_error;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSrvSetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSRVSETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSRVSETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -909,7 +1218,15 @@ NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, struct srvsvc_NetDiskInfo *info, uint32_t maxlen, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ struct srvsvc_NetDiskInfo *info,
+ uint32_t maxlen,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetDiskEnum r;
NTSTATUS status;
@@ -921,17 +1238,24 @@ NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.maxlen = maxlen;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetDiskEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETDISKENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETDISKENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -952,7 +1276,14 @@ NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t level, uint32_t options, struct srvsvc_Statistics *stats, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *service,
+ uint32_t level,
+ uint32_t options,
+ struct srvsvc_Statistics *stats,
+ WERROR *werror)
{
struct srvsvc_NetServerStatisticsGet r;
NTSTATUS status;
@@ -963,17 +1294,24 @@ NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLO
r.in.level = level;
r.in.options = options;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSERVERSTATISTICSGET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSERVERSTATISTICSGET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -990,7 +1328,12 @@ NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetTransportInfo info,
+ WERROR *werror)
{
struct srvsvc_NetTransportAdd r;
NTSTATUS status;
@@ -1000,17 +1343,24 @@ NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.level = level;
r.in.info = info;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETTRANSPORTADD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETTRANSPORTADD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1026,7 +1376,15 @@ NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetTransportCtr *transports, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t *level,
+ union srvsvc_NetTransportCtr *transports,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetTransportEnum r;
NTSTATUS status;
@@ -1038,17 +1396,24 @@ NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetTransportEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETTRANSPORTENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETTRANSPORTENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1070,7 +1435,12 @@ NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t unknown, struct srvsvc_NetTransportInfo0 transport, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t unknown,
+ struct srvsvc_NetTransportInfo0 transport,
+ WERROR *werror)
{
struct srvsvc_NetTransportDel r;
NTSTATUS status;
@@ -1080,17 +1450,24 @@ NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.unknown = unknown;
r.in.transport = transport;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETTRANSPORTDEL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETTRANSPORTDEL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1106,7 +1483,11 @@ NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, struct srvsvc_NetRemoteTODInfo *info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ struct srvsvc_NetRemoteTODInfo *info,
+ WERROR *werror)
{
struct srvsvc_NetRemoteTOD r;
NTSTATUS status;
@@ -1114,17 +1495,24 @@ NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem
/* In parameters */
r.in.server_unc = server_unc;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetRemoteTOD, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETREMOTETOD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETREMOTETOD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1143,7 +1531,13 @@ NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *transport, uint32_t servicebits, uint32_t updateimmediately, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *transport,
+ uint32_t servicebits,
+ uint32_t updateimmediately,
+ WERROR *werror)
{
struct srvsvc_NetSetServiceBits r;
NTSTATUS status;
@@ -1154,17 +1548,24 @@ NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.servicebits = servicebits;
r.in.updateimmediately = updateimmediately;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSETSERVICEBITS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSETSERVICEBITS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1180,7 +1581,13 @@ NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t pathflags, uint32_t *pathtype, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path,
+ uint32_t pathflags,
+ uint32_t *pathtype,
+ WERROR *werror)
{
struct srvsvc_NetPathType r;
NTSTATUS status;
@@ -1190,17 +1597,24 @@ NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.path = path;
r.in.pathflags = pathflags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetPathType, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETPATHTYPE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETPATHTYPE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1217,7 +1631,16 @@ NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint8_t *can_path, uint32_t maxbuf, const char *prefix, uint32_t *pathtype, uint32_t pathflags, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path,
+ uint8_t *can_path,
+ uint32_t maxbuf,
+ const char *prefix,
+ uint32_t *pathtype,
+ uint32_t pathflags,
+ WERROR *werror)
{
struct srvsvc_NetPathCanonicalize r;
NTSTATUS status;
@@ -1230,17 +1653,24 @@ NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_C
r.in.pathtype = pathtype;
r.in.pathflags = pathflags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetPathCanonicalize, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETPATHCANONICALIZE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETPATHCANONICALIZE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1258,7 +1688,14 @@ NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path1, const char *path2, uint32_t pathtype, uint32_t pathflags, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path1,
+ const char *path2,
+ uint32_t pathtype,
+ uint32_t pathflags,
+ WERROR *werror)
{
struct srvsvc_NetPathCompare r;
NTSTATUS status;
@@ -1270,17 +1707,24 @@ NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.pathtype = pathtype;
r.in.pathflags = pathflags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETPATHCOMPARE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETPATHCOMPARE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1296,7 +1740,13 @@ NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name, uint32_t name_type, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *name,
+ uint32_t name_type,
+ uint32_t flags,
+ WERROR *werror)
{
struct srvsvc_NetNameValidate r;
NTSTATUS status;
@@ -1307,17 +1757,24 @@ NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.name_type = name_type;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETNAMEVALIDATE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETNAMEVALIDATE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1333,24 +1790,33 @@ NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRPRNAMECANONICALIZE r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRPRNAMECANONICALIZE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRPRNAMECANONICALIZE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1366,7 +1832,14 @@ NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name1, const char *name2, uint32_t name_type, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *name1,
+ const char *name2,
+ uint32_t name_type,
+ uint32_t flags,
+ WERROR *werror)
{
struct srvsvc_NetPRNameCompare r;
NTSTATUS status;
@@ -1378,17 +1851,24 @@ NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.name_type = name_type;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETPRNAMECOMPARE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETPRNAMECOMPARE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1404,7 +1884,15 @@ NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t *level,
+ union srvsvc_NetShareCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct srvsvc_NetShareEnum r;
NTSTATUS status;
@@ -1416,17 +1904,24 @@ NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHAREENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1448,7 +1943,13 @@ NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, uint32_t reserved, struct policy_handle *hnd, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share,
+ uint32_t reserved,
+ struct policy_handle *hnd,
+ WERROR *werror)
{
struct srvsvc_NetShareDelStart r;
NTSTATUS status;
@@ -1458,17 +1959,24 @@ NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.share = share;
r.in.reserved = reserved;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREDELSTART, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHAREDELSTART,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1487,7 +1995,10 @@ NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *hnd, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *hnd,
+ WERROR *werror)
{
struct srvsvc_NetShareDelCommit r;
NTSTATUS status;
@@ -1495,17 +2006,24 @@ NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX
/* In parameters */
r.in.hnd = hnd;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSHAREDELCOMMIT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSHAREDELCOMMIT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1524,7 +2042,14 @@ NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf *sd_buf, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share,
+ const char *file,
+ uint32_t securityinformation,
+ struct sec_desc_buf *sd_buf,
+ WERROR *werror)
{
struct srvsvc_NetGetFileSecurity r;
NTSTATUS status;
@@ -1535,17 +2060,24 @@ NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
r.in.file = file;
r.in.securityinformation = securityinformation;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETGETFILESECURITY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETGETFILESECURITY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1564,7 +2096,14 @@ NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf sd_buf, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share,
+ const char *file,
+ uint32_t securityinformation,
+ struct sec_desc_buf sd_buf,
+ WERROR *werror)
{
struct srvsvc_NetSetFileSecurity r;
NTSTATUS status;
@@ -1576,17 +2115,24 @@ NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
r.in.securityinformation = securityinformation;
r.in.sd_buf = sd_buf;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSETFILESECURITY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSETFILESECURITY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1602,7 +2148,12 @@ NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetTransportInfo info,
+ WERROR *werror)
{
struct srvsvc_NetServerTransportAddEx r;
NTSTATUS status;
@@ -1612,17 +2163,24 @@ NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALL
r.in.level = level;
r.in.info = info;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSERVERTRANSPORTADDEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSERVERTRANSPORTADDEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1638,7 +2196,15 @@ NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALL
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *emulated_server_unc, const char *transport, uint32_t servicebitsofinterest, uint32_t servicebits, uint32_t updateimmediately, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *emulated_server_unc,
+ const char *transport,
+ uint32_t servicebitsofinterest,
+ uint32_t servicebits,
+ uint32_t updateimmediately,
+ WERROR *werror)
{
struct srvsvc_NetServerSetServiceBitsEx r;
NTSTATUS status;
@@ -1651,17 +2217,24 @@ NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TA
r.in.servicebits = servicebits;
r.in.updateimmediately = updateimmediately;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETSERVERSETSERVICEBITSEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETSERVERSETSERVICEBITSEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1677,24 +2250,33 @@ NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TA
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSGETVERSION r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSGETVERSION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSGETVERSION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1710,24 +2292,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSCREATELOCALPARTITION r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSCREATELOCALPARTITION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSCREATELOCALPARTITION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1743,24 +2334,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSDELETELOCALPARTITION r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSDELETELOCALPARTITION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSDELETELOCALPARTITION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1776,24 +2376,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSSETLOCALVOLUMESTATE r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1809,24 +2418,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, T
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSSETSERVERINFO r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSSETSERVERINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSSETSERVERINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1842,24 +2460,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSCREATEEXITPOINT r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSCREATEEXITPOINT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSCREATEEXITPOINT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1875,24 +2502,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSDELETEEXITPOINT r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSDELETEEXITPOINT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSDELETEEXITPOINT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1908,24 +2544,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSMODIFYPREFIX r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSMODIFYPREFIX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSMODIFYPREFIX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1941,24 +2586,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSFIXLOCALVOLUME r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSFIXLOCALVOLUME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSFIXLOCALVOLUME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1974,24 +2628,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRDFSMANAGERREPORTSITEINFO r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -2007,24 +2670,33 @@ NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct srvsvc_NETRSERVERTRANSPORTDELEX r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, &ndr_table_srvsvc, NDR_SRVSVC_NETRSERVERTRANSPORTDELEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SRVSVC,
+ &ndr_table_srvsvc,
+ NDR_SRVSVC_NETRSERVERTRANSPORTDELEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_srvsvc.h b/source3/librpc/gen_ndr/cli_srvsvc.h
index 7f9385b985..eb19db37bd 100644
--- a/source3/librpc/gen_ndr/cli_srvsvc.h
+++ b/source3/librpc/gen_ndr/cli_srvsvc.h
@@ -1,58 +1,352 @@
#include "librpc/gen_ndr/ndr_srvsvc.h"
#ifndef __CLI_SRVSVC__
#define __CLI_SRVSVC__
-NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetCharDevCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t level, union srvsvc_NetCharDevInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t opcode, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *user, uint32_t *level, union srvsvc_NetCharDevQCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *user, uint32_t level, union srvsvc_NetCharDevQInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, uint32_t level, union srvsvc_NetCharDevQInfo info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *computer_name, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t *level, union srvsvc_NetConnCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, const char *user, uint32_t *level, union srvsvc_NetFileCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, uint32_t level, union srvsvc_NetFileInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, uint32_t *level, union srvsvc_NetSessCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, enum srvsvc_ShareType *type, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, struct srvsvc_NetDiskInfo *info, uint32_t maxlen, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t level, uint32_t options, struct srvsvc_Statistics *stats, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetTransportCtr *transports, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t unknown, struct srvsvc_NetTransportInfo0 transport, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, struct srvsvc_NetRemoteTODInfo *info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *transport, uint32_t servicebits, uint32_t updateimmediately, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t pathflags, uint32_t *pathtype, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint8_t *can_path, uint32_t maxbuf, const char *prefix, uint32_t *pathtype, uint32_t pathflags, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path1, const char *path2, uint32_t pathtype, uint32_t pathflags, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name, uint32_t name_type, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name1, const char *name2, uint32_t name_type, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, uint32_t reserved, struct policy_handle *hnd, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *hnd, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf *sd_buf, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf sd_buf, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *emulated_server_unc, const char *transport, uint32_t servicebitsofinterest, uint32_t servicebits, uint32_t updateimmediately, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t *level,
+ union srvsvc_NetCharDevCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *device_name,
+ uint32_t level,
+ union srvsvc_NetCharDevInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *device_name,
+ uint32_t opcode,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *user,
+ uint32_t *level,
+ union srvsvc_NetCharDevQCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *queue_name,
+ const char *user,
+ uint32_t level,
+ union srvsvc_NetCharDevQInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *queue_name,
+ uint32_t level,
+ union srvsvc_NetCharDevQInfo info,
+ uint32_t *parm_error,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *queue_name,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *queue_name,
+ const char *computer_name,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path,
+ uint32_t *level,
+ union srvsvc_NetConnCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path,
+ const char *user,
+ uint32_t *level,
+ union srvsvc_NetFileCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t fid,
+ uint32_t level,
+ union srvsvc_NetFileInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t fid,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *client,
+ const char *user,
+ uint32_t *level,
+ union srvsvc_NetSessCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *client,
+ const char *user,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetShareInfo info,
+ uint32_t *parm_error,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t *level,
+ union srvsvc_NetShareCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share_name,
+ uint32_t level,
+ union srvsvc_NetShareInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share_name,
+ uint32_t level,
+ union srvsvc_NetShareInfo info,
+ uint32_t *parm_error,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share_name,
+ uint32_t reserved,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share_name,
+ uint32_t reserved,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *device_name,
+ enum srvsvc_ShareType *type,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetSrvInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetSrvInfo info,
+ uint32_t *parm_error,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ struct srvsvc_NetDiskInfo *info,
+ uint32_t maxlen,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *service,
+ uint32_t level,
+ uint32_t options,
+ struct srvsvc_Statistics *stats,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetTransportInfo info,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t *level,
+ union srvsvc_NetTransportCtr *transports,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t unknown,
+ struct srvsvc_NetTransportInfo0 transport,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ struct srvsvc_NetRemoteTODInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *transport,
+ uint32_t servicebits,
+ uint32_t updateimmediately,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path,
+ uint32_t pathflags,
+ uint32_t *pathtype,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path,
+ uint8_t *can_path,
+ uint32_t maxbuf,
+ const char *prefix,
+ uint32_t *pathtype,
+ uint32_t pathflags,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *path1,
+ const char *path2,
+ uint32_t pathtype,
+ uint32_t pathflags,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *name,
+ uint32_t name_type,
+ uint32_t flags,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *name1,
+ const char *name2,
+ uint32_t name_type,
+ uint32_t flags,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t *level,
+ union srvsvc_NetShareCtr *ctr,
+ uint32_t max_buffer,
+ uint32_t *totalentries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share,
+ uint32_t reserved,
+ struct policy_handle *hnd,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *hnd,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share,
+ const char *file,
+ uint32_t securityinformation,
+ struct sec_desc_buf *sd_buf,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *share,
+ const char *file,
+ uint32_t securityinformation,
+ struct sec_desc_buf sd_buf,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ uint32_t level,
+ union srvsvc_NetTransportInfo info,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_unc,
+ const char *emulated_server_unc,
+ const char *transport,
+ uint32_t servicebitsofinterest,
+ uint32_t servicebits,
+ uint32_t updateimmediately,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
#endif /* __CLI_SRVSVC__ */
diff --git a/source3/librpc/gen_ndr/cli_svcctl.c b/source3/librpc/gen_ndr/cli_svcctl.c
index 3266e0c3c5..2a5d6badc6 100644
--- a/source3/librpc/gen_ndr/cli_svcctl.c
+++ b/source3/librpc/gen_ndr/cli_svcctl.c
@@ -6,7 +6,10 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_svcctl.h"
-NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct svcctl_CloseServiceHandle r;
NTSTATUS status;
@@ -14,17 +17,24 @@ NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CT
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_CloseServiceHandle, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CLOSESERVICEHANDLE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_CLOSESERVICEHANDLE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_CloseServiceHandle, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -41,7 +51,12 @@ NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t control, struct SERVICE_STATUS *service_status, WERROR *werror)
+NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t control,
+ struct SERVICE_STATUS *service_status,
+ WERROR *werror)
{
struct svcctl_ControlService r;
NTSTATUS status;
@@ -50,17 +65,24 @@ NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.handle = handle;
r.in.control = control;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ControlService, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CONTROLSERVICE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_CONTROLSERVICE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ControlService, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -77,7 +99,10 @@ NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct svcctl_DeleteService r;
NTSTATUS status;
@@ -85,17 +110,24 @@ NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *me
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_DeleteService, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_DELETESERVICE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_DELETESERVICE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_DeleteService, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -111,7 +143,11 @@ NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct policy_handle *lock, WERROR *werror)
+NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct policy_handle *lock,
+ WERROR *werror)
{
struct svcctl_LockServiceDatabase r;
NTSTATUS status;
@@ -119,17 +155,24 @@ NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_C
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_LockServiceDatabase, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_LOCKSERVICEDATABASE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_LOCKSERVICEDATABASE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_LockServiceDatabase, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -146,24 +189,33 @@ NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct svcctl_QueryServiceObjectSecurity r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceObjectSecurity, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICEOBJECTSECURITY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICEOBJECTSECURITY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceObjectSecurity, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -179,24 +231,33 @@ NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli, T
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct svcctl_SetServiceObjectSecurity r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SetServiceObjectSecurity, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SETSERVICEOBJECTSECURITY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_SETSERVICEOBJECTSECURITY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SetServiceObjectSecurity, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -212,7 +273,11 @@ NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli, TAL
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct SERVICE_STATUS *service_status, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct SERVICE_STATUS *service_status,
+ WERROR *werror)
{
struct svcctl_QueryServiceStatus r;
NTSTATUS status;
@@ -220,17 +285,24 @@ NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CT
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatus, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICESTATUS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICESTATUS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatus, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -247,24 +319,33 @@ NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct svcctl_SetServiceStatus r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SetServiceStatus, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SETSERVICESTATUS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_SETSERVICESTATUS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SetServiceStatus, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -280,7 +361,10 @@ NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *lock, WERROR *werror)
+NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *lock,
+ WERROR *werror)
{
struct svcctl_UnlockServiceDatabase r;
NTSTATUS status;
@@ -288,17 +372,24 @@ NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC
/* In parameters */
r.in.lock = lock;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_UnlockServiceDatabase, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_UNLOCKSERVICEDATABASE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_UNLOCKSERVICEDATABASE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_UnlockServiceDatabase, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -315,24 +406,33 @@ NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct svcctl_NotifyBootConfigStatus r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_NotifyBootConfigStatus, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_NOTIFYBOOTCONFIGSTATUS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_NOTIFYBOOTCONFIGSTATUS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_NotifyBootConfigStatus, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -348,7 +448,13 @@ NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate, WERROR *werror)
+NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t bits,
+ uint32_t bitson,
+ uint32_t immediate,
+ WERROR *werror)
{
struct svcctl_SCSetServiceBitsW r;
NTSTATUS status;
@@ -359,17 +465,24 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.bitson = bitson;
r.in.immediate = immediate;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSETSERVICEBITSW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_SCSETSERVICEBITSW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -385,7 +498,20 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name, WERROR *werror)
+NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t type,
+ uint32_t start,
+ uint32_t error,
+ const char *binary_path,
+ const char *load_order_group,
+ uint32_t *tag_id,
+ const char *dependencies,
+ const char *service_start_name,
+ const char *password,
+ const char *display_name,
+ WERROR *werror)
{
struct svcctl_ChangeServiceConfigW r;
NTSTATUS status;
@@ -402,17 +528,24 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_
r.in.password = password;
r.in.display_name = display_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIGW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_CHANGESERVICECONFIGW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -429,7 +562,25 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, uint8_t *dependencies, uint32_t dependencies_size, const char *service_start_name, uint8_t *password, uint32_t password_size, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager_handle,
+ const char *ServiceName,
+ const char *DisplayName,
+ uint32_t desired_access,
+ uint32_t type,
+ uint32_t start_type,
+ uint32_t error_control,
+ const char *binary_path,
+ const char *LoadOrderGroupKey,
+ uint32_t *TagId,
+ uint8_t *dependencies,
+ uint32_t dependencies_size,
+ const char *service_start_name,
+ uint8_t *password,
+ uint32_t password_size,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct svcctl_CreateServiceW r;
NTSTATUS status;
@@ -451,17 +602,24 @@ NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.password = password;
r.in.password_size = password_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_CreateServiceW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CREATESERVICEW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_CREATESERVICEW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -481,7 +639,15 @@ NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *service_status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *service,
+ uint32_t state,
+ struct ENUM_SERVICE_STATUS *service_status,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ uint32_t *services_returned,
+ WERROR *werror)
{
struct svcctl_EnumDependentServicesW r;
NTSTATUS status;
@@ -491,17 +657,24 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLO
r.in.state = state;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMDEPENDENTSERVICESW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_ENUMDEPENDENTSERVICESW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -522,7 +695,17 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t type,
+ uint32_t state,
+ uint32_t buf_size,
+ uint8_t *service,
+ uint32_t *bytes_needed,
+ uint32_t *services_returned,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct svcctl_EnumServicesStatusW r;
NTSTATUS status;
@@ -534,17 +717,24 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_C
r.in.buf_size = buf_size;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICESSTATUSW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_ENUMSERVICESSTATUSW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -566,7 +756,13 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *MachineName,
+ const char *DatabaseName,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct svcctl_OpenSCManagerW r;
NTSTATUS status;
@@ -576,17 +772,24 @@ NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.DatabaseName = DatabaseName;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSCMANAGERW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_OPENSCMANAGERW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -603,7 +806,13 @@ NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager_handle,
+ const char *ServiceName,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct svcctl_OpenServiceW r;
NTSTATUS status;
@@ -613,17 +822,24 @@ NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.ServiceName = ServiceName;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_OpenServiceW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSERVICEW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_OPENSERVICEW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -640,7 +856,13 @@ NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint8_t *query,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror)
{
struct svcctl_QueryServiceConfigW r;
NTSTATUS status;
@@ -649,17 +871,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_C
r.in.handle = handle;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIGW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICECONFIGW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -677,7 +906,13 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *lock_status, uint32_t *required_buf_size, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t buf_size,
+ struct SERVICE_LOCK_STATUS *lock_status,
+ uint32_t *required_buf_size,
+ WERROR *werror)
{
struct svcctl_QueryServiceLockStatusW r;
NTSTATUS status;
@@ -686,17 +921,24 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALL
r.in.handle = handle;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICELOCKSTATUSW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICELOCKSTATUSW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -714,7 +956,12 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALL
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments, WERROR *werror)
+NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t NumArgs,
+ const char *Arguments,
+ WERROR *werror)
{
struct svcctl_StartServiceW r;
NTSTATUS status;
@@ -724,17 +971,24 @@ NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.NumArgs = NumArgs;
r.in.Arguments = Arguments;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_StartServiceW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_STARTSERVICEW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_STARTSERVICEW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_StartServiceW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -750,7 +1004,13 @@ NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *service_name,
+ const char **display_name,
+ uint32_t *display_name_length,
+ WERROR *werror)
{
struct svcctl_GetServiceDisplayNameW r;
NTSTATUS status;
@@ -760,17 +1020,24 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLO
r.in.service_name = service_name;
r.in.display_name_length = display_name_length;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEDISPLAYNAMEW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_GETSERVICEDISPLAYNAMEW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -790,7 +1057,13 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *service_name,
+ const char **key_name,
+ uint32_t *display_name_length,
+ WERROR *werror)
{
struct svcctl_GetServiceKeyNameW r;
NTSTATUS status;
@@ -800,17 +1073,24 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CT
r.in.service_name = service_name;
r.in.display_name_length = display_name_length;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEKEYNAMEW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_GETSERVICEKEYNAMEW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -830,7 +1110,13 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate, WERROR *werror)
+NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t bits,
+ uint32_t bitson,
+ uint32_t immediate,
+ WERROR *werror)
{
struct svcctl_SCSetServiceBitsA r;
NTSTATUS status;
@@ -841,17 +1127,24 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.bitson = bitson;
r.in.immediate = immediate;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSETSERVICEBITSA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_SCSETSERVICEBITSA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -867,7 +1160,20 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name, WERROR *werror)
+NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t type,
+ uint32_t start,
+ uint32_t error,
+ const char *binary_path,
+ const char *load_order_group,
+ uint32_t *tag_id,
+ const char *dependencies,
+ const char *service_start_name,
+ const char *password,
+ const char *display_name,
+ WERROR *werror)
{
struct svcctl_ChangeServiceConfigA r;
NTSTATUS status;
@@ -884,17 +1190,24 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_
r.in.password = password;
r.in.display_name = display_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIGA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_CHANGESERVICECONFIGA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -911,7 +1224,22 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, const char *dependencies, const char *service_start_name, const char *password, WERROR *werror)
+NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *ServiceName,
+ const char *DisplayName,
+ uint32_t desired_access,
+ uint32_t type,
+ uint32_t start_type,
+ uint32_t error_control,
+ const char *binary_path,
+ const char *LoadOrderGroupKey,
+ uint32_t *TagId,
+ const char *dependencies,
+ const char *service_start_name,
+ const char *password,
+ WERROR *werror)
{
struct svcctl_CreateServiceA r;
NTSTATUS status;
@@ -930,17 +1258,24 @@ NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.service_start_name = service_start_name;
r.in.password = password;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_CreateServiceA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CREATESERVICEA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_CREATESERVICEA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -959,7 +1294,15 @@ NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *service_status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *service,
+ uint32_t state,
+ struct ENUM_SERVICE_STATUS *service_status,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ uint32_t *services_returned,
+ WERROR *werror)
{
struct svcctl_EnumDependentServicesA r;
NTSTATUS status;
@@ -969,17 +1312,24 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLO
r.in.state = state;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMDEPENDENTSERVICESA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_ENUMDEPENDENTSERVICESA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1000,7 +1350,17 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t type,
+ uint32_t state,
+ uint32_t buf_size,
+ uint8_t *service,
+ uint32_t *bytes_needed,
+ uint32_t *services_returned,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct svcctl_EnumServicesStatusA r;
NTSTATUS status;
@@ -1012,17 +1372,24 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_C
r.in.buf_size = buf_size;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICESSTATUSA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_ENUMSERVICESSTATUSA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1044,7 +1411,13 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *MachineName,
+ const char *DatabaseName,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct svcctl_OpenSCManagerA r;
NTSTATUS status;
@@ -1054,17 +1427,24 @@ NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.DatabaseName = DatabaseName;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSCMANAGERA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_OPENSCMANAGERA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1081,7 +1461,12 @@ NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, WERROR *werror)
+NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager_handle,
+ const char *ServiceName,
+ uint32_t access_mask,
+ WERROR *werror)
{
struct svcctl_OpenServiceA r;
NTSTATUS status;
@@ -1091,17 +1476,24 @@ NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.ServiceName = ServiceName;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_OpenServiceA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSERVICEA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_OPENSERVICEA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1117,7 +1509,13 @@ NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint8_t *query,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror)
{
struct svcctl_QueryServiceConfigA r;
NTSTATUS status;
@@ -1126,17 +1524,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_C
r.in.handle = handle;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIGA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICECONFIGA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1154,7 +1559,13 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *lock_status, uint32_t *required_buf_size, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t buf_size,
+ struct SERVICE_LOCK_STATUS *lock_status,
+ uint32_t *required_buf_size,
+ WERROR *werror)
{
struct svcctl_QueryServiceLockStatusA r;
NTSTATUS status;
@@ -1163,17 +1574,24 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALL
r.in.handle = handle;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICELOCKSTATUSA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICELOCKSTATUSA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1191,7 +1609,12 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALL
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments, WERROR *werror)
+NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t NumArgs,
+ const char *Arguments,
+ WERROR *werror)
{
struct svcctl_StartServiceA r;
NTSTATUS status;
@@ -1201,17 +1624,24 @@ NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.NumArgs = NumArgs;
r.in.Arguments = Arguments;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_StartServiceA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_STARTSERVICEA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_STARTSERVICEA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_StartServiceA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1227,7 +1657,13 @@ NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *me
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *service_name,
+ const char **display_name,
+ uint32_t *display_name_length,
+ WERROR *werror)
{
struct svcctl_GetServiceDisplayNameA r;
NTSTATUS status;
@@ -1237,17 +1673,24 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLO
r.in.service_name = service_name;
r.in.display_name_length = display_name_length;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEDISPLAYNAMEA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_GETSERVICEDISPLAYNAMEA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1267,7 +1710,13 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *service_name,
+ const char **key_name,
+ uint32_t *display_name_length,
+ WERROR *werror)
{
struct svcctl_GetServiceKeyNameA r;
NTSTATUS status;
@@ -1277,17 +1726,24 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CT
r.in.service_name = service_name;
r.in.display_name_length = display_name_length;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEKEYNAMEA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_GETSERVICEKEYNAMEA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1307,24 +1763,33 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct svcctl_GetCurrentGroupeStateW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetCurrentGroupeStateW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETCURRENTGROUPESTATEW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_GETCURRENTGROUPESTATEW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetCurrentGroupeStateW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1340,24 +1805,33 @@ NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct svcctl_EnumServiceGroupW r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumServiceGroupW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICEGROUPW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_ENUMSERVICEGROUPW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumServiceGroupW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1373,7 +1847,12 @@ NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *info, WERROR *werror)
+NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *info,
+ WERROR *werror)
{
struct svcctl_ChangeServiceConfig2A r;
NTSTATUS status;
@@ -1383,17 +1862,24 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC
r.in.info_level = info_level;
r.in.info = info;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2A, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIG2A, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_CHANGESERVICECONFIG2A,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2A, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1409,7 +1895,12 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *info, WERROR *werror)
+NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *info,
+ WERROR *werror)
{
struct svcctl_ChangeServiceConfig2W r;
NTSTATUS status;
@@ -1419,17 +1910,24 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC
r.in.info_level = info_level;
r.in.info = info;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2W, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIG2W, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_CHANGESERVICECONFIG2W,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2W, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1445,7 +1943,14 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *buffer,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror)
{
struct svcctl_QueryServiceConfig2A r;
NTSTATUS status;
@@ -1455,17 +1960,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_
r.in.info_level = info_level;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2A, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIG2A, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICECONFIG2A,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2A, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1483,7 +1995,14 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *buffer,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror)
{
struct svcctl_QueryServiceConfig2W r;
NTSTATUS status;
@@ -1493,17 +2012,24 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_
r.in.info_level = info_level;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2W, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIG2W, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICECONFIG2W,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2W, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1521,7 +2047,14 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror)
+NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *buffer,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror)
{
struct svcctl_QueryServiceStatusEx r;
NTSTATUS status;
@@ -1531,17 +2064,24 @@ NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_
r.in.info_level = info_level;
r.in.buf_size = buf_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatusEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICESTATUSEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_QUERYSERVICESTATUSEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatusEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1559,7 +2099,19 @@ NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name, WERROR *werror)
+NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager,
+ uint32_t info_level,
+ uint32_t type,
+ uint32_t state,
+ uint8_t *services,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ uint32_t *service_returned,
+ uint32_t *resume_handle,
+ const char **group_name,
+ WERROR *werror)
{
struct EnumServicesStatusExA r;
NTSTATUS status;
@@ -1572,17 +2124,24 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.buf_size = buf_size;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(EnumServicesStatusExA, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_ENUMSERVICESSTATUSEXA, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_ENUMSERVICESSTATUSEXA,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(EnumServicesStatusExA, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1605,7 +2164,19 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name, WERROR *werror)
+NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager,
+ uint32_t info_level,
+ uint32_t type,
+ uint32_t state,
+ uint8_t *services,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ uint32_t *service_returned,
+ uint32_t *resume_handle,
+ const char **group_name,
+ WERROR *werror)
{
struct EnumServicesStatusExW r;
NTSTATUS status;
@@ -1618,17 +2189,24 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.buf_size = buf_size;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(EnumServicesStatusExW, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_ENUMSERVICESSTATUSEXW, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_ENUMSERVICESSTATUSEXW,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(EnumServicesStatusExW, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1651,24 +2229,33 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct svcctl_SCSendTSMessage r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SCSendTSMessage, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSENDTSMESSAGE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_SVCCTL,
+ &ndr_table_svcctl,
+ NDR_SVCCTL_SCSENDTSMESSAGE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SCSendTSMessage, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_svcctl.h b/source3/librpc/gen_ndr/cli_svcctl.h
index 77e9e8d6da..e9eeb2d9e2 100644
--- a/source3/librpc/gen_ndr/cli_svcctl.h
+++ b/source3/librpc/gen_ndr/cli_svcctl.h
@@ -1,48 +1,327 @@
#include "librpc/gen_ndr/ndr_svcctl.h"
#ifndef __CLI_SVCCTL__
#define __CLI_SVCCTL__
-NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t control, struct SERVICE_STATUS *service_status, WERROR *werror);
-NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct policy_handle *lock, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct SERVICE_STATUS *service_status, WERROR *werror);
-NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *lock, WERROR *werror);
-NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate, WERROR *werror);
-NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name, WERROR *werror);
-NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, uint8_t *dependencies, uint32_t dependencies_size, const char *service_start_name, uint8_t *password, uint32_t password_size, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *service_status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *lock_status, uint32_t *required_buf_size, WERROR *werror);
-NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length, WERROR *werror);
-NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate, WERROR *werror);
-NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name, WERROR *werror);
-NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, const char *dependencies, const char *service_start_name, const char *password, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *service_status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *lock_status, uint32_t *required_buf_size, WERROR *werror);
-NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length, WERROR *werror);
-NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *info, WERROR *werror);
-NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *info, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed, WERROR *werror);
-NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name, WERROR *werror);
-NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name, WERROR *werror);
-NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t control,
+ struct SERVICE_STATUS *service_status,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct policy_handle *lock,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct SERVICE_STATUS *service_status,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *lock,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t bits,
+ uint32_t bitson,
+ uint32_t immediate,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t type,
+ uint32_t start,
+ uint32_t error,
+ const char *binary_path,
+ const char *load_order_group,
+ uint32_t *tag_id,
+ const char *dependencies,
+ const char *service_start_name,
+ const char *password,
+ const char *display_name,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager_handle,
+ const char *ServiceName,
+ const char *DisplayName,
+ uint32_t desired_access,
+ uint32_t type,
+ uint32_t start_type,
+ uint32_t error_control,
+ const char *binary_path,
+ const char *LoadOrderGroupKey,
+ uint32_t *TagId,
+ uint8_t *dependencies,
+ uint32_t dependencies_size,
+ const char *service_start_name,
+ uint8_t *password,
+ uint32_t password_size,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *service,
+ uint32_t state,
+ struct ENUM_SERVICE_STATUS *service_status,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ uint32_t *services_returned,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t type,
+ uint32_t state,
+ uint32_t buf_size,
+ uint8_t *service,
+ uint32_t *bytes_needed,
+ uint32_t *services_returned,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *MachineName,
+ const char *DatabaseName,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager_handle,
+ const char *ServiceName,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint8_t *query,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t buf_size,
+ struct SERVICE_LOCK_STATUS *lock_status,
+ uint32_t *required_buf_size,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t NumArgs,
+ const char *Arguments,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *service_name,
+ const char **display_name,
+ uint32_t *display_name_length,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *service_name,
+ const char **key_name,
+ uint32_t *display_name_length,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t bits,
+ uint32_t bitson,
+ uint32_t immediate,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t type,
+ uint32_t start,
+ uint32_t error,
+ const char *binary_path,
+ const char *load_order_group,
+ uint32_t *tag_id,
+ const char *dependencies,
+ const char *service_start_name,
+ const char *password,
+ const char *display_name,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *ServiceName,
+ const char *DisplayName,
+ uint32_t desired_access,
+ uint32_t type,
+ uint32_t start_type,
+ uint32_t error_control,
+ const char *binary_path,
+ const char *LoadOrderGroupKey,
+ uint32_t *TagId,
+ const char *dependencies,
+ const char *service_start_name,
+ const char *password,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *service,
+ uint32_t state,
+ struct ENUM_SERVICE_STATUS *service_status,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ uint32_t *services_returned,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t type,
+ uint32_t state,
+ uint32_t buf_size,
+ uint8_t *service,
+ uint32_t *bytes_needed,
+ uint32_t *services_returned,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *MachineName,
+ const char *DatabaseName,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager_handle,
+ const char *ServiceName,
+ uint32_t access_mask,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint8_t *query,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t buf_size,
+ struct SERVICE_LOCK_STATUS *lock_status,
+ uint32_t *required_buf_size,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t NumArgs,
+ const char *Arguments,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *service_name,
+ const char **display_name,
+ uint32_t *display_name_length,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ const char *service_name,
+ const char **key_name,
+ uint32_t *display_name_length,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *info,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *info,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *buffer,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *buffer,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t info_level,
+ uint8_t *buffer,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ WERROR *werror);
+NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager,
+ uint32_t info_level,
+ uint32_t type,
+ uint32_t state,
+ uint8_t *services,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ uint32_t *service_returned,
+ uint32_t *resume_handle,
+ const char **group_name,
+ WERROR *werror);
+NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *scmanager,
+ uint32_t info_level,
+ uint32_t type,
+ uint32_t state,
+ uint8_t *services,
+ uint32_t buf_size,
+ uint32_t *bytes_needed,
+ uint32_t *service_returned,
+ uint32_t *resume_handle,
+ const char **group_name,
+ WERROR *werror);
+NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
#endif /* __CLI_SVCCTL__ */
diff --git a/source3/librpc/gen_ndr/cli_unixinfo.c b/source3/librpc/gen_ndr/cli_unixinfo.c
index c8b9a01f3d..c8a6c926ef 100644
--- a/source3/librpc/gen_ndr/cli_unixinfo.c
+++ b/source3/librpc/gen_ndr/cli_unixinfo.c
@@ -6,7 +6,10 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_unixinfo.h"
-NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *uid)
+NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct dom_sid sid,
+ uint64_t *uid)
{
struct unixinfo_SidToUid r;
NTSTATUS status;
@@ -14,17 +17,24 @@ NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* In parameters */
r.in.sid = sid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_SIDTOUID, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_UNIXINFO,
+ &ndr_table_unixinfo,
+ NDR_UNIXINFO_SIDTOUID,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -37,7 +47,10 @@ NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t uid, struct dom_sid *sid)
+NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint64_t uid,
+ struct dom_sid *sid)
{
struct unixinfo_UidToSid r;
NTSTATUS status;
@@ -45,17 +58,24 @@ NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* In parameters */
r.in.uid = uid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_UIDTOSID, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_UNIXINFO,
+ &ndr_table_unixinfo,
+ NDR_UNIXINFO_UIDTOSID,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -68,7 +88,10 @@ NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *gid)
+NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct dom_sid sid,
+ uint64_t *gid)
{
struct unixinfo_SidToGid r;
NTSTATUS status;
@@ -76,17 +99,24 @@ NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* In parameters */
r.in.sid = sid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_SIDTOGID, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_UNIXINFO,
+ &ndr_table_unixinfo,
+ NDR_UNIXINFO_SIDTOGID,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -99,7 +129,10 @@ NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t gid, struct dom_sid *sid)
+NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint64_t gid,
+ struct dom_sid *sid)
{
struct unixinfo_GidToSid r;
NTSTATUS status;
@@ -107,17 +140,24 @@ NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* In parameters */
r.in.gid = gid;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_GIDTOSID, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_UNIXINFO,
+ &ndr_table_unixinfo,
+ NDR_UNIXINFO_GIDTOSID,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -130,7 +170,11 @@ NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return r.out.result;
}
-NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *count, uint64_t *uids, struct unixinfo_GetPWUidInfo *infos)
+NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t *count,
+ uint64_t *uids,
+ struct unixinfo_GetPWUidInfo *infos)
{
struct unixinfo_GetPWUid r;
NTSTATUS status;
@@ -139,17 +183,24 @@ NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.count = count;
r.in.uids = uids;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_GETPWUID, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_UNIXINFO,
+ &ndr_table_unixinfo,
+ NDR_UNIXINFO_GETPWUID,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_unixinfo.h b/source3/librpc/gen_ndr/cli_unixinfo.h
index f0f2b54626..fa084cc75d 100644
--- a/source3/librpc/gen_ndr/cli_unixinfo.h
+++ b/source3/librpc/gen_ndr/cli_unixinfo.h
@@ -1,9 +1,25 @@
#include "librpc/gen_ndr/ndr_unixinfo.h"
#ifndef __CLI_UNIXINFO__
#define __CLI_UNIXINFO__
-NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *uid);
-NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t uid, struct dom_sid *sid);
-NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *gid);
-NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t gid, struct dom_sid *sid);
-NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *count, uint64_t *uids, struct unixinfo_GetPWUidInfo *infos);
+NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct dom_sid sid,
+ uint64_t *uid);
+NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint64_t uid,
+ struct dom_sid *sid);
+NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct dom_sid sid,
+ uint64_t *gid);
+NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint64_t gid,
+ struct dom_sid *sid);
+NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32_t *count,
+ uint64_t *uids,
+ struct unixinfo_GetPWUidInfo *infos);
#endif /* __CLI_UNIXINFO__ */
diff --git a/source3/librpc/gen_ndr/cli_winreg.c b/source3/librpc/gen_ndr/cli_winreg.c
index 934dfc17b6..1c691e3d32 100644
--- a/source3/librpc/gen_ndr/cli_winreg.c
+++ b/source3/librpc/gen_ndr/cli_winreg.c
@@ -6,7 +6,12 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_winreg.h"
-NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKCR r;
NTSTATUS status;
@@ -15,17 +20,24 @@ NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCR, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKCR,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -42,7 +54,12 @@ NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKCU r;
NTSTATUS status;
@@ -51,17 +68,24 @@ NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCU, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKCU,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -78,7 +102,12 @@ NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKLM r;
NTSTATUS status;
@@ -87,17 +116,24 @@ NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKLM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKLM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -114,7 +150,12 @@ NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKPD r;
NTSTATUS status;
@@ -123,17 +164,24 @@ NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKPD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -150,7 +198,12 @@ NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKU r;
NTSTATUS status;
@@ -159,17 +212,24 @@ NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKU, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKU, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKU,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -186,7 +246,10 @@ NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_CloseKey r;
NTSTATUS status;
@@ -194,17 +257,24 @@ NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_CloseKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_CLOSEKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_CLOSEKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_CloseKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -221,7 +291,17 @@ NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String name, struct winreg_String keyclass, uint32_t options, uint32_t access_mask, struct winreg_SecBuf *secdesc, struct policy_handle *new_handle, enum winreg_CreateAction *action_taken, WERROR *werror)
+NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String name,
+ struct winreg_String keyclass,
+ uint32_t options,
+ uint32_t access_mask,
+ struct winreg_SecBuf *secdesc,
+ struct policy_handle *new_handle,
+ enum winreg_CreateAction *action_taken,
+ WERROR *werror)
{
struct winreg_CreateKey r;
NTSTATUS status;
@@ -235,17 +315,24 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.secdesc = secdesc;
r.in.action_taken = action_taken;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_CreateKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_CREATEKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_CREATEKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_CreateKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -265,7 +352,11 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String key, WERROR *werror)
+NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String key,
+ WERROR *werror)
{
struct winreg_DeleteKey r;
NTSTATUS status;
@@ -274,17 +365,24 @@ NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.handle = handle;
r.in.key = key;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_DeleteKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_DELETEKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_DELETEKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -300,7 +398,11 @@ NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value, WERROR *werror)
+NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String value,
+ WERROR *werror)
{
struct winreg_DeleteValue r;
NTSTATUS status;
@@ -309,17 +411,24 @@ NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.handle = handle;
r.in.value = value;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_DeleteValue, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_DELETEVALUE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_DELETEVALUE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -335,7 +444,14 @@ NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-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, WERROR *werror)
+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,
+ WERROR *werror)
{
struct winreg_EnumKey r;
NTSTATUS status;
@@ -347,17 +463,24 @@ NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.keyclass = keyclass;
r.in.last_changed_time = last_changed_time;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_EnumKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ENUMKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_ENUMKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_EnumKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -380,7 +503,16 @@ 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 *value, uint32_t *size, uint32_t *length, WERROR *werror)
+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 *value,
+ uint32_t *size,
+ uint32_t *length,
+ WERROR *werror)
{
struct winreg_EnumValue r;
NTSTATUS status;
@@ -394,17 +526,24 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.size = size;
r.in.length = length;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_EnumValue, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ENUMVALUE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_ENUMVALUE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_EnumValue, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -433,7 +572,10 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_FlushKey r;
NTSTATUS status;
@@ -441,17 +583,24 @@ NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_FlushKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_FLUSHKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_FLUSHKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_FlushKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -467,7 +616,12 @@ NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct KeySecurityData *sd, WERROR *werror)
+NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t sec_info,
+ struct KeySecurityData *sd,
+ WERROR *werror)
{
struct winreg_GetKeySecurity r;
NTSTATUS status;
@@ -477,17 +631,24 @@ NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.sec_info = sec_info;
r.in.sd = sd;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_GetKeySecurity, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_GETKEYSECURITY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_GETKEYSECURITY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -504,7 +665,12 @@ NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-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, WERROR *werror)
+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,
+ WERROR *werror)
{
struct winreg_LoadKey r;
NTSTATUS status;
@@ -514,17 +680,24 @@ NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.keyname = keyname;
r.in.filename = filename;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_LoadKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_LOADKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_LOADKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_LoadKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -540,7 +713,16 @@ NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t watch_subtree, uint32_t notify_filter, uint32_t unknown, struct winreg_String string1, struct winreg_String string2, uint32_t unknown2, WERROR *werror)
+NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint8_t watch_subtree,
+ uint32_t notify_filter,
+ uint32_t unknown,
+ struct winreg_String string1,
+ struct winreg_String string2,
+ uint32_t unknown2,
+ WERROR *werror)
{
struct winreg_NotifyChangeKeyValue r;
NTSTATUS status;
@@ -554,17 +736,24 @@ NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_
r.in.string2 = string2;
r.in.unknown2 = unknown2;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_NOTIFYCHANGEKEYVALUE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_NOTIFYCHANGEKEYVALUE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -580,7 +769,14 @@ NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *parent_handle, struct winreg_String keyname, uint32_t unknown, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *parent_handle,
+ struct winreg_String keyname,
+ uint32_t unknown,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenKey r;
NTSTATUS status;
@@ -591,17 +787,24 @@ NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.unknown = unknown;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -618,7 +821,19 @@ NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *classname, uint32_t *num_subkeys, uint32_t *max_subkeylen, uint32_t *max_classlen, uint32_t *num_values, uint32_t *max_valnamelen, uint32_t *max_valbufsize, uint32_t *secdescsize, NTTIME *last_changed_time, WERROR *werror)
+NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String *classname,
+ uint32_t *num_subkeys,
+ uint32_t *max_subkeylen,
+ uint32_t *max_classlen,
+ uint32_t *num_values,
+ uint32_t *max_valnamelen,
+ uint32_t *max_valbufsize,
+ uint32_t *secdescsize,
+ NTTIME *last_changed_time,
+ WERROR *werror)
{
struct winreg_QueryInfoKey r;
NTSTATUS status;
@@ -627,17 +842,24 @@ NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.handle = handle;
r.in.classname = classname;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYINFOKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_QUERYINFOKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -662,7 +884,15 @@ NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum winreg_Type *type, uint8_t *data, uint32_t *data_size, uint32_t *value_length, WERROR *werror)
+NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String value_name,
+ enum winreg_Type *type,
+ uint8_t *data,
+ uint32_t *data_size,
+ uint32_t *value_length,
+ WERROR *werror)
{
struct winreg_QueryValue r;
NTSTATUS status;
@@ -675,17 +905,24 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.data_size = data_size;
r.in.value_length = value_length;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryValue, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYVALUE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_QUERYVALUE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryValue, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -713,24 +950,33 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct winreg_ReplaceKey r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_REPLACEKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_REPLACEKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -746,7 +992,12 @@ NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *filename, uint32_t flags, WERROR *werror)
+NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String *filename,
+ uint32_t flags,
+ WERROR *werror)
{
struct winreg_RestoreKey r;
NTSTATUS status;
@@ -756,17 +1007,24 @@ NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.filename = filename;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_RestoreKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_RESTOREKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_RESTOREKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -782,7 +1040,12 @@ NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *filename, struct KeySecurityAttribute *sec_attrib, WERROR *werror)
+NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String *filename,
+ struct KeySecurityAttribute *sec_attrib,
+ WERROR *werror)
{
struct winreg_SaveKey r;
NTSTATUS status;
@@ -792,17 +1055,24 @@ NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.filename = filename;
r.in.sec_attrib = sec_attrib;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SaveKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SAVEKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_SAVEKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SaveKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -818,7 +1088,12 @@ NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t access_mask, struct KeySecurityData *sd, WERROR *werror)
+NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t access_mask,
+ struct KeySecurityData *sd,
+ WERROR *werror)
{
struct winreg_SetKeySecurity r;
NTSTATUS status;
@@ -828,17 +1103,24 @@ NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.access_mask = access_mask;
r.in.sd = sd;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SETKEYSECURITY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_SETKEYSECURITY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -854,7 +1136,14 @@ NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String name, enum winreg_Type type, uint8_t *data, uint32_t size, WERROR *werror)
+NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String name,
+ enum winreg_Type type,
+ uint8_t *data,
+ uint32_t size,
+ WERROR *werror)
{
struct winreg_SetValue r;
NTSTATUS status;
@@ -866,17 +1155,24 @@ NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.data = data;
r.in.size = size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SetValue, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SETVALUE, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_SETVALUE,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SetValue, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -892,24 +1188,33 @@ NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct winreg_UnLoadKey r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_UNLOADKEY, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_UNLOADKEY,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -925,7 +1230,14 @@ NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror)
+NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *hostname,
+ struct initshutdown_String *message,
+ uint32_t timeout,
+ uint8_t force_apps,
+ uint8_t reboot,
+ WERROR *werror)
{
struct winreg_InitiateSystemShutdown r;
NTSTATUS status;
@@ -937,17 +1249,24 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLO
r.in.force_apps = force_apps;
r.in.reboot = reboot;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_INITIATESYSTEMSHUTDOWN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_INITIATESYSTEMSHUTDOWN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -963,7 +1282,10 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror)
+NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *server,
+ WERROR *werror)
{
struct winreg_AbortSystemShutdown r;
NTSTATUS status;
@@ -971,17 +1293,24 @@ NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_C
/* In parameters */
r.in.server = server;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ABORTSYSTEMSHUTDOWN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_ABORTSYSTEMSHUTDOWN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -997,7 +1326,11 @@ NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *version, WERROR *werror)
+NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *version,
+ WERROR *werror)
{
struct winreg_GetVersion r;
NTSTATUS status;
@@ -1005,17 +1338,24 @@ NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* In parameters */
r.in.handle = handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_GetVersion, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_GETVERSION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_GETVERSION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_GetVersion, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1032,7 +1372,12 @@ NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKCC r;
NTSTATUS status;
@@ -1041,17 +1386,24 @@ NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCC, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKCC,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1068,7 +1420,12 @@ NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKDD r;
NTSTATUS status;
@@ -1077,17 +1434,24 @@ NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKDD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKDD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1104,7 +1468,14 @@ NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *key_handle, struct QueryMultipleValue *values, uint32_t num_values, uint8_t *buffer, uint32_t *buffer_size, WERROR *werror)
+NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *key_handle,
+ struct QueryMultipleValue *values,
+ uint32_t num_values,
+ uint8_t *buffer,
+ uint32_t *buffer_size,
+ WERROR *werror)
{
struct winreg_QueryMultipleValues r;
NTSTATUS status;
@@ -1116,17 +1487,24 @@ NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_C
r.in.buffer = buffer;
r.in.buffer_size = buffer_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYMULTIPLEVALUES, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_QUERYMULTIPLEVALUES,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1147,7 +1525,15 @@ NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror)
+NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *hostname,
+ struct initshutdown_String *message,
+ uint32_t timeout,
+ uint8_t force_apps,
+ uint8_t reboot,
+ uint32_t reason,
+ WERROR *werror)
{
struct winreg_InitiateSystemShutdownEx r;
NTSTATUS status;
@@ -1160,17 +1546,24 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TAL
r.in.reboot = reboot;
r.in.reason = reason;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_INITIATESYSTEMSHUTDOWNEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_INITIATESYSTEMSHUTDOWNEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1186,24 +1579,33 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TAL
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct winreg_SaveKeyEx r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SAVEKEYEX, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_SAVEKEYEX,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1219,7 +1621,12 @@ NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKPT r;
NTSTATUS status;
@@ -1228,17 +1635,24 @@ NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPT, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKPT,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1255,7 +1669,12 @@ NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror)
+NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror)
{
struct winreg_OpenHKPN r;
NTSTATUS status;
@@ -1264,17 +1683,24 @@ NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.access_mask = access_mask;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_OPENHKPN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1291,24 +1717,33 @@ NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror)
+NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror)
{
struct winreg_QueryMultipleValues2 r;
NTSTATUS status;
/* In parameters */
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYMULTIPLEVALUES2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WINREG,
+ &ndr_table_winreg,
+ NDR_WINREG_QUERYMULTIPLEVALUES2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_winreg.h b/source3/librpc/gen_ndr/cli_winreg.h
index 48934e1286..9ba46884d5 100644
--- a/source3/librpc/gen_ndr/cli_winreg.h
+++ b/source3/librpc/gen_ndr/cli_winreg.h
@@ -1,39 +1,229 @@
#include "librpc/gen_ndr/ndr_winreg.h"
#ifndef __CLI_WINREG__
#define __CLI_WINREG__
-NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String name, struct winreg_String keyclass, uint32_t options, uint32_t access_mask, struct winreg_SecBuf *secdesc, struct policy_handle *new_handle, enum winreg_CreateAction *action_taken, WERROR *werror);
-NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String key, WERROR *werror);
-NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value, WERROR *werror);
-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, WERROR *werror);
-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 *value, uint32_t *size, uint32_t *length, WERROR *werror);
-NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct KeySecurityData *sd, WERROR *werror);
-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, WERROR *werror);
-NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t watch_subtree, uint32_t notify_filter, uint32_t unknown, struct winreg_String string1, struct winreg_String string2, uint32_t unknown2, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *parent_handle, struct winreg_String keyname, uint32_t unknown, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *classname, uint32_t *num_subkeys, uint32_t *max_subkeylen, uint32_t *max_classlen, uint32_t *num_values, uint32_t *max_valnamelen, uint32_t *max_valbufsize, uint32_t *secdescsize, NTTIME *last_changed_time, WERROR *werror);
-NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum winreg_Type *type, uint8_t *data, uint32_t *data_size, uint32_t *value_length, WERROR *werror);
-NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *filename, uint32_t flags, WERROR *werror);
-NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *filename, struct KeySecurityAttribute *sec_attrib, WERROR *werror);
-NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t access_mask, struct KeySecurityData *sd, WERROR *werror);
-NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String name, enum winreg_Type type, uint8_t *data, uint32_t size, WERROR *werror);
-NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, WERROR *werror);
-NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *server, WERROR *werror);
-NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t *version, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *key_handle, struct QueryMultipleValue *values, uint32_t num_values, uint8_t *buffer, uint32_t *buffer_size, WERROR *werror);
-NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason, WERROR *werror);
-NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle, WERROR *werror);
-NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String name,
+ struct winreg_String keyclass,
+ uint32_t options,
+ uint32_t access_mask,
+ struct winreg_SecBuf *secdesc,
+ struct policy_handle *new_handle,
+ enum winreg_CreateAction *action_taken,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String key,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String value,
+ WERROR *werror);
+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,
+ WERROR *werror);
+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 *value,
+ uint32_t *size,
+ uint32_t *length,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t sec_info,
+ struct KeySecurityData *sd,
+ WERROR *werror);
+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,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint8_t watch_subtree,
+ uint32_t notify_filter,
+ uint32_t unknown,
+ struct winreg_String string1,
+ struct winreg_String string2,
+ uint32_t unknown2,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *parent_handle,
+ struct winreg_String keyname,
+ uint32_t unknown,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String *classname,
+ uint32_t *num_subkeys,
+ uint32_t *max_subkeylen,
+ uint32_t *max_classlen,
+ uint32_t *num_values,
+ uint32_t *max_valnamelen,
+ uint32_t *max_valbufsize,
+ uint32_t *secdescsize,
+ NTTIME *last_changed_time,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String value_name,
+ enum winreg_Type *type,
+ uint8_t *data,
+ uint32_t *data_size,
+ uint32_t *value_length,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String *filename,
+ uint32_t flags,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String *filename,
+ struct KeySecurityAttribute *sec_attrib,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t access_mask,
+ struct KeySecurityData *sd,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ struct winreg_String name,
+ enum winreg_Type type,
+ uint8_t *data,
+ uint32_t size,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *hostname,
+ struct initshutdown_String *message,
+ uint32_t timeout,
+ uint8_t force_apps,
+ uint8_t reboot,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *server,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *handle,
+ uint32_t *version,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ struct policy_handle *key_handle,
+ struct QueryMultipleValue *values,
+ uint32_t num_values,
+ uint8_t *buffer,
+ uint32_t *buffer_size,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *hostname,
+ struct initshutdown_String *message,
+ uint32_t timeout,
+ uint8_t force_apps,
+ uint8_t reboot,
+ uint32_t reason,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint16_t *system_name,
+ uint32_t access_mask,
+ struct policy_handle *handle,
+ WERROR *werror);
+NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ WERROR *werror);
#endif /* __CLI_WINREG__ */
diff --git a/source3/librpc/gen_ndr/cli_wkssvc.c b/source3/librpc/gen_ndr/cli_wkssvc.c
index f0a35c701c..581a498146 100644
--- a/source3/librpc/gen_ndr/cli_wkssvc.c
+++ b/source3/librpc/gen_ndr/cli_wkssvc.c
@@ -6,7 +6,12 @@
#include "includes.h"
#include "librpc/gen_ndr/cli_wkssvc.h"
-NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t level,
+ union wkssvc_NetWkstaInfo *info,
+ WERROR *werror)
{
struct wkssvc_NetWkstaGetInfo r;
NTSTATUS status;
@@ -15,17 +20,24 @@ NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.server_name = server_name;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTAGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETWKSTAGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaGetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -42,7 +54,13 @@ NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, uint32_t *parm_error, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t level,
+ union wkssvc_NetWkstaInfo *info,
+ uint32_t *parm_error,
+ WERROR *werror)
{
struct wkssvc_NetWkstaSetInfo r;
NTSTATUS status;
@@ -53,17 +71,24 @@ NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.info = info;
r.in.parm_error = parm_error;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaSetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTASETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETWKSTASETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaSetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -80,7 +105,14 @@ NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetWkstaEnumUsersInfo *info, uint32_t prefmaxlen, uint32_t *entries_read, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ struct wkssvc_NetWkstaEnumUsersInfo *info,
+ uint32_t prefmaxlen,
+ uint32_t *entries_read,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct wkssvc_NetWkstaEnumUsers r;
NTSTATUS status;
@@ -91,17 +123,24 @@ NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.prefmaxlen = prefmaxlen;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaEnumUsers, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTAENUMUSERS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETWKSTAENUMUSERS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaEnumUsers, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -122,7 +161,12 @@ NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *unknown, uint32_t level, union wkssvc_NetrWkstaUserInfo *info, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *unknown,
+ uint32_t level,
+ union wkssvc_NetrWkstaUserInfo *info,
+ WERROR *werror)
{
struct wkssvc_NetrWkstaUserGetInfo r;
NTSTATUS status;
@@ -131,17 +175,24 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_
r.in.unknown = unknown;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserGetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTAUSERGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRWKSTAUSERGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserGetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -158,7 +209,13 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *unknown, uint32_t level, union wkssvc_NetrWkstaUserInfo *info, uint32_t *parm_err, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *unknown,
+ uint32_t level,
+ union wkssvc_NetrWkstaUserInfo *info,
+ uint32_t *parm_err,
+ WERROR *werror)
{
struct wkssvc_NetrWkstaUserSetInfo r;
NTSTATUS status;
@@ -169,17 +226,24 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_
r.in.info = info;
r.in.parm_err = parm_err;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserSetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTAUSERSETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRWKSTAUSERSETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserSetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -198,7 +262,14 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetWkstaTransportInfo *info, uint32_t max_buffer, uint32_t *total_entries, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ struct wkssvc_NetWkstaTransportInfo *info,
+ uint32_t max_buffer,
+ uint32_t *total_entries,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct wkssvc_NetWkstaTransportEnum r;
NTSTATUS status;
@@ -209,17 +280,24 @@ NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaTransportEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTATRANSPORTENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETWKSTATRANSPORTENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaTransportEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -240,7 +318,13 @@ NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, struct wkssvc_NetWkstaTransportInfo0 *info0, uint32_t *parm_err, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t level,
+ struct wkssvc_NetWkstaTransportInfo0 *info0,
+ uint32_t *parm_err,
+ WERROR *werror)
{
struct wkssvc_NetrWkstaTransportAdd r;
NTSTATUS status;
@@ -251,17 +335,24 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC
r.in.info0 = info0;
r.in.parm_err = parm_err;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportAdd, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTATRANSPORTADD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRWKSTATRANSPORTADD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportAdd, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -280,7 +371,12 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *transport_name, uint32_t unknown3, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *transport_name,
+ uint32_t unknown3,
+ WERROR *werror)
{
struct wkssvc_NetrWkstaTransportDel r;
NTSTATUS status;
@@ -290,17 +386,24 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC
r.in.transport_name = transport_name;
r.in.unknown3 = unknown3;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportDel, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTATRANSPORTDEL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRWKSTATRANSPORTDEL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportDel, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -316,7 +419,13 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetrUseGetInfoCtr *ctr, uint32_t *parm_err, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t level,
+ union wkssvc_NetrUseGetInfoCtr *ctr,
+ uint32_t *parm_err,
+ WERROR *werror)
{
struct wkssvc_NetrUseAdd r;
NTSTATUS status;
@@ -327,17 +436,24 @@ NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.ctr = ctr;
r.in.parm_err = parm_err;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUseAdd, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEADD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRUSEADD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseAdd, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -356,7 +472,13 @@ NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *use_name, uint32_t level, union wkssvc_NetrUseGetInfoCtr *ctr, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *use_name,
+ uint32_t level,
+ union wkssvc_NetrUseGetInfoCtr *ctr,
+ WERROR *werror)
{
struct wkssvc_NetrUseGetInfo r;
NTSTATUS status;
@@ -366,17 +488,24 @@ NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.use_name = use_name;
r.in.level = level;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUseGetInfo, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEGETINFO, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRUSEGETINFO,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseGetInfo, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -393,7 +522,12 @@ NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *use_name, uint32_t force_cond, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *use_name,
+ uint32_t force_cond,
+ WERROR *werror)
{
struct wkssvc_NetrUseDel r;
NTSTATUS status;
@@ -403,17 +537,24 @@ NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.use_name = use_name;
r.in.force_cond = force_cond;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUseDel, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEDEL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRUSEDEL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseDel, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -429,7 +570,14 @@ NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetrUseEnumInfo *info, uint32_t prefmaxlen, uint32_t *entries_read, uint32_t *resume_handle, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ struct wkssvc_NetrUseEnumInfo *info,
+ uint32_t prefmaxlen,
+ uint32_t *entries_read,
+ uint32_t *resume_handle,
+ WERROR *werror)
{
struct wkssvc_NetrUseEnum r;
NTSTATUS status;
@@ -440,17 +588,24 @@ NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.prefmaxlen = prefmaxlen;
r.in.resume_handle = resume_handle;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUseEnum, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEENUM, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRUSEENUM,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseEnum, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -471,7 +626,14 @@ NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *message_name, const char *message_sender_name, uint8_t *message_buffer, uint32_t message_size, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *message_name,
+ const char *message_sender_name,
+ uint8_t *message_buffer,
+ uint32_t message_size,
+ WERROR *werror)
{
struct wkssvc_NetrMessageBufferSend r;
NTSTATUS status;
@@ -483,17 +645,24 @@ NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC
r.in.message_buffer = message_buffer;
r.in.message_size = message_size;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrMessageBufferSend, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRMESSAGEBUFFERSEND, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRMESSAGEBUFFERSEND,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrMessageBufferSend, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -509,7 +678,14 @@ NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *unknown2, uint32_t unknown3, uint32_t unknown4, struct wkssvc_NetrWorkstationStatistics **info, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *unknown2,
+ uint32_t unknown3,
+ uint32_t unknown4,
+ struct wkssvc_NetrWorkstationStatistics **info,
+ WERROR *werror)
{
struct wkssvc_NetrWorkstationStatisticsGet r;
NTSTATUS status;
@@ -520,17 +696,24 @@ NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli,
r.in.unknown3 = unknown3;
r.in.unknown4 = unknown4;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWorkstationStatisticsGet, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWorkstationStatisticsGet, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -547,7 +730,10 @@ NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *domain_name, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *domain_name,
+ WERROR *werror)
{
struct wkssvc_NetrLogonDomainNameAdd r;
NTSTATUS status;
@@ -555,17 +741,24 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLO
/* In parameters */
r.in.domain_name = domain_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameAdd, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRLOGONDOMAINNAMEADD, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRLOGONDOMAINNAMEADD,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameAdd, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -581,7 +774,10 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *domain_name, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *domain_name,
+ WERROR *werror)
{
struct wkssvc_NetrLogonDomainNameDel r;
NTSTATUS status;
@@ -589,17 +785,24 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLO
/* In parameters */
r.in.domain_name = domain_name;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameDel, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameDel, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -615,7 +818,15 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_ou, const char *Account, const char *password, uint32_t join_flags, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *domain_name,
+ const char *account_ou,
+ const char *Account,
+ const char *password,
+ uint32_t join_flags,
+ WERROR *werror)
{
struct wkssvc_NetrJoinDomain r;
NTSTATUS status;
@@ -628,17 +839,24 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.password = password;
r.in.join_flags = join_flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRJOINDOMAIN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRJOINDOMAIN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -654,7 +872,13 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *Account, const char *password, uint32_t unjoin_flags, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *Account,
+ const char *password,
+ uint32_t unjoin_flags,
+ WERROR *werror)
{
struct wkssvc_NetrUnjoinDomain r;
NTSTATUS status;
@@ -665,17 +889,24 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.password = password;
r.in.unjoin_flags = unjoin_flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUNJOINDOMAIN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRUNJOINDOMAIN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -691,7 +922,14 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, const char *password, uint32_t RenameOptions, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *NewMachineName,
+ const char *Account,
+ const char *password,
+ uint32_t RenameOptions,
+ WERROR *werror)
{
struct wkssvc_NetrRenameMachineInDomain r;
NTSTATUS status;
@@ -703,17 +941,24 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TA
r.in.password = password;
r.in.RenameOptions = RenameOptions;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -729,7 +974,14 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TA
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *name, const char *Account, const char *Password, enum wkssvc_NetValidateNameType name_type, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *name,
+ const char *Account,
+ const char *Password,
+ enum wkssvc_NetValidateNameType name_type,
+ WERROR *werror)
{
struct wkssvc_NetrValidateName r;
NTSTATUS status;
@@ -741,17 +993,24 @@ NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.Password = Password;
r.in.name_type = name_type;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRVALIDATENAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRVALIDATENAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -767,7 +1026,12 @@ NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char **name_buffer, enum wkssvc_NetJoinStatus *name_type, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char **name_buffer,
+ enum wkssvc_NetJoinStatus *name_type,
+ WERROR *werror)
{
struct wkssvc_NetrGetJoinInformation r;
NTSTATUS status;
@@ -776,17 +1040,24 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLO
r.in.server_name = server_name;
r.in.name_buffer = name_buffer;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinInformation, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOININFORMATION, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRGETJOININFORMATION,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinInformation, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -804,7 +1075,15 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLO
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *Account, const char *unknown, uint32_t *num_ous, const char ***ous, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *domain_name,
+ const char *Account,
+ const char *unknown,
+ uint32_t *num_ous,
+ const char ***ous,
+ WERROR *werror)
{
struct wkssvc_NetrGetJoinableOus r;
NTSTATUS status;
@@ -816,17 +1095,24 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CT
r.in.unknown = unknown;
r.in.num_ous = num_ous;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOINABLEOUS, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRGETJOINABLEOUS,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -844,7 +1130,15 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CT
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_ou, const char *admin_account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t join_flags, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *domain_name,
+ const char *account_ou,
+ const char *admin_account,
+ struct wkssvc_PasswordBuffer *encrypted_password,
+ uint32_t join_flags,
+ WERROR *werror)
{
struct wkssvc_NetrJoinDomain2 r;
NTSTATUS status;
@@ -857,17 +1151,24 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.encrypted_password = encrypted_password;
r.in.join_flags = join_flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRJOINDOMAIN2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRJOINDOMAIN2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -883,7 +1184,13 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t unjoin_flags, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account,
+ struct wkssvc_PasswordBuffer *encrypted_password,
+ uint32_t unjoin_flags,
+ WERROR *werror)
{
struct wkssvc_NetrUnjoinDomain2 r;
NTSTATUS status;
@@ -894,17 +1201,24 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.encrypted_password = encrypted_password;
r.in.unjoin_flags = unjoin_flags;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUNJOINDOMAIN2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRUNJOINDOMAIN2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -920,7 +1234,14 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t RenameOptions, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *NewMachineName,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t RenameOptions,
+ WERROR *werror)
{
struct wkssvc_NetrRenameMachineInDomain2 r;
NTSTATUS status;
@@ -932,17 +1253,24 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, T
r.in.EncryptedPassword = EncryptedPassword;
r.in.RenameOptions = RenameOptions;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -958,7 +1286,14 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, T
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, enum wkssvc_NetValidateNameType name_type, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *name,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ enum wkssvc_NetValidateNameType name_type,
+ WERROR *werror)
{
struct wkssvc_NetrValidateName2 r;
NTSTATUS status;
@@ -970,17 +1305,24 @@ NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.EncryptedPassword = EncryptedPassword;
r.in.name_type = name_type;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRVALIDATENAME2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRVALIDATENAME2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -996,7 +1338,15 @@ NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t *num_ous, const char ***ous, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *domain_name,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t *num_ous,
+ const char ***ous,
+ WERROR *werror)
{
struct wkssvc_NetrGetJoinableOus2 r;
NTSTATUS status;
@@ -1008,17 +1358,24 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_C
r.in.EncryptedPassword = EncryptedPassword;
r.in.num_ous = num_ous;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus2, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOINABLEOUS2, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRGETJOINABLEOUS2,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus2, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1036,7 +1393,14 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_C
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewAlternateMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *NewAlternateMachineName,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t Reserved,
+ WERROR *werror)
{
struct wkssvc_NetrAddAlternateComputerName r;
NTSTATUS status;
@@ -1048,17 +1412,24 @@ NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
r.in.EncryptedPassword = EncryptedPassword;
r.in.Reserved = Reserved;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1074,7 +1445,14 @@ NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *AlternateMachineNameToRemove, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *AlternateMachineNameToRemove,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t Reserved,
+ WERROR *werror)
{
struct wkssvc_NetrRemoveAlternateComputerName r;
NTSTATUS status;
@@ -1086,17 +1464,24 @@ NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *c
r.in.EncryptedPassword = EncryptedPassword;
r.in.Reserved = Reserved;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1112,7 +1497,14 @@ NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *c
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *primary_name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *primary_name,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t Reserved,
+ WERROR *werror)
{
struct wkssvc_NetrSetPrimaryComputername r;
NTSTATUS status;
@@ -1124,17 +1516,24 @@ NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, T
r.in.EncryptedPassword = EncryptedPassword;
r.in.Reserved = Reserved;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrSetPrimaryComputername, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrSetPrimaryComputername, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
@@ -1150,7 +1549,13 @@ NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, T
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, enum wkssvc_ComputerNameType name_type, uint32_t Reserved, struct wkssvc_ComputerNamesCtr **ctr, WERROR *werror)
+NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ enum wkssvc_ComputerNameType name_type,
+ uint32_t Reserved,
+ struct wkssvc_ComputerNamesCtr **ctr,
+ WERROR *werror)
{
struct wkssvc_NetrEnumerateComputerNames r;
NTSTATUS status;
@@ -1160,17 +1565,24 @@ NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli, T
r.in.name_type = name_type;
r.in.Reserved = Reserved;
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrEnumerateComputerNames, &r);
+ }
- status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES, &r);
+ status = cli_do_rpc_ndr(cli,
+ mem_ctx,
+ PI_WKSSVC,
+ &ndr_table_wkssvc,
+ NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES,
+ &r);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (DEBUGLEVEL >= 10)
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrEnumerateComputerNames, &r);
+ }
if (NT_STATUS_IS_ERR(status)) {
return status;
diff --git a/source3/librpc/gen_ndr/cli_wkssvc.h b/source3/librpc/gen_ndr/cli_wkssvc.h
index 4ead050d56..89012daf21 100644
--- a/source3/librpc/gen_ndr/cli_wkssvc.h
+++ b/source3/librpc/gen_ndr/cli_wkssvc.h
@@ -1,35 +1,230 @@
#include "librpc/gen_ndr/ndr_wkssvc.h"
#ifndef __CLI_WKSSVC__
#define __CLI_WKSSVC__
-NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, uint32_t *parm_error, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetWkstaEnumUsersInfo *info, uint32_t prefmaxlen, uint32_t *entries_read, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *unknown, uint32_t level, union wkssvc_NetrWkstaUserInfo *info, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *unknown, uint32_t level, union wkssvc_NetrWkstaUserInfo *info, uint32_t *parm_err, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetWkstaTransportInfo *info, uint32_t max_buffer, uint32_t *total_entries, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, struct wkssvc_NetWkstaTransportInfo0 *info0, uint32_t *parm_err, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *transport_name, uint32_t unknown3, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetrUseGetInfoCtr *ctr, uint32_t *parm_err, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *use_name, uint32_t level, union wkssvc_NetrUseGetInfoCtr *ctr, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *use_name, uint32_t force_cond, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, struct wkssvc_NetrUseEnumInfo *info, uint32_t prefmaxlen, uint32_t *entries_read, uint32_t *resume_handle, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *message_name, const char *message_sender_name, uint8_t *message_buffer, uint32_t message_size, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *unknown2, uint32_t unknown3, uint32_t unknown4, struct wkssvc_NetrWorkstationStatistics **info, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *domain_name, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *domain_name, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_ou, const char *Account, const char *password, uint32_t join_flags, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *Account, const char *password, uint32_t unjoin_flags, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, const char *password, uint32_t RenameOptions, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *name, const char *Account, const char *Password, enum wkssvc_NetValidateNameType name_type, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char **name_buffer, enum wkssvc_NetJoinStatus *name_type, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *Account, const char *unknown, uint32_t *num_ous, const char ***ous, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_ou, const char *admin_account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t join_flags, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t unjoin_flags, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t RenameOptions, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, enum wkssvc_NetValidateNameType name_type, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t *num_ous, const char ***ous, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewAlternateMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *AlternateMachineNameToRemove, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *primary_name, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved, WERROR *werror);
-NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, enum wkssvc_ComputerNameType name_type, uint32_t Reserved, struct wkssvc_ComputerNamesCtr **ctr, WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t level,
+ union wkssvc_NetWkstaInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t level,
+ union wkssvc_NetWkstaInfo *info,
+ uint32_t *parm_error,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ struct wkssvc_NetWkstaEnumUsersInfo *info,
+ uint32_t prefmaxlen,
+ uint32_t *entries_read,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *unknown,
+ uint32_t level,
+ union wkssvc_NetrWkstaUserInfo *info,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *unknown,
+ uint32_t level,
+ union wkssvc_NetrWkstaUserInfo *info,
+ uint32_t *parm_err,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ struct wkssvc_NetWkstaTransportInfo *info,
+ uint32_t max_buffer,
+ uint32_t *total_entries,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t level,
+ struct wkssvc_NetWkstaTransportInfo0 *info0,
+ uint32_t *parm_err,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *transport_name,
+ uint32_t unknown3,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ uint32_t level,
+ union wkssvc_NetrUseGetInfoCtr *ctr,
+ uint32_t *parm_err,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *use_name,
+ uint32_t level,
+ union wkssvc_NetrUseGetInfoCtr *ctr,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *use_name,
+ uint32_t force_cond,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ struct wkssvc_NetrUseEnumInfo *info,
+ uint32_t prefmaxlen,
+ uint32_t *entries_read,
+ uint32_t *resume_handle,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *message_name,
+ const char *message_sender_name,
+ uint8_t *message_buffer,
+ uint32_t message_size,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *unknown2,
+ uint32_t unknown3,
+ uint32_t unknown4,
+ struct wkssvc_NetrWorkstationStatistics **info,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *domain_name,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *domain_name,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *domain_name,
+ const char *account_ou,
+ const char *Account,
+ const char *password,
+ uint32_t join_flags,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *Account,
+ const char *password,
+ uint32_t unjoin_flags,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *NewMachineName,
+ const char *Account,
+ const char *password,
+ uint32_t RenameOptions,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *name,
+ const char *Account,
+ const char *Password,
+ enum wkssvc_NetValidateNameType name_type,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char **name_buffer,
+ enum wkssvc_NetJoinStatus *name_type,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *domain_name,
+ const char *Account,
+ const char *unknown,
+ uint32_t *num_ous,
+ const char ***ous,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *domain_name,
+ const char *account_ou,
+ const char *admin_account,
+ struct wkssvc_PasswordBuffer *encrypted_password,
+ uint32_t join_flags,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *account,
+ struct wkssvc_PasswordBuffer *encrypted_password,
+ uint32_t unjoin_flags,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *NewMachineName,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t RenameOptions,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *name,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ enum wkssvc_NetValidateNameType name_type,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *domain_name,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t *num_ous,
+ const char ***ous,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *NewAlternateMachineName,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t Reserved,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *AlternateMachineNameToRemove,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t Reserved,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ const char *primary_name,
+ const char *Account,
+ struct wkssvc_PasswordBuffer *EncryptedPassword,
+ uint32_t Reserved,
+ WERROR *werror);
+NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ const char *server_name,
+ enum wkssvc_ComputerNameType name_type,
+ uint32_t Reserved,
+ struct wkssvc_ComputerNamesCtr **ctr,
+ WERROR *werror);
#endif /* __CLI_WKSSVC__ */
diff --git a/source3/librpc/gen_ndr/srv_dfs.c b/source3/librpc/gen_ndr/srv_dfs.c
index 4c92c438f0..384c2ba940 100644
--- a/source3/librpc/gen_ndr/srv_dfs.c
+++ b/source3/librpc/gen_ndr/srv_dfs.c
@@ -14,74 +14,76 @@ static bool api_dfs_GetManagerVersion(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_GetManagerVersion *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_GETMANAGERVERSION];
-
+
r = talloc(NULL, struct dfs_GetManagerVersion);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.version = talloc_zero(r, enum dfs_ManagerVersion);
if (r->out.version == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
_dfs_GetManagerVersion(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_Add(pipes_struct *p)
@@ -92,67 +94,69 @@ static bool api_dfs_Add(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_Add *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_ADD];
-
+
r = talloc(NULL, struct dfs_Add);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Add, r);
-
+ }
+
r->out.result = _dfs_Add(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Add, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_Remove(pipes_struct *p)
@@ -163,67 +167,69 @@ static bool api_dfs_Remove(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_Remove *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_REMOVE];
-
+
r = talloc(NULL, struct dfs_Remove);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Remove, r);
-
+ }
+
r->out.result = _dfs_Remove(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Remove, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_SetInfo(pipes_struct *p)
@@ -234,67 +240,69 @@ static bool api_dfs_SetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_SetInfo *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_SETINFO];
-
+
r = talloc(NULL, struct dfs_SetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_SetInfo, r);
-
+ }
+
r->out.result = _dfs_SetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_SetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_GetInfo(pipes_struct *p)
@@ -305,74 +313,76 @@ static bool api_dfs_GetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_GetInfo *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_GETINFO];
-
+
r = talloc(NULL, struct dfs_GetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_GetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union dfs_Info);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _dfs_GetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_GetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_Enum(pipes_struct *p)
@@ -383,70 +393,72 @@ static bool api_dfs_Enum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_Enum *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_ENUM];
-
+
r = talloc(NULL, struct dfs_Enum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Enum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = r->in.info;
r->out.total = r->in.total;
r->out.result = _dfs_Enum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Enum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_Rename(pipes_struct *p)
@@ -457,67 +469,69 @@ static bool api_dfs_Rename(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_Rename *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_RENAME];
-
+
r = talloc(NULL, struct dfs_Rename);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Rename, r);
-
+ }
+
r->out.result = _dfs_Rename(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Rename, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_Move(pipes_struct *p)
@@ -528,67 +542,69 @@ static bool api_dfs_Move(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_Move *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_MOVE];
-
+
r = talloc(NULL, struct dfs_Move);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Move, r);
-
+ }
+
r->out.result = _dfs_Move(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Move, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_ManagerGetConfigInfo(pipes_struct *p)
@@ -599,67 +615,69 @@ static bool api_dfs_ManagerGetConfigInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_ManagerGetConfigInfo *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERGETCONFIGINFO];
-
+
r = talloc(NULL, struct dfs_ManagerGetConfigInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, r);
-
+ }
+
r->out.result = _dfs_ManagerGetConfigInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_ManagerSendSiteInfo(pipes_struct *p)
@@ -670,67 +688,69 @@ static bool api_dfs_ManagerSendSiteInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_ManagerSendSiteInfo *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERSENDSITEINFO];
-
+
r = talloc(NULL, struct dfs_ManagerSendSiteInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, r);
-
+ }
+
r->out.result = _dfs_ManagerSendSiteInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_AddFtRoot(pipes_struct *p)
@@ -741,69 +761,71 @@ static bool api_dfs_AddFtRoot(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_AddFtRoot *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_ADDFTROOT];
-
+
r = talloc(NULL, struct dfs_AddFtRoot);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.unknown2 = r->in.unknown2;
r->out.result = _dfs_AddFtRoot(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_RemoveFtRoot(pipes_struct *p)
@@ -814,69 +836,71 @@ static bool api_dfs_RemoveFtRoot(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_RemoveFtRoot *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_REMOVEFTROOT];
-
+
r = talloc(NULL, struct dfs_RemoveFtRoot);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.unknown = r->in.unknown;
r->out.result = _dfs_RemoveFtRoot(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_AddStdRoot(pipes_struct *p)
@@ -887,67 +911,69 @@ static bool api_dfs_AddStdRoot(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_AddStdRoot *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_ADDSTDROOT];
-
+
r = talloc(NULL, struct dfs_AddStdRoot);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, r);
-
+ }
+
r->out.result = _dfs_AddStdRoot(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_RemoveStdRoot(pipes_struct *p)
@@ -958,67 +984,69 @@ static bool api_dfs_RemoveStdRoot(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_RemoveStdRoot *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_REMOVESTDROOT];
-
+
r = talloc(NULL, struct dfs_RemoveStdRoot);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, r);
-
+ }
+
r->out.result = _dfs_RemoveStdRoot(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_ManagerInitialize(pipes_struct *p)
@@ -1029,67 +1057,69 @@ static bool api_dfs_ManagerInitialize(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_ManagerInitialize *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERINITIALIZE];
-
+
r = talloc(NULL, struct dfs_ManagerInitialize);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, r);
-
+ }
+
r->out.result = _dfs_ManagerInitialize(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_AddStdRootForced(pipes_struct *p)
@@ -1100,67 +1130,69 @@ static bool api_dfs_AddStdRootForced(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_AddStdRootForced *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_ADDSTDROOTFORCED];
-
+
r = talloc(NULL, struct dfs_AddStdRootForced);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, r);
-
+ }
+
r->out.result = _dfs_AddStdRootForced(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_GetDcAddress(pipes_struct *p)
@@ -1171,67 +1203,69 @@ static bool api_dfs_GetDcAddress(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_GetDcAddress *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_GETDCADDRESS];
-
+
r = talloc(NULL, struct dfs_GetDcAddress);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, r);
-
+ }
+
r->out.result = _dfs_GetDcAddress(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_SetDcAddress(pipes_struct *p)
@@ -1242,67 +1276,69 @@ static bool api_dfs_SetDcAddress(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_SetDcAddress *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_SETDCADDRESS];
-
+
r = talloc(NULL, struct dfs_SetDcAddress);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, r);
-
+ }
+
r->out.result = _dfs_SetDcAddress(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_FlushFtTable(pipes_struct *p)
@@ -1313,67 +1349,69 @@ static bool api_dfs_FlushFtTable(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_FlushFtTable *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_FLUSHFTTABLE];
-
+
r = talloc(NULL, struct dfs_FlushFtTable);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, r);
-
+ }
+
r->out.result = _dfs_FlushFtTable(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_Add2(pipes_struct *p)
@@ -1384,67 +1422,69 @@ static bool api_dfs_Add2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_Add2 *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_ADD2];
-
+
r = talloc(NULL, struct dfs_Add2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Add2, r);
-
+ }
+
r->out.result = _dfs_Add2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Add2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_Remove2(pipes_struct *p)
@@ -1455,67 +1495,69 @@ static bool api_dfs_Remove2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_Remove2 *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_REMOVE2];
-
+
r = talloc(NULL, struct dfs_Remove2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_Remove2, r);
-
+ }
+
r->out.result = _dfs_Remove2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_Remove2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_EnumEx(pipes_struct *p)
@@ -1526,70 +1568,72 @@ static bool api_dfs_EnumEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_EnumEx *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_ENUMEX];
-
+
r = talloc(NULL, struct dfs_EnumEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_EnumEx, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = r->in.info;
r->out.total = r->in.total;
r->out.result = _dfs_EnumEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_EnumEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_dfs_SetInfo2(pipes_struct *p)
@@ -1600,67 +1644,69 @@ static bool api_dfs_SetInfo2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dfs_SetInfo2 *r;
-
+
call = &ndr_table_netdfs.calls[NDR_DFS_SETINFO2];
-
+
r = talloc(NULL, struct dfs_SetInfo2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(dfs_SetInfo2, r);
-
+ }
+
r->out.result = _dfs_SetInfo2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_echo.c b/source3/librpc/gen_ndr/srv_echo.c
index 7e292985bc..de5fc9cd46 100644
--- a/source3/librpc/gen_ndr/srv_echo.c
+++ b/source3/librpc/gen_ndr/srv_echo.c
@@ -14,74 +14,76 @@ static bool api_echo_AddOne(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_AddOne *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_ADDONE];
-
+
r = talloc(NULL, struct echo_AddOne);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_AddOne, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.out_data = talloc_zero(r, uint32_t);
if (r->out.out_data == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
_echo_AddOne(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_AddOne, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_EchoData(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_echo_EchoData(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_EchoData *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_ECHODATA];
-
+
r = talloc(NULL, struct echo_EchoData);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_EchoData, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.out_data = talloc_zero_array(r, uint8_t, r->in.len);
if (r->out.out_data == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
_echo_EchoData(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_EchoData, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_SinkData(pipes_struct *p)
@@ -170,67 +174,69 @@ static bool api_echo_SinkData(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_SinkData *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_SINKDATA];
-
+
r = talloc(NULL, struct echo_SinkData);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_SinkData, r);
-
+ }
+
_echo_SinkData(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_SinkData, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_SourceData(pipes_struct *p)
@@ -241,74 +247,76 @@ static bool api_echo_SourceData(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_SourceData *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_SOURCEDATA];
-
+
r = talloc(NULL, struct echo_SourceData);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_SourceData, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.data = talloc_zero_array(r, uint8_t, r->in.len);
if (r->out.data == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
_echo_SourceData(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_SourceData, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_TestCall(pipes_struct *p)
@@ -319,74 +327,76 @@ static bool api_echo_TestCall(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_TestCall *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTCALL];
-
+
r = talloc(NULL, struct echo_TestCall);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestCall, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.s2 = talloc_zero(r, const char *);
if (r->out.s2 == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
_echo_TestCall(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestCall, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_TestCall2(pipes_struct *p)
@@ -397,74 +407,76 @@ static bool api_echo_TestCall2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_TestCall2 *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTCALL2];
-
+
r = talloc(NULL, struct echo_TestCall2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestCall2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union echo_Info);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _echo_TestCall2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestCall2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_TestSleep(pipes_struct *p)
@@ -475,67 +487,69 @@ static bool api_echo_TestSleep(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_TestSleep *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTSLEEP];
-
+
r = talloc(NULL, struct echo_TestSleep);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestSleep, r);
-
+ }
+
r->out.result = _echo_TestSleep(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestSleep, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_TestEnum(pipes_struct *p)
@@ -546,71 +560,73 @@ static bool api_echo_TestEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_TestEnum *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTENUM];
-
+
r = talloc(NULL, struct echo_TestEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.foo1 = r->in.foo1;
r->out.foo2 = r->in.foo2;
r->out.foo3 = r->in.foo3;
_echo_TestEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_TestSurrounding(pipes_struct *p)
@@ -621,69 +637,71 @@ static bool api_echo_TestSurrounding(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_TestSurrounding *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTSURROUNDING];
-
+
r = talloc(NULL, struct echo_TestSurrounding);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestSurrounding, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.data = r->in.data;
_echo_TestSurrounding(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestSurrounding, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_echo_TestDoublePointer(pipes_struct *p)
@@ -694,67 +712,69 @@ static bool api_echo_TestDoublePointer(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct echo_TestDoublePointer *r;
-
+
call = &ndr_table_rpcecho.calls[NDR_ECHO_TESTDOUBLEPOINTER];
-
+
r = talloc(NULL, struct echo_TestDoublePointer);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(echo_TestDoublePointer, r);
-
+ }
+
r->out.result = _echo_TestDoublePointer(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_epmapper.c b/source3/librpc/gen_ndr/srv_epmapper.c
index d74a509cfb..af768d9555 100644
--- a/source3/librpc/gen_ndr/srv_epmapper.c
+++ b/source3/librpc/gen_ndr/srv_epmapper.c
@@ -14,67 +14,69 @@ static bool api_epm_Insert(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct epm_Insert *r;
-
+
call = &ndr_table_epmapper.calls[NDR_EPM_INSERT];
-
+
r = talloc(NULL, struct epm_Insert);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_Insert, r);
-
+ }
+
r->out.result = _epm_Insert(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_Insert, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_epm_Delete(pipes_struct *p)
@@ -85,67 +87,69 @@ static bool api_epm_Delete(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct epm_Delete *r;
-
+
call = &ndr_table_epmapper.calls[NDR_EPM_DELETE];
-
+
r = talloc(NULL, struct epm_Delete);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_Delete, r);
-
+ }
+
r->out.result = _epm_Delete(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_Delete, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_epm_Lookup(pipes_struct *p)
@@ -156,81 +160,83 @@ static bool api_epm_Lookup(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct epm_Lookup *r;
-
+
call = &ndr_table_epmapper.calls[NDR_EPM_LOOKUP];
-
+
r = talloc(NULL, struct epm_Lookup);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_Lookup, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.entry_handle = r->in.entry_handle;
r->out.num_ents = talloc_zero(r, uint32_t);
if (r->out.num_ents == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.entries = talloc_zero_array(r, struct epm_entry_t, r->in.max_ents);
if (r->out.entries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _epm_Lookup(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_Lookup, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_epm_Map(pipes_struct *p)
@@ -241,81 +247,83 @@ static bool api_epm_Map(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct epm_Map *r;
-
+
call = &ndr_table_epmapper.calls[NDR_EPM_MAP];
-
+
r = talloc(NULL, struct epm_Map);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_Map, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.entry_handle = r->in.entry_handle;
r->out.num_towers = talloc_zero(r, uint32_t);
if (r->out.num_towers == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.towers = talloc_zero_array(r, struct epm_twr_p_t, r->in.max_towers);
if (r->out.towers == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _epm_Map(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_Map, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_epm_LookupHandleFree(pipes_struct *p)
@@ -326,69 +334,71 @@ static bool api_epm_LookupHandleFree(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct epm_LookupHandleFree *r;
-
+
call = &ndr_table_epmapper.calls[NDR_EPM_LOOKUPHANDLEFREE];
-
+
r = talloc(NULL, struct epm_LookupHandleFree);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_LookupHandleFree, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.entry_handle = r->in.entry_handle;
r->out.result = _epm_LookupHandleFree(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_epm_InqObject(pipes_struct *p)
@@ -399,67 +409,69 @@ static bool api_epm_InqObject(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct epm_InqObject *r;
-
+
call = &ndr_table_epmapper.calls[NDR_EPM_INQOBJECT];
-
+
r = talloc(NULL, struct epm_InqObject);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_InqObject, r);
-
+ }
+
r->out.result = _epm_InqObject(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_InqObject, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_epm_MgmtDelete(pipes_struct *p)
@@ -470,67 +482,69 @@ static bool api_epm_MgmtDelete(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct epm_MgmtDelete *r;
-
+
call = &ndr_table_epmapper.calls[NDR_EPM_MGMTDELETE];
-
+
r = talloc(NULL, struct epm_MgmtDelete);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_MgmtDelete, r);
-
+ }
+
r->out.result = _epm_MgmtDelete(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_MgmtDelete, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_epm_MapAuth(pipes_struct *p)
@@ -541,67 +555,69 @@ static bool api_epm_MapAuth(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct epm_MapAuth *r;
-
+
call = &ndr_table_epmapper.calls[NDR_EPM_MAPAUTH];
-
+
r = talloc(NULL, struct epm_MapAuth);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(epm_MapAuth, r);
-
+ }
+
r->out.result = _epm_MapAuth(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(epm_MapAuth, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_eventlog.c b/source3/librpc/gen_ndr/srv_eventlog.c
index 784bb51d6f..d9310a8fbb 100644
--- a/source3/librpc/gen_ndr/srv_eventlog.c
+++ b/source3/librpc/gen_ndr/srv_eventlog.c
@@ -14,67 +14,69 @@ static bool api_eventlog_ClearEventLogW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_ClearEventLogW *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLEAREVENTLOGW];
-
+
r = talloc(NULL, struct eventlog_ClearEventLogW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogW, r);
-
+ }
+
r->out.result = _eventlog_ClearEventLogW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_BackupEventLogW(pipes_struct *p)
@@ -85,67 +87,69 @@ static bool api_eventlog_BackupEventLogW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_BackupEventLogW *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_BACKUPEVENTLOGW];
-
+
r = talloc(NULL, struct eventlog_BackupEventLogW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogW, r);
-
+ }
+
r->out.result = _eventlog_BackupEventLogW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_CloseEventLog(pipes_struct *p)
@@ -156,69 +160,71 @@ static bool api_eventlog_CloseEventLog(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_CloseEventLog *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLOSEEVENTLOG];
-
+
r = talloc(NULL, struct eventlog_CloseEventLog);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_CloseEventLog, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = r->in.handle;
r->out.result = _eventlog_CloseEventLog(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_CloseEventLog, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_DeregisterEventSource(pipes_struct *p)
@@ -229,67 +235,69 @@ static bool api_eventlog_DeregisterEventSource(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_DeregisterEventSource *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_DEREGISTEREVENTSOURCE];
-
+
r = talloc(NULL, struct eventlog_DeregisterEventSource);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_DeregisterEventSource, r);
-
+ }
+
r->out.result = _eventlog_DeregisterEventSource(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_DeregisterEventSource, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_GetNumRecords(pipes_struct *p)
@@ -300,74 +308,76 @@ static bool api_eventlog_GetNumRecords(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_GetNumRecords *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETNUMRECORDS];
-
+
r = talloc(NULL, struct eventlog_GetNumRecords);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_GetNumRecords, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.number = talloc_zero(r, uint32_t);
if (r->out.number == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _eventlog_GetNumRecords(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_GetNumRecords, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_GetOldestRecord(pipes_struct *p)
@@ -378,67 +388,69 @@ static bool api_eventlog_GetOldestRecord(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_GetOldestRecord *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETOLDESTRECORD];
-
+
r = talloc(NULL, struct eventlog_GetOldestRecord);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_GetOldestRecord, r);
-
+ }
+
r->out.result = _eventlog_GetOldestRecord(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_GetOldestRecord, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_ChangeNotify(pipes_struct *p)
@@ -449,67 +461,69 @@ static bool api_eventlog_ChangeNotify(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_ChangeNotify *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CHANGENOTIFY];
-
+
r = talloc(NULL, struct eventlog_ChangeNotify);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ChangeNotify, r);
-
+ }
+
r->out.result = _eventlog_ChangeNotify(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ChangeNotify, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_OpenEventLogW(pipes_struct *p)
@@ -520,74 +534,76 @@ static bool api_eventlog_OpenEventLogW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_OpenEventLogW *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENEVENTLOGW];
-
+
r = talloc(NULL, struct eventlog_OpenEventLogW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _eventlog_OpenEventLogW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_RegisterEventSourceW(pipes_struct *p)
@@ -598,67 +614,69 @@ static bool api_eventlog_RegisterEventSourceW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_RegisterEventSourceW *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTEREVENTSOURCEW];
-
+
r = talloc(NULL, struct eventlog_RegisterEventSourceW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceW, r);
-
+ }
+
r->out.result = _eventlog_RegisterEventSourceW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_OpenBackupEventLogW(pipes_struct *p)
@@ -669,67 +687,69 @@ static bool api_eventlog_OpenBackupEventLogW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_OpenBackupEventLogW *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENBACKUPEVENTLOGW];
-
+
r = talloc(NULL, struct eventlog_OpenBackupEventLogW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogW, r);
-
+ }
+
r->out.result = _eventlog_OpenBackupEventLogW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_ReadEventLogW(pipes_struct *p)
@@ -740,86 +760,88 @@ static bool api_eventlog_ReadEventLogW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_ReadEventLogW *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_READEVENTLOGW];
-
+
r = talloc(NULL, struct eventlog_ReadEventLogW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.data = talloc_zero_array(r, uint8_t, r->in.number_of_bytes);
if (r->out.data == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.sent_size = talloc_zero(r, uint32_t);
if (r->out.sent_size == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.real_size = talloc_zero(r, uint32_t);
if (r->out.real_size == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _eventlog_ReadEventLogW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_ReportEventW(pipes_struct *p)
@@ -830,67 +852,69 @@ static bool api_eventlog_ReportEventW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_ReportEventW *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REPORTEVENTW];
-
+
r = talloc(NULL, struct eventlog_ReportEventW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ReportEventW, r);
-
+ }
+
r->out.result = _eventlog_ReportEventW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ReportEventW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_ClearEventLogA(pipes_struct *p)
@@ -901,67 +925,69 @@ static bool api_eventlog_ClearEventLogA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_ClearEventLogA *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLEAREVENTLOGA];
-
+
r = talloc(NULL, struct eventlog_ClearEventLogA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogA, r);
-
+ }
+
r->out.result = _eventlog_ClearEventLogA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_BackupEventLogA(pipes_struct *p)
@@ -972,67 +998,69 @@ static bool api_eventlog_BackupEventLogA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_BackupEventLogA *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_BACKUPEVENTLOGA];
-
+
r = talloc(NULL, struct eventlog_BackupEventLogA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogA, r);
-
+ }
+
r->out.result = _eventlog_BackupEventLogA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_OpenEventLogA(pipes_struct *p)
@@ -1043,67 +1071,69 @@ static bool api_eventlog_OpenEventLogA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_OpenEventLogA *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENEVENTLOGA];
-
+
r = talloc(NULL, struct eventlog_OpenEventLogA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogA, r);
-
+ }
+
r->out.result = _eventlog_OpenEventLogA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_RegisterEventSourceA(pipes_struct *p)
@@ -1114,67 +1144,69 @@ static bool api_eventlog_RegisterEventSourceA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_RegisterEventSourceA *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTEREVENTSOURCEA];
-
+
r = talloc(NULL, struct eventlog_RegisterEventSourceA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceA, r);
-
+ }
+
r->out.result = _eventlog_RegisterEventSourceA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_OpenBackupEventLogA(pipes_struct *p)
@@ -1185,67 +1217,69 @@ static bool api_eventlog_OpenBackupEventLogA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_OpenBackupEventLogA *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENBACKUPEVENTLOGA];
-
+
r = talloc(NULL, struct eventlog_OpenBackupEventLogA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogA, r);
-
+ }
+
r->out.result = _eventlog_OpenBackupEventLogA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_ReadEventLogA(pipes_struct *p)
@@ -1256,67 +1290,69 @@ static bool api_eventlog_ReadEventLogA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_ReadEventLogA *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_READEVENTLOGA];
-
+
r = talloc(NULL, struct eventlog_ReadEventLogA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogA, r);
-
+ }
+
r->out.result = _eventlog_ReadEventLogA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_ReportEventA(pipes_struct *p)
@@ -1327,67 +1363,69 @@ static bool api_eventlog_ReportEventA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_ReportEventA *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REPORTEVENTA];
-
+
r = talloc(NULL, struct eventlog_ReportEventA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_ReportEventA, r);
-
+ }
+
r->out.result = _eventlog_ReportEventA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_ReportEventA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_RegisterClusterSvc(pipes_struct *p)
@@ -1398,67 +1436,69 @@ static bool api_eventlog_RegisterClusterSvc(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_RegisterClusterSvc *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTERCLUSTERSVC];
-
+
r = talloc(NULL, struct eventlog_RegisterClusterSvc);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_RegisterClusterSvc, r);
-
+ }
+
r->out.result = _eventlog_RegisterClusterSvc(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_RegisterClusterSvc, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_DeregisterClusterSvc(pipes_struct *p)
@@ -1469,67 +1509,69 @@ static bool api_eventlog_DeregisterClusterSvc(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_DeregisterClusterSvc *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_DEREGISTERCLUSTERSVC];
-
+
r = talloc(NULL, struct eventlog_DeregisterClusterSvc);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_DeregisterClusterSvc, r);
-
+ }
+
r->out.result = _eventlog_DeregisterClusterSvc(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_DeregisterClusterSvc, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_WriteClusterEvents(pipes_struct *p)
@@ -1540,67 +1582,69 @@ static bool api_eventlog_WriteClusterEvents(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_WriteClusterEvents *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_WRITECLUSTEREVENTS];
-
+
r = talloc(NULL, struct eventlog_WriteClusterEvents);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_WriteClusterEvents, r);
-
+ }
+
r->out.result = _eventlog_WriteClusterEvents(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_WriteClusterEvents, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_GetLogIntormation(pipes_struct *p)
@@ -1611,67 +1655,69 @@ static bool api_eventlog_GetLogIntormation(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_GetLogIntormation *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETLOGINTORMATION];
-
+
r = talloc(NULL, struct eventlog_GetLogIntormation);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_GetLogIntormation, r);
-
+ }
+
r->out.result = _eventlog_GetLogIntormation(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_GetLogIntormation, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_eventlog_FlushEventLog(pipes_struct *p)
@@ -1682,67 +1728,69 @@ static bool api_eventlog_FlushEventLog(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct eventlog_FlushEventLog *r;
-
+
call = &ndr_table_eventlog.calls[NDR_EVENTLOG_FLUSHEVENTLOG];
-
+
r = talloc(NULL, struct eventlog_FlushEventLog);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(eventlog_FlushEventLog, r);
-
+ }
+
r->out.result = _eventlog_FlushEventLog(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(eventlog_FlushEventLog, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_initshutdown.c b/source3/librpc/gen_ndr/srv_initshutdown.c
index 56fbf42957..794adea81b 100644
--- a/source3/librpc/gen_ndr/srv_initshutdown.c
+++ b/source3/librpc/gen_ndr/srv_initshutdown.c
@@ -14,67 +14,69 @@ static bool api_initshutdown_Init(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct initshutdown_Init *r;
-
+
call = &ndr_table_initshutdown.calls[NDR_INITSHUTDOWN_INIT];
-
+
r = talloc(NULL, struct initshutdown_Init);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(initshutdown_Init, r);
-
+ }
+
r->out.result = _initshutdown_Init(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(initshutdown_Init, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_initshutdown_Abort(pipes_struct *p)
@@ -85,67 +87,69 @@ static bool api_initshutdown_Abort(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct initshutdown_Abort *r;
-
+
call = &ndr_table_initshutdown.calls[NDR_INITSHUTDOWN_ABORT];
-
+
r = talloc(NULL, struct initshutdown_Abort);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(initshutdown_Abort, r);
-
+ }
+
r->out.result = _initshutdown_Abort(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(initshutdown_Abort, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_initshutdown_InitEx(pipes_struct *p)
@@ -156,67 +160,69 @@ static bool api_initshutdown_InitEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct initshutdown_InitEx *r;
-
+
call = &ndr_table_initshutdown.calls[NDR_INITSHUTDOWN_INITEX];
-
+
r = talloc(NULL, struct initshutdown_InitEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(initshutdown_InitEx, r);
-
+ }
+
r->out.result = _initshutdown_InitEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_lsa.c b/source3/librpc/gen_ndr/srv_lsa.c
index b76680969a..68dc32cef5 100644
--- a/source3/librpc/gen_ndr/srv_lsa.c
+++ b/source3/librpc/gen_ndr/srv_lsa.c
@@ -14,69 +14,71 @@ static bool api_lsa_Close(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_Close *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CLOSE];
-
+
r = talloc(NULL, struct lsa_Close);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_Close, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = r->in.handle;
r->out.result = _lsa_Close(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_Close, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_Delete(pipes_struct *p)
@@ -87,67 +89,69 @@ static bool api_lsa_Delete(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_Delete *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_DELETE];
-
+
r = talloc(NULL, struct lsa_Delete);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_Delete, r);
-
+ }
+
r->out.result = _lsa_Delete(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_Delete, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_EnumPrivs(pipes_struct *p)
@@ -158,75 +162,77 @@ static bool api_lsa_EnumPrivs(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumPrivs *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMPRIVS];
-
+
r = talloc(NULL, struct lsa_EnumPrivs);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.resume_handle = r->in.resume_handle;
r->out.privs = talloc_zero(r, struct lsa_PrivArray);
if (r->out.privs == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_EnumPrivs(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_QuerySecurity(pipes_struct *p)
@@ -237,74 +243,76 @@ static bool api_lsa_QuerySecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QuerySecurity *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYSECURITY];
-
+
r = talloc(NULL, struct lsa_QuerySecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sdbuf = talloc_zero(r, struct sec_desc_buf);
if (r->out.sdbuf == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_QuerySecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetSecObj(pipes_struct *p)
@@ -315,67 +323,69 @@ static bool api_lsa_SetSecObj(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetSecObj *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETSECOBJ];
-
+
r = talloc(NULL, struct lsa_SetSecObj);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetSecObj, r);
-
+ }
+
r->out.result = _lsa_SetSecObj(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_ChangePassword(pipes_struct *p)
@@ -386,67 +396,69 @@ static bool api_lsa_ChangePassword(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_ChangePassword *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CHANGEPASSWORD];
-
+
r = talloc(NULL, struct lsa_ChangePassword);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_ChangePassword, r);
-
+ }
+
r->out.result = _lsa_ChangePassword(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_OpenPolicy(pipes_struct *p)
@@ -457,74 +469,76 @@ static bool api_lsa_OpenPolicy(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenPolicy *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_OPENPOLICY];
-
+
r = talloc(NULL, struct lsa_OpenPolicy);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_OpenPolicy(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_QueryInfoPolicy(pipes_struct *p)
@@ -535,74 +549,76 @@ static bool api_lsa_QueryInfoPolicy(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryInfoPolicy *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYINFOPOLICY];
-
+
r = talloc(NULL, struct lsa_QueryInfoPolicy);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union lsa_PolicyInformation);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_QueryInfoPolicy(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetInfoPolicy(pipes_struct *p)
@@ -613,67 +629,69 @@ static bool api_lsa_SetInfoPolicy(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetInfoPolicy *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETINFOPOLICY];
-
+
r = talloc(NULL, struct lsa_SetInfoPolicy);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, r);
-
+ }
+
r->out.result = _lsa_SetInfoPolicy(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_ClearAuditLog(pipes_struct *p)
@@ -684,67 +702,69 @@ static bool api_lsa_ClearAuditLog(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_ClearAuditLog *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CLEARAUDITLOG];
-
+
r = talloc(NULL, struct lsa_ClearAuditLog);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, r);
-
+ }
+
r->out.result = _lsa_ClearAuditLog(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CreateAccount(pipes_struct *p)
@@ -755,74 +775,76 @@ static bool api_lsa_CreateAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREATEACCOUNT];
-
+
r = talloc(NULL, struct lsa_CreateAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateAccount, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.acct_handle = talloc_zero(r, struct policy_handle);
if (r->out.acct_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_CreateAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_EnumAccounts(pipes_struct *p)
@@ -833,75 +855,77 @@ static bool api_lsa_EnumAccounts(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumAccounts *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMACCOUNTS];
-
+
r = talloc(NULL, struct lsa_EnumAccounts);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.resume_handle = r->in.resume_handle;
r->out.sids = talloc_zero(r, struct lsa_SidArray);
if (r->out.sids == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_EnumAccounts(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CreateTrustedDomain(pipes_struct *p)
@@ -912,74 +936,76 @@ static bool api_lsa_CreateTrustedDomain(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateTrustedDomain *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREATETRUSTEDDOMAIN];
-
+
r = talloc(NULL, struct lsa_CreateTrustedDomain);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
if (r->out.trustdom_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_CreateTrustedDomain(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_EnumTrustDom(pipes_struct *p)
@@ -990,75 +1016,77 @@ static bool api_lsa_EnumTrustDom(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumTrustDom *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMTRUSTDOM];
-
+
r = talloc(NULL, struct lsa_EnumTrustDom);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.resume_handle = r->in.resume_handle;
r->out.domains = talloc_zero(r, struct lsa_DomainList);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_EnumTrustDom(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupNames(pipes_struct *p)
@@ -1069,76 +1097,78 @@ static bool api_lsa_LookupNames(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupNames *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPNAMES];
-
+
r = talloc(NULL, struct lsa_LookupNames);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupNames, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.sids = r->in.sids;
r->out.count = r->in.count;
r->out.result = _lsa_LookupNames(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupNames, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupSids(pipes_struct *p)
@@ -1149,76 +1179,78 @@ static bool api_lsa_LookupSids(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupSids *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPSIDS];
-
+
r = talloc(NULL, struct lsa_LookupSids);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupSids, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.names = r->in.names;
r->out.count = r->in.count;
r->out.result = _lsa_LookupSids(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupSids, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CreateSecret(pipes_struct *p)
@@ -1229,74 +1261,76 @@ static bool api_lsa_CreateSecret(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateSecret *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREATESECRET];
-
+
r = talloc(NULL, struct lsa_CreateSecret);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateSecret, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sec_handle = talloc_zero(r, struct policy_handle);
if (r->out.sec_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_CreateSecret(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_OpenAccount(pipes_struct *p)
@@ -1307,74 +1341,76 @@ static bool api_lsa_OpenAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_OPENACCOUNT];
-
+
r = talloc(NULL, struct lsa_OpenAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenAccount, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.acct_handle = talloc_zero(r, struct policy_handle);
if (r->out.acct_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_OpenAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_EnumPrivsAccount(pipes_struct *p)
@@ -1385,74 +1421,76 @@ static bool api_lsa_EnumPrivsAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumPrivsAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMPRIVSACCOUNT];
-
+
r = talloc(NULL, struct lsa_EnumPrivsAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.privs = talloc_zero(r, struct lsa_PrivilegeSet);
if (r->out.privs == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_EnumPrivsAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_AddPrivilegesToAccount(pipes_struct *p)
@@ -1463,67 +1501,69 @@ static bool api_lsa_AddPrivilegesToAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_AddPrivilegesToAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ADDPRIVILEGESTOACCOUNT];
-
+
r = talloc(NULL, struct lsa_AddPrivilegesToAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, r);
-
+ }
+
r->out.result = _lsa_AddPrivilegesToAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
@@ -1534,67 +1574,69 @@ static bool api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_RemovePrivilegesFromAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_REMOVEPRIVILEGESFROMACCOUNT];
-
+
r = talloc(NULL, struct lsa_RemovePrivilegesFromAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, r);
-
+ }
+
r->out.result = _lsa_RemovePrivilegesFromAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_GetQuotasForAccount(pipes_struct *p)
@@ -1605,67 +1647,69 @@ static bool api_lsa_GetQuotasForAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_GetQuotasForAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_GETQUOTASFORACCOUNT];
-
+
r = talloc(NULL, struct lsa_GetQuotasForAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, r);
-
+ }
+
r->out.result = _lsa_GetQuotasForAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetQuotasForAccount(pipes_struct *p)
@@ -1676,67 +1720,69 @@ static bool api_lsa_SetQuotasForAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetQuotasForAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETQUOTASFORACCOUNT];
-
+
r = talloc(NULL, struct lsa_SetQuotasForAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, r);
-
+ }
+
r->out.result = _lsa_SetQuotasForAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_GetSystemAccessAccount(pipes_struct *p)
@@ -1747,67 +1793,69 @@ static bool api_lsa_GetSystemAccessAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_GetSystemAccessAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_GETSYSTEMACCESSACCOUNT];
-
+
r = talloc(NULL, struct lsa_GetSystemAccessAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, r);
-
+ }
+
r->out.result = _lsa_GetSystemAccessAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetSystemAccessAccount(pipes_struct *p)
@@ -1818,67 +1866,69 @@ static bool api_lsa_SetSystemAccessAccount(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetSystemAccessAccount *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETSYSTEMACCESSACCOUNT];
-
+
r = talloc(NULL, struct lsa_SetSystemAccessAccount);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, r);
-
+ }
+
r->out.result = _lsa_SetSystemAccessAccount(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_OpenTrustedDomain(pipes_struct *p)
@@ -1889,74 +1939,76 @@ static bool api_lsa_OpenTrustedDomain(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenTrustedDomain *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_OPENTRUSTEDDOMAIN];
-
+
r = talloc(NULL, struct lsa_OpenTrustedDomain);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
if (r->out.trustdom_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_OpenTrustedDomain(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
@@ -1967,74 +2019,76 @@ static bool api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryTrustedDomainInfo *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYTRUSTEDDOMAININFO];
-
+
r = talloc(NULL, struct lsa_QueryTrustedDomainInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_QueryTrustedDomainInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetInformationTrustedDomain(pipes_struct *p)
@@ -2045,67 +2099,69 @@ static bool api_lsa_SetInformationTrustedDomain(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetInformationTrustedDomain *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETINFORMATIONTRUSTEDDOMAIN];
-
+
r = talloc(NULL, struct lsa_SetInformationTrustedDomain);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, r);
-
+ }
+
r->out.result = _lsa_SetInformationTrustedDomain(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_OpenSecret(pipes_struct *p)
@@ -2116,74 +2172,76 @@ static bool api_lsa_OpenSecret(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenSecret *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_OPENSECRET];
-
+
r = talloc(NULL, struct lsa_OpenSecret);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenSecret, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sec_handle = talloc_zero(r, struct policy_handle);
if (r->out.sec_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_OpenSecret(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetSecret(pipes_struct *p)
@@ -2194,67 +2252,69 @@ static bool api_lsa_SetSecret(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetSecret *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETSECRET];
-
+
r = talloc(NULL, struct lsa_SetSecret);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetSecret, r);
-
+ }
+
r->out.result = _lsa_SetSecret(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetSecret, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_QuerySecret(pipes_struct *p)
@@ -2265,72 +2325,74 @@ static bool api_lsa_QuerySecret(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QuerySecret *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYSECRET];
-
+
r = talloc(NULL, struct lsa_QuerySecret);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QuerySecret, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.new_val = r->in.new_val;
r->out.new_mtime = r->in.new_mtime;
r->out.old_val = r->in.old_val;
r->out.old_mtime = r->in.old_mtime;
r->out.result = _lsa_QuerySecret(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupPrivValue(pipes_struct *p)
@@ -2341,74 +2403,76 @@ static bool api_lsa_LookupPrivValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupPrivValue *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPPRIVVALUE];
-
+
r = talloc(NULL, struct lsa_LookupPrivValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.luid = talloc_zero(r, struct lsa_LUID);
if (r->out.luid == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_LookupPrivValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupPrivName(pipes_struct *p)
@@ -2419,74 +2483,76 @@ static bool api_lsa_LookupPrivName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupPrivName *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPPRIVNAME];
-
+
r = talloc(NULL, struct lsa_LookupPrivName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.name = talloc_zero(r, struct lsa_StringLarge);
if (r->out.name == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_LookupPrivName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupPrivDisplayName(pipes_struct *p)
@@ -2497,75 +2563,77 @@ static bool api_lsa_LookupPrivDisplayName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupPrivDisplayName *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPPRIVDISPLAYNAME];
-
+
r = talloc(NULL, struct lsa_LookupPrivDisplayName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.disp_name = talloc_zero(r, struct lsa_StringLarge);
if (r->out.disp_name == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.language_id = r->in.language_id;
r->out.result = _lsa_LookupPrivDisplayName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_DeleteObject(pipes_struct *p)
@@ -2576,67 +2644,69 @@ static bool api_lsa_DeleteObject(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_DeleteObject *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_DELETEOBJECT];
-
+
r = talloc(NULL, struct lsa_DeleteObject);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_DeleteObject, r);
-
+ }
+
r->out.result = _lsa_DeleteObject(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
@@ -2647,74 +2717,76 @@ static bool api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumAccountsWithUserRight *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMACCOUNTSWITHUSERRIGHT];
-
+
r = talloc(NULL, struct lsa_EnumAccountsWithUserRight);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sids = talloc_zero(r, struct lsa_SidArray);
if (r->out.sids == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_EnumAccountsWithUserRight(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_EnumAccountRights(pipes_struct *p)
@@ -2725,74 +2797,76 @@ static bool api_lsa_EnumAccountRights(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumAccountRights *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMACCOUNTRIGHTS];
-
+
r = talloc(NULL, struct lsa_EnumAccountRights);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.rights = talloc_zero(r, struct lsa_RightSet);
if (r->out.rights == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_EnumAccountRights(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_AddAccountRights(pipes_struct *p)
@@ -2803,67 +2877,69 @@ static bool api_lsa_AddAccountRights(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_AddAccountRights *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ADDACCOUNTRIGHTS];
-
+
r = talloc(NULL, struct lsa_AddAccountRights);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, r);
-
+ }
+
r->out.result = _lsa_AddAccountRights(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_RemoveAccountRights(pipes_struct *p)
@@ -2874,67 +2950,69 @@ static bool api_lsa_RemoveAccountRights(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_RemoveAccountRights *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_REMOVEACCOUNTRIGHTS];
-
+
r = talloc(NULL, struct lsa_RemoveAccountRights);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, r);
-
+ }
+
r->out.result = _lsa_RemoveAccountRights(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
@@ -2945,74 +3023,76 @@ static bool api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryTrustedDomainInfoBySid *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYTRUSTEDDOMAININFOBYSID];
-
+
r = talloc(NULL, struct lsa_QueryTrustedDomainInfoBySid);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_QueryTrustedDomainInfoBySid(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetTrustedDomainInfo(pipes_struct *p)
@@ -3023,67 +3103,69 @@ static bool api_lsa_SetTrustedDomainInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetTrustedDomainInfo *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETTRUSTEDDOMAININFO];
-
+
r = talloc(NULL, struct lsa_SetTrustedDomainInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, r);
-
+ }
+
r->out.result = _lsa_SetTrustedDomainInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_DeleteTrustedDomain(pipes_struct *p)
@@ -3094,67 +3176,69 @@ static bool api_lsa_DeleteTrustedDomain(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_DeleteTrustedDomain *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_DELETETRUSTEDDOMAIN];
-
+
r = talloc(NULL, struct lsa_DeleteTrustedDomain);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, r);
-
+ }
+
r->out.result = _lsa_DeleteTrustedDomain(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_StorePrivateData(pipes_struct *p)
@@ -3165,67 +3249,69 @@ static bool api_lsa_StorePrivateData(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_StorePrivateData *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_STOREPRIVATEDATA];
-
+
r = talloc(NULL, struct lsa_StorePrivateData);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, r);
-
+ }
+
r->out.result = _lsa_StorePrivateData(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_RetrievePrivateData(pipes_struct *p)
@@ -3236,67 +3322,69 @@ static bool api_lsa_RetrievePrivateData(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_RetrievePrivateData *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_RETRIEVEPRIVATEDATA];
-
+
r = talloc(NULL, struct lsa_RetrievePrivateData);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, r);
-
+ }
+
r->out.result = _lsa_RetrievePrivateData(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_OpenPolicy2(pipes_struct *p)
@@ -3307,74 +3395,76 @@ static bool api_lsa_OpenPolicy2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenPolicy2 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_OPENPOLICY2];
-
+
r = talloc(NULL, struct lsa_OpenPolicy2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_OpenPolicy2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_GetUserName(pipes_struct *p)
@@ -3385,70 +3475,72 @@ static bool api_lsa_GetUserName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_GetUserName *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_GETUSERNAME];
-
+
r = talloc(NULL, struct lsa_GetUserName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_GetUserName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.account_name = r->in.account_name;
r->out.authority_name = r->in.authority_name;
r->out.result = _lsa_GetUserName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_GetUserName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_QueryInfoPolicy2(pipes_struct *p)
@@ -3459,74 +3551,76 @@ static bool api_lsa_QueryInfoPolicy2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryInfoPolicy2 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYINFOPOLICY2];
-
+
r = talloc(NULL, struct lsa_QueryInfoPolicy2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union lsa_PolicyInformation);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_QueryInfoPolicy2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetInfoPolicy2(pipes_struct *p)
@@ -3537,67 +3631,69 @@ static bool api_lsa_SetInfoPolicy2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetInfoPolicy2 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETINFOPOLICY2];
-
+
r = talloc(NULL, struct lsa_SetInfoPolicy2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, r);
-
+ }
+
r->out.result = _lsa_SetInfoPolicy2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
@@ -3608,74 +3704,76 @@ static bool api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryTrustedDomainInfoByName *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYTRUSTEDDOMAININFOBYNAME];
-
+
r = talloc(NULL, struct lsa_QueryTrustedDomainInfoByName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_QueryTrustedDomainInfoByName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
@@ -3686,67 +3784,69 @@ static bool api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetTrustedDomainInfoByName *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETTRUSTEDDOMAININFOBYNAME];
-
+
r = talloc(NULL, struct lsa_SetTrustedDomainInfoByName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, r);
-
+ }
+
r->out.result = _lsa_SetTrustedDomainInfoByName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
@@ -3757,75 +3857,77 @@ static bool api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_EnumTrustedDomainsEx *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_ENUMTRUSTEDDOMAINSEX];
-
+
r = talloc(NULL, struct lsa_EnumTrustedDomainsEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.resume_handle = r->in.resume_handle;
r->out.domains = talloc_zero(r, struct lsa_DomainListEx);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_EnumTrustedDomainsEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CreateTrustedDomainEx(pipes_struct *p)
@@ -3836,67 +3938,69 @@ static bool api_lsa_CreateTrustedDomainEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateTrustedDomainEx *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREATETRUSTEDDOMAINEX];
-
+
r = talloc(NULL, struct lsa_CreateTrustedDomainEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, r);
-
+ }
+
r->out.result = _lsa_CreateTrustedDomainEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CloseTrustedDomainEx(pipes_struct *p)
@@ -3907,69 +4011,71 @@ static bool api_lsa_CloseTrustedDomainEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CloseTrustedDomainEx *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CLOSETRUSTEDDOMAINEX];
-
+
r = talloc(NULL, struct lsa_CloseTrustedDomainEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = r->in.handle;
r->out.result = _lsa_CloseTrustedDomainEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
@@ -3980,74 +4086,76 @@ static bool api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_QueryDomainInformationPolicy *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_QUERYDOMAININFORMATIONPOLICY];
-
+
r = talloc(NULL, struct lsa_QueryDomainInformationPolicy);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union lsa_DomainInformationPolicy);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_QueryDomainInformationPolicy(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_SetDomainInformationPolicy(pipes_struct *p)
@@ -4058,67 +4166,69 @@ static bool api_lsa_SetDomainInformationPolicy(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_SetDomainInformationPolicy *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_SETDOMAININFORMATIONPOLICY];
-
+
r = talloc(NULL, struct lsa_SetDomainInformationPolicy);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, r);
-
+ }
+
r->out.result = _lsa_SetDomainInformationPolicy(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_OpenTrustedDomainByName(pipes_struct *p)
@@ -4129,74 +4239,76 @@ static bool api_lsa_OpenTrustedDomainByName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_OpenTrustedDomainByName *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_OPENTRUSTEDDOMAINBYNAME];
-
+
r = talloc(NULL, struct lsa_OpenTrustedDomainByName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
if (r->out.trustdom_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _lsa_OpenTrustedDomainByName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_TestCall(pipes_struct *p)
@@ -4207,67 +4319,69 @@ static bool api_lsa_TestCall(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_TestCall *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_TESTCALL];
-
+
r = talloc(NULL, struct lsa_TestCall);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_TestCall, r);
-
+ }
+
r->out.result = _lsa_TestCall(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_TestCall, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupSids2(pipes_struct *p)
@@ -4278,76 +4392,78 @@ static bool api_lsa_LookupSids2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupSids2 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPSIDS2];
-
+
r = talloc(NULL, struct lsa_LookupSids2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupSids2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.names = r->in.names;
r->out.count = r->in.count;
r->out.result = _lsa_LookupSids2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupNames2(pipes_struct *p)
@@ -4358,76 +4474,78 @@ static bool api_lsa_LookupNames2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupNames2 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPNAMES2];
-
+
r = talloc(NULL, struct lsa_LookupNames2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupNames2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.sids = r->in.sids;
r->out.count = r->in.count;
r->out.result = _lsa_LookupNames2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
@@ -4438,67 +4556,69 @@ static bool api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CreateTrustedDomainEx2 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREATETRUSTEDDOMAINEX2];
-
+
r = talloc(NULL, struct lsa_CreateTrustedDomainEx2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, r);
-
+ }
+
r->out.result = _lsa_CreateTrustedDomainEx2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRWRITE(pipes_struct *p)
@@ -4509,67 +4629,69 @@ static bool api_lsa_CREDRWRITE(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRWRITE *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRWRITE];
-
+
r = talloc(NULL, struct lsa_CREDRWRITE);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, r);
-
+ }
+
r->out.result = _lsa_CREDRWRITE(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRREAD(pipes_struct *p)
@@ -4580,67 +4702,69 @@ static bool api_lsa_CREDRREAD(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRREAD *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRREAD];
-
+
r = talloc(NULL, struct lsa_CREDRREAD);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, r);
-
+ }
+
r->out.result = _lsa_CREDRREAD(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRENUMERATE(pipes_struct *p)
@@ -4651,67 +4775,69 @@ static bool api_lsa_CREDRENUMERATE(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRENUMERATE *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRENUMERATE];
-
+
r = talloc(NULL, struct lsa_CREDRENUMERATE);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, r);
-
+ }
+
r->out.result = _lsa_CREDRENUMERATE(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
@@ -4722,67 +4848,69 @@ static bool api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRWRITEDOMAINCREDENTIALS *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRWRITEDOMAINCREDENTIALS];
-
+
r = talloc(NULL, struct lsa_CREDRWRITEDOMAINCREDENTIALS);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, r);
-
+ }
+
r->out.result = _lsa_CREDRWRITEDOMAINCREDENTIALS(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
@@ -4793,67 +4921,69 @@ static bool api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRREADDOMAINCREDENTIALS *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRREADDOMAINCREDENTIALS];
-
+
r = talloc(NULL, struct lsa_CREDRREADDOMAINCREDENTIALS);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, r);
-
+ }
+
r->out.result = _lsa_CREDRREADDOMAINCREDENTIALS(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRDELETE(pipes_struct *p)
@@ -4864,67 +4994,69 @@ static bool api_lsa_CREDRDELETE(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRDELETE *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRDELETE];
-
+
r = talloc(NULL, struct lsa_CREDRDELETE);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, r);
-
+ }
+
r->out.result = _lsa_CREDRDELETE(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
@@ -4935,67 +5067,69 @@ static bool api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRGETTARGETINFO *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRGETTARGETINFO];
-
+
r = talloc(NULL, struct lsa_CREDRGETTARGETINFO);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, r);
-
+ }
+
r->out.result = _lsa_CREDRGETTARGETINFO(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRPROFILELOADED(pipes_struct *p)
@@ -5006,67 +5140,69 @@ static bool api_lsa_CREDRPROFILELOADED(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRPROFILELOADED *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRPROFILELOADED];
-
+
r = talloc(NULL, struct lsa_CREDRPROFILELOADED);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, r);
-
+ }
+
r->out.result = _lsa_CREDRPROFILELOADED(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupNames3(pipes_struct *p)
@@ -5077,76 +5213,78 @@ static bool api_lsa_LookupNames3(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupNames3 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPNAMES3];
-
+
r = talloc(NULL, struct lsa_LookupNames3);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupNames3, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.sids = r->in.sids;
r->out.count = r->in.count;
r->out.result = _lsa_LookupNames3(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
@@ -5157,67 +5295,69 @@ static bool api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRGETSESSIONTYPES *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRGETSESSIONTYPES];
-
+
r = talloc(NULL, struct lsa_CREDRGETSESSIONTYPES);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, r);
-
+ }
+
r->out.result = _lsa_CREDRGETSESSIONTYPES(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
@@ -5228,67 +5368,69 @@ static bool api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARREGISTERAUDITEVENT *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARREGISTERAUDITEVENT];
-
+
r = talloc(NULL, struct lsa_LSARREGISTERAUDITEVENT);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, r);
-
+ }
+
r->out.result = _lsa_LSARREGISTERAUDITEVENT(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
@@ -5299,67 +5441,69 @@ static bool api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARGENAUDITEVENT *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARGENAUDITEVENT];
-
+
r = talloc(NULL, struct lsa_LSARGENAUDITEVENT);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, r);
-
+ }
+
r->out.result = _lsa_LSARGENAUDITEVENT(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
@@ -5370,67 +5514,69 @@ static bool api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARUNREGISTERAUDITEVENT *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARUNREGISTERAUDITEVENT];
-
+
r = talloc(NULL, struct lsa_LSARUNREGISTERAUDITEVENT);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, r);
-
+ }
+
r->out.result = _lsa_LSARUNREGISTERAUDITEVENT(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
@@ -5441,67 +5587,69 @@ static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARQUERYFORESTTRUSTINFORMATION *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION];
-
+
r = talloc(NULL, struct lsa_LSARQUERYFORESTTRUSTINFORMATION);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, r);
-
+ }
+
r->out.result = _lsa_LSARQUERYFORESTTRUSTINFORMATION(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
@@ -5512,67 +5660,69 @@ static bool api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARSETFORESTTRUSTINFORMATION *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARSETFORESTTRUSTINFORMATION];
-
+
r = talloc(NULL, struct lsa_LSARSETFORESTTRUSTINFORMATION);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, r);
-
+ }
+
r->out.result = _lsa_LSARSETFORESTTRUSTINFORMATION(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_CREDRRENAME(pipes_struct *p)
@@ -5583,67 +5733,69 @@ static bool api_lsa_CREDRRENAME(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_CREDRRENAME *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_CREDRRENAME];
-
+
r = talloc(NULL, struct lsa_CREDRRENAME);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, r);
-
+ }
+
r->out.result = _lsa_CREDRRENAME(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupSids3(pipes_struct *p)
@@ -5654,76 +5806,78 @@ static bool api_lsa_LookupSids3(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupSids3 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPSIDS3];
-
+
r = talloc(NULL, struct lsa_LookupSids3);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupSids3, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.names = r->in.names;
r->out.count = r->in.count;
r->out.result = _lsa_LookupSids3(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LookupNames4(pipes_struct *p)
@@ -5734,76 +5888,78 @@ static bool api_lsa_LookupNames4(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LookupNames4 *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LOOKUPNAMES4];
-
+
r = talloc(NULL, struct lsa_LookupNames4);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LookupNames4, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.domains = talloc_zero(r, struct lsa_RefDomainList);
if (r->out.domains == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.sids = r->in.sids;
r->out.count = r->in.count;
r->out.result = _lsa_LookupNames4(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
@@ -5814,67 +5970,69 @@ static bool api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSAROPENPOLICYSCE *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSAROPENPOLICYSCE];
-
+
r = talloc(NULL, struct lsa_LSAROPENPOLICYSCE);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, r);
-
+ }
+
r->out.result = _lsa_LSAROPENPOLICYSCE(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
@@ -5885,67 +6043,69 @@ static bool api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARADTREGISTERSECURITYEVENTSOURCE];
-
+
r = talloc(NULL, struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, r);
-
+ }
+
r->out.result = _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
@@ -5956,67 +6116,69 @@ static bool api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE];
-
+
r = talloc(NULL, struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, r);
-
+ }
+
r->out.result = _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
@@ -6027,67 +6189,69 @@ static bool api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct lsa_LSARADTREPORTSECURITYEVENT *r;
-
+
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARADTREPORTSECURITYEVENT];
-
+
r = talloc(NULL, struct lsa_LSARADTREPORTSECURITYEVENT);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, r);
-
+ }
+
r->out.result = _lsa_LSARADTREPORTSECURITYEVENT(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_netlogon.c b/source3/librpc/gen_ndr/srv_netlogon.c
index 899e1bf6b0..163de46ca8 100644
--- a/source3/librpc/gen_ndr/srv_netlogon.c
+++ b/source3/librpc/gen_ndr/srv_netlogon.c
@@ -14,74 +14,76 @@ static bool api_netr_LogonUasLogon(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonUasLogon *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONUASLOGON];
-
+
r = talloc(NULL, struct netr_LogonUasLogon);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonUasLogon, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, struct netr_UasInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_LogonUasLogon(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonUasLogon, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonUasLogoff(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_netr_LogonUasLogoff(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonUasLogoff *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONUASLOGOFF];
-
+
r = talloc(NULL, struct netr_LogonUasLogoff);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonUasLogoff, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, struct netr_UasLogoffInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_LogonUasLogoff(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonUasLogoff, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonSamLogon(pipes_struct *p)
@@ -170,81 +174,83 @@ static bool api_netr_LogonSamLogon(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonSamLogon *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONSAMLOGON];
-
+
r = talloc(NULL, struct netr_LogonSamLogon);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonSamLogon, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.validation = talloc_zero(r, union netr_Validation);
if (r->out.validation == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.authoritative = talloc_zero(r, uint8_t);
if (r->out.authoritative == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_LogonSamLogon(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonSamLogon, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonSamLogoff(pipes_struct *p)
@@ -255,69 +261,71 @@ static bool api_netr_LogonSamLogoff(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonSamLogoff *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONSAMLOGOFF];
-
+
r = talloc(NULL, struct netr_LogonSamLogoff);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonSamLogoff, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.result = _netr_LogonSamLogoff(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonSamLogoff, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_ServerReqChallenge(pipes_struct *p)
@@ -328,69 +336,71 @@ static bool api_netr_ServerReqChallenge(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_ServerReqChallenge *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_SERVERREQCHALLENGE];
-
+
r = talloc(NULL, struct netr_ServerReqChallenge);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerReqChallenge, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.credentials = r->in.credentials;
r->out.result = _netr_ServerReqChallenge(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerReqChallenge, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_ServerAuthenticate(pipes_struct *p)
@@ -401,69 +411,71 @@ static bool api_netr_ServerAuthenticate(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_ServerAuthenticate *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_SERVERAUTHENTICATE];
-
+
r = talloc(NULL, struct netr_ServerAuthenticate);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.credentials = r->in.credentials;
r->out.result = _netr_ServerAuthenticate(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_ServerPasswordSet(pipes_struct *p)
@@ -474,74 +486,76 @@ static bool api_netr_ServerPasswordSet(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_ServerPasswordSet *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_SERVERPASSWORDSET];
-
+
r = talloc(NULL, struct netr_ServerPasswordSet);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = talloc_zero(r, struct netr_Authenticator);
if (r->out.return_authenticator == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_ServerPasswordSet(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DatabaseDeltas(pipes_struct *p)
@@ -552,76 +566,78 @@ static bool api_netr_DatabaseDeltas(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DatabaseDeltas *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DATABASEDELTAS];
-
+
r = talloc(NULL, struct netr_DatabaseDeltas);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DatabaseDeltas, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.sequence_num = r->in.sequence_num;
r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
if (r->out.delta_enum_array == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DatabaseDeltas(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DatabaseDeltas, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DatabaseSync(pipes_struct *p)
@@ -632,76 +648,78 @@ static bool api_netr_DatabaseSync(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DatabaseSync *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DATABASESYNC];
-
+
r = talloc(NULL, struct netr_DatabaseSync);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DatabaseSync, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.sync_context = r->in.sync_context;
r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
if (r->out.delta_enum_array == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DatabaseSync(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DatabaseSync, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_AccountDeltas(pipes_struct *p)
@@ -712,93 +730,95 @@ static bool api_netr_AccountDeltas(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_AccountDeltas *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_ACCOUNTDELTAS];
-
+
r = talloc(NULL, struct netr_AccountDeltas);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_AccountDeltas, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.buffer = talloc_zero(r, struct netr_AccountBuffer);
if (r->out.buffer == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.count_returned = talloc_zero(r, uint32_t);
if (r->out.count_returned == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.total_entries = talloc_zero(r, uint32_t);
if (r->out.total_entries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.recordid = talloc_zero(r, struct netr_UAS_INFO_0);
if (r->out.recordid == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_AccountDeltas(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_AccountDeltas, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_AccountSync(pipes_struct *p)
@@ -809,94 +829,96 @@ static bool api_netr_AccountSync(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_AccountSync *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_ACCOUNTSYNC];
-
+
r = talloc(NULL, struct netr_AccountSync);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_AccountSync, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.buffer = talloc_zero(r, struct netr_AccountBuffer);
if (r->out.buffer == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.count_returned = talloc_zero(r, uint32_t);
if (r->out.count_returned == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.total_entries = talloc_zero(r, uint32_t);
if (r->out.total_entries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.next_reference = talloc_zero(r, uint32_t);
if (r->out.next_reference == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.recordid = r->in.recordid;
r->out.result = _netr_AccountSync(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_AccountSync, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_GetDcName(pipes_struct *p)
@@ -907,74 +929,76 @@ static bool api_netr_GetDcName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_GetDcName *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_GETDCNAME];
-
+
r = talloc(NULL, struct netr_GetDcName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_GetDcName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.dcname = talloc_zero(r, const char *);
if (r->out.dcname == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_GetDcName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_GetDcName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonControl(pipes_struct *p)
@@ -985,74 +1009,76 @@ static bool api_netr_LogonControl(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonControl *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONCONTROL];
-
+
r = talloc(NULL, struct netr_LogonControl);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonControl, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union netr_CONTROL_QUERY_INFORMATION);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_LogonControl(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonControl, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_GetAnyDCName(pipes_struct *p)
@@ -1063,74 +1089,76 @@ static bool api_netr_GetAnyDCName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_GetAnyDCName *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_GETANYDCNAME];
-
+
r = talloc(NULL, struct netr_GetAnyDCName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_GetAnyDCName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.dcname = talloc_zero(r, const char *);
if (r->out.dcname == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_GetAnyDCName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_GetAnyDCName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonControl2(pipes_struct *p)
@@ -1141,74 +1169,76 @@ static bool api_netr_LogonControl2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonControl2 *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONCONTROL2];
-
+
r = talloc(NULL, struct netr_LogonControl2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonControl2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.query = talloc_zero(r, union netr_CONTROL_QUERY_INFORMATION);
if (r->out.query == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_LogonControl2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonControl2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_ServerAuthenticate2(pipes_struct *p)
@@ -1219,70 +1249,72 @@ static bool api_netr_ServerAuthenticate2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_ServerAuthenticate2 *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_SERVERAUTHENTICATE2];
-
+
r = talloc(NULL, struct netr_ServerAuthenticate2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.credentials = r->in.credentials;
r->out.negotiate_flags = r->in.negotiate_flags;
r->out.result = _netr_ServerAuthenticate2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DatabaseSync2(pipes_struct *p)
@@ -1293,76 +1325,78 @@ static bool api_netr_DatabaseSync2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DatabaseSync2 *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DATABASESYNC2];
-
+
r = talloc(NULL, struct netr_DatabaseSync2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DatabaseSync2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.sync_context = r->in.sync_context;
r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
if (r->out.delta_enum_array == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DatabaseSync2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DatabaseSync2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DatabaseRedo(pipes_struct *p)
@@ -1373,75 +1407,77 @@ static bool api_netr_DatabaseRedo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DatabaseRedo *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DATABASEREDO];
-
+
r = talloc(NULL, struct netr_DatabaseRedo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DatabaseRedo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
if (r->out.delta_enum_array == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DatabaseRedo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DatabaseRedo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonControl2Ex(pipes_struct *p)
@@ -1452,74 +1488,76 @@ static bool api_netr_LogonControl2Ex(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonControl2Ex *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONCONTROL2EX];
-
+
r = talloc(NULL, struct netr_LogonControl2Ex);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonControl2Ex, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.query = talloc_zero(r, union netr_CONTROL_QUERY_INFORMATION);
if (r->out.query == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_LogonControl2Ex(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonControl2Ex, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRENUMERATETRUSTEDDOMAINS(pipes_struct *p)
@@ -1530,67 +1568,69 @@ static bool api_netr_NETRENUMERATETRUSTEDDOMAINS(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRENUMERATETRUSTEDDOMAINS *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRENUMERATETRUSTEDDOMAINS];
-
+
r = talloc(NULL, struct netr_NETRENUMERATETRUSTEDDOMAINS);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, r);
-
+ }
+
r->out.result = _netr_NETRENUMERATETRUSTEDDOMAINS(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DsRGetDCName(pipes_struct *p)
@@ -1601,74 +1641,76 @@ static bool api_netr_DsRGetDCName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DsRGetDCName *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETDCNAME];
-
+
r = talloc(NULL, struct netr_DsRGetDCName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsRGetDCName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, struct netr_DsRGetDCNameInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DsRGetDCName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsRGetDCName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRLOGONDUMMYROUTINE1(pipes_struct *p)
@@ -1679,67 +1721,69 @@ static bool api_netr_NETRLOGONDUMMYROUTINE1(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRLOGONDUMMYROUTINE1 *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONDUMMYROUTINE1];
-
+
r = talloc(NULL, struct netr_NETRLOGONDUMMYROUTINE1);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONDUMMYROUTINE1, r);
-
+ }
+
r->out.result = _netr_NETRLOGONDUMMYROUTINE1(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONDUMMYROUTINE1, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRLOGONSETSERVICEBITS(pipes_struct *p)
@@ -1750,67 +1794,69 @@ static bool api_netr_NETRLOGONSETSERVICEBITS(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRLOGONSETSERVICEBITS *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONSETSERVICEBITS];
-
+
r = talloc(NULL, struct netr_NETRLOGONSETSERVICEBITS);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONSETSERVICEBITS, r);
-
+ }
+
r->out.result = _netr_NETRLOGONSETSERVICEBITS(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSETSERVICEBITS, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRLOGONGETTRUSTRID(pipes_struct *p)
@@ -1821,67 +1867,69 @@ static bool api_netr_NETRLOGONGETTRUSTRID(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRLOGONGETTRUSTRID *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONGETTRUSTRID];
-
+
r = talloc(NULL, struct netr_NETRLOGONGETTRUSTRID);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTRUSTRID, r);
-
+ }
+
r->out.result = _netr_NETRLOGONGETTRUSTRID(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTRUSTRID, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct *p)
@@ -1892,67 +1940,69 @@ static bool api_netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRLOGONCOMPUTESERVERDIGEST *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONCOMPUTESERVERDIGEST];
-
+
r = talloc(NULL, struct netr_NETRLOGONCOMPUTESERVERDIGEST);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, r);
-
+ }
+
r->out.result = _netr_NETRLOGONCOMPUTESERVERDIGEST(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct *p)
@@ -1963,67 +2013,69 @@ static bool api_netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRLOGONCOMPUTECLIENTDIGEST *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONCOMPUTECLIENTDIGEST];
-
+
r = talloc(NULL, struct netr_NETRLOGONCOMPUTECLIENTDIGEST);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, r);
-
+ }
+
r->out.result = _netr_NETRLOGONCOMPUTECLIENTDIGEST(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_ServerAuthenticate3(pipes_struct *p)
@@ -2034,76 +2086,78 @@ static bool api_netr_ServerAuthenticate3(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_ServerAuthenticate3 *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_SERVERAUTHENTICATE3];
-
+
r = talloc(NULL, struct netr_ServerAuthenticate3);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate3, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.credentials = r->in.credentials;
r->out.negotiate_flags = r->in.negotiate_flags;
r->out.rid = talloc_zero(r, uint32_t);
if (r->out.rid == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_ServerAuthenticate3(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate3, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DsRGetDCNameEx(pipes_struct *p)
@@ -2114,74 +2168,76 @@ static bool api_netr_DsRGetDCNameEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DsRGetDCNameEx *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETDCNAMEEX];
-
+
r = talloc(NULL, struct netr_DsRGetDCNameEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, struct netr_DsRGetDCNameInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DsRGetDCNameEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DsRGetSiteName(pipes_struct *p)
@@ -2192,74 +2248,76 @@ static bool api_netr_DsRGetSiteName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DsRGetSiteName *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETSITENAME];
-
+
r = talloc(NULL, struct netr_DsRGetSiteName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsRGetSiteName, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.site = talloc_zero(r, const char *);
if (r->out.site == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DsRGetSiteName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsRGetSiteName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonGetDomainInfo(pipes_struct *p)
@@ -2270,75 +2328,77 @@ static bool api_netr_LogonGetDomainInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonGetDomainInfo *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONGETDOMAININFO];
-
+
r = talloc(NULL, struct netr_LogonGetDomainInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonGetDomainInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.info = talloc_zero(r, union netr_DomainInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_LogonGetDomainInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonGetDomainInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_ServerPasswordSet2(pipes_struct *p)
@@ -2349,74 +2409,76 @@ static bool api_netr_ServerPasswordSet2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_ServerPasswordSet2 *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_SERVERPASSWORDSET2];
-
+
r = talloc(NULL, struct netr_ServerPasswordSet2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = talloc_zero(r, struct netr_Authenticator);
if (r->out.return_authenticator == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_ServerPasswordSet2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRSERVERPASSWORDGET(pipes_struct *p)
@@ -2427,67 +2489,69 @@ static bool api_netr_NETRSERVERPASSWORDGET(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRSERVERPASSWORDGET *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRSERVERPASSWORDGET];
-
+
r = talloc(NULL, struct netr_NETRSERVERPASSWORDGET);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRSERVERPASSWORDGET, r);
-
+ }
+
r->out.result = _netr_NETRSERVERPASSWORDGET(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRSERVERPASSWORDGET, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRLOGONSENDTOSAM(pipes_struct *p)
@@ -2498,67 +2562,69 @@ static bool api_netr_NETRLOGONSENDTOSAM(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRLOGONSENDTOSAM *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONSENDTOSAM];
-
+
r = talloc(NULL, struct netr_NETRLOGONSENDTOSAM);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONSENDTOSAM, r);
-
+ }
+
r->out.result = _netr_NETRLOGONSENDTOSAM(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSENDTOSAM, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DSRADDRESSTOSITENAMESW(pipes_struct *p)
@@ -2569,67 +2635,69 @@ static bool api_netr_DSRADDRESSTOSITENAMESW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DSRADDRESSTOSITENAMESW *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRADDRESSTOSITENAMESW];
-
+
r = talloc(NULL, struct netr_DSRADDRESSTOSITENAMESW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESW, r);
-
+ }
+
r->out.result = _netr_DSRADDRESSTOSITENAMESW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DsRGetDCNameEx2(pipes_struct *p)
@@ -2640,74 +2708,76 @@ static bool api_netr_DsRGetDCNameEx2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DsRGetDCNameEx2 *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETDCNAMEEX2];
-
+
r = talloc(NULL, struct netr_DsRGetDCNameEx2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, struct netr_DsRGetDCNameInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DsRGetDCNameEx2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct *p)
@@ -2718,67 +2788,69 @@ static bool api_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN];
-
+
r = talloc(NULL, struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, r);
-
+ }
+
r->out.result = _netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRENUMERATETRUSTEDDOMAINSEX(pipes_struct *p)
@@ -2789,67 +2861,69 @@ static bool api_netr_NETRENUMERATETRUSTEDDOMAINSEX(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRENUMERATETRUSTEDDOMAINSEX *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRENUMERATETRUSTEDDOMAINSEX];
-
+
r = talloc(NULL, struct netr_NETRENUMERATETRUSTEDDOMAINSEX);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, r);
-
+ }
+
r->out.result = _netr_NETRENUMERATETRUSTEDDOMAINSEX(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DSRADDRESSTOSITENAMESEXW(pipes_struct *p)
@@ -2860,67 +2934,69 @@ static bool api_netr_DSRADDRESSTOSITENAMESEXW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DSRADDRESSTOSITENAMESEXW *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRADDRESSTOSITENAMESEXW];
-
+
r = talloc(NULL, struct netr_DSRADDRESSTOSITENAMESEXW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, r);
-
+ }
+
r->out.result = _netr_DSRADDRESSTOSITENAMESEXW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DSRGETDCSITECOVERAGEW(pipes_struct *p)
@@ -2931,67 +3007,69 @@ static bool api_netr_DSRGETDCSITECOVERAGEW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DSRGETDCSITECOVERAGEW *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETDCSITECOVERAGEW];
-
+
r = talloc(NULL, struct netr_DSRGETDCSITECOVERAGEW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRGETDCSITECOVERAGEW, r);
-
+ }
+
r->out.result = _netr_DSRGETDCSITECOVERAGEW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRGETDCSITECOVERAGEW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonSamLogonEx(pipes_struct *p)
@@ -3002,81 +3080,83 @@ static bool api_netr_LogonSamLogonEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonSamLogonEx *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONSAMLOGONEX];
-
+
r = talloc(NULL, struct netr_LogonSamLogonEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonSamLogonEx, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.validation = talloc_zero(r, union netr_Validation);
if (r->out.validation == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.authoritative = talloc_zero(r, uint8_t);
if (r->out.authoritative == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.flags = r->in.flags;
r->out.result = _netr_LogonSamLogonEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DsrEnumerateDomainTrusts(pipes_struct *p)
@@ -3087,80 +3167,82 @@ static bool api_netr_DsrEnumerateDomainTrusts(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DsrEnumerateDomainTrusts *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRENUMERATEDOMAINTRUSTS];
-
+
r = talloc(NULL, struct netr_DsrEnumerateDomainTrusts);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DsrEnumerateDomainTrusts, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.count = talloc_zero(r, uint32_t);
if (r->out.count == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.trusts = talloc_zero_array(r, struct netr_DomainTrust *, r->out.count);
if (r->out.trusts == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _netr_DsrEnumerateDomainTrusts(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DsrEnumerateDomainTrusts, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DSRDEREGISTERDNSHOSTRECORDS(pipes_struct *p)
@@ -3171,67 +3253,69 @@ static bool api_netr_DSRDEREGISTERDNSHOSTRECORDS(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DSRDEREGISTERDNSHOSTRECORDS *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRDEREGISTERDNSHOSTRECORDS];
-
+
r = talloc(NULL, struct netr_DSRDEREGISTERDNSHOSTRECORDS);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, r);
-
+ }
+
r->out.result = _netr_DSRDEREGISTERDNSHOSTRECORDS(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRSERVERTRUSTPASSWORDSGET(pipes_struct *p)
@@ -3242,67 +3326,69 @@ static bool api_netr_NETRSERVERTRUSTPASSWORDSGET(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRSERVERTRUSTPASSWORDSGET *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRSERVERTRUSTPASSWORDSGET];
-
+
r = talloc(NULL, struct netr_NETRSERVERTRUSTPASSWORDSGET);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, r);
-
+ }
+
r->out.result = _netr_NETRSERVERTRUSTPASSWORDSGET(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_DSRGETFORESTTRUSTINFORMATION(pipes_struct *p)
@@ -3313,67 +3399,69 @@ static bool api_netr_DSRGETFORESTTRUSTINFORMATION(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_DSRGETFORESTTRUSTINFORMATION *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_DSRGETFORESTTRUSTINFORMATION];
-
+
r = talloc(NULL, struct netr_DSRGETFORESTTRUSTINFORMATION);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, r);
-
+ }
+
r->out.result = _netr_DSRGETFORESTTRUSTINFORMATION(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRGETFORESTTRUSTINFORMATION(pipes_struct *p)
@@ -3384,67 +3472,69 @@ static bool api_netr_NETRGETFORESTTRUSTINFORMATION(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRGETFORESTTRUSTINFORMATION *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRGETFORESTTRUSTINFORMATION];
-
+
r = talloc(NULL, struct netr_NETRGETFORESTTRUSTINFORMATION);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, r);
-
+ }
+
r->out.result = _netr_NETRGETFORESTTRUSTINFORMATION(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_LogonSamLogonWithFlags(pipes_struct *p)
@@ -3455,82 +3545,84 @@ static bool api_netr_LogonSamLogonWithFlags(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_LogonSamLogonWithFlags *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_LOGONSAMLOGONWITHFLAGS];
-
+
r = talloc(NULL, struct netr_LogonSamLogonWithFlags);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_LogonSamLogonWithFlags, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.return_authenticator = r->in.return_authenticator;
r->out.validation = talloc_zero(r, union netr_Validation);
if (r->out.validation == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.authoritative = talloc_zero(r, uint8_t);
if (r->out.authoritative == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.flags = r->in.flags;
r->out.result = _netr_LogonSamLogonWithFlags(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonWithFlags, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_netr_NETRSERVERGETTRUSTINFO(pipes_struct *p)
@@ -3541,67 +3633,69 @@ static bool api_netr_NETRSERVERGETTRUSTINFO(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct netr_NETRSERVERGETTRUSTINFO *r;
-
+
call = &ndr_table_netlogon.calls[NDR_NETR_NETRSERVERGETTRUSTINFO];
-
+
r = talloc(NULL, struct netr_NETRSERVERGETTRUSTINFO);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(netr_NETRSERVERGETTRUSTINFO, r);
-
+ }
+
r->out.result = _netr_NETRSERVERGETTRUSTINFO(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(netr_NETRSERVERGETTRUSTINFO, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_srvsvc.c b/source3/librpc/gen_ndr/srv_srvsvc.c
index 88a3f272c7..44fe358a84 100644
--- a/source3/librpc/gen_ndr/srv_srvsvc.c
+++ b/source3/librpc/gen_ndr/srv_srvsvc.c
@@ -14,77 +14,79 @@ static bool api_srvsvc_NetCharDevEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetCharDevEnum *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVENUM];
-
+
r = talloc(NULL, struct srvsvc_NetCharDevEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.level = r->in.level;
r->out.ctr = r->in.ctr;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetCharDevEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetCharDevGetInfo(pipes_struct *p)
@@ -95,74 +97,76 @@ static bool api_srvsvc_NetCharDevGetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetCharDevGetInfo *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVGETINFO];
-
+
r = talloc(NULL, struct srvsvc_NetCharDevGetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union srvsvc_NetCharDevInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetCharDevGetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetCharDevControl(pipes_struct *p)
@@ -173,67 +177,69 @@ static bool api_srvsvc_NetCharDevControl(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetCharDevControl *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVCONTROL];
-
+
r = talloc(NULL, struct srvsvc_NetCharDevControl);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl, r);
-
+ }
+
r->out.result = _srvsvc_NetCharDevControl(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetCharDevQEnum(pipes_struct *p)
@@ -244,77 +250,79 @@ static bool api_srvsvc_NetCharDevQEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetCharDevQEnum *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQENUM];
-
+
r = talloc(NULL, struct srvsvc_NetCharDevQEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.level = r->in.level;
r->out.ctr = r->in.ctr;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetCharDevQEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetCharDevQGetInfo(pipes_struct *p)
@@ -325,74 +333,76 @@ static bool api_srvsvc_NetCharDevQGetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetCharDevQGetInfo *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQGETINFO];
-
+
r = talloc(NULL, struct srvsvc_NetCharDevQGetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union srvsvc_NetCharDevQInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetCharDevQGetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetCharDevQSetInfo(pipes_struct *p)
@@ -403,69 +413,71 @@ static bool api_srvsvc_NetCharDevQSetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetCharDevQSetInfo *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQSETINFO];
-
+
r = talloc(NULL, struct srvsvc_NetCharDevQSetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQSetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.parm_error = r->in.parm_error;
r->out.result = _srvsvc_NetCharDevQSetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetCharDevQPurge(pipes_struct *p)
@@ -476,67 +488,69 @@ static bool api_srvsvc_NetCharDevQPurge(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetCharDevQPurge *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQPURGE];
-
+
r = talloc(NULL, struct srvsvc_NetCharDevQPurge);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge, r);
-
+ }
+
r->out.result = _srvsvc_NetCharDevQPurge(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetCharDevQPurgeSelf(pipes_struct *p)
@@ -547,67 +561,69 @@ static bool api_srvsvc_NetCharDevQPurgeSelf(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetCharDevQPurgeSelf *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCHARDEVQPURGESELF];
-
+
r = talloc(NULL, struct srvsvc_NetCharDevQPurgeSelf);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf, r);
-
+ }
+
r->out.result = _srvsvc_NetCharDevQPurgeSelf(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetConnEnum(pipes_struct *p)
@@ -618,77 +634,79 @@ static bool api_srvsvc_NetConnEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetConnEnum *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETCONNENUM];
-
+
r = talloc(NULL, struct srvsvc_NetConnEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetConnEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.level = r->in.level;
r->out.ctr = r->in.ctr;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetConnEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetFileEnum(pipes_struct *p)
@@ -699,77 +717,79 @@ static bool api_srvsvc_NetFileEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetFileEnum *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETFILEENUM];
-
+
r = talloc(NULL, struct srvsvc_NetFileEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetFileEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.level = r->in.level;
r->out.ctr = r->in.ctr;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetFileEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetFileGetInfo(pipes_struct *p)
@@ -780,74 +800,76 @@ static bool api_srvsvc_NetFileGetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetFileGetInfo *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETFILEGETINFO];
-
+
r = talloc(NULL, struct srvsvc_NetFileGetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union srvsvc_NetFileInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetFileGetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetFileClose(pipes_struct *p)
@@ -858,67 +880,69 @@ static bool api_srvsvc_NetFileClose(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetFileClose *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETFILECLOSE];
-
+
r = talloc(NULL, struct srvsvc_NetFileClose);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose, r);
-
+ }
+
r->out.result = _srvsvc_NetFileClose(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetSessEnum(pipes_struct *p)
@@ -929,77 +953,79 @@ static bool api_srvsvc_NetSessEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetSessEnum *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSESSENUM];
-
+
r = talloc(NULL, struct srvsvc_NetSessEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSessEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.level = r->in.level;
r->out.ctr = r->in.ctr;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetSessEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetSessDel(pipes_struct *p)
@@ -1010,67 +1036,69 @@ static bool api_srvsvc_NetSessDel(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetSessDel *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSESSDEL];
-
+
r = talloc(NULL, struct srvsvc_NetSessDel);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel, r);
-
+ }
+
r->out.result = _srvsvc_NetSessDel(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareAdd(pipes_struct *p)
@@ -1081,69 +1109,71 @@ static bool api_srvsvc_NetShareAdd(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareAdd *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREADD];
-
+
r = talloc(NULL, struct srvsvc_NetShareAdd);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareAdd, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.parm_error = r->in.parm_error;
r->out.result = _srvsvc_NetShareAdd(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareEnumAll(pipes_struct *p)
@@ -1154,77 +1184,79 @@ static bool api_srvsvc_NetShareEnumAll(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareEnumAll *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREENUMALL];
-
+
r = talloc(NULL, struct srvsvc_NetShareEnumAll);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnumAll, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.level = r->in.level;
r->out.ctr = r->in.ctr;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetShareEnumAll(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareGetInfo(pipes_struct *p)
@@ -1235,74 +1267,76 @@ static bool api_srvsvc_NetShareGetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareGetInfo *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREGETINFO];
-
+
r = talloc(NULL, struct srvsvc_NetShareGetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union srvsvc_NetShareInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetShareGetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareSetInfo(pipes_struct *p)
@@ -1313,69 +1347,71 @@ static bool api_srvsvc_NetShareSetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareSetInfo *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHARESETINFO];
-
+
r = talloc(NULL, struct srvsvc_NetShareSetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareSetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.parm_error = r->in.parm_error;
r->out.result = _srvsvc_NetShareSetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareDel(pipes_struct *p)
@@ -1386,67 +1422,69 @@ static bool api_srvsvc_NetShareDel(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareDel *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREDEL];
-
+
r = talloc(NULL, struct srvsvc_NetShareDel);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel, r);
-
+ }
+
r->out.result = _srvsvc_NetShareDel(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareDelSticky(pipes_struct *p)
@@ -1457,67 +1495,69 @@ static bool api_srvsvc_NetShareDelSticky(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareDelSticky *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREDELSTICKY];
-
+
r = talloc(NULL, struct srvsvc_NetShareDelSticky);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky, r);
-
+ }
+
r->out.result = _srvsvc_NetShareDelSticky(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareCheck(pipes_struct *p)
@@ -1528,74 +1568,76 @@ static bool api_srvsvc_NetShareCheck(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareCheck *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHARECHECK];
-
+
r = talloc(NULL, struct srvsvc_NetShareCheck);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareCheck, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.type = talloc_zero(r, enum srvsvc_ShareType);
if (r->out.type == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetShareCheck(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetSrvGetInfo(pipes_struct *p)
@@ -1606,74 +1648,76 @@ static bool api_srvsvc_NetSrvGetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetSrvGetInfo *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSRVGETINFO];
-
+
r = talloc(NULL, struct srvsvc_NetSrvGetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union srvsvc_NetSrvInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetSrvGetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetSrvSetInfo(pipes_struct *p)
@@ -1684,69 +1728,71 @@ static bool api_srvsvc_NetSrvSetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetSrvSetInfo *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSRVSETINFO];
-
+
r = talloc(NULL, struct srvsvc_NetSrvSetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSrvSetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.parm_error = r->in.parm_error;
r->out.result = _srvsvc_NetSrvSetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetDiskEnum(pipes_struct *p)
@@ -1757,76 +1803,78 @@ static bool api_srvsvc_NetDiskEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetDiskEnum *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETDISKENUM];
-
+
r = talloc(NULL, struct srvsvc_NetDiskEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetDiskEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = r->in.info;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetDiskEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetServerStatisticsGet(pipes_struct *p)
@@ -1837,74 +1885,76 @@ static bool api_srvsvc_NetServerStatisticsGet(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetServerStatisticsGet *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSERVERSTATISTICSGET];
-
+
r = talloc(NULL, struct srvsvc_NetServerStatisticsGet);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.stats = talloc_zero(r, struct srvsvc_Statistics);
if (r->out.stats == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetServerStatisticsGet(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetTransportAdd(pipes_struct *p)
@@ -1915,67 +1965,69 @@ static bool api_srvsvc_NetTransportAdd(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetTransportAdd *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETTRANSPORTADD];
-
+
r = talloc(NULL, struct srvsvc_NetTransportAdd);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd, r);
-
+ }
+
r->out.result = _srvsvc_NetTransportAdd(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetTransportEnum(pipes_struct *p)
@@ -1986,77 +2038,79 @@ static bool api_srvsvc_NetTransportEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetTransportEnum *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETTRANSPORTENUM];
-
+
r = talloc(NULL, struct srvsvc_NetTransportEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetTransportEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.level = r->in.level;
r->out.transports = r->in.transports;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetTransportEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetTransportDel(pipes_struct *p)
@@ -2067,67 +2121,69 @@ static bool api_srvsvc_NetTransportDel(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetTransportDel *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETTRANSPORTDEL];
-
+
r = talloc(NULL, struct srvsvc_NetTransportDel);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel, r);
-
+ }
+
r->out.result = _srvsvc_NetTransportDel(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetRemoteTOD(pipes_struct *p)
@@ -2138,74 +2194,76 @@ static bool api_srvsvc_NetRemoteTOD(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetRemoteTOD *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETREMOTETOD];
-
+
r = talloc(NULL, struct srvsvc_NetRemoteTOD);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetRemoteTOD, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, struct srvsvc_NetRemoteTODInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetRemoteTOD(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetSetServiceBits(pipes_struct *p)
@@ -2216,67 +2274,69 @@ static bool api_srvsvc_NetSetServiceBits(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetSetServiceBits *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSETSERVICEBITS];
-
+
r = talloc(NULL, struct srvsvc_NetSetServiceBits);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits, r);
-
+ }
+
r->out.result = _srvsvc_NetSetServiceBits(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetPathType(pipes_struct *p)
@@ -2287,74 +2347,76 @@ static bool api_srvsvc_NetPathType(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetPathType *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETPATHTYPE];
-
+
r = talloc(NULL, struct srvsvc_NetPathType);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetPathType, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.pathtype = talloc_zero(r, uint32_t);
if (r->out.pathtype == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetPathType(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetPathCanonicalize(pipes_struct *p)
@@ -2365,75 +2427,77 @@ static bool api_srvsvc_NetPathCanonicalize(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetPathCanonicalize *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETPATHCANONICALIZE];
-
+
r = talloc(NULL, struct srvsvc_NetPathCanonicalize);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetPathCanonicalize, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.can_path = talloc_zero_array(r, uint8_t, r->in.maxbuf);
if (r->out.can_path == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.pathtype = r->in.pathtype;
r->out.result = _srvsvc_NetPathCanonicalize(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetPathCompare(pipes_struct *p)
@@ -2444,67 +2508,69 @@ static bool api_srvsvc_NetPathCompare(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetPathCompare *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETPATHCOMPARE];
-
+
r = talloc(NULL, struct srvsvc_NetPathCompare);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare, r);
-
+ }
+
r->out.result = _srvsvc_NetPathCompare(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetNameValidate(pipes_struct *p)
@@ -2515,67 +2581,69 @@ static bool api_srvsvc_NetNameValidate(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetNameValidate *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETNAMEVALIDATE];
-
+
r = talloc(NULL, struct srvsvc_NetNameValidate);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate, r);
-
+ }
+
r->out.result = _srvsvc_NetNameValidate(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRPRNAMECANONICALIZE(pipes_struct *p)
@@ -2586,67 +2654,69 @@ static bool api_srvsvc_NETRPRNAMECANONICALIZE(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRPRNAMECANONICALIZE *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRPRNAMECANONICALIZE];
-
+
r = talloc(NULL, struct srvsvc_NETRPRNAMECANONICALIZE);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, r);
-
+ }
+
r->out.result = _srvsvc_NETRPRNAMECANONICALIZE(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetPRNameCompare(pipes_struct *p)
@@ -2657,67 +2727,69 @@ static bool api_srvsvc_NetPRNameCompare(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetPRNameCompare *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETPRNAMECOMPARE];
-
+
r = talloc(NULL, struct srvsvc_NetPRNameCompare);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare, r);
-
+ }
+
r->out.result = _srvsvc_NetPRNameCompare(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareEnum(pipes_struct *p)
@@ -2728,77 +2800,79 @@ static bool api_srvsvc_NetShareEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareEnum *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREENUM];
-
+
r = talloc(NULL, struct srvsvc_NetShareEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.level = r->in.level;
r->out.ctr = r->in.ctr;
r->out.totalentries = talloc_zero(r, uint32_t);
if (r->out.totalentries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _srvsvc_NetShareEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareDelStart(pipes_struct *p)
@@ -2809,74 +2883,76 @@ static bool api_srvsvc_NetShareDelStart(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareDelStart *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREDELSTART];
-
+
r = talloc(NULL, struct srvsvc_NetShareDelStart);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.hnd = talloc_zero(r, struct policy_handle);
if (r->out.hnd == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetShareDelStart(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetShareDelCommit(pipes_struct *p)
@@ -2887,69 +2963,71 @@ static bool api_srvsvc_NetShareDelCommit(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetShareDelCommit *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSHAREDELCOMMIT];
-
+
r = talloc(NULL, struct srvsvc_NetShareDelCommit);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.hnd = r->in.hnd;
r->out.result = _srvsvc_NetShareDelCommit(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetGetFileSecurity(pipes_struct *p)
@@ -2960,74 +3038,76 @@ static bool api_srvsvc_NetGetFileSecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetGetFileSecurity *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETGETFILESECURITY];
-
+
r = talloc(NULL, struct srvsvc_NetGetFileSecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sd_buf = talloc_zero(r, struct sec_desc_buf);
if (r->out.sd_buf == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _srvsvc_NetGetFileSecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetSetFileSecurity(pipes_struct *p)
@@ -3038,67 +3118,69 @@ static bool api_srvsvc_NetSetFileSecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetSetFileSecurity *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSETFILESECURITY];
-
+
r = talloc(NULL, struct srvsvc_NetSetFileSecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity, r);
-
+ }
+
r->out.result = _srvsvc_NetSetFileSecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetServerTransportAddEx(pipes_struct *p)
@@ -3109,67 +3191,69 @@ static bool api_srvsvc_NetServerTransportAddEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetServerTransportAddEx *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSERVERTRANSPORTADDEX];
-
+
r = talloc(NULL, struct srvsvc_NetServerTransportAddEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx, r);
-
+ }
+
r->out.result = _srvsvc_NetServerTransportAddEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NetServerSetServiceBitsEx(pipes_struct *p)
@@ -3180,67 +3264,69 @@ static bool api_srvsvc_NetServerSetServiceBitsEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NetServerSetServiceBitsEx *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETSERVERSETSERVICEBITSEX];
-
+
r = talloc(NULL, struct srvsvc_NetServerSetServiceBitsEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx, r);
-
+ }
+
r->out.result = _srvsvc_NetServerSetServiceBitsEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSGETVERSION(pipes_struct *p)
@@ -3251,67 +3337,69 @@ static bool api_srvsvc_NETRDFSGETVERSION(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSGETVERSION *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSGETVERSION];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSGETVERSION);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSGETVERSION(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct *p)
@@ -3322,67 +3410,69 @@ static bool api_srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSCREATELOCALPARTITION *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSCREATELOCALPARTITION];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSCREATELOCALPARTITION);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSCREATELOCALPARTITION(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct *p)
@@ -3393,67 +3483,69 @@ static bool api_srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSDELETELOCALPARTITION *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSDELETELOCALPARTITION];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSDELETELOCALPARTITION);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSDELETELOCALPARTITION(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct *p)
@@ -3464,67 +3556,69 @@ static bool api_srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSSETLOCALVOLUMESTATE *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSSETLOCALVOLUMESTATE);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSSETLOCALVOLUMESTATE(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSSETSERVERINFO(pipes_struct *p)
@@ -3535,67 +3629,69 @@ static bool api_srvsvc_NETRDFSSETSERVERINFO(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSSETSERVERINFO *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSSETSERVERINFO];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSSETSERVERINFO);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSSETSERVERINFO(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct *p)
@@ -3606,67 +3702,69 @@ static bool api_srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSCREATEEXITPOINT *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSCREATEEXITPOINT];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSCREATEEXITPOINT);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSCREATEEXITPOINT(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct *p)
@@ -3677,67 +3775,69 @@ static bool api_srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSDELETEEXITPOINT *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSDELETEEXITPOINT];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSDELETEEXITPOINT);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSDELETEEXITPOINT(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSMODIFYPREFIX(pipes_struct *p)
@@ -3748,67 +3848,69 @@ static bool api_srvsvc_NETRDFSMODIFYPREFIX(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSMODIFYPREFIX *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSMODIFYPREFIX];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSMODIFYPREFIX);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSMODIFYPREFIX(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct *p)
@@ -3819,67 +3921,69 @@ static bool api_srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSFIXLOCALVOLUME *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSFIXLOCALVOLUME];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSFIXLOCALVOLUME);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSFIXLOCALVOLUME(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct *p)
@@ -3890,67 +3994,69 @@ static bool api_srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRDFSMANAGERREPORTSITEINFO *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO];
-
+
r = talloc(NULL, struct srvsvc_NETRDFSMANAGERREPORTSITEINFO);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, r);
-
+ }
+
r->out.result = _srvsvc_NETRDFSMANAGERREPORTSITEINFO(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct *p)
@@ -3961,67 +4067,69 @@ static bool api_srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct srvsvc_NETRSERVERTRANSPORTDELEX *r;
-
+
call = &ndr_table_srvsvc.calls[NDR_SRVSVC_NETRSERVERTRANSPORTDELEX];
-
+
r = talloc(NULL, struct srvsvc_NETRSERVERTRANSPORTDELEX);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, r);
-
+ }
+
r->out.result = _srvsvc_NETRSERVERTRANSPORTDELEX(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_svcctl.c b/source3/librpc/gen_ndr/srv_svcctl.c
index 1d4719858d..4a0a2591ab 100644
--- a/source3/librpc/gen_ndr/srv_svcctl.c
+++ b/source3/librpc/gen_ndr/srv_svcctl.c
@@ -14,69 +14,71 @@ static bool api_svcctl_CloseServiceHandle(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_CloseServiceHandle *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_CLOSESERVICEHANDLE];
-
+
r = talloc(NULL, struct svcctl_CloseServiceHandle);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_CloseServiceHandle, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = r->in.handle;
r->out.result = _svcctl_CloseServiceHandle(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_CloseServiceHandle, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_ControlService(pipes_struct *p)
@@ -87,74 +89,76 @@ static bool api_svcctl_ControlService(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_ControlService *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_CONTROLSERVICE];
-
+
r = talloc(NULL, struct svcctl_ControlService);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ControlService, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.service_status = talloc_zero(r, struct SERVICE_STATUS);
if (r->out.service_status == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_ControlService(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ControlService, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_DeleteService(pipes_struct *p)
@@ -165,67 +169,69 @@ static bool api_svcctl_DeleteService(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_DeleteService *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_DELETESERVICE];
-
+
r = talloc(NULL, struct svcctl_DeleteService);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_DeleteService, r);
-
+ }
+
r->out.result = _svcctl_DeleteService(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_DeleteService, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_LockServiceDatabase(pipes_struct *p)
@@ -236,74 +242,76 @@ static bool api_svcctl_LockServiceDatabase(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_LockServiceDatabase *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_LOCKSERVICEDATABASE];
-
+
r = talloc(NULL, struct svcctl_LockServiceDatabase);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_LockServiceDatabase, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.lock = talloc_zero(r, struct policy_handle);
if (r->out.lock == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_LockServiceDatabase(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_LockServiceDatabase, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceObjectSecurity(pipes_struct *p)
@@ -314,67 +322,69 @@ static bool api_svcctl_QueryServiceObjectSecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceObjectSecurity *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICEOBJECTSECURITY];
-
+
r = talloc(NULL, struct svcctl_QueryServiceObjectSecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceObjectSecurity, r);
-
+ }
+
r->out.result = _svcctl_QueryServiceObjectSecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceObjectSecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_SetServiceObjectSecurity(pipes_struct *p)
@@ -385,67 +395,69 @@ static bool api_svcctl_SetServiceObjectSecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_SetServiceObjectSecurity *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_SETSERVICEOBJECTSECURITY];
-
+
r = talloc(NULL, struct svcctl_SetServiceObjectSecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SetServiceObjectSecurity, r);
-
+ }
+
r->out.result = _svcctl_SetServiceObjectSecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SetServiceObjectSecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceStatus(pipes_struct *p)
@@ -456,74 +468,76 @@ static bool api_svcctl_QueryServiceStatus(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceStatus *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICESTATUS];
-
+
r = talloc(NULL, struct svcctl_QueryServiceStatus);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatus, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.service_status = talloc_zero(r, struct SERVICE_STATUS);
if (r->out.service_status == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_QueryServiceStatus(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatus, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_SetServiceStatus(pipes_struct *p)
@@ -534,67 +548,69 @@ static bool api_svcctl_SetServiceStatus(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_SetServiceStatus *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_SETSERVICESTATUS];
-
+
r = talloc(NULL, struct svcctl_SetServiceStatus);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SetServiceStatus, r);
-
+ }
+
r->out.result = _svcctl_SetServiceStatus(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SetServiceStatus, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_UnlockServiceDatabase(pipes_struct *p)
@@ -605,69 +621,71 @@ static bool api_svcctl_UnlockServiceDatabase(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_UnlockServiceDatabase *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_UNLOCKSERVICEDATABASE];
-
+
r = talloc(NULL, struct svcctl_UnlockServiceDatabase);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_UnlockServiceDatabase, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.lock = r->in.lock;
r->out.result = _svcctl_UnlockServiceDatabase(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_UnlockServiceDatabase, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_NotifyBootConfigStatus(pipes_struct *p)
@@ -678,67 +696,69 @@ static bool api_svcctl_NotifyBootConfigStatus(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_NotifyBootConfigStatus *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_NOTIFYBOOTCONFIGSTATUS];
-
+
r = talloc(NULL, struct svcctl_NotifyBootConfigStatus);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_NotifyBootConfigStatus, r);
-
+ }
+
r->out.result = _svcctl_NotifyBootConfigStatus(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_NotifyBootConfigStatus, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_SCSetServiceBitsW(pipes_struct *p)
@@ -749,67 +769,69 @@ static bool api_svcctl_SCSetServiceBitsW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_SCSetServiceBitsW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_SCSETSERVICEBITSW];
-
+
r = talloc(NULL, struct svcctl_SCSetServiceBitsW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsW, r);
-
+ }
+
r->out.result = _svcctl_SCSetServiceBitsW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_ChangeServiceConfigW(pipes_struct *p)
@@ -820,74 +842,76 @@ static bool api_svcctl_ChangeServiceConfigW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_ChangeServiceConfigW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_CHANGESERVICECONFIGW];
-
+
r = talloc(NULL, struct svcctl_ChangeServiceConfigW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.tag_id = talloc_zero(r, uint32_t);
if (r->out.tag_id == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_ChangeServiceConfigW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_CreateServiceW(pipes_struct *p)
@@ -898,75 +922,77 @@ static bool api_svcctl_CreateServiceW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_CreateServiceW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_CREATESERVICEW];
-
+
r = talloc(NULL, struct svcctl_CreateServiceW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_CreateServiceW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.TagId = r->in.TagId;
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_CreateServiceW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_EnumDependentServicesW(pipes_struct *p)
@@ -977,86 +1003,88 @@ static bool api_svcctl_EnumDependentServicesW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_EnumDependentServicesW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMDEPENDENTSERVICESW];
-
+
r = talloc(NULL, struct svcctl_EnumDependentServicesW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.service_status = talloc_zero(r, struct ENUM_SERVICE_STATUS);
if (r->out.service_status == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.services_returned = talloc_zero(r, uint32_t);
if (r->out.services_returned == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_EnumDependentServicesW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_EnumServicesStatusW(pipes_struct *p)
@@ -1067,87 +1095,89 @@ static bool api_svcctl_EnumServicesStatusW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_EnumServicesStatusW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMSERVICESSTATUSW];
-
+
r = talloc(NULL, struct svcctl_EnumServicesStatusW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.service = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.service == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.services_returned = talloc_zero(r, uint32_t);
if (r->out.services_returned == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _svcctl_EnumServicesStatusW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_OpenSCManagerW(pipes_struct *p)
@@ -1158,74 +1188,76 @@ static bool api_svcctl_OpenSCManagerW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_OpenSCManagerW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_OPENSCMANAGERW];
-
+
r = talloc(NULL, struct svcctl_OpenSCManagerW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_OpenSCManagerW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_OpenServiceW(pipes_struct *p)
@@ -1236,74 +1268,76 @@ static bool api_svcctl_OpenServiceW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_OpenServiceW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_OPENSERVICEW];
-
+
r = talloc(NULL, struct svcctl_OpenServiceW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_OpenServiceW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_OpenServiceW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceConfigW(pipes_struct *p)
@@ -1314,80 +1348,82 @@ static bool api_svcctl_QueryServiceConfigW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceConfigW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICECONFIGW];
-
+
r = talloc(NULL, struct svcctl_QueryServiceConfigW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.query = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.query == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_QueryServiceConfigW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceLockStatusW(pipes_struct *p)
@@ -1398,80 +1434,82 @@ static bool api_svcctl_QueryServiceLockStatusW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceLockStatusW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICELOCKSTATUSW];
-
+
r = talloc(NULL, struct svcctl_QueryServiceLockStatusW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.lock_status = talloc_zero(r, struct SERVICE_LOCK_STATUS);
if (r->out.lock_status == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.required_buf_size = talloc_zero(r, uint32_t);
if (r->out.required_buf_size == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_QueryServiceLockStatusW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_StartServiceW(pipes_struct *p)
@@ -1482,67 +1520,69 @@ static bool api_svcctl_StartServiceW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_StartServiceW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_STARTSERVICEW];
-
+
r = talloc(NULL, struct svcctl_StartServiceW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_StartServiceW, r);
-
+ }
+
r->out.result = _svcctl_StartServiceW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_StartServiceW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_GetServiceDisplayNameW(pipes_struct *p)
@@ -1553,75 +1593,77 @@ static bool api_svcctl_GetServiceDisplayNameW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_GetServiceDisplayNameW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETSERVICEDISPLAYNAMEW];
-
+
r = talloc(NULL, struct svcctl_GetServiceDisplayNameW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.display_name = talloc_zero(r, const char *);
if (r->out.display_name == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.display_name_length = r->in.display_name_length;
r->out.result = _svcctl_GetServiceDisplayNameW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_GetServiceKeyNameW(pipes_struct *p)
@@ -1632,75 +1674,77 @@ static bool api_svcctl_GetServiceKeyNameW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_GetServiceKeyNameW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETSERVICEKEYNAMEW];
-
+
r = talloc(NULL, struct svcctl_GetServiceKeyNameW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.key_name = talloc_zero(r, const char *);
if (r->out.key_name == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.display_name_length = r->in.display_name_length;
r->out.result = _svcctl_GetServiceKeyNameW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_SCSetServiceBitsA(pipes_struct *p)
@@ -1711,67 +1755,69 @@ static bool api_svcctl_SCSetServiceBitsA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_SCSetServiceBitsA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_SCSETSERVICEBITSA];
-
+
r = talloc(NULL, struct svcctl_SCSetServiceBitsA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsA, r);
-
+ }
+
r->out.result = _svcctl_SCSetServiceBitsA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_ChangeServiceConfigA(pipes_struct *p)
@@ -1782,74 +1828,76 @@ static bool api_svcctl_ChangeServiceConfigA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_ChangeServiceConfigA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_CHANGESERVICECONFIGA];
-
+
r = talloc(NULL, struct svcctl_ChangeServiceConfigA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.tag_id = talloc_zero(r, uint32_t);
if (r->out.tag_id == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_ChangeServiceConfigA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_CreateServiceA(pipes_struct *p)
@@ -1860,74 +1908,76 @@ static bool api_svcctl_CreateServiceA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_CreateServiceA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_CREATESERVICEA];
-
+
r = talloc(NULL, struct svcctl_CreateServiceA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_CreateServiceA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.TagId = talloc_zero(r, uint32_t);
if (r->out.TagId == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_CreateServiceA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_EnumDependentServicesA(pipes_struct *p)
@@ -1938,86 +1988,88 @@ static bool api_svcctl_EnumDependentServicesA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_EnumDependentServicesA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMDEPENDENTSERVICESA];
-
+
r = talloc(NULL, struct svcctl_EnumDependentServicesA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.service_status = talloc_zero(r, struct ENUM_SERVICE_STATUS);
if (r->out.service_status == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.services_returned = talloc_zero(r, uint32_t);
if (r->out.services_returned == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_EnumDependentServicesA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_EnumServicesStatusA(pipes_struct *p)
@@ -2028,87 +2080,89 @@ static bool api_svcctl_EnumServicesStatusA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_EnumServicesStatusA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMSERVICESSTATUSA];
-
+
r = talloc(NULL, struct svcctl_EnumServicesStatusA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.service = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.service == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.services_returned = talloc_zero(r, uint32_t);
if (r->out.services_returned == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _svcctl_EnumServicesStatusA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_OpenSCManagerA(pipes_struct *p)
@@ -2119,74 +2173,76 @@ static bool api_svcctl_OpenSCManagerA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_OpenSCManagerA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_OPENSCMANAGERA];
-
+
r = talloc(NULL, struct svcctl_OpenSCManagerA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_OpenSCManagerA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_OpenServiceA(pipes_struct *p)
@@ -2197,67 +2253,69 @@ static bool api_svcctl_OpenServiceA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_OpenServiceA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_OPENSERVICEA];
-
+
r = talloc(NULL, struct svcctl_OpenServiceA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_OpenServiceA, r);
-
+ }
+
r->out.result = _svcctl_OpenServiceA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceConfigA(pipes_struct *p)
@@ -2268,80 +2326,82 @@ static bool api_svcctl_QueryServiceConfigA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceConfigA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICECONFIGA];
-
+
r = talloc(NULL, struct svcctl_QueryServiceConfigA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.query = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.query == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_QueryServiceConfigA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceLockStatusA(pipes_struct *p)
@@ -2352,80 +2412,82 @@ static bool api_svcctl_QueryServiceLockStatusA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceLockStatusA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICELOCKSTATUSA];
-
+
r = talloc(NULL, struct svcctl_QueryServiceLockStatusA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.lock_status = talloc_zero(r, struct SERVICE_LOCK_STATUS);
if (r->out.lock_status == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.required_buf_size = talloc_zero(r, uint32_t);
if (r->out.required_buf_size == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_QueryServiceLockStatusA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_StartServiceA(pipes_struct *p)
@@ -2436,67 +2498,69 @@ static bool api_svcctl_StartServiceA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_StartServiceA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_STARTSERVICEA];
-
+
r = talloc(NULL, struct svcctl_StartServiceA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_StartServiceA, r);
-
+ }
+
r->out.result = _svcctl_StartServiceA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_StartServiceA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_GetServiceDisplayNameA(pipes_struct *p)
@@ -2507,75 +2571,77 @@ static bool api_svcctl_GetServiceDisplayNameA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_GetServiceDisplayNameA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETSERVICEDISPLAYNAMEA];
-
+
r = talloc(NULL, struct svcctl_GetServiceDisplayNameA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.display_name = talloc_zero(r, const char *);
if (r->out.display_name == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.display_name_length = r->in.display_name_length;
r->out.result = _svcctl_GetServiceDisplayNameA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_GetServiceKeyNameA(pipes_struct *p)
@@ -2586,75 +2652,77 @@ static bool api_svcctl_GetServiceKeyNameA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_GetServiceKeyNameA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETSERVICEKEYNAMEA];
-
+
r = talloc(NULL, struct svcctl_GetServiceKeyNameA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.key_name = talloc_zero(r, const char *);
if (r->out.key_name == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.display_name_length = r->in.display_name_length;
r->out.result = _svcctl_GetServiceKeyNameA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_GetCurrentGroupeStateW(pipes_struct *p)
@@ -2665,67 +2733,69 @@ static bool api_svcctl_GetCurrentGroupeStateW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_GetCurrentGroupeStateW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_GETCURRENTGROUPESTATEW];
-
+
r = talloc(NULL, struct svcctl_GetCurrentGroupeStateW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_GetCurrentGroupeStateW, r);
-
+ }
+
r->out.result = _svcctl_GetCurrentGroupeStateW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_GetCurrentGroupeStateW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_EnumServiceGroupW(pipes_struct *p)
@@ -2736,67 +2806,69 @@ static bool api_svcctl_EnumServiceGroupW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_EnumServiceGroupW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_ENUMSERVICEGROUPW];
-
+
r = talloc(NULL, struct svcctl_EnumServiceGroupW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_EnumServiceGroupW, r);
-
+ }
+
r->out.result = _svcctl_EnumServiceGroupW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_EnumServiceGroupW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_ChangeServiceConfig2A(pipes_struct *p)
@@ -2807,67 +2879,69 @@ static bool api_svcctl_ChangeServiceConfig2A(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_ChangeServiceConfig2A *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_CHANGESERVICECONFIG2A];
-
+
r = talloc(NULL, struct svcctl_ChangeServiceConfig2A);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2A, r);
-
+ }
+
r->out.result = _svcctl_ChangeServiceConfig2A(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2A, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_ChangeServiceConfig2W(pipes_struct *p)
@@ -2878,67 +2952,69 @@ static bool api_svcctl_ChangeServiceConfig2W(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_ChangeServiceConfig2W *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_CHANGESERVICECONFIG2W];
-
+
r = talloc(NULL, struct svcctl_ChangeServiceConfig2W);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2W, r);
-
+ }
+
r->out.result = _svcctl_ChangeServiceConfig2W(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2W, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceConfig2A(pipes_struct *p)
@@ -2949,80 +3025,82 @@ static bool api_svcctl_QueryServiceConfig2A(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceConfig2A *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICECONFIG2A];
-
+
r = talloc(NULL, struct svcctl_QueryServiceConfig2A);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2A, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.buffer = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.buffer == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_QueryServiceConfig2A(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2A, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceConfig2W(pipes_struct *p)
@@ -3033,80 +3111,82 @@ static bool api_svcctl_QueryServiceConfig2W(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceConfig2W *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICECONFIG2W];
-
+
r = talloc(NULL, struct svcctl_QueryServiceConfig2W);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2W, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.buffer = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.buffer == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_QueryServiceConfig2W(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2W, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_QueryServiceStatusEx(pipes_struct *p)
@@ -3117,80 +3197,82 @@ static bool api_svcctl_QueryServiceStatusEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_QueryServiceStatusEx *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_QUERYSERVICESTATUSEX];
-
+
r = talloc(NULL, struct svcctl_QueryServiceStatusEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatusEx, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.buffer = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.buffer == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _svcctl_QueryServiceStatusEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatusEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_EnumServicesStatusExA(pipes_struct *p)
@@ -3201,93 +3283,95 @@ static bool api_EnumServicesStatusExA(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct EnumServicesStatusExA *r;
-
+
call = &ndr_table_svcctl.calls[NDR_ENUMSERVICESSTATUSEXA];
-
+
r = talloc(NULL, struct EnumServicesStatusExA);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(EnumServicesStatusExA, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.services = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.services == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.service_returned = talloc_zero(r, uint32_t);
if (r->out.service_returned == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.group_name = talloc_zero(r, const char *);
if (r->out.group_name == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _EnumServicesStatusExA(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(EnumServicesStatusExA, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_EnumServicesStatusExW(pipes_struct *p)
@@ -3298,93 +3382,95 @@ static bool api_EnumServicesStatusExW(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct EnumServicesStatusExW *r;
-
+
call = &ndr_table_svcctl.calls[NDR_ENUMSERVICESSTATUSEXW];
-
+
r = talloc(NULL, struct EnumServicesStatusExW);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(EnumServicesStatusExW, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.services = talloc_zero_array(r, uint8_t, r->in.buf_size);
if (r->out.services == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.bytes_needed = talloc_zero(r, uint32_t);
if (r->out.bytes_needed == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.service_returned = talloc_zero(r, uint32_t);
if (r->out.service_returned == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.group_name = talloc_zero(r, const char *);
if (r->out.group_name == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _EnumServicesStatusExW(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(EnumServicesStatusExW, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_svcctl_SCSendTSMessage(pipes_struct *p)
@@ -3395,67 +3481,69 @@ static bool api_svcctl_SCSendTSMessage(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct svcctl_SCSendTSMessage *r;
-
+
call = &ndr_table_svcctl.calls[NDR_SVCCTL_SCSENDTSMESSAGE];
-
+
r = talloc(NULL, struct svcctl_SCSendTSMessage);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(svcctl_SCSendTSMessage, r);
-
+ }
+
r->out.result = _svcctl_SCSendTSMessage(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(svcctl_SCSendTSMessage, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_unixinfo.c b/source3/librpc/gen_ndr/srv_unixinfo.c
index 19863d798f..36a6250ad0 100644
--- a/source3/librpc/gen_ndr/srv_unixinfo.c
+++ b/source3/librpc/gen_ndr/srv_unixinfo.c
@@ -14,74 +14,76 @@ static bool api_unixinfo_SidToUid(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct unixinfo_SidToUid *r;
-
+
call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_SIDTOUID];
-
+
r = talloc(NULL, struct unixinfo_SidToUid);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.uid = talloc_zero(r, uint64_t);
if (r->out.uid == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _unixinfo_SidToUid(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_unixinfo_UidToSid(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_unixinfo_UidToSid(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct unixinfo_UidToSid *r;
-
+
call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_UIDTOSID];
-
+
r = talloc(NULL, struct unixinfo_UidToSid);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sid = talloc_zero(r, struct dom_sid);
if (r->out.sid == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _unixinfo_UidToSid(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_unixinfo_SidToGid(pipes_struct *p)
@@ -170,74 +174,76 @@ static bool api_unixinfo_SidToGid(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct unixinfo_SidToGid *r;
-
+
call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_SIDTOGID];
-
+
r = talloc(NULL, struct unixinfo_SidToGid);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.gid = talloc_zero(r, uint64_t);
if (r->out.gid == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _unixinfo_SidToGid(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_unixinfo_GidToSid(pipes_struct *p)
@@ -248,74 +254,76 @@ static bool api_unixinfo_GidToSid(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct unixinfo_GidToSid *r;
-
+
call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_GIDTOSID];
-
+
r = talloc(NULL, struct unixinfo_GidToSid);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sid = talloc_zero(r, struct dom_sid);
if (r->out.sid == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _unixinfo_GidToSid(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_unixinfo_GetPWUid(pipes_struct *p)
@@ -326,75 +334,77 @@ static bool api_unixinfo_GetPWUid(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct unixinfo_GetPWUid *r;
-
+
call = &ndr_table_unixinfo.calls[NDR_UNIXINFO_GETPWUID];
-
+
r = talloc(NULL, struct unixinfo_GetPWUid);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.count = r->in.count;
r->out.infos = talloc_zero_array(r, struct unixinfo_GetPWUidInfo, *r->out.count);
if (r->out.infos == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _unixinfo_GetPWUid(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_winreg.c b/source3/librpc/gen_ndr/srv_winreg.c
index 51918bcb97..ecce99f67a 100644
--- a/source3/librpc/gen_ndr/srv_winreg.c
+++ b/source3/librpc/gen_ndr/srv_winreg.c
@@ -14,74 +14,76 @@ static bool api_winreg_OpenHKCR(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKCR *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCR];
-
+
r = talloc(NULL, struct winreg_OpenHKCR);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKCR(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKCU(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_winreg_OpenHKCU(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKCU *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCU];
-
+
r = talloc(NULL, struct winreg_OpenHKCU);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKCU(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKLM(pipes_struct *p)
@@ -170,74 +174,76 @@ static bool api_winreg_OpenHKLM(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKLM *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKLM];
-
+
r = talloc(NULL, struct winreg_OpenHKLM);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKLM(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKPD(pipes_struct *p)
@@ -248,74 +254,76 @@ static bool api_winreg_OpenHKPD(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKPD *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPD];
-
+
r = talloc(NULL, struct winreg_OpenHKPD);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKPD(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKU(pipes_struct *p)
@@ -326,74 +334,76 @@ static bool api_winreg_OpenHKU(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKU *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKU];
-
+
r = talloc(NULL, struct winreg_OpenHKU);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKU, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKU(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_CloseKey(pipes_struct *p)
@@ -404,69 +414,71 @@ static bool api_winreg_CloseKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_CloseKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_CLOSEKEY];
-
+
r = talloc(NULL, struct winreg_CloseKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_CloseKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = r->in.handle;
r->out.result = _winreg_CloseKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_CloseKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_CreateKey(pipes_struct *p)
@@ -477,75 +489,77 @@ static bool api_winreg_CreateKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_CreateKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_CREATEKEY];
-
+
r = talloc(NULL, struct winreg_CreateKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_CreateKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.new_handle = talloc_zero(r, struct policy_handle);
if (r->out.new_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.action_taken = r->in.action_taken;
r->out.result = _winreg_CreateKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_CreateKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_DeleteKey(pipes_struct *p)
@@ -556,67 +570,69 @@ static bool api_winreg_DeleteKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_DeleteKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_DELETEKEY];
-
+
r = talloc(NULL, struct winreg_DeleteKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_DeleteKey, r);
-
+ }
+
r->out.result = _winreg_DeleteKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_DeleteValue(pipes_struct *p)
@@ -627,67 +643,69 @@ static bool api_winreg_DeleteValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_DeleteValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_DELETEVALUE];
-
+
r = talloc(NULL, struct winreg_DeleteValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_DeleteValue, r);
-
+ }
+
r->out.result = _winreg_DeleteValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_EnumKey(pipes_struct *p)
@@ -698,71 +716,73 @@ static bool api_winreg_EnumKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_EnumKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_ENUMKEY];
-
+
r = talloc(NULL, struct winreg_EnumKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_EnumKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.name = r->in.name;
r->out.keyclass = r->in.keyclass;
r->out.last_changed_time = r->in.last_changed_time;
r->out.result = _winreg_EnumKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_EnumKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_EnumValue(pipes_struct *p)
@@ -773,35 +793,36 @@ static bool api_winreg_EnumValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_EnumValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_ENUMVALUE];
-
+
r = talloc(NULL, struct winreg_EnumValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_EnumValue, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.name = r->in.name;
r->out.type = r->in.type;
@@ -809,37 +830,38 @@ static bool api_winreg_EnumValue(pipes_struct *p)
r->out.size = r->in.size;
r->out.length = r->in.length;
r->out.result = _winreg_EnumValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_EnumValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_FlushKey(pipes_struct *p)
@@ -850,67 +872,69 @@ static bool api_winreg_FlushKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_FlushKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_FLUSHKEY];
-
+
r = talloc(NULL, struct winreg_FlushKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_FlushKey, r);
-
+ }
+
r->out.result = _winreg_FlushKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_FlushKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_GetKeySecurity(pipes_struct *p)
@@ -921,69 +945,71 @@ static bool api_winreg_GetKeySecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_GetKeySecurity *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_GETKEYSECURITY];
-
+
r = talloc(NULL, struct winreg_GetKeySecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_GetKeySecurity, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sd = r->in.sd;
r->out.result = _winreg_GetKeySecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_LoadKey(pipes_struct *p)
@@ -994,67 +1020,69 @@ static bool api_winreg_LoadKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_LoadKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_LOADKEY];
-
+
r = talloc(NULL, struct winreg_LoadKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_LoadKey, r);
-
+ }
+
r->out.result = _winreg_LoadKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_LoadKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_NotifyChangeKeyValue(pipes_struct *p)
@@ -1065,67 +1093,69 @@ static bool api_winreg_NotifyChangeKeyValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_NotifyChangeKeyValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_NOTIFYCHANGEKEYVALUE];
-
+
r = talloc(NULL, struct winreg_NotifyChangeKeyValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, r);
-
+ }
+
r->out.result = _winreg_NotifyChangeKeyValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenKey(pipes_struct *p)
@@ -1136,74 +1166,76 @@ static bool api_winreg_OpenKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENKEY];
-
+
r = talloc(NULL, struct winreg_OpenKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_QueryInfoKey(pipes_struct *p)
@@ -1214,117 +1246,119 @@ static bool api_winreg_QueryInfoKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_QueryInfoKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_QUERYINFOKEY];
-
+
r = talloc(NULL, struct winreg_QueryInfoKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.classname = r->in.classname;
r->out.num_subkeys = talloc_zero(r, uint32_t);
if (r->out.num_subkeys == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.max_subkeylen = talloc_zero(r, uint32_t);
if (r->out.max_subkeylen == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.max_classlen = talloc_zero(r, uint32_t);
if (r->out.max_classlen == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.num_values = talloc_zero(r, uint32_t);
if (r->out.num_values == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.max_valnamelen = talloc_zero(r, uint32_t);
if (r->out.max_valnamelen == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.max_valbufsize = talloc_zero(r, uint32_t);
if (r->out.max_valbufsize == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.secdescsize = talloc_zero(r, uint32_t);
if (r->out.secdescsize == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.last_changed_time = talloc_zero(r, NTTIME);
if (r->out.last_changed_time == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_QueryInfoKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_QueryValue(pipes_struct *p)
@@ -1335,72 +1369,74 @@ static bool api_winreg_QueryValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_QueryValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_QUERYVALUE];
-
+
r = talloc(NULL, struct winreg_QueryValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryValue, r);
-
+ }
+
ZERO_STRUCT(r->out);
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.result = _winreg_QueryValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_ReplaceKey(pipes_struct *p)
@@ -1411,67 +1447,69 @@ static bool api_winreg_ReplaceKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_ReplaceKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_REPLACEKEY];
-
+
r = talloc(NULL, struct winreg_ReplaceKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, r);
-
+ }
+
r->out.result = _winreg_ReplaceKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_RestoreKey(pipes_struct *p)
@@ -1482,67 +1520,69 @@ static bool api_winreg_RestoreKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_RestoreKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_RESTOREKEY];
-
+
r = talloc(NULL, struct winreg_RestoreKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_RestoreKey, r);
-
+ }
+
r->out.result = _winreg_RestoreKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_SaveKey(pipes_struct *p)
@@ -1553,67 +1593,69 @@ static bool api_winreg_SaveKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_SaveKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_SAVEKEY];
-
+
r = talloc(NULL, struct winreg_SaveKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SaveKey, r);
-
+ }
+
r->out.result = _winreg_SaveKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SaveKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_SetKeySecurity(pipes_struct *p)
@@ -1624,67 +1666,69 @@ static bool api_winreg_SetKeySecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_SetKeySecurity *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_SETKEYSECURITY];
-
+
r = talloc(NULL, struct winreg_SetKeySecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, r);
-
+ }
+
r->out.result = _winreg_SetKeySecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_SetValue(pipes_struct *p)
@@ -1695,67 +1739,69 @@ static bool api_winreg_SetValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_SetValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_SETVALUE];
-
+
r = talloc(NULL, struct winreg_SetValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SetValue, r);
-
+ }
+
r->out.result = _winreg_SetValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SetValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_UnLoadKey(pipes_struct *p)
@@ -1766,67 +1812,69 @@ static bool api_winreg_UnLoadKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_UnLoadKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_UNLOADKEY];
-
+
r = talloc(NULL, struct winreg_UnLoadKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, r);
-
+ }
+
r->out.result = _winreg_UnLoadKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_InitiateSystemShutdown(pipes_struct *p)
@@ -1837,67 +1885,69 @@ static bool api_winreg_InitiateSystemShutdown(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_InitiateSystemShutdown *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_INITIATESYSTEMSHUTDOWN];
-
+
r = talloc(NULL, struct winreg_InitiateSystemShutdown);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, r);
-
+ }
+
r->out.result = _winreg_InitiateSystemShutdown(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_AbortSystemShutdown(pipes_struct *p)
@@ -1908,67 +1958,69 @@ static bool api_winreg_AbortSystemShutdown(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_AbortSystemShutdown *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_ABORTSYSTEMSHUTDOWN];
-
+
r = talloc(NULL, struct winreg_AbortSystemShutdown);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, r);
-
+ }
+
r->out.result = _winreg_AbortSystemShutdown(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_GetVersion(pipes_struct *p)
@@ -1979,74 +2031,76 @@ static bool api_winreg_GetVersion(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_GetVersion *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_GETVERSION];
-
+
r = talloc(NULL, struct winreg_GetVersion);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_GetVersion, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.version = talloc_zero(r, uint32_t);
if (r->out.version == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_GetVersion(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_GetVersion, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKCC(pipes_struct *p)
@@ -2057,74 +2111,76 @@ static bool api_winreg_OpenHKCC(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKCC *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCC];
-
+
r = talloc(NULL, struct winreg_OpenHKCC);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKCC(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKDD(pipes_struct *p)
@@ -2135,74 +2191,76 @@ static bool api_winreg_OpenHKDD(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKDD *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKDD];
-
+
r = talloc(NULL, struct winreg_OpenHKDD);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKDD(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_QueryMultipleValues(pipes_struct *p)
@@ -2213,71 +2271,73 @@ static bool api_winreg_QueryMultipleValues(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_QueryMultipleValues *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_QUERYMULTIPLEVALUES];
-
+
r = talloc(NULL, struct winreg_QueryMultipleValues);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.values = r->in.values;
r->out.buffer = r->in.buffer;
r->out.buffer_size = r->in.buffer_size;
r->out.result = _winreg_QueryMultipleValues(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
@@ -2288,67 +2348,69 @@ static bool api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_InitiateSystemShutdownEx *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_INITIATESYSTEMSHUTDOWNEX];
-
+
r = talloc(NULL, struct winreg_InitiateSystemShutdownEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, r);
-
+ }
+
r->out.result = _winreg_InitiateSystemShutdownEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_SaveKeyEx(pipes_struct *p)
@@ -2359,67 +2421,69 @@ static bool api_winreg_SaveKeyEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_SaveKeyEx *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_SAVEKEYEX];
-
+
r = talloc(NULL, struct winreg_SaveKeyEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, r);
-
+ }
+
r->out.result = _winreg_SaveKeyEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKPT(pipes_struct *p)
@@ -2430,74 +2494,76 @@ static bool api_winreg_OpenHKPT(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKPT *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPT];
-
+
r = talloc(NULL, struct winreg_OpenHKPT);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKPT(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKPN(pipes_struct *p)
@@ -2508,74 +2574,76 @@ static bool api_winreg_OpenHKPN(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKPN *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPN];
-
+
r = talloc(NULL, struct winreg_OpenHKPN);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKPN(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_QueryMultipleValues2(pipes_struct *p)
@@ -2586,67 +2654,69 @@ static bool api_winreg_QueryMultipleValues2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_QueryMultipleValues2 *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_QUERYMULTIPLEVALUES2];
-
+
r = talloc(NULL, struct winreg_QueryMultipleValues2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, r);
-
+ }
+
r->out.result = _winreg_QueryMultipleValues2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
diff --git a/source3/librpc/gen_ndr/srv_wkssvc.c b/source3/librpc/gen_ndr/srv_wkssvc.c
index ff8c1e2603..ddbf3aa373 100644
--- a/source3/librpc/gen_ndr/srv_wkssvc.c
+++ b/source3/librpc/gen_ndr/srv_wkssvc.c
@@ -14,74 +14,76 @@ static bool api_wkssvc_NetWkstaGetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetWkstaGetInfo *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTAGETINFO];
-
+
r = talloc(NULL, struct wkssvc_NetWkstaGetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union wkssvc_NetWkstaInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _wkssvc_NetWkstaGetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaGetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetWkstaSetInfo(pipes_struct *p)
@@ -92,69 +94,71 @@ static bool api_wkssvc_NetWkstaSetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetWkstaSetInfo *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTASETINFO];
-
+
r = talloc(NULL, struct wkssvc_NetWkstaSetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaSetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.parm_error = r->in.parm_error;
r->out.result = _wkssvc_NetWkstaSetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaSetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetWkstaEnumUsers(pipes_struct *p)
@@ -165,76 +169,78 @@ static bool api_wkssvc_NetWkstaEnumUsers(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetWkstaEnumUsers *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTAENUMUSERS];
-
+
r = talloc(NULL, struct wkssvc_NetWkstaEnumUsers);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaEnumUsers, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = r->in.info;
r->out.entries_read = talloc_zero(r, uint32_t);
if (r->out.entries_read == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _wkssvc_NetWkstaEnumUsers(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaEnumUsers, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrWkstaUserGetInfo(pipes_struct *p)
@@ -245,74 +251,76 @@ static bool api_wkssvc_NetrWkstaUserGetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrWkstaUserGetInfo *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTAUSERGETINFO];
-
+
r = talloc(NULL, struct wkssvc_NetrWkstaUserGetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserGetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union wkssvc_NetrWkstaUserInfo);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _wkssvc_NetrWkstaUserGetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserGetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrWkstaUserSetInfo(pipes_struct *p)
@@ -323,69 +331,71 @@ static bool api_wkssvc_NetrWkstaUserSetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrWkstaUserSetInfo *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTAUSERSETINFO];
-
+
r = talloc(NULL, struct wkssvc_NetrWkstaUserSetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserSetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.parm_err = r->in.parm_err;
r->out.result = _wkssvc_NetrWkstaUserSetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserSetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetWkstaTransportEnum(pipes_struct *p)
@@ -396,76 +406,78 @@ static bool api_wkssvc_NetWkstaTransportEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetWkstaTransportEnum *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTATRANSPORTENUM];
-
+
r = talloc(NULL, struct wkssvc_NetWkstaTransportEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaTransportEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = r->in.info;
r->out.total_entries = talloc_zero(r, uint32_t);
if (r->out.total_entries == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _wkssvc_NetWkstaTransportEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaTransportEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrWkstaTransportAdd(pipes_struct *p)
@@ -476,69 +488,71 @@ static bool api_wkssvc_NetrWkstaTransportAdd(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrWkstaTransportAdd *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTATRANSPORTADD];
-
+
r = talloc(NULL, struct wkssvc_NetrWkstaTransportAdd);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportAdd, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.parm_err = r->in.parm_err;
r->out.result = _wkssvc_NetrWkstaTransportAdd(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportAdd, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrWkstaTransportDel(pipes_struct *p)
@@ -549,67 +563,69 @@ static bool api_wkssvc_NetrWkstaTransportDel(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrWkstaTransportDel *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTATRANSPORTDEL];
-
+
r = talloc(NULL, struct wkssvc_NetrWkstaTransportDel);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportDel, r);
-
+ }
+
r->out.result = _wkssvc_NetrWkstaTransportDel(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportDel, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrUseAdd(pipes_struct *p)
@@ -620,69 +636,71 @@ static bool api_wkssvc_NetrUseAdd(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrUseAdd *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEADD];
-
+
r = talloc(NULL, struct wkssvc_NetrUseAdd);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUseAdd, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.parm_err = r->in.parm_err;
r->out.result = _wkssvc_NetrUseAdd(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseAdd, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrUseGetInfo(pipes_struct *p)
@@ -693,74 +711,76 @@ static bool api_wkssvc_NetrUseGetInfo(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrUseGetInfo *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEGETINFO];
-
+
r = talloc(NULL, struct wkssvc_NetrUseGetInfo);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUseGetInfo, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.ctr = talloc_zero(r, union wkssvc_NetrUseGetInfoCtr);
if (r->out.ctr == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _wkssvc_NetrUseGetInfo(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseGetInfo, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrUseDel(pipes_struct *p)
@@ -771,67 +791,69 @@ static bool api_wkssvc_NetrUseDel(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrUseDel *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEDEL];
-
+
r = talloc(NULL, struct wkssvc_NetrUseDel);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUseDel, r);
-
+ }
+
r->out.result = _wkssvc_NetrUseDel(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseDel, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrUseEnum(pipes_struct *p)
@@ -842,76 +864,78 @@ static bool api_wkssvc_NetrUseEnum(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrUseEnum *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEENUM];
-
+
r = talloc(NULL, struct wkssvc_NetrUseEnum);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUseEnum, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = r->in.info;
r->out.entries_read = talloc_zero(r, uint32_t);
if (r->out.entries_read == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.resume_handle = r->in.resume_handle;
r->out.result = _wkssvc_NetrUseEnum(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseEnum, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrMessageBufferSend(pipes_struct *p)
@@ -922,67 +946,69 @@ static bool api_wkssvc_NetrMessageBufferSend(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrMessageBufferSend *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRMESSAGEBUFFERSEND];
-
+
r = talloc(NULL, struct wkssvc_NetrMessageBufferSend);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrMessageBufferSend, r);
-
+ }
+
r->out.result = _wkssvc_NetrMessageBufferSend(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrMessageBufferSend, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrWorkstationStatisticsGet(pipes_struct *p)
@@ -993,74 +1019,76 @@ static bool api_wkssvc_NetrWorkstationStatisticsGet(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrWorkstationStatisticsGet *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET];
-
+
r = talloc(NULL, struct wkssvc_NetrWorkstationStatisticsGet);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrWorkstationStatisticsGet, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, struct wkssvc_NetrWorkstationStatistics *);
if (r->out.info == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _wkssvc_NetrWorkstationStatisticsGet(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrWorkstationStatisticsGet, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrLogonDomainNameAdd(pipes_struct *p)
@@ -1071,67 +1099,69 @@ static bool api_wkssvc_NetrLogonDomainNameAdd(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrLogonDomainNameAdd *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRLOGONDOMAINNAMEADD];
-
+
r = talloc(NULL, struct wkssvc_NetrLogonDomainNameAdd);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameAdd, r);
-
+ }
+
r->out.result = _wkssvc_NetrLogonDomainNameAdd(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameAdd, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrLogonDomainNameDel(pipes_struct *p)
@@ -1142,67 +1172,69 @@ static bool api_wkssvc_NetrLogonDomainNameDel(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrLogonDomainNameDel *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL];
-
+
r = talloc(NULL, struct wkssvc_NetrLogonDomainNameDel);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameDel, r);
-
+ }
+
r->out.result = _wkssvc_NetrLogonDomainNameDel(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameDel, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrJoinDomain(pipes_struct *p)
@@ -1213,67 +1245,69 @@ static bool api_wkssvc_NetrJoinDomain(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrJoinDomain *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRJOINDOMAIN];
-
+
r = talloc(NULL, struct wkssvc_NetrJoinDomain);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain, r);
-
+ }
+
r->out.result = _wkssvc_NetrJoinDomain(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrUnjoinDomain(pipes_struct *p)
@@ -1284,67 +1318,69 @@ static bool api_wkssvc_NetrUnjoinDomain(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrUnjoinDomain *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUNJOINDOMAIN];
-
+
r = talloc(NULL, struct wkssvc_NetrUnjoinDomain);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain, r);
-
+ }
+
r->out.result = _wkssvc_NetrUnjoinDomain(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrRenameMachineInDomain(pipes_struct *p)
@@ -1355,67 +1391,69 @@ static bool api_wkssvc_NetrRenameMachineInDomain(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrRenameMachineInDomain *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN];
-
+
r = talloc(NULL, struct wkssvc_NetrRenameMachineInDomain);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain, r);
-
+ }
+
r->out.result = _wkssvc_NetrRenameMachineInDomain(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrValidateName(pipes_struct *p)
@@ -1426,67 +1464,69 @@ static bool api_wkssvc_NetrValidateName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrValidateName *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRVALIDATENAME];
-
+
r = talloc(NULL, struct wkssvc_NetrValidateName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName, r);
-
+ }
+
r->out.result = _wkssvc_NetrValidateName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrGetJoinInformation(pipes_struct *p)
@@ -1497,75 +1537,77 @@ static bool api_wkssvc_NetrGetJoinInformation(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrGetJoinInformation *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOININFORMATION];
-
+
r = talloc(NULL, struct wkssvc_NetrGetJoinInformation);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinInformation, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.name_buffer = r->in.name_buffer;
r->out.name_type = talloc_zero(r, enum wkssvc_NetJoinStatus);
if (r->out.name_type == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _wkssvc_NetrGetJoinInformation(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinInformation, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrGetJoinableOus(pipes_struct *p)
@@ -1576,75 +1618,77 @@ static bool api_wkssvc_NetrGetJoinableOus(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrGetJoinableOus *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOINABLEOUS];
-
+
r = talloc(NULL, struct wkssvc_NetrGetJoinableOus);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.num_ous = r->in.num_ous;
r->out.ous = talloc_zero_array(r, const char **, *r->out.num_ous);
if (r->out.ous == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _wkssvc_NetrGetJoinableOus(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrJoinDomain2(pipes_struct *p)
@@ -1655,67 +1699,69 @@ static bool api_wkssvc_NetrJoinDomain2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrJoinDomain2 *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRJOINDOMAIN2];
-
+
r = talloc(NULL, struct wkssvc_NetrJoinDomain2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, r);
-
+ }
+
r->out.result = _wkssvc_NetrJoinDomain2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrUnjoinDomain2(pipes_struct *p)
@@ -1726,67 +1772,69 @@ static bool api_wkssvc_NetrUnjoinDomain2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrUnjoinDomain2 *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUNJOINDOMAIN2];
-
+
r = talloc(NULL, struct wkssvc_NetrUnjoinDomain2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, r);
-
+ }
+
r->out.result = _wkssvc_NetrUnjoinDomain2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrRenameMachineInDomain2(pipes_struct *p)
@@ -1797,67 +1845,69 @@ static bool api_wkssvc_NetrRenameMachineInDomain2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrRenameMachineInDomain2 *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2];
-
+
r = talloc(NULL, struct wkssvc_NetrRenameMachineInDomain2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, r);
-
+ }
+
r->out.result = _wkssvc_NetrRenameMachineInDomain2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrValidateName2(pipes_struct *p)
@@ -1868,67 +1918,69 @@ static bool api_wkssvc_NetrValidateName2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrValidateName2 *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRVALIDATENAME2];
-
+
r = talloc(NULL, struct wkssvc_NetrValidateName2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName2, r);
-
+ }
+
r->out.result = _wkssvc_NetrValidateName2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrGetJoinableOus2(pipes_struct *p)
@@ -1939,75 +1991,77 @@ static bool api_wkssvc_NetrGetJoinableOus2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrGetJoinableOus2 *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOINABLEOUS2];
-
+
r = talloc(NULL, struct wkssvc_NetrGetJoinableOus2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus2, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.num_ous = r->in.num_ous;
r->out.ous = talloc_zero_array(r, const char **, *r->out.num_ous);
if (r->out.ous == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _wkssvc_NetrGetJoinableOus2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrAddAlternateComputerName(pipes_struct *p)
@@ -2018,67 +2072,69 @@ static bool api_wkssvc_NetrAddAlternateComputerName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrAddAlternateComputerName *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME];
-
+
r = talloc(NULL, struct wkssvc_NetrAddAlternateComputerName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, r);
-
+ }
+
r->out.result = _wkssvc_NetrAddAlternateComputerName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrAddAlternateComputerName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p)
@@ -2089,67 +2145,69 @@ static bool api_wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrRemoveAlternateComputerName *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME];
-
+
r = talloc(NULL, struct wkssvc_NetrRemoveAlternateComputerName);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, r);
-
+ }
+
r->out.result = _wkssvc_NetrRemoveAlternateComputerName(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrRemoveAlternateComputerName, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrSetPrimaryComputername(pipes_struct *p)
@@ -2160,67 +2218,69 @@ static bool api_wkssvc_NetrSetPrimaryComputername(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrSetPrimaryComputername *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME];
-
+
r = talloc(NULL, struct wkssvc_NetrSetPrimaryComputername);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrSetPrimaryComputername, r);
-
+ }
+
r->out.result = _wkssvc_NetrSetPrimaryComputername(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrSetPrimaryComputername, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_wkssvc_NetrEnumerateComputerNames(pipes_struct *p)
@@ -2231,74 +2291,76 @@ static bool api_wkssvc_NetrEnumerateComputerNames(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct wkssvc_NetrEnumerateComputerNames *r;
-
+
call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES];
-
+
r = talloc(NULL, struct wkssvc_NetrEnumerateComputerNames);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(wkssvc_NetrEnumerateComputerNames, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.ctr = talloc_zero(r, struct wkssvc_ComputerNamesCtr *);
if (r->out.ctr == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _wkssvc_NetrEnumerateComputerNames(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(wkssvc_NetrEnumerateComputerNames, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}