updates.
authorPekka Riikonen <priikone@silcnet.org>
Sat, 16 Mar 2002 19:09:33 +0000 (19:09 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 16 Mar 2002 19:09:33 +0000 (19:09 +0000)
CHANGES
TODO
apps/irssi/src/silc/core/client_ops.c
doc/draft-riikonen-silc-ke-auth-05.nroff
doc/draft-riikonen-silc-spec-05.nroff
lib/silcclient/client_notify.c
lib/silcutil/silclog.h
lib/silcutil/silcnet.h

diff --git a/CHANGES b/CHANGES
index 90cf547086a6fcf169b3ea17fe1017602ff4ca82..dd539bb1caee06c083c46ec2b056dd59517e0a43 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -30,6 +30,13 @@ Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
          lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
          silcpkcs.c.
 
+       * Fixed the handling of third parameter of KICKED notify, since
+         it was mistakenly updated to SILC Protocol 1.0 even though it
+         is to be included in 1.1.  Since it is not in 1.0 it is not
+         mandatory, and this fix now handles it only if it is provided,
+         and it is not error if it is not provided.  Affected file 
+         lib/silcclient/client_notify.c.
+
 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
 
        * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
diff --git a/TODO b/TODO
index e4ff0f1b20a06ae9722591c5337304cb743d8f4d..e186dfc584de31803b53a85414cee9ae5375d4e5 100644 (file)
--- a/TODO
+++ b/TODO
@@ -105,7 +105,7 @@ Manual.
 
  o Write "Platform Implementations" document to describe what platforms
    Toolkit support, what has been implemented, what has not been, what
-   wors differently etc.
+   works differently etc.
 
 
 TODO in SILC Protocol
@@ -187,8 +187,5 @@ describe new stuff to be added to protocol versions 1.x.
      the receiver may not accept the key in the payload, and to describe
      other means of distributing a key.
 
- 12. The router to router connection diagram in spec-xx is showing the
-     primary routers direction to wrong direction.  Swap it.
-
  13. Add the killer's client ID to the KILLED notify.  To be included in 
      protocol version 1.1.
index ed698b9ba33a36065dc6466187c3b5ca58790703..c7d769bc0c2a060550251d352daa5fe2ab092e8b 100644 (file)
@@ -459,7 +459,8 @@ void silc_notify(SilcClient client, SilcClientConnection conn,
     if (client_entry == conn->local_entry) {
       printformat_module("fe-common/silc", server, channel->channel_name,
                         MSGLEVEL_CRAP, SILCTXT_CHANNEL_KICKED_YOU, 
-                        channel->channel_name, client_entry2->nickname,
+                        channel->channel_name, 
+                        client_entry ? client_entry2->nickname : "",
                         tmp ? tmp : "");
       if (chanrec) {
        chanrec->kicked = TRUE;
@@ -469,7 +470,8 @@ void silc_notify(SilcClient client, SilcClientConnection conn,
       printformat_module("fe-common/silc", server, channel->channel_name,
                         MSGLEVEL_CRAP, SILCTXT_CHANNEL_KICKED, 
                         client_entry->nickname, channel->channel_name, 
-                        client_entry2->nickname, tmp ? tmp : "");
+                        client_entry2 ? client_entry2->nickname : "", 
+                        tmp ? tmp : "");
 
       if (chanrec) {
        SILC_NICK_REC *nickrec = silc_nicklist_find(chanrec, client_entry);
index 8e95e13dc40e4d2b37177eee28d57227656996a9..846d76893c4d5f806399d856145a681aaf40699f 100644 (file)
@@ -875,8 +875,10 @@ authentication is required.
 
 If authentication method is passphrase the authentication data is
 plaintext passphrase.  As the payload is entirely encrypted it is safe
-to have plaintext passphrase.  See the section 3.2.1 Passphrase
-Authentication for more information.
+to have plaintext passphrase.  It is also provided as plaintext passphrase
+because the receiver may need to pass the entire passphrase into a
+passphrase checker, and hash digest of the passphrase would prevent this.
+See the section 3.2.1 Passphrase Authentication for more information.
 
 If authentication method is public key authentication the authentication
 data is a signature of the hash value of hash HASH plus Key Exchange
index c80d6500f031614bde707b3f7cff9887c1a94295..682e215afd9970890ec0910d34c57b43094b577b 100644 (file)
@@ -389,10 +389,10 @@ Example with three routers in the network:
 
 .in 16
 .nf
-    S/R1 - > - > - > - > - > - > - S/R2
+    S/R1 - < - < - < - < - < - < - S/R2
      \\                               /
-      ^                             v
-       \\ - < -  < - S/R3 - < - < - /
+      v                             ^
+       \\ - > -  > - S/R3 - > - > - /
 .in 3
 
 
index 862d957a3631430ff3be933a4588088bfceb0401..28982fa277fc6ebb66d0d9b78eed4067746636b0 100644 (file)
@@ -99,8 +99,8 @@ void silc_client_notify_by_server(SilcClient client,
   SilcClientID *client_id = NULL;
   SilcChannelID *channel_id = NULL;
   SilcServerID *server_id = NULL;
-  SilcClientEntry client_entry;
-  SilcClientEntry client_entry2;
+  SilcClientEntry client_entry = NULL;
+  SilcClientEntry client_entry2 = NULL;
   SilcChannelEntry channel;
   SilcChannelUser chu;
   SilcServerEntry server;
@@ -744,21 +744,20 @@ void silc_client_notify_by_server(SilcClient client,
 
     /* Get the kicker */
     tmp = silc_argument_get_arg_type(args, 3, &tmp_len);
-    if (!tmp)
-      goto out;
-
-    client_id = silc_id_payload_parse_id(tmp, tmp_len);
-    if (!client_id)
-      goto out;
+    if (tmp) {
+      client_id = silc_id_payload_parse_id(tmp, tmp_len);
+      if (!client_id)
+       goto out;
 
-    /* Find kicker's client entry and if not found resolve it */
-    client_entry2 = silc_client_get_client_by_id(client, conn, client_id);
-    if (!client_entry2) {
-      silc_client_notify_by_server_resolve(client, conn, packet, client_id);
-      goto out;
-    } else {
-      if (client_entry2 != conn->local_entry)
-       silc_client_nickname_format(client, conn, client_entry2);
+      /* Find kicker's client entry and if not found resolve it */
+      client_entry2 = silc_client_get_client_by_id(client, conn, client_id);
+      if (!client_entry2) {
+       silc_client_notify_by_server_resolve(client, conn, packet, client_id);
+       goto out;
+      } else {
+       if (client_entry2 != conn->local_entry)
+         silc_client_nickname_format(client, conn, client_entry2);
+      }
     }
 
     /* Get comment */
index 30d64eba0e6b3ddf243782927a93324027e68c54..adad8ddd15476867a103feb98b3217141be37282 100644 (file)
@@ -220,7 +220,7 @@ extern DLLAPI bool silc_debug_hexdump;
 
 /* Macros */
 
-#ifdef WIN32
+#ifdef SILC_WIN32
 #define __FUNCTION__ ""
 #endif
 
index 262d86a95e9ca4160a32e2cfce85bc9a1a6983e9..164990985633dee78ab5686c91e27540489b58c2 100644 (file)
@@ -418,7 +418,7 @@ char *silc_net_localhost(void);
  ***/
 char *silc_net_localip(void);
 
-#ifdef WIN32
+#ifdef SILC_WIN32
 
 /****f* silcutil/SilcNetAPI/silc_net_win32_init
  *