mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
NTLMv2 fixes by Giulio Galante <giulio.galante@fastwebnet.it>
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@250 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
d091382f26
commit
9bcf2abe8d
3 changed files with 5 additions and 5 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,7 +1,8 @@
|
|||
Changes to proxytunnel after 1.9.0 -- Unreleased
|
||||
Changes to proxytunnel after 1.9.1 -- Tue Mar 22 16:02:40 CET 2011
|
||||
|
||||
- Switch to HTTP/1.1 commands, so we can tunnel over JoikuSpot's which
|
||||
don't understand http/1.0 command (Mark Janssen)
|
||||
- NTLMv2 fixes by Giulio Galante <giulio.galante@fastwebnet.it>
|
||||
|
||||
Changes to proxytunnel version 1.9.0 -- Sat Feb 23 22:03:10 CET 2008
|
||||
|
||||
|
|
|
|||
6
ntlm.c
6
ntlm.c
|
|
@ -405,7 +405,7 @@ void build_ntlm2_response() {
|
|||
b = (blob *)pblob;
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
b->challenge[i] = challenge[i];
|
||||
b->digest[8 + i] = challenge[i];
|
||||
|
||||
b->signature = 0x00000101;
|
||||
|
||||
|
|
@ -434,7 +434,7 @@ void build_ntlm2_response() {
|
|||
|
||||
memcpy(&b->data_start, t_info, t_info_len);
|
||||
|
||||
hmac_md5(&pblob[16], bloblen - 16, userdomdigest, 16, responsedigest);
|
||||
hmac_md5(&pblob[8], bloblen - 8, userdomdigest, 16, responsedigest);
|
||||
|
||||
for(i = 0; i < 16; i++)
|
||||
b->digest[i] = responsedigest[i];
|
||||
|
|
@ -449,7 +449,7 @@ void build_ntlm2_response() {
|
|||
// LM2 response generation
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
lm2data[i] = b->challenge[i];
|
||||
lm2data[i] = challenge[i];
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
lm2data[8 + i] = b->client_challenge[i];
|
||||
|
|
|
|||
1
ntlm.h
1
ntlm.h
|
|
@ -96,7 +96,6 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
unsigned char digest[16];
|
||||
unsigned char challenge[8];
|
||||
unsigned long signature;
|
||||
unsigned long reserved;
|
||||
unsigned long long timestamp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue