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