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