Before creating a channel key we need to remove the private key
authorPatrik Weiskircher <pat@silcnet.org>
Wed, 24 Aug 2005 16:29:39 +0000 (16:29 +0000)
committerPatrik Weiskircher <pat@silcnet.org>
Wed, 24 Aug 2005 16:29:39 +0000 (16:29 +0000)
mode, otherwise no key is created.

CHANGES
apps/silcd/command.c

diff --git a/CHANGES b/CHANGES
index 751335b115e3f709820ce0297696e8b836414084..cd20f109d628f9ccccba9f368dde53b750df4b67 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+Wed Aug 24 18:27:48 CEST 2005  Patrik Weiskircher <pat@icore.at>
+
+       * Before creating a channel key we need to remove the private key
+         mode, otherwise no key is created. Affected file
+         apps/silcd/command.c
+
 Fri Aug 19 15:20:05 CEST 2005  Patrik Weiskircher <pat@icore.at>
 
        * Before checking ip/hostname of SilcSocketConnection, check
index 82bc2f6ee035a5af7853e0b511cfaa9b37af9b7d..13a0c3ce176794d35293f4b8e0e200c16605548b 100644 (file)
@@ -2966,6 +2966,10 @@ SILC_SERVER_CMD_FUNC(cmode)
         new channel key. Clients are not using private channel keys
         anymore after this. */
 
+      /* if we don't remove the flag from the mode
+       * silc_server_create_channel_key won't create a new key */
+      channel->mode &= ~SILC_CHANNEL_MODE_PRIVKEY;
+
       /* Re-generate channel key */
       if (!silc_server_create_channel_key(server, channel, 0))
        goto out;