diff options
author | Volker Lendecke <vl@samba.org> | 2014-02-04 10:18:48 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-03-05 16:33:21 +0100 |
commit | 13affa61093d34a8c1bb33f400968f0eb6f5d019 (patch) | |
tree | b692a7699048800191d90158d890e97eb05fe838 /source4/libcli | |
parent | 5f7b8e42cfeb3e6d2651f14db63b07b884c839d3 (diff) | |
download | samba-13affa61093d34a8c1bb33f400968f0eb6f5d019.tar.gz samba-13affa61093d34a8c1bb33f400968f0eb6f5d019.tar.xz samba-13affa61093d34a8c1bb33f400968f0eb6f5d019.zip |
auth4: Remove unused wbc_context
Signed-off-by: Volker Lendecke <vl@samba.org>
Change-Id: I07d9f7d8028429564d91da39f8d1e73cc13a646c
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/wbclient/wbclient.c | 29 | ||||
-rw-r--r-- | source4/libcli/wbclient/wbclient.h | 13 |
2 files changed, 1 insertions, 41 deletions
diff --git a/source4/libcli/wbclient/wbclient.c b/source4/libcli/wbclient/wbclient.c index 3f8003bbba..165333a6b5 100644 --- a/source4/libcli/wbclient/wbclient.c +++ b/source4/libcli/wbclient/wbclient.c @@ -28,35 +28,6 @@ #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, diff --git a/source4/libcli/wbclient/wbclient.h b/source4/libcli/wbclient/wbclient.h index ba15a7c06d..fc096cc7c7 100644 --- a/source4/libcli/wbclient/wbclient.h +++ b/source4/libcli/wbclient/wbclient.h @@ -18,18 +18,7 @@ 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); |