mirror of
https://github.com/samba-team/samba.git
synced 2025-08-16 17:49:29 +03:00
Remove unused marshalling for NET_REQ_CHAL and NET_AUTH2.
Guenther
(This used to be commit 2123aff75c
)
This commit is contained in:
@ -46,80 +46,6 @@ static bool net_io_neg_flags(const char *desc, NEG_FLAGS *neg, prs_struct *ps, i
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Inits an NET_Q_REQ_CHAL structure.
|
||||
********************************************************************/
|
||||
|
||||
void init_q_req_chal(NET_Q_REQ_CHAL *q_c,
|
||||
const char *logon_srv, const char *logon_clnt,
|
||||
const DOM_CHAL *clnt_chal)
|
||||
{
|
||||
DEBUG(5,("init_q_req_chal: %d\n", __LINE__));
|
||||
|
||||
q_c->undoc_buffer = 1; /* don't know what this buffer is */
|
||||
|
||||
init_unistr2(&q_c->uni_logon_srv, logon_srv , UNI_STR_TERMINATE);
|
||||
init_unistr2(&q_c->uni_logon_clnt, logon_clnt, UNI_STR_TERMINATE);
|
||||
|
||||
memcpy(q_c->clnt_chal.data, clnt_chal->data, sizeof(clnt_chal->data));
|
||||
|
||||
DEBUG(5,("init_q_req_chal: %d\n", __LINE__));
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Reads or writes an NET_Q_REQ_CHAL structure.
|
||||
********************************************************************/
|
||||
|
||||
bool net_io_q_req_chal(const char *desc, NET_Q_REQ_CHAL *q_c, prs_struct *ps, int depth)
|
||||
{
|
||||
if (q_c == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "net_io_q_req_chal");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!prs_uint32("undoc_buffer", ps, depth, &q_c->undoc_buffer))
|
||||
return False;
|
||||
|
||||
if(!smb_io_unistr2("", &q_c->uni_logon_srv, True, ps, depth)) /* logon server unicode string */
|
||||
return False;
|
||||
if(!smb_io_unistr2("", &q_c->uni_logon_clnt, True, ps, depth)) /* logon client unicode string */
|
||||
return False;
|
||||
|
||||
if(!smb_io_chal("", &q_c->clnt_chal, ps, depth))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool net_io_r_req_chal(const char *desc, NET_R_REQ_CHAL *r_c, prs_struct *ps, int depth)
|
||||
{
|
||||
if (r_c == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "net_io_r_req_chal");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_chal("", &r_c->srv_chal, ps, depth)) /* server challenge */
|
||||
return False;
|
||||
|
||||
if(!prs_ntstatus("status", ps, depth, &r_c->status))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
Reads or writes a structure.
|
||||
********************************************************************/
|
||||
@ -167,74 +93,6 @@ bool net_io_r_auth(const char *desc, NET_R_AUTH *r_a, prs_struct *ps, int depth)
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Inits a NET_Q_AUTH_2 struct.
|
||||
********************************************************************/
|
||||
|
||||
void init_q_auth_2(NET_Q_AUTH_2 *q_a,
|
||||
const char *logon_srv, const char *acct_name, uint16 sec_chan, const char *comp_name,
|
||||
const DOM_CHAL *clnt_chal, uint32 clnt_flgs)
|
||||
{
|
||||
DEBUG(5,("init_q_auth_2: %d\n", __LINE__));
|
||||
|
||||
init_log_info(&q_a->clnt_id, logon_srv, acct_name, sec_chan, comp_name);
|
||||
memcpy(q_a->clnt_chal.data, clnt_chal->data, sizeof(clnt_chal->data));
|
||||
q_a->clnt_flgs.neg_flags = clnt_flgs;
|
||||
|
||||
DEBUG(5,("init_q_auth_2: %d\n", __LINE__));
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool net_io_q_auth_2(const char *desc, NET_Q_AUTH_2 *q_a, prs_struct *ps, int depth)
|
||||
{
|
||||
if (q_a == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "net_io_q_auth_2");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_log_info ("", &q_a->clnt_id, ps, depth)) /* client identification info */
|
||||
return False;
|
||||
if(!smb_io_chal("", &q_a->clnt_chal, ps, depth))
|
||||
return False;
|
||||
if(!net_io_neg_flags("", &q_a->clnt_flgs, ps, depth))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool net_io_r_auth_2(const char *desc, NET_R_AUTH_2 *r_a, prs_struct *ps, int depth)
|
||||
{
|
||||
if (r_a == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "net_io_r_auth_2");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_chal("", &r_a->srv_chal, ps, depth)) /* server challenge */
|
||||
return False;
|
||||
if(!net_io_neg_flags("", &r_a->srv_flgs, ps, depth))
|
||||
return False;
|
||||
|
||||
if(!prs_ntstatus("status", ps, depth, &r_a->status))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Inits a NET_Q_AUTH_3 struct.
|
||||
********************************************************************/
|
||||
|
Reference in New Issue
Block a user