Remove old lsa set info policy call.
authorGünther Deschner <gd@samba.org>
Mon, 14 Jan 2008 16:16:06 +0000 (17:16 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 14 Jan 2008 16:16:06 +0000 (17:16 +0100)
Guenther
(This used to be commit b37b2b77edec72fc3f53b3461aa1c210e4366c1b)

source3/include/rpc_lsa.h
source3/rpc_client/cli_lsarpc.c
source3/rpc_parse/parse_lsa.c

index 22436c59b2a2706ec5f6728ae716a04ec6aaf6bb..ef6ff6db28d5c6d4d68f4209c122b149d0fe10ad 100644 (file)
@@ -334,22 +334,6 @@ typedef struct lsa_info_ctr
 
 typedef LSA_INFO_CTR LSA_INFO_CTR2;
 
-/* LSA_Q_SET_INFO - LSA set info policy */
-typedef struct lsa_set_info
-{
-       POLICY_HND pol; /* policy handle */
-       uint16 info_class; /* info class */
-       LSA_INFO_CTR ctr;
-
-} LSA_Q_SET_INFO;
-
-/* LSA_R_SET_INFO - response to LSA set info policy */
-typedef struct lsa_r_set_info
-{
-       NTSTATUS status; /* return code */
-
-} LSA_R_SET_INFO;
-
 /* LSA_R_QUERY_INFO - response to LSA query info policy */
 typedef struct lsa_r_query_info
 {
index a023fe75efac824e5b2dab9679f6a38214aa2fda..77ade5cba1b3f19aa02b22bd39818a9362082403 100644 (file)
@@ -716,41 +716,6 @@ NTSTATUS rpccli_lsa_query_info_policy2(struct rpc_pipe_client *cli,
        return result;
 }
 
-NTSTATUS rpccli_lsa_set_info_policy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
-                                   POLICY_HND *pol, uint16 info_class,
-                                   LSA_INFO_CTR ctr)
-{
-       prs_struct qbuf, rbuf;
-       LSA_Q_SET_INFO q;
-       LSA_R_SET_INFO r;
-       NTSTATUS result;
-
-       ZERO_STRUCT(q);
-       ZERO_STRUCT(r);
-
-       init_q_set(&q, pol, info_class, ctr);
-
-       CLI_DO_RPC(cli, mem_ctx, PI_LSARPC, LSA_SETINFOPOLICY,
-               q, r,
-               qbuf, rbuf,
-               lsa_io_q_set,
-               lsa_io_r_set,
-               NT_STATUS_UNSUCCESSFUL);
-
-       result = r.status;
-
-       if (!NT_STATUS_IS_OK(result)) {
-               goto done;
-       }
-
-       /* Return output parameters */
-
- done:
-
-       return result;
-}
-
-
 /**
  * Enumerate list of trusted domains
  *
index e4d5d15112744a7ae56e9cdb83f7c8293a3a06c5..98c42833479e56cf68efffedd66950e6d190546a 100644 (file)
@@ -909,21 +909,6 @@ bool lsa_io_dom_query_12(const char *desc, DOM_QUERY_12 *info, prs_struct *ps, i
        
 }
 
-/*******************************************************************
- Inits an LSA_Q_QUERY_INFO structure.
-********************************************************************/
-
-void init_q_set(LSA_Q_SET_INFO *in, POLICY_HND *hnd, uint16 info_class, LSA_INFO_CTR ctr)
-{
-       DEBUG(5,("init_q_set\n"));
-
-       in->info_class = info_class;
-
-       in->pol = *hnd;
-
-       in->ctr = ctr;
-       in->ctr.info_class = info_class;
-}
 
 /*******************************************************************
 reads or writes a structure.
@@ -1064,49 +1049,6 @@ bool lsa_io_r_query(const char *desc, LSA_R_QUERY_INFO *out, prs_struct *ps, int
        return True;
 }
 
-/*******************************************************************
- Reads or writes an LSA_Q_SET_INFO structure.
-********************************************************************/
-
-bool lsa_io_q_set(const char *desc, LSA_Q_SET_INFO *in, prs_struct *ps, 
-                 int depth)
-{
-       prs_debug(ps, depth, desc, "lsa_io_q_set");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!smb_io_pol_hnd("", &in->pol, ps, depth))
-               return False;
-
-       if(!prs_uint16("info_class", ps, depth, &in->info_class))
-               return False;
-
-       if(!lsa_io_query_info_ctr("", ps, depth, &in->ctr))
-               return False;
-
-       return True;
-}
-
-/*******************************************************************
- Reads or writes an LSA_R_SET_INFO structure.
-********************************************************************/
-
-bool lsa_io_r_set(const char *desc, LSA_R_SET_INFO *out, prs_struct *ps, int depth)
-{
-       prs_debug(ps, depth, desc, "lsa_io_r_set");
-       depth++;
-
-       if(!prs_align(ps))
-               return False;
-
-       if(!prs_ntstatus("status", ps, depth, &out->status))
-               return False;
-
-       return True;
-}
-
 /*******************************************************************
  Inits a LSA_SID_ENUM structure.
 ********************************************************************/