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