librpc/rpc: add dcerpc_binding_[g|s]et_abstract_syntax()
authorStefan Metzmacher <metze@samba.org>
Sat, 25 Jan 2014 10:31:14 +0000 (11:31 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Feb 2014 10:54:15 +0000 (11:54 +0100)
commitebc18694a13b0860c222644372d76a2621d87384
tree4c5937dbf491c3416f497d2ea3a8cc9822c76a2a
parent43800553bbe90933fea103f15a912619cd728c5b
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>
librpc/rpc/binding.c
librpc/rpc/rpc_common.h