Re: yahoo broke things again...
"A. Craig West" <acwest-ayttm-users-Sx7XBY7IYIIeIZ0/[email protected]>
| Newsgroups | gmane.network.instant-messaging.ayttm.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 25 Jun 2004, A. Craig West wrote: > I just committed a fix for this in libyahoo2's CVS, I'll see what I can do > about getting it in over here, too. Here is a patch that should fix the authentication. At some point real soon now I need to get the yahoo plugin caught up to the upstream version... -- Craig West Ph: (416) 666-1645 | It's not a bug, acwest-sig-Sx7XBY7IYIIeIZ0/[email protected] | It's a feature...
ayttm.patch
(text/plain, 1.5 KB)
Index: modules/yahoo2/libyahoo2/libyahoo2.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/libyahoo2/libyahoo2.c,v
retrieving revision 1.41
diff -u -r1.41 libyahoo2.c
--- modules/yahoo2/libyahoo2/libyahoo2.c 3 Mar 2004 05:45:52 -0000 1.41
+++ modules/yahoo2/libyahoo2/libyahoo2.c 26 Jun 2004 00:35:21 -0000
@@ -1894,6 +1894,8 @@
* challenge. */
shaUpdate(&ctx1, pass_hash_xor1, 64);
+ if (j >= 3)
+ ctx1.sizeLo = 0x1ff;
shaUpdate(&ctx1, magic_key_char, 4);
shaFinal(&ctx1, digest1);
@@ -1983,6 +1985,8 @@
* challenge. */
shaUpdate(&ctx1, crypt_hash_xor1, 64);
+ if (j >= 3)
+ ctx1.sizeLo = 0x1ff;
shaUpdate(&ctx1, magic_key_char, 4);
shaFinal(&ctx1, digest1);
Index: modules/yahoo2/libyahoo2/yahoo_fn.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/libyahoo2/yahoo_fn.c,v
retrieving revision 1.5
diff -u -r1.5 yahoo_fn.c
--- modules/yahoo2/libyahoo2/yahoo_fn.c 29 Jan 2004 05:21:43 -0000 1.5
+++ modules/yahoo2/libyahoo2/yahoo_fn.c 26 Jun 2004 00:35:23 -0000
@@ -4388,7 +4388,7 @@
{ XOR, {(unsigned char *) 0x77D64B90}, 0 },
{ BITFLD, {table_103}, 0 },
{ LOOKUP, {table_104}, 0 },
- { MULADD, {(unsigned char *) 0x7D1428CB}, 0x89F6853D },
+ { MULADD, {(unsigned char *) 0x7D1428CB}, 0x3D },
{ XOR, {(unsigned char *) 0x6F872C49}, 0 },
{ XOR, {(unsigned char *) 0x2E484655}, 0 },
{ MULADD, {(unsigned char *) 0x1E3349F7}, 0x41F5 },