ntlm: Corrected some parameter names and comments

This commit is contained in:
Steve Holme
2014-11-23 10:17:36 +00:00
parent 85070e46cc
commit 885119bf50

View File

@@ -173,10 +173,10 @@ static unsigned int readshort_le(unsigned char *buf)
* *
* Parameters: * Parameters:
* *
* data [in] - Pointer to the session handle * data [in] - The session handle.
* buffer [in] - The decoded base64 ntlm header of Type 2 * buffer [in] - The decoded type-2 message.
* size [in] - The input buffer size, atleast 32 bytes * size [in] - The input buffer size, at least 32 bytes.
* ntlm [in] - Pointer to ntlm data struct being used and modified. * ntlm [in/out] - The ntlm data struct being used and modified.
* *
* Returns CURLE_OK on success. * Returns CURLE_OK on success.
*/ */
@@ -239,14 +239,14 @@ CURLcode Curl_ntlm_decode_type2_target(struct SessionHandle *data,
* *
* Parameters: * Parameters:
* *
* data [in] - Pointer to session handle. * data [in] - The session handle.
* header [in] - Pointer to the input buffer. * type2msg [in] - The base64 encoded type-2 message.
* ntlm [in] - Pointer to ntlm data struct being used and modified. * ntlm [in/out] - The ntlm data struct being used and modified.
* *
* Returns CURLE_OK on success. * Returns CURLE_OK on success.
*/ */
CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data, CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data,
const char *header, const char *type2msg,
struct ntlmdata *ntlm) struct ntlmdata *ntlm)
{ {
static const char type2_marker[] = { 0x02, 0x00, 0x00, 0x00 }; static const char type2_marker[] = { 0x02, 0x00, 0x00, 0x00 };
@@ -276,8 +276,8 @@ CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data,
#endif #endif
/* Decode the base-64 encoded type-2 message */ /* Decode the base-64 encoded type-2 message */
if(strlen(header) && *header != '=') { if(strlen(type2msg) && *type2msg != '=') {
result = Curl_base64_decode(header, &type2, &type2_len); result = Curl_base64_decode(type2msg, &type2, &type2_len);
if(result) if(result)
return result; return result;
} }