summaryrefslogtreecommitdiff
path: root/lib/http_ntlm.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2011-08-22 16:42:59 +0200
committerYang Tse <yangsita@gmail.com>2011-08-22 16:42:59 +0200
commit006b011cdf1a9469efb83bb38022b7ee8df784d7 (patch)
treec7c0cb0105b45a3ae76e2bf82f2a50f70fe57c06 /lib/http_ntlm.c
parenta659cc4794f97c12b46fa1286539274e3c37a1e0 (diff)
downloadcurl-006b011cdf1a9469efb83bb38022b7ee8df784d7.tar.gz
http NTLM: remaining bits from 0001-Moved-ntlm-[...]-curl_ntlm-mod_3.patch
* Added function comments: - Curl_ntlm_decode_type2_message - Curl_ntlm_create_type1_message - Curl_ntlm_create_type3_message * Modification of ntlm processing state to NTLMSTATE_TYPE2 is now done only when Curl_ntlm_decode_type2_message() has fully succeeded.
Diffstat (limited to 'lib/http_ntlm.c')
-rw-r--r--lib/http_ntlm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c
index ca81a947d..2c60e5275 100644
--- a/lib/http_ntlm.c
+++ b/lib/http_ntlm.c
@@ -105,11 +105,11 @@ CURLcode Curl_input_ntlm(struct connectdata *conn,
header++;
if(*header) {
- /* We got a type-2 message */
-
result = Curl_ntlm_decode_type2_message(conn->data, header, ntlm);
if(CURLE_OK != result)
return result;
+
+ ntlm->state = NTLMSTATE_TYPE2; /* We got a type-2 message */
}
else {
if(ntlm->state >= NTLMSTATE_TYPE1) {
@@ -117,7 +117,7 @@ CURLcode Curl_input_ntlm(struct connectdata *conn,
return CURLE_REMOTE_ACCESS_DENIED;
}
- ntlm->state = NTLMSTATE_TYPE1; /* we should sent away a type-1 */
+ ntlm->state = NTLMSTATE_TYPE1; /* We should send away a type-1 */
}
}