Remove old, unused marshalling code for SAMR_GET_DOM_PWINFO.
authorGünther Deschner <gd@samba.org>
Wed, 30 Jan 2008 20:56:00 +0000 (21:56 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 31 Jan 2008 12:39:48 +0000 (13:39 +0100)
Guenther
(This used to be commit d74ab657df051b7bad616dbe7fe7732a653ffe6d)

source3/include/rpc_samr.h
source3/rpc_parse/parse_samr.c

index 93fc89751cfa239a9a7c461fb4c56d48c19a5e6b..1f6cb95b5aa538d1161870eabd7f104abf1f968c 100644 (file)
@@ -1806,24 +1806,6 @@ typedef struct r_samr_connect_info5
 } SAMR_R_CONNECT5;
 
 
-/* SAMR_Q_GET_DOM_PWINFO */
-typedef struct q_samr_get_dom_pwinfo
-{
-       uint32 ptr; 
-       UNIHDR  hdr_srv_name;
-       UNISTR2 uni_srv_name;
-
-} SAMR_Q_GET_DOM_PWINFO;
-
-/* SAMR_R_GET_DOM_PWINFO */
-typedef struct r_samr_get_dom_pwinfo
-{
-       uint16 min_pwd_length;
-       uint32 password_properties;
-       NTSTATUS status;
-
-} SAMR_R_GET_DOM_PWINFO;
-
 /* SAMR_ENC_PASSWD */
 typedef struct enc_passwd_info
 {
index 0e01da59ece54cf59aeed97d8f4847bdb85664d3..37f9ba05d6db62cb9a23071dcc5f300a0c5e32e0 100644 (file)
@@ -7283,77 +7283,6 @@ bool samr_io_r_connect_anon(const char *desc, SAMR_R_CONNECT_ANON * r_u,
        return True;
 }
 
-/*******************************************************************
-inits a SAMR_Q_GET_DOM_PWINFO structure.
-********************************************************************/
-
-void init_samr_q_get_dom_pwinfo(SAMR_Q_GET_DOM_PWINFO * q_u,
-                               char *srv_name)
-{
-       DEBUG(5, ("init_samr_q_get_dom_pwinfo\n"));
-
-       q_u->ptr = 1;
-       init_unistr2(&q_u->uni_srv_name, srv_name, UNI_FLAGS_NONE);
-       init_uni_hdr(&q_u->hdr_srv_name, &q_u->uni_srv_name);
-}
-
-/*******************************************************************
-reads or writes a structure.
-********************************************************************/
-
-bool samr_io_q_get_dom_pwinfo(const char *desc, SAMR_Q_GET_DOM_PWINFO * q_u,
-                             prs_struct *ps, int depth)
-{
-       if (q_u == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "samr_io_q_get_dom_pwinfo");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_uint32("ptr", ps, depth, &q_u->ptr))
-               return False;
-       if (q_u->ptr != 0) {
-               if(!smb_io_unihdr("", &q_u->hdr_srv_name, ps, depth))
-                       return False;
-               if(!smb_io_unistr2("", &q_u->uni_srv_name, q_u->hdr_srv_name.buffer, ps, depth))
-                       return False;
-       }
-
-       return True;
-}
-
-/*******************************************************************
-reads or writes a structure.
-********************************************************************/
-
-bool samr_io_r_get_dom_pwinfo(const char *desc, SAMR_R_GET_DOM_PWINFO * r_u,
-                             prs_struct *ps, int depth)
-{
-       if (r_u == NULL)
-               return False;
-
-       prs_debug(ps, depth, desc, "samr_io_r_get_dom_pwinfo");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_uint16("min_pwd_length", ps, depth, &r_u->min_pwd_length))
-               return False;
-       if(!prs_align(ps))
-               return False;
-       if(!prs_uint32("password_properties", ps, depth, &r_u->password_properties))
-               return False;
-
-       if(!prs_ntstatus("status", ps, depth, &r_u->status))
-               return False;
-
-       return True;
-}
-
 /*******************************************************************
 make a SAMR_ENC_PASSWD structure.
 ********************************************************************/