Channel/Private Message unify updates.
authorPekka Riikonen <priikone@silcnet.org>
Fri, 22 Nov 2002 20:07:41 +0000 (20:07 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 22 Nov 2002 20:07:41 +0000 (20:07 +0000)
CHANGES
TODO
apps/silcd/packet_send.c
apps/silcd/server.c
configure.in.pre

diff --git a/CHANGES b/CHANGES
index 739dd96f095067cf5a912339f1d7042b9eb52559..69d1d07fcf2b568670089970ab3f27588e0b79f4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,36 @@
+Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
+
+       * Added support to backup router protocol for backup to tell
+         normal server that it cannot use the backup router as primary
+         because the primary isn't really down.  Updated protocol
+         specs.
+
+       * Added support for primary router to tell backup router that
+         resuming is not possible because the backup really isn't primary
+         in the cell.  For example if backup disconnected itself the
+         resuming is not allowed since the primary really did not
+         go down.  Updated protocol specs.
+
+       * Removed MARS from crypto library.
+
+       * Defined the CTR mode and Randomized CBC mode in SILC.  The
+         CTR mode is RECOMMENDED now in specification.  Defined also
+         Serpent cipher as optional cipher.  Updated the protocol specs.
+
+Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
+
+       * Added support for inviting/banning by IP/MASK, public key,
+         and explicit Client ID.  Redefined the command and notify
+         types to allow easier forwards support for other methods
+         of inviting/banning.  Updated protocol specs.
+
+       * Remove the client from channel's invite lists if the client
+         is kicked or killed.  Updated protocol specs.
+
+       * Unified the Channel Message Payload and Private Message
+         into one Message Payload.  Updated protocol specs and
+         implemented.
+
 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
 
        * Don't wait for EOF after socket error has occurred, but
diff --git a/TODO b/TODO
index 458afafefcb3329565591b7b78c126caa4e5ae87..2e639ffbb89af13999dbc41a70d1a83f49f5fd65 100644 (file)
--- a/TODO
+++ b/TODO
@@ -7,6 +7,8 @@ TODO for Irssi SILC Client 1.0
 
  o SILC protocol version 1.2 integration
 
+ o Signed message payload handling
+
  o Testing - See test plan:
      http://silcnet.org/docs/silc-client-1.0-test.pdf
      http://silcnet.org/docs/silc-client-1.0-test.ps
@@ -15,7 +17,11 @@ TODO for Irssi SILC Client 1.0
 TODO for SILC Server 1.0
 ========================
 
- o WHOIS search by public key in attrs.
+ o New INVITE and BAN commands and notify types.
+
+ o Remove client from invite lists in KICKED and KILLED.
+
+ o 1.2 backup router support
 
  o Backup router related issues:
 
index f9a7b2fe3c8da670fa64774a3c433080d9e8038d..cc0bf7589d71afa240d7581fc325377deff60414 100644 (file)
@@ -760,8 +760,8 @@ silc_server_packet_relay_to_channel_encrypt(SilcServer server,
     }
 
     memcpy(iv, data + (data_len - iv_len - mac_len), iv_len);
-    silc_channel_message_payload_encrypt(data, data_len - iv_len, iv, iv_len,
-                                        channel->channel_key, channel->hmac);
+    silc_message_payload_encrypt(data, data_len - iv_len, iv, iv_len,
+                                channel->channel_key, channel->hmac);
   }
 
   return TRUE;
@@ -937,9 +937,9 @@ void silc_server_packet_relay_to_channel(SilcServer server,
          memcpy(tmp, data, data_len);
 
          /* Decrypt the channel message (we don't check the MAC) */
-         silc_channel_message_payload_decrypt(tmp, data_len,
-                                              channel->channel_key,
-                                              channel->hmac, FALSE);
+         silc_message_payload_decrypt(tmp, data_len, FALSE, FALSE,
+                                      channel->channel_key,
+                                      channel->hmac, FALSE);
 
          /* Now re-encrypt and send it to the router */
          silc_server_packet_send_srcdest(server, sock,
index f54f21695b22483cd730b100a87f200b1a479f79..c4af351c9a1bc3aafc4e4296db83d4dd11b5dd7f 100644 (file)
@@ -3204,8 +3204,6 @@ void silc_server_free_sock_user_data(SilcServer server,
       } else if (backup_router) {
        SILC_LOG_INFO(("Enabling the use of backup router %s",
                       backup_router->server_name));
-       SILC_LOG_DEBUG(("Enabling the use of backup router %s",
-                       backup_router->server_name));
 
        /* Mark this connection as replaced */
        silc_server_backup_replaced_add(server, user_data->id,
index 03da59674eccae12f9578575a7fcd06fc4c54e10..0e37c1a45cf73d6a365d10ac82f91e73dd74709b 100644 (file)
@@ -60,6 +60,7 @@ if test "$GCC"; then
   CFLAGS="-Wall -finline-functions $CFLAGS"
 fi
 
+#
 # Program checking
 #
 AC_PROG_INSTALL