summaryrefslogtreecommitdiffstats
path: root/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-25 11:22:52 +0100
committerGünther Deschner <gd@samba.org>2014-02-13 11:54:15 +0100
commit5ba54305383783a0121425c602856a3432abdc2f (patch)
tree414859f0e97037abf3204dfd470f636f5502643d /librpc
parent6ce8d761dc60d5a84ca4f11ebb801c0be643ec10 (diff)
downloadsamba-5ba54305383783a0121425c602856a3432abdc2f.tar.gz
samba-5ba54305383783a0121425c602856a3432abdc2f.tar.xz
samba-5ba54305383783a0121425c602856a3432abdc2f.zip
librpc/rpc: add dcerpc_binding_[g|s]et_assoc_group_id()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/rpc/binding.c12
-rw-r--r--librpc/rpc/rpc_common.h3
2 files changed, 15 insertions, 0 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c
index 984f5ee8af8..132739cae78 100644
--- a/librpc/rpc/binding.c
+++ b/librpc/rpc/binding.c
@@ -530,6 +530,18 @@ _PUBLIC_ void dcerpc_binding_get_auth_info(const struct dcerpc_binding *b,
}
}
+_PUBLIC_ uint32_t dcerpc_binding_get_assoc_group_id(const struct dcerpc_binding *b)
+{
+ return b->assoc_group_id;
+}
+
+_PUBLIC_ NTSTATUS dcerpc_binding_set_assoc_group_id(struct dcerpc_binding *b,
+ uint32_t assoc_group_id)
+{
+ b->assoc_group_id = assoc_group_id;
+ return NT_STATUS_OK;
+}
+
_PUBLIC_ const char *dcerpc_binding_get_string_option(const struct dcerpc_binding *b,
const char *name)
{
diff --git a/librpc/rpc/rpc_common.h b/librpc/rpc/rpc_common.h
index 22bb26a910c..4dfc46a98db 100644
--- a/librpc/rpc/rpc_common.h
+++ b/librpc/rpc/rpc_common.h
@@ -142,6 +142,9 @@ NTSTATUS dcerpc_binding_set_transport(struct dcerpc_binding *b,
void dcerpc_binding_get_auth_info(const struct dcerpc_binding *b,
enum dcerpc_AuthType *_auth_type,
enum dcerpc_AuthLevel *_auth_level);
+uint32_t dcerpc_binding_get_assoc_group_id(const struct dcerpc_binding *b);
+NTSTATUS dcerpc_binding_set_assoc_group_id(struct dcerpc_binding *b,
+ uint32_t assoc_group_id);
const char *dcerpc_binding_get_string_option(const struct dcerpc_binding *b,
const char *name);
char *dcerpc_binding_copy_string_option(TALLOC_CTX *mem_ctx,