diff options
author | Günther Deschner <gd@samba.org> | 2008-02-13 10:27:15 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-13 10:27:15 +0100 |
commit | 111ea7682ef39ea02b044e7f1ef27c5865ebdc01 (patch) | |
tree | d659107bfc21fb70b4a55bf29f4982b397019fb4 /source3/rpc_parse/parse_net.c | |
parent | 3b45ebb1b7dd384b4adc7c9ab6102ce543f643f2 (diff) | |
download | samba-111ea7682ef39ea02b044e7f1ef27c5865ebdc01.tar.gz samba-111ea7682ef39ea02b044e7f1ef27c5865ebdc01.tar.bz2 samba-111ea7682ef39ea02b044e7f1ef27c5865ebdc01.zip |
Remove unused marshalling for NET_TRUST_DOM_LIST.
Guenther
(This used to be commit 9312755955eac9897c8117773f8cd7d1652b2bca)
Diffstat (limited to 'source3/rpc_parse/parse_net.c')
-rw-r--r-- | source3/rpc_parse/parse_net.c | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c index 55af8211cf..257f461d7c 100644 --- a/source3/rpc_parse/parse_net.c +++ b/source3/rpc_parse/parse_net.c @@ -479,108 +479,6 @@ bool net_io_r_logon_ctrl(const char *desc, NET_R_LOGON_CTRL *r_l, prs_struct *ps } /******************************************************************* - Inits an NET_R_TRUST_DOM_LIST structure. -********************************************************************/ - -void init_r_trust_dom(NET_R_TRUST_DOM_LIST *r_t, - uint32 num_doms, const char *dom_name) -{ - unsigned int i = 0; - - DEBUG(5,("init_r_trust_dom\n")); - - for (i = 0; i < MAX_TRUST_DOMS; i++) { - r_t->uni_trust_dom_name[i].uni_str_len = 0; - r_t->uni_trust_dom_name[i].uni_max_len = 0; - } - if (num_doms > MAX_TRUST_DOMS) - num_doms = MAX_TRUST_DOMS; - - for (i = 0; i < num_doms; i++) { - fstring domain_name; - fstrcpy(domain_name, dom_name); - strupper_m(domain_name); - init_unistr2(&r_t->uni_trust_dom_name[i], domain_name, UNI_STR_TERMINATE); - /* the use of UNISTR2 here is non-standard. */ - r_t->uni_trust_dom_name[i].offset = 0x1; - } - - r_t->status = NT_STATUS_OK; -} - -/******************************************************************* - Reads or writes an NET_R_TRUST_DOM_LIST structure. -********************************************************************/ - -bool net_io_r_trust_dom(const char *desc, NET_R_TRUST_DOM_LIST *r_t, prs_struct *ps, int depth) -{ - uint32 value; - - if (r_t == NULL) - return False; - - prs_debug(ps, depth, desc, "net_io_r_trust_dom"); - depth++; - - /* temporary code to give a valid response */ - value=2; - if(!prs_uint32("status", ps, depth, &value)) - return False; - - value=1; - if(!prs_uint32("status", ps, depth, &value)) - return False; - value=2; - if(!prs_uint32("status", ps, depth, &value)) - return False; - - value=0; - if(!prs_uint32("status", ps, depth, &value)) - return False; - - value=0; - if(!prs_uint32("status", ps, depth, &value)) - return False; - -/* old non working code */ -#if 0 - int i; - - for (i = 0; i < MAX_TRUST_DOMS; i++) { - if (r_t->uni_trust_dom_name[i].uni_str_len == 0) - break; - if(!smb_io_unistr2("", &r_t->uni_trust_dom_name[i], True, ps, depth)) - return False; - } - - if(!prs_ntstatus("status", ps, depth, &r_t->status)) - return False; -#endif - return True; -} - - -/******************************************************************* - Reads or writes an NET_Q_TRUST_DOM_LIST structure. -********************************************************************/ - -bool net_io_q_trust_dom(const char *desc, NET_Q_TRUST_DOM_LIST *q_l, prs_struct *ps, int depth) -{ - if (q_l == NULL) - return False; - - prs_debug(ps, depth, desc, "net_io_q_trust_dom"); - depth++; - - if(!prs_uint32("ptr ", ps, depth, &q_l->ptr)) - return False; - if(!smb_io_unistr2 ("", &q_l->uni_server_name, q_l->ptr, ps, depth)) - return False; - - return True; -} - -/******************************************************************* Inits an NET_Q_REQ_CHAL structure. ********************************************************************/ |