aboutsummaryrefslogtreecommitdiff
path: root/mailutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-10-16 20:45:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-16 20:45:27 +0200
commitc0683acce88efc1fe15d9a4332428b5a9fdc6c2e (patch)
treecb0f5bb99b5e5f4490be175238d3a877115bc468 /mailutils
parent1a5e11c874a1f53c5205140a9d675b7e6404bbc9 (diff)
downloadbusybox-w32-c0683acce88efc1fe15d9a4332428b5a9fdc6c2e.tar.gz
busybox-w32-c0683acce88efc1fe15d9a4332428b5a9fdc6c2e.tar.bz2
busybox-w32-c0683acce88efc1fe15d9a4332428b5a9fdc6c2e.zip
*: 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')
-rw-r--r--mailutils/popmaildir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mailutils/popmaildir.c b/mailutils/popmaildir.c
index f37db03d5..77ec71129 100644
--- a/mailutils/popmaildir.c
+++ b/mailutils/popmaildir.c
@@ -109,9 +109,9 @@ int popmaildir_main(int argc UNUSED_PARAM, char **argv)
109 s[1] = '\0'; 109 s[1] = '\0';
110 // get md5 sum of "<stamp>password" string 110 // get md5 sum of "<stamp>password" string
111 md5_begin(&md5.ctx); 111 md5_begin(&md5.ctx);
112 md5_hash(buf, strlen(buf), &md5.ctx); 112 md5_hash(&md5.ctx, buf, strlen(buf));
113 md5_hash(G.pass, strlen(G.pass), &md5.ctx); 113 md5_hash(&md5.ctx, G.pass, strlen(G.pass));
114 md5_end(res, &md5.ctx); 114 md5_end(&md5.ctx, res);
115 *bin2hex(md5.hex, (char*)res, 16) = '\0'; 115 *bin2hex(md5.hex, (char*)res, 16) = '\0';
116 // APOP 116 // APOP
117 s = xasprintf("%s %s", G.user, md5.hex); 117 s = xasprintf("%s %s", G.user, md5.hex);