From c9b0b89cc06531cb57f89b9f98d33d6e0c300957 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 17 Sep 2009 09:09:48 -0700 Subject: s4-rpc: added NDR64 support This adds support for the nd464 binding string option --- source4/librpc/rpc/dcerpc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source4/librpc/rpc/dcerpc.c') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 819edc8eaa..87d44384ce 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -182,6 +182,10 @@ static struct ndr_pull *ndr_pull_init_flags(struct dcerpc_connection *c, ndr->flags |= LIBNDR_FLAG_REF_ALLOC; } + if (c->flags & DCERPC_NDR64) { + ndr->flags |= LIBNDR_FLAG_NDR64; + } + return ndr; } @@ -368,6 +372,10 @@ static NTSTATUS ncacn_push_request_sign(struct dcerpc_connection *c, ndr->flags |= LIBNDR_FLAG_BIGENDIAN; } + if (c->flags & DCERPC_NDR64) { + ndr->flags |= LIBNDR_FLAG_NDR64; + } + if (pkt->pfc_flags & DCERPC_PFC_FLAG_OBJECT_UUID) { ndr->flags |= LIBNDR_FLAG_OBJECT_PRESENT; hdr_size += 16; @@ -1378,6 +1386,10 @@ struct rpc_request *dcerpc_ndr_request_send(struct dcerpc_pipe *p, push->flags |= LIBNDR_FLAG_BIGENDIAN; } + if (p->conn->flags & DCERPC_NDR64) { + push->flags |= LIBNDR_FLAG_NDR64; + } + /* push the structure into a blob */ ndr_err = call->ndr_push(push, NDR_IN, r); if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { -- cgit