diff options
author | Günther Deschner <gd@samba.org> | 2009-04-01 22:37:09 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-07-13 14:44:09 +0200 |
commit | 716f9d6847a867744f7456eacf45abacb6eb1963 (patch) | |
tree | 962bdb20927f87d37bfab9e42321bdc176e1e275 /source4/librpc/rpc | |
parent | 229791382989c5005ec8e7c0a6d3b84745d37cbe (diff) | |
download | samba-716f9d6847a867744f7456eacf45abacb6eb1963.tar.gz samba-716f9d6847a867744f7456eacf45abacb6eb1963.tar.bz2 samba-716f9d6847a867744f7456eacf45abacb6eb1963.zip |
s4-dcerpc: move some util functions up to main librpc directory.
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 30 |
1 files changed, 0 insertions, 30 deletions
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 */ |