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