search for: ucs2le_t

Displaying 2 results from an estimated 2 matches for "ucs2le_t".

2004 Oct 22
1
[PATCH] support OEM encoding in NTLM messages
...e <stdarg.h> #include <ctype.h> -const char * __ntlmssp_t_str(const void *message, struct ntlmssp_buffer *buffer) +const char * __ntlmssp_t_str(const void *message, struct ntlmssp_buffer *buffer, + int unicode) { - unsigned int len = read_le16(&buffer->length) / sizeof(ucs2le_t); - string_t *str = t_str_new(len / 2); + unsigned int len = read_le16(&buffer->length); const char *p = ((char *) message) + read_le32(&buffer->offset); + string_t *str; + + if (unicode) + len /= sizeof(ucs2le_t); + + str = t_str_new(len); while (len-- > 0) { str_append_...
2004 Jul 27
3
[PATCH 0/10] NTLM patchset submission
Hello all, as I promised some days ago here is NTLM (aka SPA, aka MSN) authentication support patchset. It contains common code in src/lib-ntlm directory, Samba compatible NTLM password scheme and authentication mechanism itself. All patches are against 1.0-test30. Please take a look. Best regards. -- Andrey Panin | Linux and UNIX system administrator pazke at donpac.ru | PGP key: