updates.
[silc.git] / CHANGES
1 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2
3         * Fixed silc_string_regexify list creation.  Fixes bugs with
4           BAN and INVITE commands in server.  The affected file is
5           lib/silcutil/unix/silcunixutil.c.
6
7 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
8
9         * Removed the command destructor entirely from the server's
10           command and command reply routines.  It is not needed, and
11           its usage was buggy and caused crashes.  Affected files are
12           silcd/command[_reply].[ch].
13
14 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
15
16         * Cancel protocol and NULL sock->protocol if timeout
17           occurred during protocol.  Affected file silcd/server.c.
18
19         * Cancel protocol timeouts always before calling the final
20           callback, to assure that after final callback is called
21           no other state will be called for the protocol anymore.
22           Affected file silcd/protocol.c.
23
24         * Print error log if incoming connection configuration could
25           not be found.  Affected file silcd/server.c.
26
27         * Fixed JOIN command to correctly save the founder mode
28           to the client on normal SILC server, when the channel
29           was created by the router.  Affected file silcd/command.c.
30
31         * Fixed LIST command (hopefully) to send correct reply
32           packets.  Affected file silcd/command.c.
33
34 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
35
36         * The silc_packet_receive_process now returns FALSE if the
37           read data was invalid packet, and TRUE if it was ok.
38
39           The server now checks that if unauthenticated connection
40           sends data and its processing fails the server will close
41           the connection since it could be a malicious flooder. 
42
43           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
44
45 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
46
47         * Make sure the warning about error opening a log file is
48           printed only once and not everytime it fails (produces
49           too much useless log).  Affected file lib/silcutil/silclog.c.
50
51 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
52  
53         * Made the silc_server_daemonise() function more readable.
54           Affected file silcd/server.c.
55  
56         * Pid file is now optional, the user may comment it out from
57           the config file. Removed define SILC_SERVER_PID_FILE, we
58           don't need a default any longer.  Affected file
59           configure.in.pre, lib/Makefile.am.pre.
60  
61         * Make some use of the pid file. The server now dies at startup
62           if it detects a valid pid file on his path. The server would
63           die anyway in this circumstance, because of the bind() failure.
64           Affected file silcd/silcd.c.
65  
66         * No longer compiling lib/dotconf.
67
68 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
69
70         * Fixed JOIN command parsing not to crash.  Affected file
71           lib/silcclient/command.c.
72
73         * Fied the NICK_CHANGE notify to add the new client entry
74           even it is resolved.  This removes an <[unknown]> nick
75           thingy bug in the client.  Affected file is 
76           lib/silcclient/client_notify.c.
77
78         * Do not try to allocate 0 bytes (efence does not like it)
79           in lib/silccore/silccomand.c when encoding payload.
80
81         * Do not take IRCNICK as nickname in Irssi SILC client since
82           it is not possible to set nickname before hand connecting
83           the server (TODO has an entry about adding auto-nicking
84           support).
85
86         * Changed the silc_server_command_pending to check whether
87           there already exists an pending entry with the specified
88           command, command identifier and pending callback.  This is
89           to fix IDENTIFY and WHOIS related crashes that may register
90           multiple pending commands with same identifier.  Affected
91           file silcd/command.c.
92
93         * Fixed the server to reconnect to the router even if it
94           was already reconnecting and EOF was received.  This to
95           fix a possibility that the server wouldn't ever try to
96           auto-reconnect to the router.  Affected file silcd/server.c.
97
98 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
99
100         * Fixed the server's password authentication to use the
101           length of the locally saved password, and not the one
102           sent in the packet.  Affected file silcd/protocol.c.
103
104         * Fixed same password authentication problem in the
105           Authentication Payload handling routines in
106           lib/silccore/silcauth.c.
107
108         * Yet another password authentication problem fixed with
109           channel password handling in silcd/command.c.
110
111 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
112
113         * If first character of string in silc_parse_userfqdn is '@'
114           then do not parse it.  Affected file is
115           lib/silcutil/silcutil.c.
116
117 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
118
119         * Fixed minor bug in IDENTIFY command reply sending, which
120           caused various weird problems during JOIN when it was
121           resolving names for users.  Affected file silcd/command.c.
122
123 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
124
125         * Fixed the IDENTIFY command reply sending to chech better valid
126           clients.  It was possible to send incomplete list of replies.
127           Affected file silcd/command.c.
128
129 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
130
131         * Added silc_client_command[s]_[un]register functions now to
132           dynamically register the commands in client library.  Removed
133           the static table of commands.  This allows the client library
134           to call commands without causing the application to know about
135           what commands library has called.
136
137           Removed the INFO command reply kludge to detect when the command
138           was called by library.  Now library use its own command reply
139           function for INFO command.
140
141           Added function silc_client_command_call to call a command.
142           Application can use it to call command, not access the structure
143           directly.
144
145           Now all commands that are sent by the client library (not
146           explicitly sent by application) use own command reply functions.
147
148           Affected files around lib/silcclient/ and in
149           irssi/src/silc/core/.
150
151         * Fixed the WHOIS command reply sending to chech better valid
152           clients.  It was possible to send incomplete list of replies.
153
154           Fixed the WHOIS and IDENTIFY to send the request to router
155           if normal server did not do it and did not find any results.
156
157           Affected file silcd/command.c.
158
159 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
160
161         * Moved the internal data from SilcClient context into its
162           own file, not accesible to application.  Affected files
163           lib/silcclient/client.h and lib/silcclient/client_internal.h,
164           and other files in client library.
165
166 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
167
168         * Added doc/examples installation target in Makefile.am.pre.
169           A patch by salo.
170
171 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
172
173         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
174           commands the found client entry will be removed from the
175           cache, after notifying application about the error.  Affected
176           file lib/silcclient/command_reply.c.
177
178         * Changed the /MSG to check for exact nickname user gave, and
179           not let `nick' match `nick@host' if it is only one found.  Now,
180           user must type the exact nickname (like nick@host2) even if
181           there are no more than one same nicks found.  This is to avoid
182           a possibility of sending nickname to wrong nickname since
183           `nick' could match `nick@host'.  Affected file is
184           irssi/src/core/silc-servers.c.
185
186 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
187
188         * Do not print "you are now server operator" or similar when
189           giving /away command.  Affected files are
190           irssi/src/silc/core/client_ops.c, silc-servers.h.
191
192         * Made the silc_server_command_pending_error_check to send
193           the same command reply payload it received back to the
194           original sender of the command.  This way all arguments
195           that was received by the server will be received by the
196           client too.  Affected file silcd/command.c.
197
198         * Added the silc_idcache_add to return the created cache entry
199           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
200
201         * Add global clients to expire if they are not on any channel.
202           This is because normal server will never know if they signoff
203           if they are not on any channel.  The cache expiry will take
204           case of these entries.  This is done by normal servers only.
205           The affected files are silcd/command_reply.c,
206           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
207
208         * If server receives invalid ID notification for WHOIS or
209           IDENTIFY and the ID exists in the lists, it is removed.
210           Affected file silcd/command_reply.c.
211
212         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
213           in client then client entry that it matches is searched and
214           the nickname is printed on the screen for user.  Affected
215           file irssi/src/silc/core/client_ops.c.
216
217 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
218
219         * Use cache entry expire time in the LIST command reply to
220           purge old entries from the cache after the LIST command
221           reply has been received.  This way we don't have non-existent
222           entries in the cache for too long.  Affected file is
223           silcd/command_reply.c.
224
225 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
226
227         * If we are normal server, and we've not resolved client info
228           in WHOIS or IDENTIFY from router, and it is global client,
229           we'll check whether it is on some channel.  If it is not
230           then we cannot be sure about its validity and will resolve it
231           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected 
232           file silcd/command.c.
233
234         * Search channel by name (if possible) rather than by ID
235           in IDENTIFY command's command reply.  Affected file is
236           silcd/command_reply.c.
237
238 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
239
240         * Distribute to the channel passphrase in CMODE_CHANGE notify.
241           Updated specs and implemented it.  Affected file silcd/command.c,
242           silcd/packet_send.c and silcd/packet_receive.c.
243
244         * Implemented the <founder auth> payload handling in the JOIN
245           command.  If provided all conditions for channel joining
246           except requirement to provide correct passphrase can be 
247           overrided by the channel founder.  Updated the protocol specs.
248           Affected file silcd/command.c.
249
250           Added support for founder auth in JOIN command in client
251           library.  Fixed the parsing of the JOIN command now to support
252           all options as they should be.  The affected file is
253           lib/silcclient/command.c.
254
255         * Optimized the WHOIS and IDENTIFY commands to send the request
256           to router only if it includes nicknames or other names.  If
257           they include only IDs then check the local cache first before
258           routing.  Affected file is silcd/command.c.
259
260         * Added channels topic announcements.  Affected file is
261           silcd/packet_receive.c and silcd/server.c.
262
263         * Fixed the silc_server_send_notify_topic_set to really destine
264           the packet to channel.  Affected file silcd/packet_send.c.
265
266         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
267           library.  Affected file lib/silcclient/client_notify.c.
268
269         * Added UMODE announcements.  Affected file silcd/server.c.
270
271 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
272
273         * Memory leak fixes in:
274
275           lib/silcutil/silcsockconn.c
276           lib/silcske/silcske.c
277           lib/silcske/groups.c
278           lib/silccrypt/rsa.c
279           lib/silccrypt/silcpkcs.c
280           lib/silccore/silccommand.c
281           lib/silccore/silcidcache.c
282           silcd/idlist.c
283           silcd/packet_send.c
284           silcd/command.c
285
286         * ROBOdoc documented the lib/silcske/groups.h file and a
287           bit changed the interface for better.
288
289 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
290
291         * Update the client entry context in the ID cache after
292           nick change.  Affected file lib/silcclient/command.c.
293           Fixes the CUMODE command when regaining founder privileges,
294           and a little WHOIS problem.
295
296         * Fixed silc_net_gethostbyname to correctly call the
297           inet_ntop.  Affected file lib/silcutil/silcnet.c.
298
299 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
300
301         * Added IPv6 support checking to the configure.in.pre, added
302           also --enable-ipv6 option to override the check.  Affected
303           file configure.in.pre.
304
305         * The silc_thread_create now calls the start function
306           directly if threads support is not compiled in.  Removes
307           ugly #ifdef's from generic code.  Affected files are
308           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
309
310         * Added silc_net_gethostby[name/addr]_async to asynchronously
311           resolve.  Affected files are lib/silcutil/silcnet.[ch].
312
313         * Added support for rendering IPv6 based server, client and
314           channel IDs.  Affected file lib/silcutil/silcutil.c.
315
316         * Added support for creating IPv6 based server IDs.  Affected
317           file is silcd/serverid.c.
318
319 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
320
321         * Added silc_net_gethostby[addr/name] into the
322           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
323           routines.  Added silc_net_is_ip[4/6].  Affected file is
324           lib/silcutil/unix/silcunixnet.c.  All routines that take
325           address as argument now supports both IPv4 and IPv6 addresses.
326
327 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
328
329         * Fixed LIST command reply sending in server.  Affected file
330           silcd/command.c.
331
332         * Server now sends the kicker's client ID in the KICK notify
333           to the kicked client.  Affected file silcd/command.c.
334
335         * The client library now parses the kickers client ID and
336           UI displays it.  Affected files lib/silcclient/client_notify.c
337           and irssi/src/silc/core/silc-channels.c, module-formats.c.
338
339         * Made all payload parsing function prototypes consistent.
340           They all take now const unsigned char * and uint32 pair as
341           the payload data instead of SilcBuffer.  Changes all around
342           the source tree.  Other unsigned char* -> const unsigned char*
343           changes around the tree as well.
344
345         * Optimized SFTP client and server packet sending not to
346           allocate new buffer for each packet but to recycle the
347           first allocated buffer.  Affected files are
348           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
349
350         * Optimized the SFTP client to use SilcList instead of
351           SilcDList for requests, because it is faster.  Affected file
352           is lib/silcsftp/sftp_client.c.
353
354         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
355           into lib/silccore/silcid.[ch].
356
357           Renamed silcpayload.[ch] into silcargument.[ch].
358
359 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
360
361         * If client entry is deleted with active key agreement
362           session, abort the session.
363
364           The silc_client_abort_key_agreement now calls the completion
365           callback with new SILC_KEY_AGREEMENT_ABORTED status.
366
367           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
368           idlist.c.
369
370 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
371
372         * Don't use __restrict in older GCC's.  Affected file is
373           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
374
375         * silc_net_localhost now attempts to reverse lookup the
376           IP/hostname.  Affected file lib/silcutil/silcnet.c.
377
378         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
379           command.  It can be used to gain founder privileges at 
380           the same time when joining the channel.
381
382           Defined that the SILC_NOTIFY_TYPE_KICKED send the 
383           kicker's client ID as well.  Updated protocol specs.
384
385           Defined that the server must send SILC_COMMAND_IDENTIFY
386           command reply with error status to client who sent
387           private message with invalid client ID.
388
389           Updated the protocol specification.
390
391         * Added silc_server_send_command_reply to send any
392           command reply.  Affected file silcd/packet_send.[ch].
393
394         * Added silc_id_payload_encode_data to encode ID payload
395           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
396
397         * The server now send IDENTIFY command reply with error
398           status if client ID in private message is invalid.  Affected
399           file silcd/packet_receive.c.
400
401         * Save the server key file with server's IP address in
402           the filename instead of hostname.  The affected file is
403           irssi/src/silc/core/client_ops.c.
404
405 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
406
407         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
408           A patch by Sunfall.
409
410         * Added libtool support for compiling shared objects in
411           lib/silcsim.  Affected file configure.in.pre and
412           lib/silcsim/Makefile.am.  Original patch by cras.
413
414 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
415
416         * Pid file configuration, and server's config file fixes
417           patch by toma.  Updated CREDITS file. 
418
419 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
420
421         * Fixed silc_client_channel_message to not try to decrypt
422           the message twice if it resolved the destination client
423           information.  This could cause of dropping one channel
424           message.  Affected file lib/silcclient/client_channel.c.
425
426 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
427
428         * Added silc_client_run_one into lib/silcclient/silcapi.h and
429           lib/silcclient/client.c. This function is used when the SILC
430           Client is run under some other scheduler, or event loop or
431           main loop.  On GUI applications, for example this may be
432           desired to used to run the client under the GUI application's
433           main loop.  Typically the GUI application would register an
434           idle task that calls this function multiple times in a second
435           to quickly process the SILC specific data.
436
437 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
438
439         * Fixed silc_server_drop() for dropping the supplementary
440           groups as well, this could cause a security hole on some
441           systems.
442
443 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
444
445         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
446           johnny.
447
448         * Write PID file after dropping privileges.  Added -F option
449           to run server on foreground.  A patch by debolaz.
450           Affected files silcd/server.c, silcd/silcd.c.
451
452         * Fixed MOTD to return the MOTD file server name.  Affected
453           file silcd/command.c.
454
455         * Added INFO command reply handling to the Irssi SILC Client.
456           Affected file irssi/src/silc/core/client_ops.c.
457
458 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
459
460         * Fixed the silc_idcache_list_* routines to really support
461           the dynamic list.  Fixes a crash.  Affected file is
462           lib/silccore/silcidcache.c.
463
464         * Fixed the LIST command reply to really call LIST command's
465           pending callbacks.  Affected file silcd/command_reply.c.
466
467 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
468
469         * Update conn->local_entry->nickname after giving NICK
470           command.  Affected file lib/silcclient/command.c.
471
472 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
473
474         * Added the [pid] option to the silcd configuration file
475
476           Affected files: serverconfig.[ch] and silcd.c
477
478 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
479
480         * Save fingerprint in WHOIS command reply in server.
481           Affected file silcd/command_reply.c.
482
483         * Fixed NICK commands pending callback registration.
484           Affected file lib/silcclient/command.c.
485
486 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
487
488         * Use ++server->cmd_ident when sending commands in server,
489           instead of random number.  Affected file silcd/command.c.
490
491         * Fixed GETKEY command reply to call actually GETKEY pending
492           command callbacks.  Affected file silcd/command_reply.c.
493
494         * A bit stricter check for nicknames.  Check for same nickname
495           in NICK command also.  Affected file silcd/command.c.
496
497         * Do not call INFO command everytime client ID changes, only
498           during first connecting.  Affected file lib/silcclient/client.c.
499
500         * Set the new nickname only after successful command reply for
501           NICK command is returned by server.  Affected file
502           lib/silcclient/command.c.
503
504         * Remove nicknames from nicklist during server_signoff notify.
505           Should fix /NAMES bit more.  The affected file is
506           irssi/src/silc/core/silc-channels.c.
507
508         * Added `fingerprint' field to the SilcIDListData in the 
509           silcd/idlist.h to hold the fingerprint of the client's
510           public key.
511
512           Send the fingerprint of the client's public key in WHOIS
513           command reply.
514
515           Affected files silcd/command.c, and silcd/idlist.[ch].
516
517         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
518           create fingerprint from given data.
519
520         * Show the fingerprint of the client's public key in WHOIS.
521           Affected files irssi/src/module-formats.[ch] and
522           irssi/src/silc/core/client_ops.c.
523
524         * Format the multiple same nicknames also during JOIN and
525           NICK_CHANGE notifys.  Affected file is
526           lib/silcclient/client_notify.c.
527
528         * Do not print error on screen for invalid private message
529           payload since it can come if someone is sending private
530           messages with wrong key.  Affected file
531           lib/silccore/silcprivate.c.
532
533         * Fixed multiple concurrent /PING crash.  Affected file
534           lib/silcclient/command.c.
535
536         * Changed the wrong ID encoding.  All IP addresses must be
537           in MSB first order in encoded format.  They were encoded
538           wrong and was in LSB format.  Affected files are
539           silcd/serverid.c, lib/silcutil/silcutil.c.
540
541         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
542
543         * Call the `connect' client operation through the scheduler
544           in case of error.  Affected file lib/silcclient/client.c.
545
546         * Call the `failure' client operation even if the error
547           occurred locally during a protocol.  Affected file is
548           lib/silcclient/protocol.c.
549
550         * Added support of sending LIST command to router from normal
551           server.  This way normal server can get list of all channels
552           in the network too.  Fixed the channel list sending in the
553           server too.  Affected files are silcd/command.c, and
554           silcd/command_reply.[ch].
555
556         * Added silc_server_update_channels_by_server and
557           silc_server_remove_channels_by_server.  They are used during
558           disconnection of primary router and in backup router protocol.
559           Affected file silcd/server_util.[ch], silcd/server.c and
560           silcd/server_backup.c.
561
562         * Fixed channel adding to global list in IDENTIFY command
563           reply in server.  Affected file silcd/command_reply.c.
564
565 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
566
567         * If the incoming packet type is REKEY or REKEY_DONE process
568           that packet always synchronously.  Fixes yet another MAC
569           failed error on slow (dialup) connections.  Affected file
570           lib/silcclient/client.c and silcd/server.c.
571
572 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
573
574         * Call check_version SKE callback for initiator too.  Affected
575           file lib/silcske/silcske.c.
576
577         * Implemented fix for security hole found in the SKE that was
578           fixed in the specification few days back; the initiator's
579           public key is now added to the HASH value computation.
580           Added backwards support for the old way of doing it too, for
581           old clients and old servers.  Affected file is
582           lib/silcske/silcske.c.
583
584         * Enabled mutual authentication by default in SKE.  If initiator
585           is not providing mutual authentication the responder will
586           force it.  This will provide the proof of posession of the
587           private key for responder.  The affected files are
588           lib/silcclient/protocol.c and silcd/protocol.c.
589
590         * Do not cache anymore the server's public key during SKE.
591           We do mutual authentication so the proof of posession of
592           private key is done, and if the server is authenticated in
593           conn auth protocol with public key we must have the public
594           key already.  Affected file silcd/protocol.c.
595
596         * Added new global debug variable: silc_debug_hexdump.  If
597           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
598           file lib/silcutil/silclog.[ch].
599
600         * Fixed compilation warning due to char * -> const char *.
601           Affected files lib/silcutil/silcnet.h, and
602           lib/silccore/silcauth.[ch].
603
604 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
605
606         * Fixed CMODE command when new channel key was created.  If
607           the creation failed the old key was removed.  Next time giving
608           same command would crash the server since the old key was
609           freed already.  Affected file silcd/command.c.
610
611         * Fixed the silc_server_announce_get_channels to not crash
612           on reconnect.  Affected file silcd/server.c.
613
614 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
615
616         * Added silc_log_set_debug_string function to set a regex
617           string to match for debug output.  Only the function names,
618           or filenames matching the given debug string is actually
619           printed.  This way it is possible to filter out those debug
620           strings that user is not interested in.
621
622           Fixed a bug in silc_string_regexify.
623
624           Affected files lib/silcutil/silclog.[ch], and
625           lib/silcutil/unix/silcunixutil.c.
626
627         * Changed the -d options in both server and Irssi SILC client
628           to take the debug string as argument.  Affected files
629           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
630
631 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
632
633         * Added silc_hash_babbleprint to create a Bubble Babble
634           Encoded fingerprint.  The encoding is developed by Antti
635           Huima (draft-huima-babble-01.txt), and it creates human
636           readable strings out of binary data.  Affected file
637           lib/silccrypt/silchash.[ch].
638
639         * Print the babble print now in addition of fingerprint as well
640           in Irssi SILC client.  Affected files are
641           irssi/src/fe-common/silc/module-formats.[ch],
642           irssi/src/fe-common/silc/core/client_ops.c.
643
644 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
645
646         * Fixed a security problem found in SKE.  The initiator's
647           public key too is now added to the HASH hash value creation
648           which is signed by the responder to create the SIGN value.
649           This will prevent anyone in the middle to lie to the responder
650           about the initiator's public key.  If this is done now, the
651           man in the middle will get caught.  Updated the protocol
652           specification.
653
654 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
655
656         * Better installation directory handling.  Configure module
657           paths and other paths automatically to example_silc* files
658           in doc/.  A patch by toma.
659
660         * Fixed compiler warning from MPI library, and from SILC RNG.
661           A patch by johnny.
662
663         * Added SILC_SERVER_PID_FILE to define the pid file for server.
664           It can be configured with ./configure.  A patch by toma.
665
666 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
667
668         * Find correct make to use in prepare-clean.  A patch by
669           toma.  Affected file prepare-clean.
670
671 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
672
673         * Added irssi variables use_auto_addr, auto_bind_ip,
674           auto_bind_port and auto_public_ip.
675
676         * Changed the interface for silc_client_send_key_agreement
677           in lib/silcclient/silcapi.h
678
679         Affected files:
680
681          irssi/src/silc/core/silc-core.c
682          irssi/config
683          lib/silcclient/silcapi.h
684          irssi/src/silc/core/silc-channels.c
685          lib/silcclient/client_keyagr.c
686          irssi/docs/help/key
687
688 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
689
690         * Added silc_pkcs_public_key_compare to compare two 
691           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
692
693         * Check that the client who set the founder mode on the
694           channel is the same client that is giving the founder
695           mode to itself.  It is done by comparing the saved public
696           key (it is saved even in the authentication is passphrase).
697           Affected file silcd/command.c.
698
699 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
700
701         * Do not process packet for disconnected socket connection.
702           Affected file lib/silccore/silcpacket.c.
703
704         * Process the DISCONNECT packet through scheduler in the
705           client library.  Affected file lib/silcclient/client.c.
706
707         * Fixed the silc_client_packet_parse to not to increase
708           the packet sequence number if the conn->sock and the 
709           current socket connection is not same.  This can happen
710           for example during key agreement when the conn includes
711           multiple socket connections (listeners).  Affected file
712           lib/silcclient/client.c.
713
714         * The sender of the file transfer request now provides also
715           the pointer (listener) for the key exchange protocol.  If
716           the listener cannot be created then it sends empty key
717           agreement and lets the receiver provide the listener.
718
719           Added `local_ip' and `local_port' arguments to the
720           silc_client_file_send.  If they are provided they are used,
721           if not then it will attempt to find local IP address, if
722           not found or bind fails then the remote client will provide
723           the listener.
724
725           Affected files are lib/silcclient/client_ftp.c and
726           lib/silcclient/silcapi.h.
727
728         * Extended the FILE SEND command to support defining the
729           local IP and port for key exchange listener.  They are
730           optional.  Affected file irssi/src/silc/core/silc-servers.c.
731
732 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
733
734         * Defined to WHOIS command reply the sending of fingerprint
735           of the client's public key (if the proof of posession of the
736           corresponding private key is verified by the server).
737           Updated to the protocol specification.
738
739         * Added support of receiving the client's public key's 
740           fingerprint in command reply in client library.  Affected
741           file is lib/silcclient/command_reply.c, and
742           lib/silcclient/idlist.[ch].
743
744 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
745
746         * Do not send over 128 chars long nickname to the server
747           in NICK command.  Affected file lib/silcclient/command.c.
748
749         * Do not send over 256 chars long channel names to the server
750           in JOIN command.  Affected file lib/silcclient/command.c.
751
752 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
753
754         * Assure that silc_server_close_connection cannot be called
755           twice for same socket context.  Affected file is
756           silcd/server.c.
757
758 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
759
760         * Send error message to application if opening file for
761           writing during file transfer fails.  Affected file is
762           lib/silcclient/client_ftp.c.
763
764           Remove all file transfer sessions for a client that we're
765           removing from ID cache.
766
767           Affected file is lib/silcclient/client_ftp.c.
768
769         * Fixed silc_net_addr2bin to return correct address.  Affected
770           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
771
772         * Fixed file transfer session removing on signoff notify.
773           Affected file irssi/src/silc/core/silc-servers.c.
774
775         * Added the SilcClientFileError to be returned in the monitor
776           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
777           Affected file lib/silcclient/silcapi.h.
778
779 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
780
781         * Fixed a crash in silc_client_ftp_free_sessions and
782           silc_client_ftp_session_free_client.  Affected file
783           lib/silcclient/client_ftp.c.
784
785         * Added `disabled' field in the SilcChannelEntry in the server
786           to indicate if the server entry is disabled.  Affected file
787           silcd/idlist.h, silcd/command[_reply].c.
788
789         * SILC server adds now /var/run/silcd.pid everytime it is
790           started.  Affected file silcd/silcd.c.
791
792         * Added silc_server_packet_send_clients to send a packet to
793           the provided table of client entries.  Affected file
794           silcd/packet_send.[ch].
795
796         * Fixed a crash in client resolving in client_prvmsg.c in 
797           client library.  Affected file lib/silcclient/client_prvmsg.c.
798
799         * Do not actually remove the client directly from ID cache
800           during SERVER_SIGNOFF, but invalidate it.  This way we
801           preserve the WHOWAS info for the client.  Affected file
802           silcd/server_util.c.
803
804         * Fixed SERVER_SIGNOFF notify handling in the server.  The
805           server is now able to process incoming SERVER_SIGNOFF notify
806           for a server that it doesn't even know about.  It will remove
807           the clients provided in the notify.  Affected file
808           silcd/packet_receive.c.
809
810         * Check for partial packet in data queue after every packet that
811           was found from the queue.  Return and wait for more data if 
812           there is partial data in queue.  Affected file is
813           lib/silccore/silcpacket.c.
814
815 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
816
817         * Added SilcClietFileError enum to indicate error in
818           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
819           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
820           Affected files lib/silcclient/silcapi.h and
821           lib/silcclient/client_ftp.c.
822
823         * Check that newsize in silc_buffer_realloc is larger than
824           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
825
826         * Added better monitor of file transfers.  It now monitors
827           key agreement protocol during the file transfer too.  Added
828           error reporting too.  Affected files
829           irssi/src/silc/core/silc-servers.c,
830           irssi/src/fe-common/silc/module-formats.[ch].
831
832         * Wrote a help file for FILE command.
833
834         * Added silc_rng_global_get_byte_fast to get not-so-secure
835           random data as fast as possible.  Random data is read from
836           /dev/urandom if available and from the SILC RNG if not
837           available.  It is used in padding generation.  Affected file
838           lib/silccrypt/silcrng.[ch].
839
840         * All packets in client library are now processed synchronously.
841           Optimized packet processing a lot.  Affected file
842           lib/silcclient/client.c.
843
844         * All server connection packets are processing synchronously
845           now in server, to optimize packet processing.  Affected file
846           silcd/server.c.
847
848         * Include files are installed now only in Toolkit distribution
849           if make install is given.  Affected files: all Makefile.am's.
850
851 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
852
853         * Assure that silc_client_notify_by_server_resolve does not
854           resolve the client information multiple times.  If it cannot
855           be found by the first it cannot be found at all.  Affected
856           file lib/silcclient/client_notify.c.
857
858         * Fixed WHOWAS command reply calling.  Affected file
859           lib/silcclient/command_reply.c.
860
861         * Removed all references to silc_idlist_get_client from the
862           Irssi SILC client since that call is internal call used by
863           the library.  The Irssi SILC client will use now client
864           retrieval functions found in silcapi.h.
865
866         * Fixed a bug in resolving nickname info before sending
867           private message.  It used freed memory.  Affected file
868           irssi/src/silc/core/silc-servers.c.
869
870 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
871
872         * Assure my_channels statistics cannot go negative in server.
873           Affected files silcd/server.c, silcd/server_util.c.
874
875 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
876
877         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
878
879 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
880
881         * Win32 Toolkit changes.  Affected files
882           win32/silc.dsw, win32/libsilc/libsilc.def,
883           win32/libsilcclient/libsilc.def,
884           lib/silcutil/silcutil.c, and
885           lib/sftp/sftp_fs_memory.c.
886
887 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
888
889         * Added silc_net_localip to return local host's IP address.
890           Affected file lib/silcutil/silcnet.[ch].
891
892         * If key exchange or rekey protocol is active for a connection
893           parse all packets syncronously since there might be packets
894           in packet queue that we are not able to process without first
895           processing packets before them.  Affected file silcd/server,
896           lib/silcclient/client.c.
897
898         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
899           whether library should continue processing the packet. 
900           Affected file lib/silccore/silcpacket.h.
901
902         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
903           SilcSFTPMonitorData to SFTP server to monitor various
904           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
905           lib/silcsftp/sftp_server.c.
906
907         * Added silc_file_size to return file size.  Affected file
908           lib/silcutil/silcutil.[ch].
909
910         * Implemented the file transfer support for the client library.
911           Added preliminary support for simple client to client one-file
912           transmission.  Affected file lib/silcclient/client_ftp.c,
913           lib/silccilent/client.[ch].
914
915         * Added new local command FILE to the Irssi SILC Client.
916           It is used to perform the file transfer.  It has subcommands
917           SEND, RECEIVE, SHOW and CLOSE.  Affected files
918           irssi/src/silc/core/client_ops.c, 
919           irssi/src/silc/core/silc-server.[ch].
920
921 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
922
923         * Relay the SILC_PACKET_FTP in the server.  Affected files
924           silcd/server.c and silcd/packet_receive.c.
925
926 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
927
928         * Renamed silc_file_read and silc_file_write to functions
929           silc_file_readfile and silc_file_writefile.  Added function
930           silc_file_open and silc_file_close.  Affected files 
931           lib/silcutil/silcutil.[ch].
932
933 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
934
935         * Resolve the client info when received private message or
936           channel message for a client which nickname we don't know.
937           Affected files lib/silcclient/client_prvmsg.c and
938           lib/silcclient/client_channel.c.
939
940         * Do not crash in /KEY if client is not connected.  Affected
941           file irssi/src/silc/core/silc-channels.c.
942
943         * Added SilcClientStatus field to the SilcClientEntry in the
944           lib/silcclient/idlist.h.
945
946           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
947           is incomplete and is being resolved, it won't be resolved
948           twice.
949
950           Make sure also that USERS command reply does not resolve
951           twice information.  Affected file is
952           lib/silcclient/command_reply.c.
953
954           Make sure that silc_client_get_clients_by_list does not
955           resolve twice same information.
956
957         * Check for valid client->id in the silc_server_free_client_data.
958           Affected file silcd/server.c.
959
960         * Fixed /GETKEY nick@server not to crash if the server entry
961           is not found.  Affected file lib/silcclient/command.c.
962
963         * Fixed the silc_server_check_cmode_rights to check the
964           requested modes correctly.  Affected file silcd/command.c.
965
966 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
967
968         * Better checks for non-printable chars in nick added.
969           Affected file silcd/command.c.
970
971 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
972
973         * Call the silc_server_udpate_servers_by_server in the
974           primary router that comes back online in the backup resuming
975           protocol.  Otherwise it routes packets wrong.  Affected file
976           silcd/server_util.[ch], silcd/server_backup.c.
977
978 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
979
980         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
981           lib/silcutil/silcbuffmt.[ch].
982
983         * Redefined the SILC packet header to include the padding
984           length.  Affected file lib/silccore/silcpacket.[ch].
985
986         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
987           length for maximum padding up to 128 bytes).  Affected
988           file lib/silccore/silcpacket.h.
989
990         * Removed all backwards support for old 0.5.x MAC thingies.
991           The SILC packet header change makes it impossible to be
992           backwards compatible.
993
994         * Send the ENDING packet with timeout in the backup resuming
995           protocol.  This is to assure that all routers has connected
996           to the primary router.  Affected file silcd/server_backup.c.
997
998         * Changed the RNG to take the first IV from random data.  It
999           used to take it from zero actually.  Changed the RNG also
1000           to use /dev/urandom during session.  /dev/random is used
1001           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
1002
1003 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1004
1005         * Changed the SILC packet header to have the first two bytes
1006           (the packet length) encrypted.  Affected files aroung the
1007           code tree, lib/silccore/silcpacket.[ch].  Removed the
1008           SilcPacketCheckDecrypt callback.  It is not needed anymore
1009           since the silc_packet_receive_process will determine now
1010           whether the packet is normal or special.
1011
1012         * Implemented the unidirectional MAC keys.  Affected files
1013           lib/silcske/silcske.c, silcd/protocol.c and
1014           lib/silcclient/protocol.c.
1015
1016         * Implemented the packet sequence number to the MAC computation.
1017           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
1018           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
1019           lib/silcclient/protocol.c.
1020
1021 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1022
1023         * Allow backup router to announce servers.  All servers
1024           announced by backup router are added to the global list
1025           automatically.  Update hte server's socket to our primary
1026           router also when backup router announces a server.
1027           Affected file silcd/packet_receive.c.
1028
1029         * Do not update the client->router in the function
1030           silc_server_udpate_clients_by_server if the client is on
1031           global list.  We might fail to find any specific server
1032           for locally connected clients and local cell clients.  They
1033           should still use the `from' and not `to' as client->router.
1034           This fixes backup router resuming protocol.  Affected file
1035           silcd/server_util.c.
1036
1037         * Decrease channel statistics count only if the channel
1038           deletion worked.  Affected files are silcd/server.c and
1039           silcd/server_util.c.
1040
1041         * Added silc_server_update_servers_by_server to update origin
1042           of all server entries.  Used during backup router protocol.
1043           Affected files silcd/server_util.[ch], silcd/server.c. and
1044           silcd/backup_router.c.
1045
1046         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
1047           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
1048           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
1049           lib/silccrypt/silchmac.c.
1050
1051 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1052
1053         * Assure that router cannot reroute the same channel message
1054           to the sender.  Affected file silcd/packet_receive.c.
1055
1056 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1057
1058         * Made better checks that the channel message is not sent
1059           to the router it came from.  Affected file is
1060           silcd/packet_send.c.  Fixed memory leak too.
1061
1062         * Announce informations for incoming router connection, but
1063           only after checking if it is replaced by backup router.
1064           Affected file silcd/packet_receive.c.
1065
1066 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1067
1068         * Fixed the backup resuming protocol to work in multiple
1069           router environment.  Affected file silcd/server_backup.c.
1070
1071         * Route packet only to one router in the function
1072           silc_server_packet_send_to_channel.  Affected file is
1073           silcd/packet_send.c.
1074
1075         * Fixed silc_server_send_notify_dest to set the broadcast
1076           flag.  Fixed the silc_server_send_notify_topic to actually
1077           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
1078           Affected file silcd/packet_send.c.
1079
1080         * Changed the SFTP Filesystem interface.  Changed the
1081           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
1082           the filesystem operation function.  The SilcSFTPFilesystem
1083           is now a context that is allocated by all filesystem allocation
1084           functions and it already includes the operations structure
1085           and filesystem specific context.  It is given as argument
1086           now to the silc_sftp_server_start.  This made the interface
1087           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
1088           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
1089
1090 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1091
1092         * Changed the backup router adding and getting interfaces
1093           in the server.  The router that will be replaced by the
1094           specified backup router is now sent as argument.  Affected
1095           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
1096           silcd/server.c.
1097
1098         * Added silc_net_addr2bin_ne to return the binary form of
1099           the IP address in network byte order.  Affected files
1100           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
1101
1102 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1103
1104         * Check for existing server ID in silc_server_new_server
1105           and in silc_server_connect_to_router_final and remove the
1106           old entry if it exists.  Affected file silcd/packet_receive.c,
1107           silcd/server.c.
1108
1109         * Send the channel message always to only one router, either
1110           in upstream or downstream.  Affected file is
1111           silcd/packet_send.c.
1112
1113 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1114
1115         * Wrote the definition of the backup resuming protocol to the
1116           protocol specification.
1117
1118         * Removed one redundant channel key generation from normal
1119           server during joining procedure.  Removed one redundant
1120           channel key sending from server to router during joining
1121           procedure.  Affected file silcd/command.c.
1122
1123         * Made minor bugfixes to the backup router resuming protocol.
1124           Affected file silcd/server_backup.c, server.c.
1125
1126 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1127
1128         * Added --disable-asm configuration option.  Affected files
1129           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
1130           by salo.
1131
1132         * Implemented the backup resuming protocol that is used to
1133           resume the primary router position in the cell after the
1134           primary router comes back online.  Affected files
1135           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
1136           and silcd/server_util.[ch].
1137
1138 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1139
1140         * Sleep two (2) seconds after sending QUIT command to server.
1141           Affected file lib/silcclient/command.c.
1142
1143         * Assure that if outgoing data buffer is pending do not force
1144           send any data.  Affected file silcd/packet_send.c.
1145
1146         * Assure that if outgoing data buffer is pending do not force
1147           send any data.  Affected file lib/silcclient/client.c.
1148
1149         * Implemented the backup router support when the primary router
1150           goes down.  The servers and routers can now use the backup
1151           router as new primary router without loosing connectivity.
1152
1153 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1154
1155         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
1156           in the server to indicate disabled entry.  All data read
1157           from the connection will be ignored and no data is sent
1158           for entry that is disabled.  Affected files are
1159           silcd/idlist.h, silcd/server.c.
1160
1161 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1162
1163         * Created SFTP client and server test programs in the
1164           lib/silcsftp/tests directory.
1165
1166 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1167
1168         * Implemented memory filesystem (virtual filesystem) for
1169           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
1170           sftp_fs_memory.c.
1171
1172 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1173
1174         * Implemented the SFTP (SSH File Transfer Protocol) to the
1175           lib/silcsftp.  It includes SFTP client and SFTP server
1176           implementations.
1177
1178 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1179
1180         * Moved lib/silccore/silcprotocol.[ch] to the
1181           lib/silcutil library.
1182
1183         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
1184           take variable argument list pointer as argument.  Affected
1185           file lib/silcutil/silcbuffmt.[ch].
1186
1187         * Added silc_buffer_set function that is used to set data
1188           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
1189           Affected file lib/silcutil/silcbuffer.h.
1190
1191         * Changed various routines in the core library to use the new
1192           silc_buffer_set instead of allocating new buffer only for
1193           temporary purposes.
1194
1195         * Added 64-bit value formatting and unformatting support to the
1196           silc_buffer_[un]format routines.  Affected file is
1197           lib/silcutil/silcbuffmt.[ch].
1198
1199           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
1200           to includes/bitmove.h.
1201
1202 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1203
1204         * Fixed channel user mode saving in client library.  Affected
1205           file lib/silcclient/command[_reply].c.
1206
1207 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1208
1209         * Defined the file transfer to the SILC Protocol.  Added
1210           new packet type SILC_PACKET_FTP and defined File Transfer
1211           Payload.  The mandatory file transfer protocol is SFTP
1212           (SSH File Transfer Protocol).  Affected file in addition
1213           of the internet draft is lib/silccore/silcpacket.h.
1214
1215         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new 
1216           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
1217           is used as part of backup router protocol when the primary
1218           router of the cell is back online and wishes to resume
1219           the position as primary router.
1220
1221         * Redefined the MAC generation keys in the protocol.  The
1222           same key is not used anymore in both direction.  Both
1223           direction will now use different keys for sending and
1224           receiving.  This fixes a potential security flaw.  This
1225           change causes incompatibilities in the protocol.
1226
1227         * Redefined also the MAC computation from the packet.
1228           An packet sequence number is now added to the MAC 
1229           computation.  This prevents possible replay attacks against
1230           the protocol.  This change too causes incompatibilities
1231           in the protocol.
1232
1233           Added `sequence' field to the SilcPacketContext to hold
1234           the current sequence number for the packet.
1235
1236 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1237
1238         * Added `created' field to the SilcIDListData in the file
1239           silcd/idlist.h to indicate the time when the entry was
1240           created.
1241
1242         * Added `created' field to the SilcChannelEntry too.  Affected
1243           file silcd/idlist.h.
1244
1245         * Added `creation_time' aguments to all the announcement functions
1246           in the server.  If it is provided then only the entries that
1247           was created after the provided time frame are actually
1248           announced.  Affected file silcd/server.[ch].
1249
1250         * The protocol says that the Channel ID's IP address must be
1251           based on the router's IP address.  Added check for this in
1252           the silc_server_new_channel when processing incoming New Channel
1253           Payload.  Affected file silcd/packet_receive.c.
1254
1255         * Print out the correct version with --version in SILC client.
1256           Affected file irssi/src/silc/core/silc-core.c.
1257
1258 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1259
1260         * Fixed WHOWAS command to check for completnes of the client
1261           entry always, not just when the command is coming from client.
1262           Affected file silcd/command.c.
1263
1264         * Added new function silc_server_packet_queue_purge to purge the
1265           outgoing data queue to the network.  After the function returns
1266           it is guaranteed that the outgoing packet queue is empty.
1267           Affected file silcd/packet_send.[ch].
1268
1269         * Purge the outgoing packet queue in the rekey protocol's final
1270           callback to assure that all rekey packets go to the network
1271           before quitting the protocol.  Affected file silcd/server.c.
1272
1273         * Added silc_client_packet_queue_parse as similar function as
1274           in server to the client library.  The affected file is
1275           lib/silcclient/client.c.
1276
1277 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1278
1279         * Splitted silcd/server.c and created silcd/server_util.[ch]
1280           for utility functions.
1281
1282         * Added new socket flag SILC_SF_DISABLED to indicate that the
1283           connection is open but nothing can be sent to or received from
1284           the connection.  Affected file lib/silcutil/silsockconn.[ch].
1285           The checking for disabled socket is checked in the low level
1286           silc_socket_write and silc_socket_read functions.
1287
1288 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1289
1290         * Allow only nicknames and channel names that fits into the
1291           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
1292
1293 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1294
1295         * When processing JOIN command reply in server check that if
1296           the channel exists in our global list we'll move it the local
1297           list.  Affected file silcd/command_reply.c.
1298
1299         * Fixed the check whether client is joined on the channel already
1300           in JOIN command.  Affected file lib/silcclient/command.c.
1301
1302         * Fixed the JOIN command reply to check whether the channel
1303           already exists.  Affected file lib/silcclient/command_reply.c.
1304
1305 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1306
1307         * Added silc_ske_status_string to map the SKE error numbers
1308           to readable strings.  The affected files are
1309           lib/silcske/silcske[_status].[ch].
1310
1311 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1312
1313         * Do not show the private channels on the WHOIS channel list
1314           as it is not allowed by the protocol.  The affected file is
1315           silcd/server.c.
1316
1317 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1318
1319         * Assure that the packet length digged from the actual packet
1320           is something sensible in the silc_packet_decrypt_rest_special
1321           in lib/silccrypt/silcpacket.c.
1322
1323         * Free and NULL the allocated pointer in silc_hmac_alloc if
1324           the HMAC allocation fails.  The affected file is
1325           lib/silccrypt/silchmac.c.
1326
1327         * Print the selected security properties to the log files in
1328           the server.  Affected file silcd/protocol.c.
1329
1330         * Add SKE's reference counter even if calling the completion
1331           callback manually.  Otherwise it goes negative, although it
1332           does not cause any problems.  The affected file is
1333           lib/silcske/silcske.c.
1334
1335         * Remove the client entry with short timeout after giving the
1336           KILL command.  Affected file lib/silcclient/command.c.
1337
1338         * Fixed to send error reply in WHOIS and IDENTIFY commands in
1339           case all found clients are already disconnected (WHOWAS would
1340           found them) in the server.  Affected file silcd/command.c.
1341
1342         * Update the last_receive (time of last data received) to be 
1343           updated only when received private or channel message so that
1344           the idle time showed in WHOIS makes more sense.
1345
1346         * Added boolean field `valid' in to the SilcClientEntry in the
1347           client library to indicate whether the entry is valid or not.
1348           This fixes the nickname change bug on channel when changing
1349           the nickname to be same than the old (like nick to Nick) the
1350           nickname formatter doesn't set the new nick anymore to Nick@host.
1351           Affected file lib/silcclient/idlist.[ch].
1352
1353         * Now actually fixed the nickname changing on disconnection.
1354           Added new function silc_change_nick to the Irssi SILC Client.
1355           Affected file irssi/src/silc/core/client_ops.c,
1356           irssi/src/silc/core/silc-nicklist.[ch].
1357
1358 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1359
1360         * Check that the public key exists in the GETKEY command before
1361           trying to encode it.  Affected file silcd/command.c.
1362
1363         * Print some notifications on received public keys with GETKEY
1364           command in the Irssi SILC Client.  Affected files are
1365           irssi/src/fe-common/silc/module-formats.[ch],
1366           irssi/src/silc/core/client_ops.c.
1367
1368         * Use IDENTIFY command to resolve the server information in the
1369           GETKEY command instead of INFO command.  Affected file
1370           lib/silcclient/command.c.
1371
1372         * All command reply functions in the client library now calls
1373           the pending command reply callbacks even if an error has
1374           occurred.  The server has done this a long time and now it was
1375           time to move the client library to this as well.  Now all
1376           errors can be delivered back to the pending command reply
1377           callbacks if necessary.  Affected files are
1378           lib/silcclient/command[_reply].[ch].
1379
1380         * Change the nickname on disconnection back to the username
1381           because in reconnect the server will enforce it to it anyway.
1382           Affected file irssi/src/silc/core/silc-servers.c.
1383
1384         * Fixed a config file parsing bug in the Irssi SILC client.
1385           Affected file irssi/src/silc/core/clientconfig.c.
1386
1387 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1388
1389         * When printing the channel mode on JOIN, verify that the
1390           channel key and channel's HMAC are valid.  Affected file
1391           irssi/src/silc/core/client_ops.c.
1392
1393 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1394
1395         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
1396           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
1397           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
1398
1399         * Removed channel key rekey task deleting from the function
1400           silc_server_save_channel_key.  Affected file silcd/server.c.
1401           Added explicit timeout task context instead that is used to   
1402           delete the task if we are registering a new task before the
1403           new task has elapsed.
1404
1405         * When channel key rekey occurs the client library now saves
1406           the old channel key for a short period of time (10 seconds) and
1407           is able to use it in case some is still sending channel
1408           messages encrypted with the old key after the rekey.  Affected
1409           file lib/silcclient/[idlist.h|client_channel.c].
1410
1411 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1412
1413         * Added check to the silc_server_new_id_real to not accept
1414           new ID if it is the sender's own ID.  Affected file is
1415           silcd/packet_receive.c.
1416
1417         * Assure that we do not announce ourself or the one we've
1418           sending our announcements when we're router and are announcing
1419           servers to our primary router.  Affected file silcd/server.c.
1420
1421         * Fixed silc_server_command_identify_check_client to assemble
1422           correct WHOIS packet.  It send corrupted WHOIS packet and
1423           caused problem with router to router connections.  Affected
1424           file silcd/command.c.
1425
1426           Fixed also silc_server_command_whois_check the same way
1427           as for the IDENTIFY command.
1428
1429         * Added new SilcIDListStatus to the server in the SilcIDListData
1430           structure.   The status now includes the current status of
1431           the entry (like registered, resolved etc.).  Affected file
1432           silcd/idlist.[ch].  Defined a bunch of different status types
1433           as well.  This replaced the old boolean registered field as well.
1434
1435           Added resolve_cmd_ident field to the SilcClientEntry structure
1436           too so that if the entry is for example being resolved so 
1437           another command may attach to the same pending command reply
1438           without requiring to resolve the same entry again.  This concept
1439           should optimize the WHOIS and the IDENTIFY resolving under
1440           heavy load by taking away unnecessary resolving for entries
1441           that are being resolved already.
1442
1443           Added support for adding multiple pending commands for one
1444           command idenfier.  Affected file silcd/command[_reply].[ch].
1445
1446         * Fixed WHOIS and IDENTIFY save to remove the cache entry
1447           before deleting the data.  Otherwise the hash table will have
1448           freed data in comparison functions.  Affected file is
1449           silcd/command_reply.c.
1450
1451         * Fixed silc_idlist_replace_client_id to add the new entry to
1452           the cache with NULL nickname.  Otherwise there will be invalid
1453           memory as the nickname after the nickname is freed.  Affected
1454           file silcd/packet_receive.c.
1455
1456         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
1457           saved into wrong slots because the previous number of entries
1458           was not taken into account.  Affected file silcd/idlist.c.
1459           Fixed same thing in silc_idlist_get_clients_by_nickname too.
1460
1461         * If we are router and we receive JOIN notify to a channel that
1462           does not have any users then notified client is marked as the
1463           channel founder, as it is it.  The affected file is
1464           silcd/packet_receive.c
1465
1466         * Added to the extended hash table API's table_del_*ext functions
1467           the destructor as argument too, so that the caller can decide
1468           which destructor to use or whether to use destructor at all.
1469           Affected file lib/silcutil/silchashtable.[ch].
1470
1471         * Fixed ID Cache purging.  It actually deleted the entries from
1472           the hash table after the data was freed.  The hash table ended
1473           up comparing freed memory.  The affected file is
1474           lib/silccore/silcidcache.c.
1475
1476 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1477
1478         * Fixed Irssi SILC client's KILL command's HELP syntax.
1479
1480         * The USERS command now resolves the detailed user information
1481           if the userinfo field is missing.  Affected file is
1482           lib/silcclient/command_reply.c.
1483
1484         * Do not print error in silc_file_read if the read file does
1485           not exist.  Just silently return NULL.  Affected file is
1486           lib/silcutil/silcutil.c.
1487
1488         * Fixed the silc_log_output to not wine about NULL filename
1489           and to not create some bogus " " filename.  Affected file is
1490           lib/silcutil/silclog.c.
1491
1492 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1493
1494         * Fixed various printing bugs on the user interface in the
1495           Irssi SILC Client.  Minor changes that were forgotten from
1496           the release.
1497
1498 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1499
1500         * Fixed the configure.in.pre and the compilation and distribution
1501           environment to support the new autoconf 2.52.  That version is
1502           now required to compile the CVS trunk.
1503
1504 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1505
1506         * Renamed function silc_parse_nickname to silc_parse_userfqdn
1507           to generally parse user@fqdn format strings.  Affected file
1508           lib/silcutil/silcutil.c.
1509
1510         * Added nickname_format and nickname_force_format fields to the
1511           SilcClientParams structure.  The first one defines the format
1512           for the nicknames that the library will enforce if the receives
1513           multiple same nicknames.  The second one is boolean value and
1514           can be used to force the library to always enforce the format
1515           to the nicknames regardles whether there are multiple nicknames
1516           or not.  This configurable formatting was employed to flexibly
1517           support accessing multiple nicknames from the user interface.
1518           The userinterface can now set the nicknames to what ever format
1519           they prefer.  Affected file lib/silcclient/silcapi.h.
1520
1521           Added function silc_client_nickname_format to the file
1522           lib/silcclient/idlist.c.  It performs the nickname formatting.
1523
1524           Added new field `hostname´ to the SilcClientEntry context.
1525           It holds the hostname of the client.  Affected file is
1526           lib/silcclient/idlist.h.
1527
1528         * Irssi SILC Client sets the nicknames in nick@hostn format.
1529           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
1530           irssi/src/silc/core/silc-core.c.
1531
1532           The WHOIS printing now also shows both the real nickname and
1533           the formatted nickname so that user knows how to access the
1534           user if there are multiple same nicknames cached.  Affected
1535           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
1536           printing formatting too to take the hostname now as a separate
1537           argument.  The Affected file is
1538           irssi/src/fe-common/silc/modules-formats.[ch].
1539
1540         * Changed the silc_client_get_clients_local to accept the formatted
1541           nickname as argument.  It accepts the real nickname too but the
1542           formatted nickname can be used to find the true entry from 
1543           multiple entries.  Affected file lib/silcclient/silcapi.h and
1544           lib/silcclient/idlist.c.
1545
1546         * Added nickname_format_parse field to the SilcClientParams.
1547           It is a callback function provided by the application to parse
1548           the nickname out of the formatted nickname string. The library
1549           calls it to get the nickname from the formatted string. Since
1550           the application generally knows better the format of the nickname
1551           string it parses it instead of the library, even though library
1552           encodes the formatted string.  If the callback function is not
1553           provided then the library will use the string as is.  The
1554           affected file is lib/silcclient/silcapi.h.
1555
1556         * All the nickname strings passed to the client library in 
1557           commands are now expected to be formatted nickname strings.
1558           If the command does not support the formatted nickname string
1559           it will assume that the sent string is the actual nickname.
1560           Affected file lib/silcclient/command.c.
1561
1562 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1563
1564         * Added public key authentication support to OPER and SILCOPER
1565           commands in the client library.  Affected file is
1566           lib/silcclient/command.c.
1567
1568 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1569
1570         * Changed the get_auth_methdod client operation to be asynchronous.
1571           It can be async if the application resolves the authentication
1572           method from the server during the negotiation.  Added new
1573           SilcGetAuthMeth completion callback that the application will
1574           call after resolving the authentication method.
1575
1576           Added function silc_client_request_authentication_method that
1577           the application can use to resolve the authentication method
1578           from the server.  Added also SilcConnectionAuthRequest callback
1579           that the library will call after the server has replied.  The
1580           application can call this function if it does not know the
1581           current authentication method.
1582
1583           Affected files are lib/silcclient/client.c and 
1584           lib/silcclient/silcapi.h.
1585
1586         * The Irssi SILC client now automatically resolves the authentication
1587           method incase any configuration information is not present (and
1588           currently there never is).  The affected file is
1589           irssi/src/silc/core/client_ops.c.
1590
1591         * Fixed public key authentication from the client library.
1592           Affected file lib/silcclient/protocol.c.  Changed also the
1593           protocol specification about the public key authentication in
1594           the connection authentication protocol.  The actual data to be
1595           signed is now computed with a hash function before signing.
1596
1597         * Fixed the public key authentication from the server as well.
1598           Affected file silcd/protocol.c.
1599
1600         * Removed the mlock()'s from the memory allocation routines.
1601           Affected file lib/silcutil/silcmemory.c.  The ./configure does
1602           not check anymore for the mlock().  Affected file is
1603           configure.in.pre.
1604
1605         * Fixed USERS command in server to allow the execution of the
1606           command for private and secret channels if the client sending
1607           the command is on the channel.  Affected file silcd/command.c.
1608
1609         * Fixed silc_client_get_clients_local to return the clients
1610           count correctly.  It could return wrong value.  Affected file
1611           lib/silcclient/idlist.c.
1612
1613 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1614
1615         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
1616           types.  The assembler optimizations seemed not to like 64-bit
1617           data types.  The assmebler optimizations thus are now enabled
1618           also for BSD systems as opposed to only enable them for Linux.
1619
1620         * Do not check for threads at all on BSD systems.  Affected
1621           file configure.in.pre.
1622
1623         * Removed -n and -h options from the Irssi SILC Client since
1624           they are not used in silc.
1625
1626         * Fixed the prime generation to assure that the first digit
1627           of the generated random number is not zero since our conversion
1628           routines does not like number strings that starts with zero
1629           digit.  If zero digit is seen the random number is regenerated.
1630           This caused some corrupted RSA keys when the zero first digit
1631           was met.  Affected file lib/silcmath/silcprimegen.c.
1632
1633 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1634
1635         * Fixed WIN32 configuration in the ./configure script.
1636           Fixed to include xti.h on environments that has it.
1637           Patches by Carsten Ilchmann and andrew.
1638
1639 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1640
1641         * Changed the silc_id_create_client_id to be collision
1642           resistant.  It is now assured that there cannot be created
1643           two same client ID's.  I suspect that some weird bugs in 
1644           the server were actually caused by duplicate Client IDs.
1645           Affected file silcd/serverid.[ch].  A router receiving
1646           new ID now also assures and informs the sending server
1647           if the ID caused collision.
1648
1649         * Changed the silc_id_create_channel_id to also assure that
1650           there are no collisions.
1651
1652 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1653
1654         * Statement about ignoring the Mutual Authentication flag when
1655           performing rekey with PFS was a bit misleading.  It is ignored
1656           if it was set in the initial negotiation, it cannot be even
1657           set in the rekey.  Fixed in the ke-auth draft.  Started the
1658           new versions of the protocol drafts in the doc/.
1659
1660 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1661
1662         * Fixed a bug in silc_client_command_identify_save when saving
1663           new channel information.  The channel name was no duplicated
1664           and caused crash on exit.  Affected file is
1665           lib/silcclient/command_reply.c.
1666
1667 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1668
1669         * Fixed the getkey command handling in the server.  Send just
1670           empty OK reply to the sender if the key could not be fetched
1671           (but everything else was ok, like the key just was not available).
1672           Changed the public key parameter to optional in the protocol
1673           specs so that empty OK reply can be sent.  Affected file
1674           silcd/command.c.
1675
1676           Added a message to Irssi SILC client to tell to user if the
1677           server did not return a public key.
1678
1679 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
1680
1681         * Fixed a channel key regeneration bug.  It registered new
1682           timeout tasks exponentially until all system resources were
1683           used.  Affected file silcd/server.c.
1684
1685 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1686
1687         * Added the SILC Document generator to the scripts/silcdoc.
1688           It can be used to generate the Toolkit Reference Manual out
1689           of the source tree.  Internally it will also use the RoboDoc
1690           generator now imported in util/robodoc.
1691
1692 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1693
1694         * Added couple of return's in rekey protocol if error orccurred
1695           during the protocol.  The execution must be terminated.
1696           Affected file silcd/protocol.c.  Also, terminate the protocol
1697           always with timeout.
1698
1699 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1700
1701         * The client's Client ID was created initally from the wrong
1702           nickname (it could have been in format nick@host) in the
1703           silc_server_new_client.  Affected file silcd/packet_receive.c
1704
1705 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1706
1707         * Added some SILC_LOG_ERROR's to various error conditions
1708           if client could not be added to ID cache.  Affected files
1709           silcd/packet_receive.c and silcd/server.c.
1710
1711         * When client's sock->user_data is freed, NULL also the 
1712           client->router and client->connection pointers.  Added check
1713           for these pointers being NULL to various places around the
1714           code.  Affected file silcd/server.c.
1715
1716         * Added client->data.registered == TRUE checks to various
1717           places around the code to assure that unregistered client's
1718           are not handled when it is not allowed.  Affected file
1719           silcd/server.c.
1720
1721         * Added `bool registered' fields to all 
1722           silc_idlist_[server|client]_get_* routines to indicate whether
1723           the fetched client needs to be registered or not.  Affected
1724           file silcd/idlist.[ch].
1725
1726         * Add your own entry as registered to the ID cache in the
1727           server.  Affected file server.c.
1728
1729         * Fixed a bug in silc_server_new_server.  The SilcServer was
1730           set as the new server's context instead of SilcServerEntry.
1731           This naturally caused some weird bugs.
1732
1733 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1734
1735         * Do not delete the channel rekey task when adding it
1736           for in silc_server_create_channel_key.
1737
1738         * Changed the silc_server_create_channel_key to return
1739           TRUE or FALSE to indicate the success of the channel key
1740           creation.
1741
1742 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1743
1744         * Fixed MSVC++ project files and added missing files to
1745           Makefiles under win32/.
1746
1747 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1748
1749         * Do not add TCP_NODELAY flag if the operating system
1750           does not have it defined.  Affected files are
1751           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
1752
1753         * Fixed buffer overflow from Irssi SILC Client.  Affected
1754           file irssi/src/fe-common/core/themes.c.
1755
1756         * Fixed double free in client library in the file
1757           lib/silcclient/client.c when disconnecting from server.
1758
1759         * Applied double free patch from cras to Irssi SILC client.
1760           Affected files irssi/src/core/[modules/expandos].c
1761
1762         * Fixed the disconnection handling to Irssi SILC Client.
1763           The application must call silc_client_close_connection
1764           in ops->connect client operation in case of failure of
1765           the connection.  Affected file is
1766           irssi/src/silc/core/client_ops.c.
1767
1768         * Do not set sock->protocol to NULL in the function
1769           silc_client_close_connection after executing the protocol's
1770           final callback since the sock might not be valid anymore.
1771           Affected file lib/silcclient/client.c.
1772
1773 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1774
1775         * Do not enable SILC_THREADS if the linking with libpthread
1776           did not happen.  Affected file configure.in.pre.
1777
1778         * Added notion to protocol specification that server must
1779           verify the sent authentication payload with CMODE when
1780           setting the channel founder key.  Implemented it to the
1781           server.  Affected file silcd/command.c.
1782
1783 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1784
1785         * Added _EXTRA_DIST SILC distribution variable to the
1786           distributions file.  It is used to conditionally add extra
1787           files or directories to the specific distribution.  Affected
1788           files ./prepare, Makefile.am.pre and distributions.
1789
1790           Removed the `_' from the start of the distribution names.
1791           It is redundant.
1792
1793         * Added README.WIN32 for instructions to compile the Toolkit
1794           under WIN32.
1795
1796 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1797
1798         * Fixed a double free in disconnection in the server.  Affected
1799           file is silcd/server.c.
1800
1801         * Fixed the lib/silcske/groups.c to work now also with GMP
1802           MP library.  The string conversion did not work when using
1803           specific base and the base is indicated in the string as well.
1804
1805         * Created win32/ directory which now includes MSVC++ specific
1806           stuff so that toolkit (DLLs) may be compiled with MSVC++.
1807           It will appear only in the toolkit distribution
1808
1809 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1810
1811         * Changed the key material distribution function in case when
1812           the hash output is too short.  The data is now concatenated
1813           a bit differently than it used to.  Made the change to the
1814           SKE protocol specification.
1815
1816         * Added better GMP detection to configure.in.pre.  A patch
1817           by salo.
1818
1819 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1820
1821         * Fixed a minor bug in SKE that might cause some problem on
1822           some platforms.  Affected file lib/silcske/silcske.c.
1823
1824         * Added the cookie checking for initiator in the SKE.  It checks
1825           that the responder returns the sent cookie unmodified.  The
1826           affected file is lib/silcske/silcske.c.  Added new SKE
1827           error type INVALID_COOKIE that can be sent during the
1828           negotiation.  Fixed some memory leaks as well.
1829
1830         * Added the "invalid cookie" error message to Irssi SILC client's
1831           message formats.
1832
1833 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1834
1835         * Added `task_max' field to the SilcClientParams to indicate
1836           the maximum tasks the scheduler can handle.  If set to zero,
1837           default values are used.  Affected file lib/silcclient/silcapi.h.
1838
1839         * Fixed memory leaks in silc_client_close_connection.  Affected
1840           file lib/silcclient/client.c.
1841
1842         * Added silc_client_del_client_entry to client library to free
1843           all memory of given client entry.  Affected file is
1844           lib/silcclient/idlist.[ch].
1845
1846         * Added new functions silc_client_del_channel and
1847           silc_client_del_server to delete channel and server entries.
1848           Affected file lib/silcclient/[silcapi.h/idlist.c].
1849
1850         * Removed silc_client_del_client_by_id from silcapi.h.
1851
1852         * Fixed the INFO command to return the server's own info
1853           correctly when querying by Server ID.  Affected file is
1854           silcd/command.c.
1855
1856 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1857
1858         * Removed the non-blocking settings in WIN32 code in the
1859           silc_sock_[read/write] and added SleepEx instead.  Affected
1860           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
1861           of input data is now checked with FIONREAD and ioctlsocket.
1862
1863 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1864
1865         * Call silc_schedule_task_del_by_context in the 
1866           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
1867           Affected file lib/silccore/silcprotocol.c.
1868
1869         * Call silc_protocol_cancel for active protocols in the
1870           silc_server_close_connection if the funtion
1871           silc_server_free_sock_user_data has not been called.
1872           Affected file silcd/server.c.
1873
1874         * Generic tasks cannot be deleted using the del_by_fd
1875           task deleting function since generic tasks does not match
1876           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
1877
1878         * Added a notion to SILCOPER help file that the SILCOPER works
1879           only on router server, not on normal server.
1880
1881 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1882
1883         * Added for WIN32 support for the new scheduler as well.
1884           Affected file lib/silcutil/win32/silcwin32schedule.c.
1885
1886         * Fixed the SHA1 implementation to work on various platforms.
1887
1888 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1889
1890         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
1891           API.  It is part of the scheduler now.  Everything else is
1892           as previously but some functions has changed their names.
1893           Checkout the lib/silcutil/silcschedule.h for the interface.
1894           Updated all applications to use the new interface.  Affected
1895           files are lib/silcutil/silcschedule.[ch].
1896
1897 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1898
1899         * Found a bug in the SKE implementation.  The HASH value,
1900           specified by the protocol, was not computed correctly.  The
1901           public key of the responder was not added to the computation
1902           even though it is mandatory.  Affected file lib/silcske/silcske.c.
1903           This unfortunately causes incompatibilities with older
1904           clients and servers.
1905
1906         * Added WIN32 specific network init and uninit functions:
1907           silc_net_win32_init and silc_net_win32_uninit to init and uninit
1908           the Winsock2.  Affected file lib/silcutil/silcnet.h and
1909           lib/silcutil/win32/silcwin32net.c.
1910
1911         * Set the socket always to nonblocking mode on WIN32 after
1912           reading data or writing data.  Affected file is
1913           lib/silcutil/win32/silcwin32sockconn.c.
1914
1915 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1916
1917         * Fixed various compilation problems under WIN32.  Affected
1918           files lib/silcutil/win32/silcwin32thread.c and
1919           lib/silcutil/win32/silcwin32schedule.c.
1920
1921         * Removed all _internal.h #includes from public header
1922           files.  Internal headers must never be included from
1923           public headers.
1924
1925           Removed also the lib/silcske/payload_internal.h file.
1926
1927         * All include files that may be needed (public and some others
1928           included by the public headers) by application developers are
1929           now copied to the ./includes directory.  It does not copy any
1930           internal headers.  Affected file Makefile.defines.pre and all
1931           Makefile.am's under lib/ and subdirs.
1932
1933 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1934
1935         * Do not change the ~/.silc directory's permissions automatically.
1936           Affected file irssi/src/silc/core/clientutil.c.
1937
1938 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1939
1940         * Do not cancel the protocol in silc_server_close_connection
1941           it might cause recursion.  Now cancelled in the function
1942           silc_server_free_sock_user_data.  Affected file silcd/server.c.
1943
1944         * Fixed the silc_server_remove_clients_by_server to regenerate
1945           the channel keys correctly finally.  Added also new function
1946           silc_server_remove_clients_channels to actually do it.
1947           Affected file silcd/server.c.
1948
1949         * Fixed the silc_server_new_channel to not crash by giving
1950           wrong router to the new channel.  Affected file is
1951           silcd/packet_receive.c.
1952
1953 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1954
1955         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
1956           which is given as argument to the silc_client_alloc now.
1957           It can be used to configure the client and set various parameters
1958           that affect the function of the client.
1959
1960         * The USERS command in server did not check whether the channel
1961           is private or secret.  Affected file silcd/command.c.
1962
1963         * Added new argument to the USERS command in protocol specification.
1964           The USERS command now can take the channel name as argument
1965           as well.  Added support for this in client and server and
1966           updated the protocol specs.
1967
1968         * Completed the GETKEY command in client. It can be now used
1969           to fetch also servers public key not only some clients. 
1970           Affected files lib/silcclient/command[_reply].c.
1971
1972         * Added silc_client_get_server to return server entry by the
1973           server name.  Affected files lib/silcclient/silcapi.h and
1974           idlist.c.
1975
1976         * Redefined the IDENTIFY command in protocol specification to be
1977           more generic.  It now can be used to query information about
1978           any entity in the SILC Network, including clients, servers and
1979           channels.  The query may be based either the entity's name
1980           or the ID.  Added support for this in both client and server.
1981
1982           Affected files silcd/command.c and lib/silcclient/command.c
1983           and command_reply.c.
1984
1985         * Optimized the WHOIS and WHOWAS commands in the server. Removed
1986           the _from_client and _from_server functions.  Affected file
1987           silcd/command.c.
1988
1989         * Added silc_client_get_channel_by_id_resolve to the file
1990           lib/silcclient/silcapi.h to resolve channel information by
1991           its ID.  Added also silc_client_get_channel_by_id that
1992           does not resolve it from the server.
1993
1994 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1995
1996         * Added SilcServerEntry context into the client library
1997           to represent one server.  The INFO command now allocates
1998           these to save the resolved server info.  For now on the
1999           client library will also keep information about servers,
2000           connected and resolved with INFO.
2001
2002           The INFO command now allocates the SilcServerEntry context
2003           and saves the server info there.  The COMMAND_REPLY in
2004           the INFO now returns the parameters to application in 
2005           same order as defined in the protocol specification.
2006
2007           The entries are cached in the client->server_cache.
2008
2009         * The INFO command is now issued after received the Client ID
2010           from the server.  Affected file lib/silcclient/client.c.
2011
2012         * The CMODE_CHANGE notify may now return also an SilcServerEntry
2013           to the application as the mode changer might be server.
2014           It is guaranteed that NULL is not returned anymore to the
2015           application.  Affected file lib/silcclient/client_notify.c.
2016
2017           The ID Type is now also passed to the application so that
2018           it can check whether the returned entry is SilcClientEntry
2019           or SilcServerEntry.
2020
2021           Added new function silc_client_get_server_by_id to return
2022           the server entry by ID.  Affected files are the
2023           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
2024
2025         * Do not create the channel in the Irssi SILC Client when issuing
2026           the JOIN command but when received the sucessful JOIN command
2027           reply.  Otherwise the channel might get created even though we
2028           could not join it.  The Affected file is
2029           irssi/src/silc/core/[silc-channels.c/client_ops.c].
2030
2031         * Fixed a channel joining bug in router.  The router must also
2032           check the channel modes, invite and ban lists etc. when serving
2033           the JOIN command sent by normal server.  Affected file is
2034           silcd/command.c.  The router now resolves the client's 
2035           information from the server who sent the JOIN command if it
2036           does not know it, and processes the JOIN command only after
2037           that.
2038
2039         * Changed the SilcCommandCb to take new argument; void *context2.
2040           Affected file lib/silccore/silccommand.h
2041
2042           The second argument in the command callbacks in the server now
2043           includes the SilcServerCommandReplyContext if the command was
2044           called as pending command callback from the command reply.
2045           Otherwise it is NULL. When called as pending the status of the
2046           command reply will be checked and if it was erronous the
2047           error will be sent to the original sender of the command.
2048           This way the client always receives the error messages even
2049           though the server was actually the one who received the error
2050           when it resent the command to router, for example.  Affected
2051           files silcd/command[_reply].[ch].
2052
2053         * Fixed sending WHOWAS command's error message to client if
2054           the requested client could not be found.  It was missing.
2055           silcd/command.c.
2056
2057         * Changed the CMODE and CUMODE commands reply arguments in the
2058           protocol specification.  The Channel ID is now sent in both
2059           of the commands to identify the channel.  Implemented this
2060           new feature to the client and server.  Affected files
2061           lib/silcclient/command_reply.c and silcd/command.c.
2062
2063         * Made better checks for invite and ban lists in the JOIN
2064           command in server.  Affected file silcd/command.c.
2065
2066 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2067
2068         * The server now performs the incoming host IP/DNS lookup
2069           using the silc_socket_host_lookup and thus does not block
2070           the server anymore.  Affected file silcd/server.c.
2071
2072         * Completed the multi-thread support for SILC Scheduler in
2073           the lib/silcutil/silcschedule.c.
2074
2075         * Fixed the configure.in.pre to detect the pthread correctly
2076           on various systems.
2077
2078         * Fixed a deadlock in silc_task_queue_wakeup in the file
2079           lib/silcutil/silctask.c.
2080
2081 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2082
2083         * Added new function silc_schedule_wakeup that is used in
2084           multi-threaded environment to wakeup the main thread's
2085           schduler. It needs to be used when a thread adds a new task
2086           or removes a task from task queues. After waking up, the
2087           scheduler will detect the task queue changes. If threads
2088           support is not compiled in this function has no effect.
2089           Implemented the wakeup mechanism to both Unix and WIN32
2090           systems.  Affected files are lib/silcutil/silcschedule.[ch],
2091           lib/silcutil/unix/silcunixschedule.c and the
2092           lib/silcutil/win32/silcwin32schedule.c.
2093
2094         * Added new function silc_task_queue_wakeup to wakeup the
2095           scheduler by the specified task queue.  Affected file
2096           lib/silcutil/silctask.[ch].
2097
2098         * The silc_socket_host_lookup_start now wakes up the scheduler
2099           after adding the timeout task.  Affected file is
2100           lib/silcutil/silcsockconn.c.
2101
2102         * The silc_socket_host_lookup is synchronous now if the threads
2103           support is not compiled in.  However, the callback is still
2104           called asyncronously through the scheduler, anyway.  Affected
2105           file lib/silcutil/silcsockconn.c.
2106
2107 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2108
2109         * Added new function silc_socket_host_lookup to perform
2110           asynchronous IP and FQDN lookups for the socket connection.
2111           Affected files lib/silcutil/silcsockconn.[ch].
2112
2113 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2114
2115         * Added SILC_MUTEX_DEFINE to define the mutex on environments
2116           that may or may not compile the mutex support in.
2117         
2118           Changed the silc_mutex_alloc interface. It allocates the
2119           mutex now to the sent pointer and returns TRUE or FALSE.
2120
2121           Affected file lib/silcutil/silcmutex.h.
2122
2123         * Wrote the SILC Task Queue interface to support multi-threads.
2124           Affected file lib/silcutil/silctask.[ch].
2125
2126         * Wrote the SILC Scheduler to support multi-threads.  Affected
2127           file lib/silcutil/silcschedule.c.
2128
2129 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2130
2131         * Implemented the SILC Mutex API and SILC Thread API for WIN32
2132           in lib/silcutil/win32/.
2133
2134 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2135
2136         * Defined SILC Mutex API and SILC Thread API and implemented
2137           them for Unix.  Affected files are
2138           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
2139           lib/silcutil/unix/silcunixmutex.c and
2140           lib/silcutil/unix/silcunixthread.c.
2141
2142 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2143
2144         * Fixed the silc_server_remove_clients_by_server's channel
2145           key re-generation.  The hash table handling was incorrect
2146           and would not work with many channels.  Affected file is
2147           silcd/server.c.
2148
2149         * Fixed some memory leaks around the server code.
2150
2151         * Rewrote the silc_server_get_users_on_channel to support IPv6
2152           based Client ID's.  Affected file silcd/server.c.
2153
2154         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
2155           specification.  However, a separate document must be written
2156           to define the detailed signing procedure and the payload
2157           associated with the flag.  Defined the flag to the
2158           lib/silccore/silcchannel.h as well.
2159
2160 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2161
2162         * Changed the dynamic tables to static size tables in the
2163           lib/silccrypt/silchmac.c.
2164
2165         * Removed GCC dependencies from the code.  A patch by cras.
2166
2167 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2168
2169         * Do not show the error "Error receiving packet bla bla"
2170           in server if it really was not an error (-2 means that reading
2171           is pending).  Affected file silcd/server.c.
2172
2173 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2174
2175         * Fixed a possible crash in silc_server_remove_clients_by_server
2176           in silcd/server.c.  Fixed there also some memory leaks.
2177
2178         * Fixed the silc_idlist_replace_client_id.  It could replace
2179           wrong key in the hash table.  Affected file silcd/idlist.c.
2180
2181         * Do not check whether there are global users on the channel
2182           if the channel->global_users is FALSE.  Affected functions
2183           silc_server_remove_from_one_channel and
2184           silc_server_remove_from_channels in silcd/server.c.  Also,
2185           do not check if the removed client is local as we can be
2186           sure that global client was not removed from the channel
2187           and checking for global users is not needed.
2188
2189         * The silc_server_remove_clients_by_server now re-generates
2190           the channel keys correctly for those channels that had
2191           clients removed from them.  Affected file silcd/server.c.
2192
2193 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2194
2195         * Found the reason of random crashes in the server.  We weren't
2196           ignoring the SIGPIPE signal (which can be sent in write())
2197           and it crashed the server.  Affected file silcd/silcd.c.
2198
2199 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2200
2201         * Assure that sock->user_data is not NULL in the function
2202           silc_server_packet_send in silcd/packet_send.c.
2203
2204         * Disconnect the remote connection if it could not be added
2205           to any ID lists in the server.  The affected file is
2206           silcd/server.c.
2207
2208         * Check in silc_server_packet_send[_real/dest] that the
2209           socket is not disconnecting and ignore the data if it is.
2210           Affected file silcd/packet_send.c.
2211
2212         * Define inline to __inline on native WIN32 compilation.
2213           Affected file includes/silcwin32.h.
2214
2215         * Added some explicit type casts for inline code since MSVC
2216           require them.  Affected files lib/silcutil/silcbuffer.h,
2217           lib/trq/silcdlist.h and lib/trq/silclist.h.
2218
2219         * Print warning in log files from now on if the packet
2220           decryption fails.  Affected file silcd/server.c.
2221
2222 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2223
2224         * Changed the `say' client operation's interface to accept
2225           new `type' argument to indicate the type of the message sent
2226           by the library.  The application may filter the library's
2227           messages according the type.  The affected file is the
2228           lib/silcclient/silcapi.h.
2229
2230         * Added two new functions to lib/silcclient/silcapi.h:
2231           silc_client_del_client and silc_client_del_client_by_id.
2232           Affected file lib/silcclient/idlist.c.
2233
2234         * Moved the clientincludes.h from includes/ to silc/ and
2235           serverincludes.h from includes/ to silcd/.
2236
2237         * The modes for the CMODE and CUMODE are now passed as
2238           uint32 for application with COMMAND_REPLY.  The affected
2239           file is lib/silcclient/command_reply.c.
2240
2241 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2242
2243         * /WHOIS without arguments shows client's own information.
2244           Affected file lib/silcclient/command.c.
2245
2246         * Changed PING to not accept any arguments.  The specs
2247           says that client can ping only the connected server so
2248           requiring an argument is not needed.  Affected file is
2249           lib/silcclient/command.c.
2250
2251 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2252
2253         * Fixed a fatal bug in private message sending and reception
2254           encryption and decryption when using private message keys.
2255           The implementation was incorrect and did not follow the
2256           specification.  It causd that some of the message were
2257           lost since it did not use the sending and receiving keys
2258           as the protocol suggests.  This has been fixed and will cause
2259           incompatibilities with older clients when sending private
2260           message encrypted with private message keys.  Affected files
2261           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
2262           and various other in Irssi SILC Client.
2263
2264           Added `responder' boolean argument to the functions
2265           silc_client_add_private_message_key[_ske] to indicate when
2266           the key is added as responder or initiator of the key
2267           negotiation.
2268
2269 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2270
2271         * Removed the silc_ske_check_version function and created
2272           a SilcSKECheckVersion callback.  Added also a function
2273           silc_ske_set_callbacks that is now used to set all SKE
2274           callbacks.  The callback functions are not given to
2275           the SKE functions anymore, but this function is used to
2276           set the callbacks.
2277
2278         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
2279
2280         * Added `silc_version' argument to the silc_client_alloc
2281           to define the version of the application for the library.
2282           The library will use the version string to compare it
2283           against the remote host's (usually a server) version
2284           string.  Affected file lib/silcclient/silcapi.h
2285
2286         * Added the KE protocol context to Key Agreement context
2287           in client library so that we can abort the SKE if it
2288           is in process when we get timeout.  Affected file is
2289           lib/silcclient/client_keyagr.c.
2290
2291         * Do not resolve the client ID forever if it returns in the
2292           first time that such client does not exist.  This was done
2293           for example with private message.  Affected file is
2294           lib/silcclient/client_prvmsg.c.
2295
2296 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2297
2298         * Do not add regex.h for WIN32.  The affected file
2299           includes/silcincludes.h.
2300
2301         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
2302           not work yet 100%.  It generates the DLL's automatically
2303           when compiling with --with-win32 under cygwin.
2304
2305 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2306
2307         * lib/contrib/regex.c is not compiled on WIN32.
2308
2309         * Added silc_net_get_socket_opt function to the
2310           lib/silcutil/silcnet.h.
2311
2312         * Added includes/silcwin32.h for WIN32 specific includes
2313           and definitions.
2314
2315         * Do not use ptime structure or any of the posix process
2316           functions on WIN32 in lib/silccrypt/silrng.c.
2317
2318         * Added silc_gettimeofday to provide generic function
2319           for struct timeval on all platforms.  Added the function
2320           to lib/silcutil/silcutil.h.
2321
2322 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2323
2324         * Moved the lib/silccore/silcsockconn.[ch] to the utility
2325           library as they clearly belong there.  As a plus side we
2326           can make the actual socket connection routines platform
2327           specific.
2328
2329           Added also new generic function silc_socket_read and
2330           silc_socket_write (that used to be silc_packet_[read/write].
2331           The implementation of these are platform specific.
2332
2333         * Added WIN32 specific routines of silc_socket_[read/write]
2334           to lib/silcutil/win32/silcwin32sockconn.c.
2335
2336 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2337
2338         * Added preliminary support for native WIN32 compilation under
2339           cygwin (using the -mno-cygwin option for GCC) to the
2340           ./configure.in.pre.  The --with-win32 now prepares the
2341           compilation for native WIN32.
2342
2343         * Rewrote the SILC Scheduler interface in the file
2344           lib/silcutil/silcschedule.h.  The scheduler is now context
2345           based and does not have anymore any global static scheduler.
2346           Moved the Unix scheduler to the lib/silcutil/unix/ directory
2347           and created lib/silcutil/win32 directory for WIN32 based
2348           scheduler.
2349
2350         * Added Unix specific network routines to the
2351           lib/silcutil/unix/silcunixnet.c and the old
2352           lib/silcutil/silcnet.c includes now only generic routines.
2353
2354           Added WIN32 specific network routines to the
2355           lib/silcutil/win32/silcwin32net.c.
2356
2357         * Added Unix specific utility functions from the
2358           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
2359
2360         * Added WIN32 SILC Scheduler to the file
2361           lib/silcutil/win32/silcwin32schedule.c. The code is of course
2362           untested.
2363
2364 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2365
2366         * Do not handle JOIN notify in the server if the target client
2367           is not registered (idata->registered == FALSE).  The affected
2368           file is silcd/packet_receive.c.
2369
2370         * Update the nickrec->founder in event_cumode in the Irssi SILC
2371           client.  Affected file irssi/src/silc/core/silc-channels.c.
2372
2373         * Fixed the CUMODE_CHANGE notify handling in the server when
2374           server and router are announcing their clients on channels.
2375           Now the mode changes are saved and notified correctly.  The
2376           affected file is /silcd/packet_receive.c.
2377
2378         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
2379           They really did not replace the cache entry in the ID Cache.
2380           Now they do that.  Affected file silcd/idlist.c.
2381
2382         * Fixed the KICK notify handling in the Irssi SILC client to
2383           update the channel records so that the kicked client does not
2384           appear to be on the channel.  The affected file is 
2385           irssi/src/silc/core/silc-channels.c.
2386
2387         * Always update the conn->current_channel when executing command
2388           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
2389
2390         * Fixed the KILL notify handling in Irssi SILC client to remove
2391           the killed client on all channels.
2392
2393 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2394
2395         * Fixed the silc_parse_command_line to remove extra spaces
2396           from the start and end of the arguments.  Affected file is
2397           lib/silcutil/silcutil.c.
2398
2399         * Cancel and free any active protocol in the function
2400           silc_server_close_connection.  Affected file silcd/server.c.
2401
2402         * Cancel and free any active protocol in the function
2403           silc_client_close_connction.  Affected file is
2404           lib/silcclient/client.c.
2405
2406         * Do not execute the KILL command for clients that are in
2407           history (ie. they are not in the network).  Affected file is
2408           silcd/command.c.
2409
2410         * Fixed KILL notify handling, client does not crash anymore.
2411           Affected file irssi/src/silc/core/silc-channels.c.
2412
2413         * Reduced the default packet buffer size from 2048 to 1024 in   
2414           lib/silccore/silcpacket.c.
2415
2416         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
2417           counter to the SKE context that is incresed when the SKE library
2418           performs async operation outside the library.  If the outside
2419           process frees the SKE context and FREED status will be set 
2420           and the library will detect after the sync operation that the
2421           libary is freed.  The affected files are
2422           lib/silcske/silcske[_status].[ch].
2423
2424         * Resolve the client entry information in the function
2425           silc_client_channel_message to assure that NULL pointer is not
2426           passed as client entry to the application. */
2427
2428         * Fixed the task timeout calculation to assure that there is
2429           never negative timeouts.  The affected file is 
2430           lib/silcutil/silcschedule.c.
2431
2432         * Fixed the channel user mode notification sending in server.
2433           It was sent point-to-point to the router (or to server by router)
2434           but it needs to be destined to a channel.  The routines now
2435           supports sending the channel user mode notifys to the channels
2436           when announcing clients and channels.  Affected files are
2437           silcd/server.c and silcd/packet_receive.c.
2438
2439         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
2440           It did not actually replace the old channel entry in the cache.
2441           Affected file lib/silcclient/client_notify.c.
2442
2443 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2444
2445         * Fixed a possible crash in silc_packet_send_prepare.  It now
2446           assures always that there is enough space in the buffer and
2447           at the tail area of the buffer (for MAC). 
2448
2449           Fixed the inbound buffer reallocation in silc_packet_read.
2450           It was old code and did not handle the reallocation correctly.
2451           Affected
2452
2453           The affected file is lib/silccore/silcpacket.c.
2454
2455         * Fixed buffer overflow in silc_parse_nickname in the file
2456           lib/silcutil/silcutil.c.
2457
2458 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2459
2460         * make install generates new server keys only if there is not
2461           keys already.
2462
2463 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2464
2465         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
2466           Added check that if the NOREPLY is set then we will not send
2467           the away message.  This avoids infinite loop of away messages
2468           if both clients are away.  The affected file is
2469           lib/silcclient/client_prvmsg.c.
2470
2471         * Fixed client crash if /NICK was given without arguments.
2472           Affected file lib/silcclient/command.c.
2473
2474         * Server does not send the invite list in INVITE command back
2475           to the client if the list was not altered.  Added this notion
2476           to the protocol spec as well.  Affected file silcd/command.c.
2477
2478           Fixed possible crash in INVITE command by checking the
2479           value of silc_server_get_client_route command.
2480
2481         * Fixed the INVITE notify type handling.  The arguments are now
2482           taken in correct order and client does not crash.  The affected
2483           file is irssi/src/silc/core/silc-channels.c.
2484
2485           Removed the "Inviting xxx to channel" message from the
2486           client library away and let the application handle it.
2487           Affected file lib/silcclient/command.c.  Added that message
2488           to Irssi SILC client's message formats.
2489
2490         * Fixed CMODE command crash in client.  It now checks the
2491           amount of arguments correctly and does not crash.  The affected
2492           file is lib/silcclient/command.c.
2493
2494         * Do not create new channel automatically in silc_channels_join
2495           but check whether the channel by that name already exists.
2496           Affected file irssi/silc/core/silc-channels.c.
2497
2498         * Do not send the SERVER_SIGNOFF to router if the disconnected
2499           entity was the router.  Affected file silcd/server.c.
2500
2501         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
2502           SILC client as it was missing from there.
2503
2504           Added the handling of the KICK notify to the Irssi SILC client
2505           as it was missing.  Added "you have been kicked" message to
2506           Irssi SILC client's message modules formats.
2507
2508           Added the handing of the KILL notify to the Irssi SILC client
2509           as it was missing.  Added the kill message module formats 
2510           as well.
2511
2512           The affected file is irssi/src/silc/core/silc-channels.c.
2513
2514         * The router did not save the channel mode the server announced.
2515           Affected file silcd/packet_receive.c.
2516
2517         * Fixed a possible crash in INFO command in server.  If the
2518           server did not provide the server info it crashed.  Affected
2519           file silcd/command.c.
2520
2521 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2522
2523         * Fixed the GETKEY command in the server to check also the
2524           global list.  Otherwise the GETKEY would not work correctly
2525           in normal SILC server.  Affected file silcd/command.c.
2526
2527 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2528
2529         * Fixed GETKEY crash, it crashed if the command did not succseed.
2530
2531 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2532
2533         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
2534           is now real and not just an macro interface to GMP.
2535
2536           Removed the entire GMP from the source tree and imported new
2537           NSS MPI library instead.  Reason for removing GMP is that it is
2538           extremely large and compiles extremely slow.  The NSS MPI
2539           is only a few files and compiles in less than 10 seconds.
2540           The speed is also about the same as GMP.  The MPI is imported
2541           to lib/silcmath/mpi.
2542
2543           If the system has GMP installed we will still use the GMP.
2544           If it is not then the NSS MPI will be compiled.
2545
2546 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2547
2548         * Merged a long nickname (127 characters long) crash bugfix from
2549           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
2550
2551         * Merged a freed memory reference bugfix from Irssi CVS tree.
2552           Affected file irssi/src/core/commands.c.
2553
2554 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2555
2556         * Added the server's public key sving and verification to the
2557           server when performing the SKE.  This was missing and the
2558           remote server's (or router's) public key was accepted without
2559           checking whether we have it previously or trust it at all.
2560           Affected file silcd/protocol.c.
2561
2562 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2563
2564         * Check in the silc_server_timeout_remote if protocol is active
2565           and make sure that the protocol's final callback is called so
2566           that all memory if freed.  Affected file silcd/server.c.
2567
2568 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2569
2570         * silc_server_whois_send_reply crashed the server if the nickname
2571           was 127 characters long.  Affected file silcd/command.c.
2572
2573 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2574
2575         * Added sanity check to the silc_server_new_client. If the hostname
2576           is provided inside username then check that the provided hostname
2577           really is the same as the resolved one.  If the hostname was not
2578           resolved then check it from the public key.  Affected file is
2579           silcd/packet_receive.c.
2580
2581         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
2582           if the server disconnected us and the connection is not valid
2583           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
2584
2585         * Moved the silc_client_[chmode|chumode|chumode_char] away from
2586           the library to the lib/silcutil/silcutil.[ch].
2587
2588 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2589
2590         * Close log file after open.  Affected file 
2591           lib/silcutil/silclog.c.
2592
2593         * Check whether sock == NULL in silc_client_send_packet and return
2594           if it is.  Affected file lib/silcclient/silcclient.c.
2595
2596         * Check rec->entry == NULL in the Irssi SILC Client before
2597           sending the channel message.  Affecte file is
2598           irssi/src/silc/core/silc-servers.c.
2599
2600 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2601
2602         * Merged a splitted window bugfix from Irssi CVS tree.  The 
2603           affected file is irssi/src/fe-text/textbuffer-view.c.
2604
2605         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
2606           It did not print nickname.
2607
2608         * Improved the distributions system a bit.
2609
2610 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2611
2612         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
2613           irssi/src/fe-text/gui-window.c.
2614
2615         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
2616           to in-active server.  The affected file is
2617           irssi/src/silc/core/client_ops.c.
2618
2619         * Resolve the client in USERS command reply if the entry does
2620           not have username resolved.  The affected file is
2621           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
2622           command to WHOIS command to really resolve stuff.  The USERS
2623           is not used any more in any critical section so WHOIS can
2624           be used even though it might be slower than IDENTIFY.
2625
2626         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
2627           format.
2628
2629 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2630
2631         * Changed the protocol API a bit more consistent in the
2632           lib/silccore/silcprotocol.[ch].
2633
2634         * Changed the following headers to ROBODoc format:
2635
2636                 lib/silccore/silcpayload.h
2637                 lib/silccore/silcprotocol.h
2638                 lib/silccore/silcsockconn.h
2639
2640           All core library headers are now formatted.
2641
2642 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2643
2644         * Fixed a bug in Irssi SILC client; do not show that you are
2645           server/router operator if you really are not.  Affected file is
2646           irssi/src/silc/core/client_ops.c.
2647
2648         * Renamed silc_command_free_payload to silc_command_payload_free.
2649           Affected file lib/silccore/silccommand.h
2650
2651         * Added silcmath.h to include the prototoypes of various routines
2652           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
2653           silcprimegen.h.
2654
2655         * Changed the following headers to ROBODoc format:
2656
2657                 lib/silccore/silcchannel.h
2658                 lib/silccore/silccommand.h
2659                 lib/silccore/silcid.h
2660                 lib/silccore/silcidcache.h
2661                 lib/silccore/silcmode.h
2662                 lib/silccore/silcnotify.h
2663                 lib/silccore/silcpacket.h
2664                 lib/silcmath/silcmath.h
2665
2666 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2667
2668         * Added checking to the server code not to start the server if
2669           ciphers and stuff are not configured properly.  Affected files
2670           silcd/serverconfig.[h] and silcd/server.c.
2671
2672         * Changed the layout of the header files of the public interfaces
2673           in the SILC libraries.  The new layout supports ROBODoc 
2674           documentation tool (and some others) so that it is easy to create
2675           a library reference manual.  All the other headers and source
2676           code must still follow the CodingStyle document.  Also source
2677           code must not include these ROBODoc stuffs, only the headers.
2678           Furthermore, all public interface headers must now be named
2679           by using `silc' prefix, example: silcapi.h, silccipher.h.
2680           Some files were renamed due to this.  All the other headers
2681           must not be used as public interfaces.  I will update the
2682           CodingStyle document later.  Changed following headers, so far:
2683
2684                 lib/silcclient/silcapi.h
2685                 lib/silccore/silcauth.h
2686                 lib/silccore/silcprivate.h
2687                 lib/silccrypt/silcdh.h
2688
2689 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2690
2691         * Updated TODO.
2692
2693         * Removed silc_client_packet_send_flush from the client library
2694           as it is not needed.  Affected file lib/silcclient/client.[ch].
2695
2696         * Added printing of message of unresolved authentication method
2697           to the Irssi SILC client.  Added it to the module formats.
2698           Removed the same message from the client library.
2699
2700 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2701
2702         * Added new distribution feature, DISTLABEL.  Every distribution
2703           can define own preprocessor label that can be used in the
2704           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
2705           file distributions, acconfig.h.pre and prepare.
2706
2707 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2708
2709         * Added Makefile.defines_int to include the actual definitions
2710           for Makefile.defines.in.  Tested the new distribution system,
2711           created distributions and tested installation.
2712
2713         * Added AWAY message printing to the Irssi SILC client.  Added
2714           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
2715
2716         * Added SCONNECT command to call the SILC's CONNECT command.
2717           Cannot use CONNECT directly since Irssi uses that internally.
2718           Affected file irssi/src/silc/core/silc-servers.c.
2719
2720           Added ACTION local command.  It is same as ME command but takes
2721           the channel as mandatory argument.
2722
2723           Rewrote some of the Irssi's help files to suite for SILC
2724           protocol.
2725
2726 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2727
2728         * Added Makefile.defines[.in] that should for now on be included
2729           in all Makefile.am file in the source tree.  That file includes
2730           all common compilation definitions for SILC source tree.
2731
2732 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2733
2734         * Minor changes to the ./prepare script to change the package
2735           name according the distribution name to the configure.in.
2736
2737 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2738
2739         * Created new distribution system.  Added file `distributions'
2740           that defines all the distributions that can be created out of
2741           the SILC source tree.  The ./prepare script now reads that
2742           file to determine how to prepare the distributions.  The
2743           first argument to the ./prepare is the name of the distribution
2744           and second is the version of the distribution.  If given
2745           without arguments it creates the default (toolkit) distribution
2746           with the default version (defined in ./prepare).
2747
2748           All Makefile.am files that are subject to the distributions
2749           are now named as Makefile.am.pre.  These are ./Makefile.am
2750           and lib/Makefile.am.  Others may be changed later.
2751
2752 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2753
2754         * Added invite list, ban list, some key management and connection
2755           error message printing to module formats in the Irssi SILC client.
2756
2757         * Added new silc_client_set_away_message to set the away message
2758           that is back to the person who sent private message.  The 
2759           affected file lib/silcclient/silcapi.h and the
2760           lib/silcclient/client_prvmsg.c.
2761
2762 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2763
2764         * Fixed the private message sending in the Irssi SILC client,
2765           added local command KEY to the Irssi SILC client.
2766
2767           Added key management and key agreement message formats to the
2768           irssi/src/fe-common/silc/module-formats.[ch].
2769
2770           Added USERS (alias WHO) printing, server/router operator
2771           indication and LIST command printing to the module formats.
2772
2773 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2774
2775         * Fixed channel joining notify handling, cumode notify handling
2776           from Irssi SILC client.
2777
2778         * Added SILC specific module-formats to the Irssi SILC client so
2779           that SILC specific message hilighting, colors etc is possible.
2780           Affected file irssi/src/fe-common/silc/module-formats.[ch].
2781
2782           Added channel mode, channel user mode, actions, notices,
2783           whois and whowas printing to the the module-formats.c.
2784
2785         * Fixed a bug in channel deletion in the server.  The channel
2786           is not left to the cache even if the channel founder auth mode
2787           is set when there are no users anymore on the channel.  Affected
2788           file silcd/server.c.
2789
2790         * The silc_net_localhost now resolves the entire hostname including
2791           the domain name.  Affected file lib/silcutil/silcnet.c.
2792
2793 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2794
2795         * Changed the ask_passphrase client operation to be ascynchronous.
2796           It has now a completion callback and a context that the 
2797           application must call after it has got the passphrase from
2798           the user.  Affected files lib/silcclient/silcapi.h,
2799           lib/silcclient/protocol.c, lib/silcclient/command.c and
2800           silc/client_ops.c.
2801
2802           Added SilcAskPassphrase callback that the application calls
2803           to deliver the passphrase to the library.
2804
2805         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
2806           The public key verification and especially a certificate
2807           verification is asynchronous procedure.
2808
2809           Added new SILC_SKE_STATUS_PENDING status to indicate the
2810           request is pending and a callback will be called to finalize
2811           the request.
2812
2813           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
2814           indicate that remote end did not send its public key (or
2815           certificate), even though we require it.  Added check for this
2816           condition in the SKE.  This was a security bug, now fixed.
2817
2818           Defined new SilcSKEVerifyCbCompletion callback that is called
2819           when the verification process is completed.
2820
2821           The affected files lib/silcske/silcske_status.h and
2822           lib/silcske/silcske.[ch].
2823
2824         * Changed the verify_public_key client operation to be async
2825           as well.  Defined SilcVerifyPublicKey callback that is used to
2826           indicate the success of the public key verification process.
2827
2828           Changed the server and client to use the new async client 
2829           operations.
2830
2831         * Changed the Irssi SILC client's internal scheduler to be called
2832           twice as many times as it used to be.  As a result the client
2833           should be a bit faster now.  Affected file is
2834           irssi/src/silc/core/silc-core.c.
2835
2836         * Added support to Irssi SILC client of asynchronous public key
2837           verification and passphrase inquiry.  Affected file is
2838           irssi/src/silc/core/silc-core.c.
2839
2840 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2841
2842         * Do not say "You have left channel %s" in client library.
2843           Moved it to the application.  Affected files are
2844           lib/silcclient/command.c and silc/client_ops.c.
2845
2846         * Fixed silc_client_get_clients.  Command context was not
2847           duplicated and was freed memory in the callback.  Affected
2848           file lib/silcclient/idlist.c.
2849
2850         * Do not say "you are now talking..." on JOIN command in the
2851           client library.  The appliation must handle it.
2852
2853         * Do not say ".. changed topic to" in command reply in the
2854           client libary.  The application must handle it.
2855
2856         * Fixed TOPIC command sending in the client library.
2857
2858         * Fixed a memory leak in silc_client_command_free in the file
2859           lib/silcclient/command.c.
2860
2861 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2862
2863         * Imported a modified version of Irssi client to the source tree.
2864           The Irssi will be used to create a new client called
2865           Irssi SILC.  Imported to irssi/.
2866
2867           Added silc_core_init_finish function to the Irssi.  Affected
2868           file irssi/configure.in.
2869
2870           A lot changes in the Makefile.ams around the irssi tree.
2871
2872 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2873
2874         * Do not rehash if the new size is same as the old size of the
2875           hash table, in the silc_hash_table_rehash*.  The affected file
2876           lib/silcutil/silchashtable.c.
2877
2878         * Replaced hash_table_del_by_context calls from the server
2879           (when channel->user_list and client->channels) to the
2880           hash_table_del as it is sufficient and faster.
2881
2882 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2883
2884         * Added silc_hash_table_list, silc_hash_table_get and the
2885           SilcHashTableList structure to provide an alternative way to
2886           traverse the hash table.  The affected files are
2887           lib/silcutil/silchashtable.[ch].
2888
2889         * Changed the server's idlist routines to use the hash table
2890           routines to optimize the code.
2891
2892 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2893
2894         * Replaced the client entry's `channel' list and channel entry's
2895           `user_list' list to hash tables for optimized lookup.  Changed
2896           the code to use the hash table interface around the code. 
2897           Affected file lib/silcd/idlist.[ch].
2898
2899         * Added `auto_rehash' boolean argument to the function
2900           silc_hash_table_alloc to indicate whether the hash table should
2901           auto-rehash when it thinks is appropriate time.  It will
2902           increase the hash table size if the there is twice as much
2903           entries in the table than the size of the table, and will
2904           decrease the size if there are twice as less entries than
2905           the size of the table.
2906
2907 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2908
2909         * Fixed silc_xxx_get_supported to not crash at some circumstances.
2910
2911 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2912
2913         * silc_idcache_purge_by_context deletes the entry now by context
2914           as it is supposed to do.  Affected file lib/silccore/idcache.c.
2915
2916         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
2917           client is not anymore valid (WHOWAS givens the info) and not
2918           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
2919
2920 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2921
2922         * Removed the `data' and `data_len' arguments from the ID Cache
2923           interfaces and added `name' argument.  ID Cache does not handle
2924           anymore the binary data only a names associated with given ID.
2925
2926         * When hashing a Client ID with silc_hash_id the entire ID is
2927           not hashed anymore, instead only the hash of the Client ID is
2928           hashed.  This way we can access the Client ID from the cache
2929           with Client ID but with the hash of the ID (which is a hash of
2930           the nickname) as well without any difference in performance.
2931
2932           Added also silc_idcache_find_by_id_one_ext to do one on one 
2933           searching when we have the actual ID.  Added also function
2934           silc_hash_client_id_compare.  The affected files are
2935           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
2936
2937         * When hashing the name associated with a ID it is always done
2938           in lowercase.  This way we can access the cache without worrying
2939           about case-sensitivity, even though, for example nicknames are
2940           case sensitive.
2941
2942         * Fixed a bug in server with channel message sending.  It put
2943           wrong ID type as destination ID.  The affected file 
2944           silcd/packet_send.c.
2945
2946         * silc_idcache_del_by_context now deletes from all hash tables
2947           by context.  Affected file lib/silccore/idcache.c.
2948
2949 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2950
2951         * Changed the client library to use the new ID Cache interface.
2952           Changes around the source tree.
2953
2954         * Added silc_hash_table_rehash_ext to rehash with specific
2955           hash function.  Affected file lib/silcutil/silchashtable.[ch].
2956
2957         * Added silc_hash_string_compare to compare two strings in the
2958           hash table.  Affected file lib/silcutil/silcutil.[ch].
2959
2960 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2961
2962         * Added new function silc_idcache_del_by_context into the
2963           lib/silccore/idcache.[ch].
2964
2965         * Changed the server's ID list routines to use the new ID Cache
2966           interface.  Changes around the source tree.
2967
2968 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2969
2970         * Added silc_hash_table_del[_by_context]_ext functions in to the
2971           lib/silcutil/silchashtable.[ch].
2972
2973           Removed silc_hash_table_find_all* routines and added new
2974           silc_hash_table_find_foreach to replace them.
2975
2976           Added silc_hash_table_replace_ext function as extended
2977           replacing function.  Separated the simple hash table interface
2978           from the extended hash table interface in the file
2979           lib/silcutil/silchashtable.h.
2980
2981         * Fixed minor bugs and changed it to use some of the new
2982           hash table functions in lib/silccore/idcache.c
2983
2984 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2985
2986         * Added new function silc_hash_table_find_all to return all keys
2987           in the hash table by the specified key.  As the hash table is
2988           collision resistant it also makes it possible to have several
2989           duplicate keys in the hash table.  This function may be used to
2990           find all of the keys from the hash.
2991
2992           Added user_context arguments to the SilcHashFunction,
2993           SilcHashCompare and SilcHashDestructor to deliver user specified
2994           context.
2995
2996           Added new fuctions silc_hash_table_find[_all]_ext to do
2997           extended lookup with specified hash and compare functions and
2998           specified user contexts.
2999
3000           Added new function silc_hash_table_add_ext to add the key
3001           with specified hash function and user context.
3002
3003           Added new function silc_hash_table_foreach to traverse all
3004           entrys in the hash table.  Added SilcHashForeach callback
3005           function.
3006
3007           Added new function silc_hash_table_del_by_context to delete
3008           the entry only if the context associated with the key matches.
3009
3010           Affected files are lib/silcutil/silchashtable.[ch].
3011
3012         * Removed silc_hash_[server/client/channel]_id and added just
3013           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
3014           silc_hash_id_compare to compare two ID's using as the hash table
3015           comparison function.  Added also silc_hash_data to hash
3016           binary data and silc_hash_data_compare to compare it.
3017
3018         * Removed silc_idlist_find_client_by_hash as it is not needed
3019           anymore.  Affected file silcd/idlist.[ch].
3020
3021         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
3022           to use internally the SilcHashTable.  The new ID Cache is a lot
3023           faster than the old one.  Some of the ID Cache interface was also
3024           rewritten and obsolete and stupid functions were removed.
3025
3026 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3027
3028         * Added entry_count field to the SilcHashTable to keep the number
3029           of the entries in the table.  Implemented the function
3030           silc_hash_table_rehash.  Added new function
3031           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
3032
3033           Fixed a minor bug in silc_hash_table_free.
3034
3035         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
3036           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
3037           into the lib/silcutil/silcutil.[ch].
3038
3039 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3040
3041         * Implemented a collision resistant hash table into the
3042           lib/silcutil/silchashtable[ch].  See the header and the source
3043           for the SilcHashTable API.
3044
3045 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3046
3047         * Merged dotconf version 1.0.2 into lib/dotconf.
3048
3049 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3050
3051         * Do not compile anything in lib/silcsim/* if the SIM support
3052           is not enabled.  The tree should now compile without problems
3053           under cygwin.
3054
3055 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3056
3057         * Compiled the SILC under cygwin.  Compiled and tested briefly
3058           without problems.  More tests needed.  The SIMs didn't compile
3059           though.
3060
3061         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
3062
3063         * Fixed possible crash in silc_get_username in the
3064           lib/silcutil/silcutil.c.
3065
3066 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3067
3068         * Fixed a va_arg in silc/client_ops.c.
3069
3070         * Oops, RC5 routines were named AES and caused some problems
3071           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
3072
3073 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3074
3075         * Added new SilcIDIP structure into the lib/silccore/id.h and
3076           replaced the old `ip' fields from all SILC ID's to that type.
3077           This is a step towards IPv6 support.
3078
3079           The silc_id_get_len takes now the ID as an extra argument.
3080           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
3081           both IPv4 and IPv6 based ID's.
3082
3083           The affected files are lib/silccore/id.[ch] and other files
3084           around the tree using these routines.
3085
3086         * Removed the ID length arguments in server from various 
3087           silc_server_send_notify_* routines -> they are not needed 
3088           anymore.
3089
3090 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3091
3092         * Fixed memory leak in silc_encode_pem_file in the file
3093           lib/silcutil/silcutil.c.
3094
3095 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3096
3097         * Check minor version as well in the SKE.  Affected files are
3098           silcd/protocol.c and lib/silcclient/protocol.c.
3099
3100         * Added --identifier option to the server so that an identifier
3101           can be when creating the public key for the server.  Affected
3102           file is silcd/silcd.c.
3103
3104         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
3105           lib/silccrypt/silcpkcs.c.
3106
3107 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3108
3109         * Register default ciphers and stuff when using -C option with
3110           the server.  Affected file sildc/silcd.c.
3111
3112         * Put back the servers public key filename format, it is better
3113           than the new one.  For now, the client keys are saved with the
3114           new filename format.  The affected file silc/client_ops.c.
3115
3116         * Implemented the Cipher API for the rest of the ciphers that
3117           did not implement it or implemented it the wrong way.
3118
3119 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3120
3121         * Register default ciphers and stuff when using the -S option
3122           in the client.  Affected file silc/silc.c.  Same also when
3123           creating new key pair with -C option.
3124
3125 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3126
3127         * Fixed the silc_verify_public_key client operation function to
3128           save the public keys differently.  The fingerprint is now 
3129           used as filename and not the hostname.  This way also the
3130           client keys are saved uniquely and not with hostnames.  The
3131           affected file is silc/client_ops.c.
3132
3133         * Trimmed the silc_hash_fingerprint function to remove extra
3134           whitespaces from the end of the fingerprint.  The affected
3135           file is lib/silccrypt/silchash.c.
3136
3137         * Updated TODO.
3138
3139         * Added silc_cipher_register_default function to register all
3140           default ciphers.  It can be used when configuration files
3141           does not exist and the application does not want any specific
3142           ciphers in any specific order.
3143
3144           The SilcDList is now used as silc_cipher_list dynamically
3145           allocated cipher list.  Removed the static list all together
3146           and now all ciphers must be allocated to the dynamic list.
3147           The silc_cipher_alloc routine was changed to check only the
3148           dynamic list.
3149
3150           All silc_cipher_* routines that used to return int returns
3151           now bool.
3152
3153           The affected files lib/silccrypt/silccrypt.[ch].
3154
3155         * The same thing was done to silc_hash_* as for silc_cipher_*
3156           routines.  Affected files lib/silccrypt/silchash.[ch].
3157
3158         * The same thing was done to silc_pkcs_* as for silc_cipher_*
3159           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
3160           Added also silc_pkcs_[un]register[_default] functions.
3161           Removed the data_context from the PKCS API.
3162
3163         * Added silc_hmac_register_default function to register default
3164           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
3165           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
3166           to unregister all hmacs at once.
3167
3168         * Register the default ciphers, hash functions, PKCSs and HMACs
3169           if client's configuration file does not exist.  The affected
3170           file silc/silc.c.
3171
3172         * The client did not load the hash functions from the SIM
3173           modules at all.  Added support for this.  Affected file is
3174           silc/clientconfig.c.
3175
3176         * When decoding public key with silc_pkcs_public_key_decode, check
3177           the supported algorithm only if PKCS are registered.  Affected
3178           file lib/silccrypt/silcpkcs.c.  The same was done with the
3179           silc_pkcs_private_key_decode.
3180
3181         * Fixed the SILC List routines to keep the list always in order.
3182           It used to change the list's order when traversing the list but
3183           not it preserves the order.  Affected file lib/trq/silclist.h.
3184
3185 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3186
3187         * Added the client library to use the SilcSocketConnection's
3188           reference counter (by silc_socket_dup) to prevent the bug that
3189           the socket object may be freed underneath async operation.
3190
3191         * The name resolv library checking fixes in the configure.in.pre.
3192           The patch by salo.
3193
3194         * Created new version of the protocol drafts for future
3195           development. The -03 drafts are the ones that will be changed
3196           in the trunk now and the -02 will remain as they are.
3197
3198         * Send list of CUMODE notifys to the router when announcing
3199           the channel users to the router.  Affected file silcd/server.c.
3200           If the router receiving channel founder CUMODE for a channel
3201           that already has channel founder it will send CUMODE notify
3202           to the sender to remove the channel founder rights from the
3203           announced client.  Affected file silcd/packet_receive.c.
3204
3205         * The CUMODE notify may now use Server ID as well as the entity
3206           who changes the mode.  Updated protocool specs.
3207
3208         * Updated INSTALL and README files.
3209
3210 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3211
3212         * New web pages in the http://silc.pspt.fi.  The pages was
3213           designed by salo.
3214
3215         * Updated CREDITS.
3216
3217 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3218
3219         * Implemented the [DenyConnectin] config section in the server.
3220           Added silc_server_config_denied_conn to check whether incoming
3221           connection is denied.  Affected file silcd/serverconfig.[ch].
3222
3223         * Do not check the ports when checking the incoming configuration
3224           data if the port is 0, meaning any.  Affected file is
3225           silcd/serverconfig.c.
3226
3227 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3228
3229         * Fixed buffer overflow in silc_string_compare in the file
3230           lib/silcutil/silcutil.c.
3231
3232         * Fixed double free in silc_server_command_leave in the file
3233           silcd/command.c.
3234
3235 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3236
3237         * Fixed the version checking in the server.  Affected file is
3238           silcd/protocol.c.
3239
3240 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3241
3242         * Fixed the configuration data fetching when accepting new
3243           connections in the server.  Affected file silcd/server.c.
3244
3245 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3246
3247         * Added `sender_entry' argument to the function
3248           silc_server_packet_relay_to_channel so that we can check
3249           whether some destination actually belongs to the same route
3250           the sender belongs (ie, we must not resend the packet to the
3251           sender).  Affected file silcd/packet_send.[ch].
3252
3253         * Added `servername' field to the SilcClientEntry in the server
3254           to hold the name of the server where client is from.  Affected
3255           file is silcd/idlist.h.
3256
3257 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3258
3259         * Moved the channel message encrypting in the router betwen
3260           router connections from silc_server_channel_message to the
3261           silc_server_packet_relay_to_channel since we want to check
3262           whether we have anybody channel before encrypting anything.
3263           Affected files silcd/packet_[receive/send].c.
3264
3265 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3266
3267         * Fixed the [AdminConnection] server config section to support
3268           multiple entries.  Affected file silcd/serverconfig.c.
3269
3270         * Added support into the server to check the validity of the
3271           incoming connection before executing any KE or authentication
3272           protocols.
3273
3274         * The connection configuration is now saved to the KE and 
3275           connection auth protocol contexts and not fetched anymore in 
3276           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
3277
3278         * The local hosts listenning address and port is also resolved
3279           now when starting the server.  We want to have the socket object
3280           to include the real address and port for the listener.  Added
3281           new function silc_net_check_local_by_sock into the files
3282           lib/silcutil/silcnet.[ch].
3283
3284         * Fixed a broadcast bug in server -> do not broadcast if we
3285           are standalone.
3286
3287         * Fixed a routing bug.  Do not route broadcast packets ever.
3288           Broadcast packets must be processed always and not routed since
3289           they may be destined to some other host than yourself and thus
3290           would get routed without no good reason.  Affected file is
3291           silcd/server.c.
3292
3293         * Added function silc_server_config_is_primary_route to check
3294           whether primary router connection has been configured (a router
3295           configuration that we are initiating).  If there is not, we 
3296           will assume that there is only two routers in the SILC network
3297           and we will use the incoming router connection as our primary
3298           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
3299
3300         * Changed the order of the broadcasting.  Broadcast _after_ the
3301           packet has been processed not before.  Affected file is
3302           silcd/server.c.
3303
3304         * Fixed a [ClientConnection] parsing bug.  The port was never
3305           parsed correctly thus resulting to port 0.  Affected file
3306           silcd/serverconfig.c.
3307
3308         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
3309           argument and did not set the broadcast packet flag.  Affected
3310           file silcd/packet_send.c.  Fixed same bug in the function
3311           silc_server_send_notify as well.
3312
3313         * If we receive NEW_ID packet for our own ID in the server, ignore
3314           the packet.
3315
3316 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3317
3318         * Updated TODO.
3319
3320         * Removed the nickname from the Private Message Payload.
3321           Updated the code and the protocol specs.
3322
3323         * Updated protocol specs for submitting to the IETF.
3324
3325         * Tweaked the Random Number Generator a bit.  Affected file
3326           lib/silccrypt/silcrng.c.  Exported a new function
3327           silc_rng_[global]_add_noise which can be used to add more
3328           noise to the RNG.
3329
3330 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3331
3332         * Do not parse packets with different timeout when protocol
3333           is active -> may cause problem with rekey.  Affected file
3334           silcd/server.c.
3335
3336         * When server receives signoff notify it must not create
3337           new channel key if the client is on any channels since the
3338           sender of the signoff notify will create it.
3339
3340 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3341
3342         * Added printing of error messages during SKE protocol from the
3343           failure packet sent by server during SKE.  Affected file
3344           silc/client_ops.c.
3345
3346         * Removed the client's failure_callback handling with timeout
3347           and handle it immediately when received.
3348
3349         * The SKE library returned wrong type in SUCCESS and FAILURE 
3350           packets.  They must be 32 bit MSB not 16 bit MSB.
3351
3352 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3353
3354         * Ok, rewrote the logic of the re-key and now it seems to work.
3355           I tested it on high traffic with frequent re-keys without
3356           problems.  Added hmac_receive (and renamed hmac to hmac_send)
3357           in SilcClientConnection in lib/silcclient/client.h and
3358           in SilcIDListData in silcd/idlist.h.  Also, removed the
3359           SilcPacketParserContext's cipher and hmac fields as they are
3360           not needed anymore and actually caused some problems when
3361           the ciphers and hmac's changed underneath the packet parser.
3362
3363 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3364
3365         * If re-key protocol is active then process the incoming packets
3366           synchronously since we must assure that icoming packets encrypted
3367           with the old key is processed before the new keys is set to
3368           use.  This is true other packets than for REKEY packets.
3369           Affected file silcd/server.c.  The same was done to client library
3370           as well, affected file lib/silcclient/client.c.
3371
3372 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3373
3374         * Fixed bug in client and server to accept the force send if
3375           the packet is send from silc_[server/client]_packet_process
3376           function.  Otherwise the packets are never delivered, oops.
3377
3378 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3379
3380         * Disable force sending of packets when REKEY protocol is active.
3381           We must assure that no packet is sent directly when rekey is
3382           performed.  All packets must be sent through packet queue.
3383           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
3384           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
3385           function is silc_[server/client]_packet_send_real to check
3386           the situation.
3387
3388         * Replaced the SIM paths from example config files to 
3389           /usr/local/modules.  Also, make install creates now
3390           /usr/local/silc/logs directory to hold all the SILC server
3391           logs.
3392
3393 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3394
3395         * Made the configure.in.pre work on Solaris.  Patch by salo.
3396
3397         * Made all ciphers compatible with non-x86 machines.  Defined
3398           CBC mode macros into lib/silccrypt/ciphers_def.h.
3399
3400 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3401
3402         * Fixed the make install.
3403
3404 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3405
3406         * When MAC computation fails the silc_packet_decrypt returned 0
3407           even though it was supposed to return -1.  Fixed this.  The
3408           affected file is lib/silccore/silcpacket.c.
3409
3410         * Do not replace the config files in /etc/silc (in make install)
3411           if they already exist.  Affected file ./Makefile.am.
3412
3413         * Do not send re-key packets immediately but through packet queue.
3414           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
3415
3416         * Changed silc_net_check_host_by_sock to return FALSE if the
3417           IP/DNS could not be resolved.  Though, it returns the IP address
3418           now even if it could not resolve it (but returns also FALSE).
3419           Affected file lib/silcutil/silcnet.[ch].
3420
3421 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3422
3423         * Added silc_pkcs_decode_identifier to decode the public key's
3424           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
3425           Added also silc_pkcs_free_identifier.  Added also new context
3426           SilcPublicKeyIdentifier.
3427
3428         * Added -S option to the silc client.  It is used to dump the
3429           contents of the specified public key file.
3430
3431         * Changed the PKCS api to return the public key length when
3432           setting the public key.
3433
3434         * Fixed a fatal bug in the public and private key file loading.
3435           Affected file lib/silccrypt/silcpkcs.c.
3436
3437         * Execute the packet parsing for client with zero (0) timeout
3438           if the protocol is active.  Affected file silcd/server.c.
3439
3440 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3441
3442         * Made the key generation options to the silcd program.  Added
3443           -C option, equivalent to client's option.
3444
3445         * Added new [ServerKeys] config section to the server.  It
3446           configures the server's public and private key.
3447
3448         * Defined generic Public Key Payload into the protocol
3449           specification to send specific type of public keys and
3450           certificates.
3451
3452         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
3453           public key or certificate.
3454
3455         * Implemented the GETKEY command to the server and to the
3456           client library and on user interface.
3457
3458 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3459
3460         * Made preliminary `make install' work.
3461
3462 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3463
3464         * Added SilcServerRekey context into silcd/idlist.h.
3465
3466         * Added the PFS support as defined in the specification to the
3467           SKE protocol.  Affected files lib/silcske/*.c.
3468
3469         * Added `ske_group' field to the SilcServerRekey context to hold
3470           the number of the SKE group that is used with PFS in re-key.
3471           Affected file silcd/idlist.h.
3472
3473         * Added PFS re-key support to the server.  Affected file is
3474           silcd/protocol.c.
3475
3476         * Added silc_protocol_cancel to cancel execution of the next
3477           state of the protocol.  Affected file is
3478           lib/silccore/silcprotocol.[ch].
3479
3480         * Added the re-key support with and without PFS to the client
3481           library.  Re-key is performed once in an hour, by default.
3482
3483           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
3484           Added silc_client_rekey_callback and silc_client_rekey_final.
3485           Affected files are lib/silcclient/protocol.[ch] and
3486           lib/silcclient/client.[ch].
3487
3488         * Removed the `hmac_key' and `hmac_key_len' fields from the
3489           SilcClientConnection structure; not needed.  Affected file is
3490           lib/silcclient/client.h.
3491
3492         * Updated TODO.
3493
3494 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3495
3496         * Do not ask whether user wants to use the negotiated private key
3497           for private messages, just use it.  Affected file is 
3498           silc/local_command.c.
3499
3500         * Added `send_enc_key' and `enc_key_len' fields to the 
3501           SilcIDListData structure since they are needed in the re-key
3502           phase.  Affected file is silcd/idlist.[ch].
3503
3504         * Implemented the simple re-key protocol into the server.
3505           Affected files silcd/server.c and silcd/protocol.[ch].  The
3506           re-key will be performed once in an hour, by default.
3507
3508           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
3509           Added silc_server_rekey, silc_server_rekey_callback and
3510           silc_server_rekey_final.
3511
3512         * Removed Tunneled flag from the protocol.  Updated the code
3513           and the specifications.
3514
3515         * Adde `pfs' field to the SilcIDListData to indicate whether
3516           the PFS is to be performed in the re-key.  Affected file is
3517           silcd/idlist.h.
3518
3519 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3520
3521         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
3522           int64 of at least the xintXX size.  If void * is less that 4
3523           bytes uint32 * will be used.  Defined bool as boolean.
3524
3525         * Changed _ALL_ unsigned long and unsigned int to uint32, 
3526           unsgined short to uint16 in the source tree.
3527
3528         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
3529           not handle clients that has entry->data.registered == FALSE.
3530           They are not in the network anymore.  Affected file is
3531           silcd/server.c.
3532
3533 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3534
3535         * Implemented the sending of the SERVER_SIGNOFF notify in the
3536           server.  Affected file is silcd/server.c.
3537
3538         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
3539           Added also silc_notify_payload_encode_args into the
3540           lib/silccore/silcnotify.[ch].
3541
3542         * Implemented ther SERVER_SIGNOFF notify handling in the server.
3543           Affected file silcd/packet_receive.c.
3544
3545         * Implemented the SERVER_SIGNOFF notify handling in the client
3546           library.  Affected file lib/silcclient/client_notify.c.  Also,
3547           implemnted the printing of the SERVER_SIGNOFF info to the
3548           application.  Affected file silc/client_ops.c.
3549
3550         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
3551           if the deleting was successful.  Affected file silcd/idlist.[ch].
3552
3553         * Added support for public key authentication in the connection
3554           authentication protocol in the client library.  Affected file
3555           lib/silcclient/protocol.c.
3556
3557         * Changed the server's silc_idlist_get_clients_by_* interface
3558           to support already allocated array so that new entries may be
3559           added to pre-allocated array.  Affected file silcd/idlist.[ch].
3560           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
3561           and command replies.
3562
3563         * All command reply functions in the server now calls the 
3564           pending command callback even if error occured.  This way the
3565           error will be delivered to the client as well.  Affected files
3566           silcd/command.c and silcd/command_reply.c.
3567
3568         * Fixed INFO command to return local server's info if no server
3569           was provided.  Affected file lib/silcclient/command.c.
3570
3571         * Removed RESTART command for good.  Updated the code and the
3572           protocol specs.
3573
3574         * Rewrote parts of the task system.  It is a bit simpler now.
3575           Removed unsued task priorities. The affected files are
3576           lib/silcutil/silctask.[ch].
3577
3578 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3579
3580         * Moved the USERS printing from the library to the application.
3581           Affected files lib/silcclient/command.c and silc/client_ops.c.
3582
3583 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3584
3585         * Updated TODO.
3586
3587         * Added channel key re-key support.  The re-key is perfomed
3588           only by the router and is done once in an hour.  Added `rekey'
3589           field to the SilcChannelEntry in the server.  Affected files
3590           silcd/server.c and silcd/idlist.h.
3591
3592         * Added silc_task_unregister_by_context into the file
3593           lib/silcutil/silctask.[ch].
3594
3595 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3596
3597         * Added SILC_UMODE_GONE mode to indicate when the client is not
3598           present in the SILC network.  Added also support to the local
3599           command AWAY that will set this mode.  Added support of showing
3600           "xxx is gone" in WHOIS command.  The USERS command shows the
3601           gone status as well.
3602
3603         * Fixed setting server and router operator privileges in the
3604           server's UMODE command.  Affected file silcd/command.c.
3605
3606         * Merged the SKE KE1 and KE2 payloads into one payload.  The
3607           new KE payload is equivalent to the old KE2 payload.
3608
3609           Cleaned up the SKE Start Payload parsing.  It now uses the
3610           simple buffer unformatting to do the parsing.  A lot faster
3611           now.
3612
3613           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
3614           to the SKE that is used to indicate whether both of the SKE
3615           parties should perform authentication.  By default only the
3616           responder performs authentication.  By setting this flag also
3617           the initiator must do authentication.  By default it is unset
3618           since in normal SKE case, client to server connection, only
3619           the responder should do authentication.  When doing SKE between
3620           two clients both should perform authentication.  Updated the
3621           code and the protocol specs.
3622
3623         * A little fix to IDENTIFY command in the server.  Search the
3624           client first by hash not nickname.  Affected file is 
3625           silcd/command.c.
3626
3627         * Fixed the silc_client_close_connection to support closing
3628           the client to client connections wihtout deleting too much
3629           data.  Affected file lib/silcclient/client.c.
3630
3631         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
3632           are received if protocol used to be active but is not anymore
3633           the application would crash due to NULL pointer dereference.
3634           Affected files silcd/server.c and lib/silcclient/client.c.
3635
3636         * Added `hash' field to the SilcClientConnection to include
3637           the hash function negotiated in the SKE protocol.
3638
3639         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
3640           to set the channel founder authentication data.  A client can
3641           claim the founder rights later by providing the authentication
3642           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
3643           This way the channel founder can regain the channel founder
3644           privileges even it is left the channel.  This works only on
3645           local server and the client must be connected to the same
3646           server to be able to regain the founder rights.  Updated the
3647           protocol specs accordingly.
3648
3649           Added support to the CMODE command in the client to set the
3650           founder auth data.  Read the README to see how to set it.
3651
3652           Added support to the CUMODE command to claim the founder
3653           rights.  Read the README to see how to do it.
3654
3655           Added support for the founder authentication to the Channel
3656           Entry in the server.  Affected file silcd/idlist.h.
3657
3658           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
3659           server's CMODE command.  Affected file silcd/command.c.
3660
3661         * Added the following new functions into lib/silccore/silcauth.[ch]:
3662           silc_auth_get_method and silc_auth_get_data.    
3663
3664         * The server now saves the remote hosts public key to the
3665           SilcIDListData pointer.  Affected file silcd/protocol.c.
3666
3667         * The normal server now does not remove the channel entry from
3668           the cache if the founder authentication data is set.  It used
3669           to remove it if the founder was the last one on the channel on 
3670           the server and left the channel.  The auth data is saved and
3671           if the channel is re-joined later the old entry is used with
3672           the old auth data.  Affected files silcd/command_reply.c and
3673           silcd/server.c.
3674
3675         * Removed the `pkcs' field from the SilcIDListData structure
3676           in the server; it is not used.  Affected file silcd/idlist.h.
3677
3678 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3679
3680         * Fixed packet processing on slow links.  Partial packets were
3681           never re-processed because the incoming data buffer was cleared
3682           by the application.  Application must not directly clear the
3683           sock->inbuf, the packet processing routines handle it.  Fixed
3684           this in client library and in server.
3685
3686 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3687
3688         * Fixed the WHOIS and IDENTIFY send reply function to really
3689           check whether to send list or just one entry.  Affected file
3690           silcd/command.c.
3691
3692         * Cleaned up the LEAVE command's channel key distribution.  The
3693           affected file silcd/command.c.
3694
3695         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
3696           can enforce the channel mode as well.  In that case the ID
3697           includes the ID of the server.  The code now enforces the
3698           mode change if the router have different mode than the server.
3699
3700         * The notify client operation with CMODE_CHANGE notify can now
3701           return NULL client_entry pointer if the CMODE was not changed
3702           by client.  Application must check for this.
3703
3704         * Added <Server ID> argument to INFO command to support server
3705           info fetching by Server ID.
3706
3707         * Added silc_server_announce_get_channel_users to get assembled
3708           packets of channel users of the specified channel.  Affected
3709           file silcd/server.[ch].
3710
3711         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
3712           was freed underneath the ID Cache.
3713
3714         * Re-announce clients when the server received CHANNEL_CHANGE
3715           notify from the router.  Affected file silcd/packet_send.c.
3716
3717 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3718
3719         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
3720           crashed since it did not handle the fact that there is no cipher
3721           called "3" and didn't check the error condition.  Now fixed.
3722
3723         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
3724           flag.  It can be used to send message requests.
3725
3726 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3727
3728         * Implemented the RESTART command in the client.
3729
3730         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
3731           notice type messages.  Added notice printing to the user
3732           interface.
3733
3734         * The channel keys are not re-generated if the channel's mode
3735           is PRIVKEY, ie private key on the channel exists.  Affected
3736           files silcd/server.c and silcd/command.c.
3737
3738         * Fixed a little bug in channel message delivery when channel
3739           private keys are set in the server.  Affected file is
3740           silcd/packet_send.c.
3741
3742         * Changed the setting on channel->on_channel = TRUE from the
3743           silc_client_save_channel_key to the JOIN command reply.  The
3744           key payload is not received if the private channel key is set.
3745           Affected file lib/silcclient/command_reply.c and the
3746           lib/silcclient/client_channel.c.
3747
3748         * When the CMODE_CHANGE notify is sent and the channel private
3749           key mode is removed the channel key must be re-generated in
3750           other cells as well.  Added this support for the router in the
3751           silcd/packet_receive.c.
3752
3753         * Added new local command NOTICE to send notice message on
3754           channel.  Affected file silc/local_command.[ch].
3755
3756 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3757
3758         * Added new local command ME to the client.  It is used to send
3759           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
3760           some action.  Affected file silc/local_command.[ch].
3761
3762         * Changed channel_message and private_message client operations 
3763           to deliver the message flags to the application.  Added also
3764           the `flags' arguments to the silc_client_send_channel_message
3765           and silc_client_send_private_message functions.  Affected file
3766           silcapi.h.
3767
3768 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3769
3770         * Redefined the Private Message Payload to support private message
3771           keys and to support the new private message flags.  Updated
3772           the protocol specs.  Flags makes it possible to have for example
3773           CTCP style messages.
3774
3775         * Added new type SilcPrivateMessagePayload and defined an API
3776           for it in the lib/silcclient/silcprivate.[ch].
3777
3778         * Tested private message private keys successfully.  Tested the
3779           private message key set, unset and list commands with the new
3780           KEY command.
3781
3782         * Redefined the Channel Message Payload to include the channel
3783           message flags (equal with private message flags) to support
3784           for example CTCP style messages.
3785
3786         * Defined some of the message (for channel and private message)
3787           flags.  Updated the protocol specs and added the flags to the
3788           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
3789
3790 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3791
3792         * Added SilcKeyAgreementStatus type to the key agreement routines
3793           to indicate the current status and error if one occured.
3794           The status types are defined in the lib/silcclient/silcapi.h.
3795
3796         * Added new local command KEY that is used to set and unset private
3797           keys for channels, set and unset private keys for private messages
3798           with remote clients and to send key agreement requests and
3799           negotiate the key agreement protocol with remote client.  The
3800           key agreement is supported only to negotiate private message keys,
3801           it currently cannot be used to negotiate private keys for channels,
3802           as it is not convenient for that purpose.
3803
3804         * Fixed a minor pending callback setting bug in the function
3805           silc_client_get_client_by_id_resolve, now the function works.
3806           Affected file lib/silcclient/idlist.c.
3807
3808         * Added function silc_net_get_local_port to get local bound
3809           port by socket.  Added to lib/silcutil/silcnet.[ch].
3810
3811         * Added `sockets' and `sockets_count' fields to the SilcClient
3812           object.  They hold the sockets of the listenning sockets in
3813           the client.  Listenning sockets may be for example the key 
3814           agreement server.  Affected file lib/silcclient/client.[ch].
3815           Added functions the silc_client_add_socket and the
3816           silc_client_del_socket.  They are exported to the application
3817           as well.
3818
3819         * Added ~./silc/clientkeys to support other client's public keys.
3820
3821         * Renamed verify_server_key client operation to verify_public_key
3822           and added one argument to indicate the type of the connection
3823           (server, client etc.).
3824
3825 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3826
3827         * Added silc_server_connection_auth_request to handle the
3828           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
3829           silcd/packet_receive.[ch].
3830
3831         * Added silc_server_send_connection_auth_request into the
3832           silcd/packet_send.c to send the connection auth request packet.
3833
3834         * Cleaned up the silcd/protocol.c a bit and fixed some memory
3835           leaks.
3836
3837         * Fixed the public key authentication in responder side in the
3838           server.  The `auth_data' pointer includes the SilcPublicKey
3839           not the path to the public key.  Affected file silcd/protocol.c.
3840
3841         * Implemented the public key authentication in the initiator side
3842           in the server.  Affected file silcd/protocol.c.
3843
3844         * Removed the [RedirectClient] config section from the server
3845           configuration.  Is not needed and I don't want to implement it.
3846
3847 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3848
3849         * Cleaned up the CMODE command in the server.  It now works
3850           correctly and supports all the modes defined in the protocol.
3851           Affected file is silcd/command.c.
3852
3853         * Added `hmac_name' field to the SilcChannelEntry in the server
3854           to hold the default HMAC of the channel.  It can be set when
3855           creating the channel (with JOIN command).  Affected files
3856           silcd/idlist.[ch].
3857
3858         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
3859           type to indicate the change of the current cipher and hmac
3860           on the channel.  Client can safely ignore the <cipher> argument
3861           (if it chooses to do so) since the CHANNEL_KEY packet will 
3862           force the channel key change anyway.  The <hmac> argument is
3863           important since the client is responsible of setting the new
3864           HMAC and the hmac key into use.
3865
3866         * Fixed the CMODE command in the client library as well.
3867
3868         * Tested CMODE command in router environment successfully.
3869
3870 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3871
3872         * Show the version of the remote client (or server) when connecting
3873           to the server.  It is logged to the log file.  Affected file
3874           is silcd/protocol.c.
3875
3876         * Fixed the KILLED notify handling in the client library.  The
3877           client must be removed from all channels when receiving the
3878           KILLED notify.
3879
3880           Also, do not remove the client entry when giving the KILL 
3881           command but when the KILLED notify is received.
3882
3883         * Removed silc_idlist_find_client_by_nickname from the server.
3884           Not needed anymore.  Affected files silcd/idlist.[ch].
3885
3886         * Implemented the CHANNEL_CHANGE notify type handling to the
3887           server.  Affected file silcd/server.c.
3888
3889         * Updated TODO.
3890
3891 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3892
3893         * Added silc_server_send_notify_invite to send the INVITE
3894           notify between routers.
3895
3896         * Implemented the INVITE command correctly to the server.
3897
3898         * Implemented the INVITE notify type handling in the server.
3899
3900         * Implemented the INVITE command to the client library and on the
3901           user interface.
3902
3903 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3904
3905         * Added function silc_server_get_client_resolve to find the
3906           client entry by ID from all ID lists and then resolve it
3907           (using WHOIS) if it cannot be found.  Affected file is
3908           silcd/server.[ch].
3909
3910 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3911
3912         * Implemented the BAN command to the client library.
3913
3914         * The JOIN command in the server now checks the invite list
3915           and the ban list.
3916
3917         * Changed the silc_command_reply_payload_encode_va and the
3918           silc_command_payload_encode_va to support that if argument is
3919           NULL it ignores and checks the next argument.  Affected file
3920           lib/silccore/silccommand.c.
3921
3922         * Added silc_server_send_notify_ban to send the BAN notify
3923           type between routers.
3924
3925         * Chaned the silc_notify_payload_encode to support that if 
3926           argument is NULL it ignores and checks the next argument.
3927           Affected file lib/silccore/silcnotify.c.
3928
3929         * Tested ban lists in router environment successfully.
3930
3931 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3932
3933         * Implemented BAN command to the server, in silcd/command.[ch].
3934
3935         * Removed the BAN and INVITE_LIST modes from the CMODE command
3936           in the server code.
3937
3938         * Added function silc_string_match to regex match two strings.
3939           Affected files lib/silcutil/silcutil.[ch].
3940
3941 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3942
3943         * Redefined parts of the SilcChannelEntry in the server to support
3944           the new ban and invite lists.
3945
3946 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3947
3948         * Redefined the INVITE command.  The same command can be used to
3949           invite individuals to the channel but also to manage the invite
3950           list of the channel (to add to and remove from the invite list).
3951           Updated the protocol specs.
3952
3953         * Added new command SILC_COMMAND_BAN that can be used to manage
3954           the ban list of the channel.  Updated the protocol specs.
3955
3956         * Removed the channel modes: the SILC_CMODE_BAN and the 
3957           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
3958           in the CMODE command.  The equivalent features are now available
3959           using INVITE and BAN commands.  Updated the protocol specs.
3960
3961         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
3962           in the network about change in the current ban list.  The notify
3963           type is not used by the client.
3964
3965         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to 
3966           support the invite lists.
3967
3968 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3969
3970         * Added new function silc_string_regexify that converts string
3971           including wildcard characters into regex string that can
3972           be used by the GNU regex library.  Added into the file
3973           lib/silcutil/silcutil.[ch].
3974
3975           Added silc_string_regex_combine to combine to regex strings
3976           into one so that they can be used as one regex string by
3977           the GNU regex library.  Added into the file
3978           lib/silcutil/silcutil.[ch].
3979
3980           Added silc_string_regex_match to match two strings.  It returns
3981           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
3982
3983 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3984
3985         * Imported GNU regex to the soruce tree into lib/contrib.
3986           Fixed some compiler warning from the regex.c.
3987
3988 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3989
3990         * Fixed MOTD command in the server to work in router environment.
3991
3992         * Fixed the MOTD command in the client library to support
3993           the server argument in the command.
3994
3995         * Added `nickname_len' argument to the silc_idlist_add_client
3996           in the server, as the `nickname' argument may be binary data
3997           (it may be hash).
3998
3999         * Added silc_idlist_get_channels to return all channels from
4000           the ID list.
4001
4002         * Implemented LIST command to the server.  Affected file is
4003           silcd/command.c.
4004
4005         * Implemented the LIST command to the client library and on the
4006           user interface.
4007
4008         * Added [<user count>] argument to the LIST command reply.
4009           With private channels the user count is not shown.
4010
4011         * Updated TODO and README.
4012
4013 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4014
4015         * The client entry's data.registered must be TRUE even with
4016           global client entry on global client list.  The data.registered
4017           is used to check whether the client is anymore in the network,
4018           for example with WHOWAS command so it must be valid.
4019
4020         * Fixed the WHOWAS command in the server.  It now actually works
4021           in router environment.  Added function into silcd/command_reply.c
4022           silc_server_command_reply_whowas_save.
4023
4024         * Added silc_idlist_purge function to the silcd/idlist.c
4025           to periodically purge the ID Cache.
4026
4027         * Fixed INFO command in the server.  It works now in router
4028           environment.  Added <server name> argument to the INFO command
4029           reply.  Updated the protocol specs.
4030
4031         * Fixed minor bug in silc_idcache_purge to not purge if the
4032           expire value is zero.
4033
4034         * Fixed various bugs in WHOIS and IDENTIFY command handling as
4035           they were buggy because of the WHOWAS information.
4036
4037         * Fixed local command MSG to handle the async resolving of 
4038           the remote client properly.  It used to fail the first MSG.
4039           Affected file silc/local_command.c.
4040
4041         * Added `data_len' field to SilcIDCache context.
4042
4043 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4044
4045         * Update TODO.  Todo in commands in the server.
4046
4047 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4048
4049         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
4050           used by routers as broadcast packet to inform other routers
4051           about the changed user mode.
4052
4053           Implemented the notify handling in the server.  Affected file is
4054           silcd/packet_receive.c.  Added the function 
4055           silc_server_send_notify_umode to the silcd/packet_send.[ch].
4056
4057         * Added new generic Channel Payload and deprecated the New Channel
4058           Payload.  The New Channel Payload is now the generic Channel
4059           Payload.
4060
4061         * Added new argument `mode' to the silc_server_send_new_channel
4062           as it is required in the Channel Payload now.
4063
4064         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
4065           and created a new and real SilChannelPayload to represent the
4066           new generic Channel Payload.  Implemented the encode/decode
4067           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
4068
4069         * Added silc_server_get_client_channel_list to return the list
4070           of channels the client has joined for WHOIS command reply.
4071           Affected file silcd/server.[ch].
4072
4073         * Implemented the channel list sending in the WHOIS command reply
4074           in server and in the client.
4075
4076           Implemented the channel list displaying on the user interface
4077           as well.  Affected file silc/client_ops.c.
4078
4079         * Added silc_channel_payload_parse_list to parse list of Channel
4080           Payloads.  It returns SilcDList list of SilcChannelPayloads.
4081           Client for example can use this function to parse the list of
4082           channels it receives in the WHOIS command reply.  The caller
4083           must free the list by calling silc_channel_payload_list_free.
4084           Affected files lib/silccore/silcchannel.[ch].
4085
4086 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4087
4088         * Added one new argument <user mode> to the WHOIS command reply
4089           to return the mode of the user in SILC.  Updated the protocol
4090           specs.
4091
4092           Implemented it to the server and client.
4093
4094 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4095
4096         * Fixed the mode printing on the user interface on joining.
4097           Affected file silc/client_ops.c.
4098
4099         * Implemented the UMODE command and user modes in general to the
4100           client library and to the user interface.
4101
4102         * Implemented the UMODE command to the server.
4103
4104         * The server now sends UNKNOWN_COMMAND error status if client sends
4105           unknown command.  Affected file silcd/command.c.
4106
4107         * All server commands now handle the command identifier the right
4108           way when sending the command reply to the client.  The client can
4109           use to identify the command replies with the identifier.
4110
4111 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4112
4113         * Added silc_server_get_client_route to resolve the route to
4114           the client indicated by the client ID.  Affected file is
4115           silcd/server.[ch].
4116
4117         * Added silc_server_relay_packet as general function to relay
4118           packet to arbitrary destination.  This deprecates functions
4119           like _send_private_message_key, _relay_notify etc.  Affected
4120           file is silcd/packet_send.[ch].
4121
4122           Removed silc_server_send_key_agreement, 
4123           silc_server_send_private_message_key and
4124           silc_server_packet_relay_notify functions from the file
4125           silcd/packet_send.[ch].
4126
4127         * Updated TODO.
4128
4129         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
4130           server.  Affected file silcd/packet_receive.[ch].
4131
4132         * Implemented the KILL command to the client.  Implemented the
4133           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
4134           Affected files lib/silcclient/command[_reply].c and
4135           lib/silcclient/client_notify.c.  Implemented the KILL notify
4136           printing in the user inteface.
4137
4138         * Fixed a lot silc_parse_nick memory leaks from the client
4139           library in the file lib/silcclient/command.c.
4140
4141         * Changed the silc_server_send_notify_on_channels's `sender'
4142           argument from SilcSocketConnection to SilcClientEntry to 
4143           check the sender as entry and not as connection object and not
4144           to send to the client provided as argument.  The affected file
4145           is silcd/packet_send.[ch].
4146
4147         * The notify packets that are destined directly to the client used
4148           to not to be processed by the server.  Now changed that and the
4149           server processes all notify packets.  After relaying the packet
4150           to the client the notify packet is processed in the server.
4151
4152         * The silc_server_free_client_data now checks whether there is
4153           pending outgoing traffic for the client and purges the data to
4154           the network before removing the client entry.
4155
4156 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4157
4158         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
4159           an client is killed from the SILC Network.  Updated the protocol
4160           specs accordingly.
4161
4162           Added new function silc_server_send_notify_killed to the
4163           silcd/packet_send.[ch].
4164
4165         * Added function silc_server_packet_relay_notify to relay notify
4166           packets that are destined directly to a client.  In this case
4167           the server does not process the notify packets but merely relays
4168           it to the client.  Affected file silcd/packet_send.[ch].
4169
4170           Added also silc_server_packet_process_relay_notify to check
4171           whereto relay the notify.  Affected file is 
4172           silcd/packet_receive.[ch].
4173
4174         * Implemented the KILL command to the server.
4175
4176         * Updated TODO.
4177
4178         * Added the backup schema desgined last fall to the protocol
4179           specs for everyone to see.  The specification is in the
4180           *-spec-xx.txt draft and the packet type definitions for the
4181           backup routers is in *-pp-xx.txt draft.  Thusly, added also
4182           new packet type SILC_PACKET_CELL_ROUTERS.
4183
4184         * A big security problem in the implementation discovered.  The
4185           signoff of an client did not cause new channel key generation
4186           which it of course should've done.  The channel keys must be
4187           always re-generated when client leaves (or signoffs) the channel.
4188           The silc_server_remove_from_channels funtion now handles
4189           the channel key re-generation.
4190
4191         * Added `sender' argument to the silc_server_send_notify_on_channels
4192           to not to send the client provided as argument.  Affected file
4193           silcd/packet_send.[ch].
4194
4195 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4196
4197         * Implemented OPER and SILCOPER commands into the server and
4198           the client library.
4199
4200         * Added silc_auth_verify and silc_auth_verify_data to verify
4201           the authentication directly from the authentication payload.
4202           It supports verifying both passphrase and public key based
4203           authentication.  Affected file lib/silccore/silcauth.[ch].
4204
4205         * Added `hash' field to the SilcIDListData structure.  It is the
4206           hash negotiated in the SKE protocol.  Affected file is
4207           silcd/idlist.[ch].
4208
4209         * Slight redesigning of the SilcAuthPayload handling routines.
4210           Do not send SilcPKCS but SilcPublicKey as argument.
4211
4212         * Implemented the public key authentication support to the
4213           serverconfig.  The public key is loaded from the provided path
4214           and saved as authentication data to void * pointer.  Thus,
4215           changed the unsigned char *auth_data to void *auth_data;
4216
4217         * Fixed SHUTDOWN command to send the reply before the server
4218           is shutdown. :)  Affected file silcd/command.c.
4219
4220         * Fixed fatal bug in CONNECT command.  The hostname was invalid
4221           memory and server crashed.  Affected file silcd/command.c.
4222
4223         * Fixed fatal bug in CLOSE command.  The server_entry became
4224           invalid but was referenced later in the command.  Affected file
4225           silcd/command.c.
4226
4227 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4228
4229         * Fixed fatal bug in failure packet handling.  Server ignored
4230           the failure and thus crashed when it came.
4231
4232         * Updated TODO.
4233
4234 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4235
4236         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
4237           that the command may be executed only once in (about) 2 seconds.
4238           The old SILC_CF_LAG flag is same but allows command bursts up
4239           to five before limiting.
4240
4241           Added the support for CF_LAG and CF_LAG_STRICT flags to the
4242           server code.  Various commands now includes the CF_LAG_STRICT
4243           flag to disallow any kind of miss-use of the command.
4244
4245         * Fixed the silc_buffer_unformat to not to allocate any data
4246           if the length of the data is zero.  It used to allocate the
4247           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
4248
4249 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4250
4251         * Changed the format of AdminConnection configuration section
4252           in the server.  Added username of the admin to the format.
4253           Affected files silcd/serverconfig.[ch].
4254
4255           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
4256           to return admin configuration data by host, username and/or
4257           nickname.
4258
4259 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4260
4261         * Implemented WHOWAS command to the server.  Added the functions:
4262
4263           silc_server_command_whowas_parse,
4264           silc_server_command_whowas_send_reply,
4265           silc_server_command_whowas_from_client and
4266           silc_server_command_whowas_from_server
4267
4268         * Added <Client ID> argument to the WHOWAS command reply.  Updated
4269           the protocol specs accordingly.
4270
4271         * Implemented WHOWAS command and command_reply to the client
4272           library.
4273
4274           Implemented the WHOWAS printing on the user interface.
4275
4276 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4277
4278         * Added new argument to the WHOWAS command reply, the real name.
4279           It is an optional argument.  Updated the protocol specs.
4280
4281         * Added SilcIDCacheDestructor callback that is registered when
4282           the SilcIDCache is allocated.  The callback is called when
4283           an cache entry in the ID Cache expires, or is purged from the
4284           cache.  Added into lib/silccore/idcache.[ch].
4285
4286           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
4287           to destruct the client entries when the cache entry expires.
4288           Other ID Cache's in server and in the client library ignores
4289           the destructor.
4290
4291         * If the ID Cache entry's `expire' field is zero then the entry
4292           never expires.  Added boolean `expire' argument to the
4293           silc_idcache_add function in the lib/silccore/idcache.[ch].
4294           If it is TRUE the default expiry value is used.
4295
4296         * Added silc_server_free_client_data_timeout that is registered
4297           when client disconnects.  By default for 5 minutes we preserve
4298           the client entry for history - for WHOWAS command.
4299
4300 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4301
4302         * Added support to the server to enforce that commands are not
4303           executed more than once in 2 seconds.  If server receives 
4304           commands from client more frequently, timeout is registered
4305           to process the commands.  Affected file silcd/command.c.
4306           Added new function silc_server_command_process_timeout.
4307
4308         * Changed NICK_NOTIFY handling in client library to check that
4309           if the client's nickname was changed, so there is no need to
4310           resolve anything from the server.
4311
4312         * Removed error printing from the WHOIS and IDENTIFY commands.
4313           If error occurs then it is ignored silently in the client library.
4314           The application, however, may map the received error to 
4315           human readable error string.  The application currently maps
4316           the NO_SUCH_NICKNAME error to string.
4317
4318         * Made the command status message public to the application.  Moved
4319           them from lib/silcclient/command_reply.c to 
4320           lib/silcclient/command_reply.h.  The application can map the
4321           received command status to the string with the
4322           silc_client_command_status_message function.
4323
4324         * Added check to the server to check that client's ID is same
4325           as the Source ID in the packet the client sent.  They must
4326           match.
4327
4328 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4329
4330         * Added dist-bzip hook to the Makefile.am to make bzip2
4331           compressed distributions.
4332
4333 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4334
4335         * Server now enforces the maximum length for the nickname and
4336           the channel as protocol specification dictates.  128 bytes for
4337           nickname and 256 bytes for channel name.
4338
4339         * Moved the WHOIS printing to the application.  The client libary
4340           does not print out the WHOIS information anymore, the application
4341           must do it.  Renamed silc_client_command_reply_whois_print to
4342           the silc_client_command_reply_whois_save.
4343
4344           The client's idle time is also sent to the application now, and
4345           the idle is shown on screen.
4346
4347         * Added silc_client_command_reply_identify_save to save the
4348           received IDENTIFY entries.
4349
4350         * Do not check for channel private keys in message sending and
4351           reception if the channel does not have the PRIVKEY mode set.
4352           Affected file lib/silclient/client_channel.c.
4353
4354 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4355
4356         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
4357           just surfaced after chaning the JOIN procedure.
4358
4359 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4360
4361         * Added silc_client_get_clients_by_list to get client entries
4362           from Client ID list, that is returned for example by JOIN
4363           and USERS command replies.  The application should use this
4364           function for example when JOIN command reply is received to
4365           resolve the clients already on the channel (library does not
4366           do that anymore as USERS command reply is not used in the JOIN
4367           procedure anymore).  Affected files lib/silcclient/silcapi.h and
4368           lib/silcclient/idlist.c.
4369
4370         * JOIN command reply and USERS command reply returns now SilcBuffer
4371           pointers instead of unsigned char pointers when returning
4372           the client list and mode list.
4373
4374         * Added <Client ID> argument to the JOIN command reply, mainly
4375           for the server to identify for which client the command was
4376           originally sent.  Updated protocol specs accordingly.
4377
4378         * Added SilcDlist private_key pointer to the SilcChannelEntry
4379           in the client to support the channel private keys.  Affected
4380           file is lib/silcclient/idlist.h.
4381
4382         * Added SilcChannelPrivateKey argument to the function
4383           silc_client_send_channel_message so that application can choose
4384           to use specific private ke if it wants to.  If it is not provided,
4385           the normal channel key is used, unless private keys are set. 
4386           In this case the first (key that was added first) is used 
4387           as the encryption key.
4388
4389         * Implemented the support for channel private key handling.
4390           Implemented the following functions:
4391
4392           silc_client_add_channel_private_key,
4393           silc_client_del_channel_private_keys,
4394           silc_client_del_channel_private_key,
4395           silc_client_list_channel_private_keys and
4396           silc_client_free_channel_private_keys
4397
4398           Affected file lib/silcclient/client_channel.c.
4399
4400         * Added the support for the private keys in the channel message
4401           sending and encryption and in the message reception and
4402           decryption.  Affected funtions are
4403           silc_client_send_channel_message and silc_client_channel_message.
4404
4405 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4406
4407         * Added SKE's key verify callback to the client library's
4408           KE protocol context. Affected files lib/silcclient/protocol.[ch].
4409
4410         * Removed the statement that server (or router) must send USERS
4411           command reply when joining to the channel so that the client
4412           knows who are on the channel.  Instead, the client list and 
4413           client's mode list is now sent in the JOIN command reply to the
4414           client who joined channel.  This is better solution.
4415
4416         * Added function silc_server_get_users_on_channel and function
4417           silc_server_save_users_on_channel to the silcd/server.[ch].
4418
4419         * Removed function silc_server_command_send_users from the
4420           silcd/command.c.
4421
4422         * Do not show topic on the client library anymore.  The topic is
4423           sent in the command reply notify to the application and the
4424           application must show the topic now.
4425
4426 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4427
4428         * Added client searching by nickname hash into the IDENTIFY and
4429           WHOIS commands in the server as they were clearly missing from
4430           them.  Affected file is silcd/command.c.
4431
4432         * Fixed a bug in private message receiving in the client library.
4433           The remote ID was freed and it wasn't supposed, now it is
4434           duplicated.
4435
4436 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4437
4438         * Minor fix to the channel payload; allocate the data area, as it
4439           needs to be of specific length.
4440
4441         * If the key agreement port is zero then the operating
4442           system will define the bound port.  Affected files are
4443           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
4444
4445         * Added new function silc_channel_payload_decrypt into the file
4446           lib/silccore/silcchannel.[ch].
4447
4448         * Moved the channel message etc, check from silc_packet_decrypt
4449           to applications.  The library calls now a generic 
4450           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
4451           when the packet is either normal or special.  This was done to
4452           allow more wide range of checking that was not allowed when
4453           the code was in library.  Now applications can do virtually any
4454           checks to the packet and return to the library the decision how
4455           the packet should be processed.  Affected files are
4456           lib/silccore/silcpacket.[ch].
4457
4458           Added silc_server_packet_decrypt_check to the server and
4459           silc_client_packet_decrypt_check to the client library.
4460
4461         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
4462           to send with specified source and destination information.
4463
4464         * Channel message delivery between routers was broken after the
4465           channel key distribution was fixed earlier.  The channel key
4466           was used be to distributed to other routers as well which is not
4467           allowed by the protocol.  Now this is fixed and channel keys
4468           really are cell specific and the channel message delivery between
4469           routers comply with the protocol specification.
4470
4471         * Fixed various commands in server to check also the global list
4472           for the channel entry and not just the local list.  The affected
4473           file silcd/command.c.
4474
4475 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4476
4477         * Added assert()s to buffer formatting and unformatting routines
4478           to assert (if --enable-debug) when error occurs.  Affected
4479           file: lib/silcutil/silcbuffmt.c.
4480
4481         * Changed to auto-reconnect to check whether the remote host is
4482           router and register the re-connect timeout if it is.  It used 
4483           to check that whether we are normal server, but router must do
4484           auto-reconnect with another router as well.  Affected file
4485           silcd/server.c.
4486
4487         * Removed the [<key len>] option from CMODE command as the cipher
4488           name decides the key length, nowadays.  See the defined ciphers
4489           from the protocol specification.
4490
4491         * Added [<hmac>] option to the CMODE command to define the HMAC
4492           for the channel.  Added SILC_CMODE_HMAC channel mode.
4493
4494         * Added [<hmac>] option for the JOIN command so that user can
4495           select which HMAC is used to compute the MACs of the channel
4496           messages.
4497
4498         * Added Hmac field to the Channel Message Payload.  The integrity
4499           of plaintext channel messages are now protected by computing
4500           MAC of the message and attaching the MAC to the payload.  The
4501           MAC is encrypted.  Now, it is clear that this causes some
4502           overhead to the size of the packet but rationale for this is that
4503           now the receiver can verify whether the channel message decrypted
4504           correctly and also when private keys are set for the channel the
4505           receiver can decrypt the packet with several keys and check from
4506           the MAC which key decrypted the message correctly.
4507
4508         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
4509           lib/silccrypt/silccipher.[ch].
4510
4511         * Added silc_hash_len to return the digest length into the
4512           lib/silcrypt/silchash.[ch].
4513
4514         * Rewrote parts of Silc Channel Payload interface in the
4515           lib/silccore/silcchannel.[ch].  The encode function now also
4516           encrypts the packet and parse function decrypts it.
4517
4518 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4519
4520         * Fixed a minor formatting bug in the SKE's key material processing.
4521           It actually might have processed the keys wrong way resulting
4522           into wrong keys.
4523
4524         * Redefined the mandatory HMAC algorithms and added new algorithms.
4525           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
4526           and hmac-md5 truncated to 96 bits.  The mandatory is now 
4527           hmac-sha1-96.  Rest are optional (including the one that used
4528           to be mandatory).  Rationale for this is that the truncated HMAC
4529           length is sufficient from security point of view and can actually
4530           make the attack against the HMAC harder.  Also, the truncated
4531           HMAC causes less overhead to the packets.  See the RFC2104 for
4532           more information.
4533
4534         * Added new [hmac] configuration section.  The SKE used to use
4535           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
4536           is of course wrong.  The official names that must be proposed in
4537           the SKE are the ones defined in the protocol specification
4538           (hmac-sha1-96 for example).  The user can configure any hmac
4539           using any hash function configured in the [hash] section.  At
4540           least, the mandatory must be configured.
4541
4542           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
4543
4544         * Added HMAC list to the SKE proposal list.  It has now both
4545           hash algorithm list and HMAC list.  This makes the protocol
4546           incompatible with previous versions.  The SKE now seems to work
4547           the way it is supposed to work, for the first time actually.
4548
4549         * Defined plain Hash algorithms to the protocol specification.
4550           Added sha1 and md5.
4551
4552 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4553
4554         * Implemented support for key agreement packets into the server.
4555           Added functions silc_server_key_agreement and
4556           silc_server_send_key_agreement.  Other than these functions,
4557           server has nothing to do with this packet.
4558
4559         * Added support for private message key packets into the server.
4560           Added functions silc_server_private_message_key and
4561           silc_server_send_private_message_key.
4562
4563         * Updated TODO.
4564
4565         * Changed the silc_[client|server]_protocol_ke_set_keys to be
4566           called in the protocol's final callback instead in the END
4567           protocol state.  This makes a little more sense and in the same
4568           time in client we can use the same protocol routines for normal
4569           key exchange and to key agreement packet handling as well.
4570
4571         * Added to both client's and server's KE protocol context the
4572           SilcSKEKeyMaterial pointer to save the key material.  We will
4573           bring the key material to the protocol's final callback by doing
4574           this.  The final callback must free the key material.
4575
4576         * Added SKE's packet_send callback into client's KE protocol
4577           context so that the caller can choose what packet sending function
4578           is used.  This way we can use different packet sending when
4579           doing normal SKE when doing key agreement packet handling (in
4580           the key agreement packet handling we do not want to encrypt
4581           the packets).
4582
4583         * Implemented the responder side of the key agreement routines
4584           in the client.  The client can now bind to specified port and
4585           accept incoming key negotiation.  The key material is passed
4586           to the application after the protocol is over.
4587
4588         * Implemented the processing of incoming Key Agreement packet
4589           in the client.  Added function silc_client_key_agreement to
4590           process the packet.
4591
4592         * Implemented the intiator side of the key agreement routines
4593           in the client.  The client can now initiate key agreement with
4594           another remote client.  The key material is passed to the
4595           application after the protocol is over.
4596
4597         * Created client_keyagr.c to include all the key agreement 
4598           routines.
4599
4600         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
4601           SILC_TASK_CALLBACK except that it is not static.
4602
4603         * Created client_notify.c and moved the Notify packet handling
4604           from the client.[ch] into that file.
4605
4606         * Created client_prvmsg.c and moved all private message and
4607           private message key routines from the client.[ch] into that file.
4608
4609         * Create client_channel.c and moved all channel message and
4610           channel private key routines from the client.[ch] into that file.
4611
4612         * Changed silc_client_get_client_by_id_resolve to resolve with
4613           WHOIS command instead of IDENTIFY command, in the file
4614           lib/silclient/idlist.c.
4615
4616 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4617
4618         * Implemented the SKE's responder side to the Client library.
4619
4620         * When FAILURE is received to the protocol do not trust it
4621           blindly.  Register a timeout to wait whether the remote closes
4622           the connection as it should do it, only after that process the
4623           actual failure.  This was changed to both client and server.
4624
4625         * Added client_internal.h to include some of the structures
4626           there instead of client.h in lib/silcclient/.
4627
4628         * Added function silc_task_unregister_by_callback to unregister
4629           timeouts by the callback function.
4630
4631 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4632
4633         * Some "Incomplete WHOIS info" errors has been appearing on the
4634           log files.  Took away the entry->userinfo check from WHOIS
4635           reply sending.  The entry->userinfo is now " " if client did not
4636           provide one.  I thought this was fixed earlier but something
4637           is wrong still.  Let's see if the error still appears.
4638
4639 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4640
4641         * Fixed a minor bug in the login when the channel key is
4642           re-generated in the server.  It used to generate the key in
4643           wrong order and thus caused problems in the channel traffic.
4644
4645         * Fixed a minor bug in channel key distsribution after
4646           KICK command.  The key was not sent to the router even though
4647           it should've been.
4648
4649 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4650
4651         * Added silc_ske_process_key_material_data as generic routine
4652           to process any key material as the SILC protocol dictates.  The
4653           function is used by the actual SKE library but can be used by
4654           applications as well.  This relates to the private message keys
4655           and the channel private keys since they must be processed the
4656           same way the normal SILC session keys.  The protocol dictates
4657           this.  Affected files: lib/silcske/silcske.[ch].
4658
4659           Added also silc_ske_free_key_material to free the
4660           SilcSKEKeyMaterial structure.
4661
4662         * Defined silc_cipher_set_key function to set the key for
4663           cipher without using the object's method function.  The affected
4664           files: lib/silccrypt/silccipher.[ch].
4665
4666         * Implemented silc silc_client_add_private_message_key,
4667           silc_client_add_private_message_key_ske, 
4668           silc_client_del_private_message_key,
4669           silc_client_list_private_message_keys and
4670           silc_client_free_private_message_keys functions in the
4671           client library.
4672
4673           Added functions silc_client_send_private_message_key to send
4674           the Private Message Key payload and silc_client_private_message_key
4675           to handle incoming Private Message Key payload.
4676
4677         * Added Cipher field to the Private Message Key payload to set
4678           the cipher to be used.  If ignored, the default cipher defined
4679           in the SILC protocol (aes-256-cbc) is used.
4680
4681 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4682
4683         * Removed lib/silcclient/ops.h file.
4684
4685           Redefined parts of the SILC Client Library API. Created new
4686           file silcapi.h that deprecates the ops.h file and defines the
4687           published Client Library API.  Defined also private message key
4688           API and channel private key API into the file.
4689
4690           This is the file that the application must include from the
4691           SILC Client Library.  Other files need not be included by
4692           the application anymore.
4693
4694         * Added new key_agreement client operation callback and also
4695           defined the Key Agreement library API for the application.
4696
4697 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4698
4699         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
4700           is used by clients to request key negotiation  between another
4701           client in the SILC network.  If the negotiation is started it
4702           is performed using the SKE protocol.  The result of the
4703           negotiation, the secret key material, can be used for example
4704           as private message key.
4705
4706           Implemented the Key Agreement payload into the files
4707           lib/silccore/silauth.[ch].
4708
4709 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4710
4711         * Redefined ciphers for the SILC protocol.  Added some new ciphers
4712           and defined the key lengths for the algorithms.  Changed the
4713           code accordingly.  The default key length is now 256 bits.
4714
4715         * Fixed SKE key distribution function silc_ske_process_key_material
4716           when the key length is more than 128 bits.  The default key 
4717           length in SILC is now 256 bits.
4718
4719         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
4720           to indicate unsupported algorithm.
4721
4722         * Renamed rijndael.c to aes.c and all functions as well.
4723
4724         * Fixed a long standing channel key setting bug in client library.
4725           Weird that it has never surfaced before.
4726
4727         * Fixed bug in channel deletion.  If the entire channel is removed
4728           then it must also delete the references of the channel entry
4729           from the client's channel list as the client's channel entry and
4730           the channel's client entry share same memory.
4731
4732 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4733
4734         * Implemented CONNECT and SHUTDOWN commands in the client.
4735
4736         * Implemented CLOSE command to the client.
4737
4738         * Added the function silc_idlist_find_server_by_name into the
4739           files silcd/idlist.[ch].
4740
4741           Added the function silc_idlist_find_server_by_conn into the
4742           files silcd/idlist.[ch].
4743
4744 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4745
4746         * DIE command was renamed to SHUTDOWN.  Updated the both code
4747           and protocol specs.
4748
4749         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
4750           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
4751
4752         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
4753           side.
4754
4755         * Added function silc_server_create_connection function to create
4756           connection to remote router.  My server implementation actually
4757           does not allow router to connect to normal server (it expects
4758           that normal server always initiates the connection to the router)
4759           so the CONNECT command is only good for connecting to another
4760           router.
4761
4762 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4763
4764         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
4765           or some other client was kicked from the channel.
4766
4767           Implemented the handling of the notify type to both client
4768           and server.
4769
4770           Implemented silc_server_send_notify_kicked to send the KICKED
4771           notify.  It is used to send it to the server's primary router.
4772
4773         * Implemented the KICK command into server and client.
4774
4775         * Added `query' argument to the silc_idlist_get_client function
4776           to indicate whether to query the client from server or not if
4777           it was not found.
4778
4779         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
4780           to indicate that the client is not channel founder.
4781
4782         * Updated TODO.
4783
4784 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4785
4786         * Removed the rng context from SilcPacketContext structure and
4787           changed that the packet routine uses the Global RNG API.
4788
4789 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4790
4791         * Added support for quit message that client can "leave" on the
4792           channel when it quits the SILC.  It is ditributed inside the
4793           SILC_NOTIFY_TYPE_SIGNOFF notify type.
4794
4795           Added silc_server_free_client_data that will take the
4796           signoff message as argument.
4797
4798         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
4799
4800 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4801
4802         * Updated parts of the protocol specification to keep it up
4803           to date.
4804
4805 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4806
4807         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
4808           payloads in one packet.
4809
4810         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
4811           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
4812           use now the new List flag.
4813
4814         * Also deprecated the following packet types: REPLACE_ID,
4815           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
4816          
4817         * Added list support for Notify packet in server.
4818
4819         * Added silc_server_send_notify_channel_change to send the
4820           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
4821           the silc_server_send_replace_id.
4822
4823         * Added silc_server_send_notify_nick_change to send the
4824           NICK_CHANGE notify type.  Deprecates the function
4825           silc_server_send_replace_id.
4826
4827         * Added silc_server_send_notify_join to send the JOIN notify type.
4828           Deprecates the function silc_server_send_new_channel_user.
4829
4830         * Added silc_server_send_notify_leave to send LEAVE notify type.
4831           Deprecates the function silc_server_send_remove_channel_user.
4832
4833         * Added silc_server_send_notify_cmode and 
4834           silc_server_send_notify_cumode to send CMODE and CUMODE notify
4835           types.  Deprecates the silc_server_send_set_mode function.
4836
4837         * Added SERVER_SIGNOFF notify type to indicate that server has
4838           quit.  This means that all clients on the channel from that 
4839           server will drop.  This can be also used when netsplit happens.
4840
4841           Deprecated REMOVE_ID packet type since it is not needed anymore
4842           even from server.
4843
4844           Added silc_server_send_notify_server_signoff to send the
4845           SERVER_SIGNOFF notify type.  Deprecates the function
4846           silc_server_send_remove_id.
4847
4848           Added also silc_server_send_notify_signoff to send the
4849           SIGNOFF notify type.
4850
4851         * Employed the PKCS #1. It is the mandatory way to do RSA in the
4852           SILC protocol from this day on.  Changed the protocol 
4853           specification as well.
4854
4855         * Added silc_server_send_notify_topic_set to send TOPIC_SET
4856           notify type.  It is used between routers to notify about
4857           topic changes on a channel.
4858
4859         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
4860           ID data.
4861
4862         * Partly updated the protocol specification to comply with the
4863           changes now made.  It is still though a bit outdated.
4864
4865         * The JOIN notify type now takes one extra argument <Channel ID>.
4866           The packet used to be destined to the channel but now the
4867           JOIN type may be sent as list thus it is impossible to 
4868           destine it to any specific channel.  By adding this argument
4869           it is again possible.
4870
4871 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4872
4873         * Added CREDITS file.  The CHANGES and CREDITS file will appear
4874           in the distribution as well.
4875
4876 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4877
4878         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
4879           types in the server's silcd/packet_receive.c.
4880
4881         * Implemented CMODE and CUMODE to work in router environment.
4882
4883         * Fixed minor encoding and decoding buglet from the
4884           lib/silccore/silcmode.c.
4885
4886         * Fixed buffer overflow from lib/silcclient/command.c in USERS
4887           command parsing.
4888
4889 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
4890
4891         * Changed all SilcConfigServer* and silc_config_server* to
4892           SilcServerConfig* and silc_server_config*, respectively.
4893           Patch by Bostik.
4894
4895 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4896
4897         * Associated the ID (client or server ID) to the Authentication
4898           Payload to avoid any possibility of forging.  Updated the
4899           protocol specification and the code accordingly.
4900
4901 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4902
4903         * The RSA key length is now save to the RsaKey context in the
4904           key generation process in lib/silccrypt/rsa.c.  The key length
4905           is now used to figure out the maximum size of the block allowed
4906           to be encrypted/signed.
4907
4908         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
4909           is equivalent to the silc_mp_mp2bin but does not allocate any
4910           memory.
4911
4912         * Changed silc_mp_mp2bin API to take length argument.  If it is
4913           non-zero then the buffer is allocated that large.  If zero, then
4914           the size is approximated using silc_mp_sizeinbase, which however
4915           is not relieable.
4916
4917         * Created Global RNG API which is global RNG that application can
4918           initialize.  After initializing, any routine anywhere in the
4919           code (including library) can use RNG without allocating a new
4920           RNG object.  This was done to allow this sort of use of the 
4921           RNG in code that has no chance to allocate RNG object.  All
4922           applications currently allocate this and many routines in the
4923           library use this.  Affected file lib/silccrypt/silcrng.[ch].
4924
4925         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
4926           it to use the Global RNG API.
4927
4928         * Defined Authentication Payload into protocol specification that
4929           is used during SILC session to authenticate entities.  It is
4930           used for example by client to authenticate itself to the server
4931           to obtain server operator privileges.
4932
4933           Implemented this payload into the lib/silccore/silcauth.[ch].
4934           Implemented also routines for public key based authentication
4935           as the new protocol specification dictates.
4936
4937           Moved definitions of different authentication methods from
4938           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
4939
4940         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
4941           silc_pkcs_verify and silc_pkcs_sign_with_hash and
4942           silc_pkcs_verify_with_hash functions into the file 
4943           lib/silccrypt/silcpkcs.[ch].
4944
4945 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4946
4947         * The client entry's userinfo pointer must be always valid. 
4948           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
4949           will fail since it requires the userinfo.  Now, the userinfo
4950           is allocated as "" if actual userinfo does not exist.  Actually,
4951           it must exist and it is totally Ok to drop client connections
4952           that does not announce the userinfo.  However, we will make
4953           this workaround for now.
4954
4955         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
4956           to return the remote port by socket.
4957
4958 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4959
4960         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
4961           SILC_SERVER_PENDING_EXEC and added an new macro
4962           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
4963           data or when error occurs while processing the pending command.
4964
4965           Added new argument `destructor' into silc_server_command_pending
4966           and to the SilcServerCommandPending object.  This destructor is
4967           now called after calling the pending callback or if error occurs
4968           immediately.  If error occurs the actual pending callback won't
4969           be called at all - only the destructor.  The destructor may be
4970           NULL if destructor is not needed.
4971
4972           All this applies for client library code as well.  Similar
4973           changes were made there as well for the pending commands.
4974
4975           In the client, the application must now allocate the 
4976           SilcClientCommandContext with the silc_client_command_alloc
4977           function.
4978
4979         * Added reference counter to the SilcServerCommandContext.  Added
4980           function silc_server_command_alloc and silc_server_command_dup 
4981           functions.
4982
4983           Same type of functions added to the client library for the same
4984           purpose as well.
4985
4986         * Removed the cmd_ident from IDListData away since it is now 
4987           global for all connections.  It is the command identifier used
4988           in command sending and with pending commands.  The affected file
4989           is silcd/idlist.h.
4990
4991         * Added reference counter to the SilcSocketConnection objecet to
4992           indicate the usage count of the object.  The object won't be
4993           freed untill the reference counter hits zero.  Currently only
4994           server uses this, and client ignores it.  The client must be
4995           set to use this too later.  The affected files are
4996           lib/silccore/silcsockconn.[ch].  Added also the function
4997           silc_socket_dup to increase the reference counter.
4998
4999           This was mainly added because it is possible that the socket
5000           is removed underneath of pending command or other async
5001           operation.  Now it won't be free'd and proper DISCONNECTING
5002           flags, etc. can be set to avoid sending data to connection that
5003           is not valid anymore.
5004
5005         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
5006           the connection.  After that it sets SILC_SET_DISCONNECTED.
5007           It is, however, possible that the socket data is not still freed.
5008           The silc_server_packet_process now checks that data is not
5009           read or written to connection that is DISCONNECTED.  The socket
5010           get's freed when the reference counter hits zero.
5011
5012 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5013
5014         * Changed the client operation API: channel_message operation's
5015           `sender' is now the client entry of the sender, not the nickname
5016           and the `channel' is the channel entry, not the channel name.
5017
5018           In the private_message operation the `sender' is now also the
5019           client entry of the sender not the nickname.
5020
5021           Affected file is lib/silcclient/ops.h and all applications
5022           using the client operations.
5023
5024 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5025
5026         * Moved the calling of ops->connect() from connect_to_server_final
5027           into receive_new_id functin since that is the point when the
5028           client is actually allowed to send traffic to network.  The
5029           affected file is lib/silcclient/client.c.
5030
5031 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5032
5033         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
5034           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
5035           (if needs broadcasting) instead of broadcasting the packets one
5036           by one which would make a burst in the network traffic.
5037
5038         * Added `broadcast' argument to the functions in silcd/server.[ch]
5039           silc_server_create_new_channel[_with_id] to indicate whether
5040           to send New Channel packet to primary router.
5041
5042 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5043
5044         * Added new function into the silcd/server.[ch] files:
5045           silc_server_create_new_channel_with_id to create new channel with
5046           already existing Channel ID.
5047
5048         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
5049           lib/silccore/silcpacket.h.  This packet is used t send list of
5050           Set Mode payloads inside one packet.  Server uses this to set
5051           the modes for the channels and clients on those channels, that it
5052           announced to the router when it connected to it.  The protocol
5053           specification has been updated accordingly.
5054
5055         * The silc_server_new_channel did not handle the packet coming
5056           from normal server as it normally does not send that.  However,
5057           when it announces its channels it does send it.  Implemented
5058           the support for that.
5059
5060         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
5061           into the file lib/silccore/id.h.
5062
5063 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5064
5065         * Fixed memory leaks in the functions silc_idlist_del_client,
5066           silc_idlist_del_channel and silc_idlist_del_server in the file
5067           silcd/idlist.c.  All of those leaked like a sieve.
5068
5069         * Fixed some small memory leaks in the client's function
5070           silc_client_notify_by_server.
5071
5072         * Added functions into silcd/server.c: silc_server_announce_clients,
5073           silc_server_announce_channels and silc_server_announce_server.
5074           These functions are used by normal and router server to announce
5075           to its primary router about clients, channels and servers (when
5076           router) that we own.  This is done after we've connected to the
5077           router.
5078
5079           These functions effectively implements the following packet types:
5080           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
5081           and SILC_PACKET_NEW_ID_LIST.
5082
5083         * Added new functions into the silcd/packet_receive.[ch]:
5084           silc_server_new_id_list, silc_server_new_channel_list and
5085           silc_server_new_channel_user_list to handle the incoming 
5086           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
5087
5088         * Added support of changing Channel ID in the function
5089           silc_server_replace_id.  If the server that announces a channel
5090           to the router already exists in the router (with same name but
5091           with different Channel ID), router is responsible to send
5092           Replace ID packet to the server and force the server to change
5093           the Channel ID to the one router has.
5094
5095         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
5096           client that the Channel ID has been changed by the router.  The
5097           normal server sends this to the client.  Client must start using
5098           the new Channel ID as the channel's ID.
5099
5100           Implemented handling of this new type into lib/silcclient/client.c
5101           into the function silc_client_notify_by_server.
5102
5103         * Added new function silc_idlist_replace_channel_id into the files
5104           silcd/idlist.[ch] to replace the Channel ID.
5105
5106 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5107
5108         * Call silc_server_command_identify_check always when processing
5109           the IDENTIFY command in silcd/command.c
5110
5111 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5112
5113         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
5114           send keepalive packets.  The packet can be sent by clients, 
5115           servers and routers.
5116
5117           Added function silc_socket_set_heartbeat into the file
5118           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
5119           If not set, the heartbeat is not performed.  The actual 
5120           heartbeat is implemented in the low level socket connection
5121           library.  However, application is responsible of actually
5122           sending the packet.
5123
5124           Added silc_server_send_heartbeat to send the actual heartbeat
5125           packet into silcd/packet_send.[ch].  Server now performs
5126           keepalive with all connections.
5127
5128         * Added silc_task_get_first function into lib/silcutil/silctask.c
5129           to return the timeout task with shortest timeout.  There was a bug
5130           in task unregistration that caused problems.  TODO has been
5131           updated to include that task system must be rewritten.
5132
5133         * The client library will now resolve the client information when
5134           receiving JOIN notify from server for client that we know but
5135           have incomplete information.
5136
5137         * Rewrote parts of silc_server_remove_from_channels and
5138           silc_server_remove_from_one_channel as they did not remove the
5139           channel in some circumstances even though they should've.
5140
5141         * Encryption problem encountered in server:
5142
5143           The LEAVE command used to send the Channel Key packet to the
5144           router immediately after generating it.  However, the code
5145           had earlier sent Remove Channel user packet but not immediately,
5146           ie. it was put to queue.  The order of packets in the router
5147           was that Channel Key packet was first and Remove Channel User
5148           packet was second, even though they were encrypted in the
5149           reverse order.  For this reason, MAC check failed.  Now, this
5150           is fixed by not sending the Channel Key packet immediately but
5151           putting it to queue.  However, this is more fundamental problem:
5152           packets that are in queue should actually not be encrypted 
5153           because packets that are sent immediately gets encrypted
5154           actually with wrong IV (and thus MAC check fails).  So, packets
5155           that are in queue should be encrypted when they are sent to
5156           the wire and not when they put to the queue.
5157
5158           However, the problem is that the current system has not been
5159           designed to work that way.  Instead, the packet is encrypted
5160           as soon as possible and left to the queue.  The queue is then
5161           just purged into wire.  There won't be any fixes for this
5162           any time soon.  So, the current semantic for packet sending
5163           is as follows:
5164
5165           o If you send packet to remote host and do not force the send
5166           (the packet will be in queue) then all subsequent packets to the
5167           same remote host must also be put to the queue.  Only after the
5168           queue has been purged is it safe again to force the packet
5169           send immediately.
5170
5171           o If you send all packets immediately then it safe to send
5172           any of subsequent packets through the queue, however, after
5173           the first packet is put to queue then any subsequent packets
5174           must also be put to the queue.
5175
5176           Follow these rules and everything works fine.
5177
5178 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5179
5180         * Added new function silc_server_remove_clients_by_server to
5181           remove all client entries from ID list when the server connection
5182           is lost.  In this case it is also important to invalidate all
5183           client entires as they hold the invalid server entry.  This
5184           fixes fatal bug when server has lost connection and will reconnect
5185           again.
5186
5187 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5188
5189         * Made some sanity checks to silc_server_daemonise like to check
5190           whether the requested user and group actually exists.
5191
5192         * Added sanity check to SKE's silc_ske_responder_finish to check
5193           that the public and private key actually is valid. 
5194
5195         * Invalidate the client's nickname when receiving Replace ID
5196           packet and the Client ID is being replaced.  This means that the
5197           server will query the nickname if someone needs it (client)
5198           a bit later.
5199
5200         * Sort the ID Cache in client library when the ID Cache data
5201           has changed (needs sorting).
5202
5203         * Do not allow for SILC client to create several connections to
5204           several servers.  The client does not support windows right now
5205           and generating multiple connections causes weird behaviour.
5206
5207           Irssi-silc client does support windows and can handle several
5208           connections without problems, see: www.irssi.org and SILC plugin.
5209
5210         * Fixed some places where client was added to the IDList.  The
5211           rule of thumb is following (in order to get everything right):
5212           If the client is directly connected local client then the 
5213           `connection' argument must be set and `router' argument must be 
5214           NULL to silc_idlist_add_client function.  If the client is not
5215           directly connected client then the `router' argument must
5216           bet set and the `connection' argument must be NULL to the
5217           silc_idlist_add_client function.
5218
5219         * The funtion silc_server_packet_send_local_channel actually did
5220           not check whether the client was locally connected or not.  It
5221           does that now.  Fixed a bug related to LEAVE command.
5222
5223         * Fixed Remove Channel User payload parsing bug in server's
5224           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
5225
5226         * The server's silc_server_save_channel_key now checks also the
5227           global ID list for the channel as it might not be in the local
5228           list.  Fixed a bug related to LEAVE command.
5229
5230         * Is this the end of the [<unknown>] buglet that has been lurking
5231           around for a long time?  A little for loop fix in server's
5232           silc_server_command_whois_parse that is used by both IDENTIFY
5233           and WHOIS command.  At least, this was a clear bug and a cause
5234           of one type of [<unknown>] buglet.
5235
5236         * WHOIS and IDENTIFY commands call the function
5237           silc_server_command_[whois/identify]_check function even if
5238           we are not router server.
5239
5240 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5241
5242         * Added --with-gmp configuration option.  If set the GMP
5243           is always compiled in the SILC source tree.  If not set then
5244           it is checked whether the system has the GMP3 installed.  If
5245           it has then the GMP won't be compiled (the system's headers
5246           and library is used), if it doesn't have it then the GMP is
5247           compiled in the SILC source tree.
5248
5249 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5250
5251         * Changed RSA private exponent generation to what PKCS #1
5252           suggests.  We try to find the smallest possible d by doing
5253           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
5254           not security fix but optimization.
5255
5256 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5257
5258         * Added new config entry [Identity] to fork the server and run
5259           it as specific user and group.  A patch from Bostik.
5260
5261         * Imported Dotconf configuration library into lib/dotconf.
5262           This will be used to create the SILC configuration files later.
5263           It will appear in the distsribution after this commit.
5264
5265 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5266
5267         * A big code auditing weekend happening.  Auditing code for 
5268           obvious mistakes, bugs and errors.  Also, removing any code
5269           that is obsolete.
5270
5271           Removed files for being obsolete:
5272
5273           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
5274           inline in the file lib/silcutil/silcbuffer.h)
5275
5276           o lib/silcutil/silcbufutil.c (the header has inline versions)
5277
5278           Changed code to fix possible error conditions:
5279
5280           o The buffer formatting routines now check that the destination
5281           buffer really has enough space to add the data.  This applies for
5282           both buffer formatting and unformatting 
5283           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
5284           unformatting was changed to accomodate following rules: 
5285           XXX_*STRING_ALLOC will allocate space for the data into the pointer
5286           sent to the function while XXX_*STRING will not allocate or copy 
5287           the data into the buffer.  Instead it sets the pointer from the
5288           buffer into the pointer sent as argument (XXX_*STRING used to
5289           require that the pointer must be allocated already).  This change
5290           makes this whole thing a bit more consistent and more optimized
5291           (note that the data returned in the unformatting with XXX_*STRING
5292           must not be freed now).  The routines return now -1 on error.
5293
5294           o Tried to find all code that use buffer_format and buffer_unformat
5295           and added return value checking to prevent formatting and
5296           especially unformatting errors and possible subsequent fatal
5297           errors.
5298
5299           o Changed ske->x and ske->KEY to mallocated pointers in
5300           lib/silcske/silcske.h.  Fixed possible data and memory leak.
5301
5302           o Added return value checking to all *_parse* functions.  Fixed
5303           many memory leaks as well.
5304
5305           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
5306           so that buffer overflows would not happen.  All code now also
5307           checks the return value as it can fail.
5308
5309 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5310
5311         * Added reconnection support to server if the normal server looses
5312           its connection to the router (for example if router is rebooted).
5313           The server performs normal reconnection strategy implemented
5314           to the server.  Affected file silcd/server.c.
5315
5316 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5317
5318         * Added new packet type SILC_PACKET_SET_MODE that is used to
5319           distribute the information about changed modes (for clients,
5320           channels and clients channel modes) to all routers in the
5321           network.  Updated the protocol specification accordingly.
5322
5323           Added functions into silcd/packet_send.c and 
5324           silcd/packet_receive.c: silc_server_send_set_mode, 
5325           silc_server_set_mode.
5326
5327           Added new files silcmode.[ch] into lib/silccore that implements
5328           the encoding and decoding of Set Mode Payload.  Added new type
5329           SilcSetModePayload.  Moved the definitions of different modes
5330           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
5331
5332 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5333
5334         * Oops, a little mistake in server's connection authentication 
5335           protocol.  The protocol is not ended with FAILURE but with
5336           SUCCESS if the authentication is Ok. :)  Affected file is
5337           silcd/protocol.c.
5338
5339         * Implemented NICK_CHANGE notify handling in server in the file
5340           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
5341           the local clients on the channel.  After the changing nickname
5342           in router environment snhould work and the [<unknown>] nickname
5343           should appear no more.
5344  
5345           The silc_server_replace_id function that receives the Replace ID
5346           payload now sends the NICK_CHANGE notify type also in the file
5347           silcd/packet_receive.c
5348
5349         * Changed WHOIS and IDENTIFY command to support the maximum amount
5350           of arguments defined in protocol specs (3328 arguments).  This 
5351           fixed a bug that caused problems when there were more than three
5352           users on a channel.
5353
5354 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5355
5356         * Added extra parameter, command identifier, to the
5357           silc_client_send_command so that explicit command identifier
5358           can be defined.
5359
5360           Changed that ID list routines uses specific command identifier
5361           when sending WHOIS/IDENTIFY requests to the server so that they
5362           can be identified when the reply comes back.
5363
5364           Affected files lib/silcclient/command.[ch],
5365           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
5366
5367         * Added `sender' argument to silc_server_packet_send_to_channel
5368           to indicaet the sender who originally sent the packet to us
5369           that we are now re-sending.  Ignored if NULL.  Affected file
5370           silcd/packet_send.[ch].
5371
5372         * Added some server statistics support in silcd/server_internal.h
5373           SilcServerStatistics structure and around the server code.  Also
5374           send some nice statistics information when client is connecting
5375           to the client.
5376
5377 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5378
5379         * Fixed channel ID decoding in server's JOIN command reply in
5380           silcd/command_reply.c
5381
5382         * Fixed braodcasting of replace ID payload to not to send it if
5383           we are standalone server in silcd/packet_receive.c.
5384
5385         * Fixed all channel message sending routines to not to send
5386           packets to clients that has router set, since they are routed
5387           separately in the same function earlier.  Affects file
5388           silcd/packet_send.c and all channel packet sending functions.
5389
5390         * In USERS reply, res_argv[i] are not allocated, the table
5391           is allocated.  Thus changed that free the table, not its
5392           internals.
5393
5394         * In server's whois_check and identify_check if the client is
5395           locally connected do not send any WHOIS commands - they are not
5396           needed.
5397
5398 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5399
5400         * Fixed some minor bugs in client when sending WHOIS command.  The
5401           arguments was in wrong order.
5402
5403         * Removed statis function add_to_channel from server in 
5404           silcd/command.c that was previously used with the joining but
5405           is obsolete now.
5406
5407         * Tested USERS command in router environment successfully with two
5408           routers, two servers and two clients.
5409
5410 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5411
5412         * Reorganized the USERS command and command reply in client library
5413           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
5414           When the command is given by user we register a pending command
5415           callback that will reprocess the command after the reply has been
5416           received from the server.  When reprocessing the packet we then
5417           display the information.  Thus, the USERS information is displayed
5418           now in the command callback instead of in the command reply
5419           callback.  The processing of the command is same as previously
5420           when server has sent the command reply in the JOINing process.
5421
5422         * Added to USERS command in silcd/command_reply.c to join the client,
5423           we didn't use to know about, to the channel after we've created
5424           a client entry for it.  Also, for clienet we did know already still
5425           check whether it is on the channel or not and add it if not.
5426
5427         * Removed silc_server_command_join_notify as the function and its
5428           use was obsolete.
5429
5430 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5431
5432         * Changed the client's pending command handling to the same as the
5433           server's pending command handling.  It is also now possible to
5434           execute command reply functions from other command reply
5435           function as the function callbacks for commands and command
5436           replies are one and same.  The pending commands are not static
5437           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
5438           in client connection context.  Thus, pending commands are server
5439           connection specific as it is convenient.
5440
5441           Changed the function silc_client_command_pending and
5442           silc_client_command_pending_del and added new function
5443           silc_client_command_pending_check.  Removed the 
5444           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
5445           macros.
5446
5447         * Added cmd_ident, current command identifier, to the client
5448           connection context in lib/silcclient/client.h to keep track on
5449           command identifiers used in command sending.  Client's command reply
5450           function handling now supports the mandatory command identifiers.
5451
5452         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
5453           funtions in client to fully support pending command callbacks.
5454
5455         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
5456           as one of the arguments to the application in the command reply
5457           client operation.
5458
5459         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
5460           before first releasing SILC but came back.  Now it is removed again
5461           and should come back nomore.  The FORWARDED flag was used only
5462           by the JOINing procedure by forwarding the command packet to router.
5463           Now, the JOINing procedure has been changed to more generic (due
5464           to various router environment issues) and FORWARDED is not needed
5465           anymore for anything.  The protocol specification is yet to be
5466           updated.
5467
5468           Now, removed silc_server_packet_forward from server and the flag
5469           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
5470
5471 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5472
5473         * Renamed NAMES command to USERS command.  The NAMES was named that
5474           due to historical reasons.  Now it is renamed.  Also, rewrote
5475           parts of the USERS command.  The nickname list is not sent anymore
5476           by the server.  Only Client ID and mode lists are sent in the USERS
5477           command.  Changed this also to the protocol specification.
5478
5479           The client now resolves the names and stuff after it receives
5480           the USERS list from the server when joining to the channel.
5481
5482         * WHOIS and IDENTIFY commands has been changed to support multiple
5483           Client ID's per command.  One can now search for multiple users
5484           in the network by sending only one WHOIS or IDENTIFY command.
5485           Changed the code and the protocol specifications.
5486
5487         * Removed silc_server_command_identify_parse and changed that IDENTIFY
5488           uses silc_server_command_whois_parse to parse the request. */
5489
5490         * If normal server, do not parse the WHOIS and IDENTIFY requests
5491           before sending it to the router.  Saves some time.
5492
5493 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5494
5495         * Fixed JOIN command on client library.  Wrong number of arguments
5496           used to crash the client.
5497
5498         * Added silc_server_channel_has_global function to check whether
5499           channel has global users or not.
5500
5501         * Added silc_server_channel_has_local function to check whether channel
5502           has locally connected clients on the channel.
5503
5504         * The silc_server_remove_from_one_channel now checks whether the
5505           channel has global users or not after given client was removed from
5506           the channel.  It also checks whether the channel has local clients
5507           on the channel anymore.  If it does not have then the channel entry
5508           is removed as it is not needed anymore.
5509
5510         * The silc_server_notify now checks on JOIN notify whether the joining
5511           client is one of locally connected or global.  If it is global then
5512           the channel has now global users on the channel and that is marked
5513           to the channel entry.  Also, it now saves the global client to
5514           global list who is joining and JOINs it to the channel.  This is
5515           for normal server, that is.
5516
5517           Changed silc_server_send_notify_on_channel, 
5518           silc_server_packet_relay_to_channel and 
5519           silc_server_packet_send_to_channel check if we are normal server
5520           and client has router set (ie. global client) do not send the
5521           message to that client, as it is already routed to our router.
5522
5523         * Implemented LEAVE notify type handling in silc_server_notify 
5524           function.
5525
5526         * Tested LEAVE command in router environment successfully.  Tested
5527           with two routers, two servers and two clients.
5528
5529         * Updated TODO.
5530
5531         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
5532
5533         * Implemented SIGNOFF notify type handling in silc_server_notify
5534           function.
5535
5536         * silc_server_remove_id now removes the client entry from all channels
5537           it has joined and thusly sends SIGNOFF notify type.
5538
5539         * Rewrote the NAMES list generation in server by removing two excess
5540           loops.  The lists are created now inside one loop.
5541
5542 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5543
5544         * silc_server_remove_channel_user checks now also global list
5545           for channel and client.
5546
5547         * silc_server_new_channel_user checks now both local and global
5548           list for channel and client.  Fixed a bug in client id decoding.
5549           Used to decode wrong buffer.
5550
5551         * silc_server_channel_message checks now both local and global
5552           list for channel entry.
5553
5554         * Tested channel joining (hence JOIN) in router environment
5555           successfully.  Tested with two routers, two servers and two
5556           clients.
5557
5558         * Tested channel message sending in router environment successfully.
5559
5560 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5561
5562         * Added silc_server_save_channel_key into server.[ch] to save the
5563           received channel key in Channel Key payload processing. It is
5564           also used in JOIN command reply handling.
5565
5566           Equivalent function silc_client_save_channel_key added into
5567           client.[ch] into client library.
5568
5569         * Changed JOIN command reply to send information whether the channel
5570           was created or not (is existing already) and the channel key 
5571           payload.  Changed protocol specs accordingly.
5572
5573         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
5574           the request was sent by ID and not by nickname.  Crashed on
5575           NULL dereference.
5576
5577 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5578
5579         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
5580           now correctly save the received data.
5581
5582         * silc_server_free_sock_user_data now notifies routers in the 
5583           network about entities leaving the network.
5584
5585           At the same time implemented functions silc_server_remove_id
5586           and silc_server_send_remove_id to receive and send REMOVE_ID
5587           packets.  The packet is used to notify routers in the network
5588           about leaving entities.  The ID removed will become invalid in
5589           the network.
5590
5591         * Added function silc_idlist_del_server into server. Removes and
5592           free's server entry from ID list.
5593
5594         * silc_server_private_message function now checks, if we are router,
5595           that the destination ID really is valid ID, naturally.
5596
5597         * In router when NEW_ID packet is received (for new client) the
5598           hash of the Client ID is saved in the ID Cache but the
5599           client->nickname is set to NULL, instead of putting the hash
5600           to it as well.
5601
5602           IDENTIFY command now also checks that client->nickname must be
5603           valid. If it is not if will request the data from the server who
5604           owns the client.  Added new function 
5605           silc_server_command_identify_check.
5606
5607         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
5608           to set the command to already allocated Command Payload.
5609
5610         * Tested private message sending in router environment with two
5611           routers, two servers and two clients.  Fixed minor bugs and now
5612           it works fine.
5613
5614         * Fixed segfault from client's NAMES command. Used to crash if
5615           not on any channel.
5616
5617         * Forwarded packets must not be routed even if it is not destined
5618           to the receiver.  Changed server code comply with this.
5619
5620 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5621
5622         * Added `require_reverse_mapping' boolean value to ServerParams
5623           structure. If TRUE (not default) the server will require that
5624           the connecting host has fully qualified domain name.
5625
5626           If the reverse mapping is not required and hostname could not be
5627           found the IP address is used as hostname.
5628
5629 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5630
5631         * Implemented version string checking to both client and server.
5632           The check is incomplete currently due to the abnormal version 
5633           strings used in development version of SILC.
5634
5635         * Changed all command functions in server to use the new
5636           CHECK_ARGS macro.
5637
5638 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5639
5640         * Changed char *data to unsigned char *data in ID Cache system to
5641           support binary data as ID Cache data. Changed code to support
5642           binary data in lib/silccore/idcache.c.
5643
5644         * Renamed silc_server_packet_relay_command_reply to 
5645           silc_server_command_reply as it is normal packet receiving
5646           function. Rewrote the function to accept command replys for
5647           servers and not only for clients.
5648
5649         * Mark remote router always as registered server if we are connecting
5650           to it.  Otherwise, commands sent by the router to us are ignored.
5651
5652         * All ID List find routines now returns the ID Cache Entry pointer
5653           as well if requested.
5654
5655         * WHOIS command works now in router environment, tested with two
5656           routers, two servers and two clients.
5657
5658         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
5659           in router environment (as it is almost equivalent to WHOIS) but
5660           hasn't been tested thoroughly.  Added new functions:
5661
5662           silc_server_command_identify_parse
5663           silc_server_command_identify_send_reply
5664           silc_server_command_identify_from_client
5665           silc_server_command_identify_from_server
5666
5667         * Disabled route cache adding because adding two different ID's with
5668           same IP replaces the old cache entry thus giving wrong route.
5669           The entry->router->connection is always the fastest route anyway
5670           so route cache may not be needed.  Of course, new routes maybe
5671           established after receiving the ID when the entry->router->connection
5672           might not be anymore the most optimal.
5673
5674 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5675
5676         * Add route cache for received ID for fast routing.
5677
5678         * Added silc_server_packet_route to route received packet on router
5679           that is not destined to us.
5680
5681         * Renamed silc_server_get_route to silc_server_route_get.
5682
5683         * Added id_string and id_string_len fields into SilcServer to
5684           include encoded ServerID for fast comparing without excess
5685           encoding of the ID's.
5686
5687         * Cleaned up WHOIS command on server side. Added following static
5688           functions:
5689
5690           silc_server_command_whois_parse
5691           silc_server_command_whois_check
5692           silc_server_command_whois_send_reply
5693           silc_server_command_whois_from_client
5694           silc_server_command_whois_from_server
5695
5696         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
5697           arguments in command replies. All command functions should be
5698           updated to use this macro.
5699
5700 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5701
5702         * Minor typo fixes on command reply handling on server.
5703
5704 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5705
5706         * Added silc_server_command_add_to_channel internal routine to add
5707           the client to the channel after router has created the channel and
5708           sent command reply to the server.
5709
5710         * Added generic silc_server_send_command to send any command from
5711           server.
5712
5713         * Use static buffer with ID rendering instead of duplicating data.
5714
5715 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5716
5717         * Fixed a channel user mode bug when joining to a channel server gave
5718           everybody channel founder rights, oops.
5719
5720         * We mark ourselves as the router of the incoming server connection
5721           if we are router ourselves.  This way we can check in some packet
5722           sending functions whether it is locally connected server.  For
5723           incoming router connections we put NULL.
5724
5725         * For router sending packets locally means now always sending the
5726           packet cell wide; to local clients and local servers.  For normal
5727           server sending packet locally means sending it to only local
5728           clients.
5729
5730         * Fixed the JOIN command to really work in router environment.  If the
5731           channel is created it is always created by the router.  Router is
5732           also responsible of making the initial joining to the channel,
5733           sending JOIN notify to the sending server and distributing 
5734           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
5735           does not exist server doesn't do anything else but forward the
5736           command to the router which performs everything.
5737
5738         * Added silc_server_send_channel_key function to send the Channel Key
5739           payload.
5740
5741         * Added silc_server_create_channel_key to create new channel key.  The
5742           channel key is now re-generated everytime someone joins or leaves
5743           a channel, as protocol dictates.  Note: channel->key_len is the
5744           key length in bits.
5745
5746 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5747
5748         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
5749           packet_receive.[ch] to separate packet sending and receiving
5750           routines.  The server.[ch] now includes everything else including
5751           actual packet processing (writing and reading data) and other
5752           server issues.
5753
5754           Renamed silc_server_private_message_send_internal to
5755           silc_server_send_private_message.  The routine is still though
5756           used only to relay private messages as server does not send
5757           private messages itself.
5758
5759           Renamed silc_server_new_channel to silc_server_create_new_channel
5760           and added new function sicl_server_new_channel that handles the
5761           incoming New Channel packet.  Added also new sending function
5762           silc_server_send_new_channel to send New Channel Payload.
5763
5764         * Added new function silc_server_notify to process incoming notify
5765           packet to the server/router. Server may then relay the notify
5766           to clients if needed.
5767
5768         * Added new function silc_server_new_channel_user to process incoming
5769           New Channel User packet.  Router will redistribute the packet and
5770           send JOIN notify to its local clients and locally connected servers
5771           if needed.  Normal server will send JOIN notify to its local client
5772           on same channel when received this packet.  Added also corresponding
5773           sending function silc_server_send_new_channel_user to sent the
5774           payload.
5775
5776         * Added boolean route argument to send_notif_to_channel and
5777           packet_send_to_channel functions to attempt to route the packet
5778           if it is TRUE and send only locally if it is FALSE.
5779
5780 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5781
5782         * silc_server_replace_id now broadcasts the received replace ID
5783           packet if it is not broadcast packet already. The router must
5784           broadcast to inform other routers about changed ID.
5785
5786         * Added backpointer to server's router into SilcServer context in
5787           silcd/server_internal.h.
5788
5789         * Fixed silc_server_packet_broadcast to send correct broadcast
5790           packets.
5791
5792         * The channel key is now distributed to the local client as soon
5793           as it is received from the router (in router environment) so that
5794           no other packet may be sent for the channel until client has 
5795           received the key.
5796
5797         * silc_server_remove_channel_user now broadcasts the received
5798           Remove Channel User packet if it is not broadcast packet already.
5799           The router must broadcast to inform other routers about removed
5800           channel user.
5801
5802         * Added users field into SilcPacketContext that is a reference count
5803           of the context.  One can increase the reference count by calling
5804           silc_packet_context_dup which is now changed to just increase the
5805           reference count instead of duplicating the data.  The reference
5806           count is decresed by calling silc_packet_context_free that will
5807           free the data after the reference count hits zero.
5808
5809           For now on the packet context and everything allocated into it
5810           (including the raw packet from network) must be freed by calling
5811           the new silc_packet_context_free function.  Added also new function
5812           silc_packet_context_alloc that must be used now to allocate the
5813           context.  This also means that if a routine is asynchronous from
5814           silc_[client/server]_packet_parse_type the packet context must
5815           be duplicated by calling silc_packet_context_dup.  Otherwise it
5816           gets free'd after silc_[client/server]_packet_parse_type returns.
5817           Also, one must remember that if packet is duplicated then its 
5818           reference count must be decresed by calling the free function as
5819           many times as it was duplicated.
5820
5821         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
5822           from both client and server.
5823
5824 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5825
5826         * Made joining to a channel working in router environment.
5827
5828         * Cleaned up JOIN command on server side and create function
5829           silc_server_command_join_channel internal routine to make the
5830           joining happen.
5831
5832 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5833
5834         * Changed silc_command_pending list to SilcDList.  Also, added
5835           `ident' field to SilcServerCommandPending structure to identify
5836           the reply and to call correct callback.
5837
5838           Added silc_server_command_pending_check function to replace the
5839           corresnponding macro.  The silc_command_pending list is not
5840           extern anymore.
5841
5842         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
5843           to set identifier to previously allocated Command Payload.  It
5844           is used to set identifier for command when resending Command
5845           Payload.
5846
5847         * Added silc_command_payload_encode_payload to encode Command
5848           Payload buffer from SilcCommandPayload structure.
5849
5850         * Added silc_argument_payload_encode_payload to encode Argument
5851           payload buffer from SilcArgumentPayload structure.
5852
5853 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5854
5855         * Changed WHOIS command to support router connection on server side.
5856           The whois request is always sent to router unless the server is
5857           standalone server.  After server has received the reply from the
5858           router will it send the reply to the client.
5859
5860         * Added silc_server_packet_broadcast into silcd/server.[ch] to
5861           broadcast received broadcast packet.  The function is used only
5862           by router.  The broadcast packet is always sent to the router's
5863           primary route.
5864
5865         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
5866           render given ID to printable string, for log files for example.
5867
5868 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5869
5870         * Made basic router to router connections working.  At least they
5871           can now connect to each other but nothing really works the way
5872           they are supposed - yet.
5873
5874         * Added new initiator token to RouterConnection configuration
5875           file in silcd/serverconfig.[ch].  It is used to tell whether we
5876           are the initiator to the remote router or whether we'll expect
5877           the other end to connect.
5878
5879         * Moved registering of listener task to silc_server_init, hence
5880           the server starts listenning as soon as it is run, even if it
5881           does not have connections to other routers.  Let's see how well
5882           this will work.
5883
5884         * Changed default connection retry timeouts for more suitable in
5885           silcd/server.h.
5886
5887         * Removed cipher and such arguments from silc_idlist_add_client
5888           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
5889           Added new function silc_idlist_add_data to add the keys and stuff
5890           to any ID entry.
5891
5892         * Added SilcIDListData structure and added it to SilcClientEntry
5893           and SilcServerEntry as their first field in the structure.  This
5894           way we can explicitly cast the ID entries to the SilcIDListData
5895           structure and get common data for the entries.  In past, we had
5896           to first check what type of connection it is and then cast it to
5897           correct ID entry type.  Now, we can directly cast the opaque
5898           pointer to the SilcIDListData (no matter what ID entry it actually
5899           is) and get the data needed.
5900
5901 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5902
5903         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
5904           in some circumstances even if threre were timeout tasks, though not
5905           IO tasks, but tasks anyway.  Now fixed.
5906
5907         * Defined SilcServerConnection structure to hold connection specific
5908           stuff about directly connected servers and routers.  The definition
5909           is currently in silcd/server_internal.h.  I thought about having
5910           a bit more important role fro this struct but for now it is used
5911           only when connecting to other server (or router actually).
5912
5913         * Added connecting retry support in server when connecting to
5914           router(s).  The retry feature implement exponential backoff
5915           algorithm.  Also, added SilcServerParams structure to hold default
5916           parameters for server.  For now, it include these retry settings
5917           and are hard coded.  After server is moded to be as Silc Server
5918           Library this structure will be more important.
5919
5920 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5921
5922         * Changed client librarys channel->clients table to SilcList and
5923           changed code accordingly.
5924
5925 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5926
5927         * Changed client's channel table to SilcList and changed code 
5928           accordingly.  Also changed SilcChannelClientEntry to include back-
5929           pointer to the channel so that client entry can use that structure
5930           as list as well and we have fast cross-reference to the channel.
5931           This change dramatically decreased the complexity of channel
5932           handling with client entry and vice versa (removed one extra
5933           loop when searching for channel entry from many functions).
5934
5935         * Changed server->sim from table to SilcDList and changed code
5936           accordingly.
5937
5938         * NAMES command can now be used from user interface.  It will show
5939           the user list on the channel, neatly.
5940
5941         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
5942           Code now saves realname of the user if it becomes available.
5943
5944         * Renamed configure.in to configure.in.pre and made ./prepare
5945           script to automatically add correct version string to
5946           configure.in which it creates from configure.in.pre.
5947
5948 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5949
5950         * NAMES command reply now shows users mode with the nickname when
5951           joining to channel.
5952
5953         * Moved silc_client_ch[u]mode[_char] functions from 
5954           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
5955           place sucks, they are utility functions and should be in some
5956           other file.
5957
5958         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
5959
5960         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
5961           cras.
5962
5963 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5964
5965         * Updated README.
5966
5967         * Added TRQ (efficient deque and list library) into lib/trq.  This is
5968           a very good list library that is currently used in the SILC.  Defined
5969           SilcList API over the library because I didn't like the API very
5970           much.  See lib/trq/silclist.h for the API and examples of how to
5971           use the API.  Fixed various places in the code to use the new
5972           SilcList API. The SilcList is meant for lists that has a structure
5973           already defined as a list.  It is not suitable to add just some
5974           context to the list (in TRQ, the context is the list actually).
5975
5976           So, I defined SilcDList that can be used for the purpose where 
5977           predefined list structure does not exit.  This can be used as
5978           such list.  Now some context just can be added to the SilcDList.
5979           Currently this list is not used in the SILC just yet, though there
5980           are a lot places where this can replace dynamically allocated
5981           tables and I will fix these places, later, to use SilcDList.
5982           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
5983           and use TRQ internally).
5984
5985           Also fixed some annoying warning messages that the original TRQ
5986           code generated.  Also minor changes to TRQ's Makefile.in.
5987
5988         * Added support for querying by Client ID to both WHOIS and 
5989           IDENTIFY commands into server, as required by the protocol.
5990
5991         * Removed method function pointers from SilcBuffer structure. They
5992           weren't used to anything and just increased the context size for
5993           no good reason.  This change also made silc_buffer_alloc and
5994           silc_buffer_free functions inline functions.
5995
5996         * Disabled command flooding detection support until it's fixed so 
5997           that it accepts commands in but does not execute them more than once
5998           in two seconds.
5999
6000         * Added silc_net_localhost(), to return local hostname, into
6001           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
6002           that must be initialized before calling silc_client_init.
6003
6004         * Added new function: silc_server_send_notify_on_channels to send
6005           notify messages to all channels client has joined.  It is assured
6006           that the message is sent only once per client.
6007
6008         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
6009           lib/silcutil/silcutil.[ch] as silc_format function.  The new 
6010           function is generic and is used by server as well, not only by
6011           the logging routines.
6012
6013         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
6014           the provided version string was not acceptable.  Added new function:
6015           silc_ske_check_version into lib/silcske/silcske.h.  The function
6016           must be implemented by the application (client or server) and it
6017           does not reside in the SKE library.  The function checks the version
6018           string remote end sent.
6019
6020         * Added back pointers (to opaque context and to SilcSocketConnection) 
6021           into SilcPacketContext structure into lib/silccore/silcpacket.h.
6022
6023         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
6024           duplicate packet context structure.
6025
6026         * Changed `notify' client operation to send same arguments as client
6027           receives from server except for ID's.  ID's are mapped to correct
6028           ID entry and that is returned.  Also, if channel entry is not sent
6029           by server but the notify is for channel the channel entry is sent
6030           to application (otherwise application doesn't know that it is for
6031           channel (library gets it from packet's Destination ID)).
6032
6033         * Added silc_client_remove_from_channels into client library to 
6034           remove a client from all channels it has joined to.  Used when 
6035           received SIGNOFF notify from server.  Added also new function
6036           silc_client_replace_from_channels to replace old ID entry with
6037           new ID entry on all channels.  Used when received NICK_CHANGE
6038           notify from server.
6039
6040         * Fixed ID Cache list handling in silc_idlist_get_client in 
6041           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
6042           to get (or query) client by ID.
6043
6044         * Updated TODO list.
6045
6046         * Added connection authentication status message defined by the
6047           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
6048           support for these into the code in client and server side.
6049
6050         * Added generic function silc_client_send_command to send any command
6051           with variable argument list.  Application should use this function
6052           to send commands if the command functions provided by the library
6053           does not suite for the application's user interface needs.
6054
6055         * Added new `failure' client operation.  Application is notified about
6056           received failure packet if client is executing a protocol.  In this
6057           case the protocol's execution has failed.
6058
6059         * Added SKE's end notify to send the SKE_SUCCESS notify message that
6060           is required by the protocol.
6061
6062         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
6063           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
6064           error at our end.
6065
6066         * Added status flag to SilcSKE object to indicate realtime status
6067           of the SKE protocol.
6068
6069         * Application receives now exactly same command reply arguments as
6070           the library receives from server.  However, if ID is received the
6071           corresponding ID entry is returned to the application (eg. Client
6072           ID is mapped to correct SilcClientEntry entry and that is returned).
6073           Changed command_reply client operation due to this change.
6074
6075         * Changed all ID's in commands and in command replys as ID Payloads.
6076           Change affected both client and server side codes.
6077
6078           All ID's sent in SILC network (with execption of ID's in SILC
6079           Packet header) are sent in ID Payload to support variable length
6080           ID's.
6081
6082         * Server now notifies nick changes and notifies all clients on
6083           the channels about the new nickname (about the new Client ID,
6084           actually).
6085
6086         * Implemented CMODE command to change channel modes. Supports all
6087           channel modes defined by the protocol specs except ban and invite
6088           lists. (Also, private channel key mode is supported but support for
6089           setting private channel key in client is missing, thus, this mode
6090           has no effect on client side (except that server requires that the
6091           client uses private channel key and normal channel traffic does not
6092           work anymore)).
6093
6094           Also, invite mode works per se, but INVITE command does not work
6095           yet correctly, so you can set channel as invite only channel but
6096           inviting clients to the channel does not work (it is yet to be
6097           thought what's the best way to do it).
6098
6099         * Added new command SILC_COMMAND_CUMODE to change user mode on the
6100           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
6101           Implemented CUMODE command to change user's mode on the channel.
6102           Supports all modes defined by the protocol specs.
6103
6104         * Added NAMES command reply to return users modes on the channel.
6105
6106         * Removed unnecessary and slow ciphers from lib/silccrypt.
6107
6108         * Set SO_KEEPALIVE option to connection sockets by default.
6109
6110         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
6111
6112         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
6113           redefined the Notify Payload into protocol specs.
6114
6115         * Added silc_id_payload_parse_id to get ID directly from raw
6116           ID payload data.
6117
6118 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6119
6120         * Changed SILC_COMMAND_IDENTIFY in protocol specification to 
6121           accept searching by Client ID as well.
6122
6123         * Added support for LEAVE and SIGNOFF notify types in client library.
6124
6125         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
6126           to parse ID Payload from raw data.
6127
6128 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6129
6130         * Added flags parameter into silc_ske_assemble_security_properties
6131           function in lib/silcske/silcske.[ch].
6132
6133         * Changed notify client operation to fit better for notify messages
6134           sent by server.  The notify payload received from server is now
6135           passed to the application (after parsing it to SilcNotifyPayload).
6136           It is application's responsibility to retrieve the arguments
6137           from the payload and show the message the way it wants.  The message
6138           sent by server is implementation specific.
6139
6140         * Changed public keys to comply with the protocol specification.
6141           Old public keys are not supported anymore and are not compatible.
6142
6143         * Removed nickname from Channel Payload as the latest draft removed
6144           it.  The client must resolve the nickname from the NAMES command
6145           reply received when it joined the channel.
6146
6147           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
6148
6149 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6150
6151         * Fixed some errors in protocol specification drafts.
6152
6153         * Created lib/silccore/silcnotify.c to implement Notify Payload
6154           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
6155           generic payloads described by protocol specifications.  The file
6156           includes implementations for ID Payload and Argument Payload.
6157
6158         * Changed Command Payload implementation to use the new Argument
6159           Payload.  Changed command_xxxx_payload to command_payload_xxxx
6160           to comply with SILC coding conventions.
6161
6162         * Added suppport for Argument Payload handling in Notify Payload
6163           implementation as protocol requires it.  Added the new support
6164           into server and client lib as well.
6165
6166 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6167
6168         * Added support for multiple nicknames on same channel.  [n] is
6169           added locally to the nickname if there are more than one same
6170           nicknames on the channel.
6171
6172         * Server now sends all nicknames that matched WHOIS request.
6173           Client also shows the list received from server.
6174
6175         * Added TOPIC command to client side.  User can now set and show
6176           current topic on channel.
6177
6178         * Added MOTD command to client and server.  Also, server sends the
6179           motd when client connects to the server.
6180
6181         * Changed version strings to comply ISO 8601.
6182
6183 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6184
6185         * Fixed protocol error handling in client library.  It should now
6186           cope even if the SKE fails for some reason.
6187
6188         * Made new protocol specification drafts for submitting to IETF.
6189
6190         * Implemented TOPIC command to server in silcd/command.c.
6191
6192         * Added two new notify types into lib/silccore/silcnotify.h:
6193           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
6194           notify nickname change and topic setting/change on a channel.
6195
6196         * API change of command_reply operation in client library.  The
6197           application gets now the status type received from server as well.
6198
6199 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6200
6201         * Removed the function just added to lib/silcutil/silcschedule.[ch].
6202
6203         * Cras fixed and optimized the packet handling even further and
6204           it should work now.  Minor change to the prototype of function
6205           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
6206
6207 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6208
6209         * Added new function into lib/silcutil/silcschedule.[ch]:
6210           silc_schedule_with_fd to select() a specified fd.  The function
6211           returns after timeout expires or data arrives or goes.  The
6212           function is used by packet routines to wait that all data is
6213           received from network.
6214
6215         * Fixed data reading from network in lib/silccore/silcpacket.c.
6216           The code now assures that all data is read from the fd and then
6217           continues packet processing.  This was a bug fix since the code
6218           used to drop some data in some circumstances.
6219
6220         * Added new function into lib/silcclient/client.[ch]:
6221           silc_client_start_key_exchange to start key exchange after
6222           connection has been established to server.  The code internally
6223           now uses this funtion but its main purpose was to provide it
6224           for applications that perform their own connecting.  After
6225           application has created a connection it merely calls this
6226           function to start the key exchange between client and server.
6227           The library takes care of everything else after that.
6228
6229           Updated also lib/silcclient/README to explain the usage of
6230           this new function.
6231
6232         * Do not send to application information that connection has
6233           been established.  Application gets notified it by connect
6234           operation anyway.
6235
6236 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6237
6238         * Applied cras's patch to add silc_schedule_one function.  The
6239           function runs scheduler once and returns.
6240
6241         * Fixed the scheduler after cras messed it up.  The timeout
6242           handling works now as it's supposed to work.
6243
6244         * Added into lib/silccore/ silcnotify.h to include notify
6245           message types support.  Changed silc_server_send_notify*
6246           functions, in server.[ch], to support those new notify types.
6247           Added the support for the notify types into client library,
6248           as well.  Added new notify client operation into ops.h in
6249           lib/silcclient/.
6250
6251         * Changed silc_server_packet_send_to_channel to send normal
6252           packets instead of just channel message packets.  The function
6253           is now used to send the notify packets to channels.  It is not
6254           used to send channel message packets anymore, as server never
6255           sends them anymore.
6256
6257         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
6258           va_arg()s as it seems to require it nowadays.  I guess, if SILC
6259           is compiled with older va_arg() the new code should work anyway.
6260
6261 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6262
6263         * Splitted core library.  Core library (lib/silccore) includes
6264           now only SILC protocol specific core (and common) components.
6265           Created new utility library (lib/silcutil) that includes more
6266           generic purpose stuff.  The stuff for util library was taken
6267           from the old core library.  This was minor and easy split.
6268
6269         * Created SILC Client Library (lib/silcclient) that includes
6270           implementation of the SILC client without user interface.  This
6271           was major move from silc/ directory.  The code has been changed
6272           so that it is transparent towards the user interface.  The
6273           silc/ directory includes now the same user interface as before
6274           and it uses the new client library.  Read lib/silcclient/README.
6275           Basicly, the client library performs everything else related
6276           to SILC except user interface handling.  Also, configuration
6277           files are considered to be part of user interface and library
6278           does not handle them.
6279
6280           This change also changed a lot of structures, function naming etc.
6281           Most important change was that SilcClientWindow object was
6282           renamed to SilcClientConnection in the client library.  Created
6283           also new file lib/silcclient/ops.h.  Also added new files
6284           silc/local_command.[ch] and silc/client_ops.[ch].
6285
6286           All these changes were made to make it easier for user interface
6287           designers to create what ever user interface for the SILC client
6288           they want.
6289
6290           It is also expected that the server will be moved to lib
6291           directory as well and SILC Server Library will be created;
6292           sometimes in the future.
6293
6294         * Removed Local commands from lib/silccore/silccommand.h as
6295           they are application specific and new client library does not
6296           handle any of those anymore.
6297
6298         * Several functions moved to lib/silcutil/silcutilc.[ch] from
6299           old client implementation in silc/.
6300
6301         * Added support for callback functions in SILC_LOG_* macros.
6302           Application can now set its own callbacks that will be called
6303           instead of using the default functions that will always print
6304           the debug messages to stderr (or stdout).  Also, debugging can
6305           now be disabled by setting silc_debug to FALSE and re-enabled by
6306           setting it to TRUE.  Note, that logging will still work even
6307           if debugging is disabled.
6308
6309           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
6310           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
6311           silc_log_reset_debug_callbacks.
6312
6313         * To enable debugging in silc client one must give now -d
6314           option on command line.
6315
6316         * Changed silc_schedule_init to automatically allocate task queues
6317           if they are not allocated before calling it.
6318
6319 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6320
6321         * Added GMP 3.1 into math library.
6322
6323 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6324
6325         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
6326           a channel in SILC network.  The packet is used by servers and
6327           routers to notify other routers that user has left a channel.
6328           This little feature was missing until now.  Added the feature
6329           to protocol specification as well.
6330
6331           Added functions: silc_server_send_remove_channel_user and
6332           silc_server_remove_channel_user into server.[ch].
6333
6334         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
6335           lib/silccore/silcpacket.h.  However, they are not implemented
6336           yet.
6337
6338 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6339
6340         * Fixed joining to a channel and sending channel messages
6341           between server and router.  The channel message sending should
6342           now work inside a cell.
6343
6344 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6345
6346         * Fixed the private message sending between server and router.
6347           The private message sending should now work inside a cell.
6348
6349         * Added silc_server_replace_id into server.[ch] to replace
6350           existing ID in the SILC network.
6351
6352         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
6353           and silc_idlist_replace_server_id into idlist.[ch] in server.
6354
6355 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6356
6357         * Fixed the server to server connections.  Server can again now
6358           connect to router.  Router to router connections probably does
6359           not work just yet.
6360
6361 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6362
6363         * Added dynamic protocol registering support.  Now protocols can
6364           registered and unregistered on the fly.  Patch by cras.
6365
6366 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6367
6368         * Added lib/contrib directory to hold routines that some platforms
6369           don't have but are needed by SILC.
6370
6371         * Added getopt.c, getopt1.c and getopt.h from GNU C library
6372           into lin/contrib to provide getopt() and getopt_long() for
6373           those who don't have it.
6374
6375 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6376
6377         * Added AWAY command to client.  When away message is set and
6378           client receives a private message packet the client automatically
6379           replies to the sender with the away message.
6380
6381         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
6382           bug seemed to be the cause of recent problems when compiling
6383           with gcc-2.95.
6384
6385         * Added version detection support to SKE protocol specification
6386           and added the new changes to the SKE implementation as well.
6387           There were other minor changes in the SKE protocol as well.
6388
6389           Many changes in lib/silcske/silcske.[ch] and in
6390           lib/silcske/payload.[ch].
6391
6392         * Added ^U functionality, clear input line.  Patch from cras.
6393
6394 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6395
6396         * Mainly small bugfixes on core library.  Fixed some debugging
6397           logging and buffer overflow in silclog.c.
6398
6399         * Updated config.sub and config.guess on the distribution tree.
6400
6401 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6402
6403         * Added command lagging support in server. Client may execute
6404           commands now only once in two seconds.
6405
6406 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6407
6408         * Optimized packet reception. MAC computation and checking is now
6409           also more optimized.  A lot previously duplicated code is now
6410           used as generic by both client and server.
6411
6412         * Fixed key pair generation in clientutil.c
6413
6414 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6415
6416         * Added into lib/silccore/silcbufutil.[ch] new function;
6417           silc_buffer_realloc.
6418
6419         * Moved generic packet sending/encryption functions to 
6420           lib/silccore/silcpacket.[ch] from client and server.  Some
6421           rewriting of the functions.
6422
6423         * Moved all generic packet reception/decryption functions to
6424           lib/silccore/silcpacket.[ch] from client and server.  The
6425           packet processing is now much cleaner in both client and server.
6426           These were major changes in both client and server.
6427
6428         * Created many common functions in server to do packet sending.
6429           Previously code were duplicated a lot, this has been removed
6430           with these changes.
6431
6432 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6433
6434         * Rewrote major parts of the ID cache system.  Don't know 
6435           whether it is better now or not but at least the API is more
6436           cleaner now.
6437
6438         * Major rewrite on ID cache stuff on client because of the ID
6439           cache API changes.  Added idlist.c to client.
6440
6441         * Also major rewrite on ID cache stuff on server as well.
6442           Major rewrite of idlist.[ch]. SilcXXXList's are now named
6443           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
6444           in hand, instead they are all put into the ID cache system now.
6445           All server_idlist_* routines uses ID cache now instead of
6446           traversing its own lists (those lists does not exist anymore).
6447           SilcIDList though still exists.  Also, SilcXXXEntry's are
6448           now pointers.
6449
6450 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6451
6452         * Finally made the SKE implementation compliant to the protocol
6453           specification.  All mp integers are now binary encoded as
6454           opposed being HEX encoded.
6455
6456         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
6457           from binary data.
6458
6459         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
6460           functions: silc_[encode/decode]_pem.  Also added function
6461           silc_encode_pem_file to PEM encode with newlines ('\n') for
6462           saving into a file.
6463
6464         * SILC public keys are now encoded either PEM or binary.  Same
6465           option is for private keys as well.  By default private keys
6466           are binary encoded and public keys PEM encoded.  Silly HEX
6467           encoding were removed.
6468
6469         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
6470           function to create fingerprints.
6471
6472         * Fixed a bug in SHA1; does not change the original data anymore.
6473
6474         * Partly implemented INFO command on client and server side.
6475           Fixed CLEAR command.  Changes to SERVER command; show current
6476           server(s) when giving command without arguments.  Added
6477           VERSION command to client.
6478
6479         * Added check to server that unregistered connections cannot
6480           execute commands (unless it is specificly allowed).
6481
6482 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6483
6484         * Fixed screen refresh.
6485
6486         * Fixed channel joining bug from client.  On some circumstances
6487           client tried to join to a channel it had already joined.
6488
6489         * Added public key verification process into client's protocol.c.
6490           The client now verifies the public key from user and saves
6491           it into ~./silc/serverkeys/ directory. 
6492
6493           Added into: clientutil.[ch]: silc_client_verify_server_key.
6494
6495         * Changed SKE protocol's silc_ske_initiator_finish function
6496           to accept callback function that verifies the received public
6497           key.  Removed old silc_ske_verify_public_key function.
6498
6499 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6500
6501         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
6502           silc_pkcs_private_key[_data]_set.
6503
6504         * Made the password and public authentication more cleaner in
6505           server's protocol.c.
6506
6507         * Removed historic and obsolete protocol `channel_auth' from
6508           both client and server.
6509
6510         * Removed wrong way of sending command status messages from
6511           server to client in server's command.c.  The old way violated
6512           protocol specification.  
6513
6514           Changes to silccore/silccommand.[ch]: removed
6515           silc_command_encode_status_payload -> not needed anymore,
6516           changed silc_command_encode_payload_va to accept extra
6517           argument on variable argument list.  The argument type must
6518           now be provided to the function.  Also, added new function:
6519           silc_command_encode_reply_payload_va which is same as
6520           normal command_encode_payload_va except command status type
6521           is provided as extra argument.
6522
6523 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6524
6525         * Added ~./silc directory handling.  The directory includes the
6526           public and private keys for the client.
6527
6528           Added silc_client_check_silc_dir, silc_client_create_identifier
6529           and silc_client_load_keys.
6530
6531         * Implemented SILC protocol compliant public key.  Added public
6532           and private key saving to and loading from files.
6533
6534           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
6535           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
6536           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
6537           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
6538           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
6539
6540           Implemented: silc_pkcs_save_[public/private]_key[_data] and
6541           silc_pkcs_load_[public/private]_key.
6542
6543 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6544
6545         * Added silc_server_get_route (route.[ch]) to get connection
6546           data for the fastest route for given ID.
6547
6548         * Implemented INVITE command on client and server.  The command
6549           were re-defined in the SILC Protocol Specification and the
6550           implementation now complies with the specification.
6551
6552         * Implemented PING command on client and server.
6553
6554         * Implemented NAMES command on client and server.  The server side
6555           supports currently only normal server not router server yet.
6556           Some changes to NAMES definition in SILC protocol specification.
6557
6558 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6559
6560         * Implemented LEAVE command on client and server.
6561
6562         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use 
6563           again.  This change was made to the protocol as well.  Server
6564           should not violate the protocol specification anymore.
6565
6566 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6567
6568         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
6569           was tested.  SOCKS4 was not but should work anyway.