From b08b70faf873455ff14dcd633a7c9eb860ba4b28 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 10 Mar 2001 11:38:27 +0000 Subject: started support for unicode on the wire in smbd. Using a very similar method to what was used in the client I now have session setup and tconx working. Currently this is enabled with SMBD_USE_UNICODE environment variable. Once the code is complete this will become a smb.conf option. (This used to be commit 7684c1e67294266d018c6f0cab58f1a9d797174f) --- source3/lib/util.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 70513c068e..8ad2cfd713 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -353,6 +353,15 @@ void set_message_bcc(char *buf,int num_bytes) smb_setlen(buf,smb_size + num_words*2 + num_bytes - 4); } +/******************************************************************* + setup only the byte count for a smb message, using the end of the + message as a marker +********************************************************************/ +void set_message_end(void *outbuf,void *end_ptr) +{ + set_message_bcc(outbuf,PTR_DIFF(end_ptr,smb_buf(outbuf))); +} + /******************************************************************* reduce a file name, removing .. elements. ********************************************************************/ -- cgit