summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-03-13 14:44:53 +0100
committerStefan Metzmacher <metze@samba.org>2011-03-13 16:53:16 +0100
commit26351bf480066edae449b0c81c3f7735a8f39636 (patch)
tree65787a031f22244a3390119cb685a698a2db2d04
parentfa0f0c210763e0db5d4c6947840873998fd6b2eb (diff)
downloadsamba-26351bf480066edae449b0c81c3f7735a8f39636.tar.gz
samba-26351bf480066edae449b0c81c3f7735a8f39636.tar.bz2
samba-26351bf480066edae449b0c81c3f7735a8f39636.zip
s4:pyrpc: use dcerpc_binding_handle_raw_call() instead of dcerpc_request()
metze
-rw-r--r--source4/librpc/rpc/pyrpc.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index 400f61b882..2d6e1f6c61 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -146,6 +146,7 @@ static PyObject *py_iface_request(PyObject *self, PyObject *args, PyObject *kwar
PyObject *object = NULL;
struct GUID object_guid;
TALLOC_CTX *mem_ctx = talloc_new(NULL);
+ uint32_t out_flags = 0;
const char *kwnames[] = { "opnum", "data", "object", NULL };
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "is#|O:request",
@@ -164,9 +165,16 @@ static PyObject *py_iface_request(PyObject *self, PyObject *args, PyObject *kwar
return NULL;
}
- status = dcerpc_request(iface->pipe, object?&object_guid:NULL,
- opnum, mem_ctx, &data_in, &data_out);
-
+ status = dcerpc_binding_handle_raw_call(iface->binding_handle,
+ object?&object_guid:NULL,
+ opnum,
+ 0, /* in_flags */
+ data_in.data,
+ data_in.length,
+ mem_ctx,
+ &data_out.data,
+ &data_out.length,
+ &out_flags);
if (!NT_STATUS_IS_OK(status)) {
PyErr_SetDCERPCStatus(iface->pipe, status);
talloc_free(mem_ctx);