aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGökhan Şengün <gsengun@linux-5d7d.site>2012-03-30 23:19:38 +0300
committerSteve Holme <steve_holme@hotmail.com>2012-03-31 22:31:18 +0100
commit9bae9ddad91398c3e1f241523d35b823557898ef (patch)
treee9110dcc72578293a60cfdc78f9af13f8f673892
parent004d7251ab1abca0b3e1c6e632eef12e335f3aaa (diff)
smtp: Cody tidy up of md5 digest length
Replaced the hard coded md5 digest length (16) with a preprocessor constant
-rw-r--r--lib/smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 08fe86f24..45dec6a49 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -743,8 +743,8 @@ static CURLcode smtp_state_authcram_resp(struct connectdata *conn,
size_t len = 0;
char *rplyb64 = NULL;
HMAC_context *ctxt;
- unsigned char digest[16];
- char reply[MAX_CURL_USER_LENGTH + 32 /* 2 * size of MD5 digest */ + 1];
+ unsigned char digest[MD5_DIGEST_LEN];
+ char reply[MAX_CURL_USER_LENGTH + 2 * MD5_DIGEST_LEN + 1];
(void)instate; /* no use for this yet */