From f08721156627cfb599eaaad53a2b1761ef39787b Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Mon, 4 Jun 2012 11:02:03 +0100 Subject: 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. --- lib/curl_sasl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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); } /* -- cgit v1.2.3