mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Remove unused marshalling for SAMR_SET_GROUPINFO.
Guenther
(This used to be commit 2bcc01fd13
)
This commit is contained in:
parent
1500538ae8
commit
bffbee263f
@ -882,22 +882,6 @@ typedef struct r_samr_query_groupinfo_info
|
||||
} SAMR_R_QUERY_GROUPINFO;
|
||||
|
||||
|
||||
/* SAMR_Q_SET_GROUPINFO - SAM Group Info */
|
||||
typedef struct q_samr_set_group_info
|
||||
{
|
||||
POLICY_HND pol; /* policy handle */
|
||||
GROUP_INFO_CTR *ctr;
|
||||
|
||||
} SAMR_Q_SET_GROUPINFO;
|
||||
|
||||
/* SAMR_R_SET_GROUPINFO - SAM Group Info */
|
||||
typedef struct r_samr_set_group_info
|
||||
{
|
||||
NTSTATUS status;
|
||||
|
||||
} SAMR_R_SET_GROUPINFO;
|
||||
|
||||
|
||||
/********************************************************/
|
||||
|
||||
typedef struct {
|
||||
|
@ -64,39 +64,6 @@ NTSTATUS rpccli_samr_query_userinfo(struct rpc_pipe_client *cli,
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Set group info */
|
||||
|
||||
NTSTATUS rpccli_samr_set_groupinfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
POLICY_HND *group_pol, GROUP_INFO_CTR *ctr)
|
||||
{
|
||||
prs_struct qbuf, rbuf;
|
||||
SAMR_Q_SET_GROUPINFO q;
|
||||
SAMR_R_SET_GROUPINFO r;
|
||||
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
|
||||
|
||||
DEBUG(10,("cli_samr_set_groupinfo\n"));
|
||||
|
||||
ZERO_STRUCT(q);
|
||||
ZERO_STRUCT(r);
|
||||
|
||||
/* Marshall data and send request */
|
||||
|
||||
init_samr_q_set_groupinfo(&q, group_pol, ctr);
|
||||
|
||||
CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_SET_GROUPINFO,
|
||||
q, r,
|
||||
qbuf, rbuf,
|
||||
samr_io_q_set_groupinfo,
|
||||
samr_io_r_set_groupinfo,
|
||||
NT_STATUS_UNSUCCESSFUL);
|
||||
|
||||
/* Return output parameters */
|
||||
|
||||
result = r.status;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Query group info */
|
||||
|
||||
NTSTATUS rpccli_samr_query_groupinfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
|
@ -1537,77 +1537,6 @@ static bool samr_group_info_ctr(const char *desc, GROUP_INFO_CTR **ctr,
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
inits a SAMR_Q_SET_GROUPINFO structure.
|
||||
********************************************************************/
|
||||
|
||||
void init_samr_q_set_groupinfo(SAMR_Q_SET_GROUPINFO * q_e,
|
||||
POLICY_HND *pol, GROUP_INFO_CTR * ctr)
|
||||
{
|
||||
DEBUG(5, ("init_samr_q_set_groupinfo\n"));
|
||||
|
||||
q_e->pol = *pol;
|
||||
q_e->ctr = ctr;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_q_set_groupinfo(const char *desc, SAMR_Q_SET_GROUPINFO * q_e,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (q_e == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_q_set_groupinfo");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_pol_hnd("pol", &q_e->pol, ps, depth))
|
||||
return False;
|
||||
|
||||
if(!samr_group_info_ctr("ctr", &q_e->ctr, ps, depth))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
inits a SAMR_R_SET_GROUPINFO structure.
|
||||
********************************************************************/
|
||||
|
||||
void init_samr_r_set_groupinfo(SAMR_R_SET_GROUPINFO * r_u, NTSTATUS status)
|
||||
{
|
||||
DEBUG(5, ("init_samr_r_set_groupinfo\n"));
|
||||
|
||||
r_u->status = status;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_r_set_groupinfo(const char *desc, SAMR_R_SET_GROUPINFO * r_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (r_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_r_set_groupinfo");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!prs_ntstatus("status", ps, depth, &r_u->status))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
inits a SAMR_Q_QUERY_GROUPINFO structure.
|
||||
********************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user