Displaying 4 results from an estimated 4 matches for "read_le16".
2004 Nov 10
0
[PATCH] NTLM update and crashfix
...-22 17:32:27.000000000 +0400
+++ dovecot-1.0-test52/src/lib-ntlm/ntlm-message.c 2004-11-10 16:28:33.000000000 +0300
@@ -180,13 +180,19 @@ static int ntlmssp_check_buffer(const st
size_t data_size, const char **error)
{
uint32_t offset = read_le32(&buffer->offset);
+ uint16_t length = read_le16(&buffer->length);
+ uint16_t space = read_le16(&buffer->space);
+
+ /* Empty buffer is ok */
+ if (!length && !space)
+ return 1;
if (offset >= data_size) {
*error = "buffer offset out of bounds";
return 0;
}
- if (offset + read_le16(&buffer->...
2004 Oct 29
1
[PATCH] yet another NTLM update
...-08 21:35:31.000000000 +0400
+++ dovecot-1.0-test51/src/lib-ntlm/ntlm-message.c 2004-10-29 15:49:34.000000000 +0400
@@ -164,13 +164,19 @@ static int ntlmssp_check_buffer(const st
size_t data_size, const char **error)
{
uint32_t offset = read_le32(&buffer->offset);
+ uint16_t length = read_le16(&buffer->length);
+ uint16_t space = read_le16(&buffer->space);
+
+ /* Empty buffer is ok */
+ if (!length && !space)
+ return 1;
if (offset >= data_size) {
*error = "buffer offset out of bounds";
return 0;
}
- if (offset + read_le16(&buffer->...
2004 Oct 22
1
[PATCH] support OEM encoding in NTLM messages
...illa/src/lib-ntlm/ntlm.h dovecot-1.0-test49/src/lib-ntlm/ntlm.h
--- dovecot-1.0-test49.vanilla/src/lib-ntlm/ntlm.h 2004-07-30 07:16:22.000000000 +0400
+++ dovecot-1.0-test49/src/lib-ntlm/ntlm.h 2004-10-21 22:17:03.000000000 +0400
@@ -26,10 +26,11 @@ static inline unsigned int __ntlmssp_buf
return read_le16(&buffer->length);
}
-#define ntlmssp_t_str(message, buffer) \
- __ntlmssp_t_str((message), &message->buffer)
+#define ntlmssp_t_str(message, buffer, unicode) \
+ __ntlmssp_t_str((message), &(message)->buffer, (unicode))
const char * __ntlmssp_t_str(const void *message,
-...
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: