diff options
author | Denys Vlasenko | 2010-10-16 20:45:27 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-10-16 20:45:27 +0200 |
commit | c0683acce88efc1fe15d9a4332428b5a9fdc6c2e (patch) | |
tree | cb0f5bb99b5e5f4490be175238d3a877115bc468 /mailutils/popmaildir.c | |
parent | 1a5e11c874a1f53c5205140a9d675b7e6404bbc9 (diff) | |
download | busybox-c0683acce88efc1fe15d9a4332428b5a9fdc6c2e.zip busybox-c0683acce88efc1fe15d9a4332428b5a9fdc6c2e.tar.gz |
*: pass md5/shaN context pointer as 1st arg, not last
function old new delta
md5_hash_block 458 459 +1
filter_rename_config 252 250 -2
md5_crypt 591 587 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mailutils/popmaildir.c')
-rw-r--r-- | mailutils/popmaildir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mailutils/popmaildir.c b/mailutils/popmaildir.c index f37db03..77ec711 100644 --- a/mailutils/popmaildir.c +++ b/mailutils/popmaildir.c @@ -109,9 +109,9 @@ int popmaildir_main(int argc UNUSED_PARAM, char **argv) s[1] = '\0'; // get md5 sum of "<stamp>password" string md5_begin(&md5.ctx); - md5_hash(buf, strlen(buf), &md5.ctx); - md5_hash(G.pass, strlen(G.pass), &md5.ctx); - md5_end(res, &md5.ctx); + md5_hash(&md5.ctx, buf, strlen(buf)); + md5_hash(&md5.ctx, G.pass, strlen(G.pass)); + md5_end(&md5.ctx, res); *bin2hex(md5.hex, (char*)res, 16) = '\0'; // APOP s = xasprintf("%s %s", G.user, md5.hex); |