s3-rpc_cli: Remove some unused wrapping code.
authorGünther Deschner <gd@samba.org>
Wed, 28 Nov 2012 13:53:27 +0000 (14:53 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 Dec 2012 08:40:22 +0000 (09:40 +0100)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 83ac2771622d90e50ef27778a8227872571b9af3)

source3/rpc_client/cli_lsarpc.c
source3/rpc_client/cli_lsarpc.h

index 99e0262dfbdd8fdb8ac236b52eebf8b60e629d88..d294c9535f6b2aab465c3e4729dd9fd625bf6a43 100644 (file)
@@ -539,35 +539,6 @@ NTSTATUS dcerpc_lsa_lookup_sids3(struct dcerpc_binding_handle *h,
                                              result);
 }
 
-NTSTATUS rpccli_lsa_lookup_sids3(struct rpc_pipe_client *cli,
-                                TALLOC_CTX *mem_ctx,
-                                struct policy_handle *pol,
-                                int num_sids,
-                                const struct dom_sid *sids,
-                                char ***pdomains,
-                                char ***pnames,
-                                enum lsa_SidType **ptypes)
-{
-       NTSTATUS status;
-       NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
-
-       status = dcerpc_lsa_lookup_sids_generic(cli->binding_handle,
-                                               mem_ctx,
-                                               pol,
-                                               num_sids,
-                                               sids,
-                                               pdomains,
-                                               pnames,
-                                               ptypes,
-                                               true,
-                                               &result);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
-
-       return result;
-}
-
 /** Lookup a list of names */
 
 static NTSTATUS dcerpc_lsa_lookup_names_generic(struct dcerpc_binding_handle *h,
@@ -790,33 +761,3 @@ NTSTATUS dcerpc_lsa_lookup_names4(struct dcerpc_binding_handle *h,
                                               true,
                                               result);
 }
-
-NTSTATUS rpccli_lsa_lookup_names4(struct rpc_pipe_client *cli,
-                                 TALLOC_CTX *mem_ctx,
-                                 struct policy_handle *pol,
-                                 int num_names,
-                                 const char **names,
-                                 const char ***dom_names,
-                                 int level,
-                                 struct dom_sid **sids,
-                                 enum lsa_SidType **types)
-{
-       NTSTATUS status;
-       NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
-
-       status = dcerpc_lsa_lookup_names4(cli->binding_handle,
-                                         mem_ctx,
-                                         pol,
-                                         num_names,
-                                         names,
-                                         dom_names,
-                                         level,
-                                         sids,
-                                         types,
-                                         &result);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
-
-       return result;
-}
index a26193e5b42088092d83c12446f8e1e8ce99e49e..878c3f4f5571fbb2cfc996dc9411e3fca26294cd 100644 (file)
@@ -158,15 +158,6 @@ NTSTATUS dcerpc_lsa_lookup_sids3(struct dcerpc_binding_handle *h,
                                 char ***pnames,
                                 enum lsa_SidType **ptypes,
                                 NTSTATUS *result);
-NTSTATUS rpccli_lsa_lookup_sids3(struct rpc_pipe_client *cli,
-                                TALLOC_CTX *mem_ctx,
-                                struct policy_handle *pol,
-                                int num_sids,
-                                const struct dom_sid *sids,
-                                char ***pdomains,
-                                char ***pnames,
-                                enum lsa_SidType **ptypes);
-
 NTSTATUS dcerpc_lsa_lookup_names(struct dcerpc_binding_handle *h,
                                 TALLOC_CTX *mem_ctx,
                                 struct policy_handle *pol,
@@ -196,14 +187,6 @@ NTSTATUS dcerpc_lsa_lookup_names4(struct dcerpc_binding_handle *h,
                                  struct dom_sid **sids,
                                  enum lsa_SidType **types,
                                  NTSTATUS *result);
-NTSTATUS rpccli_lsa_lookup_names4(struct rpc_pipe_client *cli,
-                                 TALLOC_CTX *mem_ctx,
-                                 struct policy_handle *pol, int num_names,
-                                 const char **names,
-                                 const char ***dom_names,
-                                 int level,
-                                 struct dom_sid **sids,
-                                 enum lsa_SidType **types);
 
 bool fetch_domain_sid( char *domain, char *remote_machine, struct dom_sid *psid);