summaryrefslogtreecommitdiff
path: root/source3/smbd/negprot.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-10 11:38:27 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-10 11:38:27 +0000
commitb08b70faf873455ff14dcd633a7c9eb860ba4b28 (patch)
tree5c57e51d8bcca6e645289cc8f7c0c94f6dc666b0 /source3/smbd/negprot.c
parent45c2ee3ff2d01fdd0a2db9fa90457cff4663c43d (diff)
downloadsamba-b08b70faf873455ff14dcd633a7c9eb860ba4b28.tar.gz
samba-b08b70faf873455ff14dcd633a7c9eb860ba4b28.tar.bz2
samba-b08b70faf873455ff14dcd633a7c9eb860ba4b28.zip
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)
Diffstat (limited to 'source3/smbd/negprot.c')
-rw-r--r--source3/smbd/negprot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index 74d8eb3983..c2026f46f9 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -201,6 +201,12 @@ static int reply_nt1(char *outbuf)
capabilities |= CAP_RAW_MODE;
}
+
+ /* until the unicode conversion is complete have it disabled by default */
+ if (getenv("SMBD_USE_UNICODE")) {
+ capabilities |= CAP_UNICODE;
+ }
+
#ifdef WITH_MSDFS
if(lp_host_msdfs())
capabilities |= CAP_DFS;