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