From ed7bbc993d4fd080303611a64fefc2b47d786176 Mon Sep 17 00:00:00 2001 From: Anatoliy Atanasov Date: Sun, 26 Sep 2010 17:04:43 -0700 Subject: s4/irpc: Add function to add security token to the binding handle --- source4/lib/messaging/irpc.h | 2 ++ source4/lib/messaging/messaging.c | 10 ++++++++++ 2 files changed, 12 insertions(+) (limited to 'source4') diff --git a/source4/lib/messaging/irpc.h b/source4/lib/messaging/irpc.h index 3c7edcc4dd..52360218a5 100644 --- a/source4/lib/messaging/irpc.h +++ b/source4/lib/messaging/irpc.h @@ -71,6 +71,8 @@ struct dcerpc_binding_handle *irpc_binding_handle_by_name(TALLOC_CTX *mem_ctx, struct messaging_context *msg_ctx, const char *dest_task, const struct ndr_interface_table *table); +void irpc_binding_handle_add_security_token(struct dcerpc_binding_handle *h, + struct security_token *token); NTSTATUS irpc_add_name(struct messaging_context *msg_ctx, const char *name); struct server_id *irpc_servers_byname(struct messaging_context *msg_ctx, TALLOC_CTX *mem_ctx, const char *name); diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index 0fe089332d..c61bb7afca 100644 --- a/source4/lib/messaging/messaging.c +++ b/source4/lib/messaging/messaging.c @@ -1328,3 +1328,13 @@ struct dcerpc_binding_handle *irpc_binding_handle_by_name(TALLOC_CTX *mem_ctx, return h; } + +void irpc_binding_handle_add_security_token(struct dcerpc_binding_handle *h, + struct security_token *token) +{ + struct irpc_bh_state *hs = + dcerpc_binding_handle_data(h, + struct irpc_bh_state); + + hs->token = token; +} -- cgit