summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc/dcerpc.c')
-rw-r--r--source4/librpc/rpc/dcerpc.c30
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
*/