auth4: Remove unused wbc_context
authorVolker Lendecke <vl@samba.org>
Tue, 4 Feb 2014 10:18:48 +0000 (10:18 +0000)
committerVolker Lendecke <vl@samba.org>
Mon, 10 Feb 2014 09:57:42 +0000 (10:57 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Kai Blin <kai@samba.org>
source4/auth/auth.h
source4/libcli/wbclient/wbclient.c
source4/libcli/wbclient/wbclient.h

index 503bae9d4a7bf90a8a909bda514837fc95b67e9a..129f58d31c4d38ec8578db27f827ddcc8c04ef29 100644 (file)
@@ -97,7 +97,6 @@ struct auth_critical_sizes {
                           const struct auth_usersupplied_info *user_info_in,
                           const struct auth_usersupplied_info **user_info_encrypted);
 
-struct wbc_context;
 #include "auth/session.h"
 #include "auth/unix_token_proto.h"
 #include "auth/system_session_proto.h"
index 3f8003bbbaf7c0481e08148a948fcf938dc177dc..165333a6b587494fa0ecb8ae207af8a3efdf3a7b 100644 (file)
 #include "libcli/util/error.h"
 #include "libcli/security/dom_sid.h"
 
-/**
- * Initialize the wbclient context, talloc_free() when done.
- *
- * \param mem_ctx talloc context to allocate memory from
- * \param msg_ctx message context to use
- * \param
- */
-struct wbc_context *wbc_init(TALLOC_CTX *mem_ctx,
-                            struct imessaging_context *msg_ctx,
-                            struct tevent_context *event_ctx)
-{
-       struct wbc_context *ctx;
-
-       ctx = talloc(mem_ctx, struct wbc_context);
-       if (ctx == NULL) return NULL;
-
-       ctx->event_ctx = event_ctx;
-
-       ctx->irpc_handle = irpc_binding_handle_by_name(ctx, msg_ctx,
-                                                      "winbind_server",
-                                                      &ndr_table_winbind);
-       if (ctx->irpc_handle == NULL) {
-               talloc_free(ctx);
-               return NULL;
-       }
-
-       return ctx;
-}
-
 static int wb_simple_trans(struct tevent_context *ev, int fd,
                           struct winbindd_request *wb_req,
                           TALLOC_CTX *mem_ctx,
index ba15a7c06dfe6b77379f78c172315c11527e937c..fc096cc7c764f33ea47e0dd2404d0d43d364c25b 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
-#include "lib/messaging/irpc.h"
-#include "libcli/composite/composite.h"
-#include "librpc/gen_ndr/ndr_winbind_c.h"
-
-struct wbc_context {
-       struct tevent_context *event_ctx;
-       struct dcerpc_binding_handle *irpc_handle;
-};
-
-struct wbc_context *wbc_init(TALLOC_CTX *mem_ctx,
-                            struct imessaging_context *msg_ctx,
-                            struct tevent_context *event_ctx);
+#include "librpc/gen_ndr/idmap.h"
 
 NTSTATUS wbc_sids_to_xids(struct tevent_context *ev, struct id_map *ids,
                          uint32_t count);