diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-25 11:31:14 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-13 11:54:15 +0100 |
commit | ebc18694a13b0860c222644372d76a2621d87384 (patch) | |
tree | 4c5937dbf491c3416f497d2ea3a8cc9822c76a2a /librpc/rpc/rpc_common.h | |
parent | 43800553bbe90933fea103f15a912619cd728c5b (diff) | |
download | samba-ebc18694a13b0860c222644372d76a2621d87384.tar.gz samba-ebc18694a13b0860c222644372d76a2621d87384.tar.xz samba-ebc18694a13b0860c222644372d76a2621d87384.zip |
librpc/rpc: add dcerpc_binding_[g|s]et_abstract_syntax()
For now this is just an alternate wrapper to
access binding->object.
Currently callers are reusing binding->object to store the
abstract syntax id instead of just the object uuid.
Some services on Windows use the same GUID for the
'object' and the 'abstract syntax', but they are completely
different things!
Most services use a null object guid, some reuse the
guid of the abstract syntax and use it like a 'class' object.
But the object guid is only really used by DCOM,
in order to call functions relative to an object instance,
which a dynamically allocated object guid.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'librpc/rpc/rpc_common.h')
-rw-r--r-- | librpc/rpc/rpc_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/librpc/rpc/rpc_common.h b/librpc/rpc/rpc_common.h index 428acfeea3f..fa75b520c32 100644 --- a/librpc/rpc/rpc_common.h +++ b/librpc/rpc/rpc_common.h @@ -146,6 +146,9 @@ void dcerpc_binding_get_auth_info(const struct dcerpc_binding *b, 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); +struct ndr_syntax_id dcerpc_binding_get_abstract_syntax(const struct dcerpc_binding *b); +NTSTATUS dcerpc_binding_set_abstract_syntax(struct dcerpc_binding *b, + const struct ndr_syntax_id *syntax); 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, |