X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=mailutils%2Fpopmaildir.c;h=77ec71129a8e96088571384c7fb12fb78f480a16;hb=0bb35e19a73ecbb9694172300a5530dbb8156bb4;hp=ab9ddbaed7c5a5b4b2512c01de19174f5a78d1fb;hpb=5e34ff29bcc870936ab18172f438a34d042d4e03;p=oweals%2Fbusybox.git diff --git a/mailutils/popmaildir.c b/mailutils/popmaildir.c index ab9ddbaed..77ec71129 100644 --- a/mailutils/popmaildir.c +++ b/mailutils/popmaildir.c @@ -7,7 +7,7 @@ * * Copyright (C) 2008 by Vladimir Dronnikov * - * Licensed under GPLv2, see file LICENSE in this tarball for details. + * Licensed under GPLv2, see file LICENSE in this source tree. */ #include "libbb.h" #include "mail.h" @@ -109,9 +109,9 @@ int popmaildir_main(int argc UNUSED_PARAM, char **argv) s[1] = '\0'; // get md5 sum of "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);