summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_prs.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-04 23:49:43 +0100
committerGünther Deschner <gd@samba.org>2009-02-05 00:48:50 +0100
commite28a806a6b65320e5727a4237da57f879c509d26 (patch)
tree82214220ca7fe23ae2202a1de5377e26d2ae0b29 /source3/rpc_parse/parse_prs.c
parent542251f7ae56ea7ac54ff8807d5f04b3598b96f2 (diff)
downloadsamba-e28a806a6b65320e5727a4237da57f879c509d26.tar.gz
samba-e28a806a6b65320e5727a4237da57f879c509d26.tar.bz2
samba-e28a806a6b65320e5727a4237da57f879c509d26.zip
s3-parsing: remove a lot of unused structures and their hand marshalling.
Guenther
Diffstat (limited to 'source3/rpc_parse/parse_prs.c')
-rw-r--r--source3/rpc_parse/parse_prs.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c
index 1332a8311a..e8103ad866 100644
--- a/source3/rpc_parse/parse_prs.c
+++ b/source3/rpc_parse/parse_prs.c
@@ -1053,56 +1053,6 @@ bool prs_buffer5(bool charmode, const char *name, prs_struct *ps, int depth, BUF
}
/******************************************************************
- Stream a string, length/buffer specified separately,
- in uint8 chars.
- ********************************************************************/
-
-bool prs_string2(bool charmode, const char *name, prs_struct *ps, int depth, STRING2 *str)
-{
- unsigned int i;
- char *q = prs_mem_get(ps, str->str_str_len);
- if (q == NULL)
- return False;
-
- if (UNMARSHALLING(ps)) {
- if (str->str_str_len > str->str_max_len) {
- return False;
- }
- if (str->str_max_len) {
- str->buffer = PRS_ALLOC_MEM(ps,unsigned char, str->str_max_len);
- if (str->buffer == NULL)
- return False;
- } else {
- str->buffer = NULL;
- /* Return early to ensure Coverity isn't confused. */
- DEBUGADD(5,("%s%04x %s: \n", tab_depth(5,depth), ps->data_offset, name));
- return True;
- }
- }
-
- if (UNMARSHALLING(ps)) {
- for (i = 0; i < str->str_str_len; i++)
- str->buffer[i] = CVAL(q,i);
- } else {
- for (i = 0; i < str->str_str_len; i++)
- SCVAL(q, i, str->buffer[i]);
- }
-
- DEBUGADD(5,("%s%04x %s: ", tab_depth(5,depth), ps->data_offset, name));
- if (charmode)
- print_asc(5, (unsigned char*)str->buffer, str->str_str_len);
- else {
- for (i = 0; i < str->str_str_len; i++)
- DEBUG(5,("%02x ", str->buffer[i]));
- }
- DEBUGADD(5,("\n"));
-
- ps->data_offset += str->str_str_len;
-
- return True;
-}
-
-/******************************************************************
Stream a unicode string, length/buffer specified separately,
in uint16 chars. The unicode string is already in little-endian format.
********************************************************************/