mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-27 07:59:41 +08:00
Copy to master from devel - ready for 0.8
This commit is contained in:
1 parent
db169c48c3
commit
5287278fa5
74 files changed
+5163
-4637
No files matched your search
+2
-3
@@ -4,7 +4,6 @@
|
||||
|
||||
please read License Agreement
|
||||
|
||||
$Id: ntlm.c,v 1.9 2008/01/08 21:46:38 vlad Exp $
|
||||
*/
|
||||
|
||||
#include "proxy.h"
|
||||
@@ -81,8 +80,8 @@ void genchallenge(struct clientparam *param, char * challenge, char *buf){
|
||||
chal->flags[3] = 0xA0;
|
||||
text2unicode(hostname, (char *)chal->data, 64);
|
||||
time((time_t *)challenge);
|
||||
memcpy(challenge+4, ¶m->sinc.sin_addr.s_addr, 4);
|
||||
challenge[1]^=param->sinc.sin_port;
|
||||
memcpy(challenge+4, SAADDR(¶m->sincr), 4);
|
||||
challenge[1]^=*SAPORT(¶m->sincr);
|
||||
for(i = 0; i < 8; i++) challenge[i] ^= myrand(challenge, 8);
|
||||
memcpy(chal->challenge, challenge, 8);
|
||||
en64((unsigned char *)tmpbuf, (unsigned char *)buf, (int)((unsigned char *)chal->data - (unsigned char *)chal) + len);
|
||||
|
||||
Reference in new issue
Block a user