Cleaned up some SILC_LOG_DEBUG's in backup protocol code.
[silc.git] / CHANGES
1 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2
3         * Added functions silc_server_send_opers and
4           silc_server_send_opers_notify to send packets stricly
5           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
6           to send variable argument notify to operators.
7           Affected files silcd/packet_send.[ch] and silcd/server.h.
8
9         * Removed UMODE rights checking with UMODE_CHANGE notify.
10           Affected file silcd/packet_receive.c.
11
12         * Server/router operator now receives notify when network
13           switches to backup router and when it resumes the use of
14           primary router.  Affected file silcd/server.c and
15           silcd/server_backup.c.
16
17         * Fixed the updating of client information after backup
18           resuming protocol is over; update all except local clients
19           to the new primary router.  The affected file is
20           silcd/server_util.c.
21
22         * Added support for closing active connections in rehash
23           that were unconfigured by the user.  Supports currently
24           closing server and router connections.  Affected file
25           silcd/server.c.
26
27         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
28
29 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
30
31         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
32           is NULL since seems that on some platforms NULL is allowed
33           and on some it's not.  Fallback encoding is used instead.
34           Affected file lib/silcutil/silcstrutil.c.
35
36         * Fixed statistics updating for incoming server connection
37           which could cause problems when re-connecting.  Affected
38           file silcd/server.c.
39
40         * Preliminary backup router support for standalone router
41           added.  Affected files in silcd/.
42
43         * Mark server connections in backup router disabled before
44           and after backup protocol.  Affected file is
45           silcd/server_backup.c.
46
47         * Added support for reconnecting to remote server connection
48           even if the protocol fails, and if the configuration wants
49           us to keep trying to connect anyway.
50
51           Server connection is not allowed to backup router if
52           backup router does not have connection to primary router yet.
53
54           Affected file is silcd/server.c.
55
56 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
57
58         * Added silc_client_udpate_server function to update changed
59           server info.  Affected file lib/silcclient/idlist.[ch].
60
61         * Added check for server entries that are being resolved when
62           notify is received.  If being resolved, handle the received
63           notify only after it's resolved so that all notifys are
64           handled in same order as received from the server.
65
66           Added similar resolver check to channel entries.  Every
67           notify that cause resolving of any information that affects
68           channel entry marks the channel entry in waiting state.
69           After whatever resolving is over the waiters are signalled
70           and only then the notifys are handled in the same order
71           as delivered from the server.
72
73           Affected files are lib/silcclient/idlist.[ch], and
74           client_notify.c.
75
76         * Fixed KILLED notify handling in normal server.  Affected
77           file silcd/packet_receive.c.
78
79         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
80           is locally connected, or was locally connected (but may
81           be detached and connection is not active).  Added also
82           SILC_IS_LOCAL for checking this status.  Affected files
83           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
84           silcd/server.c and silcd/server_internal.h.
85
86 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
87
88         * Don't send or handle TOPIC_SET if topic is already set and
89           is same as being set.  Affected files silcd/command.c and
90           silcd/packet_receive.c.
91
92         * Fixed CMODE change rights checking to work correctly when
93           removing modes by operator.  Affected file is
94           silcd/server_util.c.
95
96         * Fixed some handling with New Channel packet in router and
97           fixed some CMODE_CHANGE notify handling in server and router.
98           Affected file is silcd/packet_receive.c.
99
100         * Changed "disconnect" client operation to include the
101           reason of the disconnection and optional disconnection
102           message.  Affected file lib/silcclient/silcclient.h.
103
104         * Made the compilation of lib/contrib/ stuff conditional.
105           Affected files configure.in.pre, lib/contrib/Makefile.am.
106
107 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
108
109         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
110           to the sender of the notify too, to avoid situation where two
111           notifys are in the network at the same time going to oppsite
112           directions.  Affected file silcd/packet_receice.c.
113
114 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
115
116         * Delete the client from channel even if the cilent->id is
117           NULL.  It was possible that client was deleted without
118           removing from channels (theoretically at least).  Affected
119           file silcd/server.c and silcd/server_util.c.
120
121         * Free the client data too when resuming is not successful.
122           Affected file silcd/packet_receive.c.
123
124         * Merged some code from c0ffee's silc-plugin.  Affected files
125           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
126
127         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
128           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
129           to the primary router connection, the other one returns
130           TRUE if packet must be broadcasted to network.
131
132         * All notifys that are destined to primary router (to network)
133           are now automatically sent to backup routers even if the
134           router is standalone (and has backup router).  Affected files
135           in silcd/.
136
137         * Added --without-irssi and --without-silcd configuration
138           options for disabling the compilation of these applications.
139           Affected file configure.in.pre and prepare.
140
141 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
142
143         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
144           UTF-8 encoding and decoding.  Added also new encodings
145           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
146
147           Added also SILC_STRING_LANGUAGE which is language and charset
148           specific encoder and decoer for those platforms that support
149           iconv().  It can convert the UTF-8 to and from the locale
150           specific character set.
151
152           Affected file lib/silcutil/silcstrutil.[ch].
153
154         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
155
156         * Added function silc_get_command_name to the file
157           lib/silcutil/silcutil.[ch].
158
159         * Improved the server debug output a bit.  Affected files are
160           in silcd/.
161
162 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
163
164         * Save the channel passphrase when received succesful JOIN
165           command reply from router, on normal server.  Otherwise
166           joinig +a channels from normal server is not possible.
167           Affected file silcd/command.c.
168
169         * Fixed a bug in TOPIC_SET notify handling.  The notifier
170           may be other than client too, like server or channel.
171           It expected it to always be only client and ignored the
172           notify.  Affected file silcd/packet_recieve.c.
173
174         * Removed some (unnecessary) debug printing from 
175           lib/silccore/silcid.c and lib/silccore/silcargument.c.
176
177         * Do not force CMODE_CHANGE when server is announcing new
178           channel.
179
180           Router announces stuff only after server reannounces channel
181           after CHANNEL_CHANGE notify.
182
183           These fixes optimizes the announcing procedure, and perhaps
184           fixes some problems too.  Affected file silcd/packet_receive.c.
185
186         * Fixed SERVER_SIGNOFF sending to local clients.  It was
187           totally broken and sent the notify to all local clients, 
188           instead of only to those that was on same channel as the
189           signing off clients.  Affected file silcd/server_util.c.
190
191         * Added -D option to server.  It can be used to give debug
192           level.  The levels are from 0 - 99, and are predefined for
193           smooth server debugging.  (see silcd.c for the predefined
194           levels).  Affected file silcd/server.c.
195
196 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
197
198         * Fixed a bug in Irssi SILC client to close the connection
199           properly when disconnecting from server.  Affected file
200           irssi/src/silc/core/client_ops.c.
201
202 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
203
204         * When authenticating as founder during JOIN command, check
205           that the one authenticating becomes the only founder on the
206           channel.  Affected file silcd/command.c.
207
208         * Better checking for founder mode setting when CUMODE_CHANGE
209           notify is received.  Affected file silcd/packet_receive.c.
210
211         * Close all connections when shutting down the server by sending
212           DISCONNECT packet.  Close all listeners too when shutting
213           down the server.  Affected file silcd/server.c.
214
215         * Handle DISCONNECT packet correctly in client library by
216           calling the "disconnect" client operation.  Affected file
217           lib/silcclient/client.c.
218
219         * Handle local errors correctly during resuming.  Affected
220           file lib/silcclient/client.c.
221
222 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
223
224         * The log file is not dupped internally anymore in
225           lib/silcutil/silclog.c.  Fixed memory leaks too.
226
227         * The scheduler now dispatches all pending timeout tasks
228           when it is uninitialized with silc_schedule_uninit.
229           Affected file lib/silcutil/silcschedule.c.
230
231 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
232
233         * Added --enable-stack-trace option to configure.  Added
234           memory allocation stack trace support.  Added files
235           lib/silcutil/stacktrace.[ch].  Affected files are
236           lib/silcutil/silcmemory.[ch].
237
238         * Fixed memory leaks from libraries and server.  Affected
239           files around the tree.
240
241         * Reverted back a fix made to CUMODE which broke it.
242           Affected file silcd/command.c.
243
244 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
245
246         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
247           core library, and implemented it.  All textual messages SHOULD
248           use this flag and the message MUST be UTF-8 encoded.
249           All text messages sent by Irssi SILC client are now UTF-8
250           encoded (regardless whether the terminal supports UTF-8 or not).
251           Affected files are lib/silccore/silcchannel.h,
252           irssi/src/silc/core/silc-servers.c, silc-channels.c and
253           client_ops.c.
254
255 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
256
257         * Added lots of new statistics updating that was missing from
258           the server and router code.  Affected files in silcd/.
259
260         * Sending SIGUSR1 signal to server now dumps the current
261           server statistics into /tmp directory.  Affected file is
262           silcd/silcd.c.
263
264         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
265           the SILC Hash Interface also.  Added new functions
266           silc_hash_get_name, silc_hash_init, silc_hash_update and
267           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
268
269 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
270
271         * Added some better info printing for client during connecting.
272           Affected file silcd/server_util.c.
273
274         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
275           to silence a user on a channel.  Affected files are
276           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
277           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
278           and silcd/packet_receive.c.
279
280         * Fixed a fatal bug in handling of malformed command payload.
281           Affected file silcd/command.c.
282
283         * Fixed a double free when announcing channel users to router.
284           Affected file silcd/server.c.
285
286         * After successful authentication to channel founder mode, check
287           that there isn't anyone else with founder mode on the channel.
288           The one that authenticated will become founder and anyone
289           else is demoted.  Affected file silcd/command.c.
290
291         * Added error printing of any error that has occurred during
292           any command in client library.  Affected file is
293           irssi/src/silc/core/client_ops.c.
294
295         * Removed some error printing from the client library and left
296           it for the application to worry (from the error status it
297           receives in 'command' client operation.  Affected file is
298           lib/silcclient/command.c.
299
300 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
301
302         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
303           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
304           Starting key agreement with itself is denied.  Affected file
305           is lib/silcclient/client_keyagr.c.
306
307         * Fixed some error checkings from the SFTP library which caused
308           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
309           and lib/silcsftp/sftp_util.c.
310
311         * Added new "debug" and "debug_string" settings to Irssi SILC
312           client which can be used to print runtime debugging on the
313           Irssi's screen.  Available when compiled with --enable-debug
314           option.  Affected file irssi/src/silc/core/silc-core.c.
315
316 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
317
318         * Fixed a missing variadic parameter in a function call that
319           caused server crash when a non-allowed connection arrived.
320           Reported by Richard Becker.  Affected file silcd/server.c.
321
322 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
323
324         * Added WATCH list sending to backup routers from router.
325           The WATCH command is sent by the router to the backup
326           router.  Affected file silcd/command.c.
327
328         * Mark the backup_router flag for RouterConnection entry
329           if the backup router stuff is defined in the config file.
330           Affected file silcd/serverconfig.c.
331
332         * Fixed some backup data sending around the code to work better
333           if the router is standalone router.  Not all places were fixed.
334           Affected file silcd/packet_receive.c, silcd/packet_send.c,
335           silcd/server.c.
336
337         * Fixed the router connecting when connecting to multiple
338           routers.  It ignored every other router except the first
339           one.  Affected file silcd/server.c.
340
341 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
342
343         * Made the private key generation after expiration optional.
344           If not created after expiration the old key will re-expire
345           at a later time (and thus key pair is not necessary to
346           change).  Affected file irssi/src/silc/core/clientutil.c.
347
348 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
349
350         * The length arguments in bind() and connect() were wrong
351           and fixed now to used SIZEOF_SOCKADDR in the
352           lib/silcutil/unix/silcunixutil.c.
353
354 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
355
356         * Fixed detach timeout handling to use Client ID and not
357           the actual client entry which may be freed in the callback.
358           Affected file silcd/command.c.
359
360 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
361
362         * Merged c0ffee's multiple interface support patch.
363           Affected files in silcd/.
364
365 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
366
367         * Cleanup keys properly.  Affected file is
368           irssi/src/silc/core/clientutil.c.
369
370 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
371
372         * Display the user mode on the status bar.  Affected file
373           irssi/src/silc/core/silc-expandos.c.
374
375 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
376
377         * If private message key is not set, but the flag is set in
378           the packet, ignore the packet since it cannot be decrypted.
379           Affected file lib/silcclient/client_prvmsg.c.
380
381 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
382
383         * When resuming client, remove the old client entry from
384           the watcher list too.  Affected file silcd/packet_receive.c.
385
386         * Do not allow normal server to force founder mode away
387           from router if the founder mode is already set.  Affected
388           file silcd/packet_receive.c.
389
390         * Remove the client entry with watch notify types with short
391           timeout, and not directly, so that other notifys can be
392           retrieved too.  Affected file lib/silcclient/client_notify.c.
393
394         * Display notification about data messages that cannot be
395           displayed.  Affected files irssi/src/silc/core/client_ops.c,
396           irssi/src/fe-common/silc/module-formats.[ch].
397
398 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
399
400         * Fixed the CHANNEL_CHANGE notify handling in client libary
401           to not use freed memory.  Affected file is
402           lib/silcclient/client_notify.c.
403
404         * Fixed CUMODE_CHANGE notify handling in server.  Affected
405           file silcd/packet_receive.c.
406
407         * Fixed USERS command to support empty channels.  Affected
408           file silcd/command.c.
409
410 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
411
412         * Allow multiple identical pending commands to be registered
413           in client library.  Affected file is lib/silcclient/command.c.
414
415         * Call the completion for resolving client information only
416           after all resolvers has finished.  This fixes a crash in
417           the client.  Added support for checking when the resolvers
418           are finished.  Affected file is lib/silcclient/idlist.c.
419
420         * Wait by default 3 seconds before reconnecting to the server
421           after being disconnected.  Makes the /detach command a bit
422           more usable.
423
424 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
425
426         * Check the watcher list before sending signoff notifys
427           when closing client connection.  Affected file is
428           silcd/server.c.
429
430         * Added better CMODE command rights checking.  Affected file
431           silcd/server_util.c.
432
433 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
434
435         * Fixed watcher list checking during server signoff.  It
436           crashed the server.  Affected file silcd/server_util.c.
437
438         * The JOIN command reply returns now the founder's public
439           key.  Affected file is silcd/command.c.
440
441         * Announce the channel mode, and the mode properties with
442           CMODE_CHANGE notify.  Affected file silcd/server.c.
443
444         * Mark new channels by default disabled, untill at least
445           one user joins the channel.  Affected file is
446           silcd/packet_receive.c.
447
448 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
449
450         * The nickname argument to watch notify can be optional.
451           Fixes a crash in server.  Affected file silcd/packet_send.c.
452
453         * Remove the client entry from cache if the WATCH notify type
454           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
455           lib/silcclient/client_notify.c.
456
457         * Check the watcher list before and after changing nickname
458           when the NICK_CHANGE notify is received.  Affected file is
459           silcd/idlist.c.
460
461         * Fixed a crash in OPER and SILCOPER command sending.  Empty
462           passphrase caused the crash.  Affected file is
463           lib/silcclient/command.c.
464
465 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
466
467         * Merged with Irssi CVS for Irssi SILC client.
468
469 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
470
471         * Completed the protocol specifications.
472
473 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
474
475         * Merged with Irssi CVS for Irssi SILC client.
476
477 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
478
479         * Added the founder's public key delivery to the
480           CUMODE_CHANGE notify type as well.  Updated the protocol
481           specs and the code.  Affected files are silcd/packet_send.[ch],
482           silcd/packet_receive.c and silcd/command.c.
483
484 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
485
486         * Added silc_pkcs_public_key_copy function into the
487           lib/silccrypt/silcpkcs.[ch].
488
489         * Remove the `iv' from the SilcChannelEntry since we can
490           live without it.  Affected files are silcd/idlist.h and
491           silcd/packet_receive.c.
492
493         * Added support for sending the founder's public key in
494           the CMODE_CHANGE notify packet in the server.  Affected
495           files are silcd/packet_send.[ch], silcd/packet_receive.c,
496           silcd/command.c and silcd/server.c.
497
498         * Changed the FOUNDER_AUTH authentication to use only
499           public key authentication as defined by new protocol
500           specs.  Passphrase authentication with that mode cannot
501           be used anymore.  It is now possible to reclaim founder
502           mode from any server in the network.  Affected files are
503           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
504
505         * Added permanent channels support by making the channel
506           permanent when FOUNDER_AUTH mode is set on the channel.
507           The channel will not be destroyed even if channel is empty
508           when that mode is set.  Protocol TODO #17.  Affected
509           files are silcd/server.[ch], server_util.[ch],
510           silcd/command.c, silcd/packet_receive.c and
511           lib/silcclient/command.c. 
512
513 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
514
515         * Added reference counter to the command reply context in
516           the client library.  Affected files are
517           lib/silcclient/command_reply.[ch].
518
519 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
520
521         * Fixed rekey protocol with PFS in the client library.
522           Affected file is lib/silcclient/protocol.c.
523
524         * Added support for list of errors in client library
525           command reply handling.  Affected file is
526           lib/silcclient/command_reply.c.
527
528         * Defined that the WHOIS and IDENTIFY commands can send
529           list of errors.  Updated the protocol specs.  Protocol
530           TODO #2.
531
532         * Added support for sending list of errors to WHOIS and
533           IDENTIFY commands in server.  Added support for receiving
534           list of errors in server.  Affected files are
535           silcd/command.c and silcd/command_reply.c.
536
537         * Fixed client info resolving on LEAVE command in client
538           library to not crash.  Affected file is 
539           lib/silcclient/client_notify.c.
540
541 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
542
543         * Defined that the NICK command replies with thew changed
544           nickname too, to make the nickname changing simpler at
545           the client's end.  Updated protocol specs and the code
546           in client and server.  Affected files are
547           silcd/command.c, lib/silcclient/command_reply.c and
548           lib/silcclient/command.c.
549
550 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
551
552         * Added `Compressed' packet flag to indicate that the packet
553           payload is compressed by the sender.  Updated the protocol
554           specs and the core library.  The compression still is not
555           implemented in the sources.  Affected file is
556           lib/silccore/silcpacket.h.
557
558 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
559
560         * Remove pending command callbacks also if the connection
561           to the server is destroyed.  Affected file is
562           lib/silcclient/client.c.
563
564 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
565
566         * Added new QUIET channel user mode that can be used to
567           quiet a user in a channel.  Updated the protocol specs but
568           it wasn't implemented yet.  Protocol TODO #27.  Affected
569           file is lib/silccore/silcmode.h.
570
571 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
572
573         * Added BLOCK_INVITE user mode to be able to block incoming
574           invite notifications.  Protoocol TODO #26.  Affected files
575           are lib/silccore/silcmode.h, lib/silcclient/command.c and
576           silcd/command.c.
577
578         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
579           the protocol specs and the code.  Affected file is
580           lib/silccrypt/silcpkcs.c.
581
582 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
583
584         * Disconnect Payload includes now the status type.  Updated
585           the protocol specs and the code.  Protocol TODO #25.
586           Affected files are silcd/server.c, lib/silcclient/client.c.
587
588         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
589           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
590           Moved the silc_client_command_status_messages table to the
591           lib/silcutil/silcutil.c and added new funtion
592           silc_get_status_message, which deprecates function
593           silc_client_status_message.  Affected files are 
594           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
595           lib/silcutil/silcutil.[ch].
596
597 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
598
599         * Defined that the nickname hash in Client ID MUST be from
600           lowercase nickname.  This effectively changes nicknames in
601           SILC to case-insensitive.  Updated the protocol specs and
602           the code.  Affected files are lib/silcutil/silcutil.[ch],
603           silcd/serverid.c, and silcd/idlist.c.
604
605         * Added new channel user modes BLOCK_MESSAGES_USERS and
606           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
607           code.  Affected files are lib/silccore/silcmode.h,
608           lib/silcclient/command.c, and silcd/packet_send.c.
609
610         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
611           specs and code.  Affected file lib/silccore/silcstatus.h.
612
613         * Added support for watch list.  It is possible to add nicknames
614           to be watched, and when they come to network, leave network
615           or user mode changes the watcher will be notified of this
616           change.  Added SILC_COMMAND_WATCH command, added new
617           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
618           notifications.  Updated the protocol specs and implemented
619           this to library, client and server.  Protocol TODO #21.
620           Affected files are lib/silccore/silccomand.h,
621           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
622           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
623           silcd/packet_send.[ch], silcd/packet_receive.c, and
624           irssi/src/silc/core/client_ops.c.
625
626         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
627           somebody watching you.  Updated the protocol specs and the
628           code.  Affected files are lib/silccore/silcmode.h, and
629           lib/silcclient/command.c.
630
631 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
632
633         * Added service support to SILC protocol.  Added new command
634           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
635           core library.  Services are not implemented in server or
636           client for now.  Protocol TODO #20.  Affected files are
637           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
638
639         * Added SilcStatus argument to `command' client operation
640           to return the error status when command sending fails
641           locally.  Changed all command in client library to return
642           correct command status.  Affected files are
643           lib/silcclient/command.c, lib/silcclient/silcclient.h and
644           irssi/src/silc/core/client_ops.c.
645
646 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
647
648         * Added silc_mime_parse function to parse MIME headers.
649           Affected files are lib/silcutil/silcstruti.[ch].
650
651         * Added MIME header parsing in Irssi SILC Client.  It displays
652           all textual MIME objects, others it ignores.  Affected file
653           is irssi/src/silc/core/clien_ops.c.
654
655 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
656
657         * Fixed a bug in the pid writing function, which couldn't be
658           written in a root-owned directory.
659
660 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
661
662         * Defined that channel message to unknown Channel ID must
663           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
664           Updated the protocol specs and the code in server.  The
665           affected file is silcd/packet_receive.c.
666
667 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
668
669         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
670           that it is used to send error notifys if error occurs during
671           some SILC packet processing, except commands.  The error
672           types are same as for command reply types.  Defined that
673           if private message is sent to unknown Client ID the error
674           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
675           Updated the protocol specs and code.  Affected files are
676           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
677           lib/silcclient/client_notify.c, silcd/packet_receive.c,
678           and irssi/src/silc/core/client_ops.c.  Renamed the
679           SilcCommandStatus to SilcStatus.
680
681         * Defined the use of extra WHOIS attributes in WHOIS command.
682           The <Requested Attributes> (defined in a separate document)
683           can be used to request additional information about user 
684           not returned by standard WHOIS command.  Defined that server
685           can send WHOIS command directly to client.  Client provides
686           the requested attributes to the server.  Updated the protocol
687           specs.  Protocol TODO #4.  Implementation is not done yet
688           (Protocol TODO #24).
689
690         * Renamed function silc_client_command_status_message to        
691           silc_client_status_message.  Affected files are
692           lib/silcclient/command_reply.[ch].
693
694 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
695
696         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
697           32 bit integers.  Updated the protcol specs and the code.
698           Affected files are silcd/command.c and
699           lib/silcclient/command.c.
700
701 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
702
703         * Fixed a bug in library where sending a bogus authentication
704           payload would lead to a crash.  Affected file is
705           lib/silccore/silcauth.c.
706
707 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
708
709         * Added detach_disabled and detach_timeout server config
710           options to the server.  Affected files silcd/serverconfig.[ch],
711           silcd/command.c and silcd/packet_receive.c.
712
713 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
714
715         * Added resolve_cmd_ident field to the SilcClientEntry structure
716           too so that if the entry is for example being resolved so 
717           another command may attach to the same pending command reply
718           without requiring to resolve the same entry again.  Added
719           support for adding multiple pending commands for one
720           command idenfier.  Affected files lib/silcclient/command.[ch],
721           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
722
723 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
724
725         * Defined that server receives WHOIS command reply for private
726           and secret channels too.  Updated protocol specs and the
727           code in server.  Affected file silcd/command.c.
728
729         * Defined <channel user mode list> argument to WHOIS command
730           reply for returning user modes on the channels.  The
731           channel list now doesn't include the user mode anymore but the
732           actual channel mode.  Updated protocol specs and the code in
733           client and server.  Affected files are silcd/command_reply.c,
734           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
735           and lib/silcclient/command_reply.c.
736
737         * Save the channels list in WHOIS command reply in normal server
738           so that WHOIS always shows joined channels also in normal
739           server and not just on router.  Affected file is
740           silcd/command_reply.c.
741
742 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
743
744         * Defined that server receives USERS command reply for private
745           and secret channels too.  Updated protocol specs and the
746           code in server.  Affected file silcd/command.c.
747
748 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
749
750         * Changed the UMODE's mode mask argument to be optional.  If
751           not provided then the command merely returns the current mode
752           mask to the client.  Updated protocol specs and the server.
753           Affected file is silcd/command.c.
754
755         * Added SILC session detachment/resuming support.  It is possible
756           to detach by closing the network connection and then re-connect
757           and resume to the old client session.  Added DETACHED user
758           mode that server will set for detached client.  Added new
759           packet RESUME_CLIENT which is used to perform the resuming
760           process.  Added DETACH command.  Updated the protocol specs,
761           core library, client and server.  Protocol TODO #22.  Very
762           many affected files around the tree.
763
764 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
765
766         * Changed the CMODE's mode mask argument to be optional.  If
767           not provided then the command merely returns the current mode
768           mask to the client.  Updated protocol specs and the server.
769           Affected file is silcd/command.c.
770
771         * Changed the Killer's Client ID in KILLED notify to be just
772           any ID payload since router server is allowed to kill as well.
773           Updated protocol specs, client libary and server.  Affected
774           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
775           and irssi/src/silc/core/client_ops.c.
776
777 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
778
779         * Added new user modes ANONYMOUS for special anonymous servers
780           that may set the mode for client, and BLOCK_PRIVMSG which
781           client may set to block incoming private messages unless the
782           Private Message Key flag is set (using private keys to protect
783           private messages).  Updated protocol specs and code in client
784           and server and core library.  Protocol TODO #23.  Affected
785           files are lib/silccore/silcmode.h, silcd/server.[ch], 
786           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
787           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
788
789         * Added new channel user mode BLOCK_MESSAGES which the client
790           may set to itself to tell server not send channel messages.
791           Other packets such as channel key packets are still sent.
792           Protocol TODO #23.  Updated the protocol specs, client and
793           server.  Affected files are lib/silccore/silcmode.h,
794           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
795           lib/silcutil/silcutil.c, silcd/command.c, and
796           silcd/packet_send.c.
797
798 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
799
800         * Redefined the Status Payload to include now two 8 bit fields,
801           instead of one 16 bit field.  This now makes it possible to
802           send list of errors.  Updated the protocol specs and the code
803           in core library, client library and server.  Protocol TODO #1.
804           Affected files are lib/silccore/silccommand.[ch],
805           lib/silcclient/command_reply.[ch], silcd/command.c,
806           silcd/command_reply.c and silcd/packet_receive.[ch].
807
808 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
809
810         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
811           must be handled by the application and should tell the application
812           that an error message was already printed, and it should print the
813           config coords (line, filename, ...).  Affected files are
814           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
815
816         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
817           server config parsing code more readable.
818
819           Fixed a bug in the fetch_logging() config callback.
820
821           Affected files is silcd/serverconfig.c.
822
823         * Drop root privileges when started in foreground.  Don't drop them
824           if debugging also.  Affected file is silcd/silcd.c.
825
826 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
827
828         * Added more IM-like features by introducing new user modes
829           for setting various presence information.  Added new modes:
830           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
831           specs and code.  Protocol TODO #19. Affected files are 
832           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
833           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
834
835 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
836
837         * Added STATS command to the protocol after all, to return
838           various statistical information about the network.  It can
839           be used by clients to retrieve statistical information, and
840           servers may use it to to fetch cell and network wide 
841           statistics from router.  Updated the protocol specs and
842           implemented it to the server.  Protocol TODO #16.
843           Affected files are lib/silccore/silccommand, silcd/command.[ch],
844           silcd/command_reply.[ch].
845
846 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
847
848         * The LIST command reply in client libary now adds new channel
849           entry if the returned channel doesn't exist yet in cache, 
850           and returns the channel entry to the application in the
851           command_reply client operation.  Affected file is
852           lib/silcclient/command_reply.c.
853
854         * Changed the channel message payload's MAC generation to
855           include the IV in the MAC as well.  This way all relevant
856           parts of the channel message payload are authenticated also
857           with the channel message MAC (and not only by packet MAC).
858           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
859           Affected file is lib/silccore/silcchannel.c.
860
861         * Fixed the SKE to save the remote version, since the
862           silc_ske_parse_version mistakenly checked wrong version,
863           after it replaced the start payload.  Affected files are
864           lib/silcske/silcske.[ch].
865
866 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
867
868         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
869           string utility functions.  Added there also new functions
870           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
871           Affected files lib/silcutil/silcstrutil.[ch].
872
873         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
874           files are lib/silcutil/silcstrutil.[ch].
875
876         * Defined that the security property fields in SKE SHOULD be
877           UTF-8 encoded, defined that version string MUST be US-ASCII
878           encoded, defined that passphrases sent in connection 
879           authentication protocol MUST be UTF-8 encoded.  Implemented
880           these to the client and server.  Defined also that other
881           passphrases sent in the protocol MUST be UTF-8 encoded.
882           Affected files are lib/silcske/silcske.c, 
883           lib/silcclient/protocol.c, silcd/protocol.c, 
884           silcd/serverconfig.c, and lib/silccore/silcauth.c.
885
886         * Changed the silc_client_close_connection interface to not
887           need the SilcSocketConnection which should not be visible
888           to application.  Affected files are lib/silcclient/client.c
889           and lib/silcclient/silcclient.h.
890
891         * Rewrote the text for Private Message Key Payload in the
892           protocol specification.  Protocol TODO #11.
893
894 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
895
896         * Upgraded the protocol version to 1.1, updated protocol specs
897           and software.
898
899         * Added the nickname as new argument to NICK_CHANGE notify and
900           added it to protocol specs and implemented it to client and
901           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
902           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
903           lib/silcclient/client_notify.c.
904
905         * Added the killer's client ID to the KILLED notify and added
906           it to protocol specs and implemented it to client and server.
907           Protocol TODO #13.  Affected files are silcd/command.c,
908           silcd/packet_receive.c, packet_send.[ch], 
909           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
910           The killer's client entry is now returned to application in
911           the `notify' client operation.
912
913         * Fixed the Max Argument fields that had too large value set
914           in the protocol specs.  Protocol TODO #14.
915
916         * Added the LEAVE command reply to return the ID of parted
917           channel.  Updated protocol specs and implemented it to the
918           client and server.  Protocol TODO #15.  Affected files are
919           silcd/command.c, lib/silcclient/command_reply.c.  The channel
920           entry is now returned to application in the `command_reply'
921           client operation.
922
923         * Rewrote the version SKE version checking in client libary
924           and in server to use the silc_parse_version_string.  Affected
925           files are lib/silcclient/protocol.c, silcd/protocol.c.
926
927         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
928           commands that was missing it, and updated protocol specs and
929           the server implementation.  Protocol TODO #10.  The affected
930           file is silcd/command.c.
931
932         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
933           generic reply to a generic request (REQUEST flag), and
934           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
935           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
936           to define the payload for DATA flag.  Added the flags to
937           the implementation.  Protocol TODO #9.  Affected file is
938           lib/silccore/silcchannel.h.
939
940           Changed the client library to return the message length
941           to application as well in the channel_message and private_message
942           client operations.  Affected files are 
943           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
944           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
945           and lib/silcclient/client_ops_example.c.
946
947         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
948           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
949           the channel.  Updated protocol specs and impelemented this
950           to client and server.  Protocol TODO #6.  Affected files are
951           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
952           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
953
954           Added new options m and M to CMODE command in Irssi SILC
955           client to set these modes.
956
957         * Deprecated all administrative commands from SILC protocol
958           since they are highly implementation specific commands.
959           Updated protocol specs.  Moved the old commands in 
960           implementations to private range of command types.  Affected
961           files are silcd/command.c, lib/silcclient/command.c and
962           lib/silcclient/command_reply.c.  Protocol TODO #8.
963
964         * Fixed a bug in server where sending unknown command crashes
965           the server.  Affected file silcd/command.c.
966
967 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
968
969         * Added SILC_PROTOCOLVERSION macro to check protocol version
970           of a socket connection.  The affected file is 
971           lib/silcutil/silcsockconn.h.
972
973         * Added better error logging in rekey protocol.  Affected file
974           silcd/protocol.c.
975
976         * Do not check public key types in SKE during rekey.  Affected
977           file lib/silcske/payload.c.
978
979         * Fixed the rekey protocol with PFS, which was totally broken.
980           Affected file silcd/protocol.c.
981
982 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
983
984         * Some client implementations quit network by doing first LEAVE
985           and then immediately SIGNOFF (like Bombyx).  We now do check 
986           after a short time after LEAVE notify and check whether the 
987           client is still valid after LEAVE, and if not we remove it from 
988           cache.  Affected file is lib/silcclient/client_notify.c.
989
990 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
991
992         * Merged version 1.1.4 of zlib. Even if it not currently in use,
993           it's good not to have security holes here.
994
995         * Fixed a negative refcount situtuation for the config context.
996           Affected file is silcd/serverconfig.c.
997
998 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
999
1000         * ROBOdoc documented lib/silcutil/silcutil.h.
1001
1002 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1003
1004         * Optimized even more the SilcPacketContext structure.  Now
1005           totally saved 16 bytes of memory per context after optimization.
1006           Affected files are lib/silccore/silcpacket.[ch].
1007
1008         * Made strict checks for valid SILC IDs.  Affected file is
1009           lib/silccore/silcid.c.
1010
1011 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1012
1013         * Changed the object argument for silc_cipher_register,
1014           silc_hash_register, silc_hmac_register and silc_pkcs_register
1015           to const.  Affected files are lib/silccrypt/silccipher.[ch],
1016           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
1017
1018         * Changed the silc_get_username and silc_get_real_name to
1019           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
1020
1021         * Fixed the Irssi SILC Client to use the silc_get_username and
1022           silc_get_real_name insted of glib routines since the glib
1023           routines only corrupt stack.  Fixes the Irssi SILC to work in
1024           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
1025
1026         * Fixed the Irssi to not use g_get_home_dir since it crashes
1027           or returns garbage on cygwin and corrupts stack.  Added function
1028           get_home_dir to Irssi routines.  Affected files are
1029           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
1030
1031 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1032
1033         * Made some structure optimizations.  SFTP memory FS MemFSEntry
1034           entry structure.  Optimized SilcTask structure.  Optimized
1035           SilcPacketContext structure.
1036
1037           Affected files lib/silcsftp/sftp_fs_memory.c,
1038           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
1039
1040 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1041
1042         * And yet again reverted back the config thing since Johnny
1043           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
1044           and silcd.c.
1045
1046         * Fixed memory leaks from config object.  Affected files are
1047           silcd/serverconfig.[ch].
1048
1049         * Added support for adding new connections to the server in rehash.
1050           After rehash they take effect.
1051
1052           Added support for changing the maximum allowed connections in
1053           rehash.  The number can grow but going smaller is not supported.
1054
1055           Added function silc_server_num_sockets_by_remote to the
1056           silcd/server_util.[ch].
1057
1058           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
1059
1060 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
1061
1062         * Added preliminary checking during config parsing for a valid
1063           public/private key and removed further checks in the code.
1064           Affected files are silcd/serverconfig.[ch], server.c.
1065
1066         * Moved functions silc_server_drop() and silc_server_daemonise()
1067           from server.c to silcd.c since they are stricly related to
1068           the application activity.
1069
1070         * Reverted a small part of the automatic ref/unref since
1071           it caused a double unref in some situations.  Affected
1072           files are silcd/silcd.[ch], server.c, serverconfig.c.
1073
1074         * Added some .cvsignore files in the lib directory.
1075
1076 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1077
1078         * Fixed silc_net_gethostbyaddr to correctly resolve by
1079           address.  Affected file lib/silcutil/silcnet.c.
1080
1081         * Fixed the notify relaying to client.  The HMAC to be used
1082           with relayed packets ws wrong and caused decryption failure
1083           at the client end.  Affected file is silcd/packet_receive.c.
1084
1085 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1086
1087         * Created new branch silc_protocol_1_0_branch.
1088
1089         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
1090
1091         * Changed the silc_server_config_* routines to be SilcServer
1092           independent.  They are now officially application specific code
1093           and not part of generic server implementation.  Affected files
1094           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
1095
1096 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1097
1098         * Added automatic referencing of config context in the
1099           silc_server_config_alloc, and automatic unreferencing in the
1100           silc_server_config_destroy.  Affected files are
1101           silcd/serverconfig.[ch], silcd/silcd.c.
1102
1103         * Fixed the silc_log_quick handling in the logging routines.
1104           It didn't log quickly when it was TRUE.  Affected file is
1105           lib/silcutil/silclog.c.  Also the flush delay was set even
1106           if it was 0 in config file.  Affected file is 
1107           silcd/serverconfig.c.
1108
1109         * Added support for changing key pair of the server in rehash.
1110           Affected file silcd/server.c.
1111
1112 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1113
1114         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
1115           too early, before getting the channel entry.  Affected file
1116           is silcd/packet_receive.c.
1117
1118 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1119
1120         * Added functions silc_server_config_[ref/unref], these are used
1121           to prevent that the config object is destroyed.
1122
1123           No longer directly affect global variables silc_log_quick and
1124           silc_log_delay, they are first cached inside the config object
1125           and then applied with silc_server_config_setlogfiles().
1126
1127           silc_server_config_set_defaults() is now internal to
1128           serverconfig.c, there are no reasons to show this internal stuff
1129           to the server.
1130
1131           Affected files are silcd/serverconfig.[ch].
1132
1133         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
1134           fprintf's to stderr, since some code may be executed again after
1135           the server went into the background.  Affected files are
1136           silcd/server.[ch].
1137
1138         * Added rehash support. Added function silc_server_rehash() that
1139           will perform all the basic tasks of the rehashing procedure.
1140
1141         * Added command line option `-x, --hexdump'. This will enable the
1142           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
1143           The option `--hexdump' implies `--debug'.
1144
1145         * Fixed a bad bug in the logging APIs (silcutil library) where
1146           the application would crash after calling silc_log_reset_all().
1147
1148 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1149
1150         * Fixed the KICKED notify handling in client library to
1151           correctly remove the channel and all entries from the
1152           channel when I was kicked.  This bug crashed the client.
1153
1154           Fixed yet another but in KICKED notify handling to remove
1155           the kicked client correctly from the channel.
1156
1157           Affected file is lib/silcclient/client_notify.c.
1158
1159         * Fixed a minor bug in looking up correct client entry
1160           in KICKED notify in server.  Affected file is
1161           silcd/packet_receive.c.
1162
1163         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
1164           sources correctly to distribution.  Fixes --with-gmp option.
1165
1166         * Removed the manual rehashing from ID Cache, and changed it
1167           to use the SILC Hash Table's auto rehash feature.  Affected
1168           file is lib/silccore/silcidcache.c.
1169
1170 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1171
1172         * Fixed a bug in the silc_client_nickname_format function that
1173           handles the multiple same nickname formatting.  Two clients
1174           with same nickname caused problems after the first one left
1175           and rejoined.  It didn't format the nickname correctly.
1176           Affected file is lib/silcclient/idlist.c.
1177
1178 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1179
1180         * Don't change the topic if olod topic is same as new one.
1181           Affected file is silcd/packet_receive.c.
1182
1183 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1184
1185         * Added cross-reference support to the SILC Documentation
1186           generator.  All types across all HTML files are now cross-
1187           referenced.  Affected files util/robodoc/generator.c and
1188           scripts/silcdoc/silcdoc.
1189
1190         * Added file lib/silcutil/silctypes.h to include all the
1191           arithmetic type definitions and some macros.  Removed
1192           includes/bitmove.h and moved macros to silctypes.h.
1193
1194 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1195
1196         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
1197
1198 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1199
1200         * Added `type' argument to silc_id_payload_parse_id function which
1201           now returns the type of the ID to the sent pointer.  Affected
1202           file is lib/silccore/silcid.[ch].
1203
1204         * Added check for CMODE_CHANGE notify type that mode change is
1205           allowed by the sender.  Affected file silcd/packet_receive.c.
1206
1207         * Added check for CUMODE_CHANGE notify type that mode change is
1208           allowed by the sender.  Affected file silcd/packet_receive.c.
1209           Added the ID type as CUMODE_CHANGE notify type as argument
1210           to the `notify' client operation.  Affected files are
1211           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
1212
1213         * Added function silc_client_add_server to the client library.
1214           Added support for resolving also channel and server info when
1215           received unknown entity in notify packet.  Affected files are
1216           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
1217
1218         * Added function silc_command_get_status to return the command
1219           status from the command reply's argument payload.  Affected files
1220           are lib/silccore/silccommand.[ch].
1221
1222         * Added check for KICKED notify type that the kicking is
1223           allowed by the client.  Affected file silcd/packet_receive.c.
1224
1225         * Created function silc_get_input which can be used to get input
1226           (echo on or off) from user on command line.  Affected files are
1227           lib/silcutil/silcutil.[ch].
1228
1229 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1230
1231         * Optimized silc_server_packet_relay_to_channel function.
1232           Added new function silc_channel_message_payload_encrypt which
1233           can be called directly if channel message payload needs to
1234           be encrypted and is already encoded (no need to call _encode
1235           function).  Packet relaying is now done by router without any
1236           extra memory allocations.  Affected files are
1237           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
1238           silcd/packet_send.c.
1239
1240         * Fixed the INVITE notify handling.  It took wrong arguments
1241           as invite list and invite delete.  Affected file is
1242           silcd/packet_receive.c.
1243
1244         * Added check for TOPIC_SET notify type that the topic change is
1245           allowed by the client.  Affected file silcd/packet_receive.c.
1246
1247         * Added check for INVITE notify type that inviting is allowed by
1248           the client.  Affected file silcd/packet_receive.c.
1249
1250         * Changed the silc_server_client_on_channel to return the
1251           SilcChannelClientEntry as well.  Moved the function
1252           silc_server_check_cmode_rights to server_util.[ch].
1253           Affected files are silcd/server_util.[ch], silcd/command.c.
1254
1255         * Added function silc_server_check_umode_rights to check whether
1256           changing client's user mode is allowed.  Added check for
1257           UMODE_CHANGE notify type that the umode change is allowed
1258           by the client.  Affected files are silcd/server_util.[ch],
1259           silcd/packet_receive.c and silcd/command.c.
1260
1261 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1262
1263         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
1264           ID length.  It ignored that ID can be IPv6 based as well.
1265           Affected file lib/silccore/silcpacket.h.
1266
1267         * Fixed the silc_id_id2str and silc_id_str2id to take the
1268           IPv6 address offset's into consideration.  Affecte file is
1269           lib/silccore/silcid.c.
1270
1271 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1272
1273         * Fixed the internal Unix scheduler functions to check for
1274           NULL context they may receive.  The affected file is
1275           lib/silcutil/unix/silcunixschedule.c.
1276
1277 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
1278
1279         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
1280           can specify different directory with --home command line
1281           parameter. Affected files irssi/src/silc/core/client_ops.c,
1282           clientutil.c
1283
1284         * SILC-specific commands aren't now executed if the active server
1285           isn't of SILC-type, so there won't be problems with having
1286           IRC and SILC protocol support in same client. Affected files
1287           irssi/src/silc/core/silc-channels.c, silc-servers.c,
1288           silc-commands.h
1289
1290 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1291
1292         * Improved the signal support in SILC Schedule.  Added new
1293           function silc_schedule_signal_call which is used by application
1294           to mark a signal to be called.  It is now safe to perform
1295           any kind of tasks in signal callbacks since it is guaranteed
1296           that the application specified signal callback is called
1297           after the signal is over.  Affected files are
1298           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
1299
1300 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1301
1302         * Added `name' field to SilcChannelPrivateKey to represent
1303           application given name for the key.  Moved also the context from
1304           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
1305           Added the `name' argument also to the function
1306           silc_client_add_channel_private_key.
1307
1308           Added function silc_client_current_channel_private_key to set the
1309           current channel private key in use.
1310
1311           Added "change" command to KEY command which can be used to change
1312           the current channel private key.  Bound the command also to
1313           alt+K (Alt+Shift+k).
1314
1315           Also affected files lib/silcclient/client_channel.c,
1316           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
1317
1318 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1319
1320         * Added silc_rng_get_byte_fast function in to the
1321           lib/silccrypt/silcrng.[ch].
1322
1323         * Changed the interface of silc_packet_assemble and the
1324           silc_packet_send_prepare.  If silc_packet_assmble is now
1325           called the application does not call silc_packet_send_prepare
1326           because the library will call it automatically.  These
1327           interfaces now also return a reference to the outgoing buffer
1328           which includes the assembled packet, which the application can 
1329           use to encrypt the packet.
1330
1331           Affected files are lib/silccore/silcpacket.[ch],
1332           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
1333           silcd/packet_send.c, server_backup.c and packet_receive.c.
1334
1335         * Fixed a packet sending bug on very high load, where outgoing
1336           packet queue wasn't handled correctly and packets got corrupted.
1337           Affected files are lib/silcutil/*/silc*sockconn.c,
1338           lib/silcclient/client.c and silcd/server.c.
1339
1340 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1341
1342         * Added macro SILC_PACKET_DATALEN which can be used during
1343           packet assembling to check whether the data to be added to    
1344           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
1345           len is truncated until it fits it.
1346
1347           Added checks for maximum length of channel message payload and
1348           private message payload also.
1349
1350           Added checks for maximum packet length in server and in
1351           client library.
1352
1353           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
1354           lib/silcclient/client.c, lib/silccore/silcchannel.c and
1355           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
1356           lib/silcclient/client_prvmsg.c.
1357
1358 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1359
1360         * Added silc_server_packet_queue_purge call to the
1361           silc_server_disconnect_remote to assure that all data in the
1362           queue before disconnecting is sent to the network.  Affected
1363           file silcd/server.c.
1364
1365 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1366
1367         * Added the deleting of server's own ID cache entry to the
1368           silc_server_free function.  Free also everything else that
1369           has been allocated in silc_server_init.  The affected file 
1370           is silcd/server.c.
1371
1372 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1373
1374         * Added functions silc_parse_version_string, silc_version_to_num,
1375           and silc_ske_parse_version to parse SILC protocol style version
1376           strings.  Affected files lib/silcutil/silcutil.[ch] and
1377           lib/silcske/silcske.[ch].
1378
1379         * Added new configuration params: version_protocol, version_software
1380           and version_software_vendor to specify what version the remote
1381           host must at least be to be able to connect to server.  The vendor
1382           string can be regex matched too.  Added new function 
1383           silc_server_connection_allowed to check maximum number of allowed
1384           connections, and allowed versions for incoming connections.
1385           Affected files are silcd/server.c, server_util.[ch] and
1386           serverconfig.[ch].
1387
1388 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1389
1390         * Added preliminary support for signals in scheduler.  The
1391           signals we care about are now blocked always when the scheduler
1392           is locked.  This way we can synchronise the use of signal with
1393           scheduler.  It is guaranteed that when signal occurs the scheduler
1394           is not locked, and thus new tasks can be safely added to the
1395           scheduler.
1396
1397           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
1398           to silc_schedule_internal_init and silc_schedule_internal_uninit.
1399           Added new platform specific routines
1400           silc_schedule_internal_signals_[un]block and 
1401           silc_schedule_internal_signal_[un]register.
1402
1403           Added new functions to SILC Schedule API:
1404           silc_schedule_signal_[un]register.  Each signal that application
1405           is going to use should be registered to the scheduler.
1406
1407           Affected files are lib/silcutil/silcschedule.[ch],
1408           lib/silcutil/*/silc*schedule.c.
1409
1410 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1411
1412         * Check for unauthenticated client and server in the
1413           silc_server_new_client and silc_server_new_server functions.
1414           Affected file silcd/packet_receive.c.
1415
1416         * Added function silc_string_is_ascii to check whether given
1417           string is 7-bit ASCII string.  Affected files are
1418           lib/silcutil/silcutil.[ch].
1419
1420         * Added function silc_id_is_valid_server_id into the
1421           silcd/serverid.c and added checking for valid Server ID's in
1422           silc_server_new_server.  The Server ID must always be based
1423           on the server's public IP address.
1424
1425         * Added logging of DISCONNECT packet message in the server.
1426           Affected file silcd/server.c.
1427
1428 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1429
1430         * Changed all library interfaces that use Global RNG to also
1431           accept SilcRng as argument.  Affected files are
1432           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
1433           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
1434           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
1435           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
1436           lib/silccrypt/rsa.c.
1437
1438         * Added function silc_pkcs_generate_key to the
1439           lib/silccrypt/silcpkcs.[ch] for applications so that they
1440           don't need to do pkcs->pkcs->init calls anymore.
1441
1442         * Remove SilcSocketConnection from the SFTP API since it really
1443           wasn't needed there.  The application has the information
1444           saved in its contexts anyway and the SFTP layer doesn't need
1445           know about it.  Affected files lib/silcsft/silcsftp.h and
1446           lib/silcsftp/sftp_[server/client].c.
1447
1448         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
1449           The SilcSimContext is not SilcSim.
1450
1451         * Fixed possible buffer overflows in silc_id_render in the
1452           lib/silcutil/silcutil.c.
1453
1454         * On EPOC the global crypto module lists are not used at all
1455           in the crypto library.  Added support for using the constant
1456           algorithm list on EPOC.  Affected files are
1457           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
1458           silcpkcs.c.
1459
1460         * Fixed the handling of third parameter of KICKED notify, since
1461           it was mistakenly updated to SILC Protocol 1.0 even though it
1462           is to be included in 1.1.  Since it is not in 1.0 it is not
1463           mandatory, and this fix now handles it only if it is provided,
1464           and it is not error if it is not provided.  Affected file 
1465           lib/silcclient/client_notify.c.
1466
1467 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1468
1469         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
1470           client.  Affected file irssi/src/silc/core/client_ops.c.
1471
1472         * Merged with Irssi 0.8.4 from irssi.org CVS.
1473
1474 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1475
1476         * Check for valid socket connection in client entries before
1477           sending any messages.  Fixes a crash, but doesn't fix some
1478           other underlaying bug that is lurking there.  Affected
1479           file silcd/packet_send.c.
1480
1481 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
1482
1483         * $usermode, $cumode and $cumode_space expandos shouldn't do
1484           anything with non-SILC server records. Affected file
1485           irssi/src/silc/core/silc-expandos.c
1486
1487 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1488
1489         * Fixed the silc_net_check_[host/local]_by_sock to support
1490           IPv6 bound sockets as well.  Now they can return IPv6 addresses
1491           as well.  Affected file lib/silcutil/silcnet.c.
1492
1493         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
1494           Affected lib/silcutil/unix/silcunixnet.c.
1495
1496         * Fixed ID rendering (at least on some platforms, not NetBSD)
1497           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
1498
1499 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1500
1501         * Added silc_hash_public_key and silc_hash_public_key_compare
1502           functions to be used with SilcHashTable.  They can be used to
1503           hash public keys and compare public keys in hash table.  Affected
1504           file lib/silcutil/silcutil.[ch].
1505
1506         * Added support for specifying multiple public keys for Client
1507           connection section in server configuration file.  This makes it
1508           possible to accept multiple public keys from same host, or to
1509           make a section that accepts any incoming host, and have the
1510           accepted public keys listed in the section.
1511
1512           Added functions silc_sever_[find/get]_public_key,  added the
1513           support for this actually to all connection sections but only
1514           the Client section is currently allowed to specify multiple
1515           public keys.
1516
1517           Affected files are silcd/server.c, server_internal.h,
1518           command.c, protocol.c, server_util.[ch], packet_receive.c.
1519
1520 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1521
1522         * Merged Irssi 0.8.2 from irssi.org CVS.
1523
1524 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1525
1526         * If silc_debug is TRUE, also output standard logging messages
1527           to stderr with the debug output.
1528
1529           Made silc_log_reset_all() flushing all channels before returning.
1530           Also fixed some documentation typos.
1531
1532           Affected files are lib/silcutil/silclog.[ch].
1533
1534 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1535
1536         * Fixed the server to check correctly the amount of connections
1537           from single host, by checking also the type of the connection.
1538           Fixed also the comparison of number of connections and number
1539           of allowed connections.  Affected files are silcd/server.c, 
1540           server_util.[ch].
1541
1542 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1543
1544         * Fixed the USERS command reply to save the user's mode on the
1545           channel as well.  Fixed JOIN command reply to check whether a
1546           client is on channel already and not join it twice.  Affected
1547           file lib/silcclient/command_reply.c.
1548
1549         * Added new file silc-expandos.c into irssi/silc/core/ to return
1550           various stuff for various signal for the statusbar etc. updating.
1551           Now Irssi SILC client prints channel user modes etc. on the
1552           statusbar.
1553
1554         * The user mode (like server/router operator changes) is now shown
1555           on the Irssi SILC client's statusbar.  The affected files are
1556           irssi/src/silc/core/client_ops.c, silc-expandos.c.
1557
1558 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1559
1560         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
1561           to SILC_SCHEDULE_[UN]LOCK macros.
1562
1563         * Added more error printing to logs in server code.  Affected
1564           files silcd/server.c and silcd/protocol.c.
1565
1566         * Fixed -S option parsing in Irssi SILC Client.  Affected file
1567           irssi/src/silc/core/silc-core.c.
1568
1569         * Added silc_buffer_alloc_size function.  Affected file is
1570           lib/silcutil/silcbuffer.h.
1571
1572 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1573
1574         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
1575           constants.  Affected files in
1576           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
1577           silccipher.[ch].
1578
1579         * Changed the internal SFTP Memory FS table to const.  Affected
1580           file lib/silcsftp/sftp_fs_memory.c.
1581
1582 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1583
1584         * Fixed the buffer formatting and unformatting routines to
1585           check the size of 64 bits types with sizeof().  Affected
1586           file is lib/silcutil/silcbuffmt.c.
1587
1588 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1589
1590         * Removed 0.6.x backwards support.
1591
1592 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1593
1594         * Changed all integer type names:
1595           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
1596           to avoid collisions with other libraries using same type names
1597           as we did.
1598
1599 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1600
1601         * Added `prefer_ipv6' argument to the functions
1602           silc_net_gethostbyname[_async].  If it is TRUE it will return
1603           IPv6 address over IPv4.  If FALSE IPv4 address is returned
1604           even if IPv6 address was found.  Affected files
1605           lib/silcutil/silcnet.[ch].
1606
1607         * Added support silc_net_create_connection[_async] to fallback
1608           to IPv4 address if IPv6 address could not be used (like if
1609           it doesn't work on a specific system).  Affected file in
1610           lib/silcutil/unix/silcunixnet.c.
1611
1612 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1613
1614         * Added silc_schedule_reinit function to do the enlarging
1615           of the max tasks handling capabilities of the scheduler.
1616           Affected files lib/silcutil/silcschedule.[ch].
1617
1618 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1619
1620         * Added automatic extern "C" { ... } for C++ compilers so the
1621           application does not need to define them.  Affected file
1622           includes/silcincludes.h.
1623
1624         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
1625           old name went against naming convention.  Applications now
1626           include "silcclient.h" instead of "clientlibincludes.h".
1627           Removed includes/clientlibincludes.h, it is redundant now.
1628
1629         * Renamed includes/version.h to silcversion.h.
1630
1631         * Added really preliminary support for OS/2 into the util
1632           library.  Only thread & mutex API is implemented, others
1633           are still to be implemented.  Created the lib/silcutil/os2/
1634           directory.  Created also file includes/silcos2.h.
1635
1636 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1637
1638         * Added preliminary BeOS support into the util library.
1639           Created lib/silcutil/beos/, and implemented all the needed
1640           functions to support SILC on BeOS.  Created also file
1641           includes/silcbeos.h.
1642
1643 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
1644
1645         * Added proper initializations to silc's irssi code, so it's
1646           now possible to load it as module.  Affected files
1647           irssi/src/silc/core/silc-core.c,
1648           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
1649
1650 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1651
1652         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
1653           the SILC tree.
1654
1655         * Fixed the silcdoc document generator to correct generate
1656           docs from all kinds of filenames.  Affected files are
1657           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
1658
1659         * ROBOdoc documented lib/silcutil/silcmemory.h.
1660           Added also new function silc_memdup.
1661
1662         * Removed lib/silcutil/silcbufutil.h and moved those routines
1663           to the lib/silcutil/silcbuffer.h.
1664
1665 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1666
1667         * Added `user_count' to the SilcChannelEntry which now tells the
1668           number of users on the channel.  The user count is now saved
1669           in normal server of global channels as well.  Affected files
1670           silcd/server.c, idlist.h, packet_receive.c and command.c.
1671
1672         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
1673           include file utility functions.
1674
1675         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
1676           instead of calling directly OS routines.
1677
1678         * Fixed NICK change printing in Irssi SILC Client. Fixed
1679           KICKED notify printing in Irssi SILC Client.  Affected file
1680           irssi/src/silc/core/client_ops.c.
1681
1682         * Fixed a NICK change bug in client library, to not recreate the
1683           client_entry->channels hash table everytime nick is changed.
1684           Affected file lib/silcclient/client.c.
1685
1686 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1687
1688         * ROBOdoc documented the lib/silcske/silcske.h, and improved
1689           the SKE interface a bit.
1690
1691         * Fixed padding problem in PKCS#1. The padding was not actually
1692           random since the random number generator was used incorrectly.
1693           This security bug affects only when encrypting with PKCS#1, and
1694           it is not currently used at all in SILC. SILC only use signing
1695           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
1696
1697 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1698
1699         * Rewrote the notify handling in Irssi SILC client to not call
1700           the events as signals.  Fixes problems with Perl support.
1701           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
1702
1703         * Send the auto-nicking NICK command in client library with
1704           little timeout after connecting.  The affected file is
1705           lib/silcclient/client.c.
1706
1707         * Added following new config file settings:
1708           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
1709           key_exchange_timeout, conn_auth_timeout, connections_max,
1710           links_max.
1711
1712           Implemented all the new config settings handling in the server.
1713
1714           Optimized the use of SKE Mutual flag usage.  Use it only
1715           if connection authentication protocol is not based in public
1716           key authentication.
1717
1718           Renamed all SilcServerConfigSection* to SilcServerConfig*
1719           to have a bit shorter names.
1720
1721           Affected files silcd/serverconfig.[ch], server.[ch], and
1722           protocol.[ch].
1723
1724 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1725
1726         * Cleaned up the listening sockets code, preparing for the rehash
1727           support.  Affected file is silcd/server.c.
1728
1729         * Fixed some output messages.  Affected files are silcd/silcd.c,
1730           and silcd/server.c.
1731
1732 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1733
1734         * Create lib/doc/silcrng_intro.html document as introduction
1735           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
1736
1737 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1738
1739         * Fixes to the silcd config template.  Affected file is
1740           doc/example_silcd.conf.in.
1741
1742         * Removed type casts from silc_calloc(), conforming to the
1743           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
1744
1745         * Removed param_name member from client, server, and router
1746           section structs, now identifying the param directly.
1747
1748           Added CONFIG_FREE_AUTH macro in config file parsing.
1749
1750           Affected files are silcd/serverconfig.[ch].
1751
1752 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
1753
1754         * Fixed command line parameter handling. All SILC initialization
1755           is now done in silc_core_init() which also fixes autoconnecting
1756           to servers.
1757
1758           Affected files irssi/src/silc/core/silc-core.c,
1759           irssi/src/fe-text/silc.c.
1760
1761 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1762
1763         * Added new configuration options and blocks:
1764           keepalive_secs, reconnect_count, reconnect_interval,
1765           reconnect_interval_max, reconnect_keep_trying and
1766           require_reverser_lookup.  Added ConnectionParam block, and
1767           implemented the connection parameters when connecting as
1768           initiator and when accepting connections as responder. 
1769
1770           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
1771           whether given configuration value has been given already.
1772
1773           Affected files silcd/serverconfig.[c], server.[c].
1774
1775         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
1776           algorithm parts and created new file silcalgs.conf, that
1777           is now included from the example_silcd.conf.in.
1778
1779         * Optimized the silc_server_connect_to_router_second to take
1780           the connection configuration object from the SilcServerConnection
1781           object instead of finding it during the connecting phase.
1782           Added the configuration object to SilcServerConnection struct.
1783           Affected files silcd/server_internal.h, server.c.
1784
1785 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1786
1787         * Add the client on channel after it was resolved at the
1788           channel message receiving, and it was not already on the
1789           channel.  Affected file lib/silcclient/client_channel.c.
1790
1791 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1792
1793         * Fixed the public key authentication to allocate always the
1794           destination signature buffer instead of using static buffer.
1795           Affected file silcd/protocol.c.
1796
1797 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1798
1799         * Unified the serverconfig.[ch]'s helper function interface.
1800           Affected file silcd/serverconfig.[ch].
1801
1802         * Removed doc/example_silc.conf.in since it is redundant.
1803           The make install will now install irssi/silc.conf file.
1804
1805         * Added new Passphrase and Publickey authentication methods to  
1806           config file, allowing both public key and passphrase based
1807           authentication to be set at the same time.
1808
1809           Added `prefer_passphrase_auth' setting in config file which
1810           can be used to set to prefer passwd auth if both passwd and
1811           public key is set.  If not set, public key is preferred.
1812           This has effect only when being initiator (responder will try
1813           both anyway).
1814
1815           Added support for authentication with passphrase and public key
1816           at the same time.  The passphrase is tried first always since
1817           it is faster to check.
1818
1819           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
1820
1821 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1822
1823         * Merged the new SILC Config library, with the server parsing
1824           support.  Read the header file silcconfig.h or the toolkit
1825           documentation for the news.  Affected files are
1826           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
1827           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
1828           silcd/protocol.c silcd/server.c silcd/server_backup.c
1829           silcd/serverconfig.[ch] silcd/silcd.c.
1830
1831         * Fixed some silclog documentation.  Affected file is
1832           lib/silcutil/silclog.h.
1833
1834 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1835
1836         * The silc_cipher_register, silc_hash_register and
1837           silc_hmac_register now checks if the object to be registered
1838           is registered already.  Affected files are
1839           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
1840
1841 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1842
1843         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
1844
1845 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1846
1847         * Allow zero length channel messages inside the Channel Message
1848           Payload.  Affected file lib/silccore/silcchannel.c.
1849
1850         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
1851           as header filenames.
1852
1853         * Removed lib/silcclient/README and created HTML file
1854           lib/silcclient/silcclient_using.html, which is now included
1855           as part of Toolkit documentation.
1856
1857 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1858
1859         * Fixed CUMODE_CHANGE notify handling to change the mode of
1860           correct client.  Affected file lib/silcclient/client_notify.c.
1861
1862         * Make silc_rng_alloc fail if it cannot allocate the sha1
1863           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
1864
1865 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1866
1867         * Fixed the file transfer's key agreement payload to include
1868           zero port also if the hostname is NULL because it could not
1869           be bound.  
1870
1871           Call file transfer monitor callback now also if error occurs
1872           during key agreement protocol.
1873
1874           Changed the silc_client_file_send interface to return the
1875           SilcClientFileError instead of session id.  The session ID
1876           is returned into pointer provided as argument.
1877
1878           Check that the file exists locally before sending the
1879           file transfer request at all.
1880
1881           Affected file lib/silcclient/client_ftp.c, silcapi.h.
1882
1883         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
1884           error than can occur while key agreement protocol.  Affected
1885           file lib/silcclient/silcapi.h.
1886
1887         * Fixed the event_mode CMODE handler to not crash when mode
1888           is changed and +k mode is set in the channel.  Affected file
1889           irssi/src/silc/core/silc-channels.c.
1890
1891         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
1892           SILC_LOG_WARNING to give out Warning and not Error.  Affected
1893           file lib/silcutil/silclog.c.
1894
1895         * Fixed the channel message payload decryption in the function
1896           silc_channel_message_payload_decrypt to not modify the original
1897           buffer before it is verified that the message decrypted
1898           correctly.  Otherwise, next time it is called with correct
1899           channel key it won't encrypt since the payload is corrupted.
1900           Affected file lib/silccore/silcchannel.c.
1901
1902 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1903
1904         * Do not constantly resize the window.  A fix patch by cras.
1905           Affected file irssi/src/fe-text/screen.c.
1906
1907 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1908
1909         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
1910           Affected file lib/silcutil/silcnet.c.
1911
1912 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1913
1914         * Fixed a bug in hash table internal routine for traversing
1915           the table with foreach callback.  The current entry may
1916           become invalid in the callback but it was referenced after
1917           the callback returned.
1918
1919           Do not allow auto rehashing of hash table during the
1920           silc_hash_table_foreach operation, for same reasons as it is
1921           not allowed for SilcHashTableList.  Affected files are
1922           lib/silcutil/silchashtable.[ch].
1923
1924 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1925
1926         * Defined DLLAPI into silcincludes.h and silcwin32.h for
1927           Win32 DLL.  extern's in header files are now declared with
1928           DLLAPI.
1929
1930 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1931
1932         * Fixed private message handling.  It used some old code that
1933           caused the client to crash.  Affecte file is
1934           lib/silcclient/client_prvmsg.c.
1935
1936 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1937
1938         * Added function silc_client_add_channel, 
1939           silc_client_replace_channel_id, and removed functions
1940           silc_client_new_channel_id and silc_idlist_get_channel_by_id
1941           from client library.
1942
1943         * Added cross reference of the joined channels to the 
1944           SilcClientEntry, and changed the SilcChannelEntry's
1945           users list to SilcHashTable.  The affected files are
1946           lib/silcclient/idlist.[ch].
1947
1948         * Fixed a bug in hash table tarversing.  While the hash table
1949           is traversed with SilcHashTableList the table must not be
1950           rehashed.  It is now guaranteed that auto rehashable tables
1951           are not rehashed while tarversing the list.  Also defined that
1952           silc_hash_table_rehash must not be called while tarversing
1953           the table.  Added function silc_hash_table_list_reset that must
1954           be called after the tarversing is over.  The affected files are
1955           lib/silcutil/silchashtable.[ch].
1956
1957         * Changed all hash table traversing to call the new
1958           silc_hash_table_list_reset in server and in client library.
1959
1960         * Added function silc_client_on_channel to return the 
1961           SilcChannelUser entry if the specified client entry is joined
1962           on the specified channel.  This is exported to application as
1963           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
1964
1965 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1966
1967         * Fixed founder regaining problem with JOIN command on normal
1968           server.  The notify for mode change must be sent always and
1969           not only if !cmd->pending.  Affected file silcd/command.c.
1970
1971         * Fixed the WHOWAS command's reply sending to support the
1972           lists correctly.  Affected file silcd/command.c.
1973
1974 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1975
1976         * When sending JOIN command to router for processing the
1977           sender's old command identifier was not saved back to the
1978           sender's command context, fixed now.  The affected file is
1979           silcd/command.c.
1980
1981         * Create the key in JOIN command of the router did not return
1982           the channel key, added check for this.  Affected file is
1983           silcd/command.c.
1984
1985         * Fixed a channel ID update bug in JOIN command reply.  Do
1986           not directly upgrade the ID but call the function
1987           silc_idlist_replace_channel_id if the ID was changed.
1988           Affected file silcd/command_reply.c.
1989
1990         * Fixed memory leaks from command calling if it would fail.
1991           Affected file silcd/command.c.
1992
1993 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1994
1995         * Applied patches from cras:
1996
1997           Memory leak fixes around libaries, irssi window resize fix,
1998           new silclist.h and silcdlist.h, all extern inline changed to
1999           static inline.
2000
2001         * Removed dotconf from lib/dotconf, not needed anymore.
2002
2003         * Removed TRQ from lib/trq, not needed anymore.
2004
2005         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
2006           with server connections.  Later this will be configurable
2007           in config file after new config file is done.  Affected file
2008           silcd/server.c.
2009
2010 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2011
2012         * Fixed a crash in server related to channel announcements.
2013           Affected file silcd/server.c.
2014
2015 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2016
2017         * Fixed memory leaks in silc_server_create_new_channel*
2018           functions.  Affected file silcd/server.c.
2019
2020         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
2021           which ID was changed.  This way the router will send the
2022           user list for the channel again, and server won't be in 
2023           desync in some rare circumstances.  Affected file is
2024           silcd/packet_receive.c.
2025
2026 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2027
2028         * Check for NULL socket pointer in the function
2029           silc_server_packet_send_to_channel_real.  Affected file
2030           silcd/packet_send.c.
2031
2032         * Fixed the BAN notify handling to correctly remove ban
2033           list.  Affected file silcd/packet_receive.c.
2034
2035 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2036
2037         * Fixed some header addition to Toolkit distribution in
2038           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
2039
2040         * Added lib/silcclient/client_ops_example.h as an template
2041           file for application programmers to quickly start using
2042           the SilcClientOperation functions in their application.
2043           Updated the lib/silcclient/README as well to tell about this
2044           nice file made available.
2045
2046 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2047
2048         * Call silc_server_remove_from_channels when removing client
2049           entry when NO_SUCH_CLIENT_ID was received.  Affected file
2050           is silcd/command_reply.c.
2051
2052 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2053
2054         * Added server & router operator statistics updating.  Affected
2055           file silcd/packet_receive.c and silcd/command.c.
2056
2057         * Fixed the SERVER_SIGNOFF notify handling on normal server
2058           not to save the history information for clients.  Same was
2059           fixed earlier in remove_clients_by_server function, but not
2060           here.  Affected file silcd/packet_receive.c.
2061
2062         * Raised the default connection-retry count from 4 to 7 in
2063           server.  Affected file silcd/server.h.
2064
2065         * Cancel any possible reconnect timeouts when we start the
2066           key exchange.  Affected file silcd/server.c.
2067
2068         * Do not reconnect on connection failure when SCONNECT was
2069           given.  Affected files silcd/server.[ch].
2070
2071 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2072
2073         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
2074
2075         * Fixed the NICK command to always give the unformatted
2076           nickname to the one giving the NICK command.  If unformatted
2077           nickname is cached already it will be formatted and the
2078           local entry will always get the unformatted nickname.
2079           Affected file lib/silcclient/idlist.c.
2080
2081         * Fixed some double frees from client library commands.
2082           Affected file is lib/silcclient/command.c.
2083
2084         * Fixed CUMODE command in server to assure that no one can
2085           change founder's mode than the founder itself, there was a
2086           little bug.  Affected file silcd/command.c.
2087
2088 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2089
2090         * Removed the SilcClientCommandDestructor from the client
2091           libary, it is not needed anymore.  Affected files are
2092           lib/silcclient/silcapi.h, command[_reply].[ch],
2093           client_notify, idlist.c.
2094
2095         * Fixed GETKEY command to first resolve client, and then
2096           resolve the server only if the client was not found, instead
2097           of resolving both at the same time.  Affected file is
2098           lib/silcclient/command.c.
2099
2100         * Added silc_client_start_key_exchange_cb and lookup the
2101           remote hostname and IP address before starting the key
2102           exchange with server.  The affected file is 
2103           lib/silcclient/client.c.
2104
2105         * The server's public key is now saved using the IP address
2106           of the server and not the servername for the filename.
2107           The hostname public key filename is checked as an fall back
2108           method if the IP address based filename is not found.
2109
2110           Fixed the GETKEY command to save the fetched server key
2111           in correct filename.
2112
2113           Print the remote server's hostname now when new key is
2114           received during connection process.  Affected file is
2115           irssi/src/silc/core/client_ops.c.
2116
2117         * Return always our own public key to the client if it asks
2118           for it with GETKEY command.  Affected file silcd/command.c.
2119
2120         * Removed the use_auto_addr variable from default config
2121           file since it was in wrong section.  Affected file is
2122           irssi/src/config.
2123
2124         * Fixed TOPIC_CHANGE notification to not route it when it
2125           was sent using silc_server_send_notify_to_channel function.
2126           Affected file silcd/command.c.
2127
2128         * Fixed silc_server_send_notify_kicked to send the kicker's
2129           Client ID also, it was missing.  Affected files are
2130           silcd/command.c, silcd/packet_send.[ch].
2131
2132 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2133
2134         * Do not save client history information in SERVER_SIGNOFF.
2135           Fixes the bug in normal server that it does not detect
2136           the client becoming valid after the server becomes back
2137           online.  Affected file silcd/server_util.c.
2138
2139         * Added `sock_error' field  into the SilcSocketConnection
2140           context.  When error occurs during socket operation (read
2141           or write) the error is saved.  Added also new function
2142           silc_socket_get_error to return human readable socket error
2143           message.  Affected files are lib/silcutil/silcsockconn.[ch], 
2144           lib/silcutil/unix/silcunixsockconn.c, and
2145           lib/silcutil/win32/silcwin32sockconn.c.
2146
2147         * The server now prints the socket error message in the
2148           signoff for client.  Affected file silcd/server.c.
2149
2150         * Fixed the `created' channel information sending from router
2151           to server in JOIN command.  Checks now whether the channel
2152           really was created or not and set it according that. 
2153
2154           Fixed the JOIN command to use the client entry's current
2155           ID during the joining procedure instead of the one it sent
2156           in the command (it is checked though), since it can change
2157           between the packet processing and command processing, and 
2158           would just case unnecessary pain in the client end.  Affected
2159           file silcd/command.c.
2160
2161         * Fixed a channel key payload sending to use correct channel
2162           ID when the server was forced to change the channel's ID by
2163           router.  Router sent the key payload with the old Channel ID.
2164           Affected file silcd/packet_receive.c.
2165
2166 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2167
2168         * Call silc_server_save_channel_key only if the key payload
2169           was provided in the JOIN command's command reply.  Affected
2170           file silcd/command_reply.c.
2171
2172 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2173
2174         * Fixed silc_mp_sizeinbase to return the value correctly with
2175           MPI.  Affected file lib/silcmath/mp_mpi.c.
2176
2177         * Fixed the stop_server signal to correctly stop the scheduler
2178           and gracefully stop the server when SIGTERM or SIGINT signals
2179           are received.  Affected file silcd/silcd.c.
2180
2181 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2182
2183         * Simple handling of TERM and HUP signals. Also added some log
2184           flushing call around.  Affected file is
2185           silcd/silcd.c.
2186
2187         * Fixed small bugs in silclog.c. Now buffering output will take
2188           effect after 10 seconds since startup: This will ensure that
2189           no important startup messages are lost. Also output redirection
2190           will preserve original format ([Date] [Type] message).
2191           Affected file is lib/silcutil/silclog.c.
2192
2193         * Added two options to the config file, in the logging section:
2194           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
2195           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
2196
2197 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2198
2199         * Do not print the warning about log files not being initialized
2200           more than once to avoid excess logging.  Affected file is
2201           lib/silcutil/silclog.c.
2202
2203         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
2204           the SIM copying in make install in Makefile.am.pre.
2205
2206 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
2207
2208         * Rewritten silclog APIs. Globally interesting changes follows:
2209           silc_log_set_files() changed to silc_log_set_file().
2210           silc_log_set_callbacks() changed to silc_log_set_callback().
2211           ROBOdoc documented silclog header file.
2212           SilcLogCb now returns bool to wether inihibit the default
2213           handler or not (to keep the old behaviour return always TRUE).
2214           The new APIs should also fix the problem of the
2215           silcd_error.log file that was written in the current directory.
2216
2217           New features:
2218           Log files streams will remain opened after silc_log_set_file()
2219           call, means less CPU usage notably on high traffic servers.
2220           File streams are now full buffered, and flushed to the disk
2221           every 5 minutes, lesses HD activity and CPU usage.
2222           Messages can be redirected, allowing admins to configure
2223           one single logfile for all server messages.
2224           the silc_log_quick global variable to activate fast-logging.
2225           Affected files lib/silcutil/silclog.[ch]
2226
2227         * Changed some code to conform new silclog APIs. Affected
2228           files are doc/example_silcd.conf.in, silcd/server.c
2229           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
2230           silcd/silcd.c.
2231
2232         * Fixed a memory leak that could occur in some situations.
2233           Affected file silcd/serverconfig.c.
2234
2235 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2236
2237         * Added the silc_client_del_client to remove the client from
2238           all channels as well.  Affected file lib/silcclient/idlist.c.
2239
2240         * Fixed the client library to correctly remove the client
2241           from all channels when the client entry is being destroyed.
2242           Affected file lib/silcclient/client_notify.c, command.c.
2243
2244         * Added auto-nicking support to the client library.  If the
2245           applicatio now sets client->nickname it will be sent to the
2246           server after connecting by the library.  This way for example
2247           SILCNICK (or IRCNICK) environment variables will have effect
2248           and always change the nickname automatically to whatever
2249           it is wanted.  Affected file lib/silcclient/client.[ch].
2250
2251         * Renamed silc_server_command_bad_chars to the
2252           silc_server_name_bad_chars and moved it to the
2253           silcd/server_util.[ch].  Added also new function
2254           silc_server_name_modify_bad to return nickname that
2255           includes bad characters as new nickname without those
2256           bad characters.  This check and modify is now used in
2257           silc_server_new_client when the username is initially set
2258           as nickname, so it must be checked to be valid nickname.
2259           Affected file silcd/packet_receive.c.
2260
2261         * The nickname length is now taken from the packet for real
2262           and not trusted to strlen() since it clearly can return
2263           wrong length for nickname including bad characters.  This
2264           also applies to channel names.  Affected file silcd/command.c.
2265
2266         * Removed the lib/silcsilm/modules directory.  Modules are now
2267           compiled into the lib/silcsim.  Fixed the copying of the
2268           modules to follow symbolic links in Makefile.am.pre.
2269
2270 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2271
2272         * Fixed silc_string_regexify list creation.  Fixes bugs with
2273           BAN and INVITE commands in server.  The affected file is
2274           lib/silcutil/unix/silcunixutil.c.
2275
2276 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2277
2278         * Removed the command destructor entirely from the server's
2279           command and command reply routines.  It is not needed, and
2280           its usage was buggy and caused crashes.  Affected files are
2281           silcd/command[_reply].[ch].
2282
2283 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2284
2285         * Cancel protocol and NULL sock->protocol if timeout
2286           occurred during protocol.  Affected file silcd/server.c.
2287
2288         * Cancel protocol timeouts always before calling the final
2289           callback, to assure that after final callback is called
2290           no other state will be called for the protocol anymore.
2291           Affected file silcd/protocol.c.
2292
2293         * Print error log if incoming connection configuration could
2294           not be found.  Affected file silcd/server.c.
2295
2296         * Fixed JOIN command to correctly save the founder mode
2297           to the client on normal SILC server, when the channel
2298           was created by the router.  Affected file silcd/command.c.
2299
2300         * Fixed LIST command (hopefully) to send correct reply
2301           packets.  Affected file silcd/command.c.
2302
2303 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
2304
2305         * The silc_packet_receive_process now returns FALSE if the
2306           read data was invalid packet, and TRUE if it was ok.
2307
2308           The server now checks that if unauthenticated connection
2309           sends data and its processing fails the server will close
2310           the connection since it could be a malicious flooder. 
2311
2312           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
2313
2314 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2315
2316         * Make sure the warning about error opening a log file is
2317           printed only once and not everytime it fails (produces
2318           too much useless log).  Affected file lib/silcutil/silclog.c.
2319
2320 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
2321  
2322         * Made the silc_server_daemonise() function more readable.
2323           Affected file silcd/server.c.
2324  
2325         * Pid file is now optional, the user may comment it out from
2326           the config file. Removed define SILC_SERVER_PID_FILE, we
2327           don't need a default any longer.  Affected file
2328           configure.in.pre, lib/Makefile.am.pre.
2329  
2330         * Make some use of the pid file. The server now dies at startup
2331           if it detects a valid pid file on his path. The server would
2332           die anyway in this circumstance, because of the bind() failure.
2333           Affected file silcd/silcd.c.
2334  
2335         * No longer compiling lib/dotconf.
2336
2337 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2338
2339         * Fixed JOIN command parsing not to crash.  Affected file
2340           lib/silcclient/command.c.
2341
2342         * Fied the NICK_CHANGE notify to add the new client entry
2343           even it is resolved.  This removes an <[unknown]> nick
2344           thingy bug in the client.  Affected file is 
2345           lib/silcclient/client_notify.c.
2346
2347         * Do not try to allocate 0 bytes (efence does not like it)
2348           in lib/silccore/silccomand.c when encoding payload.
2349
2350         * Do not take IRCNICK as nickname in Irssi SILC client since
2351           it is not possible to set nickname before hand connecting
2352           the server (TODO has an entry about adding auto-nicking
2353           support).
2354
2355         * Changed the silc_server_command_pending to check whether
2356           there already exists an pending entry with the specified
2357           command, command identifier and pending callback.  This is
2358           to fix IDENTIFY and WHOIS related crashes that may register
2359           multiple pending commands with same identifier.  Affected
2360           file silcd/command.c.
2361
2362         * Fixed the server to reconnect to the router even if it
2363           was already reconnecting and EOF was received.  This to
2364           fix a possibility that the server wouldn't ever try to
2365           auto-reconnect to the router.  Affected file silcd/server.c.
2366
2367 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2368
2369         * Fixed the server's password authentication to use the
2370           length of the locally saved password, and not the one
2371           sent in the packet.  Affected file silcd/protocol.c.
2372
2373         * Fixed same password authentication problem in the
2374           Authentication Payload handling routines in
2375           lib/silccore/silcauth.c.
2376
2377         * Yet another password authentication problem fixed with
2378           channel password handling in silcd/command.c.
2379
2380 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2381
2382         * If first character of string in silc_parse_userfqdn is '@'
2383           then do not parse it.  Affected file is
2384           lib/silcutil/silcutil.c.
2385
2386 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2387
2388         * Fixed minor bug in IDENTIFY command reply sending, which
2389           caused various weird problems during JOIN when it was
2390           resolving names for users.  Affected file silcd/command.c.
2391
2392 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2393
2394         * Fixed the IDENTIFY command reply sending to chech better valid
2395           clients.  It was possible to send incomplete list of replies.
2396           Affected file silcd/command.c.
2397
2398 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2399
2400         * Added silc_client_command[s]_[un]register functions now to
2401           dynamically register the commands in client library.  Removed
2402           the static table of commands.  This allows the client library
2403           to call commands without causing the application to know about
2404           what commands library has called.
2405
2406           Removed the INFO command reply kludge to detect when the command
2407           was called by library.  Now library use its own command reply
2408           function for INFO command.
2409
2410           Added function silc_client_command_call to call a command.
2411           Application can use it to call command, not access the structure
2412           directly.
2413
2414           Now all commands that are sent by the client library (not
2415           explicitly sent by application) use own command reply functions.
2416
2417           Affected files around lib/silcclient/ and in
2418           irssi/src/silc/core/.
2419
2420         * Fixed the WHOIS command reply sending to chech better valid
2421           clients.  It was possible to send incomplete list of replies.
2422
2423           Fixed the WHOIS and IDENTIFY to send the request to router
2424           if normal server did not do it and did not find any results.
2425
2426           Affected file silcd/command.c.
2427
2428 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2429
2430         * Moved the internal data from SilcClient context into its
2431           own file, not accesible to application.  Affected files
2432           lib/silcclient/client.h and lib/silcclient/client_internal.h,
2433           and other files in client library.
2434
2435 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2436
2437         * Added doc/examples installation target in Makefile.am.pre.
2438           A patch by salo.
2439
2440 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2441
2442         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
2443           commands the found client entry will be removed from the
2444           cache, after notifying application about the error.  Affected
2445           file lib/silcclient/command_reply.c.
2446
2447         * Changed the /MSG to check for exact nickname user gave, and
2448           not let `nick' match `nick@host' if it is only one found.  Now,
2449           user must type the exact nickname (like nick@host2) even if
2450           there are no more than one same nicks found.  This is to avoid
2451           a possibility of sending nickname to wrong nickname since
2452           `nick' could match `nick@host'.  Affected file is
2453           irssi/src/core/silc-servers.c.
2454
2455 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2456
2457         * Do not print "you are now server operator" or similar when
2458           giving /away command.  Affected files are
2459           irssi/src/silc/core/client_ops.c, silc-servers.h.
2460
2461         * Made the silc_server_command_pending_error_check to send
2462           the same command reply payload it received back to the
2463           original sender of the command.  This way all arguments
2464           that was received by the server will be received by the
2465           client too.  Affected file silcd/command.c.
2466
2467         * Added the silc_idcache_add to return the created cache entry
2468           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
2469
2470         * Add global clients to expire if they are not on any channel.
2471           This is because normal server will never know if they signoff
2472           if they are not on any channel.  The cache expiry will take
2473           case of these entries.  This is done by normal servers only.
2474           The affected files are silcd/command_reply.c,
2475           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
2476
2477         * If server receives invalid ID notification for WHOIS or
2478           IDENTIFY and the ID exists in the lists, it is removed.
2479           Affected file silcd/command_reply.c.
2480
2481         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
2482           in client then client entry that it matches is searched and
2483           the nickname is printed on the screen for user.  Affected
2484           file irssi/src/silc/core/client_ops.c.
2485
2486 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2487
2488         * Use cache entry expire time in the LIST command reply to
2489           purge old entries from the cache after the LIST command
2490           reply has been received.  This way we don't have non-existent
2491           entries in the cache for too long.  Affected file is
2492           silcd/command_reply.c.
2493
2494 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2495
2496         * If we are normal server, and we've not resolved client info
2497           in WHOIS or IDENTIFY from router, and it is global client,
2498           we'll check whether it is on some channel.  If it is not
2499           then we cannot be sure about its validity and will resolve it
2500           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected 
2501           file silcd/command.c.
2502
2503         * Search channel by name (if possible) rather than by ID
2504           in IDENTIFY command's command reply.  Affected file is
2505           silcd/command_reply.c.
2506
2507 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2508
2509         * Distribute to the channel passphrase in CMODE_CHANGE notify.
2510           Updated specs and implemented it.  Affected file silcd/command.c,
2511           silcd/packet_send.c and silcd/packet_receive.c.
2512
2513         * Implemented the <founder auth> payload handling in the JOIN
2514           command.  If provided all conditions for channel joining
2515           except requirement to provide correct passphrase can be 
2516           overrided by the channel founder.  Updated the protocol specs.
2517           Affected file silcd/command.c.
2518
2519           Added support for founder auth in JOIN command in client
2520           library.  Fixed the parsing of the JOIN command now to support
2521           all options as they should be.  The affected file is
2522           lib/silcclient/command.c.
2523
2524         * Optimized the WHOIS and IDENTIFY commands to send the request
2525           to router only if it includes nicknames or other names.  If
2526           they include only IDs then check the local cache first before
2527           routing.  Affected file is silcd/command.c.
2528
2529         * Added channels topic announcements.  Affected file is
2530           silcd/packet_receive.c and silcd/server.c.
2531
2532         * Fixed the silc_server_send_notify_topic_set to really destine
2533           the packet to channel.  Affected file silcd/packet_send.c.
2534
2535         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
2536           library.  Affected file lib/silcclient/client_notify.c.
2537
2538         * Added UMODE announcements.  Affected file silcd/server.c.
2539
2540 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2541
2542         * Memory leak fixes in:
2543
2544           lib/silcutil/silcsockconn.c
2545           lib/silcske/silcske.c
2546           lib/silcske/groups.c
2547           lib/silccrypt/rsa.c
2548           lib/silccrypt/silcpkcs.c
2549           lib/silccore/silccommand.c
2550           lib/silccore/silcidcache.c
2551           silcd/idlist.c
2552           silcd/packet_send.c
2553           silcd/command.c
2554
2555         * ROBOdoc documented the lib/silcske/groups.h file and a
2556           bit changed the interface for better.
2557
2558 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
2559
2560         * Update the client entry context in the ID cache after
2561           nick change.  Affected file lib/silcclient/command.c.
2562           Fixes the CUMODE command when regaining founder privileges,
2563           and a little WHOIS problem.
2564
2565         * Fixed silc_net_gethostbyname to correctly call the
2566           inet_ntop.  Affected file lib/silcutil/silcnet.c.
2567
2568 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
2569
2570         * Added IPv6 support checking to the configure.in.pre, added
2571           also --enable-ipv6 option to override the check.  Affected
2572           file configure.in.pre.
2573
2574         * The silc_thread_create now calls the start function
2575           directly if threads support is not compiled in.  Removes
2576           ugly #ifdef's from generic code.  Affected files are
2577           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
2578
2579         * Added silc_net_gethostby[name/addr]_async to asynchronously
2580           resolve.  Affected files are lib/silcutil/silcnet.[ch].
2581
2582         * Added support for rendering IPv6 based server, client and
2583           channel IDs.  Affected file lib/silcutil/silcutil.c.
2584
2585         * Added support for creating IPv6 based server IDs.  Affected
2586           file is silcd/serverid.c.
2587
2588 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
2589
2590         * Added silc_net_gethostby[addr/name] into the
2591           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
2592           routines.  Added silc_net_is_ip[4/6].  Affected file is
2593           lib/silcutil/unix/silcunixnet.c.  All routines that take
2594           address as argument now supports both IPv4 and IPv6 addresses.
2595
2596 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
2597
2598         * Fixed LIST command reply sending in server.  Affected file
2599           silcd/command.c.
2600
2601         * Server now sends the kicker's client ID in the KICK notify
2602           to the kicked client.  Affected file silcd/command.c.
2603
2604         * The client library now parses the kickers client ID and
2605           UI displays it.  Affected files lib/silcclient/client_notify.c
2606           and irssi/src/silc/core/silc-channels.c, module-formats.c.
2607
2608         * Made all payload parsing function prototypes consistent.
2609           They all take now const unsigned char * and uint32 pair as
2610           the payload data instead of SilcBuffer.  Changes all around
2611           the source tree.  Other unsigned char* -> const unsigned char*
2612           changes around the tree as well.
2613
2614         * Optimized SFTP client and server packet sending not to
2615           allocate new buffer for each packet but to recycle the
2616           first allocated buffer.  Affected files are
2617           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
2618
2619         * Optimized the SFTP client to use SilcList instead of
2620           SilcDList for requests, because it is faster.  Affected file
2621           is lib/silcsftp/sftp_client.c.
2622
2623         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
2624           into lib/silccore/silcid.[ch].
2625
2626           Renamed silcpayload.[ch] into silcargument.[ch].
2627
2628 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
2629
2630         * If client entry is deleted with active key agreement
2631           session, abort the session.
2632
2633           The silc_client_abort_key_agreement now calls the completion
2634           callback with new SILC_KEY_AGREEMENT_ABORTED status.
2635
2636           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
2637           idlist.c.
2638
2639 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2640
2641         * Don't use __restrict in older GCC's.  Affected file is
2642           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
2643
2644         * silc_net_localhost now attempts to reverse lookup the
2645           IP/hostname.  Affected file lib/silcutil/silcnet.c.
2646
2647         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
2648           command.  It can be used to gain founder privileges at 
2649           the same time when joining the channel.
2650
2651           Defined that the SILC_NOTIFY_TYPE_KICKED send the 
2652           kicker's client ID as well.  Updated protocol specs.
2653
2654           Defined that the server must send SILC_COMMAND_IDENTIFY
2655           command reply with error status to client who sent
2656           private message with invalid client ID.
2657
2658           Updated the protocol specification.
2659
2660         * Added silc_server_send_command_reply to send any
2661           command reply.  Affected file silcd/packet_send.[ch].
2662
2663         * Added silc_id_payload_encode_data to encode ID payload
2664           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
2665
2666         * The server now send IDENTIFY command reply with error
2667           status if client ID in private message is invalid.  Affected
2668           file silcd/packet_receive.c.
2669
2670         * Save the server key file with server's IP address in
2671           the filename instead of hostname.  The affected file is
2672           irssi/src/silc/core/client_ops.c.
2673
2674 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2675
2676         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
2677           A patch by Sunfall.
2678
2679         * Added libtool support for compiling shared objects in
2680           lib/silcsim.  Affected file configure.in.pre and
2681           lib/silcsim/Makefile.am.  Original patch by cras.
2682
2683 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2684
2685         * Pid file configuration, and server's config file fixes
2686           patch by toma.  Updated CREDITS file. 
2687
2688 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2689
2690         * Fixed silc_client_channel_message to not try to decrypt
2691           the message twice if it resolved the destination client
2692           information.  This could cause of dropping one channel
2693           message.  Affected file lib/silcclient/client_channel.c.
2694
2695 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2696
2697         * Added silc_client_run_one into lib/silcclient/silcapi.h and
2698           lib/silcclient/client.c. This function is used when the SILC
2699           Client is run under some other scheduler, or event loop or
2700           main loop.  On GUI applications, for example this may be
2701           desired to used to run the client under the GUI application's
2702           main loop.  Typically the GUI application would register an
2703           idle task that calls this function multiple times in a second
2704           to quickly process the SILC specific data.
2705
2706 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
2707
2708         * Fixed silc_server_drop() for dropping the supplementary
2709           groups as well, this could cause a security hole on some
2710           systems.
2711
2712 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2713
2714         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
2715           johnny.
2716
2717         * Write PID file after dropping privileges.  Added -F option
2718           to run server on foreground.  A patch by debolaz.
2719           Affected files silcd/server.c, silcd/silcd.c.
2720
2721         * Fixed MOTD to return the MOTD file server name.  Affected
2722           file silcd/command.c.
2723
2724         * Added INFO command reply handling to the Irssi SILC Client.
2725           Affected file irssi/src/silc/core/client_ops.c.
2726
2727 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2728
2729         * Fixed the silc_idcache_list_* routines to really support
2730           the dynamic list.  Fixes a crash.  Affected file is
2731           lib/silccore/silcidcache.c.
2732
2733         * Fixed the LIST command reply to really call LIST command's
2734           pending callbacks.  Affected file silcd/command_reply.c.
2735
2736 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2737
2738         * Update conn->local_entry->nickname after giving NICK
2739           command.  Affected file lib/silcclient/command.c.
2740
2741 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
2742
2743         * Added the [pid] option to the silcd configuration file
2744
2745           Affected files: serverconfig.[ch] and silcd.c
2746
2747 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2748
2749         * Save fingerprint in WHOIS command reply in server.
2750           Affected file silcd/command_reply.c.
2751
2752         * Fixed NICK commands pending callback registration.
2753           Affected file lib/silcclient/command.c.
2754
2755 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2756
2757         * Use ++server->cmd_ident when sending commands in server,
2758           instead of random number.  Affected file silcd/command.c.
2759
2760         * Fixed GETKEY command reply to call actually GETKEY pending
2761           command callbacks.  Affected file silcd/command_reply.c.
2762
2763         * A bit stricter check for nicknames.  Check for same nickname
2764           in NICK command also.  Affected file silcd/command.c.
2765
2766         * Do not call INFO command everytime client ID changes, only
2767           during first connecting.  Affected file lib/silcclient/client.c.
2768
2769         * Set the new nickname only after successful command reply for
2770           NICK command is returned by server.  Affected file
2771           lib/silcclient/command.c.
2772
2773         * Remove nicknames from nicklist during server_signoff notify.
2774           Should fix /NAMES bit more.  The affected file is
2775           irssi/src/silc/core/silc-channels.c.
2776
2777         * Added `fingerprint' field to the SilcIDListData in the 
2778           silcd/idlist.h to hold the fingerprint of the client's
2779           public key.
2780
2781           Send the fingerprint of the client's public key in WHOIS
2782           command reply.
2783
2784           Affected files silcd/command.c, and silcd/idlist.[ch].
2785
2786         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
2787           create fingerprint from given data.
2788
2789         * Show the fingerprint of the client's public key in WHOIS.
2790           Affected files irssi/src/module-formats.[ch] and
2791           irssi/src/silc/core/client_ops.c.
2792
2793         * Format the multiple same nicknames also during JOIN and
2794           NICK_CHANGE notifys.  Affected file is
2795           lib/silcclient/client_notify.c.
2796
2797         * Do not print error on screen for invalid private message
2798           payload since it can come if someone is sending private
2799           messages with wrong key.  Affected file
2800           lib/silccore/silcprivate.c.
2801
2802         * Fixed multiple concurrent /PING crash.  Affected file
2803           lib/silcclient/command.c.
2804
2805         * Changed the wrong ID encoding.  All IP addresses must be
2806           in MSB first order in encoded format.  They were encoded
2807           wrong and was in LSB format.  Affected files are
2808           silcd/serverid.c, lib/silcutil/silcutil.c.
2809
2810         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
2811
2812         * Call the `connect' client operation through the scheduler
2813           in case of error.  Affected file lib/silcclient/client.c.
2814
2815         * Call the `failure' client operation even if the error
2816           occurred locally during a protocol.  Affected file is
2817           lib/silcclient/protocol.c.
2818
2819         * Added support of sending LIST command to router from normal
2820           server.  This way normal server can get list of all channels
2821           in the network too.  Fixed the channel list sending in the
2822           server too.  Affected files are silcd/command.c, and
2823           silcd/command_reply.[ch].
2824
2825         * Added silc_server_update_channels_by_server and
2826           silc_server_remove_channels_by_server.  They are used during
2827           disconnection of primary router and in backup router protocol.
2828           Affected file silcd/server_util.[ch], silcd/server.c and
2829           silcd/server_backup.c.
2830
2831         * Fixed channel adding to global list in IDENTIFY command
2832           reply in server.  Affected file silcd/command_reply.c.
2833
2834 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2835
2836         * If the incoming packet type is REKEY or REKEY_DONE process
2837           that packet always synchronously.  Fixes yet another MAC
2838           failed error on slow (dialup) connections.  Affected file
2839           lib/silcclient/client.c and silcd/server.c.
2840
2841 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2842
2843         * Call check_version SKE callback for initiator too.  Affected
2844           file lib/silcske/silcske.c.
2845
2846         * Implemented fix for security hole found in the SKE that was
2847           fixed in the specification few days back; the initiator's
2848           public key is now added to the HASH value computation.
2849           Added backwards support for the old way of doing it too, for
2850           old clients and old servers.  Affected file is
2851           lib/silcske/silcske.c.
2852
2853         * Enabled mutual authentication by default in SKE.  If initiator
2854           is not providing mutual authentication the responder will
2855           force it.  This will provide the proof of posession of the
2856           private key for responder.  The affected files are
2857           lib/silcclient/protocol.c and silcd/protocol.c.
2858
2859         * Do not cache anymore the server's public key during SKE.
2860           We do mutual authentication so the proof of posession of
2861           private key is done, and if the server is authenticated in
2862           conn auth protocol with public key we must have the public
2863           key already.  Affected file silcd/protocol.c.
2864
2865         * Added new global debug variable: silc_debug_hexdump.  If
2866           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
2867           file lib/silcutil/silclog.[ch].
2868
2869         * Fixed compilation warning due to char * -> const char *.
2870           Affected files lib/silcutil/silcnet.h, and
2871           lib/silccore/silcauth.[ch].
2872
2873 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2874
2875         * Fixed CMODE command when new channel key was created.  If
2876           the creation failed the old key was removed.  Next time giving
2877           same command would crash the server since the old key was
2878           freed already.  Affected file silcd/command.c.
2879
2880         * Fixed the silc_server_announce_get_channels to not crash
2881           on reconnect.  Affected file silcd/server.c.
2882
2883 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2884
2885         * Added silc_log_set_debug_string function to set a regex
2886           string to match for debug output.  Only the function names,
2887           or filenames matching the given debug string is actually
2888           printed.  This way it is possible to filter out those debug
2889           strings that user is not interested in.
2890
2891           Fixed a bug in silc_string_regexify.
2892
2893           Affected files lib/silcutil/silclog.[ch], and
2894           lib/silcutil/unix/silcunixutil.c.
2895
2896         * Changed the -d options in both server and Irssi SILC client
2897           to take the debug string as argument.  Affected files
2898           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
2899
2900 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2901
2902         * Added silc_hash_babbleprint to create a Bubble Babble
2903           Encoded fingerprint.  The encoding is developed by Antti
2904           Huima (draft-huima-babble-01.txt), and it creates human
2905           readable strings out of binary data.  Affected file
2906           lib/silccrypt/silchash.[ch].
2907
2908         * Print the babble print now in addition of fingerprint as well
2909           in Irssi SILC client.  Affected files are
2910           irssi/src/fe-common/silc/module-formats.[ch],
2911           irssi/src/fe-common/silc/core/client_ops.c.
2912
2913 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2914
2915         * Fixed a security problem found in SKE.  The initiator's
2916           public key too is now added to the HASH hash value creation
2917           which is signed by the responder to create the SIGN value.
2918           This will prevent anyone in the middle to lie to the responder
2919           about the initiator's public key.  If this is done now, the
2920           man in the middle will get caught.  Updated the protocol
2921           specification.
2922
2923 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2924
2925         * Better installation directory handling.  Configure module
2926           paths and other paths automatically to example_silc* files
2927           in doc/.  A patch by toma.
2928
2929         * Fixed compiler warning from MPI library, and from SILC RNG.
2930           A patch by johnny.
2931
2932         * Added SILC_SERVER_PID_FILE to define the pid file for server.
2933           It can be configured with ./configure.  A patch by toma.
2934
2935 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2936
2937         * Find correct make to use in prepare-clean.  A patch by
2938           toma.  Affected file prepare-clean.
2939
2940 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
2941
2942         * Added irssi variables use_auto_addr, auto_bind_ip,
2943           auto_bind_port and auto_public_ip.
2944
2945         * Changed the interface for silc_client_send_key_agreement
2946           in lib/silcclient/silcapi.h
2947
2948         Affected files:
2949
2950          irssi/src/silc/core/silc-core.c
2951          irssi/config
2952          lib/silcclient/silcapi.h
2953          irssi/src/silc/core/silc-channels.c
2954          lib/silcclient/client_keyagr.c
2955          irssi/docs/help/key
2956
2957 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
2958
2959         * Added silc_pkcs_public_key_compare to compare two 
2960           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
2961
2962         * Check that the client who set the founder mode on the
2963           channel is the same client that is giving the founder
2964           mode to itself.  It is done by comparing the saved public
2965           key (it is saved even in the authentication is passphrase).
2966           Affected file silcd/command.c.
2967
2968 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
2969
2970         * Do not process packet for disconnected socket connection.
2971           Affected file lib/silccore/silcpacket.c.
2972
2973         * Process the DISCONNECT packet through scheduler in the
2974           client library.  Affected file lib/silcclient/client.c.
2975
2976         * Fixed the silc_client_packet_parse to not to increase
2977           the packet sequence number if the conn->sock and the 
2978           current socket connection is not same.  This can happen
2979           for example during key agreement when the conn includes
2980           multiple socket connections (listeners).  Affected file
2981           lib/silcclient/client.c.
2982
2983         * The sender of the file transfer request now provides also
2984           the pointer (listener) for the key exchange protocol.  If
2985           the listener cannot be created then it sends empty key
2986           agreement and lets the receiver provide the listener.
2987
2988           Added `local_ip' and `local_port' arguments to the
2989           silc_client_file_send.  If they are provided they are used,
2990           if not then it will attempt to find local IP address, if
2991           not found or bind fails then the remote client will provide
2992           the listener.
2993
2994           Affected files are lib/silcclient/client_ftp.c and
2995           lib/silcclient/silcapi.h.
2996
2997         * Extended the FILE SEND command to support defining the
2998           local IP and port for key exchange listener.  They are
2999           optional.  Affected file irssi/src/silc/core/silc-servers.c.
3000
3001 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
3002
3003         * Defined to WHOIS command reply the sending of fingerprint
3004           of the client's public key (if the proof of posession of the
3005           corresponding private key is verified by the server).
3006           Updated to the protocol specification.
3007
3008         * Added support of receiving the client's public key's 
3009           fingerprint in command reply in client library.  Affected
3010           file is lib/silcclient/command_reply.c, and
3011           lib/silcclient/idlist.[ch].
3012
3013 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
3014
3015         * Do not send over 128 chars long nickname to the server
3016           in NICK command.  Affected file lib/silcclient/command.c.
3017
3018         * Do not send over 256 chars long channel names to the server
3019           in JOIN command.  Affected file lib/silcclient/command.c.
3020
3021 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
3022
3023         * Assure that silc_server_close_connection cannot be called
3024           twice for same socket context.  Affected file is
3025           silcd/server.c.
3026
3027 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
3028
3029         * Send error message to application if opening file for
3030           writing during file transfer fails.  Affected file is
3031           lib/silcclient/client_ftp.c.
3032
3033           Remove all file transfer sessions for a client that we're
3034           removing from ID cache.
3035
3036           Affected file is lib/silcclient/client_ftp.c.
3037
3038         * Fixed silc_net_addr2bin to return correct address.  Affected
3039           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
3040
3041         * Fixed file transfer session removing on signoff notify.
3042           Affected file irssi/src/silc/core/silc-servers.c.
3043
3044         * Added the SilcClientFileError to be returned in the monitor
3045           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
3046           Affected file lib/silcclient/silcapi.h.
3047
3048 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
3049
3050         * Fixed a crash in silc_client_ftp_free_sessions and
3051           silc_client_ftp_session_free_client.  Affected file
3052           lib/silcclient/client_ftp.c.
3053
3054         * Added `disabled' field in the SilcChannelEntry in the server
3055           to indicate if the server entry is disabled.  Affected file
3056           silcd/idlist.h, silcd/command[_reply].c.
3057
3058         * SILC server adds now /var/run/silcd.pid everytime it is
3059           started.  Affected file silcd/silcd.c.
3060
3061         * Added silc_server_packet_send_clients to send a packet to
3062           the provided table of client entries.  Affected file
3063           silcd/packet_send.[ch].
3064
3065         * Fixed a crash in client resolving in client_prvmsg.c in 
3066           client library.  Affected file lib/silcclient/client_prvmsg.c.
3067
3068         * Do not actually remove the client directly from ID cache
3069           during SERVER_SIGNOFF, but invalidate it.  This way we
3070           preserve the WHOWAS info for the client.  Affected file
3071           silcd/server_util.c.
3072
3073         * Fixed SERVER_SIGNOFF notify handling in the server.  The
3074           server is now able to process incoming SERVER_SIGNOFF notify
3075           for a server that it doesn't even know about.  It will remove
3076           the clients provided in the notify.  Affected file
3077           silcd/packet_receive.c.
3078
3079         * Check for partial packet in data queue after every packet that
3080           was found from the queue.  Return and wait for more data if 
3081           there is partial data in queue.  Affected file is
3082           lib/silccore/silcpacket.c.
3083
3084 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
3085
3086         * Added SilcClietFileError enum to indicate error in
3087           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
3088           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
3089           Affected files lib/silcclient/silcapi.h and
3090           lib/silcclient/client_ftp.c.
3091
3092         * Check that newsize in silc_buffer_realloc is larger than
3093           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
3094
3095         * Added better monitor of file transfers.  It now monitors
3096           key agreement protocol during the file transfer too.  Added
3097           error reporting too.  Affected files
3098           irssi/src/silc/core/silc-servers.c,
3099           irssi/src/fe-common/silc/module-formats.[ch].
3100
3101         * Wrote a help file for FILE command.
3102
3103         * Added silc_rng_global_get_byte_fast to get not-so-secure
3104           random data as fast as possible.  Random data is read from
3105           /dev/urandom if available and from the SILC RNG if not
3106           available.  It is used in padding generation.  Affected file
3107           lib/silccrypt/silcrng.[ch].
3108
3109         * All packets in client library are now processed synchronously.
3110           Optimized packet processing a lot.  Affected file
3111           lib/silcclient/client.c.
3112
3113         * All server connection packets are processing synchronously
3114           now in server, to optimize packet processing.  Affected file
3115           silcd/server.c.
3116
3117         * Include files are installed now only in Toolkit distribution
3118           if make install is given.  Affected files: all Makefile.am's.
3119
3120 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3121
3122         * Assure that silc_client_notify_by_server_resolve does not
3123           resolve the client information multiple times.  If it cannot
3124           be found by the first it cannot be found at all.  Affected
3125           file lib/silcclient/client_notify.c.
3126
3127         * Fixed WHOWAS command reply calling.  Affected file
3128           lib/silcclient/command_reply.c.
3129
3130         * Removed all references to silc_idlist_get_client from the
3131           Irssi SILC client since that call is internal call used by
3132           the library.  The Irssi SILC client will use now client
3133           retrieval functions found in silcapi.h.
3134
3135         * Fixed a bug in resolving nickname info before sending
3136           private message.  It used freed memory.  Affected file
3137           irssi/src/silc/core/silc-servers.c.
3138
3139 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3140
3141         * Assure my_channels statistics cannot go negative in server.
3142           Affected files silcd/server.c, silcd/server_util.c.
3143
3144 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3145
3146         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
3147
3148 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3149
3150         * Win32 Toolkit changes.  Affected files
3151           win32/silc.dsw, win32/libsilc/libsilc.def,
3152           win32/libsilcclient/libsilc.def,
3153           lib/silcutil/silcutil.c, and
3154           lib/sftp/sftp_fs_memory.c.
3155
3156 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3157
3158         * Added silc_net_localip to return local host's IP address.
3159           Affected file lib/silcutil/silcnet.[ch].
3160
3161         * If key exchange or rekey protocol is active for a connection
3162           parse all packets syncronously since there might be packets
3163           in packet queue that we are not able to process without first
3164           processing packets before them.  Affected file silcd/server,
3165           lib/silcclient/client.c.
3166
3167         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
3168           whether library should continue processing the packet. 
3169           Affected file lib/silccore/silcpacket.h.
3170
3171         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
3172           SilcSFTPMonitorData to SFTP server to monitor various
3173           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
3174           lib/silcsftp/sftp_server.c.
3175
3176         * Added silc_file_size to return file size.  Affected file
3177           lib/silcutil/silcutil.[ch].
3178
3179         * Implemented the file transfer support for the client library.
3180           Added preliminary support for simple client to client one-file
3181           transmission.  Affected file lib/silcclient/client_ftp.c,
3182           lib/silccilent/client.[ch].
3183
3184         * Added new local command FILE to the Irssi SILC Client.
3185           It is used to perform the file transfer.  It has subcommands
3186           SEND, RECEIVE, SHOW and CLOSE.  Affected files
3187           irssi/src/silc/core/client_ops.c, 
3188           irssi/src/silc/core/silc-server.[ch].
3189
3190 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3191
3192         * Relay the SILC_PACKET_FTP in the server.  Affected files
3193           silcd/server.c and silcd/packet_receive.c.
3194
3195 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3196
3197         * Renamed silc_file_read and silc_file_write to functions
3198           silc_file_readfile and silc_file_writefile.  Added function
3199           silc_file_open and silc_file_close.  Affected files 
3200           lib/silcutil/silcutil.[ch].
3201
3202 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3203
3204         * Resolve the client info when received private message or
3205           channel message for a client which nickname we don't know.
3206           Affected files lib/silcclient/client_prvmsg.c and
3207           lib/silcclient/client_channel.c.
3208
3209         * Do not crash in /KEY if client is not connected.  Affected
3210           file irssi/src/silc/core/silc-channels.c.
3211
3212         * Added SilcClientStatus field to the SilcClientEntry in the
3213           lib/silcclient/idlist.h.
3214
3215           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
3216           is incomplete and is being resolved, it won't be resolved
3217           twice.
3218
3219           Make sure also that USERS command reply does not resolve
3220           twice information.  Affected file is
3221           lib/silcclient/command_reply.c.
3222
3223           Make sure that silc_client_get_clients_by_list does not
3224           resolve twice same information.
3225
3226         * Check for valid client->id in the silc_server_free_client_data.
3227           Affected file silcd/server.c.
3228
3229         * Fixed /GETKEY nick@server not to crash if the server entry
3230           is not found.  Affected file lib/silcclient/command.c.
3231
3232         * Fixed the silc_server_check_cmode_rights to check the
3233           requested modes correctly.  Affected file silcd/command.c.
3234
3235 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
3236
3237         * Better checks for non-printable chars in nick added.
3238           Affected file silcd/command.c.
3239
3240 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3241
3242         * Call the silc_server_udpate_servers_by_server in the
3243           primary router that comes back online in the backup resuming
3244           protocol.  Otherwise it routes packets wrong.  Affected file
3245           silcd/server_util.[ch], silcd/server_backup.c.
3246
3247 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3248
3249         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
3250           lib/silcutil/silcbuffmt.[ch].
3251
3252         * Redefined the SILC packet header to include the padding
3253           length.  Affected file lib/silccore/silcpacket.[ch].
3254
3255         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
3256           length for maximum padding up to 128 bytes).  Affected
3257           file lib/silccore/silcpacket.h.
3258
3259         * Removed all backwards support for old 0.5.x MAC thingies.
3260           The SILC packet header change makes it impossible to be
3261           backwards compatible.
3262
3263         * Send the ENDING packet with timeout in the backup resuming
3264           protocol.  This is to assure that all routers has connected
3265           to the primary router.  Affected file silcd/server_backup.c.
3266
3267         * Changed the RNG to take the first IV from random data.  It
3268           used to take it from zero actually.  Changed the RNG also
3269           to use /dev/urandom during session.  /dev/random is used
3270           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
3271
3272 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3273
3274         * Changed the SILC packet header to have the first two bytes
3275           (the packet length) encrypted.  Affected files aroung the
3276           code tree, lib/silccore/silcpacket.[ch].  Removed the
3277           SilcPacketCheckDecrypt callback.  It is not needed anymore
3278           since the silc_packet_receive_process will determine now
3279           whether the packet is normal or special.
3280
3281         * Implemented the unidirectional MAC keys.  Affected files
3282           lib/silcske/silcske.c, silcd/protocol.c and
3283           lib/silcclient/protocol.c.
3284
3285         * Implemented the packet sequence number to the MAC computation.
3286           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
3287           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
3288           lib/silcclient/protocol.c.
3289
3290 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3291
3292         * Allow backup router to announce servers.  All servers
3293           announced by backup router are added to the global list
3294           automatically.  Update hte server's socket to our primary
3295           router also when backup router announces a server.
3296           Affected file silcd/packet_receive.c.
3297
3298         * Do not update the client->router in the function
3299           silc_server_udpate_clients_by_server if the client is on
3300           global list.  We might fail to find any specific server
3301           for locally connected clients and local cell clients.  They
3302           should still use the `from' and not `to' as client->router.
3303           This fixes backup router resuming protocol.  Affected file
3304           silcd/server_util.c.
3305
3306         * Decrease channel statistics count only if the channel
3307           deletion worked.  Affected files are silcd/server.c and
3308           silcd/server_util.c.
3309
3310         * Added silc_server_update_servers_by_server to update origin
3311           of all server entries.  Used during backup router protocol.
3312           Affected files silcd/server_util.[ch], silcd/server.c. and
3313           silcd/backup_router.c.
3314
3315         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
3316           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
3317           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
3318           lib/silccrypt/silchmac.c.
3319
3320 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3321
3322         * Assure that router cannot reroute the same channel message
3323           to the sender.  Affected file silcd/packet_receive.c.
3324
3325 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3326
3327         * Made better checks that the channel message is not sent
3328           to the router it came from.  Affected file is
3329           silcd/packet_send.c.  Fixed memory leak too.
3330
3331         * Announce informations for incoming router connection, but
3332           only after checking if it is replaced by backup router.
3333           Affected file silcd/packet_receive.c.
3334
3335 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3336
3337         * Fixed the backup resuming protocol to work in multiple
3338           router environment.  Affected file silcd/server_backup.c.
3339
3340         * Route packet only to one router in the function
3341           silc_server_packet_send_to_channel.  Affected file is
3342           silcd/packet_send.c.
3343
3344         * Fixed silc_server_send_notify_dest to set the broadcast
3345           flag.  Fixed the silc_server_send_notify_topic to actually
3346           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
3347           Affected file silcd/packet_send.c.
3348
3349         * Changed the SFTP Filesystem interface.  Changed the
3350           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
3351           the filesystem operation function.  The SilcSFTPFilesystem
3352           is now a context that is allocated by all filesystem allocation
3353           functions and it already includes the operations structure
3354           and filesystem specific context.  It is given as argument
3355           now to the silc_sftp_server_start.  This made the interface
3356           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
3357           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
3358
3359 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3360
3361         * Changed the backup router adding and getting interfaces
3362           in the server.  The router that will be replaced by the
3363           specified backup router is now sent as argument.  Affected
3364           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
3365           silcd/server.c.
3366
3367         * Added silc_net_addr2bin_ne to return the binary form of
3368           the IP address in network byte order.  Affected files
3369           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
3370
3371 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3372
3373         * Check for existing server ID in silc_server_new_server
3374           and in silc_server_connect_to_router_final and remove the
3375           old entry if it exists.  Affected file silcd/packet_receive.c,
3376           silcd/server.c.
3377
3378         * Send the channel message always to only one router, either
3379           in upstream or downstream.  Affected file is
3380           silcd/packet_send.c.
3381
3382 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3383
3384         * Wrote the definition of the backup resuming protocol to the
3385           protocol specification.
3386
3387         * Removed one redundant channel key generation from normal
3388           server during joining procedure.  Removed one redundant
3389           channel key sending from server to router during joining
3390           procedure.  Affected file silcd/command.c.
3391
3392         * Made minor bugfixes to the backup router resuming protocol.
3393           Affected file silcd/server_backup.c, server.c.
3394
3395 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3396
3397         * Added --disable-asm configuration option.  Affected files
3398           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
3399           by salo.
3400
3401         * Implemented the backup resuming protocol that is used to
3402           resume the primary router position in the cell after the
3403           primary router comes back online.  Affected files
3404           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
3405           and silcd/server_util.[ch].
3406
3407 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3408
3409         * Sleep two (2) seconds after sending QUIT command to server.
3410           Affected file lib/silcclient/command.c.
3411
3412         * Assure that if outgoing data buffer is pending do not force
3413           send any data.  Affected file silcd/packet_send.c.
3414
3415         * Assure that if outgoing data buffer is pending do not force
3416           send any data.  Affected file lib/silcclient/client.c.
3417
3418         * Implemented the backup router support when the primary router
3419           goes down.  The servers and routers can now use the backup
3420           router as new primary router without loosing connectivity.
3421
3422 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3423
3424         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
3425           in the server to indicate disabled entry.  All data read
3426           from the connection will be ignored and no data is sent
3427           for entry that is disabled.  Affected files are
3428           silcd/idlist.h, silcd/server.c.
3429
3430 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3431
3432         * Created SFTP client and server test programs in the
3433           lib/silcsftp/tests directory.
3434
3435 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
3436
3437         * Implemented memory filesystem (virtual filesystem) for
3438           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
3439           sftp_fs_memory.c.
3440
3441 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3442
3443         * Implemented the SFTP (SSH File Transfer Protocol) to the
3444           lib/silcsftp.  It includes SFTP client and SFTP server
3445           implementations.
3446
3447 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3448
3449         * Moved lib/silccore/silcprotocol.[ch] to the
3450           lib/silcutil library.
3451
3452         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
3453           take variable argument list pointer as argument.  Affected
3454           file lib/silcutil/silcbuffmt.[ch].
3455
3456         * Added silc_buffer_set function that is used to set data
3457           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
3458           Affected file lib/silcutil/silcbuffer.h.
3459
3460         * Changed various routines in the core library to use the new
3461           silc_buffer_set instead of allocating new buffer only for
3462           temporary purposes.
3463
3464         * Added 64-bit value formatting and unformatting support to the
3465           silc_buffer_[un]format routines.  Affected file is
3466           lib/silcutil/silcbuffmt.[ch].
3467
3468           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
3469           to includes/bitmove.h.
3470
3471 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3472
3473         * Fixed channel user mode saving in client library.  Affected
3474           file lib/silcclient/command[_reply].c.
3475
3476 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3477
3478         * Defined the file transfer to the SILC Protocol.  Added
3479           new packet type SILC_PACKET_FTP and defined File Transfer
3480           Payload.  The mandatory file transfer protocol is SFTP
3481           (SSH File Transfer Protocol).  Affected file in addition
3482           of the internet draft is lib/silccore/silcpacket.h.
3483
3484         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new 
3485           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
3486           is used as part of backup router protocol when the primary
3487           router of the cell is back online and wishes to resume
3488           the position as primary router.
3489
3490         * Redefined the MAC generation keys in the protocol.  The
3491           same key is not used anymore in both direction.  Both
3492           direction will now use different keys for sending and
3493           receiving.  This fixes a potential security flaw.  This
3494           change causes incompatibilities in the protocol.
3495
3496         * Redefined also the MAC computation from the packet.
3497           An packet sequence number is now added to the MAC 
3498           computation.  This prevents possible replay attacks against
3499           the protocol.  This change too causes incompatibilities
3500           in the protocol.
3501
3502           Added `sequence' field to the SilcPacketContext to hold
3503           the current sequence number for the packet.
3504
3505 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3506
3507         * Added `created' field to the SilcIDListData in the file
3508           silcd/idlist.h to indicate the time when the entry was
3509           created.
3510
3511         * Added `created' field to the SilcChannelEntry too.  Affected
3512           file silcd/idlist.h.
3513
3514         * Added `creation_time' aguments to all the announcement functions
3515           in the server.  If it is provided then only the entries that
3516           was created after the provided time frame are actually
3517           announced.  Affected file silcd/server.[ch].
3518
3519         * The protocol says that the Channel ID's IP address must be
3520           based on the router's IP address.  Added check for this in
3521           the silc_server_new_channel when processing incoming New Channel
3522           Payload.  Affected file silcd/packet_receive.c.
3523
3524         * Print out the correct version with --version in SILC client.
3525           Affected file irssi/src/silc/core/silc-core.c.
3526
3527 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3528
3529         * Fixed WHOWAS command to check for completnes of the client
3530           entry always, not just when the command is coming from client.
3531           Affected file silcd/command.c.
3532
3533         * Added new function silc_server_packet_queue_purge to purge the
3534           outgoing data queue to the network.  After the function returns
3535           it is guaranteed that the outgoing packet queue is empty.
3536           Affected file silcd/packet_send.[ch].
3537
3538         * Purge the outgoing packet queue in the rekey protocol's final
3539           callback to assure that all rekey packets go to the network
3540           before quitting the protocol.  Affected file silcd/server.c.
3541
3542         * Added silc_client_packet_queue_parse as similar function as
3543           in server to the client library.  The affected file is
3544           lib/silcclient/client.c.
3545
3546 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3547
3548         * Splitted silcd/server.c and created silcd/server_util.[ch]
3549           for utility functions.
3550
3551         * Added new socket flag SILC_SF_DISABLED to indicate that the
3552           connection is open but nothing can be sent to or received from
3553           the connection.  Affected file lib/silcutil/silsockconn.[ch].
3554           The checking for disabled socket is checked in the low level
3555           silc_socket_write and silc_socket_read functions.
3556
3557 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3558
3559         * Allow only nicknames and channel names that fits into the
3560           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
3561
3562 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3563
3564         * When processing JOIN command reply in server check that if
3565           the channel exists in our global list we'll move it the local
3566           list.  Affected file silcd/command_reply.c.
3567
3568         * Fixed the check whether client is joined on the channel already
3569           in JOIN command.  Affected file lib/silcclient/command.c.
3570
3571         * Fixed the JOIN command reply to check whether the channel
3572           already exists.  Affected file lib/silcclient/command_reply.c.
3573
3574 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3575
3576         * Added silc_ske_status_string to map the SKE error numbers
3577           to readable strings.  The affected files are
3578           lib/silcske/silcske[_status].[ch].
3579
3580 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3581
3582         * Do not show the private channels on the WHOIS channel list
3583           as it is not allowed by the protocol.  The affected file is
3584           silcd/server.c.
3585
3586 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3587
3588         * Assure that the packet length digged from the actual packet
3589           is something sensible in the silc_packet_decrypt_rest_special
3590           in lib/silccrypt/silcpacket.c.
3591
3592         * Free and NULL the allocated pointer in silc_hmac_alloc if
3593           the HMAC allocation fails.  The affected file is
3594           lib/silccrypt/silchmac.c.
3595
3596         * Print the selected security properties to the log files in
3597           the server.  Affected file silcd/protocol.c.
3598
3599         * Add SKE's reference counter even if calling the completion
3600           callback manually.  Otherwise it goes negative, although it
3601           does not cause any problems.  The affected file is
3602           lib/silcske/silcske.c.
3603
3604         * Remove the client entry with short timeout after giving the
3605           KILL command.  Affected file lib/silcclient/command.c.
3606
3607         * Fixed to send error reply in WHOIS and IDENTIFY commands in
3608           case all found clients are already disconnected (WHOWAS would
3609           found them) in the server.  Affected file silcd/command.c.
3610
3611         * Update the last_receive (time of last data received) to be 
3612           updated only when received private or channel message so that
3613           the idle time showed in WHOIS makes more sense.
3614
3615         * Added boolean field `valid' in to the SilcClientEntry in the
3616           client library to indicate whether the entry is valid or not.
3617           This fixes the nickname change bug on channel when changing
3618           the nickname to be same than the old (like nick to Nick) the
3619           nickname formatter doesn't set the new nick anymore to Nick@host.
3620           Affected file lib/silcclient/idlist.[ch].
3621
3622         * Now actually fixed the nickname changing on disconnection.
3623           Added new function silc_change_nick to the Irssi SILC Client.
3624           Affected file irssi/src/silc/core/client_ops.c,
3625           irssi/src/silc/core/silc-nicklist.[ch].
3626
3627 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3628
3629         * Check that the public key exists in the GETKEY command before
3630           trying to encode it.  Affected file silcd/command.c.
3631
3632         * Print some notifications on received public keys with GETKEY
3633           command in the Irssi SILC Client.  Affected files are
3634           irssi/src/fe-common/silc/module-formats.[ch],
3635           irssi/src/silc/core/client_ops.c.
3636
3637         * Use IDENTIFY command to resolve the server information in the
3638           GETKEY command instead of INFO command.  Affected file
3639           lib/silcclient/command.c.
3640
3641         * All command reply functions in the client library now calls
3642           the pending command reply callbacks even if an error has
3643           occurred.  The server has done this a long time and now it was
3644           time to move the client library to this as well.  Now all
3645           errors can be delivered back to the pending command reply
3646           callbacks if necessary.  Affected files are
3647           lib/silcclient/command[_reply].[ch].
3648
3649         * Change the nickname on disconnection back to the username
3650           because in reconnect the server will enforce it to it anyway.
3651           Affected file irssi/src/silc/core/silc-servers.c.
3652
3653         * Fixed a config file parsing bug in the Irssi SILC client.
3654           Affected file irssi/src/silc/core/clientconfig.c.
3655
3656 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3657
3658         * When printing the channel mode on JOIN, verify that the
3659           channel key and channel's HMAC are valid.  Affected file
3660           irssi/src/silc/core/client_ops.c.
3661
3662 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3663
3664         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
3665           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
3666           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
3667
3668         * Removed channel key rekey task deleting from the function
3669           silc_server_save_channel_key.  Affected file silcd/server.c.
3670           Added explicit timeout task context instead that is used to   
3671           delete the task if we are registering a new task before the
3672           new task has elapsed.
3673
3674         * When channel key rekey occurs the client library now saves
3675           the old channel key for a short period of time (10 seconds) and
3676           is able to use it in case some is still sending channel
3677           messages encrypted with the old key after the rekey.  Affected
3678           file lib/silcclient/[idlist.h|client_channel.c].
3679
3680 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3681
3682         * Added check to the silc_server_new_id_real to not accept
3683           new ID if it is the sender's own ID.  Affected file is
3684           silcd/packet_receive.c.
3685
3686         * Assure that we do not announce ourself or the one we've
3687           sending our announcements when we're router and are announcing
3688           servers to our primary router.  Affected file silcd/server.c.
3689
3690         * Fixed silc_server_command_identify_check_client to assemble
3691           correct WHOIS packet.  It send corrupted WHOIS packet and
3692           caused problem with router to router connections.  Affected
3693           file silcd/command.c.
3694
3695           Fixed also silc_server_command_whois_check the same way
3696           as for the IDENTIFY command.
3697
3698         * Added new SilcIDListStatus to the server in the SilcIDListData
3699           structure.   The status now includes the current status of
3700           the entry (like registered, resolved etc.).  Affected file
3701           silcd/idlist.[ch].  Defined a bunch of different status types
3702           as well.  This replaced the old boolean registered field as well.
3703
3704           Added resolve_cmd_ident field to the SilcClientEntry structure
3705           too so that if the entry is for example being resolved so 
3706           another command may attach to the same pending command reply
3707           without requiring to resolve the same entry again.  This concept
3708           should optimize the WHOIS and the IDENTIFY resolving under
3709           heavy load by taking away unnecessary resolving for entries
3710           that are being resolved already.
3711
3712           Added support for adding multiple pending commands for one
3713           command idenfier.  Affected file silcd/command[_reply].[ch].
3714
3715         * Fixed WHOIS and IDENTIFY save to remove the cache entry
3716           before deleting the data.  Otherwise the hash table will have
3717           freed data in comparison functions.  Affected file is
3718           silcd/command_reply.c.
3719
3720         * Fixed silc_idlist_replace_client_id to add the new entry to
3721           the cache with NULL nickname.  Otherwise there will be invalid
3722           memory as the nickname after the nickname is freed.  Affected
3723           file silcd/packet_receive.c.
3724
3725         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
3726           saved into wrong slots because the previous number of entries
3727           was not taken into account.  Affected file silcd/idlist.c.
3728           Fixed same thing in silc_idlist_get_clients_by_nickname too.
3729
3730         * If we are router and we receive JOIN notify to a channel that
3731           does not have any users then notified client is marked as the
3732           channel founder, as it is it.  The affected file is
3733           silcd/packet_receive.c
3734
3735         * Added to the extended hash table API's table_del_*ext functions
3736           the destructor as argument too, so that the caller can decide
3737           which destructor to use or whether to use destructor at all.
3738           Affected file lib/silcutil/silchashtable.[ch].
3739
3740         * Fixed ID Cache purging.  It actually deleted the entries from
3741           the hash table after the data was freed.  The hash table ended
3742           up comparing freed memory.  The affected file is
3743           lib/silccore/silcidcache.c.
3744
3745 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3746
3747         * Fixed Irssi SILC client's KILL command's HELP syntax.
3748
3749         * The USERS command now resolves the detailed user information
3750           if the userinfo field is missing.  Affected file is
3751           lib/silcclient/command_reply.c.
3752
3753         * Do not print error in silc_file_read if the read file does
3754           not exist.  Just silently return NULL.  Affected file is
3755           lib/silcutil/silcutil.c.
3756
3757         * Fixed the silc_log_output to not wine about NULL filename
3758           and to not create some bogus " " filename.  Affected file is
3759           lib/silcutil/silclog.c.
3760
3761 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3762
3763         * Fixed various printing bugs on the user interface in the
3764           Irssi SILC Client.  Minor changes that were forgotten from
3765           the release.
3766
3767 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3768
3769         * Fixed the configure.in.pre and the compilation and distribution
3770           environment to support the new autoconf 2.52.  That version is
3771           now required to compile the CVS trunk.
3772
3773 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3774
3775         * Renamed function silc_parse_nickname to silc_parse_userfqdn
3776           to generally parse user@fqdn format strings.  Affected file
3777           lib/silcutil/silcutil.c.
3778
3779         * Added nickname_format and nickname_force_format fields to the
3780           SilcClientParams structure.  The first one defines the format
3781           for the nicknames that the library will enforce if the receives
3782           multiple same nicknames.  The second one is boolean value and
3783           can be used to force the library to always enforce the format
3784           to the nicknames regardles whether there are multiple nicknames
3785           or not.  This configurable formatting was employed to flexibly
3786           support accessing multiple nicknames from the user interface.
3787           The userinterface can now set the nicknames to what ever format
3788           they prefer.  Affected file lib/silcclient/silcapi.h.
3789
3790           Added function silc_client_nickname_format to the file
3791           lib/silcclient/idlist.c.  It performs the nickname formatting.
3792
3793           Added new field `hostname´ to the SilcClientEntry context.
3794           It holds the hostname of the client.  Affected file is
3795           lib/silcclient/idlist.h.
3796
3797         * Irssi SILC Client sets the nicknames in nick@hostn format.
3798           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
3799           irssi/src/silc/core/silc-core.c.
3800
3801           The WHOIS printing now also shows both the real nickname and
3802           the formatted nickname so that user knows how to access the
3803           user if there are multiple same nicknames cached.  Affected
3804           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
3805           printing formatting too to take the hostname now as a separate
3806           argument.  The Affected file is
3807           irssi/src/fe-common/silc/modules-formats.[ch].
3808
3809         * Changed the silc_client_get_clients_local to accept the formatted
3810           nickname as argument.  It accepts the real nickname too but the
3811           formatted nickname can be used to find the true entry from 
3812           multiple entries.  Affected file lib/silcclient/silcapi.h and
3813           lib/silcclient/idlist.c.
3814
3815         * Added nickname_format_parse field to the SilcClientParams.
3816           It is a callback function provided by the application to parse
3817           the nickname out of the formatted nickname string. The library
3818           calls it to get the nickname from the formatted string. Since
3819           the application generally knows better the format of the nickname
3820           string it parses it instead of the library, even though library
3821           encodes the formatted string.  If the callback function is not
3822           provided then the library will use the string as is.  The
3823           affected file is lib/silcclient/silcapi.h.
3824
3825         * All the nickname strings passed to the client library in 
3826           commands are now expected to be formatted nickname strings.
3827           If the command does not support the formatted nickname string
3828           it will assume that the sent string is the actual nickname.
3829           Affected file lib/silcclient/command.c.
3830
3831 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3832
3833         * Added public key authentication support to OPER and SILCOPER
3834           commands in the client library.  Affected file is
3835           lib/silcclient/command.c.
3836
3837 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3838
3839         * Changed the get_auth_methdod client operation to be asynchronous.
3840           It can be async if the application resolves the authentication
3841           method from the server during the negotiation.  Added new
3842           SilcGetAuthMeth completion callback that the application will
3843           call after resolving the authentication method.
3844
3845           Added function silc_client_request_authentication_method that
3846           the application can use to resolve the authentication method
3847           from the server.  Added also SilcConnectionAuthRequest callback
3848           that the library will call after the server has replied.  The
3849           application can call this function if it does not know the
3850           current authentication method.
3851
3852           Affected files are lib/silcclient/client.c and 
3853           lib/silcclient/silcapi.h.
3854
3855         * The Irssi SILC client now automatically resolves the authentication
3856           method incase any configuration information is not present (and
3857           currently there never is).  The affected file is
3858           irssi/src/silc/core/client_ops.c.
3859
3860         * Fixed public key authentication from the client library.
3861           Affected file lib/silcclient/protocol.c.  Changed also the
3862           protocol specification about the public key authentication in
3863           the connection authentication protocol.  The actual data to be
3864           signed is now computed with a hash function before signing.
3865
3866         * Fixed the public key authentication from the server as well.
3867           Affected file silcd/protocol.c.
3868
3869         * Removed the mlock()'s from the memory allocation routines.
3870           Affected file lib/silcutil/silcmemory.c.  The ./configure does
3871           not check anymore for the mlock().  Affected file is
3872           configure.in.pre.
3873
3874         * Fixed USERS command in server to allow the execution of the
3875           command for private and secret channels if the client sending
3876           the command is on the channel.  Affected file silcd/command.c.
3877
3878         * Fixed silc_client_get_clients_local to return the clients
3879           count correctly.  It could return wrong value.  Affected file
3880           lib/silcclient/idlist.c.
3881
3882 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3883
3884         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
3885           types.  The assembler optimizations seemed not to like 64-bit
3886           data types.  The assmebler optimizations thus are now enabled
3887           also for BSD systems as opposed to only enable them for Linux.
3888
3889         * Do not check for threads at all on BSD systems.  Affected
3890           file configure.in.pre.
3891
3892         * Removed -n and -h options from the Irssi SILC Client since
3893           they are not used in silc.
3894
3895         * Fixed the prime generation to assure that the first digit
3896           of the generated random number is not zero since our conversion
3897           routines does not like number strings that starts with zero
3898           digit.  If zero digit is seen the random number is regenerated.
3899           This caused some corrupted RSA keys when the zero first digit
3900           was met.  Affected file lib/silcmath/silcprimegen.c.
3901
3902 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3903
3904         * Fixed WIN32 configuration in the ./configure script.
3905           Fixed to include xti.h on environments that has it.
3906           Patches by Carsten Ilchmann and andrew.
3907
3908 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3909
3910         * Changed the silc_id_create_client_id to be collision
3911           resistant.  It is now assured that there cannot be created
3912           two same client ID's.  I suspect that some weird bugs in 
3913           the server were actually caused by duplicate Client IDs.
3914           Affected file silcd/serverid.[ch].  A router receiving
3915           new ID now also assures and informs the sending server
3916           if the ID caused collision.
3917
3918         * Changed the silc_id_create_channel_id to also assure that
3919           there are no collisions.
3920
3921 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3922
3923         * Statement about ignoring the Mutual Authentication flag when
3924           performing rekey with PFS was a bit misleading.  It is ignored
3925           if it was set in the initial negotiation, it cannot be even
3926           set in the rekey.  Fixed in the ke-auth draft.  Started the
3927           new versions of the protocol drafts in the doc/.
3928
3929 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3930
3931         * Fixed a bug in silc_client_command_identify_save when saving
3932           new channel information.  The channel name was no duplicated
3933           and caused crash on exit.  Affected file is
3934           lib/silcclient/command_reply.c.
3935
3936 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3937
3938         * Fixed the getkey command handling in the server.  Send just
3939           empty OK reply to the sender if the key could not be fetched
3940           (but everything else was ok, like the key just was not available).
3941           Changed the public key parameter to optional in the protocol
3942           specs so that empty OK reply can be sent.  Affected file
3943           silcd/command.c.
3944
3945           Added a message to Irssi SILC client to tell to user if the
3946           server did not return a public key.
3947
3948 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
3949
3950         * Fixed a channel key regeneration bug.  It registered new
3951           timeout tasks exponentially until all system resources were
3952           used.  Affected file silcd/server.c.
3953
3954 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3955
3956         * Added the SILC Document generator to the scripts/silcdoc.
3957           It can be used to generate the Toolkit Reference Manual out
3958           of the source tree.  Internally it will also use the RoboDoc
3959           generator now imported in util/robodoc.
3960
3961 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3962
3963         * Added couple of return's in rekey protocol if error orccurred
3964           during the protocol.  The execution must be terminated.
3965           Affected file silcd/protocol.c.  Also, terminate the protocol
3966           always with timeout.
3967
3968 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3969
3970         * The client's Client ID was created initally from the wrong
3971           nickname (it could have been in format nick@host) in the
3972           silc_server_new_client.  Affected file silcd/packet_receive.c
3973
3974 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
3975
3976         * Added some SILC_LOG_ERROR's to various error conditions
3977           if client could not be added to ID cache.  Affected files
3978           silcd/packet_receive.c and silcd/server.c.
3979
3980         * When client's sock->user_data is freed, NULL also the 
3981           client->router and client->connection pointers.  Added check
3982           for these pointers being NULL to various places around the
3983           code.  Affected file silcd/server.c.
3984
3985         * Added client->data.registered == TRUE checks to various
3986           places around the code to assure that unregistered client's
3987           are not handled when it is not allowed.  Affected file
3988           silcd/server.c.
3989
3990         * Added `bool registered' fields to all 
3991           silc_idlist_[server|client]_get_* routines to indicate whether
3992           the fetched client needs to be registered or not.  Affected
3993           file silcd/idlist.[ch].
3994
3995         * Add your own entry as registered to the ID cache in the
3996           server.  Affected file server.c.
3997
3998         * Fixed a bug in silc_server_new_server.  The SilcServer was
3999           set as the new server's context instead of SilcServerEntry.
4000           This naturally caused some weird bugs.
4001
4002 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4003
4004         * Do not delete the channel rekey task when adding it
4005           for in silc_server_create_channel_key.
4006
4007         * Changed the silc_server_create_channel_key to return
4008           TRUE or FALSE to indicate the success of the channel key
4009           creation.
4010
4011 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4012
4013         * Fixed MSVC++ project files and added missing files to
4014           Makefiles under win32/.
4015
4016 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4017
4018         * Do not add TCP_NODELAY flag if the operating system
4019           does not have it defined.  Affected files are
4020           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
4021
4022         * Fixed buffer overflow from Irssi SILC Client.  Affected
4023           file irssi/src/fe-common/core/themes.c.
4024
4025         * Fixed double free in client library in the file
4026           lib/silcclient/client.c when disconnecting from server.
4027
4028         * Applied double free patch from cras to Irssi SILC client.
4029           Affected files irssi/src/core/[modules/expandos].c
4030
4031         * Fixed the disconnection handling to Irssi SILC Client.
4032           The application must call silc_client_close_connection
4033           in ops->connect client operation in case of failure of
4034           the connection.  Affected file is
4035           irssi/src/silc/core/client_ops.c.
4036
4037         * Do not set sock->protocol to NULL in the function
4038           silc_client_close_connection after executing the protocol's
4039           final callback since the sock might not be valid anymore.
4040           Affected file lib/silcclient/client.c.
4041
4042 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4043
4044         * Do not enable SILC_THREADS if the linking with libpthread
4045           did not happen.  Affected file configure.in.pre.
4046
4047         * Added notion to protocol specification that server must
4048           verify the sent authentication payload with CMODE when
4049           setting the channel founder key.  Implemented it to the
4050           server.  Affected file silcd/command.c.
4051
4052 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4053
4054         * Added _EXTRA_DIST SILC distribution variable to the
4055           distributions file.  It is used to conditionally add extra
4056           files or directories to the specific distribution.  Affected
4057           files ./prepare, Makefile.am.pre and distributions.
4058
4059           Removed the `_' from the start of the distribution names.
4060           It is redundant.
4061
4062         * Added README.WIN32 for instructions to compile the Toolkit
4063           under WIN32.
4064
4065 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4066
4067         * Fixed a double free in disconnection in the server.  Affected
4068           file is silcd/server.c.
4069
4070         * Fixed the lib/silcske/groups.c to work now also with GMP
4071           MP library.  The string conversion did not work when using
4072           specific base and the base is indicated in the string as well.
4073
4074         * Created win32/ directory which now includes MSVC++ specific
4075           stuff so that toolkit (DLLs) may be compiled with MSVC++.
4076           It will appear only in the toolkit distribution
4077
4078 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4079
4080         * Changed the key material distribution function in case when
4081           the hash output is too short.  The data is now concatenated
4082           a bit differently than it used to.  Made the change to the
4083           SKE protocol specification.
4084
4085         * Added better GMP detection to configure.in.pre.  A patch
4086           by salo.
4087
4088 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4089
4090         * Fixed a minor bug in SKE that might cause some problem on
4091           some platforms.  Affected file lib/silcske/silcske.c.
4092
4093         * Added the cookie checking for initiator in the SKE.  It checks
4094           that the responder returns the sent cookie unmodified.  The
4095           affected file is lib/silcske/silcske.c.  Added new SKE
4096           error type INVALID_COOKIE that can be sent during the
4097           negotiation.  Fixed some memory leaks as well.
4098
4099         * Added the "invalid cookie" error message to Irssi SILC client's
4100           message formats.
4101
4102 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4103
4104         * Added `task_max' field to the SilcClientParams to indicate
4105           the maximum tasks the scheduler can handle.  If set to zero,
4106           default values are used.  Affected file lib/silcclient/silcapi.h.
4107
4108         * Fixed memory leaks in silc_client_close_connection.  Affected
4109           file lib/silcclient/client.c.
4110
4111         * Added silc_client_del_client_entry to client library to free
4112           all memory of given client entry.  Affected file is
4113           lib/silcclient/idlist.[ch].
4114
4115         * Added new functions silc_client_del_channel and
4116           silc_client_del_server to delete channel and server entries.
4117           Affected file lib/silcclient/[silcapi.h/idlist.c].
4118
4119         * Removed silc_client_del_client_by_id from silcapi.h.
4120
4121         * Fixed the INFO command to return the server's own info
4122           correctly when querying by Server ID.  Affected file is
4123           silcd/command.c.
4124
4125 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4126
4127         * Removed the non-blocking settings in WIN32 code in the
4128           silc_sock_[read/write] and added SleepEx instead.  Affected
4129           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
4130           of input data is now checked with FIONREAD and ioctlsocket.
4131
4132 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4133
4134         * Call silc_schedule_task_del_by_context in the 
4135           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
4136           Affected file lib/silccore/silcprotocol.c.
4137
4138         * Call silc_protocol_cancel for active protocols in the
4139           silc_server_close_connection if the funtion
4140           silc_server_free_sock_user_data has not been called.
4141           Affected file silcd/server.c.
4142
4143         * Generic tasks cannot be deleted using the del_by_fd
4144           task deleting function since generic tasks does not match
4145           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
4146
4147         * Added a notion to SILCOPER help file that the SILCOPER works
4148           only on router server, not on normal server.
4149
4150 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4151
4152         * Added for WIN32 support for the new scheduler as well.
4153           Affected file lib/silcutil/win32/silcwin32schedule.c.
4154
4155         * Fixed the SHA1 implementation to work on various platforms.
4156
4157 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4158
4159         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
4160           API.  It is part of the scheduler now.  Everything else is
4161           as previously but some functions has changed their names.
4162           Checkout the lib/silcutil/silcschedule.h for the interface.
4163           Updated all applications to use the new interface.  Affected
4164           files are lib/silcutil/silcschedule.[ch].
4165
4166 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4167
4168         * Found a bug in the SKE implementation.  The HASH value,
4169           specified by the protocol, was not computed correctly.  The
4170           public key of the responder was not added to the computation
4171           even though it is mandatory.  Affected file lib/silcske/silcske.c.
4172           This unfortunately causes incompatibilities with older
4173           clients and servers.
4174
4175         * Added WIN32 specific network init and uninit functions:
4176           silc_net_win32_init and silc_net_win32_uninit to init and uninit
4177           the Winsock2.  Affected file lib/silcutil/silcnet.h and
4178           lib/silcutil/win32/silcwin32net.c.
4179
4180         * Set the socket always to nonblocking mode on WIN32 after
4181           reading data or writing data.  Affected file is
4182           lib/silcutil/win32/silcwin32sockconn.c.
4183
4184 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4185
4186         * Fixed various compilation problems under WIN32.  Affected
4187           files lib/silcutil/win32/silcwin32thread.c and
4188           lib/silcutil/win32/silcwin32schedule.c.
4189
4190         * Removed all _internal.h #includes from public header
4191           files.  Internal headers must never be included from
4192           public headers.
4193
4194           Removed also the lib/silcske/payload_internal.h file.
4195
4196         * All include files that may be needed (public and some others
4197           included by the public headers) by application developers are
4198           now copied to the ./includes directory.  It does not copy any
4199           internal headers.  Affected file Makefile.defines.pre and all
4200           Makefile.am's under lib/ and subdirs.
4201
4202 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4203
4204         * Do not change the ~/.silc directory's permissions automatically.
4205           Affected file irssi/src/silc/core/clientutil.c.
4206
4207 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4208
4209         * Do not cancel the protocol in silc_server_close_connection
4210           it might cause recursion.  Now cancelled in the function
4211           silc_server_free_sock_user_data.  Affected file silcd/server.c.
4212
4213         * Fixed the silc_server_remove_clients_by_server to regenerate
4214           the channel keys correctly finally.  Added also new function
4215           silc_server_remove_clients_channels to actually do it.
4216           Affected file silcd/server.c.
4217
4218         * Fixed the silc_server_new_channel to not crash by giving
4219           wrong router to the new channel.  Affected file is
4220           silcd/packet_receive.c.
4221
4222 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4223
4224         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
4225           which is given as argument to the silc_client_alloc now.
4226           It can be used to configure the client and set various parameters
4227           that affect the function of the client.
4228
4229         * The USERS command in server did not check whether the channel
4230           is private or secret.  Affected file silcd/command.c.
4231
4232         * Added new argument to the USERS command in protocol specification.
4233           The USERS command now can take the channel name as argument
4234           as well.  Added support for this in client and server and
4235           updated the protocol specs.
4236
4237         * Completed the GETKEY command in client. It can be now used
4238           to fetch also servers public key not only some clients. 
4239           Affected files lib/silcclient/command[_reply].c.
4240
4241         * Added silc_client_get_server to return server entry by the
4242           server name.  Affected files lib/silcclient/silcapi.h and
4243           idlist.c.
4244
4245         * Redefined the IDENTIFY command in protocol specification to be
4246           more generic.  It now can be used to query information about
4247           any entity in the SILC Network, including clients, servers and
4248           channels.  The query may be based either the entity's name
4249           or the ID.  Added support for this in both client and server.
4250
4251           Affected files silcd/command.c and lib/silcclient/command.c
4252           and command_reply.c.
4253
4254         * Optimized the WHOIS and WHOWAS commands in the server. Removed
4255           the _from_client and _from_server functions.  Affected file
4256           silcd/command.c.
4257
4258         * Added silc_client_get_channel_by_id_resolve to the file
4259           lib/silcclient/silcapi.h to resolve channel information by
4260           its ID.  Added also silc_client_get_channel_by_id that
4261           does not resolve it from the server.
4262
4263 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4264
4265         * Added SilcServerEntry context into the client library
4266           to represent one server.  The INFO command now allocates
4267           these to save the resolved server info.  For now on the
4268           client library will also keep information about servers,
4269           connected and resolved with INFO.
4270
4271           The INFO command now allocates the SilcServerEntry context
4272           and saves the server info there.  The COMMAND_REPLY in
4273           the INFO now returns the parameters to application in 
4274           same order as defined in the protocol specification.
4275
4276           The entries are cached in the client->server_cache.
4277
4278         * The INFO command is now issued after received the Client ID
4279           from the server.  Affected file lib/silcclient/client.c.
4280
4281         * The CMODE_CHANGE notify may now return also an SilcServerEntry
4282           to the application as the mode changer might be server.
4283           It is guaranteed that NULL is not returned anymore to the
4284           application.  Affected file lib/silcclient/client_notify.c.
4285
4286           The ID Type is now also passed to the application so that
4287           it can check whether the returned entry is SilcClientEntry
4288           or SilcServerEntry.
4289
4290           Added new function silc_client_get_server_by_id to return
4291           the server entry by ID.  Affected files are the
4292           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
4293
4294         * Do not create the channel in the Irssi SILC Client when issuing
4295           the JOIN command but when received the sucessful JOIN command
4296           reply.  Otherwise the channel might get created even though we
4297           could not join it.  The Affected file is
4298           irssi/src/silc/core/[silc-channels.c/client_ops.c].
4299
4300         * Fixed a channel joining bug in router.  The router must also
4301           check the channel modes, invite and ban lists etc. when serving
4302           the JOIN command sent by normal server.  Affected file is
4303           silcd/command.c.  The router now resolves the client's 
4304           information from the server who sent the JOIN command if it
4305           does not know it, and processes the JOIN command only after
4306           that.
4307
4308         * Changed the SilcCommandCb to take new argument; void *context2.
4309           Affected file lib/silccore/silccommand.h
4310
4311           The second argument in the command callbacks in the server now
4312           includes the SilcServerCommandReplyContext if the command was
4313           called as pending command callback from the command reply.
4314           Otherwise it is NULL. When called as pending the status of the
4315           command reply will be checked and if it was erronous the
4316           error will be sent to the original sender of the command.
4317           This way the client always receives the error messages even
4318           though the server was actually the one who received the error
4319           when it resent the command to router, for example.  Affected
4320           files silcd/command[_reply].[ch].
4321
4322         * Fixed sending WHOWAS command's error message to client if
4323           the requested client could not be found.  It was missing.
4324           silcd/command.c.
4325
4326         * Changed the CMODE and CUMODE commands reply arguments in the
4327           protocol specification.  The Channel ID is now sent in both
4328           of the commands to identify the channel.  Implemented this
4329           new feature to the client and server.  Affected files
4330           lib/silcclient/command_reply.c and silcd/command.c.
4331
4332         * Made better checks for invite and ban lists in the JOIN
4333           command in server.  Affected file silcd/command.c.
4334
4335 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4336
4337         * The server now performs the incoming host IP/DNS lookup
4338           using the silc_socket_host_lookup and thus does not block
4339           the server anymore.  Affected file silcd/server.c.
4340
4341         * Completed the multi-thread support for SILC Scheduler in
4342           the lib/silcutil/silcschedule.c.
4343
4344         * Fixed the configure.in.pre to detect the pthread correctly
4345           on various systems.
4346
4347         * Fixed a deadlock in silc_task_queue_wakeup in the file
4348           lib/silcutil/silctask.c.
4349
4350 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4351
4352         * Added new function silc_schedule_wakeup that is used in
4353           multi-threaded environment to wakeup the main thread's
4354           schduler. It needs to be used when a thread adds a new task
4355           or removes a task from task queues. After waking up, the
4356           scheduler will detect the task queue changes. If threads
4357           support is not compiled in this function has no effect.
4358           Implemented the wakeup mechanism to both Unix and WIN32
4359           systems.  Affected files are lib/silcutil/silcschedule.[ch],
4360           lib/silcutil/unix/silcunixschedule.c and the
4361           lib/silcutil/win32/silcwin32schedule.c.
4362
4363         * Added new function silc_task_queue_wakeup to wakeup the
4364           scheduler by the specified task queue.  Affected file
4365           lib/silcutil/silctask.[ch].
4366
4367         * The silc_socket_host_lookup_start now wakes up the scheduler
4368           after adding the timeout task.  Affected file is
4369           lib/silcutil/silcsockconn.c.
4370
4371         * The silc_socket_host_lookup is synchronous now if the threads
4372           support is not compiled in.  However, the callback is still
4373           called asyncronously through the scheduler, anyway.  Affected
4374           file lib/silcutil/silcsockconn.c.
4375
4376 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4377
4378         * Added new function silc_socket_host_lookup to perform
4379           asynchronous IP and FQDN lookups for the socket connection.
4380           Affected files lib/silcutil/silcsockconn.[ch].
4381
4382 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4383
4384         * Added SILC_MUTEX_DEFINE to define the mutex on environments
4385           that may or may not compile the mutex support in.
4386         
4387           Changed the silc_mutex_alloc interface. It allocates the
4388           mutex now to the sent pointer and returns TRUE or FALSE.
4389
4390           Affected file lib/silcutil/silcmutex.h.
4391
4392         * Wrote the SILC Task Queue interface to support multi-threads.
4393           Affected file lib/silcutil/silctask.[ch].
4394
4395         * Wrote the SILC Scheduler to support multi-threads.  Affected
4396           file lib/silcutil/silcschedule.c.
4397
4398 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4399
4400         * Implemented the SILC Mutex API and SILC Thread API for WIN32
4401           in lib/silcutil/win32/.
4402
4403 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4404
4405         * Defined SILC Mutex API and SILC Thread API and implemented
4406           them for Unix.  Affected files are
4407           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
4408           lib/silcutil/unix/silcunixmutex.c and
4409           lib/silcutil/unix/silcunixthread.c.
4410
4411 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4412
4413         * Fixed the silc_server_remove_clients_by_server's channel
4414           key re-generation.  The hash table handling was incorrect
4415           and would not work with many channels.  Affected file is
4416           silcd/server.c.
4417
4418         * Fixed some memory leaks around the server code.
4419
4420         * Rewrote the silc_server_get_users_on_channel to support IPv6
4421           based Client ID's.  Affected file silcd/server.c.
4422
4423         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
4424           specification.  However, a separate document must be written
4425           to define the detailed signing procedure and the payload
4426           associated with the flag.  Defined the flag to the
4427           lib/silccore/silcchannel.h as well.
4428
4429 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4430
4431         * Changed the dynamic tables to static size tables in the
4432           lib/silccrypt/silchmac.c.
4433
4434         * Removed GCC dependencies from the code.  A patch by cras.
4435
4436 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4437
4438         * Do not show the error "Error receiving packet bla bla"
4439           in server if it really was not an error (-2 means that reading
4440           is pending).  Affected file silcd/server.c.
4441
4442 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4443
4444         * Fixed a possible crash in silc_server_remove_clients_by_server
4445           in silcd/server.c.  Fixed there also some memory leaks.
4446
4447         * Fixed the silc_idlist_replace_client_id.  It could replace
4448           wrong key in the hash table.  Affected file silcd/idlist.c.
4449
4450         * Do not check whether there are global users on the channel
4451           if the channel->global_users is FALSE.  Affected functions
4452           silc_server_remove_from_one_channel and
4453           silc_server_remove_from_channels in silcd/server.c.  Also,
4454           do not check if the removed client is local as we can be
4455           sure that global client was not removed from the channel
4456           and checking for global users is not needed.
4457
4458         * The silc_server_remove_clients_by_server now re-generates
4459           the channel keys correctly for those channels that had
4460           clients removed from them.  Affected file silcd/server.c.
4461
4462 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4463
4464         * Found the reason of random crashes in the server.  We weren't
4465           ignoring the SIGPIPE signal (which can be sent in write())
4466           and it crashed the server.  Affected file silcd/silcd.c.
4467
4468 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4469
4470         * Assure that sock->user_data is not NULL in the function
4471           silc_server_packet_send in silcd/packet_send.c.
4472
4473         * Disconnect the remote connection if it could not be added
4474           to any ID lists in the server.  The affected file is
4475           silcd/server.c.
4476
4477         * Check in silc_server_packet_send[_real/dest] that the
4478           socket is not disconnecting and ignore the data if it is.
4479           Affected file silcd/packet_send.c.
4480
4481         * Define inline to __inline on native WIN32 compilation.
4482           Affected file includes/silcwin32.h.
4483
4484         * Added some explicit type casts for inline code since MSVC
4485           require them.  Affected files lib/silcutil/silcbuffer.h,
4486           lib/trq/silcdlist.h and lib/trq/silclist.h.
4487
4488         * Print warning in log files from now on if the packet
4489           decryption fails.  Affected file silcd/server.c.
4490
4491 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4492
4493         * Changed the `say' client operation's interface to accept
4494           new `type' argument to indicate the type of the message sent
4495           by the library.  The application may filter the library's
4496           messages according the type.  The affected file is the
4497           lib/silcclient/silcapi.h.
4498
4499         * Added two new functions to lib/silcclient/silcapi.h:
4500           silc_client_del_client and silc_client_del_client_by_id.
4501           Affected file lib/silcclient/idlist.c.
4502
4503         * Moved the clientincludes.h from includes/ to silc/ and
4504           serverincludes.h from includes/ to silcd/.
4505
4506         * The modes for the CMODE and CUMODE are now passed as
4507           uint32 for application with COMMAND_REPLY.  The affected
4508           file is lib/silcclient/command_reply.c.
4509
4510 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4511
4512         * /WHOIS without arguments shows client's own information.
4513           Affected file lib/silcclient/command.c.
4514
4515         * Changed PING to not accept any arguments.  The specs
4516           says that client can ping only the connected server so
4517           requiring an argument is not needed.  Affected file is
4518           lib/silcclient/command.c.
4519
4520 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4521
4522         * Fixed a fatal bug in private message sending and reception
4523           encryption and decryption when using private message keys.
4524           The implementation was incorrect and did not follow the
4525           specification.  It causd that some of the message were
4526           lost since it did not use the sending and receiving keys
4527           as the protocol suggests.  This has been fixed and will cause
4528           incompatibilities with older clients when sending private
4529           message encrypted with private message keys.  Affected files
4530           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
4531           and various other in Irssi SILC Client.
4532
4533           Added `responder' boolean argument to the functions
4534           silc_client_add_private_message_key[_ske] to indicate when
4535           the key is added as responder or initiator of the key
4536           negotiation.
4537
4538 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4539
4540         * Removed the silc_ske_check_version function and created
4541           a SilcSKECheckVersion callback.  Added also a function
4542           silc_ske_set_callbacks that is now used to set all SKE
4543           callbacks.  The callback functions are not given to
4544           the SKE functions anymore, but this function is used to
4545           set the callbacks.
4546
4547         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
4548
4549         * Added `silc_version' argument to the silc_client_alloc
4550           to define the version of the application for the library.
4551           The library will use the version string to compare it
4552           against the remote host's (usually a server) version
4553           string.  Affected file lib/silcclient/silcapi.h
4554
4555         * Added the KE protocol context to Key Agreement context
4556           in client library so that we can abort the SKE if it
4557           is in process when we get timeout.  Affected file is
4558           lib/silcclient/client_keyagr.c.
4559
4560         * Do not resolve the client ID forever if it returns in the
4561           first time that such client does not exist.  This was done
4562           for example with private message.  Affected file is
4563           lib/silcclient/client_prvmsg.c.
4564
4565 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4566
4567         * Do not add regex.h for WIN32.  The affected file
4568           includes/silcincludes.h.
4569
4570         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
4571           not work yet 100%.  It generates the DLL's automatically
4572           when compiling with --with-win32 under cygwin.
4573
4574 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4575
4576         * lib/contrib/regex.c is not compiled on WIN32.
4577
4578         * Added silc_net_get_socket_opt function to the
4579           lib/silcutil/silcnet.h.
4580
4581         * Added includes/silcwin32.h for WIN32 specific includes
4582           and definitions.
4583
4584         * Do not use ptime structure or any of the posix process
4585           functions on WIN32 in lib/silccrypt/silrng.c.
4586
4587         * Added silc_gettimeofday to provide generic function
4588           for struct timeval on all platforms.  Added the function
4589           to lib/silcutil/silcutil.h.
4590
4591 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4592
4593         * Moved the lib/silccore/silcsockconn.[ch] to the utility
4594           library as they clearly belong there.  As a plus side we
4595           can make the actual socket connection routines platform
4596           specific.
4597
4598           Added also new generic function silc_socket_read and
4599           silc_socket_write (that used to be silc_packet_[read/write].
4600           The implementation of these are platform specific.
4601
4602         * Added WIN32 specific routines of silc_socket_[read/write]
4603           to lib/silcutil/win32/silcwin32sockconn.c.
4604
4605 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4606
4607         * Added preliminary support for native WIN32 compilation under
4608           cygwin (using the -mno-cygwin option for GCC) to the
4609           ./configure.in.pre.  The --with-win32 now prepares the
4610           compilation for native WIN32.
4611
4612         * Rewrote the SILC Scheduler interface in the file
4613           lib/silcutil/silcschedule.h.  The scheduler is now context
4614           based and does not have anymore any global static scheduler.
4615           Moved the Unix scheduler to the lib/silcutil/unix/ directory
4616           and created lib/silcutil/win32 directory for WIN32 based
4617           scheduler.
4618
4619         * Added Unix specific network routines to the
4620           lib/silcutil/unix/silcunixnet.c and the old
4621           lib/silcutil/silcnet.c includes now only generic routines.
4622
4623           Added WIN32 specific network routines to the
4624           lib/silcutil/win32/silcwin32net.c.
4625
4626         * Added Unix specific utility functions from the
4627           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
4628
4629         * Added WIN32 SILC Scheduler to the file
4630           lib/silcutil/win32/silcwin32schedule.c. The code is of course
4631           untested.
4632
4633 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4634
4635         * Do not handle JOIN notify in the server if the target client
4636           is not registered (idata->registered == FALSE).  The affected
4637           file is silcd/packet_receive.c.
4638
4639         * Update the nickrec->founder in event_cumode in the Irssi SILC
4640           client.  Affected file irssi/src/silc/core/silc-channels.c.
4641
4642         * Fixed the CUMODE_CHANGE notify handling in the server when
4643           server and router are announcing their clients on channels.
4644           Now the mode changes are saved and notified correctly.  The
4645           affected file is /silcd/packet_receive.c.
4646
4647         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
4648           They really did not replace the cache entry in the ID Cache.
4649           Now they do that.  Affected file silcd/idlist.c.
4650
4651         * Fixed the KICK notify handling in the Irssi SILC client to
4652           update the channel records so that the kicked client does not
4653           appear to be on the channel.  The affected file is 
4654           irssi/src/silc/core/silc-channels.c.
4655
4656         * Always update the conn->current_channel when executing command
4657           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
4658
4659         * Fixed the KILL notify handling in Irssi SILC client to remove
4660           the killed client on all channels.
4661
4662 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4663
4664         * Fixed the silc_parse_command_line to remove extra spaces
4665           from the start and end of the arguments.  Affected file is
4666           lib/silcutil/silcutil.c.
4667
4668         * Cancel and free any active protocol in the function
4669           silc_server_close_connection.  Affected file silcd/server.c.
4670
4671         * Cancel and free any active protocol in the function
4672           silc_client_close_connction.  Affected file is
4673           lib/silcclient/client.c.
4674
4675         * Do not execute the KILL command for clients that are in
4676           history (ie. they are not in the network).  Affected file is
4677           silcd/command.c.
4678
4679         * Fixed KILL notify handling, client does not crash anymore.
4680           Affected file irssi/src/silc/core/silc-channels.c.
4681
4682         * Reduced the default packet buffer size from 2048 to 1024 in   
4683           lib/silccore/silcpacket.c.
4684
4685         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
4686           counter to the SKE context that is incresed when the SKE library
4687           performs async operation outside the library.  If the outside
4688           process frees the SKE context and FREED status will be set 
4689           and the library will detect after the sync operation that the
4690           libary is freed.  The affected files are
4691           lib/silcske/silcske[_status].[ch].
4692
4693         * Resolve the client entry information in the function
4694           silc_client_channel_message to assure that NULL pointer is not
4695           passed as client entry to the application. */
4696
4697         * Fixed the task timeout calculation to assure that there is
4698           never negative timeouts.  The affected file is 
4699           lib/silcutil/silcschedule.c.
4700
4701         * Fixed the channel user mode notification sending in server.
4702           It was sent point-to-point to the router (or to server by router)
4703           but it needs to be destined to a channel.  The routines now
4704           supports sending the channel user mode notifys to the channels
4705           when announcing clients and channels.  Affected files are
4706           silcd/server.c and silcd/packet_receive.c.
4707
4708         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
4709           It did not actually replace the old channel entry in the cache.
4710           Affected file lib/silcclient/client_notify.c.
4711
4712 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4713
4714         * Fixed a possible crash in silc_packet_send_prepare.  It now
4715           assures always that there is enough space in the buffer and
4716           at the tail area of the buffer (for MAC). 
4717
4718           Fixed the inbound buffer reallocation in silc_packet_read.
4719           It was old code and did not handle the reallocation correctly.
4720           Affected
4721
4722           The affected file is lib/silccore/silcpacket.c.
4723
4724         * Fixed buffer overflow in silc_parse_nickname in the file
4725           lib/silcutil/silcutil.c.
4726
4727 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4728
4729         * make install generates new server keys only if there is not
4730           keys already.
4731
4732 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4733
4734         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
4735           Added check that if the NOREPLY is set then we will not send
4736           the away message.  This avoids infinite loop of away messages
4737           if both clients are away.  The affected file is
4738           lib/silcclient/client_prvmsg.c.
4739
4740         * Fixed client crash if /NICK was given without arguments.
4741           Affected file lib/silcclient/command.c.
4742
4743         * Server does not send the invite list in INVITE command back
4744           to the client if the list was not altered.  Added this notion
4745           to the protocol spec as well.  Affected file silcd/command.c.
4746
4747           Fixed possible crash in INVITE command by checking the
4748           value of silc_server_get_client_route command.
4749
4750         * Fixed the INVITE notify type handling.  The arguments are now
4751           taken in correct order and client does not crash.  The affected
4752           file is irssi/src/silc/core/silc-channels.c.
4753
4754           Removed the "Inviting xxx to channel" message from the
4755           client library away and let the application handle it.
4756           Affected file lib/silcclient/command.c.  Added that message
4757           to Irssi SILC client's message formats.
4758
4759         * Fixed CMODE command crash in client.  It now checks the
4760           amount of arguments correctly and does not crash.  The affected
4761           file is lib/silcclient/command.c.
4762
4763         * Do not create new channel automatically in silc_channels_join
4764           but check whether the channel by that name already exists.
4765           Affected file irssi/silc/core/silc-channels.c.
4766
4767         * Do not send the SERVER_SIGNOFF to router if the disconnected
4768           entity was the router.  Affected file silcd/server.c.
4769
4770         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
4771           SILC client as it was missing from there.
4772
4773           Added the handling of the KICK notify to the Irssi SILC client
4774           as it was missing.  Added "you have been kicked" message to
4775           Irssi SILC client's message modules formats.
4776
4777           Added the handing of the KILL notify to the Irssi SILC client
4778           as it was missing.  Added the kill message module formats 
4779           as well.
4780
4781           The affected file is irssi/src/silc/core/silc-channels.c.
4782
4783         * The router did not save the channel mode the server announced.
4784           Affected file silcd/packet_receive.c.
4785
4786         * Fixed a possible crash in INFO command in server.  If the
4787           server did not provide the server info it crashed.  Affected
4788           file silcd/command.c.
4789
4790 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4791
4792         * Fixed the GETKEY command in the server to check also the
4793           global list.  Otherwise the GETKEY would not work correctly
4794           in normal SILC server.  Affected file silcd/command.c.
4795
4796 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4797
4798         * Fixed GETKEY crash, it crashed if the command did not succseed.
4799
4800 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4801
4802         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
4803           is now real and not just an macro interface to GMP.
4804
4805           Removed the entire GMP from the source tree and imported new
4806           NSS MPI library instead.  Reason for removing GMP is that it is
4807           extremely large and compiles extremely slow.  The NSS MPI
4808           is only a few files and compiles in less than 10 seconds.
4809           The speed is also about the same as GMP.  The MPI is imported
4810           to lib/silcmath/mpi.
4811
4812           If the system has GMP installed we will still use the GMP.
4813           If it is not then the NSS MPI will be compiled.
4814
4815 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4816
4817         * Merged a long nickname (127 characters long) crash bugfix from
4818           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
4819
4820         * Merged a freed memory reference bugfix from Irssi CVS tree.
4821           Affected file irssi/src/core/commands.c.
4822
4823 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4824
4825         * Added the server's public key sving and verification to the
4826           server when performing the SKE.  This was missing and the
4827           remote server's (or router's) public key was accepted without
4828           checking whether we have it previously or trust it at all.
4829           Affected file silcd/protocol.c.
4830
4831 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4832
4833         * Check in the silc_server_timeout_remote if protocol is active
4834           and make sure that the protocol's final callback is called so
4835           that all memory if freed.  Affected file silcd/server.c.
4836
4837 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4838
4839         * silc_server_whois_send_reply crashed the server if the nickname
4840           was 127 characters long.  Affected file silcd/command.c.
4841
4842 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4843
4844         * Added sanity check to the silc_server_new_client. If the hostname
4845           is provided inside username then check that the provided hostname
4846           really is the same as the resolved one.  If the hostname was not
4847           resolved then check it from the public key.  Affected file is
4848           silcd/packet_receive.c.
4849
4850         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
4851           if the server disconnected us and the connection is not valid
4852           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
4853
4854         * Moved the silc_client_[chmode|chumode|chumode_char] away from
4855           the library to the lib/silcutil/silcutil.[ch].
4856
4857 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4858
4859         * Close log file after open.  Affected file 
4860           lib/silcutil/silclog.c.
4861
4862         * Check whether sock == NULL in silc_client_send_packet and return
4863           if it is.  Affected file lib/silcclient/silcclient.c.
4864
4865         * Check rec->entry == NULL in the Irssi SILC Client before
4866           sending the channel message.  Affecte file is
4867           irssi/src/silc/core/silc-servers.c.
4868
4869 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4870
4871         * Merged a splitted window bugfix from Irssi CVS tree.  The 
4872           affected file is irssi/src/fe-text/textbuffer-view.c.
4873
4874         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
4875           It did not print nickname.
4876
4877         * Improved the distributions system a bit.
4878
4879 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4880
4881         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
4882           irssi/src/fe-text/gui-window.c.
4883
4884         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
4885           to in-active server.  The affected file is
4886           irssi/src/silc/core/client_ops.c.
4887
4888         * Resolve the client in USERS command reply if the entry does
4889           not have username resolved.  The affected file is
4890           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
4891           command to WHOIS command to really resolve stuff.  The USERS
4892           is not used any more in any critical section so WHOIS can
4893           be used even though it might be slower than IDENTIFY.
4894
4895         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
4896           format.
4897
4898 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4899
4900         * Changed the protocol API a bit more consistent in the
4901           lib/silccore/silcprotocol.[ch].
4902
4903         * Changed the following headers to ROBODoc format:
4904
4905                 lib/silccore/silcpayload.h
4906                 lib/silccore/silcprotocol.h
4907                 lib/silccore/silcsockconn.h
4908
4909           All core library headers are now formatted.
4910
4911 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4912
4913         * Fixed a bug in Irssi SILC client; do not show that you are
4914           server/router operator if you really are not.  Affected file is
4915           irssi/src/silc/core/client_ops.c.
4916
4917         * Renamed silc_command_free_payload to silc_command_payload_free.
4918           Affected file lib/silccore/silccommand.h
4919
4920         * Added silcmath.h to include the prototoypes of various routines
4921           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
4922           silcprimegen.h.
4923
4924         * Changed the following headers to ROBODoc format:
4925
4926                 lib/silccore/silcchannel.h
4927                 lib/silccore/silccommand.h
4928                 lib/silccore/silcid.h
4929                 lib/silccore/silcidcache.h
4930                 lib/silccore/silcmode.h
4931                 lib/silccore/silcnotify.h
4932                 lib/silccore/silcpacket.h
4933                 lib/silcmath/silcmath.h
4934
4935 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4936
4937         * Added checking to the server code not to start the server if
4938           ciphers and stuff are not configured properly.  Affected files
4939           silcd/serverconfig.[h] and silcd/server.c.
4940
4941         * Changed the layout of the header files of the public interfaces
4942           in the SILC libraries.  The new layout supports ROBODoc 
4943           documentation tool (and some others) so that it is easy to create
4944           a library reference manual.  All the other headers and source
4945           code must still follow the CodingStyle document.  Also source
4946           code must not include these ROBODoc stuffs, only the headers.
4947           Furthermore, all public interface headers must now be named
4948           by using `silc' prefix, example: silcapi.h, silccipher.h.
4949           Some files were renamed due to this.  All the other headers
4950           must not be used as public interfaces.  I will update the
4951           CodingStyle document later.  Changed following headers, so far:
4952
4953                 lib/silcclient/silcapi.h
4954                 lib/silccore/silcauth.h
4955                 lib/silccore/silcprivate.h
4956                 lib/silccrypt/silcdh.h
4957
4958 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4959
4960         * Updated TODO.
4961
4962         * Removed silc_client_packet_send_flush from the client library
4963           as it is not needed.  Affected file lib/silcclient/client.[ch].
4964
4965         * Added printing of message of unresolved authentication method
4966           to the Irssi SILC client.  Added it to the module formats.
4967           Removed the same message from the client library.
4968
4969 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4970
4971         * Added new distribution feature, DISTLABEL.  Every distribution
4972           can define own preprocessor label that can be used in the
4973           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
4974           file distributions, acconfig.h.pre and prepare.
4975
4976 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4977
4978         * Added Makefile.defines_int to include the actual definitions
4979           for Makefile.defines.in.  Tested the new distribution system,
4980           created distributions and tested installation.
4981
4982         * Added AWAY message printing to the Irssi SILC client.  Added
4983           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
4984
4985         * Added SCONNECT command to call the SILC's CONNECT command.
4986           Cannot use CONNECT directly since Irssi uses that internally.
4987           Affected file irssi/src/silc/core/silc-servers.c.
4988
4989           Added ACTION local command.  It is same as ME command but takes
4990           the channel as mandatory argument.
4991
4992           Rewrote some of the Irssi's help files to suite for SILC
4993           protocol.
4994
4995 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4996
4997         * Added Makefile.defines[.in] that should for now on be included
4998           in all Makefile.am file in the source tree.  That file includes
4999           all common compilation definitions for SILC source tree.
5000
5001 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5002
5003         * Minor changes to the ./prepare script to change the package
5004           name according the distribution name to the configure.in.
5005
5006 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5007
5008         * Created new distribution system.  Added file `distributions'
5009           that defines all the distributions that can be created out of
5010           the SILC source tree.  The ./prepare script now reads that
5011           file to determine how to prepare the distributions.  The
5012           first argument to the ./prepare is the name of the distribution
5013           and second is the version of the distribution.  If given
5014           without arguments it creates the default (toolkit) distribution
5015           with the default version (defined in ./prepare).
5016
5017           All Makefile.am files that are subject to the distributions
5018           are now named as Makefile.am.pre.  These are ./Makefile.am
5019           and lib/Makefile.am.  Others may be changed later.
5020
5021 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5022
5023         * Added invite list, ban list, some key management and connection
5024           error message printing to module formats in the Irssi SILC client.
5025
5026         * Added new silc_client_set_away_message to set the away message
5027           that is back to the person who sent private message.  The 
5028           affected file lib/silcclient/silcapi.h and the
5029           lib/silcclient/client_prvmsg.c.
5030
5031 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5032
5033         * Fixed the private message sending in the Irssi SILC client,
5034           added local command KEY to the Irssi SILC client.
5035
5036           Added key management and key agreement message formats to the
5037           irssi/src/fe-common/silc/module-formats.[ch].
5038
5039           Added USERS (alias WHO) printing, server/router operator
5040           indication and LIST command printing to the module formats.
5041
5042 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5043
5044         * Fixed channel joining notify handling, cumode notify handling
5045           from Irssi SILC client.
5046
5047         * Added SILC specific module-formats to the Irssi SILC client so
5048           that SILC specific message hilighting, colors etc is possible.
5049           Affected file irssi/src/fe-common/silc/module-formats.[ch].
5050
5051           Added channel mode, channel user mode, actions, notices,
5052           whois and whowas printing to the the module-formats.c.
5053
5054         * Fixed a bug in channel deletion in the server.  The channel
5055           is not left to the cache even if the channel founder auth mode
5056           is set when there are no users anymore on the channel.  Affected
5057           file silcd/server.c.
5058
5059         * The silc_net_localhost now resolves the entire hostname including
5060           the domain name.  Affected file lib/silcutil/silcnet.c.
5061
5062 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5063
5064         * Changed the ask_passphrase client operation to be ascynchronous.
5065           It has now a completion callback and a context that the 
5066           application must call after it has got the passphrase from
5067           the user.  Affected files lib/silcclient/silcapi.h,
5068           lib/silcclient/protocol.c, lib/silcclient/command.c and
5069           silc/client_ops.c.
5070
5071           Added SilcAskPassphrase callback that the application calls
5072           to deliver the passphrase to the library.
5073
5074         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
5075           The public key verification and especially a certificate
5076           verification is asynchronous procedure.
5077
5078           Added new SILC_SKE_STATUS_PENDING status to indicate the
5079           request is pending and a callback will be called to finalize
5080           the request.
5081
5082           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
5083           indicate that remote end did not send its public key (or
5084           certificate), even though we require it.  Added check for this
5085           condition in the SKE.  This was a security bug, now fixed.
5086
5087           Defined new SilcSKEVerifyCbCompletion callback that is called
5088           when the verification process is completed.
5089
5090           The affected files lib/silcske/silcske_status.h and
5091           lib/silcske/silcske.[ch].
5092
5093         * Changed the verify_public_key client operation to be async
5094           as well.  Defined SilcVerifyPublicKey callback that is used to
5095           indicate the success of the public key verification process.
5096
5097           Changed the server and client to use the new async client 
5098           operations.
5099
5100         * Changed the Irssi SILC client's internal scheduler to be called
5101           twice as many times as it used to be.  As a result the client
5102           should be a bit faster now.  Affected file is
5103           irssi/src/silc/core/silc-core.c.
5104
5105         * Added support to Irssi SILC client of asynchronous public key
5106           verification and passphrase inquiry.  Affected file is
5107           irssi/src/silc/core/silc-core.c.
5108
5109 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5110
5111         * Do not say "You have left channel %s" in client library.
5112           Moved it to the application.  Affected files are
5113           lib/silcclient/command.c and silc/client_ops.c.
5114
5115         * Fixed silc_client_get_clients.  Command context was not
5116           duplicated and was freed memory in the callback.  Affected
5117           file lib/silcclient/idlist.c.
5118
5119         * Do not say "you are now talking..." on JOIN command in the
5120           client library.  The appliation must handle it.
5121
5122         * Do not say ".. changed topic to" in command reply in the
5123           client libary.  The application must handle it.
5124
5125         * Fixed TOPIC command sending in the client library.
5126
5127         * Fixed a memory leak in silc_client_command_free in the file
5128           lib/silcclient/command.c.
5129
5130 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5131
5132         * Imported a modified version of Irssi client to the source tree.
5133           The Irssi will be used to create a new client called
5134           Irssi SILC.  Imported to irssi/.
5135
5136           Added silc_core_init_finish function to the Irssi.  Affected
5137           file irssi/configure.in.
5138
5139           A lot changes in the Makefile.ams around the irssi tree.
5140
5141 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5142
5143         * Do not rehash if the new size is same as the old size of the
5144           hash table, in the silc_hash_table_rehash*.  The affected file
5145           lib/silcutil/silchashtable.c.
5146
5147         * Replaced hash_table_del_by_context calls from the server
5148           (when channel->user_list and client->channels) to the
5149           hash_table_del as it is sufficient and faster.
5150
5151 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5152
5153         * Added silc_hash_table_list, silc_hash_table_get and the
5154           SilcHashTableList structure to provide an alternative way to
5155           traverse the hash table.  The affected files are
5156           lib/silcutil/silchashtable.[ch].
5157
5158         * Changed the server's idlist routines to use the hash table
5159           routines to optimize the code.
5160
5161 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5162
5163         * Replaced the client entry's `channel' list and channel entry's
5164           `user_list' list to hash tables for optimized lookup.  Changed
5165           the code to use the hash table interface around the code. 
5166           Affected file lib/silcd/idlist.[ch].
5167
5168         * Added `auto_rehash' boolean argument to the function
5169           silc_hash_table_alloc to indicate whether the hash table should
5170           auto-rehash when it thinks is appropriate time.  It will
5171           increase the hash table size if the there is twice as much
5172           entries in the table than the size of the table, and will
5173           decrease the size if there are twice as less entries than
5174           the size of the table.
5175
5176 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5177
5178         * Fixed silc_xxx_get_supported to not crash at some circumstances.
5179
5180 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5181
5182         * silc_idcache_purge_by_context deletes the entry now by context
5183           as it is supposed to do.  Affected file lib/silccore/idcache.c.
5184
5185         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
5186           client is not anymore valid (WHOWAS givens the info) and not
5187           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
5188
5189 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5190
5191         * Removed the `data' and `data_len' arguments from the ID Cache
5192           interfaces and added `name' argument.  ID Cache does not handle
5193           anymore the binary data only a names associated with given ID.
5194
5195         * When hashing a Client ID with silc_hash_id the entire ID is
5196           not hashed anymore, instead only the hash of the Client ID is
5197           hashed.  This way we can access the Client ID from the cache
5198           with Client ID but with the hash of the ID (which is a hash of
5199           the nickname) as well without any difference in performance.
5200
5201           Added also silc_idcache_find_by_id_one_ext to do one on one 
5202           searching when we have the actual ID.  Added also function
5203           silc_hash_client_id_compare.  The affected files are
5204           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
5205
5206         * When hashing the name associated with a ID it is always done
5207           in lowercase.  This way we can access the cache without worrying
5208           about case-sensitivity, even though, for example nicknames are
5209           case sensitive.
5210
5211         * Fixed a bug in server with channel message sending.  It put
5212           wrong ID type as destination ID.  The affected file 
5213           silcd/packet_send.c.
5214
5215         * silc_idcache_del_by_context now deletes from all hash tables
5216           by context.  Affected file lib/silccore/idcache.c.
5217
5218 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5219
5220         * Changed the client library to use the new ID Cache interface.
5221           Changes around the source tree.
5222
5223         * Added silc_hash_table_rehash_ext to rehash with specific
5224           hash function.  Affected file lib/silcutil/silchashtable.[ch].
5225
5226         * Added silc_hash_string_compare to compare two strings in the
5227           hash table.  Affected file lib/silcutil/silcutil.[ch].
5228
5229 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5230
5231         * Added new function silc_idcache_del_by_context into the
5232           lib/silccore/idcache.[ch].
5233
5234         * Changed the server's ID list routines to use the new ID Cache
5235           interface.  Changes around the source tree.
5236
5237 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5238
5239         * Added silc_hash_table_del[_by_context]_ext functions in to the
5240           lib/silcutil/silchashtable.[ch].
5241
5242           Removed silc_hash_table_find_all* routines and added new
5243           silc_hash_table_find_foreach to replace them.
5244
5245           Added silc_hash_table_replace_ext function as extended
5246           replacing function.  Separated the simple hash table interface
5247           from the extended hash table interface in the file
5248           lib/silcutil/silchashtable.h.
5249
5250         * Fixed minor bugs and changed it to use some of the new
5251           hash table functions in lib/silccore/idcache.c
5252
5253 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5254
5255         * Added new function silc_hash_table_find_all to return all keys
5256           in the hash table by the specified key.  As the hash table is
5257           collision resistant it also makes it possible to have several
5258           duplicate keys in the hash table.  This function may be used to
5259           find all of the keys from the hash.
5260
5261           Added user_context arguments to the SilcHashFunction,
5262           SilcHashCompare and SilcHashDestructor to deliver user specified
5263           context.
5264
5265           Added new fuctions silc_hash_table_find[_all]_ext to do
5266           extended lookup with specified hash and compare functions and
5267           specified user contexts.
5268
5269           Added new function silc_hash_table_add_ext to add the key
5270           with specified hash function and user context.
5271
5272           Added new function silc_hash_table_foreach to traverse all
5273           entrys in the hash table.  Added SilcHashForeach callback
5274           function.
5275
5276           Added new function silc_hash_table_del_by_context to delete
5277           the entry only if the context associated with the key matches.
5278
5279           Affected files are lib/silcutil/silchashtable.[ch].
5280
5281         * Removed silc_hash_[server/client/channel]_id and added just
5282           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
5283           silc_hash_id_compare to compare two ID's using as the hash table
5284           comparison function.  Added also silc_hash_data to hash
5285           binary data and silc_hash_data_compare to compare it.
5286
5287         * Removed silc_idlist_find_client_by_hash as it is not needed
5288           anymore.  Affected file silcd/idlist.[ch].
5289
5290         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
5291           to use internally the SilcHashTable.  The new ID Cache is a lot
5292           faster than the old one.  Some of the ID Cache interface was also
5293           rewritten and obsolete and stupid functions were removed.
5294
5295 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5296
5297         * Added entry_count field to the SilcHashTable to keep the number
5298           of the entries in the table.  Implemented the function
5299           silc_hash_table_rehash.  Added new function
5300           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
5301
5302           Fixed a minor bug in silc_hash_table_free.
5303
5304         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
5305           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
5306           into the lib/silcutil/silcutil.[ch].
5307
5308 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5309
5310         * Implemented a collision resistant hash table into the
5311           lib/silcutil/silchashtable[ch].  See the header and the source
5312           for the SilcHashTable API.
5313
5314 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5315
5316         * Merged dotconf version 1.0.2 into lib/dotconf.
5317
5318 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5319
5320         * Do not compile anything in lib/silcsim/* if the SIM support
5321           is not enabled.  The tree should now compile without problems
5322           under cygwin.
5323
5324 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5325
5326         * Compiled the SILC under cygwin.  Compiled and tested briefly
5327           without problems.  More tests needed.  The SIMs didn't compile
5328           though.
5329
5330         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
5331
5332         * Fixed possible crash in silc_get_username in the
5333           lib/silcutil/silcutil.c.
5334
5335 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5336
5337         * Fixed a va_arg in silc/client_ops.c.
5338
5339         * Oops, RC5 routines were named AES and caused some problems
5340           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
5341
5342 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5343
5344         * Added new SilcIDIP structure into the lib/silccore/id.h and
5345           replaced the old `ip' fields from all SILC ID's to that type.
5346           This is a step towards IPv6 support.
5347
5348           The silc_id_get_len takes now the ID as an extra argument.
5349           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
5350           both IPv4 and IPv6 based ID's.
5351
5352           The affected files are lib/silccore/id.[ch] and other files
5353           around the tree using these routines.
5354
5355         * Removed the ID length arguments in server from various 
5356           silc_server_send_notify_* routines -> they are not needed 
5357           anymore.
5358
5359 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5360
5361         * Fixed memory leak in silc_encode_pem_file in the file
5362           lib/silcutil/silcutil.c.
5363
5364 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5365
5366         * Check minor version as well in the SKE.  Affected files are
5367           silcd/protocol.c and lib/silcclient/protocol.c.
5368
5369         * Added --identifier option to the server so that an identifier
5370           can be when creating the public key for the server.  Affected
5371           file is silcd/silcd.c.
5372
5373         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
5374           lib/silccrypt/silcpkcs.c.
5375
5376 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5377
5378         * Register default ciphers and stuff when using -C option with
5379           the server.  Affected file sildc/silcd.c.
5380
5381         * Put back the servers public key filename format, it is better
5382           than the new one.  For now, the client keys are saved with the
5383           new filename format.  The affected file silc/client_ops.c.
5384
5385         * Implemented the Cipher API for the rest of the ciphers that
5386           did not implement it or implemented it the wrong way.
5387
5388 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5389
5390         * Register default ciphers and stuff when using the -S option
5391           in the client.  Affected file silc/silc.c.  Same also when
5392           creating new key pair with -C option.
5393
5394 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5395
5396         * Fixed the silc_verify_public_key client operation function to
5397           save the public keys differently.  The fingerprint is now 
5398           used as filename and not the hostname.  This way also the
5399           client keys are saved uniquely and not with hostnames.  The
5400           affected file is silc/client_ops.c.
5401
5402         * Trimmed the silc_hash_fingerprint function to remove extra
5403           whitespaces from the end of the fingerprint.  The affected
5404           file is lib/silccrypt/silchash.c.
5405
5406         * Updated TODO.
5407
5408         * Added silc_cipher_register_default function to register all
5409           default ciphers.  It can be used when configuration files
5410           does not exist and the application does not want any specific
5411           ciphers in any specific order.
5412
5413           The SilcDList is now used as silc_cipher_list dynamically
5414           allocated cipher list.  Removed the static list all together
5415           and now all ciphers must be allocated to the dynamic list.
5416           The silc_cipher_alloc routine was changed to check only the
5417           dynamic list.
5418
5419           All silc_cipher_* routines that used to return int returns
5420           now bool.
5421
5422           The affected files lib/silccrypt/silccrypt.[ch].
5423
5424         * The same thing was done to silc_hash_* as for silc_cipher_*
5425           routines.  Affected files lib/silccrypt/silchash.[ch].
5426
5427         * The same thing was done to silc_pkcs_* as for silc_cipher_*
5428           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
5429           Added also silc_pkcs_[un]register[_default] functions.
5430           Removed the data_context from the PKCS API.
5431
5432         * Added silc_hmac_register_default function to register default
5433           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
5434           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
5435           to unregister all hmacs at once.
5436
5437         * Register the default ciphers, hash functions, PKCSs and HMACs
5438           if client's configuration file does not exist.  The affected
5439           file silc/silc.c.
5440
5441         * The client did not load the hash functions from the SIM
5442           modules at all.  Added support for this.  Affected file is
5443           silc/clientconfig.c.
5444
5445         * When decoding public key with silc_pkcs_public_key_decode, check
5446           the supported algorithm only if PKCS are registered.  Affected
5447           file lib/silccrypt/silcpkcs.c.  The same was done with the
5448           silc_pkcs_private_key_decode.
5449
5450         * Fixed the SILC List routines to keep the list always in order.
5451           It used to change the list's order when traversing the list but
5452           not it preserves the order.  Affected file lib/trq/silclist.h.
5453
5454 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5455
5456         * Added the client library to use the SilcSocketConnection's
5457           reference counter (by silc_socket_dup) to prevent the bug that
5458           the socket object may be freed underneath async operation.
5459
5460         * The name resolv library checking fixes in the configure.in.pre.
5461           The patch by salo.
5462
5463         * Created new version of the protocol drafts for future
5464           development. The -03 drafts are the ones that will be changed
5465           in the trunk now and the -02 will remain as they are.
5466
5467         * Send list of CUMODE notifys to the router when announcing
5468           the channel users to the router.  Affected file silcd/server.c.
5469           If the router receiving channel founder CUMODE for a channel
5470           that already has channel founder it will send CUMODE notify
5471           to the sender to remove the channel founder rights from the
5472           announced client.  Affected file silcd/packet_receive.c.
5473
5474         * The CUMODE notify may now use Server ID as well as the entity
5475           who changes the mode.  Updated protocool specs.
5476
5477         * Updated INSTALL and README files.
5478
5479 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5480
5481         * New web pages in the http://silc.pspt.fi.  The pages was
5482           designed by salo.
5483
5484         * Updated CREDITS.
5485
5486 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5487
5488         * Implemented the [DenyConnectin] config section in the server.
5489           Added silc_server_config_denied_conn to check whether incoming
5490           connection is denied.  Affected file silcd/serverconfig.[ch].
5491
5492         * Do not check the ports when checking the incoming configuration
5493           data if the port is 0, meaning any.  Affected file is
5494           silcd/serverconfig.c.
5495
5496 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5497
5498         * Fixed buffer overflow in silc_string_compare in the file
5499           lib/silcutil/silcutil.c.
5500
5501         * Fixed double free in silc_server_command_leave in the file
5502           silcd/command.c.
5503
5504 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5505
5506         * Fixed the version checking in the server.  Affected file is
5507           silcd/protocol.c.
5508
5509 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5510
5511         * Fixed the configuration data fetching when accepting new
5512           connections in the server.  Affected file silcd/server.c.
5513
5514 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5515
5516         * Added `sender_entry' argument to the function
5517           silc_server_packet_relay_to_channel so that we can check
5518           whether some destination actually belongs to the same route
5519           the sender belongs (ie, we must not resend the packet to the
5520           sender).  Affected file silcd/packet_send.[ch].
5521
5522         * Added `servername' field to the SilcClientEntry in the server
5523           to hold the name of the server where client is from.  Affected
5524           file is silcd/idlist.h.
5525
5526 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5527
5528         * Moved the channel message encrypting in the router betwen
5529           router connections from silc_server_channel_message to the
5530           silc_server_packet_relay_to_channel since we want to check
5531           whether we have anybody channel before encrypting anything.
5532           Affected files silcd/packet_[receive/send].c.
5533
5534 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5535
5536         * Fixed the [AdminConnection] server config section to support
5537           multiple entries.  Affected file silcd/serverconfig.c.
5538
5539         * Added support into the server to check the validity of the
5540           incoming connection before executing any KE or authentication
5541           protocols.
5542
5543         * The connection configuration is now saved to the KE and 
5544           connection auth protocol contexts and not fetched anymore in 
5545           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
5546
5547         * The local hosts listenning address and port is also resolved
5548           now when starting the server.  We want to have the socket object
5549           to include the real address and port for the listener.  Added
5550           new function silc_net_check_local_by_sock into the files
5551           lib/silcutil/silcnet.[ch].
5552
5553         * Fixed a broadcast bug in server -> do not broadcast if we
5554           are standalone.
5555
5556         * Fixed a routing bug.  Do not route broadcast packets ever.
5557           Broadcast packets must be processed always and not routed since
5558           they may be destined to some other host than yourself and thus
5559           would get routed without no good reason.  Affected file is
5560           silcd/server.c.
5561
5562         * Added function silc_server_config_is_primary_route to check
5563           whether primary router connection has been configured (a router
5564           configuration that we are initiating).  If there is not, we 
5565           will assume that there is only two routers in the SILC network
5566           and we will use the incoming router connection as our primary
5567           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
5568
5569         * Changed the order of the broadcasting.  Broadcast _after_ the
5570           packet has been processed not before.  Affected file is
5571           silcd/server.c.
5572
5573         * Fixed a [ClientConnection] parsing bug.  The port was never
5574           parsed correctly thus resulting to port 0.  Affected file
5575           silcd/serverconfig.c.
5576
5577         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
5578           argument and did not set the broadcast packet flag.  Affected
5579           file silcd/packet_send.c.  Fixed same bug in the function
5580           silc_server_send_notify as well.
5581
5582         * If we receive NEW_ID packet for our own ID in the server, ignore
5583           the packet.
5584
5585 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5586
5587         * Updated TODO.
5588
5589         * Removed the nickname from the Private Message Payload.
5590           Updated the code and the protocol specs.
5591
5592         * Updated protocol specs for submitting to the IETF.
5593
5594         * Tweaked the Random Number Generator a bit.  Affected file
5595           lib/silccrypt/silcrng.c.  Exported a new function
5596           silc_rng_[global]_add_noise which can be used to add more
5597           noise to the RNG.
5598
5599 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5600
5601         * Do not parse packets with different timeout when protocol
5602           is active -> may cause problem with rekey.  Affected file
5603           silcd/server.c.
5604
5605         * When server receives signoff notify it must not create
5606           new channel key if the client is on any channels since the
5607           sender of the signoff notify will create it.
5608
5609 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5610
5611         * Added printing of error messages during SKE protocol from the
5612           failure packet sent by server during SKE.  Affected file
5613           silc/client_ops.c.
5614
5615         * Removed the client's failure_callback handling with timeout
5616           and handle it immediately when received.
5617
5618         * The SKE library returned wrong type in SUCCESS and FAILURE 
5619           packets.  They must be 32 bit MSB not 16 bit MSB.
5620
5621 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5622
5623         * Ok, rewrote the logic of the re-key and now it seems to work.
5624           I tested it on high traffic with frequent re-keys without
5625           problems.  Added hmac_receive (and renamed hmac to hmac_send)
5626           in SilcClientConnection in lib/silcclient/client.h and
5627           in SilcIDListData in silcd/idlist.h.  Also, removed the
5628           SilcPacketParserContext's cipher and hmac fields as they are
5629           not needed anymore and actually caused some problems when
5630           the ciphers and hmac's changed underneath the packet parser.
5631
5632 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5633
5634         * If re-key protocol is active then process the incoming packets
5635           synchronously since we must assure that icoming packets encrypted
5636           with the old key is processed before the new keys is set to
5637           use.  This is true other packets than for REKEY packets.
5638           Affected file silcd/server.c.  The same was done to client library
5639           as well, affected file lib/silcclient/client.c.
5640
5641 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5642
5643         * Fixed bug in client and server to accept the force send if
5644           the packet is send from silc_[server/client]_packet_process
5645           function.  Otherwise the packets are never delivered, oops.
5646
5647 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5648
5649         * Disable force sending of packets when REKEY protocol is active.
5650           We must assure that no packet is sent directly when rekey is
5651           performed.  All packets must be sent through packet queue.
5652           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
5653           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
5654           function is silc_[server/client]_packet_send_real to check
5655           the situation.
5656
5657         * Replaced the SIM paths from example config files to 
5658           /usr/local/modules.  Also, make install creates now
5659           /usr/local/silc/logs directory to hold all the SILC server
5660           logs.
5661
5662 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5663
5664         * Made the configure.in.pre work on Solaris.  Patch by salo.
5665
5666         * Made all ciphers compatible with non-x86 machines.  Defined
5667           CBC mode macros into lib/silccrypt/ciphers_def.h.
5668
5669 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5670
5671         * Fixed the make install.
5672
5673 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5674
5675         * When MAC computation fails the silc_packet_decrypt returned 0
5676           even though it was supposed to return -1.  Fixed this.  The
5677           affected file is lib/silccore/silcpacket.c.
5678
5679         * Do not replace the config files in /etc/silc (in make install)
5680           if they already exist.  Affected file ./Makefile.am.
5681
5682         * Do not send re-key packets immediately but through packet queue.
5683           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
5684
5685         * Changed silc_net_check_host_by_sock to return FALSE if the
5686           IP/DNS could not be resolved.  Though, it returns the IP address
5687           now even if it could not resolve it (but returns also FALSE).
5688           Affected file lib/silcutil/silcnet.[ch].
5689
5690 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5691
5692         * Added silc_pkcs_decode_identifier to decode the public key's
5693           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
5694           Added also silc_pkcs_free_identifier.  Added also new context
5695           SilcPublicKeyIdentifier.
5696
5697         * Added -S option to the silc client.  It is used to dump the
5698           contents of the specified public key file.
5699
5700         * Changed the PKCS api to return the public key length when
5701           setting the public key.
5702
5703         * Fixed a fatal bug in the public and private key file loading.
5704           Affected file lib/silccrypt/silcpkcs.c.
5705
5706         * Execute the packet parsing for client with zero (0) timeout
5707           if the protocol is active.  Affected file silcd/server.c.
5708
5709 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5710
5711         * Made the key generation options to the silcd program.  Added
5712           -C option, equivalent to client's option.
5713
5714         * Added new [ServerKeys] config section to the server.  It
5715           configures the server's public and private key.
5716
5717         * Defined generic Public Key Payload into the protocol
5718           specification to send specific type of public keys and
5719           certificates.
5720
5721         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
5722           public key or certificate.
5723
5724         * Implemented the GETKEY command to the server and to the
5725           client library and on user interface.
5726
5727 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5728
5729         * Made preliminary `make install' work.
5730
5731 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5732
5733         * Added SilcServerRekey context into silcd/idlist.h.
5734
5735         * Added the PFS support as defined in the specification to the
5736           SKE protocol.  Affected files lib/silcske/*.c.
5737
5738         * Added `ske_group' field to the SilcServerRekey context to hold
5739           the number of the SKE group that is used with PFS in re-key.
5740           Affected file silcd/idlist.h.
5741
5742         * Added PFS re-key support to the server.  Affected file is
5743           silcd/protocol.c.
5744
5745         * Added silc_protocol_cancel to cancel execution of the next
5746           state of the protocol.  Affected file is
5747           lib/silccore/silcprotocol.[ch].
5748
5749         * Added the re-key support with and without PFS to the client
5750           library.  Re-key is performed once in an hour, by default.
5751
5752           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
5753           Added silc_client_rekey_callback and silc_client_rekey_final.
5754           Affected files are lib/silcclient/protocol.[ch] and
5755           lib/silcclient/client.[ch].
5756
5757         * Removed the `hmac_key' and `hmac_key_len' fields from the
5758           SilcClientConnection structure; not needed.  Affected file is
5759           lib/silcclient/client.h.
5760
5761         * Updated TODO.
5762
5763 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5764
5765         * Do not ask whether user wants to use the negotiated private key
5766           for private messages, just use it.  Affected file is 
5767           silc/local_command.c.
5768
5769         * Added `send_enc_key' and `enc_key_len' fields to the 
5770           SilcIDListData structure since they are needed in the re-key
5771           phase.  Affected file is silcd/idlist.[ch].
5772
5773         * Implemented the simple re-key protocol into the server.
5774           Affected files silcd/server.c and silcd/protocol.[ch].  The
5775           re-key will be performed once in an hour, by default.
5776
5777           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
5778           Added silc_server_rekey, silc_server_rekey_callback and
5779           silc_server_rekey_final.
5780
5781         * Removed Tunneled flag from the protocol.  Updated the code
5782           and the specifications.
5783
5784         * Adde `pfs' field to the SilcIDListData to indicate whether
5785           the PFS is to be performed in the re-key.  Affected file is
5786           silcd/idlist.h.
5787
5788 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5789
5790         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
5791           int64 of at least the xintXX size.  If void * is less that 4
5792           bytes uint32 * will be used.  Defined bool as boolean.
5793
5794         * Changed _ALL_ unsigned long and unsigned int to uint32, 
5795           unsgined short to uint16 in the source tree.
5796
5797         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
5798           not handle clients that has entry->data.registered == FALSE.
5799           They are not in the network anymore.  Affected file is
5800           silcd/server.c.
5801
5802 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5803
5804         * Implemented the sending of the SERVER_SIGNOFF notify in the
5805           server.  Affected file is silcd/server.c.
5806
5807         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
5808           Added also silc_notify_payload_encode_args into the
5809           lib/silccore/silcnotify.[ch].
5810
5811         * Implemented ther SERVER_SIGNOFF notify handling in the server.
5812           Affected file silcd/packet_receive.c.
5813
5814         * Implemented the SERVER_SIGNOFF notify handling in the client
5815           library.  Affected file lib/silcclient/client_notify.c.  Also,
5816           implemnted the printing of the SERVER_SIGNOFF info to the
5817           application.  Affected file silc/client_ops.c.
5818
5819         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
5820           if the deleting was successful.  Affected file silcd/idlist.[ch].
5821
5822         * Added support for public key authentication in the connection
5823           authentication protocol in the client library.  Affected file
5824           lib/silcclient/protocol.c.
5825
5826         * Changed the server's silc_idlist_get_clients_by_* interface
5827           to support already allocated array so that new entries may be
5828           added to pre-allocated array.  Affected file silcd/idlist.[ch].
5829           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
5830           and command replies.
5831
5832         * All command reply functions in the server now calls the 
5833           pending command callback even if error occured.  This way the
5834           error will be delivered to the client as well.  Affected files
5835           silcd/command.c and silcd/command_reply.c.
5836
5837         * Fixed INFO command to return local server's info if no server
5838           was provided.  Affected file lib/silcclient/command.c.
5839
5840         * Removed RESTART command for good.  Updated the code and the
5841           protocol specs.
5842
5843         * Rewrote parts of the task system.  It is a bit simpler now.
5844           Removed unsued task priorities. The affected files are
5845           lib/silcutil/silctask.[ch].
5846
5847 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5848
5849         * Moved the USERS printing from the library to the application.
5850           Affected files lib/silcclient/command.c and silc/client_ops.c.
5851
5852 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5853
5854         * Updated TODO.
5855
5856         * Added channel key re-key support.  The re-key is perfomed
5857           only by the router and is done once in an hour.  Added `rekey'
5858           field to the SilcChannelEntry in the server.  Affected files
5859           silcd/server.c and silcd/idlist.h.
5860
5861         * Added silc_task_unregister_by_context into the file
5862           lib/silcutil/silctask.[ch].
5863
5864 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5865
5866         * Added SILC_UMODE_GONE mode to indicate when the client is not
5867           present in the SILC network.  Added also support to the local
5868           command AWAY that will set this mode.  Added support of showing
5869           "xxx is gone" in WHOIS command.  The USERS command shows the
5870           gone status as well.
5871
5872         * Fixed setting server and router operator privileges in the
5873           server's UMODE command.  Affected file silcd/command.c.
5874
5875         * Merged the SKE KE1 and KE2 payloads into one payload.  The
5876           new KE payload is equivalent to the old KE2 payload.
5877
5878           Cleaned up the SKE Start Payload parsing.  It now uses the
5879           simple buffer unformatting to do the parsing.  A lot faster
5880           now.
5881
5882           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
5883           to the SKE that is used to indicate whether both of the SKE
5884           parties should perform authentication.  By default only the
5885           responder performs authentication.  By setting this flag also
5886           the initiator must do authentication.  By default it is unset
5887           since in normal SKE case, client to server connection, only
5888           the responder should do authentication.  When doing SKE between
5889           two clients both should perform authentication.  Updated the
5890           code and the protocol specs.
5891
5892         * A little fix to IDENTIFY command in the server.  Search the
5893           client first by hash not nickname.  Affected file is 
5894           silcd/command.c.
5895
5896         * Fixed the silc_client_close_connection to support closing
5897           the client to client connections wihtout deleting too much
5898           data.  Affected file lib/silcclient/client.c.
5899
5900         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
5901           are received if protocol used to be active but is not anymore
5902           the application would crash due to NULL pointer dereference.
5903           Affected files silcd/server.c and lib/silcclient/client.c.
5904
5905         * Added `hash' field to the SilcClientConnection to include
5906           the hash function negotiated in the SKE protocol.
5907
5908         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
5909           to set the channel founder authentication data.  A client can
5910           claim the founder rights later by providing the authentication
5911           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
5912           This way the channel founder can regain the channel founder
5913           privileges even it is left the channel.  This works only on
5914           local server and the client must be connected to the same
5915           server to be able to regain the founder rights.  Updated the
5916           protocol specs accordingly.
5917
5918           Added support to the CMODE command in the client to set the
5919           founder auth data.  Read the README to see how to set it.
5920
5921           Added support to the CUMODE command to claim the founder
5922           rights.  Read the README to see how to do it.
5923
5924           Added support for the founder authentication to the Channel
5925           Entry in the server.  Affected file silcd/idlist.h.
5926
5927           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
5928           server's CMODE command.  Affected file silcd/command.c.
5929
5930         * Added the following new functions into lib/silccore/silcauth.[ch]:
5931           silc_auth_get_method and silc_auth_get_data.    
5932
5933         * The server now saves the remote hosts public key to the
5934           SilcIDListData pointer.  Affected file silcd/protocol.c.
5935
5936         * The normal server now does not remove the channel entry from
5937           the cache if the founder authentication data is set.  It used
5938           to remove it if the founder was the last one on the channel on 
5939           the server and left the channel.  The auth data is saved and
5940           if the channel is re-joined later the old entry is used with
5941           the old auth data.  Affected files silcd/command_reply.c and
5942           silcd/server.c.
5943
5944         * Removed the `pkcs' field from the SilcIDListData structure
5945           in the server; it is not used.  Affected file silcd/idlist.h.
5946
5947 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5948
5949         * Fixed packet processing on slow links.  Partial packets were
5950           never re-processed because the incoming data buffer was cleared
5951           by the application.  Application must not directly clear the
5952           sock->inbuf, the packet processing routines handle it.  Fixed
5953           this in client library and in server.
5954
5955 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5956
5957         * Fixed the WHOIS and IDENTIFY send reply function to really
5958           check whether to send list or just one entry.  Affected file
5959           silcd/command.c.
5960
5961         * Cleaned up the LEAVE command's channel key distribution.  The
5962           affected file silcd/command.c.
5963
5964         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
5965           can enforce the channel mode as well.  In that case the ID
5966           includes the ID of the server.  The code now enforces the
5967           mode change if the router have different mode than the server.
5968
5969         * The notify client operation with CMODE_CHANGE notify can now
5970           return NULL client_entry pointer if the CMODE was not changed
5971           by client.  Application must check for this.
5972
5973         * Added <Server ID> argument to INFO command to support server
5974           info fetching by Server ID.
5975
5976         * Added silc_server_announce_get_channel_users to get assembled
5977           packets of channel users of the specified channel.  Affected
5978           file silcd/server.[ch].
5979
5980         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
5981           was freed underneath the ID Cache.
5982
5983         * Re-announce clients when the server received CHANNEL_CHANGE
5984           notify from the router.  Affected file silcd/packet_send.c.
5985
5986 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5987
5988         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
5989           crashed since it did not handle the fact that there is no cipher
5990           called "3" and didn't check the error condition.  Now fixed.
5991
5992         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
5993           flag.  It can be used to send message requests.
5994
5995 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5996
5997         * Implemented the RESTART command in the client.
5998
5999         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
6000           notice type messages.  Added notice printing to the user
6001           interface.
6002
6003         * The channel keys are not re-generated if the channel's mode
6004           is PRIVKEY, ie private key on the channel exists.  Affected
6005           files silcd/server.c and silcd/command.c.
6006
6007         * Fixed a little bug in channel message delivery when channel
6008           private keys are set in the server.  Affected file is
6009           silcd/packet_send.c.
6010
6011         * Changed the setting on channel->on_channel = TRUE from the
6012           silc_client_save_channel_key to the JOIN command reply.  The
6013           key payload is not received if the private channel key is set.
6014           Affected file lib/silcclient/command_reply.c and the
6015           lib/silcclient/client_channel.c.
6016
6017         * When the CMODE_CHANGE notify is sent and the channel private
6018           key mode is removed the channel key must be re-generated in
6019           other cells as well.  Added this support for the router in the
6020           silcd/packet_receive.c.
6021
6022         * Added new local command NOTICE to send notice message on
6023           channel.  Affected file silc/local_command.[ch].
6024
6025 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6026
6027         * Added new local command ME to the client.  It is used to send
6028           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
6029           some action.  Affected file silc/local_command.[ch].
6030
6031         * Changed channel_message and private_message client operations 
6032           to deliver the message flags to the application.  Added also
6033           the `flags' arguments to the silc_client_send_channel_message
6034           and silc_client_send_private_message functions.  Affected file
6035           silcapi.h.
6036
6037 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6038
6039         * Redefined the Private Message Payload to support private message
6040           keys and to support the new private message flags.  Updated
6041           the protocol specs.  Flags makes it possible to have for example
6042           CTCP style messages.
6043
6044         * Added new type SilcPrivateMessagePayload and defined an API
6045           for it in the lib/silcclient/silcprivate.[ch].
6046
6047         * Tested private message private keys successfully.  Tested the
6048           private message key set, unset and list commands with the new
6049           KEY command.
6050
6051         * Redefined the Channel Message Payload to include the channel
6052           message flags (equal with private message flags) to support
6053           for example CTCP style messages.
6054
6055         * Defined some of the message (for channel and private message)
6056           flags.  Updated the protocol specs and added the flags to the
6057           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
6058
6059 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6060
6061         * Added SilcKeyAgreementStatus type to the key agreement routines
6062           to indicate the current status and error if one occured.
6063           The status types are defined in the lib/silcclient/silcapi.h.
6064
6065         * Added new local command KEY that is used to set and unset private
6066           keys for channels, set and unset private keys for private messages
6067           with remote clients and to send key agreement requests and
6068           negotiate the key agreement protocol with remote client.  The
6069           key agreement is supported only to negotiate private message keys,
6070           it currently cannot be used to negotiate private keys for channels,
6071           as it is not convenient for that purpose.
6072
6073         * Fixed a minor pending callback setting bug in the function
6074           silc_client_get_client_by_id_resolve, now the function works.
6075           Affected file lib/silcclient/idlist.c.
6076
6077         * Added function silc_net_get_local_port to get local bound
6078           port by socket.  Added to lib/silcutil/silcnet.[ch].
6079
6080         * Added `sockets' and `sockets_count' fields to the SilcClient
6081           object.  They hold the sockets of the listenning sockets in
6082           the client.  Listenning sockets may be for example the key 
6083           agreement server.  Affected file lib/silcclient/client.[ch].
6084           Added functions the silc_client_add_socket and the
6085           silc_client_del_socket.  They are exported to the application
6086           as well.
6087
6088         * Added ~./silc/clientkeys to support other client's public keys.
6089
6090         * Renamed verify_server_key client operation to verify_public_key
6091           and added one argument to indicate the type of the connection
6092           (server, client etc.).
6093
6094 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6095
6096         * Added silc_server_connection_auth_request to handle the
6097           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
6098           silcd/packet_receive.[ch].
6099
6100         * Added silc_server_send_connection_auth_request into the
6101           silcd/packet_send.c to send the connection auth request packet.
6102
6103         * Cleaned up the silcd/protocol.c a bit and fixed some memory
6104           leaks.
6105
6106         * Fixed the public key authentication in responder side in the
6107           server.  The `auth_data' pointer includes the SilcPublicKey
6108           not the path to the public key.  Affected file silcd/protocol.c.
6109
6110         * Implemented the public key authentication in the initiator side
6111           in the server.  Affected file silcd/protocol.c.
6112
6113         * Removed the [RedirectClient] config section from the server
6114           configuration.  Is not needed and I don't want to implement it.
6115
6116 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6117
6118         * Cleaned up the CMODE command in the server.  It now works
6119           correctly and supports all the modes defined in the protocol.
6120           Affected file is silcd/command.c.
6121
6122         * Added `hmac_name' field to the SilcChannelEntry in the server
6123           to hold the default HMAC of the channel.  It can be set when
6124           creating the channel (with JOIN command).  Affected files
6125           silcd/idlist.[ch].
6126
6127         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
6128           type to indicate the change of the current cipher and hmac
6129           on the channel.  Client can safely ignore the <cipher> argument
6130           (if it chooses to do so) since the CHANNEL_KEY packet will 
6131           force the channel key change anyway.  The <hmac> argument is
6132           important since the client is responsible of setting the new
6133           HMAC and the hmac key into use.
6134
6135         * Fixed the CMODE command in the client library as well.
6136
6137         * Tested CMODE command in router environment successfully.
6138
6139 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6140
6141         * Show the version of the remote client (or server) when connecting
6142           to the server.  It is logged to the log file.  Affected file
6143           is silcd/protocol.c.
6144
6145         * Fixed the KILLED notify handling in the client library.  The
6146           client must be removed from all channels when receiving the
6147           KILLED notify.
6148
6149           Also, do not remove the client entry when giving the KILL 
6150           command but when the KILLED notify is received.
6151
6152         * Removed silc_idlist_find_client_by_nickname from the server.
6153           Not needed anymore.  Affected files silcd/idlist.[ch].
6154
6155         * Implemented the CHANNEL_CHANGE notify type handling to the
6156           server.  Affected file silcd/server.c.
6157
6158         * Updated TODO.
6159
6160 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6161
6162         * Added silc_server_send_notify_invite to send the INVITE
6163           notify between routers.
6164
6165         * Implemented the INVITE command correctly to the server.
6166
6167         * Implemented the INVITE notify type handling in the server.
6168
6169         * Implemented the INVITE command to the client library and on the
6170           user interface.
6171
6172 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6173
6174         * Added function silc_server_get_client_resolve to find the
6175           client entry by ID from all ID lists and then resolve it
6176           (using WHOIS) if it cannot be found.  Affected file is
6177           silcd/server.[ch].
6178
6179 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6180
6181         * Implemented the BAN command to the client library.
6182
6183         * The JOIN command in the server now checks the invite list
6184           and the ban list.
6185
6186         * Changed the silc_command_reply_payload_encode_va and the
6187           silc_command_payload_encode_va to support that if argument is
6188           NULL it ignores and checks the next argument.  Affected file
6189           lib/silccore/silccommand.c.
6190
6191         * Added silc_server_send_notify_ban to send the BAN notify
6192           type between routers.
6193
6194         * Chaned the silc_notify_payload_encode to support that if 
6195           argument is NULL it ignores and checks the next argument.
6196           Affected file lib/silccore/silcnotify.c.
6197
6198         * Tested ban lists in router environment successfully.
6199
6200 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6201
6202         * Implemented BAN command to the server, in silcd/command.[ch].
6203
6204         * Removed the BAN and INVITE_LIST modes from the CMODE command
6205           in the server code.
6206
6207         * Added function silc_string_match to regex match two strings.
6208           Affected files lib/silcutil/silcutil.[ch].
6209
6210 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6211
6212         * Redefined parts of the SilcChannelEntry in the server to support
6213           the new ban and invite lists.
6214
6215 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6216
6217         * Redefined the INVITE command.  The same command can be used to
6218           invite individuals to the channel but also to manage the invite
6219           list of the channel (to add to and remove from the invite list).
6220           Updated the protocol specs.
6221
6222         * Added new command SILC_COMMAND_BAN that can be used to manage
6223           the ban list of the channel.  Updated the protocol specs.
6224
6225         * Removed the channel modes: the SILC_CMODE_BAN and the 
6226           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
6227           in the CMODE command.  The equivalent features are now available
6228           using INVITE and BAN commands.  Updated the protocol specs.
6229
6230         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
6231           in the network about change in the current ban list.  The notify
6232           type is not used by the client.
6233
6234         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to 
6235           support the invite lists.
6236
6237 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6238
6239         * Added new function silc_string_regexify that converts string
6240           including wildcard characters into regex string that can
6241           be used by the GNU regex library.  Added into the file
6242           lib/silcutil/silcutil.[ch].
6243
6244           Added silc_string_regex_combine to combine to regex strings
6245           into one so that they can be used as one regex string by
6246           the GNU regex library.  Added into the file
6247           lib/silcutil/silcutil.[ch].
6248
6249           Added silc_string_regex_match to match two strings.  It returns
6250           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
6251
6252 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6253
6254         * Imported GNU regex to the soruce tree into lib/contrib.
6255           Fixed some compiler warning from the regex.c.
6256
6257 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6258
6259         * Fixed MOTD command in the server to work in router environment.
6260
6261         * Fixed the MOTD command in the client library to support
6262           the server argument in the command.
6263
6264         * Added `nickname_len' argument to the silc_idlist_add_client
6265           in the server, as the `nickname' argument may be binary data
6266           (it may be hash).
6267
6268         * Added silc_idlist_get_channels to return all channels from
6269           the ID list.
6270
6271         * Implemented LIST command to the server.  Affected file is
6272           silcd/command.c.
6273
6274         * Implemented the LIST command to the client library and on the
6275           user interface.
6276
6277         * Added [<user count>] argument to the LIST command reply.
6278           With private channels the user count is not shown.
6279
6280         * Updated TODO and README.
6281
6282 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6283
6284         * The client entry's data.registered must be TRUE even with
6285           global client entry on global client list.  The data.registered
6286           is used to check whether the client is anymore in the network,
6287           for example with WHOWAS command so it must be valid.
6288
6289         * Fixed the WHOWAS command in the server.  It now actually works
6290           in router environment.  Added function into silcd/command_reply.c
6291           silc_server_command_reply_whowas_save.
6292
6293         * Added silc_idlist_purge function to the silcd/idlist.c
6294           to periodically purge the ID Cache.
6295
6296         * Fixed INFO command in the server.  It works now in router
6297           environment.  Added <server name> argument to the INFO command
6298           reply.  Updated the protocol specs.
6299
6300         * Fixed minor bug in silc_idcache_purge to not purge if the
6301           expire value is zero.
6302
6303         * Fixed various bugs in WHOIS and IDENTIFY command handling as
6304           they were buggy because of the WHOWAS information.
6305
6306         * Fixed local command MSG to handle the async resolving of 
6307           the remote client properly.  It used to fail the first MSG.
6308           Affected file silc/local_command.c.
6309
6310         * Added `data_len' field to SilcIDCache context.
6311
6312 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6313
6314         * Update TODO.  Todo in commands in the server.
6315
6316 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6317
6318         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
6319           used by routers as broadcast packet to inform other routers
6320           about the changed user mode.
6321
6322           Implemented the notify handling in the server.  Affected file is
6323           silcd/packet_receive.c.  Added the function 
6324           silc_server_send_notify_umode to the silcd/packet_send.[ch].
6325
6326         * Added new generic Channel Payload and deprecated the New Channel
6327           Payload.  The New Channel Payload is now the generic Channel
6328           Payload.
6329
6330         * Added new argument `mode' to the silc_server_send_new_channel
6331           as it is required in the Channel Payload now.
6332
6333         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
6334           and created a new and real SilChannelPayload to represent the
6335           new generic Channel Payload.  Implemented the encode/decode
6336           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
6337
6338         * Added silc_server_get_client_channel_list to return the list
6339           of channels the client has joined for WHOIS command reply.
6340           Affected file silcd/server.[ch].
6341
6342         * Implemented the channel list sending in the WHOIS command reply
6343           in server and in the client.
6344
6345           Implemented the channel list displaying on the user interface
6346           as well.  Affected file silc/client_ops.c.
6347
6348         * Added silc_channel_payload_parse_list to parse list of Channel
6349           Payloads.  It returns SilcDList list of SilcChannelPayloads.
6350           Client for example can use this function to parse the list of
6351           channels it receives in the WHOIS command reply.  The caller
6352           must free the list by calling silc_channel_payload_list_free.
6353           Affected files lib/silccore/silcchannel.[ch].
6354
6355 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6356
6357         * Added one new argument <user mode> to the WHOIS command reply
6358           to return the mode of the user in SILC.  Updated the protocol
6359           specs.
6360
6361           Implemented it to the server and client.
6362
6363 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6364
6365         * Fixed the mode printing on the user interface on joining.
6366           Affected file silc/client_ops.c.
6367
6368         * Implemented the UMODE command and user modes in general to the
6369           client library and to the user interface.
6370
6371         * Implemented the UMODE command to the server.
6372
6373         * The server now sends UNKNOWN_COMMAND error status if client sends
6374           unknown command.  Affected file silcd/command.c.
6375
6376         * All server commands now handle the command identifier the right
6377           way when sending the command reply to the client.  The client can
6378           use to identify the command replies with the identifier.
6379
6380 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6381
6382         * Added silc_server_get_client_route to resolve the route to
6383           the client indicated by the client ID.  Affected file is
6384           silcd/server.[ch].
6385
6386         * Added silc_server_relay_packet as general function to relay
6387           packet to arbitrary destination.  This deprecates functions
6388           like _send_private_message_key, _relay_notify etc.  Affected
6389           file is silcd/packet_send.[ch].
6390
6391           Removed silc_server_send_key_agreement, 
6392           silc_server_send_private_message_key and
6393           silc_server_packet_relay_notify functions from the file
6394           silcd/packet_send.[ch].
6395
6396         * Updated TODO.
6397
6398         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
6399           server.  Affected file silcd/packet_receive.[ch].
6400
6401         * Implemented the KILL command to the client.  Implemented the
6402           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
6403           Affected files lib/silcclient/command[_reply].c and
6404           lib/silcclient/client_notify.c.  Implemented the KILL notify
6405           printing in the user inteface.
6406
6407         * Fixed a lot silc_parse_nick memory leaks from the client
6408           library in the file lib/silcclient/command.c.
6409
6410         * Changed the silc_server_send_notify_on_channels's `sender'
6411           argument from SilcSocketConnection to SilcClientEntry to 
6412           check the sender as entry and not as connection object and not
6413           to send to the client provided as argument.  The affected file
6414           is silcd/packet_send.[ch].
6415
6416         * The notify packets that are destined directly to the client used
6417           to not to be processed by the server.  Now changed that and the
6418           server processes all notify packets.  After relaying the packet
6419           to the client the notify packet is processed in the server.
6420
6421         * The silc_server_free_client_data now checks whether there is
6422           pending outgoing traffic for the client and purges the data to
6423           the network before removing the client entry.
6424
6425 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6426
6427         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
6428           an client is killed from the SILC Network.  Updated the protocol
6429           specs accordingly.
6430
6431           Added new function silc_server_send_notify_killed to the
6432           silcd/packet_send.[ch].
6433
6434         * Added function silc_server_packet_relay_notify to relay notify
6435           packets that are destined directly to a client.  In this case
6436           the server does not process the notify packets but merely relays
6437           it to the client.  Affected file silcd/packet_send.[ch].
6438
6439           Added also silc_server_packet_process_relay_notify to check
6440           whereto relay the notify.  Affected file is 
6441           silcd/packet_receive.[ch].
6442
6443         * Implemented the KILL command to the server.
6444
6445         * Updated TODO.
6446
6447         * Added the backup schema desgined last fall to the protocol
6448           specs for everyone to see.  The specification is in the
6449           *-spec-xx.txt draft and the packet type definitions for the
6450           backup routers is in *-pp-xx.txt draft.  Thusly, added also
6451           new packet type SILC_PACKET_CELL_ROUTERS.
6452
6453         * A big security problem in the implementation discovered.  The
6454           signoff of an client did not cause new channel key generation
6455           which it of course should've done.  The channel keys must be
6456           always re-generated when client leaves (or signoffs) the channel.
6457           The silc_server_remove_from_channels funtion now handles
6458           the channel key re-generation.
6459
6460         * Added `sender' argument to the silc_server_send_notify_on_channels
6461           to not to send the client provided as argument.  Affected file
6462           silcd/packet_send.[ch].
6463
6464 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6465
6466         * Implemented OPER and SILCOPER commands into the server and
6467           the client library.
6468
6469         * Added silc_auth_verify and silc_auth_verify_data to verify
6470           the authentication directly from the authentication payload.
6471           It supports verifying both passphrase and public key based
6472           authentication.  Affected file lib/silccore/silcauth.[ch].
6473
6474         * Added `hash' field to the SilcIDListData structure.  It is the
6475           hash negotiated in the SKE protocol.  Affected file is
6476           silcd/idlist.[ch].
6477
6478         * Slight redesigning of the SilcAuthPayload handling routines.
6479           Do not send SilcPKCS but SilcPublicKey as argument.
6480
6481         * Implemented the public key authentication support to the
6482           serverconfig.  The public key is loaded from the provided path
6483           and saved as authentication data to void * pointer.  Thus,
6484           changed the unsigned char *auth_data to void *auth_data;
6485
6486         * Fixed SHUTDOWN command to send the reply before the server
6487           is shutdown. :)  Affected file silcd/command.c.
6488
6489         * Fixed fatal bug in CONNECT command.  The hostname was invalid
6490           memory and server crashed.  Affected file silcd/command.c.
6491
6492         * Fixed fatal bug in CLOSE command.  The server_entry became
6493           invalid but was referenced later in the command.  Affected file
6494           silcd/command.c.
6495
6496 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6497
6498         * Fixed fatal bug in failure packet handling.  Server ignored
6499           the failure and thus crashed when it came.
6500
6501         * Updated TODO.
6502
6503 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6504
6505         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
6506           that the command may be executed only once in (about) 2 seconds.
6507           The old SILC_CF_LAG flag is same but allows command bursts up
6508           to five before limiting.
6509
6510           Added the support for CF_LAG and CF_LAG_STRICT flags to the
6511           server code.  Various commands now includes the CF_LAG_STRICT
6512           flag to disallow any kind of miss-use of the command.
6513
6514         * Fixed the silc_buffer_unformat to not to allocate any data
6515           if the length of the data is zero.  It used to allocate the
6516           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
6517
6518 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6519
6520         * Changed the format of AdminConnection configuration section
6521           in the server.  Added username of the admin to the format.
6522           Affected files silcd/serverconfig.[ch].
6523
6524           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
6525           to return admin configuration data by host, username and/or
6526           nickname.
6527
6528 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6529
6530         * Implemented WHOWAS command to the server.  Added the functions:
6531
6532           silc_server_command_whowas_parse,
6533           silc_server_command_whowas_send_reply,
6534           silc_server_command_whowas_from_client and
6535           silc_server_command_whowas_from_server
6536
6537         * Added <Client ID> argument to the WHOWAS command reply.  Updated
6538           the protocol specs accordingly.
6539
6540         * Implemented WHOWAS command and command_reply to the client
6541           library.
6542
6543           Implemented the WHOWAS printing on the user interface.
6544
6545 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6546
6547         * Added new argument to the WHOWAS command reply, the real name.
6548           It is an optional argument.  Updated the protocol specs.
6549
6550         * Added SilcIDCacheDestructor callback that is registered when
6551           the SilcIDCache is allocated.  The callback is called when
6552           an cache entry in the ID Cache expires, or is purged from the
6553           cache.  Added into lib/silccore/idcache.[ch].
6554
6555           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
6556           to destruct the client entries when the cache entry expires.
6557           Other ID Cache's in server and in the client library ignores
6558           the destructor.
6559
6560         * If the ID Cache entry's `expire' field is zero then the entry
6561           never expires.  Added boolean `expire' argument to the
6562           silc_idcache_add function in the lib/silccore/idcache.[ch].
6563           If it is TRUE the default expiry value is used.
6564
6565         * Added silc_server_free_client_data_timeout that is registered
6566           when client disconnects.  By default for 5 minutes we preserve
6567           the client entry for history - for WHOWAS command.
6568
6569 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6570
6571         * Added support to the server to enforce that commands are not
6572           executed more than once in 2 seconds.  If server receives 
6573           commands from client more frequently, timeout is registered
6574           to process the commands.  Affected file silcd/command.c.
6575           Added new function silc_server_command_process_timeout.
6576
6577         * Changed NICK_NOTIFY handling in client library to check that
6578           if the client's nickname was changed, so there is no need to
6579           resolve anything from the server.
6580
6581         * Removed error printing from the WHOIS and IDENTIFY commands.
6582           If error occurs then it is ignored silently in the client library.
6583           The application, however, may map the received error to 
6584           human readable error string.  The application currently maps
6585           the NO_SUCH_NICKNAME error to string.
6586
6587         * Made the command status message public to the application.  Moved
6588           them from lib/silcclient/command_reply.c to 
6589           lib/silcclient/command_reply.h.  The application can map the
6590           received command status to the string with the
6591           silc_client_command_status_message function.
6592
6593         * Added check to the server to check that client's ID is same
6594           as the Source ID in the packet the client sent.  They must
6595           match.
6596
6597 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6598
6599         * Added dist-bzip hook to the Makefile.am to make bzip2
6600           compressed distributions.
6601
6602 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6603
6604         * Server now enforces the maximum length for the nickname and
6605           the channel as protocol specification dictates.  128 bytes for
6606           nickname and 256 bytes for channel name.
6607
6608         * Moved the WHOIS printing to the application.  The client libary
6609           does not print out the WHOIS information anymore, the application
6610           must do it.  Renamed silc_client_command_reply_whois_print to
6611           the silc_client_command_reply_whois_save.
6612
6613           The client's idle time is also sent to the application now, and
6614           the idle is shown on screen.
6615
6616         * Added silc_client_command_reply_identify_save to save the
6617           received IDENTIFY entries.
6618
6619         * Do not check for channel private keys in message sending and
6620           reception if the channel does not have the PRIVKEY mode set.
6621           Affected file lib/silclient/client_channel.c.
6622
6623 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6624
6625         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
6626           just surfaced after chaning the JOIN procedure.
6627
6628 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6629
6630         * Added silc_client_get_clients_by_list to get client entries
6631           from Client ID list, that is returned for example by JOIN
6632           and USERS command replies.  The application should use this
6633           function for example when JOIN command reply is received to
6634           resolve the clients already on the channel (library does not
6635           do that anymore as USERS command reply is not used in the JOIN
6636           procedure anymore).  Affected files lib/silcclient/silcapi.h and
6637           lib/silcclient/idlist.c.
6638
6639         * JOIN command reply and USERS command reply returns now SilcBuffer
6640           pointers instead of unsigned char pointers when returning
6641           the client list and mode list.
6642
6643         * Added <Client ID> argument to the JOIN command reply, mainly
6644           for the server to identify for which client the command was
6645           originally sent.  Updated protocol specs accordingly.
6646
6647         * Added SilcDlist private_key pointer to the SilcChannelEntry
6648           in the client to support the channel private keys.  Affected
6649           file is lib/silcclient/idlist.h.
6650
6651         * Added SilcChannelPrivateKey argument to the function
6652           silc_client_send_channel_message so that application can choose
6653           to use specific private ke if it wants to.  If it is not provided,
6654           the normal channel key is used, unless private keys are set. 
6655           In this case the first (key that was added first) is used 
6656           as the encryption key.
6657
6658         * Implemented the support for channel private key handling.
6659           Implemented the following functions:
6660
6661           silc_client_add_channel_private_key,
6662           silc_client_del_channel_private_keys,
6663           silc_client_del_channel_private_key,
6664           silc_client_list_channel_private_keys and
6665           silc_client_free_channel_private_keys
6666
6667           Affected file lib/silcclient/client_channel.c.
6668
6669         * Added the support for the private keys in the channel message
6670           sending and encryption and in the message reception and
6671           decryption.  Affected funtions are
6672           silc_client_send_channel_message and silc_client_channel_message.
6673
6674 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6675
6676         * Added SKE's key verify callback to the client library's
6677           KE protocol context. Affected files lib/silcclient/protocol.[ch].
6678
6679         * Removed the statement that server (or router) must send USERS
6680           command reply when joining to the channel so that the client
6681           knows who are on the channel.  Instead, the client list and 
6682           client's mode list is now sent in the JOIN command reply to the
6683           client who joined channel.  This is better solution.
6684
6685         * Added function silc_server_get_users_on_channel and function
6686           silc_server_save_users_on_channel to the silcd/server.[ch].
6687
6688         * Removed function silc_server_command_send_users from the
6689           silcd/command.c.
6690
6691         * Do not show topic on the client library anymore.  The topic is
6692           sent in the command reply notify to the application and the
6693           application must show the topic now.
6694
6695 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6696
6697         * Added client searching by nickname hash into the IDENTIFY and
6698           WHOIS commands in the server as they were clearly missing from
6699           them.  Affected file is silcd/command.c.
6700
6701         * Fixed a bug in private message receiving in the client library.
6702           The remote ID was freed and it wasn't supposed, now it is
6703           duplicated.
6704
6705 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6706
6707         * Minor fix to the channel payload; allocate the data area, as it
6708           needs to be of specific length.
6709
6710         * If the key agreement port is zero then the operating
6711           system will define the bound port.  Affected files are
6712           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
6713
6714         * Added new function silc_channel_payload_decrypt into the file
6715           lib/silccore/silcchannel.[ch].
6716
6717         * Moved the channel message etc, check from silc_packet_decrypt
6718           to applications.  The library calls now a generic 
6719           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
6720           when the packet is either normal or special.  This was done to
6721           allow more wide range of checking that was not allowed when
6722           the code was in library.  Now applications can do virtually any
6723           checks to the packet and return to the library the decision how
6724           the packet should be processed.  Affected files are
6725           lib/silccore/silcpacket.[ch].
6726
6727           Added silc_server_packet_decrypt_check to the server and
6728           silc_client_packet_decrypt_check to the client library.
6729
6730         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
6731           to send with specified source and destination information.
6732
6733         * Channel message delivery between routers was broken after the
6734           channel key distribution was fixed earlier.  The channel key
6735           was used be to distributed to other routers as well which is not
6736           allowed by the protocol.  Now this is fixed and channel keys
6737           really are cell specific and the channel message delivery between
6738           routers comply with the protocol specification.
6739
6740         * Fixed various commands in server to check also the global list
6741           for the channel entry and not just the local list.  The affected
6742           file silcd/command.c.
6743
6744 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6745
6746         * Added assert()s to buffer formatting and unformatting routines
6747           to assert (if --enable-debug) when error occurs.  Affected
6748           file: lib/silcutil/silcbuffmt.c.
6749
6750         * Changed to auto-reconnect to check whether the remote host is
6751           router and register the re-connect timeout if it is.  It used 
6752           to check that whether we are normal server, but router must do
6753           auto-reconnect with another router as well.  Affected file
6754           silcd/server.c.
6755
6756         * Removed the [<key len>] option from CMODE command as the cipher
6757           name decides the key length, nowadays.  See the defined ciphers
6758           from the protocol specification.
6759
6760         * Added [<hmac>] option to the CMODE command to define the HMAC
6761           for the channel.  Added SILC_CMODE_HMAC channel mode.
6762
6763         * Added [<hmac>] option for the JOIN command so that user can
6764           select which HMAC is used to compute the MACs of the channel
6765           messages.
6766
6767         * Added Hmac field to the Channel Message Payload.  The integrity
6768           of plaintext channel messages are now protected by computing
6769           MAC of the message and attaching the MAC to the payload.  The
6770           MAC is encrypted.  Now, it is clear that this causes some
6771           overhead to the size of the packet but rationale for this is that
6772           now the receiver can verify whether the channel message decrypted
6773           correctly and also when private keys are set for the channel the
6774           receiver can decrypt the packet with several keys and check from
6775           the MAC which key decrypted the message correctly.
6776
6777         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
6778           lib/silccrypt/silccipher.[ch].
6779
6780         * Added silc_hash_len to return the digest length into the
6781           lib/silcrypt/silchash.[ch].
6782
6783         * Rewrote parts of Silc Channel Payload interface in the
6784           lib/silccore/silcchannel.[ch].  The encode function now also
6785           encrypts the packet and parse function decrypts it.
6786
6787 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6788
6789         * Fixed a minor formatting bug in the SKE's key material processing.
6790           It actually might have processed the keys wrong way resulting
6791           into wrong keys.
6792
6793         * Redefined the mandatory HMAC algorithms and added new algorithms.
6794           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
6795           and hmac-md5 truncated to 96 bits.  The mandatory is now 
6796           hmac-sha1-96.  Rest are optional (including the one that used
6797           to be mandatory).  Rationale for this is that the truncated HMAC
6798           length is sufficient from security point of view and can actually
6799           make the attack against the HMAC harder.  Also, the truncated
6800           HMAC causes less overhead to the packets.  See the RFC2104 for
6801           more information.
6802
6803         * Added new [hmac] configuration section.  The SKE used to use
6804           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
6805           is of course wrong.  The official names that must be proposed in
6806           the SKE are the ones defined in the protocol specification
6807           (hmac-sha1-96 for example).  The user can configure any hmac
6808           using any hash function configured in the [hash] section.  At
6809           least, the mandatory must be configured.
6810
6811           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
6812
6813         * Added HMAC list to the SKE proposal list.  It has now both
6814           hash algorithm list and HMAC list.  This makes the protocol
6815           incompatible with previous versions.  The SKE now seems to work
6816           the way it is supposed to work, for the first time actually.
6817
6818         * Defined plain Hash algorithms to the protocol specification.
6819           Added sha1 and md5.
6820
6821 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6822
6823         * Implemented support for key agreement packets into the server.
6824           Added functions silc_server_key_agreement and
6825           silc_server_send_key_agreement.  Other than these functions,
6826           server has nothing to do with this packet.
6827
6828         * Added support for private message key packets into the server.
6829           Added functions silc_server_private_message_key and
6830           silc_server_send_private_message_key.
6831
6832         * Updated TODO.
6833
6834         * Changed the silc_[client|server]_protocol_ke_set_keys to be
6835           called in the protocol's final callback instead in the END
6836           protocol state.  This makes a little more sense and in the same
6837           time in client we can use the same protocol routines for normal
6838           key exchange and to key agreement packet handling as well.
6839
6840         * Added to both client's and server's KE protocol context the
6841           SilcSKEKeyMaterial pointer to save the key material.  We will
6842           bring the key material to the protocol's final callback by doing
6843           this.  The final callback must free the key material.
6844
6845         * Added SKE's packet_send callback into client's KE protocol
6846           context so that the caller can choose what packet sending function
6847           is used.  This way we can use different packet sending when
6848           doing normal SKE when doing key agreement packet handling (in
6849           the key agreement packet handling we do not want to encrypt
6850           the packets).
6851
6852         * Implemented the responder side of the key agreement routines
6853           in the client.  The client can now bind to specified port and
6854           accept incoming key negotiation.  The key material is passed
6855           to the application after the protocol is over.
6856
6857         * Implemented the processing of incoming Key Agreement packet
6858           in the client.  Added function silc_client_key_agreement to
6859           process the packet.
6860
6861         * Implemented the intiator side of the key agreement routines
6862           in the client.  The client can now initiate key agreement with
6863           another remote client.  The key material is passed to the
6864           application after the protocol is over.
6865
6866         * Created client_keyagr.c to include all the key agreement 
6867           routines.
6868
6869         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
6870           SILC_TASK_CALLBACK except that it is not static.
6871
6872         * Created client_notify.c and moved the Notify packet handling
6873           from the client.[ch] into that file.
6874
6875         * Created client_prvmsg.c and moved all private message and
6876           private message key routines from the client.[ch] into that file.
6877
6878         * Create client_channel.c and moved all channel message and
6879           channel private key routines from the client.[ch] into that file.
6880
6881         * Changed silc_client_get_client_by_id_resolve to resolve with
6882           WHOIS command instead of IDENTIFY command, in the file
6883           lib/silclient/idlist.c.
6884
6885 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6886
6887         * Implemented the SKE's responder side to the Client library.
6888
6889         * When FAILURE is received to the protocol do not trust it
6890           blindly.  Register a timeout to wait whether the remote closes
6891           the connection as it should do it, only after that process the
6892           actual failure.  This was changed to both client and server.
6893
6894         * Added client_internal.h to include some of the structures
6895           there instead of client.h in lib/silcclient/.
6896
6897         * Added function silc_task_unregister_by_callback to unregister
6898           timeouts by the callback function.
6899
6900 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6901
6902         * Some "Incomplete WHOIS info" errors has been appearing on the
6903           log files.  Took away the entry->userinfo check from WHOIS
6904           reply sending.  The entry->userinfo is now " " if client did not
6905           provide one.  I thought this was fixed earlier but something
6906           is wrong still.  Let's see if the error still appears.
6907
6908 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6909
6910         * Fixed a minor bug in the login when the channel key is
6911           re-generated in the server.  It used to generate the key in
6912           wrong order and thus caused problems in the channel traffic.
6913
6914         * Fixed a minor bug in channel key distsribution after
6915           KICK command.  The key was not sent to the router even though
6916           it should've been.
6917
6918 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6919
6920         * Added silc_ske_process_key_material_data as generic routine
6921           to process any key material as the SILC protocol dictates.  The
6922           function is used by the actual SKE library but can be used by
6923           applications as well.  This relates to the private message keys
6924           and the channel private keys since they must be processed the
6925           same way the normal SILC session keys.  The protocol dictates
6926           this.  Affected files: lib/silcske/silcske.[ch].
6927
6928           Added also silc_ske_free_key_material to free the
6929           SilcSKEKeyMaterial structure.
6930
6931         * Defined silc_cipher_set_key function to set the key for
6932           cipher without using the object's method function.  The affected
6933           files: lib/silccrypt/silccipher.[ch].
6934
6935         * Implemented silc silc_client_add_private_message_key,
6936           silc_client_add_private_message_key_ske, 
6937           silc_client_del_private_message_key,
6938           silc_client_list_private_message_keys and
6939           silc_client_free_private_message_keys functions in the
6940           client library.
6941
6942           Added functions silc_client_send_private_message_key to send
6943           the Private Message Key payload and silc_client_private_message_key
6944           to handle incoming Private Message Key payload.
6945
6946         * Added Cipher field to the Private Message Key payload to set
6947           the cipher to be used.  If ignored, the default cipher defined
6948           in the SILC protocol (aes-256-cbc) is used.
6949
6950 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6951
6952         * Removed lib/silcclient/ops.h file.
6953
6954           Redefined parts of the SILC Client Library API. Created new
6955           file silcapi.h that deprecates the ops.h file and defines the
6956           published Client Library API.  Defined also private message key
6957           API and channel private key API into the file.
6958
6959           This is the file that the application must include from the
6960           SILC Client Library.  Other files need not be included by
6961           the application anymore.
6962
6963         * Added new key_agreement client operation callback and also
6964           defined the Key Agreement library API for the application.
6965
6966 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6967
6968         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
6969           is used by clients to request key negotiation  between another
6970           client in the SILC network.  If the negotiation is started it
6971           is performed using the SKE protocol.  The result of the
6972           negotiation, the secret key material, can be used for example
6973           as private message key.
6974
6975           Implemented the Key Agreement payload into the files
6976           lib/silccore/silauth.[ch].
6977
6978 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6979
6980         * Redefined ciphers for the SILC protocol.  Added some new ciphers
6981           and defined the key lengths for the algorithms.  Changed the
6982           code accordingly.  The default key length is now 256 bits.
6983
6984         * Fixed SKE key distribution function silc_ske_process_key_material
6985           when the key length is more than 128 bits.  The default key 
6986           length in SILC is now 256 bits.
6987
6988         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
6989           to indicate unsupported algorithm.
6990
6991         * Renamed rijndael.c to aes.c and all functions as well.
6992
6993         * Fixed a long standing channel key setting bug in client library.
6994           Weird that it has never surfaced before.
6995
6996         * Fixed bug in channel deletion.  If the entire channel is removed
6997           then it must also delete the references of the channel entry
6998           from the client's channel list as the client's channel entry and
6999           the channel's client entry share same memory.
7000
7001 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7002
7003         * Implemented CONNECT and SHUTDOWN commands in the client.
7004
7005         * Implemented CLOSE command to the client.
7006
7007         * Added the function silc_idlist_find_server_by_name into the
7008           files silcd/idlist.[ch].
7009
7010           Added the function silc_idlist_find_server_by_conn into the
7011           files silcd/idlist.[ch].
7012
7013 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7014
7015         * DIE command was renamed to SHUTDOWN.  Updated the both code
7016           and protocol specs.
7017
7018         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
7019           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
7020
7021         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
7022           side.
7023
7024         * Added function silc_server_create_connection function to create
7025           connection to remote router.  My server implementation actually
7026           does not allow router to connect to normal server (it expects
7027           that normal server always initiates the connection to the router)
7028           so the CONNECT command is only good for connecting to another
7029           router.
7030
7031 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7032
7033         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
7034           or some other client was kicked from the channel.
7035
7036           Implemented the handling of the notify type to both client
7037           and server.
7038
7039           Implemented silc_server_send_notify_kicked to send the KICKED
7040           notify.  It is used to send it to the server's primary router.
7041
7042         * Implemented the KICK command into server and client.
7043
7044         * Added `query' argument to the silc_idlist_get_client function
7045           to indicate whether to query the client from server or not if
7046           it was not found.
7047
7048         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
7049           to indicate that the client is not channel founder.
7050
7051         * Updated TODO.
7052
7053 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7054
7055         * Removed the rng context from SilcPacketContext structure and
7056           changed that the packet routine uses the Global RNG API.
7057
7058 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7059
7060         * Added support for quit message that client can "leave" on the
7061           channel when it quits the SILC.  It is ditributed inside the
7062           SILC_NOTIFY_TYPE_SIGNOFF notify type.
7063
7064           Added silc_server_free_client_data that will take the
7065           signoff message as argument.
7066
7067         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
7068
7069 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7070
7071         * Updated parts of the protocol specification to keep it up
7072           to date.
7073
7074 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7075
7076         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
7077           payloads in one packet.
7078
7079         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
7080           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
7081           use now the new List flag.
7082
7083         * Also deprecated the following packet types: REPLACE_ID,
7084           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
7085          
7086         * Added list support for Notify packet in server.
7087
7088         * Added silc_server_send_notify_channel_change to send the
7089           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
7090           the silc_server_send_replace_id.
7091
7092         * Added silc_server_send_notify_nick_change to send the
7093           NICK_CHANGE notify type.  Deprecates the function
7094           silc_server_send_replace_id.
7095
7096         * Added silc_server_send_notify_join to send the JOIN notify type.
7097           Deprecates the function silc_server_send_new_channel_user.
7098
7099         * Added silc_server_send_notify_leave to send LEAVE notify type.
7100           Deprecates the function silc_server_send_remove_channel_user.
7101
7102         * Added silc_server_send_notify_cmode and 
7103           silc_server_send_notify_cumode to send CMODE and CUMODE notify
7104           types.  Deprecates the silc_server_send_set_mode function.
7105
7106         * Added SERVER_SIGNOFF notify type to indicate that server has
7107           quit.  This means that all clients on the channel from that 
7108           server will drop.  This can be also used when netsplit happens.
7109
7110           Deprecated REMOVE_ID packet type since it is not needed anymore
7111           even from server.
7112
7113           Added silc_server_send_notify_server_signoff to send the
7114           SERVER_SIGNOFF notify type.  Deprecates the function
7115           silc_server_send_remove_id.
7116
7117           Added also silc_server_send_notify_signoff to send the
7118           SIGNOFF notify type.
7119
7120         * Employed the PKCS #1. It is the mandatory way to do RSA in the
7121           SILC protocol from this day on.  Changed the protocol 
7122           specification as well.
7123
7124         * Added silc_server_send_notify_topic_set to send TOPIC_SET
7125           notify type.  It is used between routers to notify about
7126           topic changes on a channel.
7127
7128         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
7129           ID data.
7130
7131         * Partly updated the protocol specification to comply with the
7132           changes now made.  It is still though a bit outdated.
7133
7134         * The JOIN notify type now takes one extra argument <Channel ID>.
7135           The packet used to be destined to the channel but now the
7136           JOIN type may be sent as list thus it is impossible to 
7137           destine it to any specific channel.  By adding this argument
7138           it is again possible.
7139
7140 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7141
7142         * Added CREDITS file.  The CHANGES and CREDITS file will appear
7143           in the distribution as well.
7144
7145 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7146
7147         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
7148           types in the server's silcd/packet_receive.c.
7149
7150         * Implemented CMODE and CUMODE to work in router environment.
7151
7152         * Fixed minor encoding and decoding buglet from the
7153           lib/silccore/silcmode.c.
7154
7155         * Fixed buffer overflow from lib/silcclient/command.c in USERS
7156           command parsing.
7157
7158 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
7159
7160         * Changed all SilcConfigServer* and silc_config_server* to
7161           SilcServerConfig* and silc_server_config*, respectively.
7162           Patch by Bostik.
7163
7164 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7165
7166         * Associated the ID (client or server ID) to the Authentication
7167           Payload to avoid any possibility of forging.  Updated the
7168           protocol specification and the code accordingly.
7169
7170 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7171
7172         * The RSA key length is now save to the RsaKey context in the
7173           key generation process in lib/silccrypt/rsa.c.  The key length
7174           is now used to figure out the maximum size of the block allowed
7175           to be encrypted/signed.
7176
7177         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
7178           is equivalent to the silc_mp_mp2bin but does not allocate any
7179           memory.
7180
7181         * Changed silc_mp_mp2bin API to take length argument.  If it is
7182           non-zero then the buffer is allocated that large.  If zero, then
7183           the size is approximated using silc_mp_sizeinbase, which however
7184           is not relieable.
7185
7186         * Created Global RNG API which is global RNG that application can
7187           initialize.  After initializing, any routine anywhere in the
7188           code (including library) can use RNG without allocating a new
7189           RNG object.  This was done to allow this sort of use of the 
7190           RNG in code that has no chance to allocate RNG object.  All
7191           applications currently allocate this and many routines in the
7192           library use this.  Affected file lib/silccrypt/silcrng.[ch].
7193
7194         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
7195           it to use the Global RNG API.
7196
7197         * Defined Authentication Payload into protocol specification that
7198           is used during SILC session to authenticate entities.  It is
7199           used for example by client to authenticate itself to the server
7200           to obtain server operator privileges.
7201
7202           Implemented this payload into the lib/silccore/silcauth.[ch].
7203           Implemented also routines for public key based authentication
7204           as the new protocol specification dictates.
7205
7206           Moved definitions of different authentication methods from
7207           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
7208
7209         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
7210           silc_pkcs_verify and silc_pkcs_sign_with_hash and
7211           silc_pkcs_verify_with_hash functions into the file 
7212           lib/silccrypt/silcpkcs.[ch].
7213
7214 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7215
7216         * The client entry's userinfo pointer must be always valid. 
7217           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
7218           will fail since it requires the userinfo.  Now, the userinfo
7219           is allocated as "" if actual userinfo does not exist.  Actually,
7220           it must exist and it is totally Ok to drop client connections
7221           that does not announce the userinfo.  However, we will make
7222           this workaround for now.
7223
7224         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
7225           to return the remote port by socket.
7226
7227 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7228
7229         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
7230           SILC_SERVER_PENDING_EXEC and added an new macro
7231           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
7232           data or when error occurs while processing the pending command.
7233
7234           Added new argument `destructor' into silc_server_command_pending
7235           and to the SilcServerCommandPending object.  This destructor is
7236           now called after calling the pending callback or if error occurs
7237           immediately.  If error occurs the actual pending callback won't
7238           be called at all - only the destructor.  The destructor may be
7239           NULL if destructor is not needed.
7240
7241           All this applies for client library code as well.  Similar
7242           changes were made there as well for the pending commands.
7243
7244           In the client, the application must now allocate the 
7245           SilcClientCommandContext with the silc_client_command_alloc
7246           function.
7247
7248         * Added reference counter to the SilcServerCommandContext.  Added
7249           function silc_server_command_alloc and silc_server_command_dup 
7250           functions.
7251
7252           Same type of functions added to the client library for the same
7253           purpose as well.
7254
7255         * Removed the cmd_ident from IDListData away since it is now 
7256           global for all connections.  It is the command identifier used
7257           in command sending and with pending commands.  The affected file
7258           is silcd/idlist.h.
7259
7260         * Added reference counter to the SilcSocketConnection objecet to
7261           indicate the usage count of the object.  The object won't be
7262           freed untill the reference counter hits zero.  Currently only
7263           server uses this, and client ignores it.  The client must be
7264           set to use this too later.  The affected files are
7265           lib/silccore/silcsockconn.[ch].  Added also the function
7266           silc_socket_dup to increase the reference counter.
7267
7268           This was mainly added because it is possible that the socket
7269           is removed underneath of pending command or other async
7270           operation.  Now it won't be free'd and proper DISCONNECTING
7271           flags, etc. can be set to avoid sending data to connection that
7272           is not valid anymore.
7273
7274         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
7275           the connection.  After that it sets SILC_SET_DISCONNECTED.
7276           It is, however, possible that the socket data is not still freed.
7277           The silc_server_packet_process now checks that data is not
7278           read or written to connection that is DISCONNECTED.  The socket
7279           get's freed when the reference counter hits zero.
7280
7281 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7282
7283         * Changed the client operation API: channel_message operation's
7284           `sender' is now the client entry of the sender, not the nickname
7285           and the `channel' is the channel entry, not the channel name.
7286
7287           In the private_message operation the `sender' is now also the
7288           client entry of the sender not the nickname.
7289
7290           Affected file is lib/silcclient/ops.h and all applications
7291           using the client operations.
7292
7293 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7294
7295         * Moved the calling of ops->connect() from connect_to_server_final
7296           into receive_new_id functin since that is the point when the
7297           client is actually allowed to send traffic to network.  The
7298           affected file is lib/silcclient/client.c.
7299
7300 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7301
7302         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
7303           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
7304           (if needs broadcasting) instead of broadcasting the packets one
7305           by one which would make a burst in the network traffic.
7306
7307         * Added `broadcast' argument to the functions in silcd/server.[ch]
7308           silc_server_create_new_channel[_with_id] to indicate whether
7309           to send New Channel packet to primary router.
7310
7311 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7312
7313         * Added new function into the silcd/server.[ch] files:
7314           silc_server_create_new_channel_with_id to create new channel with
7315           already existing Channel ID.
7316
7317         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
7318           lib/silccore/silcpacket.h.  This packet is used t send list of
7319           Set Mode payloads inside one packet.  Server uses this to set
7320           the modes for the channels and clients on those channels, that it
7321           announced to the router when it connected to it.  The protocol
7322           specification has been updated accordingly.
7323
7324         * The silc_server_new_channel did not handle the packet coming
7325           from normal server as it normally does not send that.  However,
7326           when it announces its channels it does send it.  Implemented
7327           the support for that.
7328
7329         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
7330           into the file lib/silccore/id.h.
7331
7332 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7333
7334         * Fixed memory leaks in the functions silc_idlist_del_client,
7335           silc_idlist_del_channel and silc_idlist_del_server in the file
7336           silcd/idlist.c.  All of those leaked like a sieve.
7337
7338         * Fixed some small memory leaks in the client's function
7339           silc_client_notify_by_server.
7340
7341         * Added functions into silcd/server.c: silc_server_announce_clients,
7342           silc_server_announce_channels and silc_server_announce_server.
7343           These functions are used by normal and router server to announce
7344           to its primary router about clients, channels and servers (when
7345           router) that we own.  This is done after we've connected to the
7346           router.
7347
7348           These functions effectively implements the following packet types:
7349           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
7350           and SILC_PACKET_NEW_ID_LIST.
7351
7352         * Added new functions into the silcd/packet_receive.[ch]:
7353           silc_server_new_id_list, silc_server_new_channel_list and
7354           silc_server_new_channel_user_list to handle the incoming 
7355           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
7356
7357         * Added support of changing Channel ID in the function
7358           silc_server_replace_id.  If the server that announces a channel
7359           to the router already exists in the router (with same name but
7360           with different Channel ID), router is responsible to send
7361           Replace ID packet to the server and force the server to change
7362           the Channel ID to the one router has.
7363
7364         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
7365           client that the Channel ID has been changed by the router.  The
7366           normal server sends this to the client.  Client must start using
7367           the new Channel ID as the channel's ID.
7368
7369           Implemented handling of this new type into lib/silcclient/client.c
7370           into the function silc_client_notify_by_server.
7371
7372         * Added new function silc_idlist_replace_channel_id into the files
7373           silcd/idlist.[ch] to replace the Channel ID.
7374
7375 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7376
7377         * Call silc_server_command_identify_check always when processing
7378           the IDENTIFY command in silcd/command.c
7379
7380 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7381
7382         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
7383           send keepalive packets.  The packet can be sent by clients, 
7384           servers and routers.
7385
7386           Added function silc_socket_set_heartbeat into the file
7387           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
7388           If not set, the heartbeat is not performed.  The actual 
7389           heartbeat is implemented in the low level socket connection
7390           library.  However, application is responsible of actually
7391           sending the packet.
7392
7393           Added silc_server_send_heartbeat to send the actual heartbeat
7394           packet into silcd/packet_send.[ch].  Server now performs
7395           keepalive with all connections.
7396
7397         * Added silc_task_get_first function into lib/silcutil/silctask.c
7398           to return the timeout task with shortest timeout.  There was a bug
7399           in task unregistration that caused problems.  TODO has been
7400           updated to include that task system must be rewritten.
7401
7402         * The client library will now resolve the client information when
7403           receiving JOIN notify from server for client that we know but
7404           have incomplete information.
7405
7406         * Rewrote parts of silc_server_remove_from_channels and
7407           silc_server_remove_from_one_channel as they did not remove the
7408           channel in some circumstances even though they should've.
7409
7410         * Encryption problem encountered in server:
7411
7412           The LEAVE command used to send the Channel Key packet to the
7413           router immediately after generating it.  However, the code
7414           had earlier sent Remove Channel user packet but not immediately,
7415           ie. it was put to queue.  The order of packets in the router
7416           was that Channel Key packet was first and Remove Channel User
7417           packet was second, even though they were encrypted in the
7418           reverse order.  For this reason, MAC check failed.  Now, this
7419           is fixed by not sending the Channel Key packet immediately but
7420           putting it to queue.  However, this is more fundamental problem:
7421           packets that are in queue should actually not be encrypted 
7422           because packets that are sent immediately gets encrypted
7423           actually with wrong IV (and thus MAC check fails).  So, packets
7424           that are in queue should be encrypted when they are sent to
7425           the wire and not when they put to the queue.
7426
7427           However, the problem is that the current system has not been
7428           designed to work that way.  Instead, the packet is encrypted
7429           as soon as possible and left to the queue.  The queue is then
7430           just purged into wire.  There won't be any fixes for this
7431           any time soon.  So, the current semantic for packet sending
7432           is as follows:
7433
7434           o If you send packet to remote host and do not force the send
7435           (the packet will be in queue) then all subsequent packets to the
7436           same remote host must also be put to the queue.  Only after the
7437           queue has been purged is it safe again to force the packet
7438           send immediately.
7439
7440           o If you send all packets immediately then it safe to send
7441           any of subsequent packets through the queue, however, after
7442           the first packet is put to queue then any subsequent packets
7443           must also be put to the queue.
7444
7445           Follow these rules and everything works fine.
7446
7447 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7448
7449         * Added new function silc_server_remove_clients_by_server to
7450           remove all client entries from ID list when the server connection
7451           is lost.  In this case it is also important to invalidate all
7452           client entires as they hold the invalid server entry.  This
7453           fixes fatal bug when server has lost connection and will reconnect
7454           again.
7455
7456 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7457
7458         * Made some sanity checks to silc_server_daemonise like to check
7459           whether the requested user and group actually exists.
7460
7461         * Added sanity check to SKE's silc_ske_responder_finish to check
7462           that the public and private key actually is valid. 
7463
7464         * Invalidate the client's nickname when receiving Replace ID
7465           packet and the Client ID is being replaced.  This means that the
7466           server will query the nickname if someone needs it (client)
7467           a bit later.
7468
7469         * Sort the ID Cache in client library when the ID Cache data
7470           has changed (needs sorting).
7471
7472         * Do not allow for SILC client to create several connections to
7473           several servers.  The client does not support windows right now
7474           and generating multiple connections causes weird behaviour.
7475
7476           Irssi-silc client does support windows and can handle several
7477           connections without problems, see: www.irssi.org and SILC plugin.
7478
7479         * Fixed some places where client was added to the IDList.  The
7480           rule of thumb is following (in order to get everything right):
7481           If the client is directly connected local client then the 
7482           `connection' argument must be set and `router' argument must be 
7483           NULL to silc_idlist_add_client function.  If the client is not
7484           directly connected client then the `router' argument must
7485           bet set and the `connection' argument must be NULL to the
7486           silc_idlist_add_client function.
7487
7488         * The funtion silc_server_packet_send_local_channel actually did
7489           not check whether the client was locally connected or not.  It
7490           does that now.  Fixed a bug related to LEAVE command.
7491
7492         * Fixed Remove Channel User payload parsing bug in server's
7493           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
7494
7495         * The server's silc_server_save_channel_key now checks also the
7496           global ID list for the channel as it might not be in the local
7497           list.  Fixed a bug related to LEAVE command.
7498
7499         * Is this the end of the [<unknown>] buglet that has been lurking
7500           around for a long time?  A little for loop fix in server's
7501           silc_server_command_whois_parse that is used by both IDENTIFY
7502           and WHOIS command.  At least, this was a clear bug and a cause
7503           of one type of [<unknown>] buglet.
7504
7505         * WHOIS and IDENTIFY commands call the function
7506           silc_server_command_[whois/identify]_check function even if
7507           we are not router server.
7508
7509 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7510
7511         * Added --with-gmp configuration option.  If set the GMP
7512           is always compiled in the SILC source tree.  If not set then
7513           it is checked whether the system has the GMP3 installed.  If
7514           it has then the GMP won't be compiled (the system's headers
7515           and library is used), if it doesn't have it then the GMP is
7516           compiled in the SILC source tree.
7517
7518 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7519
7520         * Changed RSA private exponent generation to what PKCS #1
7521           suggests.  We try to find the smallest possible d by doing
7522           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
7523           not security fix but optimization.
7524
7525 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7526
7527         * Added new config entry [Identity] to fork the server and run
7528           it as specific user and group.  A patch from Bostik.
7529
7530         * Imported Dotconf configuration library into lib/dotconf.
7531           This will be used to create the SILC configuration files later.
7532           It will appear in the distsribution after this commit.
7533
7534 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7535
7536         * A big code auditing weekend happening.  Auditing code for 
7537           obvious mistakes, bugs and errors.  Also, removing any code
7538           that is obsolete.
7539
7540           Removed files for being obsolete:
7541
7542           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
7543           inline in the file lib/silcutil/silcbuffer.h)
7544
7545           o lib/silcutil/silcbufutil.c (the header has inline versions)
7546
7547           Changed code to fix possible error conditions:
7548
7549           o The buffer formatting routines now check that the destination
7550           buffer really has enough space to add the data.  This applies for
7551           both buffer formatting and unformatting 
7552           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
7553           unformatting was changed to accomodate following rules: 
7554           XXX_*STRING_ALLOC will allocate space for the data into the pointer
7555           sent to the function while XXX_*STRING will not allocate or copy 
7556           the data into the buffer.  Instead it sets the pointer from the
7557           buffer into the pointer sent as argument (XXX_*STRING used to
7558           require that the pointer must be allocated already).  This change
7559           makes this whole thing a bit more consistent and more optimized
7560           (note that the data returned in the unformatting with XXX_*STRING
7561           must not be freed now).  The routines return now -1 on error.
7562
7563           o Tried to find all code that use buffer_format and buffer_unformat
7564           and added return value checking to prevent formatting and
7565           especially unformatting errors and possible subsequent fatal
7566           errors.
7567
7568           o Changed ske->x and ske->KEY to mallocated pointers in
7569           lib/silcske/silcske.h.  Fixed possible data and memory leak.
7570
7571           o Added return value checking to all *_parse* functions.  Fixed
7572           many memory leaks as well.
7573
7574           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
7575           so that buffer overflows would not happen.  All code now also
7576           checks the return value as it can fail.
7577
7578 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7579
7580         * Added reconnection support to server if the normal server looses
7581           its connection to the router (for example if router is rebooted).
7582           The server performs normal reconnection strategy implemented
7583           to the server.  Affected file silcd/server.c.
7584
7585 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7586
7587         * Added new packet type SILC_PACKET_SET_MODE that is used to
7588           distribute the information about changed modes (for clients,
7589           channels and clients channel modes) to all routers in the
7590           network.  Updated the protocol specification accordingly.
7591
7592           Added functions into silcd/packet_send.c and 
7593           silcd/packet_receive.c: silc_server_send_set_mode, 
7594           silc_server_set_mode.
7595
7596           Added new files silcmode.[ch] into lib/silccore that implements
7597           the encoding and decoding of Set Mode Payload.  Added new type
7598           SilcSetModePayload.  Moved the definitions of different modes
7599           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
7600
7601 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7602
7603         * Oops, a little mistake in server's connection authentication 
7604           protocol.  The protocol is not ended with FAILURE but with
7605           SUCCESS if the authentication is Ok. :)  Affected file is
7606           silcd/protocol.c.
7607
7608         * Implemented NICK_CHANGE notify handling in server in the file
7609           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
7610           the local clients on the channel.  After the changing nickname
7611           in router environment snhould work and the [<unknown>] nickname
7612           should appear no more.
7613  
7614           The silc_server_replace_id function that receives the Replace ID
7615           payload now sends the NICK_CHANGE notify type also in the file
7616           silcd/packet_receive.c
7617
7618         * Changed WHOIS and IDENTIFY command to support the maximum amount
7619           of arguments defined in protocol specs (3328 arguments).  This 
7620           fixed a bug that caused problems when there were more than three
7621           users on a channel.
7622
7623 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7624
7625         * Added extra parameter, command identifier, to the
7626           silc_client_send_command so that explicit command identifier
7627           can be defined.
7628
7629           Changed that ID list routines uses specific command identifier
7630           when sending WHOIS/IDENTIFY requests to the server so that they
7631           can be identified when the reply comes back.
7632
7633           Affected files lib/silcclient/command.[ch],
7634           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
7635
7636         * Added `sender' argument to silc_server_packet_send_to_channel
7637           to indicaet the sender who originally sent the packet to us
7638           that we are now re-sending.  Ignored if NULL.  Affected file
7639           silcd/packet_send.[ch].
7640
7641         * Added some server statistics support in silcd/server_internal.h
7642           SilcServerStatistics structure and around the server code.  Also
7643           send some nice statistics information when client is connecting
7644           to the client.
7645
7646 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7647
7648         * Fixed channel ID decoding in server's JOIN command reply in
7649           silcd/command_reply.c
7650
7651         * Fixed braodcasting of replace ID payload to not to send it if
7652           we are standalone server in silcd/packet_receive.c.
7653
7654         * Fixed all channel message sending routines to not to send
7655           packets to clients that has router set, since they are routed
7656           separately in the same function earlier.  Affects file
7657           silcd/packet_send.c and all channel packet sending functions.
7658
7659         * In USERS reply, res_argv[i] are not allocated, the table
7660           is allocated.  Thus changed that free the table, not its
7661           internals.
7662
7663         * In server's whois_check and identify_check if the client is
7664           locally connected do not send any WHOIS commands - they are not
7665           needed.
7666
7667 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7668
7669         * Fixed some minor bugs in client when sending WHOIS command.  The
7670           arguments was in wrong order.
7671
7672         * Removed statis function add_to_channel from server in 
7673           silcd/command.c that was previously used with the joining but
7674           is obsolete now.
7675
7676         * Tested USERS command in router environment successfully with two
7677           routers, two servers and two clients.
7678
7679 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7680
7681         * Reorganized the USERS command and command reply in client library
7682           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
7683           When the command is given by user we register a pending command
7684           callback that will reprocess the command after the reply has been
7685           received from the server.  When reprocessing the packet we then
7686           display the information.  Thus, the USERS information is displayed
7687           now in the command callback instead of in the command reply
7688           callback.  The processing of the command is same as previously
7689           when server has sent the command reply in the JOINing process.
7690
7691         * Added to USERS command in silcd/command_reply.c to join the client,
7692           we didn't use to know about, to the channel after we've created
7693           a client entry for it.  Also, for clienet we did know already still
7694           check whether it is on the channel or not and add it if not.
7695
7696         * Removed silc_server_command_join_notify as the function and its
7697           use was obsolete.
7698
7699 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7700
7701         * Changed the client's pending command handling to the same as the
7702           server's pending command handling.  It is also now possible to
7703           execute command reply functions from other command reply
7704           function as the function callbacks for commands and command
7705           replies are one and same.  The pending commands are not static
7706           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
7707           in client connection context.  Thus, pending commands are server
7708           connection specific as it is convenient.
7709
7710           Changed the function silc_client_command_pending and
7711           silc_client_command_pending_del and added new function
7712           silc_client_command_pending_check.  Removed the 
7713           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
7714           macros.
7715
7716         * Added cmd_ident, current command identifier, to the client
7717           connection context in lib/silcclient/client.h to keep track on
7718           command identifiers used in command sending.  Client's command reply
7719           function handling now supports the mandatory command identifiers.
7720
7721         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
7722           funtions in client to fully support pending command callbacks.
7723
7724         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
7725           as one of the arguments to the application in the command reply
7726           client operation.
7727
7728         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
7729           before first releasing SILC but came back.  Now it is removed again
7730           and should come back nomore.  The FORWARDED flag was used only
7731           by the JOINing procedure by forwarding the command packet to router.
7732           Now, the JOINing procedure has been changed to more generic (due
7733           to various router environment issues) and FORWARDED is not needed
7734           anymore for anything.  The protocol specification is yet to be
7735           updated.
7736
7737           Now, removed silc_server_packet_forward from server and the flag
7738           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
7739
7740 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7741
7742         * Renamed NAMES command to USERS command.  The NAMES was named that
7743           due to historical reasons.  Now it is renamed.  Also, rewrote
7744           parts of the USERS command.  The nickname list is not sent anymore
7745           by the server.  Only Client ID and mode lists are sent in the USERS
7746           command.  Changed this also to the protocol specification.
7747
7748           The client now resolves the names and stuff after it receives
7749           the USERS list from the server when joining to the channel.
7750
7751         * WHOIS and IDENTIFY commands has been changed to support multiple
7752           Client ID's per command.  One can now search for multiple users
7753           in the network by sending only one WHOIS or IDENTIFY command.
7754           Changed the code and the protocol specifications.
7755
7756         * Removed silc_server_command_identify_parse and changed that IDENTIFY
7757           uses silc_server_command_whois_parse to parse the request. */
7758
7759         * If normal server, do not parse the WHOIS and IDENTIFY requests
7760           before sending it to the router.  Saves some time.
7761
7762 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7763
7764         * Fixed JOIN command on client library.  Wrong number of arguments
7765           used to crash the client.
7766
7767         * Added silc_server_channel_has_global function to check whether
7768           channel has global users or not.
7769
7770         * Added silc_server_channel_has_local function to check whether channel
7771           has locally connected clients on the channel.
7772
7773         * The silc_server_remove_from_one_channel now checks whether the
7774           channel has global users or not after given client was removed from
7775           the channel.  It also checks whether the channel has local clients
7776           on the channel anymore.  If it does not have then the channel entry
7777           is removed as it is not needed anymore.
7778
7779         * The silc_server_notify now checks on JOIN notify whether the joining
7780           client is one of locally connected or global.  If it is global then
7781           the channel has now global users on the channel and that is marked
7782           to the channel entry.  Also, it now saves the global client to
7783           global list who is joining and JOINs it to the channel.  This is
7784           for normal server, that is.
7785
7786           Changed silc_server_send_notify_on_channel, 
7787           silc_server_packet_relay_to_channel and 
7788           silc_server_packet_send_to_channel check if we are normal server
7789           and client has router set (ie. global client) do not send the
7790           message to that client, as it is already routed to our router.
7791
7792         * Implemented LEAVE notify type handling in silc_server_notify 
7793           function.
7794
7795         * Tested LEAVE command in router environment successfully.  Tested
7796           with two routers, two servers and two clients.
7797
7798         * Updated TODO.
7799
7800         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
7801
7802         * Implemented SIGNOFF notify type handling in silc_server_notify
7803           function.
7804
7805         * silc_server_remove_id now removes the client entry from all channels
7806           it has joined and thusly sends SIGNOFF notify type.
7807
7808         * Rewrote the NAMES list generation in server by removing two excess
7809           loops.  The lists are created now inside one loop.
7810
7811 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7812
7813         * silc_server_remove_channel_user checks now also global list
7814           for channel and client.
7815
7816         * silc_server_new_channel_user checks now both local and global
7817           list for channel and client.  Fixed a bug in client id decoding.
7818           Used to decode wrong buffer.
7819
7820         * silc_server_channel_message checks now both local and global
7821           list for channel entry.
7822
7823         * Tested channel joining (hence JOIN) in router environment
7824           successfully.  Tested with two routers, two servers and two
7825           clients.
7826
7827         * Tested channel message sending in router environment successfully.
7828
7829 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7830
7831         * Added silc_server_save_channel_key into server.[ch] to save the
7832           received channel key in Channel Key payload processing. It is
7833           also used in JOIN command reply handling.
7834
7835           Equivalent function silc_client_save_channel_key added into
7836           client.[ch] into client library.
7837
7838         * Changed JOIN command reply to send information whether the channel
7839           was created or not (is existing already) and the channel key 
7840           payload.  Changed protocol specs accordingly.
7841
7842         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
7843           the request was sent by ID and not by nickname.  Crashed on
7844           NULL dereference.
7845
7846 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7847
7848         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
7849           now correctly save the received data.
7850
7851         * silc_server_free_sock_user_data now notifies routers in the 
7852           network about entities leaving the network.
7853
7854           At the same time implemented functions silc_server_remove_id
7855           and silc_server_send_remove_id to receive and send REMOVE_ID
7856           packets.  The packet is used to notify routers in the network
7857           about leaving entities.  The ID removed will become invalid in
7858           the network.
7859
7860         * Added function silc_idlist_del_server into server. Removes and
7861           free's server entry from ID list.
7862
7863         * silc_server_private_message function now checks, if we are router,
7864           that the destination ID really is valid ID, naturally.
7865
7866         * In router when NEW_ID packet is received (for new client) the
7867           hash of the Client ID is saved in the ID Cache but the
7868           client->nickname is set to NULL, instead of putting the hash
7869           to it as well.
7870
7871           IDENTIFY command now also checks that client->nickname must be
7872           valid. If it is not if will request the data from the server who
7873           owns the client.  Added new function 
7874           silc_server_command_identify_check.
7875
7876         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
7877           to set the command to already allocated Command Payload.
7878
7879         * Tested private message sending in router environment with two
7880           routers, two servers and two clients.  Fixed minor bugs and now
7881           it works fine.
7882
7883         * Fixed segfault from client's NAMES command. Used to crash if
7884           not on any channel.
7885
7886         * Forwarded packets must not be routed even if it is not destined
7887           to the receiver.  Changed server code comply with this.
7888
7889 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7890
7891         * Added `require_reverse_mapping' boolean value to ServerParams
7892           structure. If TRUE (not default) the server will require that
7893           the connecting host has fully qualified domain name.
7894
7895           If the reverse mapping is not required and hostname could not be
7896           found the IP address is used as hostname.
7897
7898 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7899
7900         * Implemented version string checking to both client and server.
7901           The check is incomplete currently due to the abnormal version 
7902           strings used in development version of SILC.
7903
7904         * Changed all command functions in server to use the new
7905           CHECK_ARGS macro.
7906
7907 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7908
7909         * Changed char *data to unsigned char *data in ID Cache system to
7910           support binary data as ID Cache data. Changed code to support
7911           binary data in lib/silccore/idcache.c.
7912
7913         * Renamed silc_server_packet_relay_command_reply to 
7914           silc_server_command_reply as it is normal packet receiving
7915           function. Rewrote the function to accept command replys for
7916           servers and not only for clients.
7917
7918         * Mark remote router always as registered server if we are connecting
7919           to it.  Otherwise, commands sent by the router to us are ignored.
7920
7921         * All ID List find routines now returns the ID Cache Entry pointer
7922           as well if requested.
7923
7924         * WHOIS command works now in router environment, tested with two
7925           routers, two servers and two clients.
7926
7927         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
7928           in router environment (as it is almost equivalent to WHOIS) but
7929           hasn't been tested thoroughly.  Added new functions:
7930
7931           silc_server_command_identify_parse
7932           silc_server_command_identify_send_reply
7933           silc_server_command_identify_from_client
7934           silc_server_command_identify_from_server
7935
7936         * Disabled route cache adding because adding two different ID's with
7937           same IP replaces the old cache entry thus giving wrong route.
7938           The entry->router->connection is always the fastest route anyway
7939           so route cache may not be needed.  Of course, new routes maybe
7940           established after receiving the ID when the entry->router->connection
7941           might not be anymore the most optimal.
7942
7943 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7944
7945         * Add route cache for received ID for fast routing.
7946
7947         * Added silc_server_packet_route to route received packet on router
7948           that is not destined to us.
7949
7950         * Renamed silc_server_get_route to silc_server_route_get.
7951
7952         * Added id_string and id_string_len fields into SilcServer to
7953           include encoded ServerID for fast comparing without excess
7954           encoding of the ID's.
7955
7956         * Cleaned up WHOIS command on server side. Added following static
7957           functions:
7958
7959           silc_server_command_whois_parse
7960           silc_server_command_whois_check
7961           silc_server_command_whois_send_reply
7962           silc_server_command_whois_from_client
7963           silc_server_command_whois_from_server
7964
7965         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
7966           arguments in command replies. All command functions should be
7967           updated to use this macro.
7968
7969 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7970
7971         * Minor typo fixes on command reply handling on server.
7972
7973 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7974
7975         * Added silc_server_command_add_to_channel internal routine to add
7976           the client to the channel after router has created the channel and
7977           sent command reply to the server.
7978
7979         * Added generic silc_server_send_command to send any command from
7980           server.
7981
7982         * Use static buffer with ID rendering instead of duplicating data.
7983
7984 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7985
7986         * Fixed a channel user mode bug when joining to a channel server gave
7987           everybody channel founder rights, oops.
7988
7989         * We mark ourselves as the router of the incoming server connection
7990           if we are router ourselves.  This way we can check in some packet
7991           sending functions whether it is locally connected server.  For
7992           incoming router connections we put NULL.
7993
7994         * For router sending packets locally means now always sending the
7995           packet cell wide; to local clients and local servers.  For normal
7996           server sending packet locally means sending it to only local
7997           clients.
7998
7999         * Fixed the JOIN command to really work in router environment.  If the
8000           channel is created it is always created by the router.  Router is
8001           also responsible of making the initial joining to the channel,
8002           sending JOIN notify to the sending server and distributing 
8003           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
8004           does not exist server doesn't do anything else but forward the
8005           command to the router which performs everything.
8006
8007         * Added silc_server_send_channel_key function to send the Channel Key
8008           payload.
8009
8010         * Added silc_server_create_channel_key to create new channel key.  The
8011           channel key is now re-generated everytime someone joins or leaves
8012           a channel, as protocol dictates.  Note: channel->key_len is the
8013           key length in bits.
8014
8015 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8016
8017         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
8018           packet_receive.[ch] to separate packet sending and receiving
8019           routines.  The server.[ch] now includes everything else including
8020           actual packet processing (writing and reading data) and other
8021           server issues.
8022
8023           Renamed silc_server_private_message_send_internal to
8024           silc_server_send_private_message.  The routine is still though
8025           used only to relay private messages as server does not send
8026           private messages itself.
8027
8028           Renamed silc_server_new_channel to silc_server_create_new_channel
8029           and added new function sicl_server_new_channel that handles the
8030           incoming New Channel packet.  Added also new sending function
8031           silc_server_send_new_channel to send New Channel Payload.
8032
8033         * Added new function silc_server_notify to process incoming notify
8034           packet to the server/router. Server may then relay the notify
8035           to clients if needed.
8036
8037         * Added new function silc_server_new_channel_user to process incoming
8038           New Channel User packet.  Router will redistribute the packet and
8039           send JOIN notify to its local clients and locally connected servers
8040           if needed.  Normal server will send JOIN notify to its local client
8041           on same channel when received this packet.  Added also corresponding
8042           sending function silc_server_send_new_channel_user to sent the
8043           payload.
8044
8045         * Added boolean route argument to send_notif_to_channel and
8046           packet_send_to_channel functions to attempt to route the packet
8047           if it is TRUE and send only locally if it is FALSE.
8048
8049 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8050
8051         * silc_server_replace_id now broadcasts the received replace ID
8052           packet if it is not broadcast packet already. The router must
8053           broadcast to inform other routers about changed ID.
8054
8055         * Added backpointer to server's router into SilcServer context in
8056           silcd/server_internal.h.
8057
8058         * Fixed silc_server_packet_broadcast to send correct broadcast
8059           packets.
8060
8061         * The channel key is now distributed to the local client as soon
8062           as it is received from the router (in router environment) so that
8063           no other packet may be sent for the channel until client has 
8064           received the key.
8065
8066         * silc_server_remove_channel_user now broadcasts the received
8067           Remove Channel User packet if it is not broadcast packet already.
8068           The router must broadcast to inform other routers about removed
8069           channel user.
8070
8071         * Added users field into SilcPacketContext that is a reference count
8072           of the context.  One can increase the reference count by calling
8073           silc_packet_context_dup which is now changed to just increase the
8074           reference count instead of duplicating the data.  The reference
8075           count is decresed by calling silc_packet_context_free that will
8076           free the data after the reference count hits zero.
8077
8078           For now on the packet context and everything allocated into it
8079           (including the raw packet from network) must be freed by calling
8080           the new silc_packet_context_free function.  Added also new function
8081           silc_packet_context_alloc that must be used now to allocate the
8082           context.  This also means that if a routine is asynchronous from
8083           silc_[client/server]_packet_parse_type the packet context must
8084           be duplicated by calling silc_packet_context_dup.  Otherwise it
8085           gets free'd after silc_[client/server]_packet_parse_type returns.
8086           Also, one must remember that if packet is duplicated then its 
8087           reference count must be decresed by calling the free function as
8088           many times as it was duplicated.
8089
8090         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
8091           from both client and server.
8092
8093 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8094
8095         * Made joining to a channel working in router environment.
8096
8097         * Cleaned up JOIN command on server side and create function
8098           silc_server_command_join_channel internal routine to make the
8099           joining happen.
8100
8101 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8102
8103         * Changed silc_command_pending list to SilcDList.  Also, added
8104           `ident' field to SilcServerCommandPending structure to identify
8105           the reply and to call correct callback.
8106
8107           Added silc_server_command_pending_check function to replace the
8108           corresnponding macro.  The silc_command_pending list is not
8109           extern anymore.
8110
8111         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
8112           to set identifier to previously allocated Command Payload.  It
8113           is used to set identifier for command when resending Command
8114           Payload.
8115
8116         * Added silc_command_payload_encode_payload to encode Command
8117           Payload buffer from SilcCommandPayload structure.
8118
8119         * Added silc_argument_payload_encode_payload to encode Argument
8120           payload buffer from SilcArgumentPayload structure.
8121
8122 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8123
8124         * Changed WHOIS command to support router connection on server side.
8125           The whois request is always sent to router unless the server is
8126           standalone server.  After server has received the reply from the
8127           router will it send the reply to the client.
8128
8129         * Added silc_server_packet_broadcast into silcd/server.[ch] to
8130           broadcast received broadcast packet.  The function is used only
8131           by router.  The broadcast packet is always sent to the router's
8132           primary route.
8133
8134         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
8135           render given ID to printable string, for log files for example.
8136
8137 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8138
8139         * Made basic router to router connections working.  At least they
8140           can now connect to each other but nothing really works the way
8141           they are supposed - yet.
8142
8143         * Added new initiator token to RouterConnection configuration
8144           file in silcd/serverconfig.[ch].  It is used to tell whether we
8145           are the initiator to the remote router or whether we'll expect
8146           the other end to connect.
8147
8148         * Moved registering of listener task to silc_server_init, hence
8149           the server starts listenning as soon as it is run, even if it
8150           does not have connections to other routers.  Let's see how well
8151           this will work.
8152
8153         * Changed default connection retry timeouts for more suitable in
8154           silcd/server.h.
8155
8156         * Removed cipher and such arguments from silc_idlist_add_client
8157           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
8158           Added new function silc_idlist_add_data to add the keys and stuff
8159           to any ID entry.
8160
8161         * Added SilcIDListData structure and added it to SilcClientEntry
8162           and SilcServerEntry as their first field in the structure.  This
8163           way we can explicitly cast the ID entries to the SilcIDListData
8164           structure and get common data for the entries.  In past, we had
8165           to first check what type of connection it is and then cast it to
8166           correct ID entry type.  Now, we can directly cast the opaque
8167           pointer to the SilcIDListData (no matter what ID entry it actually
8168           is) and get the data needed.
8169
8170 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8171
8172         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
8173           in some circumstances even if threre were timeout tasks, though not
8174           IO tasks, but tasks anyway.  Now fixed.
8175
8176         * Defined SilcServerConnection structure to hold connection specific
8177           stuff about directly connected servers and routers.  The definition
8178           is currently in silcd/server_internal.h.  I thought about having
8179           a bit more important role fro this struct but for now it is used
8180           only when connecting to other server (or router actually).
8181
8182         * Added connecting retry support in server when connecting to
8183           router(s).  The retry feature implement exponential backoff
8184           algorithm.  Also, added SilcServerParams structure to hold default
8185           parameters for server.  For now, it include these retry settings
8186           and are hard coded.  After server is moded to be as Silc Server
8187           Library this structure will be more important.
8188
8189 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8190
8191         * Changed client librarys channel->clients table to SilcList and
8192           changed code accordingly.
8193
8194 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8195
8196         * Changed client's channel table to SilcList and changed code 
8197           accordingly.  Also changed SilcChannelClientEntry to include back-
8198           pointer to the channel so that client entry can use that structure
8199           as list as well and we have fast cross-reference to the channel.
8200           This change dramatically decreased the complexity of channel
8201           handling with client entry and vice versa (removed one extra
8202           loop when searching for channel entry from many functions).
8203
8204         * Changed server->sim from table to SilcDList and changed code
8205           accordingly.
8206
8207         * NAMES command can now be used from user interface.  It will show
8208           the user list on the channel, neatly.
8209
8210         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
8211           Code now saves realname of the user if it becomes available.
8212
8213         * Renamed configure.in to configure.in.pre and made ./prepare
8214           script to automatically add correct version string to
8215           configure.in which it creates from configure.in.pre.
8216
8217 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8218
8219         * NAMES command reply now shows users mode with the nickname when
8220           joining to channel.
8221
8222         * Moved silc_client_ch[u]mode[_char] functions from 
8223           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
8224           place sucks, they are utility functions and should be in some
8225           other file.
8226
8227         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
8228
8229         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
8230           cras.
8231
8232 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8233
8234         * Updated README.
8235
8236         * Added TRQ (efficient deque and list library) into lib/trq.  This is
8237           a very good list library that is currently used in the SILC.  Defined
8238           SilcList API over the library because I didn't like the API very
8239           much.  See lib/trq/silclist.h for the API and examples of how to
8240           use the API.  Fixed various places in the code to use the new
8241           SilcList API. The SilcList is meant for lists that has a structure
8242           already defined as a list.  It is not suitable to add just some
8243           context to the list (in TRQ, the context is the list actually).
8244
8245           So, I defined SilcDList that can be used for the purpose where 
8246           predefined list structure does not exit.  This can be used as
8247           such list.  Now some context just can be added to the SilcDList.
8248           Currently this list is not used in the SILC just yet, though there
8249           are a lot places where this can replace dynamically allocated
8250           tables and I will fix these places, later, to use SilcDList.
8251           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
8252           and use TRQ internally).
8253
8254           Also fixed some annoying warning messages that the original TRQ
8255           code generated.  Also minor changes to TRQ's Makefile.in.
8256
8257         * Added support for querying by Client ID to both WHOIS and 
8258           IDENTIFY commands into server, as required by the protocol.
8259
8260         * Removed method function pointers from SilcBuffer structure. They
8261           weren't used to anything and just increased the context size for
8262           no good reason.  This change also made silc_buffer_alloc and
8263           silc_buffer_free functions inline functions.
8264
8265         * Disabled command flooding detection support until it's fixed so 
8266           that it accepts commands in but does not execute them more than once
8267           in two seconds.
8268
8269         * Added silc_net_localhost(), to return local hostname, into
8270           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
8271           that must be initialized before calling silc_client_init.
8272
8273         * Added new function: silc_server_send_notify_on_channels to send
8274           notify messages to all channels client has joined.  It is assured
8275           that the message is sent only once per client.
8276
8277         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
8278           lib/silcutil/silcutil.[ch] as silc_format function.  The new 
8279           function is generic and is used by server as well, not only by
8280           the logging routines.
8281
8282         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
8283           the provided version string was not acceptable.  Added new function:
8284           silc_ske_check_version into lib/silcske/silcske.h.  The function
8285           must be implemented by the application (client or server) and it
8286           does not reside in the SKE library.  The function checks the version
8287           string remote end sent.
8288
8289         * Added back pointers (to opaque context and to SilcSocketConnection) 
8290           into SilcPacketContext structure into lib/silccore/silcpacket.h.
8291
8292         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
8293           duplicate packet context structure.
8294
8295         * Changed `notify' client operation to send same arguments as client
8296           receives from server except for ID's.  ID's are mapped to correct
8297           ID entry and that is returned.  Also, if channel entry is not sent
8298           by server but the notify is for channel the channel entry is sent
8299           to application (otherwise application doesn't know that it is for
8300           channel (library gets it from packet's Destination ID)).
8301
8302         * Added silc_client_remove_from_channels into client library to 
8303           remove a client from all channels it has joined to.  Used when 
8304           received SIGNOFF notify from server.  Added also new function
8305           silc_client_replace_from_channels to replace old ID entry with
8306           new ID entry on all channels.  Used when received NICK_CHANGE
8307           notify from server.
8308
8309         * Fixed ID Cache list handling in silc_idlist_get_client in 
8310           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
8311           to get (or query) client by ID.
8312
8313         * Updated TODO list.
8314
8315         * Added connection authentication status message defined by the
8316           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
8317           support for these into the code in client and server side.
8318
8319         * Added generic function silc_client_send_command to send any command
8320           with variable argument list.  Application should use this function
8321           to send commands if the command functions provided by the library
8322           does not suite for the application's user interface needs.
8323
8324         * Added new `failure' client operation.  Application is notified about
8325           received failure packet if client is executing a protocol.  In this
8326           case the protocol's execution has failed.
8327
8328         * Added SKE's end notify to send the SKE_SUCCESS notify message that
8329           is required by the protocol.
8330
8331         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
8332           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
8333           error at our end.
8334
8335         * Added status flag to SilcSKE object to indicate realtime status
8336           of the SKE protocol.
8337
8338         * Application receives now exactly same command reply arguments as
8339           the library receives from server.  However, if ID is received the
8340           corresponding ID entry is returned to the application (eg. Client
8341           ID is mapped to correct SilcClientEntry entry and that is returned).
8342           Changed command_reply client operation due to this change.
8343
8344         * Changed all ID's in commands and in command replys as ID Payloads.
8345           Change affected both client and server side codes.
8346
8347           All ID's sent in SILC network (with execption of ID's in SILC
8348           Packet header) are sent in ID Payload to support variable length
8349           ID's.
8350
8351         * Server now notifies nick changes and notifies all clients on
8352           the channels about the new nickname (about the new Client ID,
8353           actually).
8354
8355         * Implemented CMODE command to change channel modes. Supports all
8356           channel modes defined by the protocol specs except ban and invite
8357           lists. (Also, private channel key mode is supported but support for
8358           setting private channel key in client is missing, thus, this mode
8359           has no effect on client side (except that server requires that the
8360           client uses private channel key and normal channel traffic does not
8361           work anymore)).
8362
8363           Also, invite mode works per se, but INVITE command does not work
8364           yet correctly, so you can set channel as invite only channel but
8365           inviting clients to the channel does not work (it is yet to be
8366           thought what's the best way to do it).
8367
8368         * Added new command SILC_COMMAND_CUMODE to change user mode on the
8369           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
8370           Implemented CUMODE command to change user's mode on the channel.
8371           Supports all modes defined by the protocol specs.
8372
8373         * Added NAMES command reply to return users modes on the channel.
8374
8375         * Removed unnecessary and slow ciphers from lib/silccrypt.
8376
8377         * Set SO_KEEPALIVE option to connection sockets by default.
8378
8379         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
8380
8381         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
8382           redefined the Notify Payload into protocol specs.
8383
8384         * Added silc_id_payload_parse_id to get ID directly from raw
8385           ID payload data.
8386
8387 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8388
8389         * Changed SILC_COMMAND_IDENTIFY in protocol specification to 
8390           accept searching by Client ID as well.
8391
8392         * Added support for LEAVE and SIGNOFF notify types in client library.
8393
8394         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
8395           to parse ID Payload from raw data.
8396
8397 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8398
8399         * Added flags parameter into silc_ske_assemble_security_properties
8400           function in lib/silcske/silcske.[ch].
8401
8402         * Changed notify client operation to fit better for notify messages
8403           sent by server.  The notify payload received from server is now
8404           passed to the application (after parsing it to SilcNotifyPayload).
8405           It is application's responsibility to retrieve the arguments
8406           from the payload and show the message the way it wants.  The message
8407           sent by server is implementation specific.
8408
8409         * Changed public keys to comply with the protocol specification.
8410           Old public keys are not supported anymore and are not compatible.
8411
8412         * Removed nickname from Channel Payload as the latest draft removed
8413           it.  The client must resolve the nickname from the NAMES command
8414           reply received when it joined the channel.
8415
8416           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
8417
8418 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8419
8420         * Fixed some errors in protocol specification drafts.
8421
8422         * Created lib/silccore/silcnotify.c to implement Notify Payload
8423           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
8424           generic payloads described by protocol specifications.  The file
8425           includes implementations for ID Payload and Argument Payload.
8426
8427         * Changed Command Payload implementation to use the new Argument
8428           Payload.  Changed command_xxxx_payload to command_payload_xxxx
8429           to comply with SILC coding conventions.
8430
8431         * Added suppport for Argument Payload handling in Notify Payload
8432           implementation as protocol requires it.  Added the new support
8433           into server and client lib as well.
8434
8435 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8436
8437         * Added support for multiple nicknames on same channel.  [n] is
8438           added locally to the nickname if there are more than one same
8439           nicknames on the channel.
8440
8441         * Server now sends all nicknames that matched WHOIS request.
8442           Client also shows the list received from server.
8443
8444         * Added TOPIC command to client side.  User can now set and show
8445           current topic on channel.
8446
8447         * Added MOTD command to client and server.  Also, server sends the
8448           motd when client connects to the server.
8449
8450         * Changed version strings to comply ISO 8601.
8451
8452 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8453
8454         * Fixed protocol error handling in client library.  It should now
8455           cope even if the SKE fails for some reason.
8456
8457         * Made new protocol specification drafts for submitting to IETF.
8458
8459         * Implemented TOPIC command to server in silcd/command.c.
8460
8461         * Added two new notify types into lib/silccore/silcnotify.h:
8462           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
8463           notify nickname change and topic setting/change on a channel.
8464
8465         * API change of command_reply operation in client library.  The
8466           application gets now the status type received from server as well.
8467
8468 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8469
8470         * Removed the function just added to lib/silcutil/silcschedule.[ch].
8471
8472         * Cras fixed and optimized the packet handling even further and
8473           it should work now.  Minor change to the prototype of function
8474           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
8475
8476 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8477
8478         * Added new function into lib/silcutil/silcschedule.[ch]:
8479           silc_schedule_with_fd to select() a specified fd.  The function
8480           returns after timeout expires or data arrives or goes.  The
8481           function is used by packet routines to wait that all data is
8482           received from network.
8483
8484         * Fixed data reading from network in lib/silccore/silcpacket.c.
8485           The code now assures that all data is read from the fd and then
8486           continues packet processing.  This was a bug fix since the code
8487           used to drop some data in some circumstances.
8488
8489         * Added new function into lib/silcclient/client.[ch]:
8490           silc_client_start_key_exchange to start key exchange after
8491           connection has been established to server.  The code internally
8492           now uses this funtion but its main purpose was to provide it
8493           for applications that perform their own connecting.  After
8494           application has created a connection it merely calls this
8495           function to start the key exchange between client and server.
8496           The library takes care of everything else after that.
8497
8498           Updated also lib/silcclient/README to explain the usage of
8499           this new function.
8500
8501         * Do not send to application information that connection has
8502           been established.  Application gets notified it by connect
8503           operation anyway.
8504
8505 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8506
8507         * Applied cras's patch to add silc_schedule_one function.  The
8508           function runs scheduler once and returns.
8509
8510         * Fixed the scheduler after cras messed it up.  The timeout
8511           handling works now as it's supposed to work.
8512
8513         * Added into lib/silccore/ silcnotify.h to include notify
8514           message types support.  Changed silc_server_send_notify*
8515           functions, in server.[ch], to support those new notify types.
8516           Added the support for the notify types into client library,
8517           as well.  Added new notify client operation into ops.h in
8518           lib/silcclient/.
8519
8520         * Changed silc_server_packet_send_to_channel to send normal
8521           packets instead of just channel message packets.  The function
8522           is now used to send the notify packets to channels.  It is not
8523           used to send channel message packets anymore, as server never
8524           sends them anymore.
8525
8526         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
8527           va_arg()s as it seems to require it nowadays.  I guess, if SILC
8528           is compiled with older va_arg() the new code should work anyway.
8529
8530 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8531
8532         * Splitted core library.  Core library (lib/silccore) includes
8533           now only SILC protocol specific core (and common) components.
8534           Created new utility library (lib/silcutil) that includes more
8535           generic purpose stuff.  The stuff for util library was taken
8536           from the old core library.  This was minor and easy split.
8537
8538         * Created SILC Client Library (lib/silcclient) that includes
8539           implementation of the SILC client without user interface.  This
8540           was major move from silc/ directory.  The code has been changed
8541           so that it is transparent towards the user interface.  The
8542           silc/ directory includes now the same user interface as before
8543           and it uses the new client library.  Read lib/silcclient/README.
8544           Basicly, the client library performs everything else related
8545           to SILC except user interface handling.  Also, configuration
8546           files are considered to be part of user interface and library
8547           does not handle them.
8548
8549           This change also changed a lot of structures, function naming etc.
8550           Most important change was that SilcClientWindow object was
8551           renamed to SilcClientConnection in the client library.  Created
8552           also new file lib/silcclient/ops.h.  Also added new files
8553           silc/local_command.[ch] and silc/client_ops.[ch].
8554
8555           All these changes were made to make it easier for user interface
8556           designers to create what ever user interface for the SILC client
8557           they want.
8558
8559           It is also expected that the server will be moved to lib
8560           directory as well and SILC Server Library will be created;
8561           sometimes in the future.
8562
8563         * Removed Local commands from lib/silccore/silccommand.h as
8564           they are application specific and new client library does not
8565           handle any of those anymore.
8566
8567         * Several functions moved to lib/silcutil/silcutilc.[ch] from
8568           old client implementation in silc/.
8569
8570         * Added support for callback functions in SILC_LOG_* macros.
8571           Application can now set its own callbacks that will be called
8572           instead of using the default functions that will always print
8573           the debug messages to stderr (or stdout).  Also, debugging can
8574           now be disabled by setting silc_debug to FALSE and re-enabled by
8575           setting it to TRUE.  Note, that logging will still work even
8576           if debugging is disabled.
8577
8578           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
8579           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
8580           silc_log_reset_debug_callbacks.
8581
8582         * To enable debugging in silc client one must give now -d
8583           option on command line.
8584
8585         * Changed silc_schedule_init to automatically allocate task queues
8586           if they are not allocated before calling it.
8587
8588 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8589
8590         * Added GMP 3.1 into math library.
8591
8592 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8593
8594         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
8595           a channel in SILC network.  The packet is used by servers and
8596           routers to notify other routers that user has left a channel.
8597           This little feature was missing until now.  Added the feature
8598           to protocol specification as well.
8599
8600           Added functions: silc_server_send_remove_channel_user and
8601           silc_server_remove_channel_user into server.[ch].
8602
8603         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
8604           lib/silccore/silcpacket.h.  However, they are not implemented
8605           yet.
8606
8607 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8608
8609         * Fixed joining to a channel and sending channel messages
8610           between server and router.  The channel message sending should
8611           now work inside a cell.
8612
8613 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8614
8615         * Fixed the private message sending between server and router.
8616           The private message sending should now work inside a cell.
8617
8618         * Added silc_server_replace_id into server.[ch] to replace
8619           existing ID in the SILC network.
8620
8621         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
8622           and silc_idlist_replace_server_id into idlist.[ch] in server.
8623
8624 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8625
8626         * Fixed the server to server connections.  Server can again now
8627           connect to router.  Router to router connections probably does
8628           not work just yet.
8629
8630 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8631
8632         * Added dynamic protocol registering support.  Now protocols can
8633           registered and unregistered on the fly.  Patch by cras.
8634
8635 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8636
8637         * Added lib/contrib directory to hold routines that some platforms
8638           don't have but are needed by SILC.
8639
8640         * Added getopt.c, getopt1.c and getopt.h from GNU C library
8641           into lin/contrib to provide getopt() and getopt_long() for
8642           those who don't have it.
8643
8644 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8645
8646         * Added AWAY command to client.  When away message is set and
8647           client receives a private message packet the client automatically
8648           replies to the sender with the away message.
8649
8650         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
8651           bug seemed to be the cause of recent problems when compiling
8652           with gcc-2.95.
8653
8654         * Added version detection support to SKE protocol specification
8655           and added the new changes to the SKE implementation as well.
8656           There were other minor changes in the SKE protocol as well.
8657
8658           Many changes in lib/silcske/silcske.[ch] and in
8659           lib/silcske/payload.[ch].
8660
8661         * Added ^U functionality, clear input line.  Patch from cras.
8662
8663 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8664
8665         * Mainly small bugfixes on core library.  Fixed some debugging
8666           logging and buffer overflow in silclog.c.
8667
8668         * Updated config.sub and config.guess on the distribution tree.
8669
8670 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8671
8672         * Added command lagging support in server. Client may execute
8673           commands now only once in two seconds.
8674
8675 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8676
8677         * Optimized packet reception. MAC computation and checking is now
8678           also more optimized.  A lot previously duplicated code is now
8679           used as generic by both client and server.
8680
8681         * Fixed key pair generation in clientutil.c
8682
8683 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8684
8685         * Added into lib/silccore/silcbufutil.[ch] new function;
8686           silc_buffer_realloc.
8687
8688         * Moved generic packet sending/encryption functions to 
8689           lib/silccore/silcpacket.[ch] from client and server.  Some
8690           rewriting of the functions.
8691
8692         * Moved all generic packet reception/decryption functions to
8693           lib/silccore/silcpacket.[ch] from client and server.  The
8694           packet processing is now much cleaner in both client and server.
8695           These were major changes in both client and server.
8696
8697         * Created many common functions in server to do packet sending.
8698           Previously code were duplicated a lot, this has been removed
8699           with these changes.
8700
8701 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8702
8703         * Rewrote major parts of the ID cache system.  Don't know 
8704           whether it is better now or not but at least the API is more
8705           cleaner now.
8706
8707         * Major rewrite on ID cache stuff on client because of the ID
8708           cache API changes.  Added idlist.c to client.
8709
8710         * Also major rewrite on ID cache stuff on server as well.
8711           Major rewrite of idlist.[ch]. SilcXXXList's are now named
8712           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
8713           in hand, instead they are all put into the ID cache system now.
8714           All server_idlist_* routines uses ID cache now instead of
8715           traversing its own lists (those lists does not exist anymore).
8716           SilcIDList though still exists.  Also, SilcXXXEntry's are
8717           now pointers.
8718
8719 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8720
8721         * Finally made the SKE implementation compliant to the protocol
8722           specification.  All mp integers are now binary encoded as
8723           opposed being HEX encoded.
8724
8725         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
8726           from binary data.
8727
8728         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
8729           functions: silc_[encode/decode]_pem.  Also added function
8730           silc_encode_pem_file to PEM encode with newlines ('\n') for
8731           saving into a file.
8732
8733         * SILC public keys are now encoded either PEM or binary.  Same
8734           option is for private keys as well.  By default private keys
8735           are binary encoded and public keys PEM encoded.  Silly HEX
8736           encoding were removed.
8737
8738         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
8739           function to create fingerprints.
8740
8741         * Fixed a bug in SHA1; does not change the original data anymore.
8742
8743         * Partly implemented INFO command on client and server side.
8744           Fixed CLEAR command.  Changes to SERVER command; show current
8745           server(s) when giving command without arguments.  Added
8746           VERSION command to client.
8747
8748         * Added check to server that unregistered connections cannot
8749           execute commands (unless it is specificly allowed).
8750
8751 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8752
8753         * Fixed screen refresh.
8754
8755         * Fixed channel joining bug from client.  On some circumstances
8756           client tried to join to a channel it had already joined.
8757
8758         * Added public key verification process into client's protocol.c.
8759           The client now verifies the public key from user and saves
8760           it into ~./silc/serverkeys/ directory. 
8761
8762           Added into: clientutil.[ch]: silc_client_verify_server_key.
8763
8764         * Changed SKE protocol's silc_ske_initiator_finish function
8765           to accept callback function that verifies the received public
8766           key.  Removed old silc_ske_verify_public_key function.
8767
8768 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8769
8770         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
8771           silc_pkcs_private_key[_data]_set.
8772
8773         * Made the password and public authentication more cleaner in
8774           server's protocol.c.
8775
8776         * Removed historic and obsolete protocol `channel_auth' from
8777           both client and server.
8778
8779         * Removed wrong way of sending command status messages from
8780           server to client in server's command.c.  The old way violated
8781           protocol specification.  
8782
8783           Changes to silccore/silccommand.[ch]: removed
8784           silc_command_encode_status_payload -> not needed anymore,
8785           changed silc_command_encode_payload_va to accept extra
8786           argument on variable argument list.  The argument type must
8787           now be provided to the function.  Also, added new function:
8788           silc_command_encode_reply_payload_va which is same as
8789           normal command_encode_payload_va except command status type
8790           is provided as extra argument.
8791
8792 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8793
8794         * Added ~./silc directory handling.  The directory includes the
8795           public and private keys for the client.
8796
8797           Added silc_client_check_silc_dir, silc_client_create_identifier
8798           and silc_client_load_keys.
8799
8800         * Implemented SILC protocol compliant public key.  Added public
8801           and private key saving to and loading from files.
8802
8803           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
8804           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
8805           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
8806           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
8807           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
8808
8809           Implemented: silc_pkcs_save_[public/private]_key[_data] and
8810           silc_pkcs_load_[public/private]_key.
8811
8812 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8813
8814         * Added silc_server_get_route (route.[ch]) to get connection
8815           data for the fastest route for given ID.
8816
8817         * Implemented INVITE command on client and server.  The command
8818           were re-defined in the SILC Protocol Specification and the
8819           implementation now complies with the specification.
8820
8821         * Implemented PING command on client and server.
8822
8823         * Implemented NAMES command on client and server.  The server side
8824           supports currently only normal server not router server yet.
8825           Some changes to NAMES definition in SILC protocol specification.
8826
8827 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8828
8829         * Implemented LEAVE command on client and server.
8830
8831         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use 
8832           again.  This change was made to the protocol as well.  Server
8833           should not violate the protocol specification anymore.
8834
8835 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
8836
8837         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
8838           was tested.  SOCKS4 was not but should work anyway.