s4/irpc: Add function to add security token to the binding handle
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Mon, 27 Sep 2010 00:04:43 +0000 (17:04 -0700)
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Mon, 27 Sep 2010 16:59:21 +0000 (09:59 -0700)
source4/lib/messaging/irpc.h
source4/lib/messaging/messaging.c

index 3c7edcc4dd48fefb4728d5665092e255e2265f25..52360218a595fa86e3cea907d89e7053aabf0c39 100644 (file)
@@ -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);
index 0fe089332d2303d1c24339a26470e89ae24cdf0c..c61bb7afca11f57ad24e034da93dad70cacd38c9 100644 (file)
@@ -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;
+}