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