From: <sh...@us...> - 2004-06-30 00:17:29
|
Update of /cvsroot/sim-icq/sim/plugins/yahoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24636/plugins/yahoo Modified Files: crypt.cpp Log Message: Fix compile Index: crypt.cpp =================================================================== RCS file: /cvsroot/sim-icq/sim/plugins/yahoo/crypt.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** crypt.cpp 30 Jun 2004 00:01:40 -0000 1.3 --- crypt.cpp 30 Jun 2004 00:17:20 -0000 1.4 *************** *** 38,60 **** #define MAX(A, B) ((A > B) ? A : B) - #include <windows.h> - - void dump(const char *name, const char *data, unsigned len) - { - OutputDebugStringA(name); - OutputDebugStringA(": "); - for (unsigned i = 0; i < len; i++){ - char b[5]; - sprintf(b, "%02X ", data[i] & 0xFF); - OutputDebugStringA(b); - } - OutputDebugStringA("\n"); - } - char *yahoo_crypt(const char *key, const char *salt) { - dump("Key", key, strlen(key)); - dump("Salt", salt, strlen(salt)); - static char *buffer = NULL; static int buflen = 0; --- 38,43 ---- *************** *** 90,95 **** ct_alt = md5(ct_alt.c_str()); - dump("alt", ct_alt.c_str(), ct_alt.length()); - /* Add for any character in the key one byte of the alternate sum. */ for (cnt = key_len; cnt > 16; cnt -= 16) --- 73,76 ---- |