aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2012-06-04 11:02:03 +0100
committerSteve Holme <steve_holme@hotmail.com>2012-06-04 11:02:03 +0100
commitf08721156627cfb599eaaad53a2b1761ef39787b (patch)
tree4dd2da9a7edbf6950e863541b53d96cb84e7fb9e
parent665e16899ce6629097ce884722d9ef17b6708354 (diff)
sasl: Small code tidy up
Reworked variable names in Curl_sasl_create_cram_md5_message() to match those in Curl_sasl_create_digest_md5_message() as they are more appropriate.
-rw-r--r--lib/curl_sasl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index 17529a627..18c2782bc 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -188,7 +188,7 @@ CURLcode Curl_sasl_create_cram_md5_message(struct SessionHandle *data,
size_t chlglen = 0;
HMAC_context *ctxt;
unsigned char digest[MD5_DIGEST_LEN];
- char reply[MAX_CURL_USER_LENGTH + 2 * MD5_DIGEST_LEN + 1];
+ char response[MAX_CURL_USER_LENGTH + 2 * MD5_DIGEST_LEN + 1];
/* Decode the challenge if necessary */
if(chlg64len && *chlg64 != '=') {
@@ -217,15 +217,15 @@ CURLcode Curl_sasl_create_cram_md5_message(struct SessionHandle *data,
/* Finalise the digest */
Curl_HMAC_final(ctxt, digest);
- /* Prepare the reply */
- snprintf(reply, sizeof(reply),
+ /* Prepare the response */
+ snprintf(response, sizeof(response),
"%s %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
userp, digest[0], digest[1], digest[2], digest[3], digest[4],
digest[5], digest[6], digest[7], digest[8], digest[9], digest[10],
digest[11], digest[12], digest[13], digest[14], digest[15]);
/* Base64 encode the reply */
- return Curl_base64_encode(data, reply, 0, outptr, outlen);
+ return Curl_base64_encode(data, response, 0, outptr, outlen);
}
/*