From 716f9d6847a867744f7456eacf45abacb6eb1963 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 1 Apr 2009 22:37:09 +0200 Subject: s4-dcerpc: move some util functions up to main librpc directory. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Simo Sorce Signed-off-by: Günther Deschner --- source4/librpc/rpc/dcerpc.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'source4/librpc/rpc') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 7265105525..59aa9c6a8b 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -137,36 +137,6 @@ static uint32_t next_call_id(struct dcerpc_connection *c) return c->call_id; } -/* we need to be able to get/set the fragment length without doing a full - decode */ -void dcerpc_set_frag_length(DATA_BLOB *blob, uint16_t v) -{ - if (CVAL(blob->data,DCERPC_DREP_OFFSET) & DCERPC_DREP_LE) { - SSVAL(blob->data, DCERPC_FRAG_LEN_OFFSET, v); - } else { - RSSVAL(blob->data, DCERPC_FRAG_LEN_OFFSET, v); - } -} - -uint16_t dcerpc_get_frag_length(const DATA_BLOB *blob) -{ - if (CVAL(blob->data,DCERPC_DREP_OFFSET) & DCERPC_DREP_LE) { - return SVAL(blob->data, DCERPC_FRAG_LEN_OFFSET); - } else { - return RSVAL(blob->data, DCERPC_FRAG_LEN_OFFSET); - } -} - -void dcerpc_set_auth_length(DATA_BLOB *blob, uint16_t v) -{ - if (CVAL(blob->data,DCERPC_DREP_OFFSET) & DCERPC_DREP_LE) { - SSVAL(blob->data, DCERPC_AUTH_LEN_OFFSET, v); - } else { - RSSVAL(blob->data, DCERPC_AUTH_LEN_OFFSET, v); - } -} - - /** setup for a ndr pull, also setting up any flags from the binding string */ -- cgit