BOOL net_io_q_auth_2(char *desc, NET_Q_AUTH_2 *q_a, prs_struct *ps, int depth) { int old_align; 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; /* client challenge is _not_ aligned */ old_align = ps->align; ps->align = 0; if(!smb_io_chal("", &q_a->clnt_chal, ps, depth)) { /* client-calculated credentials */ ps->align = old_align; return False; } ps->align = old_align; if(!net_io_neg_flags("", &q_a->clnt_flgs, ps, depth)) return False; return True; }
BOOL smb_io_clnt_info(const char *desc, DOM_CLNT_INFO *clnt, prs_struct *ps, int depth) { if (clnt == NULL) return False; prs_debug(ps, depth, desc, "smb_io_clnt_info"); depth++; if(!prs_align(ps)) return False; if(!smb_io_log_info("", &clnt->login, ps, depth)) return False; if(!smb_io_cred("", &clnt->cred, ps, depth)) return False; return True; }