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