summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-09-26 17:04:43 -0700
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-09-27 09:59:21 -0700
commited7bbc993d4fd080303611a64fefc2b47d786176 (patch)
treedec79098c35c3991653c26f6cc9c832f77378be9 /source4
parentd9d4ded71a9214917d9999da0a16aa82eeac0afb (diff)
downloadsamba-ed7bbc993d4fd080303611a64fefc2b47d786176.tar.gz
samba-ed7bbc993d4fd080303611a64fefc2b47d786176.tar.bz2
samba-ed7bbc993d4fd080303611a64fefc2b47d786176.zip
s4/irpc: Add function to add security token to the binding handle
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/messaging/irpc.h2
-rw-r--r--source4/lib/messaging/messaging.c10
2 files changed, 12 insertions, 0 deletions
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;
+}