On Tue, Jun 26, 2012 at 01:58:11PM +0000, Alexander Pettersson wrote: > Tanks for a great software. I "hope" I have found a bug and not just wasting > your time... > I cannot get s/key to work. Everything looks nice but I think it calculates > the MD5 hash wrong... > When I use normal FTP and opiekey I get another string "TAP JIM JUDY BLUE > JAY TEN" and when I use that string it works...
Thanks for the report! Either use this patch, or wait for the next lftp version. -- Alexander.
diff --git a/src/ftp-opie.c b/src/ftp-opie.c index 5860cd2..62d0040 100644 --- a/src/ftp-opie.c +++ b/src/ftp-opie.c @@ -2153,7 +2153,7 @@ calculate_skey_response (int sequence, const char *seed, const char *pass) static char buf[33]; struct md5_ctx ctx; - unsigned long results[4]; /* #### this looks 32-bit-minded */ + uint32_t results[4]; char *feed = (char *) alloca (strlen (seed) + strlen (pass) + 1); strcpy (feed, seed);
_______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp