mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
make the NTLM part numbers get increased instead of plainly assigned, as
this then makes redirection tests work (as the new test 89)
This commit is contained in:
parent
b2ddfb54a7
commit
20943292ff
@ -308,6 +308,8 @@ static int get_request(int sock, int *part, int *open)
|
|||||||
*part = test_no % 10000;
|
*part = test_no % 10000;
|
||||||
test_no /= 10000;
|
test_no /= 10000;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
*part = 0;
|
||||||
|
|
||||||
sprintf(logbuf, "Found test number %d in path", test_no);
|
sprintf(logbuf, "Found test number %d in path", test_no);
|
||||||
logmsg(logbuf);
|
logmsg(logbuf);
|
||||||
@ -316,18 +318,18 @@ static int get_request(int sock, int *part, int *open)
|
|||||||
/* If the client is passing this Digest-header, we set the part number
|
/* If the client is passing this Digest-header, we set the part number
|
||||||
to 1000. Not only to spice up the complexity of this, but to make
|
to 1000. Not only to spice up the complexity of this, but to make
|
||||||
Digest stuff to work in the test suite. */
|
Digest stuff to work in the test suite. */
|
||||||
logmsg("Received Digest request, sending back data 1000");
|
*part += 1000;
|
||||||
*part = 1000;
|
logmsg("Received Digest request, sending back data %d", *part);
|
||||||
}
|
}
|
||||||
else if(strstr(reqbuf, "Authorization: NTLM TlRMTVNTUAAD")) {
|
else if(strstr(reqbuf, "Authorization: NTLM TlRMTVNTUAAD")) {
|
||||||
/* If the client is passing this type-3 NTLM header */
|
/* If the client is passing this type-3 NTLM header */
|
||||||
logmsg("Received NTLM type-3, sending back data 1002");
|
*part += 1002;
|
||||||
*part = 1002;
|
logmsg("Received NTLM type-3, sending back data %d", *part);
|
||||||
}
|
}
|
||||||
else if(strstr(reqbuf, "Authorization: NTLM TlRMTVNTUAAB")) {
|
else if(strstr(reqbuf, "Authorization: NTLM TlRMTVNTUAAB")) {
|
||||||
/* If the client is passing this type-1 NTLM header */
|
/* If the client is passing this type-1 NTLM header */
|
||||||
logmsg("Received NTLM type-1, sending back data 1001");
|
*part += 1001;
|
||||||
*part = 1001;
|
logmsg("Received NTLM type-1, sending back data %d", *part);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strstr(reqbuf, "Connection: close"))
|
if(strstr(reqbuf, "Connection: close"))
|
||||||
|
Loading…
Reference in New Issue
Block a user