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