search for: smb_ucs2_t

Displaying 5 results from an estimated 5 matches for "smb_ucs2_t".

2001 Dec 12
1
MacOS X Server samba diffs
...r, int outCStrBufferLength, unsigned long scriptEncoding, unsigned long flags); -#endif - /* * Function pointers that get overridden when multi-byte code pages * are loaded. @@ -388,9 +382,7 @@ /* convesion buffer */ static char cvtbuf[2*sizeof(pstring)]; -#ifdef USES_CFSTRING -static smb_ucs2_t ucs2Str[1024]; -#endif + /******************************************************************* EUC <-> SJIS ********************************************************************/ @@ -1362,36 +1354,8 @@ ********************************************************************/ static char...
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
...iv/source/lib/util_unistr.c --- samba-2.0.7/source/lib/util_unistr.c Wed Apr 26 02:06:53 2000 +++ samba-2.0.7viv/source/lib/util_unistr.c Wed Mar 21 11:26:02 2001 @@ -20,6 +20,7 @@ */ #include "includes.h" +#include <iconv.h> extern int DEBUGLEVEL; @@ -31,8 +32,9 @@ static smb_ucs2_t *doscp_to_ucs2; static uint16 *ucs2_to_doscp; -static smb_ucs2_t *unixcp_to_ucs2; -static uint16 *ucs2_to_unixcp; +//static smb_ucs2_t *unixcp_to_ucs2; +//static uint16 *ucs2_to_unixcp; +iconv_t unix2ucs=(iconv_t)-1, ucs2unix=(iconv_t)-1; #ifndef MAXUNI #define MAXUNI 1024 @@ -566,7 +568,14...
2002 Nov 20
3
The Samba Team announces Samba 2.2.7 - security release
...8) len = 128; /* Password must be converted to NT unicode - null terminated. */ - - dos_struni2((char *)wpwd, (const char *)passwd, 256); + dos_struni2((char *)wpwd, (const char *)passwd, len); /* Calculate length in bytes */ len = strlen_w((const smb_ucs2_t *)wpwd) * sizeof(int16); - -------------------------------cut here--------------------------------- Changes since 2.2.6 - -------------------- See the cvs log for SAMBA_2_2 for more details 1) ensure we send the notify message in the same way it is expected to be received by srv_spoolss_re...
2002 Nov 20
3
The Samba Team announces Samba 2.2.7 - security release
...8) len = 128; /* Password must be converted to NT unicode - null terminated. */ - - dos_struni2((char *)wpwd, (const char *)passwd, 256); + dos_struni2((char *)wpwd, (const char *)passwd, len); /* Calculate length in bytes */ len = strlen_w((const smb_ucs2_t *)wpwd) * sizeof(int16); - -------------------------------cut here--------------------------------- Changes since 2.2.6 - -------------------- See the cvs log for SAMBA_2_2 for more details 1) ensure we send the notify message in the same way it is expected to be received by srv_spoolss_re...
2002 Dec 06
0
smbpasswd has password length problem with the 2.2.7 security patch
...128) len = 128; /* Password must be converted to NT unicode - null terminated. */ - dos_struni2((char *)wpwd, (const char *)passwd, 256); + dos_struni2((char *)wpwd, (const char *)passwd, len); /* Calculate length in bytes */ len = strlen_w((const smb_ucs2_t *)wpwd) * sizeof(int16); - -------------------------------cut here---------------------------------