mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.
This commit is contained in:
@ -557,6 +557,22 @@ BOOL smb_io_buffer3(char *desc, BUFFER3 *buf3, prs_struct *ps, int depth)
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
creates a BUFFER4 structure.
|
||||
********************************************************************/
|
||||
BOOL make_buffer4_str(BUFFER4 *str, const char *buf, int len)
|
||||
{
|
||||
ZERO_STRUCTP(str);
|
||||
|
||||
/* set up string lengths. */
|
||||
str->buf_len = len * 2;
|
||||
|
||||
/* store the string (little endian buffer) */
|
||||
ascii_to_unibuf((char*)str->buffer, buf, str->buf_len);
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a BUFFER4 structure.
|
||||
********************************************************************/
|
||||
|
Reference in New Issue
Block a user