1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

smtp: Cody tidy up of md5 digest length

Replaced the hard coded md5 digest length (16) with a preprocessor
constant
This commit is contained in:
Gökhan Şengün 2012-03-30 23:19:38 +03:00 committed by Steve Holme
parent 004d7251ab
commit 9bae9ddad9

View File

@ -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 */