]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Remove unused marshalling for LSA_UNK_GET_CONNUSER.
authorGünther Deschner <gd@samba.org>
Mon, 11 Feb 2008 19:31:34 +0000 (20:31 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 11 Feb 2008 19:49:50 +0000 (20:49 +0100)
Guenther

source/include/rpc_lsa.h
source/rpc_parse/parse_lsa.c

index 9f8beae2cef9451387f6de27edb7b8f34de780e5..fe088c4e82081f3740913577faad00885c888853 100644 (file)
@@ -551,34 +551,6 @@ typedef struct lsa_r_enum_accounts
        NTSTATUS status;
 } LSA_R_ENUM_ACCOUNTS;
 
-/* LSA_Q_UNK_GET_CONNUSER - gets username\domain of connected user
-                  called when "Take Ownership" is clicked -SK */
-typedef struct lsa_q_unk_get_connuser
-{
-  uint32 ptr_srvname;
-  UNISTR2 uni2_srvname;
-  uint32 unk1; /* 3 unknown uint32's are seen right after uni2_srvname */
-  uint32 unk2; /* unk2 appears to be a ptr, unk1 = unk3 = 0 usually */
-  uint32 unk3; 
-} LSA_Q_UNK_GET_CONNUSER;
-
-/* LSA_R_UNK_GET_CONNUSER */
-typedef struct lsa_r_unk_get_connuser
-{
-  uint32 ptr_user_name;
-  UNIHDR hdr_user_name;
-  UNISTR2 uni2_user_name;
-  
-  uint32 unk1;
-  
-  uint32 ptr_dom_name;
-  UNIHDR hdr_dom_name;
-  UNISTR2 uni2_dom_name;
-
-  NTSTATUS status;
-} LSA_R_UNK_GET_CONNUSER;
-
-
 typedef struct lsa_q_enumprivsaccount
 {
        POLICY_HND pol; /* policy handle */
index ded4b7a3a70698fd2eb8d7db269639a88f3b9115..12dd6e126b828e934f3b66260df324b570b6499d 100644 (file)
@@ -1496,79 +1496,6 @@ bool lsa_io_r_enum_accounts(const char *desc, LSA_R_ENUM_ACCOUNTS *out, prs_stru
 }
 
 
-/*******************************************************************
- Reads or writes an LSA_Q_UNK_GET_CONNUSER structure.
-********************************************************************/
-
-bool lsa_io_q_unk_get_connuser(const char *desc, LSA_Q_UNK_GET_CONNUSER *in, prs_struct *ps, int depth)
-{
-       prs_debug(ps, depth, desc, "lsa_io_q_unk_get_connuser");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-   
-       if(!prs_uint32("ptr_srvname", ps, depth, &in->ptr_srvname))
-               return False;
-
-       if(!smb_io_unistr2("uni2_srvname", &in->uni2_srvname, in->ptr_srvname, ps, depth)) /* server name to be looked up */
-               return False;
-
-       if (!prs_align(ps))
-         return False;
-
-       if(!prs_uint32("unk1", ps, depth, &in->unk1))
-               return False;
-       if(!prs_uint32("unk2", ps, depth, &in->unk2))
-               return False;
-       if(!prs_uint32("unk3", ps, depth, &in->unk3))
-               return False;
-
-       /* Don't bother to read or write at present... */
-       return True;
-}
-
-/*******************************************************************
- Reads or writes an LSA_R_UNK_GET_CONNUSER structure.
-********************************************************************/
-
-bool lsa_io_r_unk_get_connuser(const char *desc, LSA_R_UNK_GET_CONNUSER *out, prs_struct *ps, int depth)
-{
-       prs_debug(ps, depth, desc, "lsa_io_r_unk_get_connuser");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-   
-       if(!prs_uint32("ptr_user_name", ps, depth, &out->ptr_user_name))
-               return False;
-       if(!smb_io_unihdr("hdr_user_name", &out->hdr_user_name, ps, depth))
-               return False;
-       if(!smb_io_unistr2("uni2_user_name", &out->uni2_user_name, out->ptr_user_name, ps, depth))
-               return False;
-
-       if (!prs_align(ps))
-         return False;
-       
-       if(!prs_uint32("unk1", ps, depth, &out->unk1))
-               return False;
-
-       if(!prs_uint32("ptr_dom_name", ps, depth, &out->ptr_dom_name))
-               return False;
-       if(!smb_io_unihdr("hdr_dom_name", &out->hdr_dom_name, ps, depth))
-               return False;
-       if(!smb_io_unistr2("uni2_dom_name", &out->uni2_dom_name, out->ptr_dom_name, ps, depth))
-               return False;
-
-       if (!prs_align(ps))
-         return False;
-       
-       if(!prs_ntstatus("status", ps, depth, &out->status))
-               return False;
-
-       return True;
-}
-
 void init_lsa_q_enum_privsaccount(LSA_Q_ENUMPRIVSACCOUNT *trn, POLICY_HND *hnd)
 {
        memcpy(&trn->pol, hnd, sizeof(trn->pol));