gaim/gaim

Back to XOR.
oldstatus
2005-04-02, Sean Egan
589958e0b0e2
Parents 66d138574a08
Children bb83e1171a60
Back to XOR.
--- a/src/protocols/oscar/auth.c Sat Apr 02 21:04:36 2005 -0500
+++ b/src/protocols/oscar/auth.c Sat Apr 02 21:12:09 2005 -0500
@@ -219,7 +219,7 @@
return -EINVAL;
/* If we're signing on an ICQ account then use the older, XOR login method */
- if (0 && isdigit(sn[0]))
+ if (isdigit(sn[0]))
return goddamnicq2(sess, conn, sn, password, ci);
if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 1152)))
@@ -230,19 +230,7 @@
aim_tlvlist_add_raw(&tl, 0x0001, strlen(sn), sn);
- /* Truncated ICQ passwords, if necessary */
- if (isdigit(sn[0]) && (strlen(password) > MAXICQPASSLEN))
- {
- char truncated[MAXICQPASSLEN + 1];
- strncpy(truncated, password, MAXICQPASSLEN);
- truncated[MAXICQPASSLEN] = 0;
- aim_encode_password_md5(truncated, key, digest);
- }
- else
- {
- aim_encode_password_md5(password, key, digest);
- }
-
+ aim_encode_password_md5(password, key, digest);
aim_tlvlist_add_raw(&tl, 0x0025, 16, digest);
#ifndef USE_OLD_MD5
@@ -475,7 +463,7 @@
if (!sess || !conn || !sn)
return -EINVAL;
- if (0 && isdigit(sn[0]))
+ if (isdigit(sn[0]))
return goddamnicq(sess, conn, sn);
aim_sendflapver(sess, conn);