]> andersk Git - libfaim.git/commitdiff
- Thu May 31 23:00:50 PDT 2001
authormid <mid>
Fri, 1 Jun 2001 06:09:03 +0000 (06:09 +0000)
committermid <mid>
Fri, 1 Jun 2001 06:09:03 +0000 (06:09 +0000)
  - Store two hardcoded hashes in login.c.  Sigh.
  - Add prototype for aim_callhandler_noparam in aim_internal.h

CHANGES
include/aim_internal.h
src/login.c

diff --git a/CHANGES b/CHANGES
index 14bf8c3eb6944516a21542470baadb3a30934bcd..38b88d2adb0ce09992ce77659789b809fd8ab2ae 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
 
 No release numbers
 ------------------
+ - Thu May 31 23:00:50 PDT 2001
+  - Store two hardcoded hashes in login.c.  Sigh.
+  - Add prototype for aim_callhandler_noparam in aim_internal.h
+
  - Sat May 26 03:58:27 PDT 2001
   - Aha! This is why I could never get icons to work before.
   - Luckily the checksum is painfully simple.
index 8c5314db9a1eac7776342ae5dba1e4e13b3b74b3..a08a0dd794c93c2c75dba9bcd7dd9327190aa601 100644 (file)
@@ -61,6 +61,7 @@ faim_internal int aim_tx_printqueue(struct aim_session_t *);
 faim_internal int aim_tx_cleanqueue(struct aim_session_t *, struct aim_conn_t *);
 
 faim_internal aim_rxcallback_t aim_callhandler(struct aim_session_t *sess, struct aim_conn_t *conn, u_short family, u_short type);
+faim_internal int aim_callhandler_noparam(struct aim_session_t *sess, struct aim_conn_t *conn, u_short family, u_short type, struct command_rx_struct *ptr);
 
 /*
  * Generic SNAC structure.  Rarely if ever used.
index 987c66a7b787cb449517a0f747614ad8391b53a9..4bd026ee82602c7fe4197f69a229f051cf7bb431 100644 (file)
@@ -809,21 +809,36 @@ faim_export int aim_sendmemblock(struct aim_session_t *sess, struct aim_conn_t *
 
   } else {
 
-    if ((offset != 0x00001004) || (len != 0x00000004))
-      faimdprintf(sess, 0, "sendmemblock: WARNING: sending bad hash... you will be disconnected soon...\n");
-
     /* 
-     * This data is correct for AIM 3.5.1670, offset 0x03ffffff, 
-     * length 0x03ffffff (invalid).
+     * This data is correct for AIM 3.5.1670.
      *
-     * Using this block is as close to "legal" as you can get without
+     * Using these blocks is as close to "legal" as you can get without
      * using an AIM binary.
      *
      */
-    i += aimutil_put32(tx->data+i, 0x1df8cbae);
-    i += aimutil_put32(tx->data+i, 0x5523b839);
-    i += aimutil_put32(tx->data+i, 0xa0e10db3);
-    i += aimutil_put32(tx->data+i, 0xa46d3b39);
+    if ((offset == 0x03ffffff) && (len == 0x03ffffff)) {
+
+#if 1 /* with "AnrbnrAqhfzcd" */
+      i += aimutil_put32(tx->data+i, 0x44a95d26);
+      i += aimutil_put32(tx->data+i, 0xd2490423);
+      i += aimutil_put32(tx->data+i, 0x93b8821f);
+      i += aimutil_put32(tx->data+i, 0x51c54b01);
+#else /* no filename */
+      i += aimutil_put32(tx->data+i, 0x1df8cbae);
+      i += aimutil_put32(tx->data+i, 0x5523b839);
+      i += aimutil_put32(tx->data+i, 0xa0e10db3);
+      i += aimutil_put32(tx->data+i, 0xa46d3b39);
+#endif
+
+    } else if ((offset == 0x00001000) && (len == 0x00000000)) {
+
+      i += aimutil_put32(tx->data+i, 0xd41d8cd9);
+      i += aimutil_put32(tx->data+i, 0x8f00b204);
+      i += aimutil_put32(tx->data+i, 0xe9800998);
+      i += aimutil_put32(tx->data+i, 0xecf8427e);
+
+    } else
+      faimdprintf(sess, 0, "sendmemblock: WARNING: unknown hash request\n");
 
   }
 
This page took 0.053951 seconds and 5 git commands to generate.