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