From b69a590f6bec4219879beb87dc375417153983a2 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 12 Feb 2008 01:31:32 +0100 Subject: Remove unused marshalling for SAMR_SET_USERINFO2. Guenther (This used to be commit d493f98cd1da5e8a5995e3adea2f28b434baae99) --- source3/rpc_parse/parse_samr.c | 87 ------------------------------------------ 1 file changed, 87 deletions(-) (limited to 'source3/rpc_parse') diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 954a60d443..5cfd1edfee 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -2117,90 +2117,3 @@ bool samr_io_r_set_userinfo(const char *desc, SAMR_R_SET_USERINFO * r_u, return True; } - -/******************************************************************* -inits a SAMR_Q_SET_USERINFO2 structure. -********************************************************************/ - -void init_samr_q_set_userinfo2(SAMR_Q_SET_USERINFO2 * q_u, - const POLICY_HND *hnd, DATA_BLOB *sess_key, - uint16 switch_value, SAM_USERINFO_CTR * ctr) -{ - DEBUG(5, ("init_samr_q_set_userinfo2\n")); - - q_u->pol = *hnd; - q_u->switch_value = switch_value; - q_u->ctr = ctr; - - q_u->ctr->switch_value = switch_value; - - switch (switch_value) { - case 18: - SamOEMhashBlob(ctr->info.id18->lm_pwd, 16, sess_key); - SamOEMhashBlob(ctr->info.id18->nt_pwd, 16, sess_key); - dump_data(100, sess_key->data, sess_key->length); - dump_data(100, ctr->info.id18->lm_pwd, 16); - dump_data(100, ctr->info.id18->nt_pwd, 16); - break; - } -} - -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_q_set_userinfo2(const char *desc, SAMR_Q_SET_USERINFO2 * q_u, - prs_struct *ps, int depth) -{ - if (q_u == NULL) - return False; - - prs_debug(ps, depth, desc, "samr_io_q_set_userinfo2"); - depth++; - - if(!prs_align(ps)) - return False; - - if(!smb_io_pol_hnd("pol", &q_u->pol, ps, depth)) - return False; - - if(!prs_uint16("switch_value", ps, depth, &q_u->switch_value)) - return False; - if(!samr_io_userinfo_ctr("ctr", &q_u->ctr, ps, depth)) - return False; - - return True; -} - -/******************************************************************* -inits a SAMR_R_SET_USERINFO2 structure. -********************************************************************/ - -void init_samr_r_set_userinfo2(SAMR_R_SET_USERINFO2 * r_u, NTSTATUS status) -{ - DEBUG(5, ("init_samr_r_set_userinfo2\n")); - - r_u->status = status; /* return status */ -} - -/******************************************************************* -reads or writes a structure. -********************************************************************/ - -bool samr_io_r_set_userinfo2(const char *desc, SAMR_R_SET_USERINFO2 * r_u, - prs_struct *ps, int depth) -{ - if (r_u == NULL) - return False; - - prs_debug(ps, depth, desc, "samr_io_r_set_userinfo2"); - depth++; - - if(!prs_align(ps)) - return False; - - if(!prs_ntstatus("status", ps, depth, &r_u->status)) - return False; - - return True; -} -- cgit