updates.
[silc.git] / CHANGES
1 Sat Apr 28 21:19:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Do not check for too new protocol version in during SKE,
4           per the documented feature in silcd.conf(5).
5
6         * Return correct command in SILCOPER command in case of error.
7           Affected file apps/silcd/command.c.
8
9 Wed Mar  7 18:38:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
10
11         * Fixed a core-dump when joining unknown channels.  Affected
12           file apps/irssi/src/silc/core/silc-channels.c
13
14 Tue Mar  6 22:48:25 CET 2007  Patrik Weiskircher <pat@icore.at>
15
16         * Applied patch from Frank Benkstein. If invalid hmac or cipher
17           was specified on joining a channel, server crashed. Affected
18           file apps/silcd/command.c.
19
20 Tue Mar  6 22:19:44 CET 2007  Patrik Weiskircher <pat@icore.at>
21
22         * Removed references to lib/silcutil/epoc, fixed a bug in
23           configure.ad.  Affected files lib/configure.ad,
24           lib/silcutil/Makefile.ad, configure.ad.
25
26 Mon Mar  5 23:27:32 CET 2007  Jochen Eisinger <coffee@silcnet.org>
27
28         * Update patch to makefile from trunk so parallel make will link
29           the silc-client correctly.  Affected file lib/Makefile.ad
30
31 Mon Dec 11 19:43:37 CET 2006  Pekka Riikonen <priikone@silcnet.org>
32
33         * Check for NULL SKE in rekey error handling.  Affected file
34           apps/silcd/protocol.c.
35
36 Sun Nov 19 18:58:26 CET 2006  Jochen Eisinger <coffee@silcnet.org>
37
38         * Import perl script for sign_messages from silc-plugin.  Affected
39           file apps/irssi/scripts/silc.pl
40
41 Tue Oct  3 21:22:00 CEST 2006  Jochen Eisinger <coffee@silcnet.org>
42
43         * When joining channels with a password given in the config file,
44           use it.  Also use it when cycling (it would be better to get
45           the password from the server, but this isn't possible in SILC).
46           Affected files apps/irssi/src/silc/core/silc-servers.c,
47           apps/irssi/src/silc/core/silc-channels.c
48
49 Sun Oct  1 20:39:34 CEST 2006  Jochen Eisinger <coffee@silcnet.org>
50
51         * Always return a valid username.  Affected file
52           lib/silcutil/unix/silcunixutil.c
53         * Only wait for a nick on connecting, when it differs
54           (not counting case) from the username.  Affected file
55           apps/irssi/src/silc/core/client_ops.c
56
57 Sun Jul  2 19:12:36 CEST 2006  Jochen Eisinger <coffee@silcnet.org>
58
59         * Make gmake the default for autodist, so I can properly work
60           on otaku.  Affected files README.DIST, distdir/autodist.conf
61
62 Fri Jan  6 13:08:15 CET 2006 Jochen Eisinger <coffee@silcnet.org>
63
64         * Fixed more autodist issues.  Affected file doc/Makefile.ad,
65           apps/irssi/src/perl/Makefile.am, distdir/post-process-dist.
66
67 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
68
69         * make sure session->hostname and session->port are valid before the
70           application callback is done, since things will go wrong if the
71           application immediately calls silc_client_file_receive. Affected
72           file lib/silcclient/client_ftp.c.
73           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
74
75 Wed Dec 14 19:21:42 CET 2005 Jochen Eisinger <coffee@silcnet.org> 
76
77         * Fixed autodist configuration for silc-client.  Affected file
78           configure.ad
79         * Honor user set hostname.  Also give the user a chance to
80           read the error message.  Affected file 
81           apps/irssi/src/silc/core/silc-core.c
82
83 Tue Nov 29 07:52:11 CET 2005 Patrik Weiskircher <pat@icore.at>
84
85         * Fixed compile error on non-i386.  Affected file 
86           lib/silccrypt/sha256.c.
87
88 Mon Nov 21 19:18:15 EET 2005 Pekka Riikonen <priikone@silcnet.org>
89
90         * Added SILC_ATTRIBUTE_USER_ICON to lib/silccore/silcattrs.[ch].
91
92 Sun Nov 20 19:13:35 EET 2005 Pekka Riikonen <priikone@silcnet.org>
93
94         * Removed callback system from SilcMimeAssembler.  Return
95           the multipart type in silc_mime_get_multiparts.  Affected
96           files are lib/silcutil/silcmime.[ch].
97
98 Sat Nov 19 17:34:51 EET 2005 Pekka Riikonen <priikone@silcnet.org>
99
100         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
101           silc_mime_parse is available but deprecated.
102
103         * Check that packet is valid when processing key exchange,
104           authentication and rekey protocols.  Fixes a crashbug.
105           Affected files are apps/silcd/protocol.c and
106           lib/silcclient/protocol.c.
107
108         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
109           all hash buffers to use that instead of fixed values.
110
111 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
112
113         * Added SHA-256 to crypto library.  The SHA-256 takes now
114           precedence over SHA-1.
115
116 Wed Nov 16 00:36:53 CET 2005  Jochen Eisinger <c0ffee@penguin-breeder.org>
117
118         * fixed wrong return code in term_init.  Affected file
119           apps/irssi/src/fe-text/terminfo-core.c
120           
121 Mon Sep 12 18:13:38 CEST 2005  Jochen Eisinger <c0ffee@penguin-breeder.org>
122
123         * and it doesn't return FILE* but a file descriptor.  Affected
124           file apps/silcd/silcd.c
125
126 Mon Sep  5 18:40:22 CEST 2005  Jochen Eisinger <c0ffee@penguin-breeder.org>
127
128         * mkstemp returns -1 on error, thanks to brad@comstyle.com for
129           pointing this out.  Affected file apps/silcd/silcd.c
130
131 Fri Sep  2 23:44:37 CEST 2005  Jochen Eisinger <c0ffee@penguin-breeder.org>
132
133         * Fixed the insecure temporary file creation issue now that it's
134           even on bugtraq... Affected file apps/silcd/silcd.c
135
136 Wed Aug 24 18:27:48 CEST 2005  Patrik Weiskircher <pat@icore.at>
137
138         * Before creating a channel key we need to remove the private key
139           mode, otherwise no key is created. Affected file
140           apps/silcd/command.c
141
142 Fri Aug 19 15:20:05 CEST 2005  Patrik Weiskircher <pat@icore.at>
143
144         * Before checking ip/hostname of SilcSocketConnection, check
145           if its not doing a host lookup currently. Fixes atleast one
146           crash when many people connect at the same time.
147           Affected file apps/silcd/server_util.c.
148
149 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
150
151         * Check for valid return value from regcomp.  Affected file
152           lib/silcutil/unix/silcunixutil.c.
153
154 Tue May 10 19:55:13 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
155
156         * Check for FD_SETSIZE in silc_select to not go over.
157           Affected file lib/silcutil/unix/silcunixschedule.c.
158
159 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
160
161         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
162
163 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
164
165         * Fixed channel public key list saving on JOIN command reply
166           on backup router.  Affected file apps/silcd/command_reply.c.
167
168 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
169
170         * Added default limit how many channels client can join,
171           default is 50.  Added 'channel_join_limit' configuration
172           option to server too.  Affected files are apps/silcd/command.c
173           and serverconfig.[ch].
174
175 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
176
177         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
178           On Toolkit the server and client are not compiled by default.
179           Affected file configure.ad.
180
181 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
182
183         * Added lib/contrib/getopt.[ch] for platforms that don't
184           have it (it is not GPL implementation).
185
186         * Fixed compilation when pkg-config is used.
187
188 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
189
190         * A comma in invite/ban string is invalid, check for it.
191           Affected file apps/silcd/server_util.c.
192
193         * Added SERVICE command to the server.  It parses the command
194           request but SILC Server does not support services for the
195           time being.  Affected file apps/silcd/command.[ch].
196
197         * Added SERVICE command and command reply to client library.
198           It is however incomplete.  Updated Toolkit documentation.
199           Affected files are lib/silcclient/command[_reply].[ch].
200
201         * Fixed IDENTIFY/WHOWAS command reply to send the username
202           correctly (uninitialized buffer).  Affected file is
203           apps/silcd/server_query.c.
204
205 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
206
207         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
208           finalizes the major restructuring of the CVS tree.
209
210 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
211
212         * Send empty MOTD reply if MOTD file cannot be read.
213           Affected file silcd/command.c.
214
215 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
216
217         * Optimized primer number generator to use simpler conversion
218           routines.  Also assure that the prime number will have the
219           highest bit set after modifying it.  Affected file is
220           lib/silcmath/silcprimegen.c.
221
222         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
223
224         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
225           for now only for testing purposes, it will not be delivered
226           in any distribution for now.
227
228         * Removed NSS MPI from the source tree.  Due to upcoming
229           license change for the SILC Toolkit, we cannot deliver the
230           NSS MPI anymore.  I decided to replace it in all distributions
231           with public domain library.
232
233         * Removed GNU regex from lib/contrib and introduced free
234           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
235           GNU regex compatible API to it (only partial).
236
237         * Removed getopt routines from lib/contrib.
238
239 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
240
241         * Use silc_server_send_command_reply to send replies instead
242           of encoding packet itself.  Affected file silcd/command.c.
243
244         * Added command sending and receiving statistics to server.
245           Affected files in silcd/.
246
247         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
248           with GCC, for it not to warn about pointer signedness.
249
250 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
251
252         * Added context to the SilcIDCache destructor.  Affected
253           files are lib/silccore/silcidcache.[ch],
254           lib/silcclient/client.c and silcd/server.c.
255
256 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
257
258         * Added pkg-config check to configure.
259
260         * The PublicKeyDir must not be used with Admin block in server
261           config.  Affected file silcd/serverconfig.c.
262
263 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
264
265         * Added Autodist.
266
267 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
268
269         * Handle empty LIST command reply correcttly in server.  Affected
270           file silcd/command_reply.c.
271
272         * Handle empty LIST command reply correctly in client library.
273           The application will now receive one LIST command reply with
274           all arguments set to NULL if there are no channels.  Updated
275           Client Library documentation accordingly.  Affected file
276           lib/silcclient/command_reply.c.
277
278 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
279
280         * Added channel name string stringprep profile to the protocol
281           and implementation to allow a little free'er channel name
282           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
283
284         * Added silc_channel_name_[check|verify] to check and verify
285           channel name strings.  Affected files are
286           lib/silcutil/silcstrutil.[ch].
287
288         * Added support for the new channel name preparation in client
289           library and server.  Affected files in lib/silcclient and
290           silcd/.
291
292 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
293
294         * Added the Autodist into the source tree.  It replaces the
295           old ./prepare.  It can be used to create distributions as
296           previously.  See README.CVS and README.DIST.  See
297           distributions in distdir/.
298
299 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
300
301         * Make sure query sends at least an error back if nothing
302           more is sent.  Affected file silcd/server_query.c.
303
304 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
305
306         * During query, check if the original command caller goes
307           away.  If it does, stop the query.  Affected file
308           silcd/server_query.c.
309
310         * Check for valid channel creation in JOIN command reply.
311           Affected file lib/silcclient/command_reply.c.
312
313         * Handle the resolver counter in silc_client_get_users_by_channel
314           callback correctly.  Fixed auto-join bug in Gaim.  Affected
315           file lib/silcclient/idlist.c.
316
317 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
318
319         * Added some better error messages.  Affected file
320           silcd/command_reply.c and packet_receive.c.
321
322         * Handle error in WATCH command propely on backup router.
323           Affected file silcd/command.c.
324
325         * Fixed freeing of unfreeable variable in WHOIS command reply.
326           Affected file silcd/command_reply.c.
327
328 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
329
330         * Added pkg-config .pc file creation for silc core library
331           and silcclient library.  A patch by c0ffee.
332
333         * Removed the need for GNU Libidn.  Added the simple stringprep
334           from libidn into lib/contrib/.  It is now used also on Windows
335           build.
336
337 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
338
339         * Simplified the invite and ban string handling in the
340           server.  Check for valid invite and ban arguments also.
341           Affected file silcd/server_util.c.
342
343 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
344
345         * Added WATCH list announcing in backup router protocol.
346           Affected files are silcd/command.c, server.c, server_backup.c.
347
348         * Do not change users mode to founder on normal server/backup
349           if the founder mode is set, and user is first one to join.
350           Affected file silcd/pcaket_receive.c.
351
352         * Do not send CUMODE_CHANGE notify back to sender.  Affected
353           file silcd/packet_receive.c.
354
355         * Added getrusage() to take noise in SILC RNG.  A patch by
356           Mika Boström.  Affected files are configure.in.pre,
357           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
358
359 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
360
361         * Splitted the SILC libraries configuration into a configure
362           fragment into lib/configure.ad.  It is now possible, once
363           this feature is added, to specify whether to compile or not
364           compile included SILC libraries.  Affected files are
365           configure.in.pre, lib/silcmath/mpi/configure.ad,
366           lib/configure.ad, Makefile.defines.pre and
367           Makefile.defines_int.pre.
368
369         * Added --with-silc-includes and --with-silc-libs to configure.
370           If specified the included libs are not compiled, but the
371           specified libs are used.  Pkg-config is not yet supported.
372           Affected file configure.in.pre.
373
374         * Fixed WATCH command handling on backup router.  Router does not
375           send the watch command any more to backup if it originates from
376           backup.  Affected file silcd/command.c.
377
378 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
379
380         * Changed announcing to not announce unregistered clients.
381           Affected file silcd/server.c.
382
383         * Fixed username handling in command reply.  Affected file
384           silcd/command_reply.c.
385
386         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
387
388 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
389
390         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
391           Affected file: includes/silcincludes.h.in
392
393         * bool is defined as _Bool on Mac OS X now.
394           Affected file: lib/silcutil/silctypes.h
395
396 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
397
398         * Added support for UTF-8 nicknames, channel names and
399           server names in client library.  Affected files in
400           lib/silcclient/.
401
402         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
403           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
404           software to check how Toolkit has been compiled.
405
406 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
407
408         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
409
410         * Use silc_utf8_str[n]casecmp instead of strcmp routines
411           in library and in SILC Client when dealing with nicknames
412           and other identifier strings.  Affected file in client lib
413           and irssi.
414
415         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
416           irssi/src/silc/core/silc-servers.c.
417
418 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
419
420         * Fixed idcache to work with the new identifier strings.
421           Affected file lib/silccore/silcidcache.c.
422
423         * Added UTF-8 hash and compare function for SilcHashTable.
424           Affected file lib/silcutil/silcutil.[ch].
425
426         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
427           Affected file lib/silcutil/silcstringprep.[ch].
428
429         * Changed the identifier string handling to include the original
430           format in client, server, channel entries and normalized
431           format in cache.  Affected files in silcd/.
432
433 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
434
435         * Added support for the new identifier strings and their
436           validity checking.  Nicknames, channel names and usernames
437           can now include practically any kind of letters and various
438           other characters.  Affected files in silcd/ and in libraries.
439
440           NOTE: comparing these strings should now be done with memcmp()
441           to check binary compatibility.  All these strings are normalized
442           and casing is irrelevant.
443
444         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
445           as easy function for applications to check whether identifier
446           strings are valid.
447
448 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
449
450         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
451           file lib/silcutil/silcutf8.c.
452
453         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
454
455 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
456
457         * Make public key in getkey reply mandatory.  Affected file
458           lib/silcclient/command_reply.c
459
460 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
461
462         * Added Parameter dont_register_crypto_library to
463           SilcClientParam. If set to TRUE, silcclient library will
464           not initalize the Crypto Libraries and application
465           will need to do it. Affected file lib/silcclient/silcclient.h,
466           lib/silcclient/client.c.
467
468 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
469
470         * Imported new silc_utf8_[encode|decode] routines from
471           my internal SILC 1.1 source tree.  New encodings added:
472           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
473           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
474           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
475           SILC_STRING_LDAP_DN.
476
477         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
478
479         * Implemented stringprep (RFC 3454) API.  Internally we use
480           GNU Libidn's stringprep, for now, so it is required now to
481           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
482
483         * Added checking for GNU Libidn and --with-libidn to configure.
484
485 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
486
487         * If the passphrases entered do not match while generating a new key,
488           completly start over instead of going into an infinite loop asking
489           the user to re-enter the passphrase correctly.  Affected file
490           lib/silcutil/silcapputil.c
491
492 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
493
494         * Make sure server is removed from backup list when it is
495           deleted.  Affected files silcd/command.c, server.c,
496           server_util.c.
497
498         * Close socket when connecting to router fails.  Affected
499           file silcd/server.c.
500
501 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
502
503         * Adopt configuration toolchain to current auto-tools.
504           Affected files prepare, irssi/configure.in
505         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
506           redo that.  Affected files irssi/src/silc/core/client_ops.c,
507           irssi/src/fe-common/silc/fe-silc-channels.c
508         * Take over command line options into silcclient data structure.
509           Affected file irssi/src/silc/core/silc-core.c
510
511 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
512
513         * Do not try to initiate backup resuming protocol forever.
514           Affected file silcd/server_backup.c.
515
516 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
517
518         * ID change in resuming has to be done before changing
519           detached client's modes, since the ID change may fail and
520           leave ghosts on the network.  Affected file is
521           silcd/packet_receive.c.
522
523 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
524
525         * Fixed Win32 scheduler to not stuck anymore.  A patch from
526           Juha Räsänen.  Affected file is
527           lib/silcutil/win32/silcwin32schedule.c.
528
529         * Fixed QoS parsing for connection blocks in server.  Affected
530           file is silcd/serverconfig.c.
531
532         * Fixed server statistics increasing in server.  Affected file
533           is silcd/server.c.
534
535         * The CLOSE command now marks backup router as self disconnected
536           to avoid resuming problems.  Affected file silcd/command.c.
537
538 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
539
540         * When using silc_net_create_connection[_async], and your system can
541           create IPv6 sockets, it will try to connect to the IPv6 host.
542           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
543           file lib/silcutil/unix/silcunixnet.c
544
545 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
546
547         * Check for valid route when receiving packet from router and
548           when routing it to local server in the cell.  A patch from
549           Matt Miller.  Affected files silcd/router.c and server.c.
550
551 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
552
553         * Couldn't detach and reattach twice, because of the previous
554           commit. Affected file silcd/packet_receive.c
555
556 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
557
558         * Added check to ignore Port value if Initiator is FALSE.
559           Remote router coudln't connect if Port was set. Affected file
560           silcd/serverconfig.c
561
562         * If some client tries to resume more than once at the same time,
563           server crashed. Router didn't crash, but showed odd behaviour
564           (didn't allow clients to join anymore, ..). Affected files
565           silcd/packet_receive.c silcd/idlist.h
566
567 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
568
569         * Destroy the file transfer session in silc_client_file_close
570           with timeout.  Affected file lib/silcclient/client_ftp.c.
571
572         * Call SFTP server monitor in READ and WRITE after the actual
573           operations.  Affected file lib/silcsftp/sftp_server.c.
574
575 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
576
577         * Create one configure script from configure fragments
578           (configure.ad).  This is a first step towards new distribution
579           system.  Affected files prepare, configure.in.pre,
580           lib/silcmath/mpi/configure.ad.
581
582 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
583
584         * Removed expiring of client key pair.  Affected file is
585           irssi/src/silc/core/clientutil.c
586
587 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
588
589         * Check the number of connections from real number of
590           connections instead of socket number, when deciding if
591           server is full.  Affected files are silcd/server.c,
592           server_internal.h and silcd.c.
593
594         * Clarified the connections_max meaning in General section
595           in doc/example_silcd.conf.in.
596
597         * The reconnect_keep_trying default value set to TRUE
598           if it is not defined in the config file.  Affected file
599           silcd/serverconfig.c.
600
601 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
602
603         * Fixed crashbug in connection closing, after a protocol
604           completion callback, which might have closed it already.
605           Affected file silcd/server.c.
606
607         * Fixed rekey with PFS in backup router.  It did not allow
608           rekeys with PFS, and when the rekey protocol timedout
609           it crashed the backup router without the above fix.  Affected
610           file silcd/packet_send.c and server.c.
611
612 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
613
614         * The silc_client_add_channel_private_key now returns the
615           private key context if pointer is given as argument.
616           Affected files are lib/silcclient/silcclient.h and
617           client_channel.c.
618
619         * Added support for using channel private keys in SILC
620           Client Library even if the private key mode is not set
621           on the channel.  Affected file lib/silcclient/client_channel.c.
622
623         * The channel private key used to decrypt message is now
624           delivered to the application in the 'channel_messageÃ' client
625           operation.  Affected files are lib/silcclient/silcclient.h
626           and client_channel.c.
627
628         * Fixed wrong arg type for user limit in CMODE command reply.
629           Affected file silcd/command.c.
630
631         * The user limit is now taken and saved to SilcClientEntry in
632           JOIN and CMODE command replies and in CMODE_CHANGE notify.
633           Affected files lib/silcclient/silcclient.h, command_reply.c
634           and client_notify.c.
635
636         * Added support to the new private message key indicator
637           packet.  Added a new function to the client library:
638           silc_client_send_private_message_key_request.  The sender
639           indicates to be initiator, and receiver is responder.
640           Added the indicator to the SilcClientEntry as 'prv_resp'
641           boolean.  Affected files are lib/silcclient/silcclient.h
642           client.[ch], and client_prvmsg.c.
643
644 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
645
646         * Fixed the JOIN command calling when called with both
647          -auth and -founder.  Affected file is lib/silcclien/command.c.
648
649 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
650
651         * Check watcher list for resumed clients as well.  Affected
652           file is silcd/packet_receive.c.
653
654 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
655
656         * Implemented the user limit to the CMODE_CHANGE notify,
657           CMODE command reply and JOIN command reply in server.
658           Affected files are silcd/server.c, command.c, command_reply.c,
659           packet_send.c and packet_receive.c.
660
661 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
662
663         * Defined SILC_STRFMT_END that must be used now with
664           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
665           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
666           lib/silcclient/silcvcard.c, silcd/server_util.c.
667
668         * Fixed the adding of public key to the WATCH list in server.
669           Fixed the WATCH notify sending to client.  Affected files
670           are silcd/packet_send.[ch], command.c, server_util.c.
671
672         * Implemented the watching by public key in the SILC Client
673           Library and SILC Client.  Affected files are
674           lib/silcclient/command.c and client_notify.c.
675
676 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
677
678         * Added support for public key watching in server.  Affected
679           files are silcd/server.c, server_internal.h, command.c,
680           server_util.c.
681
682 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
683
684         * Added public key to the SIlcClientEntry.  Affected files
685           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
686
687         * Fixed the get_clients_whois reply processing to return
688           exactly same entries server returned.  Makes it possible
689           to search using attributes.  Affected file is
690           lib/silcclient/idlist.c.
691
692 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
693
694         * Save founder key to SilcChannelEntry.  Affected files are
695           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
696
697 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
698
699         * Call the monitor callback with _CLOSED status from the
700           silc_client_file_close.  Affected files are
701           lib/silcclient/client_fpt.c, silcclient.h
702
703         * Added silc_client_get_clients_whois which resolves using
704           WHOIS, and supports requested attributes as well.
705           Affected files are lib/silcclient/silcclient.h, idlist.c.
706
707 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
708
709         * Added support for asking the destination filename where
710           the downloaded file is saved in the file transfer.  Affected
711           files are lib/silccilent/silcclient.h, client_ftp.c.
712
713 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
714
715         * Fixed error handling in resuming data processing.  Affected
716           files are lib/silcclient/client_resume.c and client.c.
717
718 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
719
720         * Fixed silc_client_send_private_message to return TRUE correctly.
721           Affected file lib/silcclient/client_prvmsg.c.
722
723         * Added topic to the SilcChannelEntry.  Affected files are
724           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
725
726 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
727
728         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
729           file lib/silcclient/command.c
730
731 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
732
733         * Convert all commands to UTF-8 before passing them to the
734           client library.  Still need to convert replies from UTF-8 to
735           the locale encoding.  Affected file
736           irssi/src/silc/core/silc-cmdqueue.c
737
738 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
739
740         * redirect all silc_client_command_calls through a queueing framework.
741           This fixes /CYCLE and the annoying "nick change after auto-joining
742           a channel".  Furthermore it defines one central point where
743           command parameters can be UTF-8-ified.  Affected files
744           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
745           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
746
747 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
748
749         * use asynchronous connect() to establish router connections.
750           Fixes problem when the primary router goes down.  Affected files
751           silcd/server.c, silcd/server_backup.c
752
753 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
754
755         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
756           Fixed various compilation warnings when type casting ints
757           to pointers or vice versa, of different size.  Updates around
758           the source free.
759
760 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
761
762         * Surrogates not allowed in UTF-8 strings, updated decoder.
763           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
764           testers in lib/silcutil/tests/ directory.
765
766 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
767
768         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
769           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
770           files are lib/silcclient/silcclient.h, client.c.
771
772 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
773
774         * When resuming a session fails, notify the user that the session
775           file needs to be removed eventually.  Affected files
776           irssi/src/fe-common/silc/module-formats.[ch],
777           irssi/src/silc/core/client_ops.c.
778
779 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
780
781         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
782           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
783
784         * Typofix in Irssi::Silc module.  Affected file
785           irssi/src/perl/silc/Silc.xs.
786
787 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
788
789         * Changed the way NOTICE flagged messages are treated. Added support
790           for notices in queries and signing notices.  Affected files
791           irssi/default.theme; irssi/docs/help/in/notice.in;
792           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
793           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
794
795         * Fixed typo in /ACTION help.  Affected file
796           irssi/docs/help/in/action.in
797
798 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
799
800         * Fixed typo in perl module.  Affected file
801           irssi/src/perl/silc/Server.xs
802
803         * Changed the way ACTION flagged messages are treated. Added support
804           for actions in queries and signing actions.  Affected files
805           irssi/default.theme; irssi/docs/help/in/action.in;
806           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
807           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
808           silc-servers.[ch]
809
810 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
811
812         * Incorrectly reported error when client had to be resolved from
813           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
814
815 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
816
817         * Fixed whois public key hash table deleting and adding in
818           detached client case.  Affected file silcd/packet_receive.c.
819
820 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
821
822         * Changed filenames of silc/fe module not to collide with filenames
823           from core/fe.  Also seperated public messages printing from
824           query messages printing.  Affected files are all in
825           irssi/src/fe-common/silc.
826
827 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
828
829         * Fixed the invite process handling during joining to use
830           correct server name for the client that is matched against
831           the invite string for the channel.  Wrong server name caused
832           inability to join the channel.  Affected file is
833           silcd/command.c.
834
835 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
836
837         * Fixed the CUMODE channel founder authentication on normal
838           server to not remove the founder rights on existing founder
839           before checking that router accepts the mode change.  Affected
840           files are silcd/command.c and silcd/packet_receive.c.
841
842         * Remove the server entry correctly when rekey timeouts and
843           remote router connection on normal server is closed.  Fixes
844           a crash where server uses the freed server entry.  Affected
845           file silcd/server.c.
846
847 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
848
849         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
850           networks.  This is the first step in solving the bug about
851           /SERVER ADD -silcnet <silcnet>.  Affected files
852           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
853           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
854           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
855
856 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
857
858         * /SMSG and /MMSG now correctly create new queries. Affected files
859           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
860
861         * Add basic support for SILC protocol specific variables in perl.
862           Affected files irssi/src/perl/silc/*, irssi/configure.in,
863           irssi/src/perl/Makefile.am
864
865 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
866
867         * Don't use silc_get_input, it's obviously not reliable.  Fixes
868           issue when the current key expires.  Affect file
869           irssi/src/silc/core/clientutils.c
870
871         * Make the session data filename configurable.  This makes it
872           possible to have different session files for different
873           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
874           client_ops.[ch], silc-servers.c,
875           irssi/src/silc/fe-common/silc/module-formats.[ch]
876
877         * Use the same set of libtool files for the MPI lib as for the
878           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
879           config.sub, configure.in, install-sh, missing, mkinstalldirs
880
881 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
882
883         * Fixed server statistics decrementing error to not go to
884           negative.  Affected file silcd/packet_receive.c.
885
886 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
887
888         * Use silc_server_query_add_error to add error in public key
889           search error.  Added support in send_reply to send errors
890           without specific argument.  Affected file silcd/server_query.c.
891
892         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
893           Client for NO_SUCH_NICK.  It was against the protocol specs.
894           Affected file irssi/src/silc/core/client_ops.c.
895
896         * Added backwards support for the wrong NO_SUCH_NICK error sending
897           in server.  To be removed in SILC Server 1.0.  Both old clients
898           and clients with fixed error handling now works.  Affected file
899           silcd/server_query.c.
900
901 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
902
903         * fixed a bug in the whois using attributes function where no
904           error was sent if no nickname and client id but the attributes were
905           given to whois. Affected file silcd/server_query.c
906
907 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
908
909         * remove public key from public key hashtable on detach. Affected
910           file silcd/packet_receive.c
911
912         * free public key hashtable before removing clients on server
913           shutdown. Affected file silcd/server.c
914
915         * remove public key prior deleting client-data on killing a client.
916           Affected file silcd/server_util.c
917
918 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
919
920         * Getting the MOTD from other servers works now. Affected
921           files are silcd/command.c and silcd/command_reply.c
922
923 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
924
925         * Initialize the variable idletag, since it is tested in
926           silc_core_deinit for its default value.  Affected file
927           irssi/src/silc/core/silc-core.c
928
929 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
930
931         * Fixed signed channel messages across cells. Affected file
932           silcd/packet_send.c
933
934 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
935
936         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
937           is not defined.  They can now be safely used in if-statements
938           without braces.  Affected file lib/silcutil/silclog.h.
939
940         * Added the checks for backup closing connection due to error
941           (local or remote) and thus not allow the resuming to occur
942           in reconnect.  Affected files are silcd/packet_send.c
943           and server.c.
944
945 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
946
947         * Help file updates.  Affected files in irssi/src/docs/help/in/.
948
949 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
950
951         * Fixed channel messages across cells. Affected file
952           silcd/packet_send.c
953
954 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
955
956         * Fixed file transmission accepting in client library to not
957           start the negotiation if user hasn't accepted the transfer,
958           instead create new session for resent transfer.  Affected
959           file lib/silcclient/client_ftp.c.
960
961         * Show the session ID in the file transmision list.  Remove
962           session from list that failed to transfer.  Switch the current
963           session automatically after transmission, and in errors, to new
964           session if other sessions exists in the transfer list.  Affected
965           files are irssi/src/silc/core/silc-servers.c,
966           irssi/src/fe-common/silc/modfule-formats.c.
967
968 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
969
970         * Fixed MIME header parsing for the hopefully last time.  Affected
971           file lib/silcutil/silcstrutil.c
972
973 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
974
975         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
976
977         * The SILC RNG is now gauranteed to return non-zero random
978           values.  Affected files are lib/silccrypt/silcrng.[ch].
979
980 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
981
982         * Fixed nickname formatting when changing only case of the
983           nickname.  Affected file lib/silcclient/idlist.c.
984
985 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
986
987         * Fixed a memory leak and incorrect printing of the "appears as"
988           message.  Affected file irssi/src/silc/core/client_ops.c
989
990 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
991
992         * Added CRT (Chinese Remainder Theorem) supported RSA
993           private keys and private key operations.  This significantly
994           increases private key operation efficiency.  No compatibility
995           issues with new or old private keys.  Affected files are
996           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
997
998 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
999
1000         * Fixed GCC-3.3.2 related compilation warnings from the
1001           source tree.
1002
1003 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1004
1005         * Removed RC6 from distributions.
1006
1007 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1008
1009         * Added some better comments to lib/silccrypt/silcpkcs.h,
1010           optimized some routines in lib/silccrypt/silcpkcs.c.
1011           Added test_silcpkcs into lib/silccrypt/tests/.
1012
1013         * Fixed silc_rng_global_init to actually init the global RNG
1014           if RNG wasn't provided for it.  Affected file is
1015           lib/silccrypt/silrng.c.
1016
1017 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1018
1019         * Added silc_hash_table_find_by_context_ext.  Affected files
1020           lib/silcutil/silchashtable.[ch].
1021
1022         * Save the public key on normal server in WHOIS command reply
1023           from attributes, if present, and add it to public key hash
1024           table.  Fixes WHOIS resolving by public key on normal server.
1025
1026           Optimized the attributes resolving on normal server to not
1027           resolve if we resolved them already from router.
1028
1029           Affected files are silcd/server_query.c, command_reply.c.
1030
1031 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
1032
1033         * Added support for whois using attributes.
1034           Affected files silcd/command_reply.c, silcd/packet_receive.c,
1035           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
1036           silcd/server_util.c
1037
1038         * Added support for whois using public key attribute to /WHOIS i
1039           client command. Affected files irssi/docs/help/in/whois.in,
1040           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
1041
1042 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1043
1044         * Fixed UMODE setting in server when the client has anonymous
1045           mode set.  The mode setting was not working.  Affected file
1046           silcd/command.c.
1047
1048 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1049
1050         * Fixed some bugs and typos related to sending split messages.
1051           Print notification when sending messages with /MMSG.  Affected
1052           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
1053
1054 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1055
1056         * Optimized the socket referencing in packet routines, client
1057           library and server.  Affected files are lib/silccore/silcpacket.c,
1058           lib/silcclient/client.c and silcd/server.c.
1059
1060         * If silc_socket_set_qos is given with NULL arguments the QoS is
1061           reset from the socket.  Affected files are
1062           lib/silcutil/silcsockconn.[ch].
1063
1064 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1065
1066         * Add a /LISTKEYS command which lists the locally cached
1067           client and server keys.  Affected files
1068           irssi/src/fe-common/module-formats.[ch],
1069           irssi/src/silc/core/silc-{channels,servers}.c
1070           irssi/docs/help/in/listkeys.in
1071
1072 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1073
1074         * Check that packet queue purging was successful.  Affected
1075           files lib/silcclient/client.c and silcd/packet_send.c.  Related
1076           to MAC failed errors.
1077
1078         * Do not clear the inbuf even if it is empty if QoS was applied
1079           to it.  Otherwise the QoS data is cleared and MAC failed error
1080           will occur.  Affected file lib/silccore/silcpacket.c.
1081
1082         * Use the rekey period time as rekey protocol timeout value.
1083           If the rekey does not succeed during the rekey period there's
1084           something very wrong, and we most likely end up with wrong keys,
1085           do graceful reconnect then.   Affected file silcd/server.c.
1086
1087         * Take reference of the socket in the parser context, as it's
1088           possible to have the parsers in queue after the socket is
1089           disconnected and this may cause crash.  Affected files are
1090           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1091           silcd/server.c.
1092
1093 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1094
1095         * Fixed KICK command reply sending, it sent to replies.
1096           Affected file silcd/command.c.
1097
1098 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1099
1100         * Finish the silc-mime.pl script. It now supports MIME type
1101           guessing using magic files, signing data messages, executing
1102           MIME handlers in background. Affected files
1103           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1104
1105         * Changed MIME signal handler to make things easier for the perl
1106           script. Affected files irssi/src/silc/core/client_ops.c,
1107           silc-servers.c, and irssi/docs/signals.txt
1108
1109         * Cleaned up the silc_mime_parse function and fixed detection
1110           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1111
1112 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1113
1114         * Resolve the IP for file transfer listener from the connection
1115           socket.  Affected file lib/silcclient/client_ftp.c.
1116
1117         * Accept NULL hostname parameter in the functions
1118           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1119           if hostname is not wanted.
1120
1121 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1122
1123         * Fixed race condition between silc_client_init and
1124           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1125
1126 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1127
1128         * Fixed file transfer connection closing when SIGNOFF for
1129           the client is received from server.  Affected file is
1130           lib/silcclient/client_ftp.c.
1131
1132 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1133
1134         * Check for disconnected socket in QUIT callback.  Affected
1135           file silcd/command.c.
1136
1137 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1138
1139         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1140           Affected files lib/silcutil/silcstrutil.c
1141
1142         * Cleaned up the escape/unescape functions for correctness and
1143           speed. Affected file irssi/src/silc/core/client_ops.c
1144
1145         * Removed handling for data messages with Content-Type: text/*,
1146           moved parsing of MIME headers to the signal handler, added
1147           support for signing and verifying data messages. Affected
1148           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1149           irssi/src/silc/core/silc-{servers,channels}.c
1150
1151         * Added a perl script for handling data messages based on
1152           information read from Mailcap files. New file
1153           irssi/scripts/silc-mime.pl
1154
1155 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1156
1157         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1158           acknowledge recepetion of a message to the sender.  Updated
1159           protocol specs.
1160
1161 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1162
1163         * Unregister channel key saving callback when deleting channel.
1164           Affected file lib/silcclient/idlist.c.
1165
1166         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1167           before calling notify client operation.  Affected file is
1168           lib/silcclient/client_notify.c.
1169
1170         * Unregister QoS tasks when deleting the socket connection.
1171           Affected files lib/silcutil/silcsockconn.[ch],
1172           unix/silcunixsockconn.c.
1173
1174         * Implemented latest presence-attrs draft changes.  Affected
1175           files lib/silccore/silcattrs.h and
1176           irssi/src/silc/core/silc-queries.c.
1177
1178 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1179
1180         * Save old channel keys in list to allow more rapid change
1181           of channel keys if server for some reason does that.  This
1182           avoids loosing so many channel messages due to not having
1183           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1184           idlist.c and client_channel.c.
1185
1186 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1187
1188         * Continued backup router tests and fixes.  Affected files
1189           silcd/server_backup, server_util.c, server.c.  See TODO.
1190
1191 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1192
1193         * Fixed SERVER_SIGNOFF handling in servers.  The client
1194           was removed from wrong list thus not removing the client
1195           at all.  Affected file silcd/packet_receive.c.
1196
1197         * Do not execute rekey protocol for disabled connections as
1198           it would never go through.  Affected file silcd/server.c.
1199
1200         * Added timeout for rekey protocol to catch if the protocol
1201           never executes successfully.  Affected files silcd/server.c
1202           and protocol.h.
1203
1204 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1205
1206         * Abandon packet processing for disconnected sockets.  Check
1207           this always after calling packet processing callback.
1208           Affected file lib/silccore/silcpacket.c.
1209
1210         * Fixed double registration disconnection code in server.
1211           Closed wrong connection.  Affected file silcd/packet_receive.c.
1212
1213 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1214
1215         * On normal server reconnect to primary during resuming 4
1216           times, then give up.  Affected file silcd/server_backup.c.
1217
1218         * If during reconnecting to routers we notice we have router
1219           connection but no primary router set, the server is in desync.
1220           Reconnect to primary to restore network.  Affected file
1221           silcd/server.c.
1222
1223         * Assure that only one protocol is exeucting at the same time.
1224           Added checks for all protocols.  Affected files are
1225           silcd/server.c and server_backup.c.
1226
1227 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1228
1229         * Check that a string is not already part on invite/ban
1230           string when processing it.  Affected file silcd/server_util.c.
1231
1232 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1233
1234         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1235           with 1.2 version of the protocol.  Affected file is
1236           silcd/packet_receive.c.
1237
1238 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1239
1240         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1241           where the passphrase was given.  Affected file is
1242           silcd/command.c.
1243
1244 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1245
1246         * INVITE and BAN notifys are now delivered from routers to
1247           servers (but not clients) on the channel.  Updated specs and
1248           code.  Affected files silcd/packet_[send|receive].[ch],
1249           command.c, server.c and server_util.c.
1250
1251         * Implemented INVITE and BAN announcing.  Affected files are
1252           silcd/server.[ch], server_util.c.
1253
1254         * Implemented SilcStatus error type argument returning in
1255           command reply error in server.  Affected file silcd/command.c.
1256
1257         * Implemented SilcStatus argument returning in comand reply
1258           in client library.  The command_reply client operation now
1259           returns error specific arguments as well.  Affected files
1260           are lib/silcclient/command_reply.[ch], client_resume.c,
1261           lib/silccore/silcstatus.[ch].
1262
1263 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1264
1265         * Backup router protocol version 1.2 implemented.  Testing still
1266           required.  Affected files in silcd/server_backup.[ch], server.c,
1267           packet_receive.c and server_internal.h.
1268
1269 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1270
1271         * silc_client_send_[channel|private]_message now return TRUE
1272           or FALSE.  Affected file lib/silcclien/client_channel.c and
1273           client_prvmsg.c.
1274
1275 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1276
1277         * Check for explicit nickname in INVITE and BAN processing
1278           during join as well (and don't expect only wildcards in
1279           invite/ban strings).  Affected file silcd/command.c.
1280
1281         * Fixed the INVITE and BAN by public key.  The public key saved
1282           is the PK payload (as specified) not the raw data.  Affected
1283           file silcd/server_util.c.
1284
1285 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1286
1287         * UTF-8 text message support for actions and notices in SILC
1288           Client.  Affected file irssi/src/silc/core/client_ops.c.
1289
1290         * silc_get_username and silc_get_real_name now returns sensible
1291           data on Win32.  Patch by Toni Willberg.  Affected file is
1292           lib/silcutil/win32/silcwin32util.c.
1293
1294 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1295
1296         * Provide a signal handler to send MIME encoded messages and emit
1297           a signal when a MIME encoded message is received. Also document
1298           the signals for usage with the perl interface.
1299
1300           A sample perl script will be supplied at a later point.
1301
1302           Affected files are irssi/docs/signals.txt,
1303           irssi/src/silc/core/client_ops.[ch],
1304           irssi/src/silc/core/silc-{channels,servers}.c
1305
1306 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1307
1308         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1309           server. Use this time to display a lag and disconnect when it
1310           exceeds a specified limit.
1311
1312           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1313
1314 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1315
1316         * Remove the channel auth list in normal server if router
1317           encofrces its list during connecting.  Send notify to channel
1318           to remove the mode to remove the list.  Affected files are
1319           silcd/server_util.c and silcd/packet_receive.c.
1320
1321 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1322
1323         * Added support for channel public keys.  Updated protocol specs
1324           and implemented it.  Affected files are
1325           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1326           lib/silcclient/command_reply.c.
1327
1328 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1329
1330         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
1331           terminate the process on Linux.  Affected file silcd/silcd.c.
1332
1333 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1334
1335         * Check for NULL buffer in silc_buffer_clear.  Affected file
1336           is lib/silcutil/silcbuffer.h.
1337
1338         * Simplified the backup router protocol by removing the _GLOBAL
1339           types.  Updated protocol specs and the code.  Affected files
1340           are silcd/server_backup.[ch].
1341
1342 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1343
1344         * Deny '@' and '!' from nicknames since they are reserved
1345           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
1346           Updated protocol specs and the code.
1347
1348           Affected files are silcd/server_util.[ch].
1349
1350 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1351
1352         * Fixed stack overflow in Irssi SILC client.  Affected
1353           file irssi/src/silc/core/client_ops.c.
1354
1355         * Check that Host is set in ServerConnection and RouterConnection
1356           in silcd.conf.  Affected file silcd/serverconfig.c.
1357
1358         * Fixed crash in server with protocol completion callbacks,
1359           namely rekey and backup resuming protocols.  Affected files
1360           are silcd/server_backup.c and silcd/server.c.
1361
1362         * Fixed rekey protocol to not restart if it is started already.
1363           Affected files are lib/silcclient/client.c and
1364           silcd/server.c.c
1365
1366 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1367
1368         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
1369
1370         * Fixed EOF handling in SILC Config, affected file
1371           lib/silcutil/silcconfig.c.
1372
1373         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
1374
1375         * Fixed RESOLVING flag handling in JOIN notify and other
1376           notifys to handle the resolvings correctly in client library.
1377           Affected file lib/silcclient/client_notify.c.
1378
1379         * Do not send full INVITE and BAN lists in INVITE and BAN
1380           notifys, only the changed information.  Affected file
1381           silcd/command.c.
1382
1383         * Fixed INVITE notify sending in INVITE command, send it
1384           only when needed.  Affected file silcd/command.c.
1385
1386         * Handle the founder key change properly in CMODE_CHANGE
1387           notify.  Bug #122.  Affected file silcd/packet_receive.c.
1388
1389 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1390
1391         * Remove the mark for output (mark it only for input) after
1392           purging outgoing queue.  Prevents the "Error in select()"
1393           floods.  Affected file silcd/packet_send.c.
1394
1395         * Fixed incorrect connection deletion from client library
1396           after calling "connect" client operation.  Could cause
1397           crashes for example during reconnect timeouts.  Affected
1398           files are lib/silcclient/client.c and
1399           irssi/src/silc/core/client_ops.c.
1400
1401         * Check server private key file permissions before starting
1402           the server.  Affected file silcd/serverconfig.c.
1403
1404 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1405
1406         * NULL terminate allocated string in silc_buffer_strformat.
1407           Affected file lib/silcutil/silcbuffmt.c.
1408
1409         * Rewrote the invite/ban list string handling in server to
1410           use SilcBuffer instead.  Affected files are silcd/command.c
1411           and silcd/server_util.c.
1412
1413 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1414
1415         * Fixed double free in CMODE command when setting new HMAC
1416           for channel.  Affected file silcd/command.c.
1417
1418         * Added couple of missing memset's to zero sensitive memory.
1419           Affected files silcd/command.c, lib/silcclient/command.c.
1420
1421 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1422
1423         * Fixed a double free in INVITE command error handling in
1424           server.  Affected file silcd/command.c.
1425
1426         * Added macros SILC_SWAB_[16|32] to swab byte order of
1427           16-bit and 32-bit unsigned integers.  Affected file
1428           lib/silcutil/silctypes.h.
1429
1430         * Use the SILC_SWAB_16 instead of htons() in server when
1431           handling ports since the ports in structures are always
1432           in little-endian order (regardless of platform).  Affected
1433           file silcd/serverid.c and silcd/server_backup.c.
1434
1435 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1436
1437         * Send DISCONNECT in close admin command in server.  Affected
1438           file silcd/command.c.
1439
1440         * Check whether we are already connecting to a remote router
1441           (in addition of checking whether we are already connected)
1442           before creating new connection.  Affected file silcd/server.c.
1443
1444 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1445
1446         * Added better compiler and compiler flags checking in
1447           configure.
1448
1449         * Check that socket is valid after QoS is applied to data.
1450           Affected file lib/silcutil/unix/silcunixsockconn.c.
1451
1452         * Make sure the socket connecetion is not closed to early
1453           when closing connection in server.  Also make sure the
1454           connection is always closed after error in a protocol.
1455           Affected file silcd/server.c.
1456
1457 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1458
1459         * Removed --session and --dummy options from Irssi SILC Client.
1460           -d option is available only if --enable-debug was given.
1461           Affected files are irssi/src/silc/core/silc-core,
1462           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
1463
1464 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1465
1466         * Added silc_buffer_steal to steal the data from the buffer.
1467           Affected file lib/silcutil/silcbuffer.h.
1468
1469 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
1470
1471         * Fixed server crash with double Primary block in config file.
1472
1473           Fixed also various memory leaks around the config file
1474           parser.  Affected files lib/silcutil/silcconfig.c,
1475           silcd/serverconfig.c.
1476
1477         * Changed my nickname (Johnny Mnemonic) to my real name, this
1478           means that bugs introduced by him were actually introduced
1479           by me!
1480
1481 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1482
1483         * Don't display "foo appears as foo\nYou're now known as foo"
1484           messages.  Affected file irssi/src/silc/core/client_ops.c
1485
1486 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1487
1488         * Fixed error handling of invalid client entry when calling
1489           commands in server.  Fixes a crash.  Affected file
1490           silcd/command.c.
1491
1492 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1493
1494         * Added some sanity checks in server for correctness of the
1495           server configuration.  Affected file silcd/serverconfig.c.
1496
1497 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1498
1499         * Prevent endless resolving of user informations in USERS
1500           command by checking the command reply status correctly.
1501           Affected file lib/silcclient/command_reply.c.
1502
1503 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1504
1505         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
1506           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
1507           Aldous <Matthew@Aldous.com>.
1508
1509         * Added better implementation using CriticalSection of
1510           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
1511           <mikko.lahteenmaki@pikabaana.net>.
1512
1513         * Added some Winsock WIN32 compatiblity defines into
1514           includes/silcwin32.h.
1515
1516 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1517
1518         * Fixed double free in async host lookup code.  Affected file
1519           lib/silcutil/silcsockconn.c.
1520
1521         * On backup router handle now the SERVER_SIGNOFF from router
1522           for local connected servers too, and close the connections.
1523
1524           Do not process them as normally signing off servers when they
1525           really signoff by sending EOF fe, but always assume that
1526           router sends the SERVER_SIGNOFF.
1527
1528           Affected files silcd/server.c and silcd/packet_receive.c.
1529
1530         * Fixed socket unsetting when closing connections.  Affected
1531           files silcd/server.c and silcd/packet_send.c.
1532
1533         * Do not print the nickname in SERVER_SIGNOFF if we do not
1534           have it.  Prevents asserts in Irssi core.  It is possible we
1535           don't have the nick if it was just being resolved when server
1536           signoff.  Affected file irssi/src/silc/core/client_ops.c.
1537
1538 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1539
1540         * Fixed autonick crashbug in client library.  Affected file
1541           lib/silcclient/client.c.
1542
1543         * Fixed Unix implementation of SilcMutex to really assert if
1544           the mutex is locked/unlcoked already.  Affected file
1545           lib/silcutil/unix/silcunixmutex.c.
1546
1547         * Fixed locking in silc_schedule_uninit.  It didn't lock
1548           when dispatching timeout tasks.  Affected file is
1549           lib/silcutil/silcschedule.c.
1550
1551         * Changed Win32 implementation of SilcThread to use modern
1552           Win32 interface.  Affected file is
1553           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
1554
1555 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1556
1557         * Don't print signed messages when sending failed.  Affected files
1558           irssi/src/silc/core/silc-[servers.c/commands.h]
1559
1560         * Send adquate signal when founding a channel by joing it.  Affect
1561           file irssi/src/silc/core/client_ops.c
1562
1563 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1564
1565         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
1566           irssi/src/fe-common/core/themes.c
1567
1568 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1569
1570         * Fixed close command to use the port correctly when closing
1571           server connections.  Affected file silcd/idlist.c.
1572
1573         * Check for NULL outbuf in silc_socket_write.  It is possible
1574           that it is NULL is some odd case.  Affected files are
1575           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
1576
1577         * Do not call final protocol callback for backup router
1578           resuming protocol when closing connection.  It is closed
1579           by timeout in case of error.  Affected file silcd/server.c.
1580
1581         * Backup reconnect to router if backup resuming protocol
1582           failed.  Affected file silcd/server_backup.c.
1583
1584 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1585
1586         * Fixed double free in SKE library error hadling when signature
1587           error occurred.  Affected file lib/silcske/silcske.c.
1588
1589         * Save the fingerprint to new SilcClientEntry after changing
1590           nickname.  Affected file lib/silcclient/client_notify.c.
1591
1592         * Print SIGNOFF in Irssi SILC client only if the nickname is
1593           known.  Prevents asserts in Irssi core.  It is possible we
1594           don't have the nick if it was just being resolved when it
1595           quit.  Affected file irssi/src/silc/core/client_ops.c.
1596
1597 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1598
1599         * Fixed double free in invite list adding code when adding
1600           invite strings.  Affected file silcd/server_util.c.
1601
1602 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1603
1604         * More log printing during backup router protocol.  Affected
1605           file silcd/server_backup.c.
1606
1607         * Removed backwards support for old private key file format.
1608           Affected file lib/silccrypt/silcpkcs.c.
1609
1610         * Removed backwards support for not-so-strict decryption length
1611           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
1612
1613         * GETKEY to update the client entrys fingerprint too.
1614           Affected file lib/silcclient/command_reply.c.
1615
1616         * Added --without-libtoolfix for package builders using weird
1617           wrappers around libtool (BSD at least).
1618
1619 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1620
1621         * Fixed backup router bugs:  When backup resumes router and
1622           receives a CHANNEL_MESSAGE packet the backup must not act
1623           as router since the packet header decryption would be
1624           different.  Also, when relaying packets to channel, do
1625           not re-encrypt packets on backup that came from the primary
1626           since the connection isn't really router-router connection.
1627           Affected files silcd/server.c, silcd/packet_send.c.
1628
1629         * Added checks in encryption/decryption that encryption/decryption
1630           length sent as argument really is multiple by block size.  Helps
1631           catching really weird bugs like the above backup router bugs
1632           when packets are being decrypted in wrong way.  Affected files
1633           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
1634
1635         * Fixed padding generation in private key file encryption.
1636           Affected file lib/silccrypt/silcpkcs.c.
1637
1638 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1639
1640         * Added ignore_message_signatures setting which can be used
1641           to ignore signatures in messages.  Affected files are
1642           irssi/src/silc/core/client_ops.c, silc-core.c.
1643
1644         * Fixed the libtoolfix to use command line options instead of
1645           environment variables.  They didn't work as expected.  Now,
1646           the libtool is fully run-time configurable.
1647
1648 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1649
1650         * Verify signature payload for signed messages. Affected files
1651           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
1652           irssi/src/silc/core/silc-core.h
1653
1654         * Display signature verification result in public and private
1655           messages using theme abstracts. See irssi/default.theme for
1656           examples on their usage. Affected files
1657           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
1658           irssi/src/fe-common/silc/module-formats.[ch],
1659           irssi/src/fe-common/silc/fe-common-silc.c,
1660           irssi/src/fe-common/silc/Makefile.am
1661           irssi/src/fe-common/core/fe-messages.[ch]
1662
1663         * Fixed bugs in Irssi's theme parsing. Affected files
1664           irssi/src/fe-common/core/themes.c
1665
1666 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1667
1668         * Calculate the correct length for signed messages before
1669           encrypting, it must be multiple by block size.  Affected
1670           file lib/silccore/silcmessage.c.
1671
1672         * silc_message_signed_get_public_key returns now both
1673           decoded and encoded public key.  Affected files are
1674           lib/silccore/silcmessage.[ch].
1675
1676         * Added libtoolfix script that makes the libtool more generic
1677           and configurable in run-time.  Now we can specify in run-time
1678           if what kind of libraries we want to create, regardless of
1679           configuration.  SIMs are now creates even if --disable-shared
1680           was explicitly given.
1681
1682 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1683
1684         * Fixed founder key sending in CMODE command in client.
1685           Affected file lib/silcclient/command.c.
1686
1687         * Fixed CUMODE founder authentication in server to not check
1688           for client's public key since it's not supposed to do that.
1689           Affected file silcd/command.c.
1690
1691 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1692
1693         * Set realname and hostname in NICK_REC records. Affected file
1694           irssi/src/silc/core/silc-nicklist.c
1695
1696 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1697
1698         * Remove 1.0 protocol backwards compat code from client
1699           library.
1700
1701         * Added more reliable check for whether nickname did change
1702           or not, or whether only Client ID changed in NICK_CHANGE
1703           notify.  Affected file lib/silcclient/client_notify.c.
1704           Fixes bug in '@' character handling in a nickname.
1705
1706         * Added support for automatically parsing signature from
1707           the message payload.  Added new function
1708           silc_message_get_signature to return the payload to
1709           application.  Affected files lib/silccore/silcmessage.[ch].
1710
1711         * Changed the private_message and channel_message client
1712           operations to deliver the SilcMessagePayload to the
1713           application too.  Application can use it fe. to get the
1714           signature from the message for verification.  Affected
1715           file lib/silcclient/silcclient.h, client_channel.c and
1716           client_prvmsg.c.
1717
1718         * Redefined the signed payload for message payloads.
1719           Updated protocol specs and implemented.
1720
1721 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1722
1723         * Fixed wrong invite and ban list handling in server command
1724           reply.  Affected files are silcd/command_reply.c,
1725           silcd/server_util.[ch].
1726
1727 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1728
1729         * Fixed CMODE setting in server when founder mode was set.
1730           Affected file silcd/command.c.  Bug #95.
1731
1732         * Added support to setting specific public key in CMODE in
1733           Irssi SILC client.  Affected file lib/silcclient/command.c.
1734
1735         * Added support to use specific public key in CUMODE in
1736           Irssi SILC Client.  Affected file lib/silcclient/command.c.
1737
1738         * Added support for inviting and banning by public key in
1739           Irssi SILC client.  Affected file lib/silcclient/command.c.
1740
1741         * Fixed fingerprint/babbleprint showing in invite and ban
1742           list command replys.  Affected file is
1743           irssi/src/silc/core/client_ops.c.
1744
1745 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1746
1747         * Format CMODE +c and +h to display both the mode and the argument
1748
1749 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1750
1751         * Added test vectors and test programs for SHA-1, MD5,
1752           HMAC-SHA1 and HMAC-MD5.  New tests are located in
1753           lib/silccrypt/tests/.  Fixed also argument decoding bug in
1754           MD5 implementation.  Affected file lib/silccrypt/md5.c.
1755
1756         * Changed the channel private key and private message key
1757           generation (with static keys) to use SHA1 instead of MD5,
1758           as SHA1 is the mandatory hash function in SILC.  Affected
1759           file lib/silcclient/client_[channel/prvmsg].c.
1760
1761         * Changed the private key file encryption to use SHA1 instead
1762           of MD5.  Added support for the old generation and added
1763           automatic change of the key (to be removed later).  Affected
1764           files lib/silccrypt/silcpkcs.c.
1765
1766 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1767
1768         * Load only files with .pub suffix in PublicKeyDir.  Affected
1769           file silcd/serverconfig.c.
1770
1771 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1772
1773         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
1774           channels.  Affected files silcd/silcd.c, silcd/server.h.
1775
1776         * Added the config directive PublicKeyDir for the client block.
1777           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
1778
1779 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1780
1781         * Merged Toni's irssi/silc.conf patch.
1782
1783         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
1784
1785         * Max alloc tests in allocation routines.  Affected file
1786           lib/silcutil/silcmemory.c.
1787
1788 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1789
1790         * Fixed a typo in resuming code that fixed detach/resume code
1791           in server.  Bug #93.  Affected file silcd/packet_receive.c.
1792
1793 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1794
1795         * Do reverse lookups for server when /connecting. Affected files
1796           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
1797           irssi/src/core/net-nonblock.*
1798
1799 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1800
1801         * Added library versioning for shared libraries.  Affected
1802           files configure.in.pre and lib/Makefile.am.pre.
1803
1804 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1805
1806         * Display INVITE and BAN lists as specified by SILC 1.2
1807
1808 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1809
1810         * Do not send invite list back unless asked (when sending
1811           no arguments) or when list was modified.  Affected file
1812           silcd/command.c.
1813
1814         * Remove client from invite list in KILLED notify and in
1815           KILL command.  Affected file silcd/command.c and
1816           silcd/server.[ch].
1817
1818         * Fixed bugs in invite list handling in INVITE command.
1819           Affected files silcd/command.c and silcd/server_util.c.
1820
1821         * Merged with Irssi 0.8.6.
1822
1823         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
1824           Affected file irssi/src/fe-text/silc.c.
1825
1826 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1827
1828         * The silc_argument_get_[first/next] now return the argument
1829           type to caller.  Added silc_argument_payload_encode_one.
1830
1831           Affected files are lib/silccore/silcargument.[ch].
1832
1833         * Added support for the SILC 1.2 INVITE command and new
1834           invite lists to server.  Affected files are silcd/command.c,
1835           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
1836
1837         * Added support for the SILC 1.2 BAN command and new
1838           ban lists to server.  Affected files are silcd/command.c,
1839           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
1840
1841         * Added support to client sending new INVITE command.  Affected
1842           file is lib/silcclient/command.c.
1843
1844         * Added support to client sending new BAN command.  Affected
1845           file is lib/silcclient/command.c.
1846
1847         * Added support for removing client from invite list when kicked
1848           from channel, as SILC 1.2 dictates.  Affected files are
1849           silcd/packet_receive.c and silcd/command.c.
1850
1851 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1852
1853         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
1854           automatically the cipher's internal IV.  Affected files
1855           lib/silccrypt/silccipher.[ch].
1856
1857         * Assure the RESUME_CLIENT packet is not sent to twice to
1858           backup router if the detached client was originated from
1859           the backup.  Affected file silcd/server.c.  Bug #76.
1860
1861         * Changed silc_sim_symname to not allocate memory.  Affected
1862           file lib/silcsim/silcsimutil.c.
1863
1864         * Fixed memory leaks with SIMs in server.  Affected files
1865           silcd/serverconfig.c, silcd/server.c.
1866
1867         * Fixed channel key distribution after resuming detached
1868           client.  Affected files silcd/packet_receive.c.
1869
1870         * Fixed channel's global_user boolean checking after detaching.
1871           Check it after changing the owner of the client not before.
1872           Affected file silcd/packet_receive.c.
1873
1874         * Fixed few double frees from client library.  Fixes at least
1875           Bug #81, possibly others too.
1876
1877         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
1878           notifys in Irssi SILC Client.  Affected file is
1879           irssi/src/silc/core/client_ops.c.  Bug #82.
1880
1881         * Applied Ville Räsänen's manual page and --mandir bugfix
1882           patch.  Affected files are configure.in.pre and Makefile.am.pre.
1883           Bug #88.
1884
1885 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1886
1887         * Added support to backup router protocol for backup to tell
1888           normal server that it cannot use the backup router as primary
1889           because the primary isn't really down.  Updated protocol
1890           specs.
1891
1892         * Added support for primary router to tell backup router that
1893           resuming is not possible because the backup really isn't primary
1894           in the cell.  For example if backup disconnected itself the
1895           resuming is not allowed since the primary really did not
1896           go down.  Updated protocol specs.
1897
1898         * Removed MARS from crypto library.
1899
1900         * Defined the CTR mode and Randomized CBC mode in SILC.  The
1901           CTR mode is RECOMMENDED now in specification.  Defined also
1902           Serpent cipher as optional cipher.  Updated the protocol specs.
1903
1904 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1905
1906         * Added support for inviting/banning by IP/MASK, public key,
1907           and explicit Client ID.  Redefined the command and notify
1908           types to allow easier forwards support for other methods
1909           of inviting/banning.  Updated protocol specs.
1910
1911         * Remove the client from channel's invite lists if the client
1912           is kicked or killed.  Updated protocol specs.
1913
1914         * Unified the Channel Message Payload and Private Message
1915           into one Message Payload.  Updated protocol specs and
1916           implemented.
1917
1918 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1919
1920         * Don't wait for EOF after socket error has occurred, but
1921           close the connection.  Affected file is silcd/server.c.
1922
1923 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1924
1925         * Added support for setting FOUNDER mode on channel with
1926           specific public key which can be set with CMODE command.
1927           Updated protocol specs and implemented in client and server.
1928
1929         * Fixed the Irssi SILC client to correctly shutdown the client
1930           library to avoid memory leaks.  Affected files are
1931           irssi/src/silc/core/silc-core.c and silc-servers.c.
1932
1933         * Deprecated the No Reply flag in SKE protocol and introduced
1934           "IV Included" flag which can be used to indicate that the IV
1935           is included in the ciphertext.  This makes it possible to use
1936           SILC on unreliable transport, such as UDP which may cause
1937           packet reordering and losses.  Updated protocol specs, did
1938           not implement yet.
1939
1940 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1941
1942         * Fixed the MPI implementation of silc_mp_sizeinbase to return
1943           < 32 bit values in correct size.  Affected file is
1944           lib/silcmath/mp_mpi.c.
1945
1946 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1947
1948         * Fixed the KE Start Payload parsing to check that mandatory
1949           fields are present.  Affected file lib/silcske/payload.c.
1950
1951         * Fixed compilation warnigs in Irssi SILC Client.  Affected
1952           files are irssi/src/silc/core/silc-query.c. client_ops.c.
1953
1954 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1955
1956         * Print "nick now appears as newnick" and update Irssi's nicklist
1957           when you change your nick to "nick". Closes #62
1958
1959         * Never format your own nick. Closes #63
1960
1961 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1962
1963         * SILC_UMODE_GONE changes are now propagated correctly to the
1964           Irssi client. Closes #54
1965
1966 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1967
1968         * Fixed example in /HELP KEY
1969
1970         * Added expando $j which expands to current SILC Client version
1971
1972 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1973
1974         * Fixed public key decoding in crypto library.
1975
1976         * Added better error printing to SKE library.
1977
1978 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1979
1980         * Fixed NICK command to not crash if nickname was not sent.
1981
1982 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1983
1984         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
1985           Deprecated the old Encrypt-And-MAC order.  Updated protocol
1986           specs and implemented.
1987
1988         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
1989           generation.  Updated specs and implemented.
1990
1991 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1992
1993         * Added support for rekey before 2^32 sequence number wraps.
1994           Affected files in server and client library.
1995
1996         * Padding must be at least 8 bytes now.  Implemented and updated
1997           protocol specs.
1998
1999         * Compute maximum padding for authentication packets to make
2000           passphrase approximation attacks impossible.  Affected files
2001           in client library and in server.
2002
2003         * Fixed PING command sending in client library and handling in
2004           server.  The server ID must be ID Payload, not raw ID data.
2005           Affected files in server and client library.
2006
2007         * Defined that all public keys sent in commands and notify
2008           payloads are actually Public Key Payloads not raw public key
2009           data.  Updated protocol specs and implemented.
2010
2011         * Updated protocol version to 1.2.  Updated specs and code.
2012
2013         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
2014           status types.  Updated specs and the code.
2015
2016         * Added support for normal client to kill its own entries from
2017           the network.  Updated protocol specs and the code.
2018
2019         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
2020           and added initial implementation.
2021
2022         * Added MAC field to the Private Message Payload to protect
2023           against chosen ciphertext attacks.  Updated the protocol specs
2024           and implemented.
2025
2026         * Added idle and signon fields to the ATTRIBUTE_SERVICE
2027           attribute to indicate the user's current idle and signon time
2028           of a service.  Updated protocol specs and implemented.
2029
2030 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2031
2032         * Added "do_not_bind" argument to silc_client_file_send what
2033           can be used to not bind locally but assume the file receiver
2034           provides the point of connect.  Usefull when sender is behind
2035           NAT device.  Affected file lib/silcclient/silcclient.h and
2036           client_ftp.c.
2037
2038         * Added -no-listener option to FILE SEND command in Irssi SILC
2039           client.  Affected file irssi/src/silc/core/silc-servers.c.
2040           Renamed FILE RECEIVE to FILE ACCEPT.
2041
2042         * Confirm passphrase for private key encryption in
2043           silc_create_key_pair and silc_change_private_key_passphrase.
2044           Affected files are lib/silcutil/silcapputil.c.
2045
2046 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2047
2048         * Move silc_client_packet_send back to internal, added
2049           silc_client_send_packet, a bit simpler function for application.
2050           Affected files lib/silcclient/silcclient.h, client.c and
2051           client_internal.h.
2052
2053         * Moved the SilcClientEntry, SilcChannelEntry and
2054           SilcServerEntry to silcclient.h to be public and documented
2055           them for application.  Affected files are
2056           lib/silcclient/silcclient.h and idlist.h.
2057
2058 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2059
2060         * Fixed manual page installation patch by Ville Räsänen.
2061           USERS help page fix patch by Ville Räsänen
2062
2063         * Changed the silc_client_command_call interface to make
2064           the command call simpler for the application.  The library
2065           now handles the command line parsing, command finding and
2066           execution.  Application only needs to call the function
2067           with the command line.  Affected files are
2068           lib/silcclient/silcclient.h, command.[ch].
2069
2070         * Fixed silc_get_input to NULL-terminate the returned input.
2071           Affected file lib/silcutil/silcutil.c.
2072
2073         * Resolve the client's public key in JOIN command if the
2074           founder auth data is being requested but we don't know the
2075           client's public key.  Affected file silcd/command.c.
2076           Bug #53.
2077
2078 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2079
2080         * Print notify for server opers when backup router comes
2081           online.  Affected file silcd/server.c.
2082
2083         * Fixed the INVITE command to send the invite list in
2084           command reply.  Affected file silcd/command_reply.c.
2085
2086         * Fixed MOTD command reply sending.  Affected file
2087           silcd/command.c.
2088
2089         * UTF-8 decode the topic in TOPIC command reply and LIST
2090           command reply in Irssi SILC client.  Affected file is
2091           irssi/src/silc/core/client_ops.c.
2092
2093 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2094
2095         * Fixed the INVITE command to not crash Irssi SILC client
2096           when given without nickname argument.  AFfected file
2097           irssi/src/silc/core/client_ops.c.
2098
2099         * Fixed double free in WHOIS query on normal server when
2100           forwarding query to router.  Affected file is
2101           silcd/server_query.c.
2102
2103         * Fixed WATCH command reply handling on normal server which
2104           was missing altogether.  Affected file silcd/command_reply.c.
2105           Bug #44.
2106
2107 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2108
2109         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2110           Included yodl sources for each of these. Also modified
2111           Makefile.am prototype to install these files to proper
2112           locations. Updated CREDITS. Affected file Makefile.am.pre,
2113           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2114           doc/silcd.8.
2115
2116 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2117
2118         * Added support for encrypted private key files.  Now
2119           passphrase must be provided when new key pair is created
2120           (can be empty though), and prompted when loading the
2121           private key.  Added support for loading the old-style
2122           non-encrypted private keys as well.  Affected files
2123           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2124           SILC Server.
2125
2126         * Fixed silc_get_input to accept input on all terminals.
2127           Affected file lib/silcutil/silcutil.c.
2128
2129         * Moved the Irssi SILC client key loading and other stuff
2130           to be called after the arguments and UI is initialized.
2131           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2132
2133         * Added -P option to Irssi SILC client which can be used
2134           to change the passphrase of the private key.  Affected
2135           file irssi/src/silc/core/silc-core.c.
2136
2137         * Added silc_change_private_key_passphrase apputil routine
2138           to lib/silcutil/silcapputil.[ch].
2139
2140 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2141
2142         * Fixed connection closing in client library to not crash.
2143           Moved the connection freeing totally to function
2144           silc_clinet_del_connection.  Affected file
2145           lib/silcclinet/client.c.
2146
2147 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2148
2149         * Changed includes/silcincludes.h to silcincludes.h.in to
2150           include configuration specific information.  The silcdefs.h
2151           is not included in to installation anymore (it's only
2152           compilation time header).
2153
2154 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2155
2156         * Moved the SilcClient and SilcClientConnection from client.h
2157           to the public lib/silcclient/silcclient.h.  Changed the
2158           structures a bit.
2159
2160 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2161
2162         * If version string in silc_clinet_alloc is NULL the library
2163           puts it automatically.  Affected file lib/silcclient/client.c.
2164
2165         * Changed the version strings from variables to #define's
2166           in includes/silcversion.h.
2167
2168 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2169
2170         * Added shared library complation support.
2171
2172 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2173
2174         * Added lib/silcutil/silcapputil.[ch] for application
2175           utility functions.  It includes routines for applications'
2176           convenience.  Added silc_create_key_pair, silc_show_public_key
2177           and silc_load_key_pair functions.
2178
2179 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2180
2181         * Send RESUME_CLIENT packet from router to backup routers
2182           to in resuming.  Affected file silcd/packet_receive.c.
2183
2184 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2185
2186         * In IDENTIFY command parsing, send all other IDs except
2187           Client IDs explicitly to router for resolving on normal
2188           server.  Also check that ID received in WHOIS command is
2189           always Client ID, others are not allowed.  Affected file
2190           silcd/server_query.c.
2191
2192         * Merged latest changes from irssi.org CVS.
2193
2194 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2195
2196         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2197           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2198
2199         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2200           the silc_client_packet_send to silcclient.h for application
2201           usage.  Affected files lib/silcclient/client_internal.h
2202           lib/silcclient/silcclient.h.
2203
2204         * Fixed a bug in query resolving in server.  Used wrong
2205           variable in a for loop and crashed.  Affected file is
2206           silcd/server_query.c.
2207
2208         * Server constructs requested attributes only to locally
2209           connected clients.  Affected file silcd/server_query.c.
2210           Bug #36.
2211
2212         * Fixed a bug when sending resolving from router to server
2213           with requested attributes.  The constructed WHOIS command
2214           was incorrect.  Affected file silcd/server_query.c.
2215           Bug #38.
2216
2217         * Fixed Requested Attributes saving in WHOIS command reply.
2218           The length of the data buffer must be saved too.  Affected
2219           file silcd/command_reply.c.
2220
2221         * Update the client entry's servername after detaching is
2222           over.  Affected file silcd/packet_receive.c.  Bug #37.
2223
2224         * Resolve incomplete client entrys in CUMODE_CHANGE and
2225           CMODE_CHANGE notifys.  Affected file is
2226           lib/silcclient/client_notify.c.  Bug #42.
2227
2228 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2229
2230         * Fixed channel key packet processing bug on backup router
2231           during backup resuming protocol.  Affected file is
2232           silcd/packet_receive.c.
2233
2234         * Fixed memory leaks in server.  Affected files are
2235           silcd/server.c and silcd/packet_receive.c.
2236
2237         * Fixed packet decryption problem when backup router encrypted
2238           channel message with wrong key during backup resuming
2239           protocol.  Affected file silcd/packet_send.c.
2240
2241         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2242           Toni Willberg (toniw@iki.fi)
2243
2244         * Changed the SilcCipher context to be private.  Changed the
2245           silc_cipher_get_iv to just return pointer to the IV.  Added
2246           silc_cipher_get_name to return the name of the cipher.
2247           Fixed code all around to support these changes.  Affected
2248           files are lib/silccrypt/silccipher.[ch], client library and
2249           server.
2250
2251 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2252
2253         * Fixed unaligned access in lib/silccore/silcattrs.c.
2254
2255         * Fixed libtool linking in lib/silcsim/Makefile.am.
2256
2257         * Fixed services attribute printing.  Affected files is
2258           irssi/src/silc/core/silc-queries.c.
2259
2260 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2261
2262         * Fixed a crashbug in incoming server accepting.  Affected
2263           file silcd/server.c.
2264
2265 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2266
2267         * Added automatically generated index to Toolkit Reference
2268           Manual.
2269
2270         * Added support for Postscript Toolkit Reference Manual.
2271
2272 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2273
2274         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2275           CVS.
2276
2277 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2278
2279         * Added 'send_events' boolean argument to the function
2280           silc_schedule_set_listen_fd which sends the set events to
2281           the application explicitly if set to TRUE.  Default action
2282           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2283           lib/silcclient/client_internal.h and silcd/server_internal.h.
2284
2285         * Added silc_compare_timeval to determine which time values
2286           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2287
2288         * Added sort-of "Quality of Service" (QoS) support to
2289           SilcSocketConnection.  Data reception can be controlled with
2290           rate limit per second and/or read data length limit.
2291           Added silc_socket_set_qos.  Affected files are
2292           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2293
2294         * Added the QoS configuration to SILC Server configuration
2295           file.  Affected files are silcd/serverconfig.[ch] and
2296           server.c.
2297
2298 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2299
2300         * Merged with irssi.org CVS.
2301
2302         * Failed OPER and SILCOPER authentications are now logged.
2303           Affected file silcd/command.c.  Bugs #25.
2304
2305 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2306
2307         * ROBODoc documented lib/silcutil/silcbuffer.h and
2308           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2309           <ville.rasanen@iki.fi>.
2310
2311 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2312
2313         * Added support for auto-passphrase authentication from the
2314           config file during connecting which was not implemented
2315           yet.  Affected file irssi/src/silc/core/client_ops.c.
2316
2317         * Fixed a bug in authentication protocol failure handling which
2318           was processing wrong callback context.  Affected files
2319           are lib/silcclient/client.c and protocol.c.
2320
2321         * Fixed the /ATTR allow off to actually work.  Affected file
2322           is irssi/src/silc/core/silc-queries.c.
2323
2324         * Fixed the /ATTR -del to work.  Affected file is
2325           irssi/src/silc/core/silc-queries.c.
2326
2327 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2328
2329         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
2330
2331         * Fixed mask attribute adding in Irssi SILC client.  Affected
2332           file irssi/src/silc/core/silc-queries.c.
2333
2334 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2335
2336         * Added support for saving the requested attributes in
2337           WHOIS to directory.  Affected file is
2338           irssi/src/silc/core/silc-queries.c.
2339
2340 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2341
2342         * Added support for parsing VCard fields that do not have
2343           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
2344
2345         * Fixed a double free bug in hash table foreach function
2346           if the entry was deleted in the foreach callback.  Affected
2347           file lib/silcutil/silchashtable.c.
2348
2349 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2350
2351         * Added silc_attribute_get_verify_data to return the signature
2352           verification data for either user digital signature or
2353           server digital signature in Requested Attributes.  Affected
2354           files are lib/silccore/silcattrs.[ch].
2355
2356         * Added silc_vcard_alloc which is used to allocated dynamic
2357           SilcVCard context.  The silc_vcard_free now checks whether
2358           the context is dynamically allocated or not.  Affected files
2359           are lib/silcutil/silcvcard.[ch].
2360
2361 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2362
2363         * Periodically remove the NOATTR status from client entry
2364           so that the client may take the attributes in use even after
2365           server has resolved them unsuccessfully earlier.  Affected
2366           file silcd/server_query.c and idlist.h.
2367
2368         * Moved sha1hash and md5hash from client->internal to
2369           SilcClient for application usage.  Affected files are
2370           lib/silcclient/client.h and client_internal.h.
2371
2372         * Fixed attribute encoding and decoding bugs.  Affected
2373           files lib/silccore/silcattrs.[ch].
2374
2375         * Added ATTR command to Irssi SILC Client which is used to
2376           manage user's Requested Attributes sending and values for
2377           WHOIS command.  Affected files around Irssi SILC client.
2378
2379 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2380
2381         * Added silc_buffer_strformat which can be used to format
2382           strings into a buffer which size is automatically increased.
2383           Affected file lib/silcutil/silcbuffmt.[ch].
2384
2385         * Added implementation of VCard (RFC 2426) which can be used
2386           as part of Requested Attributes in WHOIS command.  Affected
2387           file lib/silcutil/silcvcard.[ch].
2388
2389 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2390
2391         * Some strncat -> silc_strncat changes our the core and
2392           client library.
2393
2394         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
2395           errors.  Added better error printing to SKE library.
2396           Affected files lib/silcske/silcske.c, silcske_status.h and
2397           payload.c.
2398
2399         * Save the PKCS key length even if only private key is set to
2400           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
2401
2402         * Fixed the usage of silc_pkcs_get_key_len since it returns the
2403           length in bits not in bytes.  Affected files are
2404           lib/silcske/silcske.c, lib/silccore/silcauth.c and
2405           silcd/server_query.c.
2406
2407 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2408
2409         * Added silc_attribute_payload_encode_data to directly encode
2410           the data into the attributes buffer.  Renamed function
2411           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
2412           Affected files are lib/silccore/silcattrs.[ch].
2413
2414         * silc_hash_table_find_foreach calls the foreach function now
2415           once even if the nothing was found with context set to NULL.
2416           Affected file lib/silcutil/silchashtable.[ch].
2417
2418         * Remove the RESOLVING flag from client entry after received
2419           the Requested Attributes from the client.  Fixed memory leak
2420           in client entry freeing.  Affected files silcd/server_query.c
2421           and idlist.c.
2422
2423         * Added Requested Attributes support into SILC Client Library.
2424           It is not able to send requested attributes in WHOIS command,
2425           and also receive and process requested attributes.  Added
2426           silc_client_attribute_[add|del] and silc_client_attributes_get
2427           functions.  Added also `ignore_requested_attributes' to the
2428           SilcClientParams to not use attributes in client.  Affected
2429           files are lib/silcclient/command.c, client_attrs.[ch],
2430           silcclient.h, client_internal and client.[ch].
2431
2432         * Changed the silc_client_get_client_by_id to support Requested
2433           Attributes, it takes them as argument now.  Affected file
2434           is lib/silcclient/silcclient.h, and idlist.c.
2435
2436         * Added -details option to WHOIS command in Irssi SILC Client
2437           to support the requested attributes.  By default it requests
2438           all attributes.  Affected file lib/silcclient/command.c and
2439           irssi/doc/help/in/whois.in.
2440
2441 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2442
2443         * Add also SERVICE attribute for server-constructed attribute
2444           data.  Also digitally sign the attributes and add
2445           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
2446           silcd/server_query.c.
2447
2448 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2449
2450         * Changed the silc_attribute_payload_encode to support list
2451           of attributes (function may be called several times to add
2452           a new attribute).  Removed the silc_attribute_payload_encode_list
2453           function.  The encoding function now also automatically encodes
2454           the data, so the caller does not need to do that.  Affected
2455           files lib/silccore/silcattrs.[ch].
2456
2457         * Added support for replying on behalf of the user to the
2458           Requested Attributes in WHOIS command in the server.  Affected
2459           file silcd/server_query.c.
2460
2461         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
2462           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
2463
2464 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2465
2466         * Don't swtich to become primary router if we are backup if
2467           decryption error has occurred.  Affected file silcd/server.c.
2468
2469         * Fixed a bug in backup router IP address comparison in
2470           silc_server_backup_get.
2471
2472           Save now also the port of the server/router and use that
2473           in comparison as well.  Affected file silcd/server_backup.c.
2474
2475         * Normal server now reconnects to backup router automatically
2476           if connection is lost to it.  Affected file silcd/server.c.
2477
2478 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2479
2480         * If packet processing fails (like integrity check fails)
2481           the connection is closed now.  Affected files are
2482           lib/silccore/silcpacket.c and silcd/server.c.
2483
2484 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2485
2486         * Fixed double free in RSA public key set function
2487           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
2488           Bug #29.
2489
2490 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2491
2492         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
2493           Added server_query.[ch] which provides one interface for
2494           querying information using all three commands.
2495
2496         * Changed all "typedef unsigned char" in core library to
2497           "typedef SilcUInt8".
2498
2499 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2500
2501         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
2502
2503         * Renamed silc_server_get_client_resolve to
2504           silc_server_query_resolve and moved to server_query.[ch].
2505
2506 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2507
2508         * Resumed client packet handling from server put the resumed
2509           client on wrong list on router and caused the client not
2510           be present on the network anymore.  Now fixed to put the
2511           client to correct list.  Affected file silcd/packet_receive.c.
2512
2513 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2514
2515         * Various cleanup in error message output in config parsing code
2516           and in server init code.  Fixed error log files containing
2517           too many newlines ('\n') in some situations.  Affected files are
2518           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
2519
2520 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2521
2522         * Use the reverse lookupped hostname in client internals
2523           instead of one user provided us as remote server name.
2524           Affected file lib/silcclient/client.c.
2525
2526 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2527
2528         * Added 'app_context' to silc_schedule_init.  It is an
2529           application specific context that is delivered to application
2530           in task callback functions.  Affected files are
2531           lib/silcutil/silcutil.[ch].
2532
2533         * The hb_context in SilcSocketConnection is not freed
2534           automatically anymore (application must free it).  Freeing
2535           it automatic is inconsistent.  Affected files are
2536           lib/silcutil/silcsockconn.[ch].
2537
2538 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2539
2540         * Added support for removing explicitly added client connections
2541           in rehash and closing the client connections if they were
2542           unconfigured in the rehash.  Affected file silcd/server.c.
2543
2544         * Added support for aborting automatically pending commands
2545           that never receives the reply (to avoid memory leaks).
2546           Added also silc_server_command_pending_timed to set the
2547           specific timeout for pending command.  Affected files are
2548           silcd/command[_reply].[ch].
2549
2550         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
2551           specs and lib/silccore/silcstatus.h.
2552
2553 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2554
2555         * Changed the silc_get_time to accept time value as argument
2556           or if zero is sent return current local time.  Affected
2557           file lib/silcutil/silcutil.[ch].
2558
2559         * Added STATS command to client library and Irssi SILC client.
2560           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
2561
2562 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2563
2564         * Assure that channel key is set before sending it.  May
2565           crash server otherwise.  Affected file silcd/packet_send.c.
2566
2567 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2568
2569         * Assure that endless loop cannot happen with detached client
2570           resolving on normal server.  Added idlist status
2571           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
2572           silcd/idlist.h and silcd/packet_receive.c.
2573
2574 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2575
2576         * Incoming file transfer request cannot use same session as
2577           the sending session.  This can happen when sending file to
2578           yourself.  Crashed the client on quit.  Affected file
2579           lib/silcclient/client_ftp.c.  Bug #24.
2580
2581 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2582
2583         * Implemented the draft-riikonen-precense-attrs draft and
2584           the Attribute Payload into the lib/silccore/silcattrs.[ch].
2585
2586 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2587
2588         * Distribute the SERVER_SIGNOFF notify also to local backup
2589           routers from the primary router.  The backup router may not
2590           have the signing of local server directly connected and need
2591           to know about the signoff.  Affected file silcd/server_util.c.
2592
2593         * Use the primary router as the origin of the locally connected
2594           server when it is disconnecting from the backup router since
2595           that's where it really is coming from.  Now the clients from
2596           the disconnecting server are removed correctly and "shadow"
2597           clients are not left to the backup router.  Affected file
2598           silcd/server.c.
2599
2600 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2601
2602         * If normal server is standalone and found existing but disabled
2603           channel, do not re-create the channel since it creates
2604           duplicate same channels.  Affected file silcd/server.c.
2605
2606         * Added anonymous client connections support to server.  New
2607           "anonymous" configuration option to ConnectionParams section
2608           added.  If set to true, the username and hostname information
2609           of the client will be scrambled and anonymous user mode is
2610           set automatically to the user.  Affected files are
2611           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
2612
2613 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2614
2615         * In JOIN notify handling, mark that the cache entry of the
2616           client cannot be expired.  Can cause crashes on normal
2617           server (asserts client->channels).  Affected file is
2618           silcd/packet_receive.c.
2619
2620         * From now on distribution versions are used as protocol versions
2621           instead of by default using the Toolkit base version as protocol
2622           version.  Affected file prepare.
2623
2624         * Do not set the locally resolved hostname for local client
2625           entry but take what server sends.  This way the real hostname
2626           is showed in WHOIS for yourself.  Affected file is
2627           lib/silcclient/idlist.c and lib/silcclient/client.c.
2628
2629         * Resolve local info with IDENTIFY when connecting to server.y
2630
2631 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2632
2633         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
2634           for implied search (not needed on platforms which has native
2635           pthreads library).  Use --without-pthreads to disable threads.
2636           Affected file is configure.in.pre
2637
2638         * Fixed --with-iconv on platforms which need to bypass (broken)
2639           native iconv().  Affected file is configure.in.pre
2640
2641 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2642
2643         * Moved -C option parsing in Irssi SILC client at same time
2644           as other options.  The UI was initialized earlier and caused
2645           problems on command line.  Bug #16.  Affected file is
2646           irssi/src/silc/core/silc-core.c.
2647
2648 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2649
2650         * Added global variable silc_log_timestamp that tells silclog
2651           wether to print or not the timestamp in the logging files.
2652           Affected file lib/silcutil/silclog.[ch].
2653
2654         * Added silcd configuration option Timestamp in the Logging
2655           section.  Affected file silcd/serverconfig.[ch],
2656           doc/example_silcd.conf.in.
2657
2658 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2659
2660         * Fixed fingerprint checking to check for entirely empty
2661           fingerprint instead of two first bytes when determining
2662           if it is set.  Bug #18.  Affected file silcd/command.c.
2663
2664         * Fixed duplicate PKCS name registering to not allow it.
2665           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
2666
2667 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2668
2669         * Conditionalize non-gcc compiler optimizations for various
2670           platforms, enable those commented out.  Cleanups.
2671           Affected file lib/silcmath/mpi/configure.in
2672
2673 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
2674
2675         * silc_rng_exec_command() left zombie processes if command
2676           didn't generate any output.  Affected file
2677           lib/silccrypt/silcrng.c
2678
2679 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2680
2681         * Rewrote iconv checking, introduce --with-iconv for systems
2682           which rely on libiconv.  Check if iconv() provided by libc
2683           is good enough, otherwise demand libiconv.  Affected file
2684           configure.in.pre
2685
2686 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2687
2688         * Search for ldopen() also in libc.  This enables SIM support
2689           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
2690           file configure.in.pre
2691
2692 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2693
2694         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
2695           This fixes prepare on *BSD systems.  Affected file
2696           configure.in.pre
2697
2698 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2699
2700         * More fixed for not having purge timeout for global clients
2701           that are on channel.  Affected files silcd/command_reply.c
2702           and server_util.c.
2703
2704         * Fixed the rekey protocol to work with backup router connections.
2705           Rekey packets are now allowed on disabled connections as
2706           well.  Affected files silcd/packet_send.c and server.c.
2707
2708         * Do not switch to be as backup router when shutting down and
2709           closing the primary connection.  Affected file silcd/server.c.
2710
2711         * Fixed memory leaks in backup router deleting.  Added
2712           silc_server_backup_free to free all data during shutdown of
2713           server.  Affected files silcd/server_backup.[ch].
2714
2715 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2716
2717         * Do not process commands if the sock->user_data is NULL.
2718           Affected file silcd/command.c.
2719
2720 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2721
2722         * Fixed buffer overflow and security problems (loosing bits
2723           in CFB encryption) in SILC RNG.  Problems reported by
2724           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
2725
2726 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2727
2728         * Added yet more checks that client is not expired on global
2729           list if it is on channels.  Affected file is
2730           silcd/command_reply.c.
2731
2732 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2733
2734         * Merged c0ffee's MIME signal patch which adds support for
2735           sending also MIME messages in Irssi SILC Client, and handling
2736           received MIME messages in a signal (and perhaps doing something
2737           to non-textual MIME messages).
2738
2739 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2740
2741         * Fixed pending command deletion in server and client library
2742           to check the whole list instead of breaking after first found.
2743           The affected files are silcd/command.[ch] and
2744           lib/silcclient/command.[ch].
2745
2746 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2747
2748         * Return NO_SUCH_CHANNEL error in USERS for channel that is
2749           secret or private, otherwise it's possible to find out
2750           whether a secret channel exists or not.  Affected file
2751           silcd/command.c.
2752
2753         * If CMODE change fails during the mode setting, assure that
2754           the old mode mask is set for the channel back.  Affected
2755           file silcd/command.c.
2756
2757         * Fixed passphrase saving on +a channel on normal server
2758           after successful JOIN command.  Affected file silcd/command.c.
2759
2760 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2761
2762         * Remove server/router operator privileges in DETACH command,
2763           since it's possible to resume to server where these
2764           privileges would not be allowed for the client.  Affected
2765           file silcd/command.c.
2766
2767         * Do not set to wait for backup in rehash of the server.
2768           Affected file silcd/server.c.
2769
2770         * Do not check listener sockets when counting how many
2771           socket connections we have.  Affected file is
2772           silcd/server_util.c.
2773
2774         * Do not announce disconnected clients that are remaining
2775           in history (for WHOWAS).  This is because SIGNOFF notify
2776           for these has been sent earlier already.  Affected file
2777           silcd/server.c.
2778
2779 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2780
2781         * Buffer overflow with CUMODE command's mode->mode character
2782           conversion.  Reported by Ville Räsänen.  Affected file
2783           lib/silcutil/silcutil.c.
2784
2785 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2786
2787         * Allow heartbeat packets to go disabled connections anyway.
2788           Affected files silcd/server.c and silcd/packet_send.c.
2789
2790         * Do not broadcast New Channel packets with List flag set
2791           in the packet to backup routers.  The router must check
2792           for the correctness of the packets before sending them.
2793           It is possible that router will have enforce Channel ID
2794           change and this would cause desync in the backup router.
2795           Affected file silcd/packet_receive.c.
2796
2797         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
2798           are handled in list parsing.  They are not list packets
2799           anymore.  Affected file silcd/packet_receive.c.
2800
2801 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2802
2803         * Stop waiting for backup router through the timeout, not
2804           directly after backup router has arrived.  Affected file
2805           silcd/server.c.
2806
2807         * Do not re-create channel keys and send them when removing
2808           clients in server shutdown.  Affected files are
2809           silcd/server_internal.h and silcd/server_util.c.
2810
2811         * Notify distribution to backup routers was missing from
2812           the silc_server_send_notify_dest function which caused
2813           desyncing problems with backup router.  Affected file is
2814           silcd/packet_send.c.
2815
2816         * The client's channel removing was working wrong on
2817           backup router.  It assumed that it doesn't know global
2818           information but backup router does know.  For this reason
2819           it could remove channel when it wasn't supposed to do that.
2820           Affected file silcd/server.c and silcd/server_util.c.
2821
2822 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2823
2824         * Stop for a couple seconds after badkup router has become
2825           primary router.  Affected file silcd/server.c.
2826
2827         * Added silc_server_remove_servers_by_server, which is used
2828           to remove servers originated from some other server.  Also
2829           clients of those servers can be removed too.  Affected file
2830           silcd/server_util.[ch].
2831
2832         * When removing clients after a server has signed of remove
2833           also all servers behind that server (unless they are known
2834           to be available locally), and send SERVER_SIGNOFF for each
2835           of the server separately.  Also the signed off clients are
2836           sent now separately per signed off server.  The affected files
2837           are silcd/server.c and silcd/server_util.[ch].
2838
2839         * All servers added with silc_idlist_add_server must always
2840           have both "router" and "connection" pointers set.  Otherwise,
2841           bad server entries may be left around in the cache.
2842           Affected file silcd/command_reply.c.
2843
2844         * Do not create the channel key in NEW_CHANNEL packet
2845           processing if the channel is empty.  Affected file
2846           silcd/packet_receive.c.
2847
2848         * Completed backup router support for standalone routers.
2849           Supports also servers in the cell that do not use the backup
2850           at all.
2851
2852 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2853
2854         * Fixed a bug in silc_string_regexify which did not add '^'
2855           at the start of each string, and thus the matching was
2856           not explicit.  For example ban list iikone@*!*@* would
2857           match also "priikone", which is wrong, it would have to be
2858           *iikone@*!*@* to match also "priikone".  Affected
2859           file lib/silcutil/unix/silcunixutil.c.
2860
2861 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2862
2863         * Enable all local server connections before updating client
2864           caches when we've become backup router.  Otherwise, signoff
2865           packets may not reach the clients.  Affected files are
2866           silcd/server.c and silcd/server_util.[ch].
2867
2868         * Fixed a bug in version string parsing which could crash
2869           the program with specially formatted version string.
2870           Bug reported and patch provided by Ville Räsänen.  Affected
2871           file lib/silcutil/silcutil.c.
2872
2873         * Handle the disconnection immediately when DISCONNECT
2874           packet is received in server.  Affected file silcd/server.c.
2875
2876         * Primary router now waits a short time (10 seconds) for
2877           backup router connection before accepting any other
2878           connection (except local).  Affected file silcd/server.c,
2879           serverconfig.[ch].
2880
2881         * Fixed a crash in client libary in NICK_CHANGE notify when
2882           NICK_CHANGE arrived for client entry we are resolving
2883           currently.  Affected file lib/silcclient/client_notify.c.
2884
2885         * Call the sconn->callback completion even if error had
2886           occurred.  Start reconnecting always if connection to
2887           primary router fails during backup router protocol.
2888           Affected files silcd/server.c and server_backup.c.
2889
2890 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2891
2892         * Added functions silc_server_send_opers and
2893           silc_server_send_opers_notify to send packets stricly
2894           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
2895           to send variable argument notify to operators.
2896           Affected files silcd/packet_send.[ch] and silcd/server.h.
2897
2898         * Removed UMODE rights checking with UMODE_CHANGE notify.
2899           Affected file silcd/packet_receive.c.
2900
2901         * Server/router operator now receives notify when network
2902           switches to backup router and when it resumes the use of
2903           primary router.  Affected file silcd/server.c and
2904           silcd/server_backup.c.
2905
2906         * Fixed the updating of client information after backup
2907           resuming protocol is over; update all except local clients
2908           to the new primary router.  The affected file is
2909           silcd/server_util.c.
2910
2911         * Added support for closing active connections in rehash
2912           that were unconfigured by the user.  Supports currently
2913           closing server and router connections.  Affected file
2914           silcd/server.c.
2915
2916         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
2917
2918 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2919
2920         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
2921           is NULL since seems that on some platforms NULL is allowed
2922           and on some it's not.  Fallback encoding is used instead.
2923           Affected file lib/silcutil/silcstrutil.c.
2924
2925         * Fixed statistics updating for incoming server connection
2926           which could cause problems when re-connecting.  Affected
2927           file silcd/server.c.
2928
2929         * Preliminary backup router support for standalone router
2930           added.  Affected files in silcd/.
2931
2932         * Mark server connections in backup router disabled before
2933           and after backup protocol.  Affected file is
2934           silcd/server_backup.c.
2935
2936         * Added support for reconnecting to remote server connection
2937           even if the protocol fails, and if the configuration wants
2938           us to keep trying to connect anyway.
2939
2940           Server connection is not allowed to backup router if
2941           backup router does not have connection to primary router yet.
2942
2943           Affected file is silcd/server.c.
2944
2945 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2946
2947         * Added silc_client_udpate_server function to update changed
2948           server info.  Affected file lib/silcclient/idlist.[ch].
2949
2950         * Added check for server entries that are being resolved when
2951           notify is received.  If being resolved, handle the received
2952           notify only after it's resolved so that all notifys are
2953           handled in same order as received from the server.
2954
2955           Added similar resolver check to channel entries.  Every
2956           notify that cause resolving of any information that affects
2957           channel entry marks the channel entry in waiting state.
2958           After whatever resolving is over the waiters are signalled
2959           and only then the notifys are handled in the same order
2960           as delivered from the server.
2961
2962           Affected files are lib/silcclient/idlist.[ch], and
2963           client_notify.c.
2964
2965         * Fixed KILLED notify handling in normal server.  Affected
2966           file silcd/packet_receive.c.
2967
2968         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
2969           is locally connected, or was locally connected (but may
2970           be detached and connection is not active).  Added also
2971           SILC_IS_LOCAL for checking this status.  Affected files
2972           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
2973           silcd/server.c and silcd/server_internal.h.
2974
2975 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2976
2977         * Don't send or handle TOPIC_SET if topic is already set and
2978           is same as being set.  Affected files silcd/command.c and
2979           silcd/packet_receive.c.
2980
2981         * Fixed CMODE change rights checking to work correctly when
2982           removing modes by operator.  Affected file is
2983           silcd/server_util.c.
2984
2985         * Fixed some handling with New Channel packet in router and
2986           fixed some CMODE_CHANGE notify handling in server and router.
2987           Affected file is silcd/packet_receive.c.
2988
2989         * Changed "disconnect" client operation to include the
2990           reason of the disconnection and optional disconnection
2991           message.  Affected file lib/silcclient/silcclient.h.
2992
2993         * Made the compilation of lib/contrib/ stuff conditional.
2994           Affected files configure.in.pre, lib/contrib/Makefile.am.
2995
2996 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2997
2998         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
2999           to the sender of the notify too, to avoid situation where two
3000           notifys are in the network at the same time going to oppsite
3001           directions.  Affected file silcd/packet_receice.c.
3002
3003 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3004
3005         * Delete the client from channel even if the cilent->id is
3006           NULL.  It was possible that client was deleted without
3007           removing from channels (theoretically at least).  Affected
3008           file silcd/server.c and silcd/server_util.c.
3009
3010         * Free the client data too when resuming is not successful.
3011           Affected file silcd/packet_receive.c.
3012
3013         * Merged some code from c0ffee's silc-plugin.  Affected files
3014           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
3015
3016         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
3017           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
3018           to the primary router connection, the other one returns
3019           TRUE if packet must be broadcasted to network.
3020
3021         * All notifys that are destined to primary router (to network)
3022           are now automatically sent to backup routers even if the
3023           router is standalone (and has backup router).  Affected files
3024           in silcd/.
3025
3026         * Added --without-irssi and --without-silcd configuration
3027           options for disabling the compilation of these applications.
3028           Affected file configure.in.pre and prepare.
3029
3030 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3031
3032         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
3033           UTF-8 encoding and decoding.  Added also new encodings
3034           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
3035
3036           Added also SILC_STRING_LANGUAGE which is language and charset
3037           specific encoder and decoer for those platforms that support
3038           iconv().  It can convert the UTF-8 to and from the locale
3039           specific character set.
3040
3041           Affected file lib/silcutil/silcstrutil.[ch].
3042
3043         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
3044
3045         * Added function silc_get_command_name to the file
3046           lib/silcutil/silcutil.[ch].
3047
3048         * Improved the server debug output a bit.  Affected files are
3049           in silcd/.
3050
3051 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3052
3053         * Save the channel passphrase when received succesful JOIN
3054           command reply from router, on normal server.  Otherwise
3055           joinig +a channels from normal server is not possible.
3056           Affected file silcd/command.c.
3057
3058         * Fixed a bug in TOPIC_SET notify handling.  The notifier
3059           may be other than client too, like server or channel.
3060           It expected it to always be only client and ignored the
3061           notify.  Affected file silcd/packet_recieve.c.
3062
3063         * Removed some (unnecessary) debug printing from
3064           lib/silccore/silcid.c and lib/silccore/silcargument.c.
3065
3066         * Do not force CMODE_CHANGE when server is announcing new
3067           channel.
3068
3069           Router announces stuff only after server reannounces channel
3070           after CHANNEL_CHANGE notify.
3071
3072           These fixes optimizes the announcing procedure, and perhaps
3073           fixes some problems too.  Affected file silcd/packet_receive.c.
3074
3075         * Fixed SERVER_SIGNOFF sending to local clients.  It was
3076           totally broken and sent the notify to all local clients,
3077           instead of only to those that was on same channel as the
3078           signing off clients.  Affected file silcd/server_util.c.
3079
3080         * Added -D option to server.  It can be used to give debug
3081           level.  The levels are from 0 - 99, and are predefined for
3082           smooth server debugging.  (see silcd.c for the predefined
3083           levels).  Affected file silcd/server.c.
3084
3085 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3086
3087         * Fixed a bug in Irssi SILC client to close the connection
3088           properly when disconnecting from server.  Affected file
3089           irssi/src/silc/core/client_ops.c.
3090
3091 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3092
3093         * When authenticating as founder during JOIN command, check
3094           that the one authenticating becomes the only founder on the
3095           channel.  Affected file silcd/command.c.
3096
3097         * Better checking for founder mode setting when CUMODE_CHANGE
3098           notify is received.  Affected file silcd/packet_receive.c.
3099
3100         * Close all connections when shutting down the server by sending
3101           DISCONNECT packet.  Close all listeners too when shutting
3102           down the server.  Affected file silcd/server.c.
3103
3104         * Handle DISCONNECT packet correctly in client library by
3105           calling the "disconnect" client operation.  Affected file
3106           lib/silcclient/client.c.
3107
3108         * Handle local errors correctly during resuming.  Affected
3109           file lib/silcclient/client.c.
3110
3111 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3112
3113         * The log file is not dupped internally anymore in
3114           lib/silcutil/silclog.c.  Fixed memory leaks too.
3115
3116         * The scheduler now dispatches all pending timeout tasks
3117           when it is uninitialized with silc_schedule_uninit.
3118           Affected file lib/silcutil/silcschedule.c.
3119
3120 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3121
3122         * Added --enable-stack-trace option to configure.  Added
3123           memory allocation stack trace support.  Added files
3124           lib/silcutil/stacktrace.[ch].  Affected files are
3125           lib/silcutil/silcmemory.[ch].
3126
3127         * Fixed memory leaks from libraries and server.  Affected
3128           files around the tree.
3129
3130         * Reverted back a fix made to CUMODE which broke it.
3131           Affected file silcd/command.c.
3132
3133 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3134
3135         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3136           core library, and implemented it.  All textual messages SHOULD
3137           use this flag and the message MUST be UTF-8 encoded.
3138           All text messages sent by Irssi SILC client are now UTF-8
3139           encoded (regardless whether the terminal supports UTF-8 or not).
3140           Affected files are lib/silccore/silcchannel.h,
3141           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3142           client_ops.c.
3143
3144 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3145
3146         * Added lots of new statistics updating that was missing from
3147           the server and router code.  Affected files in silcd/.
3148
3149         * Sending SIGUSR1 signal to server now dumps the current
3150           server statistics into /tmp directory.  Affected file is
3151           silcd/silcd.c.
3152
3153         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3154           the SILC Hash Interface also.  Added new functions
3155           silc_hash_get_name, silc_hash_init, silc_hash_update and
3156           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3157
3158 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3159
3160         * Added some better info printing for client during connecting.
3161           Affected file silcd/server_util.c.
3162
3163         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3164           to silence a user on a channel.  Affected files are
3165           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3166           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3167           and silcd/packet_receive.c.
3168
3169         * Fixed a fatal bug in handling of malformed command payload.
3170           Affected file silcd/command.c.
3171
3172         * Fixed a double free when announcing channel users to router.
3173           Affected file silcd/server.c.
3174
3175         * After successful authentication to channel founder mode, check
3176           that there isn't anyone else with founder mode on the channel.
3177           The one that authenticated will become founder and anyone
3178           else is demoted.  Affected file silcd/command.c.
3179
3180         * Added error printing of any error that has occurred during
3181           any command in client library.  Affected file is
3182           irssi/src/silc/core/client_ops.c.
3183
3184         * Removed some error printing from the client library and left
3185           it for the application to worry (from the error status it
3186           receives in 'command' client operation.  Affected file is
3187           lib/silcclient/command.c.
3188
3189 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3190
3191         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3192           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3193           Starting key agreement with itself is denied.  Affected file
3194           is lib/silcclient/client_keyagr.c.
3195
3196         * Fixed some error checkings from the SFTP library which caused
3197           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3198           and lib/silcsftp/sftp_util.c.
3199
3200         * Added new "debug" and "debug_string" settings to Irssi SILC
3201           client which can be used to print runtime debugging on the
3202           Irssi's screen.  Available when compiled with --enable-debug
3203           option.  Affected file irssi/src/silc/core/silc-core.c.
3204
3205 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3206
3207         * Fixed a missing variadic parameter in a function call that
3208           caused server crash when a non-allowed connection arrived.
3209           Reported by Richard Becker.  Affected file silcd/server.c.
3210
3211 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3212
3213         * Added WATCH list sending to backup routers from router.
3214           The WATCH command is sent by the router to the backup
3215           router.  Affected file silcd/command.c.
3216
3217         * Mark the backup_router flag for RouterConnection entry
3218           if the backup router stuff is defined in the config file.
3219           Affected file silcd/serverconfig.c.
3220
3221         * Fixed some backup data sending around the code to work better
3222           if the router is standalone router.  Not all places were fixed.
3223           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3224           silcd/server.c.
3225
3226         * Fixed the router connecting when connecting to multiple
3227           routers.  It ignored every other router except the first
3228           one.  Affected file silcd/server.c.
3229
3230 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3231
3232         * Made the private key generation after expiration optional.
3233           If not created after expiration the old key will re-expire
3234           at a later time (and thus key pair is not necessary to
3235           change).  Affected file irssi/src/silc/core/clientutil.c.
3236
3237 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3238
3239         * The length arguments in bind() and connect() were wrong
3240           and fixed now to used SIZEOF_SOCKADDR in the
3241           lib/silcutil/unix/silcunixutil.c.
3242
3243 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3244
3245         * Fixed detach timeout handling to use Client ID and not
3246           the actual client entry which may be freed in the callback.
3247           Affected file silcd/command.c.
3248
3249 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3250
3251         * Merged c0ffee's multiple interface support patch.
3252           Affected files in silcd/.
3253
3254 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3255
3256         * Cleanup keys properly.  Affected file is
3257           irssi/src/silc/core/clientutil.c.
3258
3259 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3260
3261         * Display the user mode on the status bar.  Affected file
3262           irssi/src/silc/core/silc-expandos.c.
3263
3264 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3265
3266         * If private message key is not set, but the flag is set in
3267           the packet, ignore the packet since it cannot be decrypted.
3268           Affected file lib/silcclient/client_prvmsg.c.
3269
3270 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3271
3272         * When resuming client, remove the old client entry from
3273           the watcher list too.  Affected file silcd/packet_receive.c.
3274
3275         * Do not allow normal server to force founder mode away
3276           from router if the founder mode is already set.  Affected
3277           file silcd/packet_receive.c.
3278
3279         * Remove the client entry with watch notify types with short
3280           timeout, and not directly, so that other notifys can be
3281           retrieved too.  Affected file lib/silcclient/client_notify.c.
3282
3283         * Display notification about data messages that cannot be
3284           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3285           irssi/src/fe-common/silc/module-formats.[ch].
3286
3287 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3288
3289         * Fixed the CHANNEL_CHANGE notify handling in client libary
3290           to not use freed memory.  Affected file is
3291           lib/silcclient/client_notify.c.
3292
3293         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3294           file silcd/packet_receive.c.
3295
3296         * Fixed USERS command to support empty channels.  Affected
3297           file silcd/command.c.
3298
3299 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3300
3301         * Allow multiple identical pending commands to be registered
3302           in client library.  Affected file is lib/silcclient/command.c.
3303
3304         * Call the completion for resolving client information only
3305           after all resolvers has finished.  This fixes a crash in
3306           the client.  Added support for checking when the resolvers
3307           are finished.  Affected file is lib/silcclient/idlist.c.
3308
3309         * Wait by default 3 seconds before reconnecting to the server
3310           after being disconnected.  Makes the /detach command a bit
3311           more usable.
3312
3313 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3314
3315         * Check the watcher list before sending signoff notifys
3316           when closing client connection.  Affected file is
3317           silcd/server.c.
3318
3319         * Added better CMODE command rights checking.  Affected file
3320           silcd/server_util.c.
3321
3322 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3323
3324         * Fixed watcher list checking during server signoff.  It
3325           crashed the server.  Affected file silcd/server_util.c.
3326
3327         * The JOIN command reply returns now the founder's public
3328           key.  Affected file is silcd/command.c.
3329
3330         * Announce the channel mode, and the mode properties with
3331           CMODE_CHANGE notify.  Affected file silcd/server.c.
3332
3333         * Mark new channels by default disabled, untill at least
3334           one user joins the channel.  Affected file is
3335           silcd/packet_receive.c.
3336
3337 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3338
3339         * The nickname argument to watch notify can be optional.
3340           Fixes a crash in server.  Affected file silcd/packet_send.c.
3341
3342         * Remove the client entry from cache if the WATCH notify type
3343           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
3344           lib/silcclient/client_notify.c.
3345
3346         * Check the watcher list before and after changing nickname
3347           when the NICK_CHANGE notify is received.  Affected file is
3348           silcd/idlist.c.
3349
3350         * Fixed a crash in OPER and SILCOPER command sending.  Empty
3351           passphrase caused the crash.  Affected file is
3352           lib/silcclient/command.c.
3353
3354 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3355
3356         * Merged with Irssi CVS for Irssi SILC client.
3357
3358 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3359
3360         * Completed the protocol specifications.
3361
3362 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3363
3364         * Merged with Irssi CVS for Irssi SILC client.
3365
3366 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3367
3368         * Added the founder's public key delivery to the
3369           CUMODE_CHANGE notify type as well.  Updated the protocol
3370           specs and the code.  Affected files are silcd/packet_send.[ch],
3371           silcd/packet_receive.c and silcd/command.c.
3372
3373 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3374
3375         * Added silc_pkcs_public_key_copy function into the
3376           lib/silccrypt/silcpkcs.[ch].
3377
3378         * Remove the `iv' from the SilcChannelEntry since we can
3379           live without it.  Affected files are silcd/idlist.h and
3380           silcd/packet_receive.c.
3381
3382         * Added support for sending the founder's public key in
3383           the CMODE_CHANGE notify packet in the server.  Affected
3384           files are silcd/packet_send.[ch], silcd/packet_receive.c,
3385           silcd/command.c and silcd/server.c.
3386
3387         * Changed the FOUNDER_AUTH authentication to use only
3388           public key authentication as defined by new protocol
3389           specs.  Passphrase authentication with that mode cannot
3390           be used anymore.  It is now possible to reclaim founder
3391           mode from any server in the network.  Affected files are
3392           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
3393
3394         * Added permanent channels support by making the channel
3395           permanent when FOUNDER_AUTH mode is set on the channel.
3396           The channel will not be destroyed even if channel is empty
3397           when that mode is set.  Protocol TODO #17.  Affected
3398           files are silcd/server.[ch], server_util.[ch],
3399           silcd/command.c, silcd/packet_receive.c and
3400           lib/silcclient/command.c.
3401
3402 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3403
3404         * Added reference counter to the command reply context in
3405           the client library.  Affected files are
3406           lib/silcclient/command_reply.[ch].
3407
3408 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3409
3410         * Fixed rekey protocol with PFS in the client library.
3411           Affected file is lib/silcclient/protocol.c.
3412
3413         * Added support for list of errors in client library
3414           command reply handling.  Affected file is
3415           lib/silcclient/command_reply.c.
3416
3417         * Defined that the WHOIS and IDENTIFY commands can send
3418           list of errors.  Updated the protocol specs.  Protocol
3419           TODO #2.
3420
3421         * Added support for sending list of errors to WHOIS and
3422           IDENTIFY commands in server.  Added support for receiving
3423           list of errors in server.  Affected files are
3424           silcd/command.c and silcd/command_reply.c.
3425
3426         * Fixed client info resolving on LEAVE command in client
3427           library to not crash.  Affected file is
3428           lib/silcclient/client_notify.c.
3429
3430 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3431
3432         * Defined that the NICK command replies with thew changed
3433           nickname too, to make the nickname changing simpler at
3434           the client's end.  Updated protocol specs and the code
3435           in client and server.  Affected files are
3436           silcd/command.c, lib/silcclient/command_reply.c and
3437           lib/silcclient/command.c.
3438
3439 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3440
3441         * Added `Compressed' packet flag to indicate that the packet
3442           payload is compressed by the sender.  Updated the protocol
3443           specs and the core library.  The compression still is not
3444           implemented in the sources.  Affected file is
3445           lib/silccore/silcpacket.h.
3446
3447 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3448
3449         * Remove pending command callbacks also if the connection
3450           to the server is destroyed.  Affected file is
3451           lib/silcclient/client.c.
3452
3453 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3454
3455         * Added new QUIET channel user mode that can be used to
3456           quiet a user in a channel.  Updated the protocol specs but
3457           it wasn't implemented yet.  Protocol TODO #27.  Affected
3458           file is lib/silccore/silcmode.h.
3459
3460 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3461
3462         * Added BLOCK_INVITE user mode to be able to block incoming
3463           invite notifications.  Protoocol TODO #26.  Affected files
3464           are lib/silccore/silcmode.h, lib/silcclient/command.c and
3465           silcd/command.c.
3466
3467         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
3468           the protocol specs and the code.  Affected file is
3469           lib/silccrypt/silcpkcs.c.
3470
3471 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3472
3473         * Disconnect Payload includes now the status type.  Updated
3474           the protocol specs and the code.  Protocol TODO #25.
3475           Affected files are silcd/server.c, lib/silcclient/client.c.
3476
3477         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
3478           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
3479           Moved the silc_client_command_status_messages table to the
3480           lib/silcutil/silcutil.c and added new funtion
3481           silc_get_status_message, which deprecates function
3482           silc_client_status_message.  Affected files are
3483           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
3484           lib/silcutil/silcutil.[ch].
3485
3486 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3487
3488         * Defined that the nickname hash in Client ID MUST be from
3489           lowercase nickname.  This effectively changes nicknames in
3490           SILC to case-insensitive.  Updated the protocol specs and
3491           the code.  Affected files are lib/silcutil/silcutil.[ch],
3492           silcd/serverid.c, and silcd/idlist.c.
3493
3494         * Added new channel user modes BLOCK_MESSAGES_USERS and
3495           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
3496           code.  Affected files are lib/silccore/silcmode.h,
3497           lib/silcclient/command.c, and silcd/packet_send.c.
3498
3499         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
3500           specs and code.  Affected file lib/silccore/silcstatus.h.
3501
3502         * Added support for watch list.  It is possible to add nicknames
3503           to be watched, and when they come to network, leave network
3504           or user mode changes the watcher will be notified of this
3505           change.  Added SILC_COMMAND_WATCH command, added new
3506           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
3507           notifications.  Updated the protocol specs and implemented
3508           this to library, client and server.  Protocol TODO #21.
3509           Affected files are lib/silccore/silccomand.h,
3510           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
3511           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
3512           silcd/packet_send.[ch], silcd/packet_receive.c, and
3513           irssi/src/silc/core/client_ops.c.
3514
3515         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
3516           somebody watching you.  Updated the protocol specs and the
3517           code.  Affected files are lib/silccore/silcmode.h, and
3518           lib/silcclient/command.c.
3519
3520 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3521
3522         * Added service support to SILC protocol.  Added new command
3523           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
3524           core library.  Services are not implemented in server or
3525           client for now.  Protocol TODO #20.  Affected files are
3526           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
3527
3528         * Added SilcStatus argument to `command' client operation
3529           to return the error status when command sending fails
3530           locally.  Changed all command in client library to return
3531           correct command status.  Affected files are
3532           lib/silcclient/command.c, lib/silcclient/silcclient.h and
3533           irssi/src/silc/core/client_ops.c.
3534
3535 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3536
3537         * Added silc_mime_parse function to parse MIME headers.
3538           Affected files are lib/silcutil/silcstruti.[ch].
3539
3540         * Added MIME header parsing in Irssi SILC Client.  It displays
3541           all textual MIME objects, others it ignores.  Affected file
3542           is irssi/src/silc/core/clien_ops.c.
3543
3544 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3545
3546         * Fixed a bug in the pid writing function, which couldn't be
3547           written in a root-owned directory.
3548
3549 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3550
3551         * Defined that channel message to unknown Channel ID must
3552           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
3553           Updated the protocol specs and the code in server.  The
3554           affected file is silcd/packet_receive.c.
3555
3556 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3557
3558         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
3559           that it is used to send error notifys if error occurs during
3560           some SILC packet processing, except commands.  The error
3561           types are same as for command reply types.  Defined that
3562           if private message is sent to unknown Client ID the error
3563           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
3564           Updated the protocol specs and code.  Affected files are
3565           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
3566           lib/silcclient/client_notify.c, silcd/packet_receive.c,
3567           and irssi/src/silc/core/client_ops.c.  Renamed the
3568           SilcCommandStatus to SilcStatus.
3569
3570         * Defined the use of extra WHOIS attributes in WHOIS command.
3571           The <Requested Attributes> (defined in a separate document)
3572           can be used to request additional information about user
3573           not returned by standard WHOIS command.  Defined that server
3574           can send WHOIS command directly to client.  Client provides
3575           the requested attributes to the server.  Updated the protocol
3576           specs.  Protocol TODO #4.  Implementation is not done yet
3577           (Protocol TODO #24).
3578
3579         * Renamed function silc_client_command_status_message to
3580           silc_client_status_message.  Affected files are
3581           lib/silcclient/command_reply.[ch].
3582
3583 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3584
3585         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
3586           32 bit integers.  Updated the protcol specs and the code.
3587           Affected files are silcd/command.c and
3588           lib/silcclient/command.c.
3589
3590 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3591
3592         * Fixed a bug in library where sending a bogus authentication
3593           payload would lead to a crash.  Affected file is
3594           lib/silccore/silcauth.c.
3595
3596 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3597
3598         * Added detach_disabled and detach_timeout server config
3599           options to the server.  Affected files silcd/serverconfig.[ch],
3600           silcd/command.c and silcd/packet_receive.c.
3601
3602 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3603
3604         * Added resolve_cmd_ident field to the SilcClientEntry structure
3605           too so that if the entry is for example being resolved so
3606           another command may attach to the same pending command reply
3607           without requiring to resolve the same entry again.  Added
3608           support for adding multiple pending commands for one
3609           command idenfier.  Affected files lib/silcclient/command.[ch],
3610           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
3611
3612 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3613
3614         * Defined that server receives WHOIS command reply for private
3615           and secret channels too.  Updated protocol specs and the
3616           code in server.  Affected file silcd/command.c.
3617
3618         * Defined <channel user mode list> argument to WHOIS command
3619           reply for returning user modes on the channels.  The
3620           channel list now doesn't include the user mode anymore but the
3621           actual channel mode.  Updated protocol specs and the code in
3622           client and server.  Affected files are silcd/command_reply.c,
3623           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
3624           and lib/silcclient/command_reply.c.
3625
3626         * Save the channels list in WHOIS command reply in normal server
3627           so that WHOIS always shows joined channels also in normal
3628           server and not just on router.  Affected file is
3629           silcd/command_reply.c.
3630
3631 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3632
3633         * Defined that server receives USERS command reply for private
3634           and secret channels too.  Updated protocol specs and the
3635           code in server.  Affected file silcd/command.c.
3636
3637 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3638
3639         * Changed the UMODE's mode mask argument to be optional.  If
3640           not provided then the command merely returns the current mode
3641           mask to the client.  Updated protocol specs and the server.
3642           Affected file is silcd/command.c.
3643
3644         * Added SILC session detachment/resuming support.  It is possible
3645           to detach by closing the network connection and then re-connect
3646           and resume to the old client session.  Added DETACHED user
3647           mode that server will set for detached client.  Added new
3648           packet RESUME_CLIENT which is used to perform the resuming
3649           process.  Added DETACH command.  Updated the protocol specs,
3650           core library, client and server.  Protocol TODO #22.  Very
3651           many affected files around the tree.
3652
3653 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3654
3655         * Changed the CMODE's mode mask argument to be optional.  If
3656           not provided then the command merely returns the current mode
3657           mask to the client.  Updated protocol specs and the server.
3658           Affected file is silcd/command.c.
3659
3660         * Changed the Killer's Client ID in KILLED notify to be just
3661           any ID payload since router server is allowed to kill as well.
3662           Updated protocol specs, client libary and server.  Affected
3663           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
3664           and irssi/src/silc/core/client_ops.c.
3665
3666 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3667
3668         * Added new user modes ANONYMOUS for special anonymous servers
3669           that may set the mode for client, and BLOCK_PRIVMSG which
3670           client may set to block incoming private messages unless the
3671           Private Message Key flag is set (using private keys to protect
3672           private messages).  Updated protocol specs and code in client
3673           and server and core library.  Protocol TODO #23.  Affected
3674           files are lib/silccore/silcmode.h, silcd/server.[ch],
3675           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
3676           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
3677
3678         * Added new channel user mode BLOCK_MESSAGES which the client
3679           may set to itself to tell server not send channel messages.
3680           Other packets such as channel key packets are still sent.
3681           Protocol TODO #23.  Updated the protocol specs, client and
3682           server.  Affected files are lib/silccore/silcmode.h,
3683           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
3684           lib/silcutil/silcutil.c, silcd/command.c, and
3685           silcd/packet_send.c.
3686
3687 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3688
3689         * Redefined the Status Payload to include now two 8 bit fields,
3690           instead of one 16 bit field.  This now makes it possible to
3691           send list of errors.  Updated the protocol specs and the code
3692           in core library, client library and server.  Protocol TODO #1.
3693           Affected files are lib/silccore/silccommand.[ch],
3694           lib/silcclient/command_reply.[ch], silcd/command.c,
3695           silcd/command_reply.c and silcd/packet_receive.[ch].
3696
3697 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3698
3699         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
3700           must be handled by the application and should tell the application
3701           that an error message was already printed, and it should print the
3702           config coords (line, filename, ...).  Affected files are
3703           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
3704
3705         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
3706           server config parsing code more readable.
3707
3708           Fixed a bug in the fetch_logging() config callback.
3709
3710           Affected files is silcd/serverconfig.c.
3711
3712         * Drop root privileges when started in foreground.  Don't drop them
3713           if debugging also.  Affected file is silcd/silcd.c.
3714
3715 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3716
3717         * Added more IM-like features by introducing new user modes
3718           for setting various presence information.  Added new modes:
3719           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
3720           specs and code.  Protocol TODO #19. Affected files are
3721           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
3722           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
3723
3724 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3725
3726         * Added STATS command to the protocol after all, to return
3727           various statistical information about the network.  It can
3728           be used by clients to retrieve statistical information, and
3729           servers may use it to to fetch cell and network wide
3730           statistics from router.  Updated the protocol specs and
3731           implemented it to the server.  Protocol TODO #16.
3732           Affected files are lib/silccore/silccommand, silcd/command.[ch],
3733           silcd/command_reply.[ch].
3734
3735 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3736
3737         * The LIST command reply in client libary now adds new channel
3738           entry if the returned channel doesn't exist yet in cache,
3739           and returns the channel entry to the application in the
3740           command_reply client operation.  Affected file is
3741           lib/silcclient/command_reply.c.
3742
3743         * Changed the channel message payload's MAC generation to
3744           include the IV in the MAC as well.  This way all relevant
3745           parts of the channel message payload are authenticated also
3746           with the channel message MAC (and not only by packet MAC).
3747           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
3748           Affected file is lib/silccore/silcchannel.c.
3749
3750         * Fixed the SKE to save the remote version, since the
3751           silc_ske_parse_version mistakenly checked wrong version,
3752           after it replaced the start payload.  Affected files are
3753           lib/silcske/silcske.[ch].
3754
3755 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3756
3757         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
3758           string utility functions.  Added there also new functions
3759           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
3760           Affected files lib/silcutil/silcstrutil.[ch].
3761
3762         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
3763           files are lib/silcutil/silcstrutil.[ch].
3764
3765         * Defined that the security property fields in SKE SHOULD be
3766           UTF-8 encoded, defined that version string MUST be US-ASCII
3767           encoded, defined that passphrases sent in connection
3768           authentication protocol MUST be UTF-8 encoded.  Implemented
3769           these to the client and server.  Defined also that other
3770           passphrases sent in the protocol MUST be UTF-8 encoded.
3771           Affected files are lib/silcske/silcske.c,
3772           lib/silcclient/protocol.c, silcd/protocol.c,
3773           silcd/serverconfig.c, and lib/silccore/silcauth.c.
3774
3775         * Changed the silc_client_close_connection interface to not
3776           need the SilcSocketConnection which should not be visible
3777           to application.  Affected files are lib/silcclient/client.c
3778           and lib/silcclient/silcclient.h.
3779
3780         * Rewrote the text for Private Message Key Payload in the
3781           protocol specification.  Protocol TODO #11.
3782
3783 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3784
3785         * Upgraded the protocol version to 1.1, updated protocol specs
3786           and software.
3787
3788         * Added the nickname as new argument to NICK_CHANGE notify and
3789           added it to protocol specs and implemented it to client and
3790           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
3791           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
3792           lib/silcclient/client_notify.c.
3793
3794         * Added the killer's client ID to the KILLED notify and added
3795           it to protocol specs and implemented it to client and server.
3796           Protocol TODO #13.  Affected files are silcd/command.c,
3797           silcd/packet_receive.c, packet_send.[ch],
3798           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
3799           The killer's client entry is now returned to application in
3800           the `notify' client operation.
3801
3802         * Fixed the Max Argument fields that had too large value set
3803           in the protocol specs.  Protocol TODO #14.
3804
3805         * Added the LEAVE command reply to return the ID of parted
3806           channel.  Updated protocol specs and implemented it to the
3807           client and server.  Protocol TODO #15.  Affected files are
3808           silcd/command.c, lib/silcclient/command_reply.c.  The channel
3809           entry is now returned to application in the `command_reply'
3810           client operation.
3811
3812         * Rewrote the version SKE version checking in client libary
3813           and in server to use the silc_parse_version_string.  Affected
3814           files are lib/silcclient/protocol.c, silcd/protocol.c.
3815
3816         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
3817           commands that was missing it, and updated protocol specs and
3818           the server implementation.  Protocol TODO #10.  The affected
3819           file is silcd/command.c.
3820
3821         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
3822           generic reply to a generic request (REQUEST flag), and
3823           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
3824           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
3825           to define the payload for DATA flag.  Added the flags to
3826           the implementation.  Protocol TODO #9.  Affected file is
3827           lib/silccore/silcchannel.h.
3828
3829           Changed the client library to return the message length
3830           to application as well in the channel_message and private_message
3831           client operations.  Affected files are
3832           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
3833           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
3834           and lib/silcclient/client_ops_example.c.
3835
3836         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
3837           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
3838           the channel.  Updated protocol specs and impelemented this
3839           to client and server.  Protocol TODO #6.  Affected files are
3840           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
3841           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
3842
3843           Added new options m and M to CMODE command in Irssi SILC
3844           client to set these modes.
3845
3846         * Deprecated all administrative commands from SILC protocol
3847           since they are highly implementation specific commands.
3848           Updated protocol specs.  Moved the old commands in
3849           implementations to private range of command types.  Affected
3850           files are silcd/command.c, lib/silcclient/command.c and
3851           lib/silcclient/command_reply.c.  Protocol TODO #8.
3852
3853         * Fixed a bug in server where sending unknown command crashes
3854           the server.  Affected file silcd/command.c.
3855
3856 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3857
3858         * Added SILC_PROTOCOLVERSION macro to check protocol version
3859           of a socket connection.  The affected file is
3860           lib/silcutil/silcsockconn.h.
3861
3862         * Added better error logging in rekey protocol.  Affected file
3863           silcd/protocol.c.
3864
3865         * Do not check public key types in SKE during rekey.  Affected
3866           file lib/silcske/payload.c.
3867
3868         * Fixed the rekey protocol with PFS, which was totally broken.
3869           Affected file silcd/protocol.c.
3870
3871 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3872
3873         * Some client implementations quit network by doing first LEAVE
3874           and then immediately SIGNOFF (like Bombyx).  We now do check
3875           after a short time after LEAVE notify and check whether the
3876           client is still valid after LEAVE, and if not we remove it from
3877           cache.  Affected file is lib/silcclient/client_notify.c.
3878
3879 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3880
3881         * Merged version 1.1.4 of zlib. Even if it not currently in use,
3882           it's good not to have security holes here.
3883
3884         * Fixed a negative refcount situtuation for the config context.
3885           Affected file is silcd/serverconfig.c.
3886
3887 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3888
3889         * ROBOdoc documented lib/silcutil/silcutil.h.
3890
3891 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3892
3893         * Optimized even more the SilcPacketContext structure.  Now
3894           totally saved 16 bytes of memory per context after optimization.
3895           Affected files are lib/silccore/silcpacket.[ch].
3896
3897         * Made strict checks for valid SILC IDs.  Affected file is
3898           lib/silccore/silcid.c.
3899
3900 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3901
3902         * Changed the object argument for silc_cipher_register,
3903           silc_hash_register, silc_hmac_register and silc_pkcs_register
3904           to const.  Affected files are lib/silccrypt/silccipher.[ch],
3905           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
3906
3907         * Changed the silc_get_username and silc_get_real_name to
3908           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
3909
3910         * Fixed the Irssi SILC Client to use the silc_get_username and
3911           silc_get_real_name insted of glib routines since the glib
3912           routines only corrupt stack.  Fixes the Irssi SILC to work in
3913           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
3914
3915         * Fixed the Irssi to not use g_get_home_dir since it crashes
3916           or returns garbage on cygwin and corrupts stack.  Added function
3917           get_home_dir to Irssi routines.  Affected files are
3918           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
3919
3920 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3921
3922         * Made some structure optimizations.  SFTP memory FS MemFSEntry
3923           entry structure.  Optimized SilcTask structure.  Optimized
3924           SilcPacketContext structure.
3925
3926           Affected files lib/silcsftp/sftp_fs_memory.c,
3927           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
3928
3929 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3930
3931         * And yet again reverted back the config thing since Johnny
3932           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
3933           and silcd.c.
3934
3935         * Fixed memory leaks from config object.  Affected files are
3936           silcd/serverconfig.[ch].
3937
3938         * Added support for adding new connections to the server in rehash.
3939           After rehash they take effect.
3940
3941           Added support for changing the maximum allowed connections in
3942           rehash.  The number can grow but going smaller is not supported.
3943
3944           Added function silc_server_num_sockets_by_remote to the
3945           silcd/server_util.[ch].
3946
3947           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
3948
3949 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
3950
3951         * Added preliminary checking during config parsing for a valid
3952           public/private key and removed further checks in the code.
3953           Affected files are silcd/serverconfig.[ch], server.c.
3954
3955         * Moved functions silc_server_drop() and silc_server_daemonise()
3956           from server.c to silcd.c since they are stricly related to
3957           the application activity.
3958
3959         * Reverted a small part of the automatic ref/unref since
3960           it caused a double unref in some situations.  Affected
3961           files are silcd/silcd.[ch], server.c, serverconfig.c.
3962
3963         * Added some .cvsignore files in the lib directory.
3964
3965 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3966
3967         * Fixed silc_net_gethostbyaddr to correctly resolve by
3968           address.  Affected file lib/silcutil/silcnet.c.
3969
3970         * Fixed the notify relaying to client.  The HMAC to be used
3971           with relayed packets ws wrong and caused decryption failure
3972           at the client end.  Affected file is silcd/packet_receive.c.
3973
3974 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3975
3976         * Created new branch silc_protocol_1_0_branch.
3977
3978         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
3979
3980         * Changed the silc_server_config_* routines to be SilcServer
3981           independent.  They are now officially application specific code
3982           and not part of generic server implementation.  Affected files
3983           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
3984
3985 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3986
3987         * Added automatic referencing of config context in the
3988           silc_server_config_alloc, and automatic unreferencing in the
3989           silc_server_config_destroy.  Affected files are
3990           silcd/serverconfig.[ch], silcd/silcd.c.
3991
3992         * Fixed the silc_log_quick handling in the logging routines.
3993           It didn't log quickly when it was TRUE.  Affected file is
3994           lib/silcutil/silclog.c.  Also the flush delay was set even
3995           if it was 0 in config file.  Affected file is
3996           silcd/serverconfig.c.
3997
3998         * Added support for changing key pair of the server in rehash.
3999           Affected file silcd/server.c.
4000
4001 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4002
4003         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
4004           too early, before getting the channel entry.  Affected file
4005           is silcd/packet_receive.c.
4006
4007 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4008
4009         * Added functions silc_server_config_[ref/unref], these are used
4010           to prevent that the config object is destroyed.
4011
4012           No longer directly affect global variables silc_log_quick and
4013           silc_log_delay, they are first cached inside the config object
4014           and then applied with silc_server_config_setlogfiles().
4015
4016           silc_server_config_set_defaults() is now internal to
4017           serverconfig.c, there are no reasons to show this internal stuff
4018           to the server.
4019
4020           Affected files are silcd/serverconfig.[ch].
4021
4022         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
4023           fprintf's to stderr, since some code may be executed again after
4024           the server went into the background.  Affected files are
4025           silcd/server.[ch].
4026
4027         * Added rehash support. Added function silc_server_rehash() that
4028           will perform all the basic tasks of the rehashing procedure.
4029
4030         * Added command line option `-x, --hexdump'. This will enable the
4031           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
4032           The option `--hexdump' implies `--debug'.
4033
4034         * Fixed a bad bug in the logging APIs (silcutil library) where
4035           the application would crash after calling silc_log_reset_all().
4036
4037 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4038
4039         * Fixed the KICKED notify handling in client library to
4040           correctly remove the channel and all entries from the
4041           channel when I was kicked.  This bug crashed the client.
4042
4043           Fixed yet another but in KICKED notify handling to remove
4044           the kicked client correctly from the channel.
4045
4046           Affected file is lib/silcclient/client_notify.c.
4047
4048         * Fixed a minor bug in looking up correct client entry
4049           in KICKED notify in server.  Affected file is
4050           silcd/packet_receive.c.
4051
4052         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
4053           sources correctly to distribution.  Fixes --with-gmp option.
4054
4055         * Removed the manual rehashing from ID Cache, and changed it
4056           to use the SILC Hash Table's auto rehash feature.  Affected
4057           file is lib/silccore/silcidcache.c.
4058
4059 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4060
4061         * Fixed a bug in the silc_client_nickname_format function that
4062           handles the multiple same nickname formatting.  Two clients
4063           with same nickname caused problems after the first one left
4064           and rejoined.  It didn't format the nickname correctly.
4065           Affected file is lib/silcclient/idlist.c.
4066
4067 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4068
4069         * Don't change the topic if olod topic is same as new one.
4070           Affected file is silcd/packet_receive.c.
4071
4072 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4073
4074         * Added cross-reference support to the SILC Documentation
4075           generator.  All types across all HTML files are now cross-
4076           referenced.  Affected files util/robodoc/generator.c and
4077           scripts/silcdoc/silcdoc.
4078
4079         * Added file lib/silcutil/silctypes.h to include all the
4080           arithmetic type definitions and some macros.  Removed
4081           includes/bitmove.h and moved macros to silctypes.h.
4082
4083 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4084
4085         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
4086
4087 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4088
4089         * Added `type' argument to silc_id_payload_parse_id function which
4090           now returns the type of the ID to the sent pointer.  Affected
4091           file is lib/silccore/silcid.[ch].
4092
4093         * Added check for CMODE_CHANGE notify type that mode change is
4094           allowed by the sender.  Affected file silcd/packet_receive.c.
4095
4096         * Added check for CUMODE_CHANGE notify type that mode change is
4097           allowed by the sender.  Affected file silcd/packet_receive.c.
4098           Added the ID type as CUMODE_CHANGE notify type as argument
4099           to the `notify' client operation.  Affected files are
4100           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4101
4102         * Added function silc_client_add_server to the client library.
4103           Added support for resolving also channel and server info when
4104           received unknown entity in notify packet.  Affected files are
4105           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4106
4107         * Added function silc_command_get_status to return the command
4108           status from the command reply's argument payload.  Affected files
4109           are lib/silccore/silccommand.[ch].
4110
4111         * Added check for KICKED notify type that the kicking is
4112           allowed by the client.  Affected file silcd/packet_receive.c.
4113
4114         * Created function silc_get_input which can be used to get input
4115           (echo on or off) from user on command line.  Affected files are
4116           lib/silcutil/silcutil.[ch].
4117
4118 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4119
4120         * Optimized silc_server_packet_relay_to_channel function.
4121           Added new function silc_channel_message_payload_encrypt which
4122           can be called directly if channel message payload needs to
4123           be encrypted and is already encoded (no need to call _encode
4124           function).  Packet relaying is now done by router without any
4125           extra memory allocations.  Affected files are
4126           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4127           silcd/packet_send.c.
4128
4129         * Fixed the INVITE notify handling.  It took wrong arguments
4130           as invite list and invite delete.  Affected file is
4131           silcd/packet_receive.c.
4132
4133         * Added check for TOPIC_SET notify type that the topic change is
4134           allowed by the client.  Affected file silcd/packet_receive.c.
4135
4136         * Added check for INVITE notify type that inviting is allowed by
4137           the client.  Affected file silcd/packet_receive.c.
4138
4139         * Changed the silc_server_client_on_channel to return the
4140           SilcChannelClientEntry as well.  Moved the function
4141           silc_server_check_cmode_rights to server_util.[ch].
4142           Affected files are silcd/server_util.[ch], silcd/command.c.
4143
4144         * Added function silc_server_check_umode_rights to check whether
4145           changing client's user mode is allowed.  Added check for
4146           UMODE_CHANGE notify type that the umode change is allowed
4147           by the client.  Affected files are silcd/server_util.[ch],
4148           silcd/packet_receive.c and silcd/command.c.
4149
4150 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4151
4152         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4153           ID length.  It ignored that ID can be IPv6 based as well.
4154           Affected file lib/silccore/silcpacket.h.
4155
4156         * Fixed the silc_id_id2str and silc_id_str2id to take the
4157           IPv6 address offset's into consideration.  Affecte file is
4158           lib/silccore/silcid.c.
4159
4160 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4161
4162         * Fixed the internal Unix scheduler functions to check for
4163           NULL context they may receive.  The affected file is
4164           lib/silcutil/unix/silcunixschedule.c.
4165
4166 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4167
4168         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4169           can specify different directory with --home command line
4170           parameter. Affected files irssi/src/silc/core/client_ops.c,
4171           clientutil.c
4172
4173         * SILC-specific commands aren't now executed if the active server
4174           isn't of SILC-type, so there won't be problems with having
4175           IRC and SILC protocol support in same client. Affected files
4176           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4177           silc-commands.h
4178
4179 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4180
4181         * Improved the signal support in SILC Schedule.  Added new
4182           function silc_schedule_signal_call which is used by application
4183           to mark a signal to be called.  It is now safe to perform
4184           any kind of tasks in signal callbacks since it is guaranteed
4185           that the application specified signal callback is called
4186           after the signal is over.  Affected files are
4187           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4188
4189 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4190
4191         * Added `name' field to SilcChannelPrivateKey to represent
4192           application given name for the key.  Moved also the context from
4193           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4194           Added the `name' argument also to the function
4195           silc_client_add_channel_private_key.
4196
4197           Added function silc_client_current_channel_private_key to set the
4198           current channel private key in use.
4199
4200           Added "change" command to KEY command which can be used to change
4201           the current channel private key.  Bound the command also to
4202           alt+K (Alt+Shift+k).
4203
4204           Also affected files lib/silcclient/client_channel.c,
4205           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4206
4207 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4208
4209         * Added silc_rng_get_byte_fast function in to the
4210           lib/silccrypt/silcrng.[ch].
4211
4212         * Changed the interface of silc_packet_assemble and the
4213           silc_packet_send_prepare.  If silc_packet_assmble is now
4214           called the application does not call silc_packet_send_prepare
4215           because the library will call it automatically.  These
4216           interfaces now also return a reference to the outgoing buffer
4217           which includes the assembled packet, which the application can
4218           use to encrypt the packet.
4219
4220           Affected files are lib/silccore/silcpacket.[ch],
4221           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4222           silcd/packet_send.c, server_backup.c and packet_receive.c.
4223
4224         * Fixed a packet sending bug on very high load, where outgoing
4225           packet queue wasn't handled correctly and packets got corrupted.
4226           Affected files are lib/silcutil/*/silc*sockconn.c,
4227           lib/silcclient/client.c and silcd/server.c.
4228
4229 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4230
4231         * Added macro SILC_PACKET_DATALEN which can be used during
4232           packet assembling to check whether the data to be added to
4233           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4234           len is truncated until it fits it.
4235
4236           Added checks for maximum length of channel message payload and
4237           private message payload also.
4238
4239           Added checks for maximum packet length in server and in
4240           client library.
4241
4242           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4243           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4244           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4245           lib/silcclient/client_prvmsg.c.
4246
4247 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4248
4249         * Added silc_server_packet_queue_purge call to the
4250           silc_server_disconnect_remote to assure that all data in the
4251           queue before disconnecting is sent to the network.  Affected
4252           file silcd/server.c.
4253
4254 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4255
4256         * Added the deleting of server's own ID cache entry to the
4257           silc_server_free function.  Free also everything else that
4258           has been allocated in silc_server_init.  The affected file
4259           is silcd/server.c.
4260
4261 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4262
4263         * Added functions silc_parse_version_string, silc_version_to_num,
4264           and silc_ske_parse_version to parse SILC protocol style version
4265           strings.  Affected files lib/silcutil/silcutil.[ch] and
4266           lib/silcske/silcske.[ch].
4267
4268         * Added new configuration params: version_protocol, version_software
4269           and version_software_vendor to specify what version the remote
4270           host must at least be to be able to connect to server.  The vendor
4271           string can be regex matched too.  Added new function
4272           silc_server_connection_allowed to check maximum number of allowed
4273           connections, and allowed versions for incoming connections.
4274           Affected files are silcd/server.c, server_util.[ch] and
4275           serverconfig.[ch].
4276
4277 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4278
4279         * Added preliminary support for signals in scheduler.  The
4280           signals we care about are now blocked always when the scheduler
4281           is locked.  This way we can synchronise the use of signal with
4282           scheduler.  It is guaranteed that when signal occurs the scheduler
4283           is not locked, and thus new tasks can be safely added to the
4284           scheduler.
4285
4286           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4287           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4288           Added new platform specific routines
4289           silc_schedule_internal_signals_[un]block and
4290           silc_schedule_internal_signal_[un]register.
4291
4292           Added new functions to SILC Schedule API:
4293           silc_schedule_signal_[un]register.  Each signal that application
4294           is going to use should be registered to the scheduler.
4295
4296           Affected files are lib/silcutil/silcschedule.[ch],
4297           lib/silcutil/*/silc*schedule.c.
4298
4299 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4300
4301         * Check for unauthenticated client and server in the
4302           silc_server_new_client and silc_server_new_server functions.
4303           Affected file silcd/packet_receive.c.
4304
4305         * Added function silc_string_is_ascii to check whether given
4306           string is 7-bit ASCII string.  Affected files are
4307           lib/silcutil/silcutil.[ch].
4308
4309         * Added function silc_id_is_valid_server_id into the
4310           silcd/serverid.c and added checking for valid Server ID's in
4311           silc_server_new_server.  The Server ID must always be based
4312           on the server's public IP address.
4313
4314         * Added logging of DISCONNECT packet message in the server.
4315           Affected file silcd/server.c.
4316
4317 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4318
4319         * Changed all library interfaces that use Global RNG to also
4320           accept SilcRng as argument.  Affected files are
4321           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4322           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4323           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4324           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4325           lib/silccrypt/rsa.c.
4326
4327         * Added function silc_pkcs_generate_key to the
4328           lib/silccrypt/silcpkcs.[ch] for applications so that they
4329           don't need to do pkcs->pkcs->init calls anymore.
4330
4331         * Remove SilcSocketConnection from the SFTP API since it really
4332           wasn't needed there.  The application has the information
4333           saved in its contexts anyway and the SFTP layer doesn't need
4334           know about it.  Affected files lib/silcsft/silcsftp.h and
4335           lib/silcsftp/sftp_[server/client].c.
4336
4337         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
4338           The SilcSimContext is not SilcSim.
4339
4340         * Fixed possible buffer overflows in silc_id_render in the
4341           lib/silcutil/silcutil.c.
4342
4343         * On EPOC the global crypto module lists are not used at all
4344           in the crypto library.  Added support for using the constant
4345           algorithm list on EPOC.  Affected files are
4346           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
4347           silcpkcs.c.
4348
4349         * Fixed the handling of third parameter of KICKED notify, since
4350           it was mistakenly updated to SILC Protocol 1.0 even though it
4351           is to be included in 1.1.  Since it is not in 1.0 it is not
4352           mandatory, and this fix now handles it only if it is provided,
4353           and it is not error if it is not provided.  Affected file
4354           lib/silcclient/client_notify.c.
4355
4356 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4357
4358         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
4359           client.  Affected file irssi/src/silc/core/client_ops.c.
4360
4361         * Merged with Irssi 0.8.4 from irssi.org CVS.
4362
4363 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4364
4365         * Check for valid socket connection in client entries before
4366           sending any messages.  Fixes a crash, but doesn't fix some
4367           other underlaying bug that is lurking there.  Affected
4368           file silcd/packet_send.c.
4369
4370 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
4371
4372         * $usermode, $cumode and $cumode_space expandos shouldn't do
4373           anything with non-SILC server records. Affected file
4374           irssi/src/silc/core/silc-expandos.c
4375
4376 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4377
4378         * Fixed the silc_net_check_[host/local]_by_sock to support
4379           IPv6 bound sockets as well.  Now they can return IPv6 addresses
4380           as well.  Affected file lib/silcutil/silcnet.c.
4381
4382         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
4383           Affected lib/silcutil/unix/silcunixnet.c.
4384
4385         * Fixed ID rendering (at least on some platforms, not NetBSD)
4386           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
4387
4388 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4389
4390         * Added silc_hash_public_key and silc_hash_public_key_compare
4391           functions to be used with SilcHashTable.  They can be used to
4392           hash public keys and compare public keys in hash table.  Affected
4393           file lib/silcutil/silcutil.[ch].
4394
4395         * Added support for specifying multiple public keys for Client
4396           connection section in server configuration file.  This makes it
4397           possible to accept multiple public keys from same host, or to
4398           make a section that accepts any incoming host, and have the
4399           accepted public keys listed in the section.
4400
4401           Added functions silc_sever_[find/get]_public_key,  added the
4402           support for this actually to all connection sections but only
4403           the Client section is currently allowed to specify multiple
4404           public keys.
4405
4406           Affected files are silcd/server.c, server_internal.h,
4407           command.c, protocol.c, server_util.[ch], packet_receive.c.
4408
4409 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4410
4411         * Merged Irssi 0.8.2 from irssi.org CVS.
4412
4413 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4414
4415         * If silc_debug is TRUE, also output standard logging messages
4416           to stderr with the debug output.
4417
4418           Made silc_log_reset_all() flushing all channels before returning.
4419           Also fixed some documentation typos.
4420
4421           Affected files are lib/silcutil/silclog.[ch].
4422
4423 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4424
4425         * Fixed the server to check correctly the amount of connections
4426           from single host, by checking also the type of the connection.
4427           Fixed also the comparison of number of connections and number
4428           of allowed connections.  Affected files are silcd/server.c,
4429           server_util.[ch].
4430
4431 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4432
4433         * Fixed the USERS command reply to save the user's mode on the
4434           channel as well.  Fixed JOIN command reply to check whether a
4435           client is on channel already and not join it twice.  Affected
4436           file lib/silcclient/command_reply.c.
4437
4438         * Added new file silc-expandos.c into irssi/silc/core/ to return
4439           various stuff for various signal for the statusbar etc. updating.
4440           Now Irssi SILC client prints channel user modes etc. on the
4441           statusbar.
4442
4443         * The user mode (like server/router operator changes) is now shown
4444           on the Irssi SILC client's statusbar.  The affected files are
4445           irssi/src/silc/core/client_ops.c, silc-expandos.c.
4446
4447 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4448
4449         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
4450           to SILC_SCHEDULE_[UN]LOCK macros.
4451
4452         * Added more error printing to logs in server code.  Affected
4453           files silcd/server.c and silcd/protocol.c.
4454
4455         * Fixed -S option parsing in Irssi SILC Client.  Affected file
4456           irssi/src/silc/core/silc-core.c.
4457
4458         * Added silc_buffer_alloc_size function.  Affected file is
4459           lib/silcutil/silcbuffer.h.
4460
4461 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4462
4463         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
4464           constants.  Affected files in
4465           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
4466           silccipher.[ch].
4467
4468         * Changed the internal SFTP Memory FS table to const.  Affected
4469           file lib/silcsftp/sftp_fs_memory.c.
4470
4471 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4472
4473         * Fixed the buffer formatting and unformatting routines to
4474           check the size of 64 bits types with sizeof().  Affected
4475           file is lib/silcutil/silcbuffmt.c.
4476
4477 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4478
4479         * Removed 0.6.x backwards support.
4480
4481 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4482
4483         * Changed all integer type names:
4484           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
4485           to avoid collisions with other libraries using same type names
4486           as we did.
4487
4488 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4489
4490         * Added `prefer_ipv6' argument to the functions
4491           silc_net_gethostbyname[_async].  If it is TRUE it will return
4492           IPv6 address over IPv4.  If FALSE IPv4 address is returned
4493           even if IPv6 address was found.  Affected files
4494           lib/silcutil/silcnet.[ch].
4495
4496         * Added support silc_net_create_connection[_async] to fallback
4497           to IPv4 address if IPv6 address could not be used (like if
4498           it doesn't work on a specific system).  Affected file in
4499           lib/silcutil/unix/silcunixnet.c.
4500
4501 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4502
4503         * Added silc_schedule_reinit function to do the enlarging
4504           of the max tasks handling capabilities of the scheduler.
4505           Affected files lib/silcutil/silcschedule.[ch].
4506
4507 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4508
4509         * Added automatic extern "C" { ... } for C++ compilers so the
4510           application does not need to define them.  Affected file
4511           includes/silcincludes.h.
4512
4513         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
4514           old name went against naming convention.  Applications now
4515           include "silcclient.h" instead of "clientlibincludes.h".
4516           Removed includes/clientlibincludes.h, it is redundant now.
4517
4518         * Renamed includes/version.h to silcversion.h.
4519
4520         * Added really preliminary support for OS/2 into the util
4521           library.  Only thread & mutex API is implemented, others
4522           are still to be implemented.  Created the lib/silcutil/os2/
4523           directory.  Created also file includes/silcos2.h.
4524
4525 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4526
4527         * Added preliminary BeOS support into the util library.
4528           Created lib/silcutil/beos/, and implemented all the needed
4529           functions to support SILC on BeOS.  Created also file
4530           includes/silcbeos.h.
4531
4532 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
4533
4534         * Added proper initializations to silc's irssi code, so it's
4535           now possible to load it as module.  Affected files
4536           irssi/src/silc/core/silc-core.c,
4537           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
4538
4539 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4540
4541         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
4542           the SILC tree.
4543
4544         * Fixed the silcdoc document generator to correct generate
4545           docs from all kinds of filenames.  Affected files are
4546           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
4547
4548         * ROBOdoc documented lib/silcutil/silcmemory.h.
4549           Added also new function silc_memdup.
4550
4551         * Removed lib/silcutil/silcbufutil.h and moved those routines
4552           to the lib/silcutil/silcbuffer.h.
4553
4554 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4555
4556         * Added `user_count' to the SilcChannelEntry which now tells the
4557           number of users on the channel.  The user count is now saved
4558           in normal server of global channels as well.  Affected files
4559           silcd/server.c, idlist.h, packet_receive.c and command.c.
4560
4561         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
4562           include file utility functions.
4563
4564         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
4565           instead of calling directly OS routines.
4566
4567         * Fixed NICK change printing in Irssi SILC Client. Fixed
4568           KICKED notify printing in Irssi SILC Client.  Affected file
4569           irssi/src/silc/core/client_ops.c.
4570
4571         * Fixed a NICK change bug in client library, to not recreate the
4572           client_entry->channels hash table everytime nick is changed.
4573           Affected file lib/silcclient/client.c.
4574
4575 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4576
4577         * ROBOdoc documented the lib/silcske/silcske.h, and improved
4578           the SKE interface a bit.
4579
4580         * Fixed padding problem in PKCS#1. The padding was not actually
4581           random since the random number generator was used incorrectly.
4582           This security bug affects only when encrypting with PKCS#1, and
4583           it is not currently used at all in SILC. SILC only use signing
4584           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
4585
4586 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4587
4588         * Rewrote the notify handling in Irssi SILC client to not call
4589           the events as signals.  Fixes problems with Perl support.
4590           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
4591
4592         * Send the auto-nicking NICK command in client library with
4593           little timeout after connecting.  The affected file is
4594           lib/silcclient/client.c.
4595
4596         * Added following new config file settings:
4597           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
4598           key_exchange_timeout, conn_auth_timeout, connections_max,
4599           links_max.
4600
4601           Implemented all the new config settings handling in the server.
4602
4603           Optimized the use of SKE Mutual flag usage.  Use it only
4604           if connection authentication protocol is not based in public
4605           key authentication.
4606
4607           Renamed all SilcServerConfigSection* to SilcServerConfig*
4608           to have a bit shorter names.
4609
4610           Affected files silcd/serverconfig.[ch], server.[ch], and
4611           protocol.[ch].
4612
4613 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4614
4615         * Cleaned up the listening sockets code, preparing for the rehash
4616           support.  Affected file is silcd/server.c.
4617
4618         * Fixed some output messages.  Affected files are silcd/silcd.c,
4619           and silcd/server.c.
4620
4621 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4622
4623         * Create lib/doc/silcrng_intro.html document as introduction
4624           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
4625
4626 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4627
4628         * Fixes to the silcd config template.  Affected file is
4629           doc/example_silcd.conf.in.
4630
4631         * Removed type casts from silc_calloc(), conforming to the
4632           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
4633
4634         * Removed param_name member from client, server, and router
4635           section structs, now identifying the param directly.
4636
4637           Added CONFIG_FREE_AUTH macro in config file parsing.
4638
4639           Affected files are silcd/serverconfig.[ch].
4640
4641 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
4642
4643         * Fixed command line parameter handling. All SILC initialization
4644           is now done in silc_core_init() which also fixes autoconnecting
4645           to servers.
4646
4647           Affected files irssi/src/silc/core/silc-core.c,
4648           irssi/src/fe-text/silc.c.
4649
4650 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4651
4652         * Added new configuration options and blocks:
4653           keepalive_secs, reconnect_count, reconnect_interval,
4654           reconnect_interval_max, reconnect_keep_trying and
4655           require_reverser_lookup.  Added ConnectionParam block, and
4656           implemented the connection parameters when connecting as
4657           initiator and when accepting connections as responder.
4658
4659           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
4660           whether given configuration value has been given already.
4661
4662           Affected files silcd/serverconfig.[c], server.[c].
4663
4664         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
4665           algorithm parts and created new file silcalgs.conf, that
4666           is now included from the example_silcd.conf.in.
4667
4668         * Optimized the silc_server_connect_to_router_second to take
4669           the connection configuration object from the SilcServerConnection
4670           object instead of finding it during the connecting phase.
4671           Added the configuration object to SilcServerConnection struct.
4672           Affected files silcd/server_internal.h, server.c.
4673
4674 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4675
4676         * Add the client on channel after it was resolved at the
4677           channel message receiving, and it was not already on the
4678           channel.  Affected file lib/silcclient/client_channel.c.
4679
4680 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4681
4682         * Fixed the public key authentication to allocate always the
4683           destination signature buffer instead of using static buffer.
4684           Affected file silcd/protocol.c.
4685
4686 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4687
4688         * Unified the serverconfig.[ch]'s helper function interface.
4689           Affected file silcd/serverconfig.[ch].
4690
4691         * Removed doc/example_silc.conf.in since it is redundant.
4692           The make install will now install irssi/silc.conf file.
4693
4694         * Added new Passphrase and Publickey authentication methods to
4695           config file, allowing both public key and passphrase based
4696           authentication to be set at the same time.
4697
4698           Added `prefer_passphrase_auth' setting in config file which
4699           can be used to set to prefer passwd auth if both passwd and
4700           public key is set.  If not set, public key is preferred.
4701           This has effect only when being initiator (responder will try
4702           both anyway).
4703
4704           Added support for authentication with passphrase and public key
4705           at the same time.  The passphrase is tried first always since
4706           it is faster to check.
4707
4708           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
4709
4710 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4711
4712         * Merged the new SILC Config library, with the server parsing
4713           support.  Read the header file silcconfig.h or the toolkit
4714           documentation for the news.  Affected files are
4715           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
4716           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
4717           silcd/protocol.c silcd/server.c silcd/server_backup.c
4718           silcd/serverconfig.[ch] silcd/silcd.c.
4719
4720         * Fixed some silclog documentation.  Affected file is
4721           lib/silcutil/silclog.h.
4722
4723 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4724
4725         * The silc_cipher_register, silc_hash_register and
4726           silc_hmac_register now checks if the object to be registered
4727           is registered already.  Affected files are
4728           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
4729
4730 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4731
4732         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
4733
4734 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4735
4736         * Allow zero length channel messages inside the Channel Message
4737           Payload.  Affected file lib/silccore/silcchannel.c.
4738
4739         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
4740           as header filenames.
4741
4742         * Removed lib/silcclient/README and created HTML file
4743           lib/silcclient/silcclient_using.html, which is now included
4744           as part of Toolkit documentation.
4745
4746 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4747
4748         * Fixed CUMODE_CHANGE notify handling to change the mode of
4749           correct client.  Affected file lib/silcclient/client_notify.c.
4750
4751         * Make silc_rng_alloc fail if it cannot allocate the sha1
4752           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
4753
4754 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4755
4756         * Fixed the file transfer's key agreement payload to include
4757           zero port also if the hostname is NULL because it could not
4758           be bound.
4759
4760           Call file transfer monitor callback now also if error occurs
4761           during key agreement protocol.
4762
4763           Changed the silc_client_file_send interface to return the
4764           SilcClientFileError instead of session id.  The session ID
4765           is returned into pointer provided as argument.
4766
4767           Check that the file exists locally before sending the
4768           file transfer request at all.
4769
4770           Affected file lib/silcclient/client_ftp.c, silcapi.h.
4771
4772         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
4773           error than can occur while key agreement protocol.  Affected
4774           file lib/silcclient/silcapi.h.
4775
4776         * Fixed the event_mode CMODE handler to not crash when mode
4777           is changed and +k mode is set in the channel.  Affected file
4778           irssi/src/silc/core/silc-channels.c.
4779
4780         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
4781           SILC_LOG_WARNING to give out Warning and not Error.  Affected
4782           file lib/silcutil/silclog.c.
4783
4784         * Fixed the channel message payload decryption in the function
4785           silc_channel_message_payload_decrypt to not modify the original
4786           buffer before it is verified that the message decrypted
4787           correctly.  Otherwise, next time it is called with correct
4788           channel key it won't encrypt since the payload is corrupted.
4789           Affected file lib/silccore/silcchannel.c.
4790
4791 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4792
4793         * Do not constantly resize the window.  A fix patch by cras.
4794           Affected file irssi/src/fe-text/screen.c.
4795
4796 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4797
4798         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
4799           Affected file lib/silcutil/silcnet.c.
4800
4801 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4802
4803         * Fixed a bug in hash table internal routine for traversing
4804           the table with foreach callback.  The current entry may
4805           become invalid in the callback but it was referenced after
4806           the callback returned.
4807
4808           Do not allow auto rehashing of hash table during the
4809           silc_hash_table_foreach operation, for same reasons as it is
4810           not allowed for SilcHashTableList.  Affected files are
4811           lib/silcutil/silchashtable.[ch].
4812
4813 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4814
4815         * Defined DLLAPI into silcincludes.h and silcwin32.h for
4816           Win32 DLL.  extern's in header files are now declared with
4817           DLLAPI.
4818
4819 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4820
4821         * Fixed private message handling.  It used some old code that
4822           caused the client to crash.  Affecte file is
4823           lib/silcclient/client_prvmsg.c.
4824
4825 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4826
4827         * Added function silc_client_add_channel,
4828           silc_client_replace_channel_id, and removed functions
4829           silc_client_new_channel_id and silc_idlist_get_channel_by_id
4830           from client library.
4831
4832         * Added cross reference of the joined channels to the
4833           SilcClientEntry, and changed the SilcChannelEntry's
4834           users list to SilcHashTable.  The affected files are
4835           lib/silcclient/idlist.[ch].
4836
4837         * Fixed a bug in hash table tarversing.  While the hash table
4838           is traversed with SilcHashTableList the table must not be
4839           rehashed.  It is now guaranteed that auto rehashable tables
4840           are not rehashed while tarversing the list.  Also defined that
4841           silc_hash_table_rehash must not be called while tarversing
4842           the table.  Added function silc_hash_table_list_reset that must
4843           be called after the tarversing is over.  The affected files are
4844           lib/silcutil/silchashtable.[ch].
4845
4846         * Changed all hash table traversing to call the new
4847           silc_hash_table_list_reset in server and in client library.
4848
4849         * Added function silc_client_on_channel to return the
4850           SilcChannelUser entry if the specified client entry is joined
4851           on the specified channel.  This is exported to application as
4852           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
4853
4854 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4855
4856         * Fixed founder regaining problem with JOIN command on normal
4857           server.  The notify for mode change must be sent always and
4858           not only if !cmd->pending.  Affected file silcd/command.c.
4859
4860         * Fixed the WHOWAS command's reply sending to support the
4861           lists correctly.  Affected file silcd/command.c.
4862
4863 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4864
4865         * When sending JOIN command to router for processing the
4866           sender's old command identifier was not saved back to the
4867           sender's command context, fixed now.  The affected file is
4868           silcd/command.c.
4869
4870         * Create the key in JOIN command of the router did not return
4871           the channel key, added check for this.  Affected file is
4872           silcd/command.c.
4873
4874         * Fixed a channel ID update bug in JOIN command reply.  Do
4875           not directly upgrade the ID but call the function
4876           silc_idlist_replace_channel_id if the ID was changed.
4877           Affected file silcd/command_reply.c.
4878
4879         * Fixed memory leaks from command calling if it would fail.
4880           Affected file silcd/command.c.
4881
4882 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4883
4884         * Applied patches from cras:
4885
4886           Memory leak fixes around libaries, irssi window resize fix,
4887           new silclist.h and silcdlist.h, all extern inline changed to
4888           static inline.
4889
4890         * Removed dotconf from lib/dotconf, not needed anymore.
4891
4892         * Removed TRQ from lib/trq, not needed anymore.
4893
4894         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
4895           with server connections.  Later this will be configurable
4896           in config file after new config file is done.  Affected file
4897           silcd/server.c.
4898
4899 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4900
4901         * Fixed a crash in server related to channel announcements.
4902           Affected file silcd/server.c.
4903
4904 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4905
4906         * Fixed memory leaks in silc_server_create_new_channel*
4907           functions.  Affected file silcd/server.c.
4908
4909         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
4910           which ID was changed.  This way the router will send the
4911           user list for the channel again, and server won't be in
4912           desync in some rare circumstances.  Affected file is
4913           silcd/packet_receive.c.
4914
4915 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4916
4917         * Check for NULL socket pointer in the function
4918           silc_server_packet_send_to_channel_real.  Affected file
4919           silcd/packet_send.c.
4920
4921         * Fixed the BAN notify handling to correctly remove ban
4922           list.  Affected file silcd/packet_receive.c.
4923
4924 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4925
4926         * Fixed some header addition to Toolkit distribution in
4927           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
4928
4929         * Added lib/silcclient/client_ops_example.h as an template
4930           file for application programmers to quickly start using
4931           the SilcClientOperation functions in their application.
4932           Updated the lib/silcclient/README as well to tell about this
4933           nice file made available.
4934
4935 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4936
4937         * Call silc_server_remove_from_channels when removing client
4938           entry when NO_SUCH_CLIENT_ID was received.  Affected file
4939           is silcd/command_reply.c.
4940
4941 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4942
4943         * Added server & router operator statistics updating.  Affected
4944           file silcd/packet_receive.c and silcd/command.c.
4945
4946         * Fixed the SERVER_SIGNOFF notify handling on normal server
4947           not to save the history information for clients.  Same was
4948           fixed earlier in remove_clients_by_server function, but not
4949           here.  Affected file silcd/packet_receive.c.
4950
4951         * Raised the default connection-retry count from 4 to 7 in
4952           server.  Affected file silcd/server.h.
4953
4954         * Cancel any possible reconnect timeouts when we start the
4955           key exchange.  Affected file silcd/server.c.
4956
4957         * Do not reconnect on connection failure when SCONNECT was
4958           given.  Affected files silcd/server.[ch].
4959
4960 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4961
4962         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
4963
4964         * Fixed the NICK command to always give the unformatted
4965           nickname to the one giving the NICK command.  If unformatted
4966           nickname is cached already it will be formatted and the
4967           local entry will always get the unformatted nickname.
4968           Affected file lib/silcclient/idlist.c.
4969
4970         * Fixed some double frees from client library commands.
4971           Affected file is lib/silcclient/command.c.
4972
4973         * Fixed CUMODE command in server to assure that no one can
4974           change founder's mode than the founder itself, there was a
4975           little bug.  Affected file silcd/command.c.
4976
4977 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4978
4979         * Removed the SilcClientCommandDestructor from the client
4980           libary, it is not needed anymore.  Affected files are
4981           lib/silcclient/silcapi.h, command[_reply].[ch],
4982           client_notify, idlist.c.
4983
4984         * Fixed GETKEY command to first resolve client, and then
4985           resolve the server only if the client was not found, instead
4986           of resolving both at the same time.  Affected file is
4987           lib/silcclient/command.c.
4988
4989         * Added silc_client_start_key_exchange_cb and lookup the
4990           remote hostname and IP address before starting the key
4991           exchange with server.  The affected file is
4992           lib/silcclient/client.c.
4993
4994         * The server's public key is now saved using the IP address
4995           of the server and not the servername for the filename.
4996           The hostname public key filename is checked as an fall back
4997           method if the IP address based filename is not found.
4998
4999           Fixed the GETKEY command to save the fetched server key
5000           in correct filename.
5001
5002           Print the remote server's hostname now when new key is
5003           received during connection process.  Affected file is
5004           irssi/src/silc/core/client_ops.c.
5005
5006         * Return always our own public key to the client if it asks
5007           for it with GETKEY command.  Affected file silcd/command.c.
5008
5009         * Removed the use_auto_addr variable from default config
5010           file since it was in wrong section.  Affected file is
5011           irssi/src/config.
5012
5013         * Fixed TOPIC_CHANGE notification to not route it when it
5014           was sent using silc_server_send_notify_to_channel function.
5015           Affected file silcd/command.c.
5016
5017         * Fixed silc_server_send_notify_kicked to send the kicker's
5018           Client ID also, it was missing.  Affected files are
5019           silcd/command.c, silcd/packet_send.[ch].
5020
5021 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5022
5023         * Do not save client history information in SERVER_SIGNOFF.
5024           Fixes the bug in normal server that it does not detect
5025           the client becoming valid after the server becomes back
5026           online.  Affected file silcd/server_util.c.
5027
5028         * Added `sock_error' field  into the SilcSocketConnection
5029           context.  When error occurs during socket operation (read
5030           or write) the error is saved.  Added also new function
5031           silc_socket_get_error to return human readable socket error
5032           message.  Affected files are lib/silcutil/silcsockconn.[ch],
5033           lib/silcutil/unix/silcunixsockconn.c, and
5034           lib/silcutil/win32/silcwin32sockconn.c.
5035
5036         * The server now prints the socket error message in the
5037           signoff for client.  Affected file silcd/server.c.
5038
5039         * Fixed the `created' channel information sending from router
5040           to server in JOIN command.  Checks now whether the channel
5041           really was created or not and set it according that.
5042
5043           Fixed the JOIN command to use the client entry's current
5044           ID during the joining procedure instead of the one it sent
5045           in the command (it is checked though), since it can change
5046           between the packet processing and command processing, and
5047           would just case unnecessary pain in the client end.  Affected
5048           file silcd/command.c.
5049
5050         * Fixed a channel key payload sending to use correct channel
5051           ID when the server was forced to change the channel's ID by
5052           router.  Router sent the key payload with the old Channel ID.
5053           Affected file silcd/packet_receive.c.
5054
5055 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5056
5057         * Call silc_server_save_channel_key only if the key payload
5058           was provided in the JOIN command's command reply.  Affected
5059           file silcd/command_reply.c.
5060
5061 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5062
5063         * Fixed silc_mp_sizeinbase to return the value correctly with
5064           MPI.  Affected file lib/silcmath/mp_mpi.c.
5065
5066         * Fixed the stop_server signal to correctly stop the scheduler
5067           and gracefully stop the server when SIGTERM or SIGINT signals
5068           are received.  Affected file silcd/silcd.c.
5069
5070 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5071
5072         * Simple handling of TERM and HUP signals. Also added some log
5073           flushing call around.  Affected file is
5074           silcd/silcd.c.
5075
5076         * Fixed small bugs in silclog.c. Now buffering output will take
5077           effect after 10 seconds since startup: This will ensure that
5078           no important startup messages are lost. Also output redirection
5079           will preserve original format ([Date] [Type] message).
5080           Affected file is lib/silcutil/silclog.c.
5081
5082         * Added two options to the config file, in the logging section:
5083           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
5084           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
5085
5086 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5087
5088         * Do not print the warning about log files not being initialized
5089           more than once to avoid excess logging.  Affected file is
5090           lib/silcutil/silclog.c.
5091
5092         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5093           the SIM copying in make install in Makefile.am.pre.
5094
5095 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5096
5097         * Rewritten silclog APIs. Globally interesting changes follows:
5098           silc_log_set_files() changed to silc_log_set_file().
5099           silc_log_set_callbacks() changed to silc_log_set_callback().
5100           ROBOdoc documented silclog header file.
5101           SilcLogCb now returns bool to wether inihibit the default
5102           handler or not (to keep the old behaviour return always TRUE).
5103           The new APIs should also fix the problem of the
5104           silcd_error.log file that was written in the current directory.
5105
5106           New features:
5107           Log files streams will remain opened after silc_log_set_file()
5108           call, means less CPU usage notably on high traffic servers.
5109           File streams are now full buffered, and flushed to the disk
5110           every 5 minutes, lesses HD activity and CPU usage.
5111           Messages can be redirected, allowing admins to configure
5112           one single logfile for all server messages.
5113           the silc_log_quick global variable to activate fast-logging.
5114           Affected files lib/silcutil/silclog.[ch]
5115
5116         * Changed some code to conform new silclog APIs. Affected
5117           files are doc/example_silcd.conf.in, silcd/server.c
5118           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5119           silcd/silcd.c.
5120
5121         * Fixed a memory leak that could occur in some situations.
5122           Affected file silcd/serverconfig.c.
5123
5124 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5125
5126         * Added the silc_client_del_client to remove the client from
5127           all channels as well.  Affected file lib/silcclient/idlist.c.
5128
5129         * Fixed the client library to correctly remove the client
5130           from all channels when the client entry is being destroyed.
5131           Affected file lib/silcclient/client_notify.c, command.c.
5132
5133         * Added auto-nicking support to the client library.  If the
5134           applicatio now sets client->nickname it will be sent to the
5135           server after connecting by the library.  This way for example
5136           SILCNICK (or IRCNICK) environment variables will have effect
5137           and always change the nickname automatically to whatever
5138           it is wanted.  Affected file lib/silcclient/client.[ch].
5139
5140         * Renamed silc_server_command_bad_chars to the
5141           silc_server_name_bad_chars and moved it to the
5142           silcd/server_util.[ch].  Added also new function
5143           silc_server_name_modify_bad to return nickname that
5144           includes bad characters as new nickname without those
5145           bad characters.  This check and modify is now used in
5146           silc_server_new_client when the username is initially set
5147           as nickname, so it must be checked to be valid nickname.
5148           Affected file silcd/packet_receive.c.
5149
5150         * The nickname length is now taken from the packet for real
5151           and not trusted to strlen() since it clearly can return
5152           wrong length for nickname including bad characters.  This
5153           also applies to channel names.  Affected file silcd/command.c.
5154
5155         * Removed the lib/silcsilm/modules directory.  Modules are now
5156           compiled into the lib/silcsim.  Fixed the copying of the
5157           modules to follow symbolic links in Makefile.am.pre.
5158
5159 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5160
5161         * Fixed silc_string_regexify list creation.  Fixes bugs with
5162           BAN and INVITE commands in server.  The affected file is
5163           lib/silcutil/unix/silcunixutil.c.
5164
5165 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5166
5167         * Removed the command destructor entirely from the server's
5168           command and command reply routines.  It is not needed, and
5169           its usage was buggy and caused crashes.  Affected files are
5170           silcd/command[_reply].[ch].
5171
5172 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5173
5174         * Cancel protocol and NULL sock->protocol if timeout
5175           occurred during protocol.  Affected file silcd/server.c.
5176
5177         * Cancel protocol timeouts always before calling the final
5178           callback, to assure that after final callback is called
5179           no other state will be called for the protocol anymore.
5180           Affected file silcd/protocol.c.
5181
5182         * Print error log if incoming connection configuration could
5183           not be found.  Affected file silcd/server.c.
5184
5185         * Fixed JOIN command to correctly save the founder mode
5186           to the client on normal SILC server, when the channel
5187           was created by the router.  Affected file silcd/command.c.
5188
5189         * Fixed LIST command (hopefully) to send correct reply
5190           packets.  Affected file silcd/command.c.
5191
5192 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5193
5194         * The silc_packet_receive_process now returns FALSE if the
5195           read data was invalid packet, and TRUE if it was ok.
5196
5197           The server now checks that if unauthenticated connection
5198           sends data and its processing fails the server will close
5199           the connection since it could be a malicious flooder.
5200
5201           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5202
5203 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5204
5205         * Make sure the warning about error opening a log file is
5206           printed only once and not everytime it fails (produces
5207           too much useless log).  Affected file lib/silcutil/silclog.c.
5208
5209 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5210
5211         * Made the silc_server_daemonise() function more readable.
5212           Affected file silcd/server.c.
5213
5214         * Pid file is now optional, the user may comment it out from
5215           the config file. Removed define SILC_SERVER_PID_FILE, we
5216           don't need a default any longer.  Affected file
5217           configure.in.pre, lib/Makefile.am.pre.
5218
5219         * Make some use of the pid file. The server now dies at startup
5220           if it detects a valid pid file on his path. The server would
5221           die anyway in this circumstance, because of the bind() failure.
5222           Affected file silcd/silcd.c.
5223
5224         * No longer compiling lib/dotconf.
5225
5226 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5227
5228         * Fixed JOIN command parsing not to crash.  Affected file
5229           lib/silcclient/command.c.
5230
5231         * Fied the NICK_CHANGE notify to add the new client entry
5232           even it is resolved.  This removes an <[unknown]> nick
5233           thingy bug in the client.  Affected file is
5234           lib/silcclient/client_notify.c.
5235
5236         * Do not try to allocate 0 bytes (efence does not like it)
5237           in lib/silccore/silccomand.c when encoding payload.
5238
5239         * Do not take IRCNICK as nickname in Irssi SILC client since
5240           it is not possible to set nickname before hand connecting
5241           the server (TODO has an entry about adding auto-nicking
5242           support).
5243
5244         * Changed the silc_server_command_pending to check whether
5245           there already exists an pending entry with the specified
5246           command, command identifier and pending callback.  This is
5247           to fix IDENTIFY and WHOIS related crashes that may register
5248           multiple pending commands with same identifier.  Affected
5249           file silcd/command.c.
5250
5251         * Fixed the server to reconnect to the router even if it
5252           was already reconnecting and EOF was received.  This to
5253           fix a possibility that the server wouldn't ever try to
5254           auto-reconnect to the router.  Affected file silcd/server.c.
5255
5256 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5257
5258         * Fixed the server's password authentication to use the
5259           length of the locally saved password, and not the one
5260           sent in the packet.  Affected file silcd/protocol.c.
5261
5262         * Fixed same password authentication problem in the
5263           Authentication Payload handling routines in
5264           lib/silccore/silcauth.c.
5265
5266         * Yet another password authentication problem fixed with
5267           channel password handling in silcd/command.c.
5268
5269 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5270
5271         * If first character of string in silc_parse_userfqdn is '@'
5272           then do not parse it.  Affected file is
5273           lib/silcutil/silcutil.c.
5274
5275 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5276
5277         * Fixed minor bug in IDENTIFY command reply sending, which
5278           caused various weird problems during JOIN when it was
5279           resolving names for users.  Affected file silcd/command.c.
5280
5281 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5282
5283         * Fixed the IDENTIFY command reply sending to chech better valid
5284           clients.  It was possible to send incomplete list of replies.
5285           Affected file silcd/command.c.
5286
5287 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5288
5289         * Added silc_client_command[s]_[un]register functions now to
5290           dynamically register the commands in client library.  Removed
5291           the static table of commands.  This allows the client library
5292           to call commands without causing the application to know about
5293           what commands library has called.
5294
5295           Removed the INFO command reply kludge to detect when the command
5296           was called by library.  Now library use its own command reply
5297           function for INFO command.
5298
5299           Added function silc_client_command_call to call a command.
5300           Application can use it to call command, not access the structure
5301           directly.
5302
5303           Now all commands that are sent by the client library (not
5304           explicitly sent by application) use own command reply functions.
5305
5306           Affected files around lib/silcclient/ and in
5307           irssi/src/silc/core/.
5308
5309         * Fixed the WHOIS command reply sending to chech better valid
5310           clients.  It was possible to send incomplete list of replies.
5311
5312           Fixed the WHOIS and IDENTIFY to send the request to router
5313           if normal server did not do it and did not find any results.
5314
5315           Affected file silcd/command.c.
5316
5317 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5318
5319         * Moved the internal data from SilcClient context into its
5320           own file, not accesible to application.  Affected files
5321           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5322           and other files in client library.
5323
5324 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5325
5326         * Added doc/examples installation target in Makefile.am.pre.
5327           A patch by salo.
5328
5329 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5330
5331         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
5332           commands the found client entry will be removed from the
5333           cache, after notifying application about the error.  Affected
5334           file lib/silcclient/command_reply.c.
5335
5336         * Changed the /MSG to check for exact nickname user gave, and
5337           not let `nick' match `nick@host' if it is only one found.  Now,
5338           user must type the exact nickname (like nick@host2) even if
5339           there are no more than one same nicks found.  This is to avoid
5340           a possibility of sending nickname to wrong nickname since
5341           `nick' could match `nick@host'.  Affected file is
5342           irssi/src/core/silc-servers.c.
5343
5344 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5345
5346         * Do not print "you are now server operator" or similar when
5347           giving /away command.  Affected files are
5348           irssi/src/silc/core/client_ops.c, silc-servers.h.
5349
5350         * Made the silc_server_command_pending_error_check to send
5351           the same command reply payload it received back to the
5352           original sender of the command.  This way all arguments
5353           that was received by the server will be received by the
5354           client too.  Affected file silcd/command.c.
5355
5356         * Added the silc_idcache_add to return the created cache entry
5357           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
5358
5359         * Add global clients to expire if they are not on any channel.
5360           This is because normal server will never know if they signoff
5361           if they are not on any channel.  The cache expiry will take
5362           case of these entries.  This is done by normal servers only.
5363           The affected files are silcd/command_reply.c,
5364           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
5365
5366         * If server receives invalid ID notification for WHOIS or
5367           IDENTIFY and the ID exists in the lists, it is removed.
5368           Affected file silcd/command_reply.c.
5369
5370         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
5371           in client then client entry that it matches is searched and
5372           the nickname is printed on the screen for user.  Affected
5373           file irssi/src/silc/core/client_ops.c.
5374
5375 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5376
5377         * Use cache entry expire time in the LIST command reply to
5378           purge old entries from the cache after the LIST command
5379           reply has been received.  This way we don't have non-existent
5380           entries in the cache for too long.  Affected file is
5381           silcd/command_reply.c.
5382
5383 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5384
5385         * If we are normal server, and we've not resolved client info
5386           in WHOIS or IDENTIFY from router, and it is global client,
5387           we'll check whether it is on some channel.  If it is not
5388           then we cannot be sure about its validity and will resolve it
5389           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
5390           file silcd/command.c.
5391
5392         * Search channel by name (if possible) rather than by ID
5393           in IDENTIFY command's command reply.  Affected file is
5394           silcd/command_reply.c.
5395
5396 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5397
5398         * Distribute to the channel passphrase in CMODE_CHANGE notify.
5399           Updated specs and implemented it.  Affected file silcd/command.c,
5400           silcd/packet_send.c and silcd/packet_receive.c.
5401
5402         * Implemented the <founder auth> payload handling in the JOIN
5403           command.  If provided all conditions for channel joining
5404           except requirement to provide correct passphrase can be
5405           overrided by the channel founder.  Updated the protocol specs.
5406           Affected file silcd/command.c.
5407
5408           Added support for founder auth in JOIN command in client
5409           library.  Fixed the parsing of the JOIN command now to support
5410           all options as they should be.  The affected file is
5411           lib/silcclient/command.c.
5412
5413         * Optimized the WHOIS and IDENTIFY commands to send the request
5414           to router only if it includes nicknames or other names.  If
5415           they include only IDs then check the local cache first before
5416           routing.  Affected file is silcd/command.c.
5417
5418         * Added channels topic announcements.  Affected file is
5419           silcd/packet_receive.c and silcd/server.c.
5420
5421         * Fixed the silc_server_send_notify_topic_set to really destine
5422           the packet to channel.  Affected file silcd/packet_send.c.
5423
5424         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
5425           library.  Affected file lib/silcclient/client_notify.c.
5426
5427         * Added UMODE announcements.  Affected file silcd/server.c.
5428
5429 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5430
5431         * Memory leak fixes in:
5432
5433           lib/silcutil/silcsockconn.c
5434           lib/silcske/silcske.c
5435           lib/silcske/groups.c
5436           lib/silccrypt/rsa.c
5437           lib/silccrypt/silcpkcs.c
5438           lib/silccore/silccommand.c
5439           lib/silccore/silcidcache.c
5440           silcd/idlist.c
5441           silcd/packet_send.c
5442           silcd/command.c
5443
5444         * ROBOdoc documented the lib/silcske/groups.h file and a
5445           bit changed the interface for better.
5446
5447 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5448
5449         * Update the client entry context in the ID cache after
5450           nick change.  Affected file lib/silcclient/command.c.
5451           Fixes the CUMODE command when regaining founder privileges,
5452           and a little WHOIS problem.
5453
5454         * Fixed silc_net_gethostbyname to correctly call the
5455           inet_ntop.  Affected file lib/silcutil/silcnet.c.
5456
5457 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5458
5459         * Added IPv6 support checking to the configure.in.pre, added
5460           also --enable-ipv6 option to override the check.  Affected
5461           file configure.in.pre.
5462
5463         * The silc_thread_create now calls the start function
5464           directly if threads support is not compiled in.  Removes
5465           ugly #ifdef's from generic code.  Affected files are
5466           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
5467
5468         * Added silc_net_gethostby[name/addr]_async to asynchronously
5469           resolve.  Affected files are lib/silcutil/silcnet.[ch].
5470
5471         * Added support for rendering IPv6 based server, client and
5472           channel IDs.  Affected file lib/silcutil/silcutil.c.
5473
5474         * Added support for creating IPv6 based server IDs.  Affected
5475           file is silcd/serverid.c.
5476
5477 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5478
5479         * Added silc_net_gethostby[addr/name] into the
5480           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
5481           routines.  Added silc_net_is_ip[4/6].  Affected file is
5482           lib/silcutil/unix/silcunixnet.c.  All routines that take
5483           address as argument now supports both IPv4 and IPv6 addresses.
5484
5485 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5486
5487         * Fixed LIST command reply sending in server.  Affected file
5488           silcd/command.c.
5489
5490         * Server now sends the kicker's client ID in the KICK notify
5491           to the kicked client.  Affected file silcd/command.c.
5492
5493         * The client library now parses the kickers client ID and
5494           UI displays it.  Affected files lib/silcclient/client_notify.c
5495           and irssi/src/silc/core/silc-channels.c, module-formats.c.
5496
5497         * Made all payload parsing function prototypes consistent.
5498           They all take now const unsigned char * and uint32 pair as
5499           the payload data instead of SilcBuffer.  Changes all around
5500           the source tree.  Other unsigned char* -> const unsigned char*
5501           changes around the tree as well.
5502
5503         * Optimized SFTP client and server packet sending not to
5504           allocate new buffer for each packet but to recycle the
5505           first allocated buffer.  Affected files are
5506           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
5507
5508         * Optimized the SFTP client to use SilcList instead of
5509           SilcDList for requests, because it is faster.  Affected file
5510           is lib/silcsftp/sftp_client.c.
5511
5512         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
5513           into lib/silccore/silcid.[ch].
5514
5515           Renamed silcpayload.[ch] into silcargument.[ch].
5516
5517 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5518
5519         * If client entry is deleted with active key agreement
5520           session, abort the session.
5521
5522           The silc_client_abort_key_agreement now calls the completion
5523           callback with new SILC_KEY_AGREEMENT_ABORTED status.
5524
5525           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
5526           idlist.c.
5527
5528 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5529
5530         * Don't use __restrict in older GCC's.  Affected file is
5531           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
5532
5533         * silc_net_localhost now attempts to reverse lookup the
5534           IP/hostname.  Affected file lib/silcutil/silcnet.c.
5535
5536         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
5537           command.  It can be used to gain founder privileges at
5538           the same time when joining the channel.
5539
5540           Defined that the SILC_NOTIFY_TYPE_KICKED send the
5541           kicker's client ID as well.  Updated protocol specs.
5542
5543           Defined that the server must send SILC_COMMAND_IDENTIFY
5544           command reply with error status to client who sent
5545           private message with invalid client ID.
5546
5547           Updated the protocol specification.
5548
5549         * Added silc_server_send_command_reply to send any
5550           command reply.  Affected file silcd/packet_send.[ch].
5551
5552         * Added silc_id_payload_encode_data to encode ID payload
5553           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
5554
5555         * The server now send IDENTIFY command reply with error
5556           status if client ID in private message is invalid.  Affected
5557           file silcd/packet_receive.c.
5558
5559         * Save the server key file with server's IP address in
5560           the filename instead of hostname.  The affected file is
5561           irssi/src/silc/core/client_ops.c.
5562
5563 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5564
5565         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
5566           A patch by Sunfall.
5567
5568         * Added libtool support for compiling shared objects in
5569           lib/silcsim.  Affected file configure.in.pre and
5570           lib/silcsim/Makefile.am.  Original patch by cras.
5571
5572 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5573
5574         * Pid file configuration, and server's config file fixes
5575           patch by toma.  Updated CREDITS file.
5576
5577 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5578
5579         * Fixed silc_client_channel_message to not try to decrypt
5580           the message twice if it resolved the destination client
5581           information.  This could cause of dropping one channel
5582           message.  Affected file lib/silcclient/client_channel.c.
5583
5584 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5585
5586         * Added silc_client_run_one into lib/silcclient/silcapi.h and
5587           lib/silcclient/client.c. This function is used when the SILC
5588           Client is run under some other scheduler, or event loop or
5589           main loop.  On GUI applications, for example this may be
5590           desired to used to run the client under the GUI application's
5591           main loop.  Typically the GUI application would register an
5592           idle task that calls this function multiple times in a second
5593           to quickly process the SILC specific data.
5594
5595 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5596
5597         * Fixed silc_server_drop() for dropping the supplementary
5598           groups as well, this could cause a security hole on some
5599           systems.
5600
5601 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5602
5603         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
5604           johnny.
5605
5606         * Write PID file after dropping privileges.  Added -F option
5607           to run server on foreground.  A patch by debolaz.
5608           Affected files silcd/server.c, silcd/silcd.c.
5609
5610         * Fixed MOTD to return the MOTD file server name.  Affected
5611           file silcd/command.c.
5612
5613         * Added INFO command reply handling to the Irssi SILC Client.
5614           Affected file irssi/src/silc/core/client_ops.c.
5615
5616 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5617
5618         * Fixed the silc_idcache_list_* routines to really support
5619           the dynamic list.  Fixes a crash.  Affected file is
5620           lib/silccore/silcidcache.c.
5621
5622         * Fixed the LIST command reply to really call LIST command's
5623           pending callbacks.  Affected file silcd/command_reply.c.
5624
5625 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5626
5627         * Update conn->local_entry->nickname after giving NICK
5628           command.  Affected file lib/silcclient/command.c.
5629
5630 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
5631
5632         * Added the [pid] option to the silcd configuration file
5633
5634           Affected files: serverconfig.[ch] and silcd.c
5635
5636 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5637
5638         * Save fingerprint in WHOIS command reply in server.
5639           Affected file silcd/command_reply.c.
5640
5641         * Fixed NICK commands pending callback registration.
5642           Affected file lib/silcclient/command.c.
5643
5644 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5645
5646         * Use ++server->cmd_ident when sending commands in server,
5647           instead of random number.  Affected file silcd/command.c.
5648
5649         * Fixed GETKEY command reply to call actually GETKEY pending
5650           command callbacks.  Affected file silcd/command_reply.c.
5651
5652         * A bit stricter check for nicknames.  Check for same nickname
5653           in NICK command also.  Affected file silcd/command.c.
5654
5655         * Do not call INFO command everytime client ID changes, only
5656           during first connecting.  Affected file lib/silcclient/client.c.
5657
5658         * Set the new nickname only after successful command reply for
5659           NICK command is returned by server.  Affected file
5660           lib/silcclient/command.c.
5661
5662         * Remove nicknames from nicklist during server_signoff notify.
5663           Should fix /NAMES bit more.  The affected file is
5664           irssi/src/silc/core/silc-channels.c.
5665
5666         * Added `fingerprint' field to the SilcIDListData in the
5667           silcd/idlist.h to hold the fingerprint of the client's
5668           public key.
5669
5670           Send the fingerprint of the client's public key in WHOIS
5671           command reply.
5672
5673           Affected files silcd/command.c, and silcd/idlist.[ch].
5674
5675         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
5676           create fingerprint from given data.
5677
5678         * Show the fingerprint of the client's public key in WHOIS.
5679           Affected files irssi/src/module-formats.[ch] and
5680           irssi/src/silc/core/client_ops.c.
5681
5682         * Format the multiple same nicknames also during JOIN and
5683           NICK_CHANGE notifys.  Affected file is
5684           lib/silcclient/client_notify.c.
5685
5686         * Do not print error on screen for invalid private message
5687           payload since it can come if someone is sending private
5688           messages with wrong key.  Affected file
5689           lib/silccore/silcprivate.c.
5690
5691         * Fixed multiple concurrent /PING crash.  Affected file
5692           lib/silcclient/command.c.
5693
5694         * Changed the wrong ID encoding.  All IP addresses must be
5695           in MSB first order in encoded format.  They were encoded
5696           wrong and was in LSB format.  Affected files are
5697           silcd/serverid.c, lib/silcutil/silcutil.c.
5698
5699         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
5700
5701         * Call the `connect' client operation through the scheduler
5702           in case of error.  Affected file lib/silcclient/client.c.
5703
5704         * Call the `failure' client operation even if the error
5705           occurred locally during a protocol.  Affected file is
5706           lib/silcclient/protocol.c.
5707
5708         * Added support of sending LIST command to router from normal
5709           server.  This way normal server can get list of all channels
5710           in the network too.  Fixed the channel list sending in the
5711           server too.  Affected files are silcd/command.c, and
5712           silcd/command_reply.[ch].
5713
5714         * Added silc_server_update_channels_by_server and
5715           silc_server_remove_channels_by_server.  They are used during
5716           disconnection of primary router and in backup router protocol.
5717           Affected file silcd/server_util.[ch], silcd/server.c and
5718           silcd/server_backup.c.
5719
5720         * Fixed channel adding to global list in IDENTIFY command
5721           reply in server.  Affected file silcd/command_reply.c.
5722
5723 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5724
5725         * If the incoming packet type is REKEY or REKEY_DONE process
5726           that packet always synchronously.  Fixes yet another MAC
5727           failed error on slow (dialup) connections.  Affected file
5728           lib/silcclient/client.c and silcd/server.c.
5729
5730 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5731
5732         * Call check_version SKE callback for initiator too.  Affected
5733           file lib/silcske/silcske.c.
5734
5735         * Implemented fix for security hole found in the SKE that was
5736           fixed in the specification few days back; the initiator's
5737           public key is now added to the HASH value computation.
5738           Added backwards support for the old way of doing it too, for
5739           old clients and old servers.  Affected file is
5740           lib/silcske/silcske.c.
5741
5742         * Enabled mutual authentication by default in SKE.  If initiator
5743           is not providing mutual authentication the responder will
5744           force it.  This will provide the proof of posession of the
5745           private key for responder.  The affected files are
5746           lib/silcclient/protocol.c and silcd/protocol.c.
5747
5748         * Do not cache anymore the server's public key during SKE.
5749           We do mutual authentication so the proof of posession of
5750           private key is done, and if the server is authenticated in
5751           conn auth protocol with public key we must have the public
5752           key already.  Affected file silcd/protocol.c.
5753
5754         * Added new global debug variable: silc_debug_hexdump.  If
5755           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
5756           file lib/silcutil/silclog.[ch].
5757
5758         * Fixed compilation warning due to char * -> const char *.
5759           Affected files lib/silcutil/silcnet.h, and
5760           lib/silccore/silcauth.[ch].
5761
5762 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5763
5764         * Fixed CMODE command when new channel key was created.  If
5765           the creation failed the old key was removed.  Next time giving
5766           same command would crash the server since the old key was
5767           freed already.  Affected file silcd/command.c.
5768
5769         * Fixed the silc_server_announce_get_channels to not crash
5770           on reconnect.  Affected file silcd/server.c.
5771
5772 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5773
5774         * Added silc_log_set_debug_string function to set a regex
5775           string to match for debug output.  Only the function names,
5776           or filenames matching the given debug string is actually
5777           printed.  This way it is possible to filter out those debug
5778           strings that user is not interested in.
5779
5780           Fixed a bug in silc_string_regexify.
5781
5782           Affected files lib/silcutil/silclog.[ch], and
5783           lib/silcutil/unix/silcunixutil.c.
5784
5785         * Changed the -d options in both server and Irssi SILC client
5786           to take the debug string as argument.  Affected files
5787           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
5788
5789 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5790
5791         * Added silc_hash_babbleprint to create a Bubble Babble
5792           Encoded fingerprint.  The encoding is developed by Antti
5793           Huima (draft-huima-babble-01.txt), and it creates human
5794           readable strings out of binary data.  Affected file
5795           lib/silccrypt/silchash.[ch].
5796
5797         * Print the babble print now in addition of fingerprint as well
5798           in Irssi SILC client.  Affected files are
5799           irssi/src/fe-common/silc/module-formats.[ch],
5800           irssi/src/fe-common/silc/core/client_ops.c.
5801
5802 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5803
5804         * Fixed a security problem found in SKE.  The initiator's
5805           public key too is now added to the HASH hash value creation
5806           which is signed by the responder to create the SIGN value.
5807           This will prevent anyone in the middle to lie to the responder
5808           about the initiator's public key.  If this is done now, the
5809           man in the middle will get caught.  Updated the protocol
5810           specification.
5811
5812 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5813
5814         * Better installation directory handling.  Configure module
5815           paths and other paths automatically to example_silc* files
5816           in doc/.  A patch by toma.
5817
5818         * Fixed compiler warning from MPI library, and from SILC RNG.
5819           A patch by johnny.
5820
5821         * Added SILC_SERVER_PID_FILE to define the pid file for server.
5822           It can be configured with ./configure.  A patch by toma.
5823
5824 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5825
5826         * Find correct make to use in prepare-clean.  A patch by
5827           toma.  Affected file prepare-clean.
5828
5829 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
5830
5831         * Added irssi variables use_auto_addr, auto_bind_ip,
5832           auto_bind_port and auto_public_ip.
5833
5834         * Changed the interface for silc_client_send_key_agreement
5835           in lib/silcclient/silcapi.h
5836
5837         Affected files:
5838
5839          irssi/src/silc/core/silc-core.c
5840          irssi/config
5841          lib/silcclient/silcapi.h
5842          irssi/src/silc/core/silc-channels.c
5843          lib/silcclient/client_keyagr.c
5844          irssi/docs/help/key
5845
5846 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5847
5848         * Added silc_pkcs_public_key_compare to compare two
5849           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
5850
5851         * Check that the client who set the founder mode on the
5852           channel is the same client that is giving the founder
5853           mode to itself.  It is done by comparing the saved public
5854           key (it is saved even in the authentication is passphrase).
5855           Affected file silcd/command.c.
5856
5857 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5858
5859         * Do not process packet for disconnected socket connection.
5860           Affected file lib/silccore/silcpacket.c.
5861
5862         * Process the DISCONNECT packet through scheduler in the
5863           client library.  Affected file lib/silcclient/client.c.
5864
5865         * Fixed the silc_client_packet_parse to not to increase
5866           the packet sequence number if the conn->sock and the
5867           current socket connection is not same.  This can happen
5868           for example during key agreement when the conn includes
5869           multiple socket connections (listeners).  Affected file
5870           lib/silcclient/client.c.
5871
5872         * The sender of the file transfer request now provides also
5873           the pointer (listener) for the key exchange protocol.  If
5874           the listener cannot be created then it sends empty key
5875           agreement and lets the receiver provide the listener.
5876
5877           Added `local_ip' and `local_port' arguments to the
5878           silc_client_file_send.  If they are provided they are used,
5879           if not then it will attempt to find local IP address, if
5880           not found or bind fails then the remote client will provide
5881           the listener.
5882
5883           Affected files are lib/silcclient/client_ftp.c and
5884           lib/silcclient/silcapi.h.
5885
5886         * Extended the FILE SEND command to support defining the
5887           local IP and port for key exchange listener.  They are
5888           optional.  Affected file irssi/src/silc/core/silc-servers.c.
5889
5890 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5891
5892         * Defined to WHOIS command reply the sending of fingerprint
5893           of the client's public key (if the proof of posession of the
5894           corresponding private key is verified by the server).
5895           Updated to the protocol specification.
5896
5897         * Added support of receiving the client's public key's
5898           fingerprint in command reply in client library.  Affected
5899           file is lib/silcclient/command_reply.c, and
5900           lib/silcclient/idlist.[ch].
5901
5902 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5903
5904         * Do not send over 128 chars long nickname to the server
5905           in NICK command.  Affected file lib/silcclient/command.c.
5906
5907         * Do not send over 256 chars long channel names to the server
5908           in JOIN command.  Affected file lib/silcclient/command.c.
5909
5910 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5911
5912         * Assure that silc_server_close_connection cannot be called
5913           twice for same socket context.  Affected file is
5914           silcd/server.c.
5915
5916 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5917
5918         * Send error message to application if opening file for
5919           writing during file transfer fails.  Affected file is
5920           lib/silcclient/client_ftp.c.
5921
5922           Remove all file transfer sessions for a client that we're
5923           removing from ID cache.
5924
5925           Affected file is lib/silcclient/client_ftp.c.
5926
5927         * Fixed silc_net_addr2bin to return correct address.  Affected
5928           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
5929
5930         * Fixed file transfer session removing on signoff notify.
5931           Affected file irssi/src/silc/core/silc-servers.c.
5932
5933         * Added the SilcClientFileError to be returned in the monitor
5934           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
5935           Affected file lib/silcclient/silcapi.h.
5936
5937 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5938
5939         * Fixed a crash in silc_client_ftp_free_sessions and
5940           silc_client_ftp_session_free_client.  Affected file
5941           lib/silcclient/client_ftp.c.
5942
5943         * Added `disabled' field in the SilcChannelEntry in the server
5944           to indicate if the server entry is disabled.  Affected file
5945           silcd/idlist.h, silcd/command[_reply].c.
5946
5947         * SILC server adds now /var/run/silcd.pid everytime it is
5948           started.  Affected file silcd/silcd.c.
5949
5950         * Added silc_server_packet_send_clients to send a packet to
5951           the provided table of client entries.  Affected file
5952           silcd/packet_send.[ch].
5953
5954         * Fixed a crash in client resolving in client_prvmsg.c in
5955           client library.  Affected file lib/silcclient/client_prvmsg.c.
5956
5957         * Do not actually remove the client directly from ID cache
5958           during SERVER_SIGNOFF, but invalidate it.  This way we
5959           preserve the WHOWAS info for the client.  Affected file
5960           silcd/server_util.c.
5961
5962         * Fixed SERVER_SIGNOFF notify handling in the server.  The
5963           server is now able to process incoming SERVER_SIGNOFF notify
5964           for a server that it doesn't even know about.  It will remove
5965           the clients provided in the notify.  Affected file
5966           silcd/packet_receive.c.
5967
5968         * Check for partial packet in data queue after every packet that
5969           was found from the queue.  Return and wait for more data if
5970           there is partial data in queue.  Affected file is
5971           lib/silccore/silcpacket.c.
5972
5973 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5974
5975         * Added SilcClietFileError enum to indicate error in
5976           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
5977           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
5978           Affected files lib/silcclient/silcapi.h and
5979           lib/silcclient/client_ftp.c.
5980
5981         * Check that newsize in silc_buffer_realloc is larger than
5982           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
5983
5984         * Added better monitor of file transfers.  It now monitors
5985           key agreement protocol during the file transfer too.  Added
5986           error reporting too.  Affected files
5987           irssi/src/silc/core/silc-servers.c,
5988           irssi/src/fe-common/silc/module-formats.[ch].
5989
5990         * Wrote a help file for FILE command.
5991
5992         * Added silc_rng_global_get_byte_fast to get not-so-secure
5993           random data as fast as possible.  Random data is read from
5994           /dev/urandom if available and from the SILC RNG if not
5995           available.  It is used in padding generation.  Affected file
5996           lib/silccrypt/silcrng.[ch].
5997
5998         * All packets in client library are now processed synchronously.
5999           Optimized packet processing a lot.  Affected file
6000           lib/silcclient/client.c.
6001
6002         * All server connection packets are processing synchronously
6003           now in server, to optimize packet processing.  Affected file
6004           silcd/server.c.
6005
6006         * Include files are installed now only in Toolkit distribution
6007           if make install is given.  Affected files: all Makefile.am's.
6008
6009 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6010
6011         * Assure that silc_client_notify_by_server_resolve does not
6012           resolve the client information multiple times.  If it cannot
6013           be found by the first it cannot be found at all.  Affected
6014           file lib/silcclient/client_notify.c.
6015
6016         * Fixed WHOWAS command reply calling.  Affected file
6017           lib/silcclient/command_reply.c.
6018
6019         * Removed all references to silc_idlist_get_client from the
6020           Irssi SILC client since that call is internal call used by
6021           the library.  The Irssi SILC client will use now client
6022           retrieval functions found in silcapi.h.
6023
6024         * Fixed a bug in resolving nickname info before sending
6025           private message.  It used freed memory.  Affected file
6026           irssi/src/silc/core/silc-servers.c.
6027
6028 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6029
6030         * Assure my_channels statistics cannot go negative in server.
6031           Affected files silcd/server.c, silcd/server_util.c.
6032
6033 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6034
6035         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
6036
6037 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6038
6039         * Win32 Toolkit changes.  Affected files
6040           win32/silc.dsw, win32/libsilc/libsilc.def,
6041           win32/libsilcclient/libsilc.def,
6042           lib/silcutil/silcutil.c, and
6043           lib/sftp/sftp_fs_memory.c.
6044
6045 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6046
6047         * Added silc_net_localip to return local host's IP address.
6048           Affected file lib/silcutil/silcnet.[ch].
6049
6050         * If key exchange or rekey protocol is active for a connection
6051           parse all packets syncronously since there might be packets
6052           in packet queue that we are not able to process without first
6053           processing packets before them.  Affected file silcd/server,
6054           lib/silcclient/client.c.
6055
6056         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
6057           whether library should continue processing the packet.
6058           Affected file lib/silccore/silcpacket.h.
6059
6060         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
6061           SilcSFTPMonitorData to SFTP server to monitor various
6062           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
6063           lib/silcsftp/sftp_server.c.
6064
6065         * Added silc_file_size to return file size.  Affected file
6066           lib/silcutil/silcutil.[ch].
6067
6068         * Implemented the file transfer support for the client library.
6069           Added preliminary support for simple client to client one-file
6070           transmission.  Affected file lib/silcclient/client_ftp.c,
6071           lib/silccilent/client.[ch].
6072
6073         * Added new local command FILE to the Irssi SILC Client.
6074           It is used to perform the file transfer.  It has subcommands
6075           SEND, RECEIVE, SHOW and CLOSE.  Affected files
6076           irssi/src/silc/core/client_ops.c,
6077           irssi/src/silc/core/silc-server.[ch].
6078
6079 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6080
6081         * Relay the SILC_PACKET_FTP in the server.  Affected files
6082           silcd/server.c and silcd/packet_receive.c.
6083
6084 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6085
6086         * Renamed silc_file_read and silc_file_write to functions
6087           silc_file_readfile and silc_file_writefile.  Added function
6088           silc_file_open and silc_file_close.  Affected files
6089           lib/silcutil/silcutil.[ch].
6090
6091 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6092
6093         * Resolve the client info when received private message or
6094           channel message for a client which nickname we don't know.
6095           Affected files lib/silcclient/client_prvmsg.c and
6096           lib/silcclient/client_channel.c.
6097
6098         * Do not crash in /KEY if client is not connected.  Affected
6099           file irssi/src/silc/core/silc-channels.c.
6100
6101         * Added SilcClientStatus field to the SilcClientEntry in the
6102           lib/silcclient/idlist.h.
6103
6104           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6105           is incomplete and is being resolved, it won't be resolved
6106           twice.
6107
6108           Make sure also that USERS command reply does not resolve
6109           twice information.  Affected file is
6110           lib/silcclient/command_reply.c.
6111
6112           Make sure that silc_client_get_clients_by_list does not
6113           resolve twice same information.
6114
6115         * Check for valid client->id in the silc_server_free_client_data.
6116           Affected file silcd/server.c.
6117
6118         * Fixed /GETKEY nick@server not to crash if the server entry
6119           is not found.  Affected file lib/silcclient/command.c.
6120
6121         * Fixed the silc_server_check_cmode_rights to check the
6122           requested modes correctly.  Affected file silcd/command.c.
6123
6124 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6125
6126         * Better checks for non-printable chars in nick added.
6127           Affected file silcd/command.c.
6128
6129 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6130
6131         * Call the silc_server_udpate_servers_by_server in the
6132           primary router that comes back online in the backup resuming
6133           protocol.  Otherwise it routes packets wrong.  Affected file
6134           silcd/server_util.[ch], silcd/server_backup.c.
6135
6136 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6137
6138         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6139           lib/silcutil/silcbuffmt.[ch].
6140
6141         * Redefined the SILC packet header to include the padding
6142           length.  Affected file lib/silccore/silcpacket.[ch].
6143
6144         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6145           length for maximum padding up to 128 bytes).  Affected
6146           file lib/silccore/silcpacket.h.
6147
6148         * Removed all backwards support for old 0.5.x MAC thingies.
6149           The SILC packet header change makes it impossible to be
6150           backwards compatible.
6151
6152         * Send the ENDING packet with timeout in the backup resuming
6153           protocol.  This is to assure that all routers has connected
6154           to the primary router.  Affected file silcd/server_backup.c.
6155
6156         * Changed the RNG to take the first IV from random data.  It
6157           used to take it from zero actually.  Changed the RNG also
6158           to use /dev/urandom during session.  /dev/random is used
6159           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6160
6161 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6162
6163         * Changed the SILC packet header to have the first two bytes
6164           (the packet length) encrypted.  Affected files aroung the
6165           code tree, lib/silccore/silcpacket.[ch].  Removed the
6166           SilcPacketCheckDecrypt callback.  It is not needed anymore
6167           since the silc_packet_receive_process will determine now
6168           whether the packet is normal or special.
6169
6170         * Implemented the unidirectional MAC keys.  Affected files
6171           lib/silcske/silcske.c, silcd/protocol.c and
6172           lib/silcclient/protocol.c.
6173
6174         * Implemented the packet sequence number to the MAC computation.
6175           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6176           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6177           lib/silcclient/protocol.c.
6178
6179 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6180
6181         * Allow backup router to announce servers.  All servers
6182           announced by backup router are added to the global list
6183           automatically.  Update hte server's socket to our primary
6184           router also when backup router announces a server.
6185           Affected file silcd/packet_receive.c.
6186
6187         * Do not update the client->router in the function
6188           silc_server_udpate_clients_by_server if the client is on
6189           global list.  We might fail to find any specific server
6190           for locally connected clients and local cell clients.  They
6191           should still use the `from' and not `to' as client->router.
6192           This fixes backup router resuming protocol.  Affected file
6193           silcd/server_util.c.
6194
6195         * Decrease channel statistics count only if the channel
6196           deletion worked.  Affected files are silcd/server.c and
6197           silcd/server_util.c.
6198
6199         * Added silc_server_update_servers_by_server to update origin
6200           of all server entries.  Used during backup router protocol.
6201           Affected files silcd/server_util.[ch], silcd/server.c. and
6202           silcd/backup_router.c.
6203
6204         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6205           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6206           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6207           lib/silccrypt/silchmac.c.
6208
6209 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6210
6211         * Assure that router cannot reroute the same channel message
6212           to the sender.  Affected file silcd/packet_receive.c.
6213
6214 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6215
6216         * Made better checks that the channel message is not sent
6217           to the router it came from.  Affected file is
6218           silcd/packet_send.c.  Fixed memory leak too.
6219
6220         * Announce informations for incoming router connection, but
6221           only after checking if it is replaced by backup router.
6222           Affected file silcd/packet_receive.c.
6223
6224 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6225
6226         * Fixed the backup resuming protocol to work in multiple
6227           router environment.  Affected file silcd/server_backup.c.
6228
6229         * Route packet only to one router in the function
6230           silc_server_packet_send_to_channel.  Affected file is
6231           silcd/packet_send.c.
6232
6233         * Fixed silc_server_send_notify_dest to set the broadcast
6234           flag.  Fixed the silc_server_send_notify_topic to actually
6235           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6236           Affected file silcd/packet_send.c.
6237
6238         * Changed the SFTP Filesystem interface.  Changed the
6239           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6240           the filesystem operation function.  The SilcSFTPFilesystem
6241           is now a context that is allocated by all filesystem allocation
6242           functions and it already includes the operations structure
6243           and filesystem specific context.  It is given as argument
6244           now to the silc_sftp_server_start.  This made the interface
6245           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6246           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6247
6248 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6249
6250         * Changed the backup router adding and getting interfaces
6251           in the server.  The router that will be replaced by the
6252           specified backup router is now sent as argument.  Affected
6253           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6254           silcd/server.c.
6255
6256         * Added silc_net_addr2bin_ne to return the binary form of
6257           the IP address in network byte order.  Affected files
6258           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6259
6260 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6261
6262         * Check for existing server ID in silc_server_new_server
6263           and in silc_server_connect_to_router_final and remove the
6264           old entry if it exists.  Affected file silcd/packet_receive.c,
6265           silcd/server.c.
6266
6267         * Send the channel message always to only one router, either
6268           in upstream or downstream.  Affected file is
6269           silcd/packet_send.c.
6270
6271 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6272
6273         * Wrote the definition of the backup resuming protocol to the
6274           protocol specification.
6275
6276         * Removed one redundant channel key generation from normal
6277           server during joining procedure.  Removed one redundant
6278           channel key sending from server to router during joining
6279           procedure.  Affected file silcd/command.c.
6280
6281         * Made minor bugfixes to the backup router resuming protocol.
6282           Affected file silcd/server_backup.c, server.c.
6283
6284 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6285
6286         * Added --disable-asm configuration option.  Affected files
6287           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6288           by salo.
6289
6290         * Implemented the backup resuming protocol that is used to
6291           resume the primary router position in the cell after the
6292           primary router comes back online.  Affected files
6293           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6294           and silcd/server_util.[ch].
6295
6296 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6297
6298         * Sleep two (2) seconds after sending QUIT command to server.
6299           Affected file lib/silcclient/command.c.
6300
6301         * Assure that if outgoing data buffer is pending do not force
6302           send any data.  Affected file silcd/packet_send.c.
6303
6304         * Assure that if outgoing data buffer is pending do not force
6305           send any data.  Affected file lib/silcclient/client.c.
6306
6307         * Implemented the backup router support when the primary router
6308           goes down.  The servers and routers can now use the backup
6309           router as new primary router without loosing connectivity.
6310
6311 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6312
6313         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6314           in the server to indicate disabled entry.  All data read
6315           from the connection will be ignored and no data is sent
6316           for entry that is disabled.  Affected files are
6317           silcd/idlist.h, silcd/server.c.
6318
6319 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6320
6321         * Created SFTP client and server test programs in the
6322           lib/silcsftp/tests directory.
6323
6324 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6325
6326         * Implemented memory filesystem (virtual filesystem) for
6327           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
6328           sftp_fs_memory.c.
6329
6330 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6331
6332         * Implemented the SFTP (SSH File Transfer Protocol) to the
6333           lib/silcsftp.  It includes SFTP client and SFTP server
6334           implementations.
6335
6336 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6337
6338         * Moved lib/silccore/silcprotocol.[ch] to the
6339           lib/silcutil library.
6340
6341         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
6342           take variable argument list pointer as argument.  Affected
6343           file lib/silcutil/silcbuffmt.[ch].
6344
6345         * Added silc_buffer_set function that is used to set data
6346           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
6347           Affected file lib/silcutil/silcbuffer.h.
6348
6349         * Changed various routines in the core library to use the new
6350           silc_buffer_set instead of allocating new buffer only for
6351           temporary purposes.
6352
6353         * Added 64-bit value formatting and unformatting support to the
6354           silc_buffer_[un]format routines.  Affected file is
6355           lib/silcutil/silcbuffmt.[ch].
6356
6357           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
6358           to includes/bitmove.h.
6359
6360 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6361
6362         * Fixed channel user mode saving in client library.  Affected
6363           file lib/silcclient/command[_reply].c.
6364
6365 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6366
6367         * Defined the file transfer to the SILC Protocol.  Added
6368           new packet type SILC_PACKET_FTP and defined File Transfer
6369           Payload.  The mandatory file transfer protocol is SFTP
6370           (SSH File Transfer Protocol).  Affected file in addition
6371           of the internet draft is lib/silccore/silcpacket.h.
6372
6373         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
6374           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
6375           is used as part of backup router protocol when the primary
6376           router of the cell is back online and wishes to resume
6377           the position as primary router.
6378
6379         * Redefined the MAC generation keys in the protocol.  The
6380           same key is not used anymore in both direction.  Both
6381           direction will now use different keys for sending and
6382           receiving.  This fixes a potential security flaw.  This
6383           change causes incompatibilities in the protocol.
6384
6385         * Redefined also the MAC computation from the packet.
6386           An packet sequence number is now added to the MAC
6387           computation.  This prevents possible replay attacks against
6388           the protocol.  This change too causes incompatibilities
6389           in the protocol.
6390
6391           Added `sequence' field to the SilcPacketContext to hold
6392           the current sequence number for the packet.
6393
6394 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6395
6396         * Added `created' field to the SilcIDListData in the file
6397           silcd/idlist.h to indicate the time when the entry was
6398           created.
6399
6400         * Added `created' field to the SilcChannelEntry too.  Affected
6401           file silcd/idlist.h.
6402
6403         * Added `creation_time' aguments to all the announcement functions
6404           in the server.  If it is provided then only the entries that
6405           was created after the provided time frame are actually
6406           announced.  Affected file silcd/server.[ch].
6407
6408         * The protocol says that the Channel ID's IP address must be
6409           based on the router's IP address.  Added check for this in
6410           the silc_server_new_channel when processing incoming New Channel
6411           Payload.  Affected file silcd/packet_receive.c.
6412
6413         * Print out the correct version with --version in SILC client.
6414           Affected file irssi/src/silc/core/silc-core.c.
6415
6416 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6417
6418         * Fixed WHOWAS command to check for completnes of the client
6419           entry always, not just when the command is coming from client.
6420           Affected file silcd/command.c.
6421
6422         * Added new function silc_server_packet_queue_purge to purge the
6423           outgoing data queue to the network.  After the function returns
6424           it is guaranteed that the outgoing packet queue is empty.
6425           Affected file silcd/packet_send.[ch].
6426
6427         * Purge the outgoing packet queue in the rekey protocol's final
6428           callback to assure that all rekey packets go to the network
6429           before quitting the protocol.  Affected file silcd/server.c.
6430
6431         * Added silc_client_packet_queue_parse as similar function as
6432           in server to the client library.  The affected file is
6433           lib/silcclient/client.c.
6434
6435 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6436
6437         * Splitted silcd/server.c and created silcd/server_util.[ch]
6438           for utility functions.
6439
6440         * Added new socket flag SILC_SF_DISABLED to indicate that the
6441           connection is open but nothing can be sent to or received from
6442           the connection.  Affected file lib/silcutil/silsockconn.[ch].
6443           The checking for disabled socket is checked in the low level
6444           silc_socket_write and silc_socket_read functions.
6445
6446 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6447
6448         * Allow only nicknames and channel names that fits into the
6449           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
6450
6451 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6452
6453         * When processing JOIN command reply in server check that if
6454           the channel exists in our global list we'll move it the local
6455           list.  Affected file silcd/command_reply.c.
6456
6457         * Fixed the check whether client is joined on the channel already
6458           in JOIN command.  Affected file lib/silcclient/command.c.
6459
6460         * Fixed the JOIN command reply to check whether the channel
6461           already exists.  Affected file lib/silcclient/command_reply.c.
6462
6463 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6464
6465         * Added silc_ske_status_string to map the SKE error numbers
6466           to readable strings.  The affected files are
6467           lib/silcske/silcske[_status].[ch].
6468
6469 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6470
6471         * Do not show the private channels on the WHOIS channel list
6472           as it is not allowed by the protocol.  The affected file is
6473           silcd/server.c.
6474
6475 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6476
6477         * Assure that the packet length digged from the actual packet
6478           is something sensible in the silc_packet_decrypt_rest_special
6479           in lib/silccrypt/silcpacket.c.
6480
6481         * Free and NULL the allocated pointer in silc_hmac_alloc if
6482           the HMAC allocation fails.  The affected file is
6483           lib/silccrypt/silchmac.c.
6484
6485         * Print the selected security properties to the log files in
6486           the server.  Affected file silcd/protocol.c.
6487
6488         * Add SKE's reference counter even if calling the completion
6489           callback manually.  Otherwise it goes negative, although it
6490           does not cause any problems.  The affected file is
6491           lib/silcske/silcske.c.
6492
6493         * Remove the client entry with short timeout after giving the
6494           KILL command.  Affected file lib/silcclient/command.c.
6495
6496         * Fixed to send error reply in WHOIS and IDENTIFY commands in
6497           case all found clients are already disconnected (WHOWAS would
6498           found them) in the server.  Affected file silcd/command.c.
6499
6500         * Update the last_receive (time of last data received) to be
6501           updated only when received private or channel message so that
6502           the idle time showed in WHOIS makes more sense.
6503
6504         * Added boolean field `valid' in to the SilcClientEntry in the
6505           client library to indicate whether the entry is valid or not.
6506           This fixes the nickname change bug on channel when changing
6507           the nickname to be same than the old (like nick to Nick) the
6508           nickname formatter doesn't set the new nick anymore to Nick@host.
6509           Affected file lib/silcclient/idlist.[ch].
6510
6511         * Now actually fixed the nickname changing on disconnection.
6512           Added new function silc_change_nick to the Irssi SILC Client.
6513           Affected file irssi/src/silc/core/client_ops.c,
6514           irssi/src/silc/core/silc-nicklist.[ch].
6515
6516 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6517
6518         * Check that the public key exists in the GETKEY command before
6519           trying to encode it.  Affected file silcd/command.c.
6520
6521         * Print some notifications on received public keys with GETKEY
6522           command in the Irssi SILC Client.  Affected files are
6523           irssi/src/fe-common/silc/module-formats.[ch],
6524           irssi/src/silc/core/client_ops.c.
6525
6526         * Use IDENTIFY command to resolve the server information in the
6527           GETKEY command instead of INFO command.  Affected file
6528           lib/silcclient/command.c.
6529
6530         * All command reply functions in the client library now calls
6531           the pending command reply callbacks even if an error has
6532           occurred.  The server has done this a long time and now it was
6533           time to move the client library to this as well.  Now all
6534           errors can be delivered back to the pending command reply
6535           callbacks if necessary.  Affected files are
6536           lib/silcclient/command[_reply].[ch].
6537
6538         * Change the nickname on disconnection back to the username
6539           because in reconnect the server will enforce it to it anyway.
6540           Affected file irssi/src/silc/core/silc-servers.c.
6541
6542         * Fixed a config file parsing bug in the Irssi SILC client.
6543           Affected file irssi/src/silc/core/clientconfig.c.
6544
6545 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6546
6547         * When printing the channel mode on JOIN, verify that the
6548           channel key and channel's HMAC are valid.  Affected file
6549           irssi/src/silc/core/client_ops.c.
6550
6551 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6552
6553         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
6554           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
6555           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
6556
6557         * Removed channel key rekey task deleting from the function
6558           silc_server_save_channel_key.  Affected file silcd/server.c.
6559           Added explicit timeout task context instead that is used to
6560           delete the task if we are registering a new task before the
6561           new task has elapsed.
6562
6563         * When channel key rekey occurs the client library now saves
6564           the old channel key for a short period of time (10 seconds) and
6565           is able to use it in case some is still sending channel
6566           messages encrypted with the old key after the rekey.  Affected
6567           file lib/silcclient/[idlist.h|client_channel.c].
6568
6569 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6570
6571         * Added check to the silc_server_new_id_real to not accept
6572           new ID if it is the sender's own ID.  Affected file is
6573           silcd/packet_receive.c.
6574
6575         * Assure that we do not announce ourself or the one we've
6576           sending our announcements when we're router and are announcing
6577           servers to our primary router.  Affected file silcd/server.c.
6578
6579         * Fixed silc_server_command_identify_check_client to assemble
6580           correct WHOIS packet.  It send corrupted WHOIS packet and
6581           caused problem with router to router connections.  Affected
6582           file silcd/command.c.
6583
6584           Fixed also silc_server_command_whois_check the same way
6585           as for the IDENTIFY command.
6586
6587         * Added new SilcIDListStatus to the server in the SilcIDListData
6588           structure.   The status now includes the current status of
6589           the entry (like registered, resolved etc.).  Affected file
6590           silcd/idlist.[ch].  Defined a bunch of different status types
6591           as well.  This replaced the old boolean registered field as well.
6592
6593           Added resolve_cmd_ident field to the SilcClientEntry structure
6594           too so that if the entry is for example being resolved so
6595           another command may attach to the same pending command reply
6596           without requiring to resolve the same entry again.  This concept
6597           should optimize the WHOIS and the IDENTIFY resolving under
6598           heavy load by taking away unnecessary resolving for entries
6599           that are being resolved already.
6600
6601           Added support for adding multiple pending commands for one
6602           command idenfier.  Affected file silcd/command[_reply].[ch].
6603
6604         * Fixed WHOIS and IDENTIFY save to remove the cache entry
6605           before deleting the data.  Otherwise the hash table will have
6606           freed data in comparison functions.  Affected file is
6607           silcd/command_reply.c.
6608
6609         * Fixed silc_idlist_replace_client_id to add the new entry to
6610           the cache with NULL nickname.  Otherwise there will be invalid
6611           memory as the nickname after the nickname is freed.  Affected
6612           file silcd/packet_receive.c.
6613
6614         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
6615           saved into wrong slots because the previous number of entries
6616           was not taken into account.  Affected file silcd/idlist.c.
6617           Fixed same thing in silc_idlist_get_clients_by_nickname too.
6618
6619         * If we are router and we receive JOIN notify to a channel that
6620           does not have any users then notified client is marked as the
6621           channel founder, as it is it.  The affected file is
6622           silcd/packet_receive.c
6623
6624         * Added to the extended hash table API's table_del_*ext functions
6625           the destructor as argument too, so that the caller can decide
6626           which destructor to use or whether to use destructor at all.
6627           Affected file lib/silcutil/silchashtable.[ch].
6628
6629         * Fixed ID Cache purging.  It actually deleted the entries from
6630           the hash table after the data was freed.  The hash table ended
6631           up comparing freed memory.  The affected file is
6632           lib/silccore/silcidcache.c.
6633
6634 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6635
6636         * Fixed Irssi SILC client's KILL command's HELP syntax.
6637
6638         * The USERS command now resolves the detailed user information
6639           if the userinfo field is missing.  Affected file is
6640           lib/silcclient/command_reply.c.
6641
6642         * Do not print error in silc_file_read if the read file does
6643           not exist.  Just silently return NULL.  Affected file is
6644           lib/silcutil/silcutil.c.
6645
6646         * Fixed the silc_log_output to not wine about NULL filename
6647           and to not create some bogus " " filename.  Affected file is
6648           lib/silcutil/silclog.c.
6649
6650 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6651
6652         * Fixed various printing bugs on the user interface in the
6653           Irssi SILC Client.  Minor changes that were forgotten from
6654           the release.
6655
6656 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6657
6658         * Fixed the configure.in.pre and the compilation and distribution
6659           environment to support the new autoconf 2.52.  That version is
6660           now required to compile the CVS trunk.
6661
6662 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6663
6664         * Renamed function silc_parse_nickname to silc_parse_userfqdn
6665           to generally parse user@fqdn format strings.  Affected file
6666           lib/silcutil/silcutil.c.
6667
6668         * Added nickname_format and nickname_force_format fields to the
6669           SilcClientParams structure.  The first one defines the format
6670           for the nicknames that the library will enforce if the receives
6671           multiple same nicknames.  The second one is boolean value and
6672           can be used to force the library to always enforce the format
6673           to the nicknames regardles whether there are multiple nicknames
6674           or not.  This configurable formatting was employed to flexibly
6675           support accessing multiple nicknames from the user interface.
6676           The userinterface can now set the nicknames to what ever format
6677           they prefer.  Affected file lib/silcclient/silcapi.h.
6678
6679           Added function silc_client_nickname_format to the file
6680           lib/silcclient/idlist.c.  It performs the nickname formatting.
6681
6682           Added new field `hostname´ to the SilcClientEntry context.
6683           It holds the hostname of the client.  Affected file is
6684           lib/silcclient/idlist.h.
6685
6686         * Irssi SILC Client sets the nicknames in nick@hostn format.
6687           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
6688           irssi/src/silc/core/silc-core.c.
6689
6690           The WHOIS printing now also shows both the real nickname and
6691           the formatted nickname so that user knows how to access the
6692           user if there are multiple same nicknames cached.  Affected
6693           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
6694           printing formatting too to take the hostname now as a separate
6695           argument.  The Affected file is
6696           irssi/src/fe-common/silc/modules-formats.[ch].
6697
6698         * Changed the silc_client_get_clients_local to accept the formatted
6699           nickname as argument.  It accepts the real nickname too but the
6700           formatted nickname can be used to find the true entry from
6701           multiple entries.  Affected file lib/silcclient/silcapi.h and
6702           lib/silcclient/idlist.c.
6703
6704         * Added nickname_format_parse field to the SilcClientParams.
6705           It is a callback function provided by the application to parse
6706           the nickname out of the formatted nickname string. The library
6707           calls it to get the nickname from the formatted string. Since
6708           the application generally knows better the format of the nickname
6709           string it parses it instead of the library, even though library
6710           encodes the formatted string.  If the callback function is not
6711           provided then the library will use the string as is.  The
6712           affected file is lib/silcclient/silcapi.h.
6713
6714         * All the nickname strings passed to the client library in
6715           commands are now expected to be formatted nickname strings.
6716           If the command does not support the formatted nickname string
6717           it will assume that the sent string is the actual nickname.
6718           Affected file lib/silcclient/command.c.
6719
6720 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6721
6722         * Added public key authentication support to OPER and SILCOPER
6723           commands in the client library.  Affected file is
6724           lib/silcclient/command.c.
6725
6726 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6727
6728         * Changed the get_auth_methdod client operation to be asynchronous.
6729           It can be async if the application resolves the authentication
6730           method from the server during the negotiation.  Added new
6731           SilcGetAuthMeth completion callback that the application will
6732           call after resolving the authentication method.
6733
6734           Added function silc_client_request_authentication_method that
6735           the application can use to resolve the authentication method
6736           from the server.  Added also SilcConnectionAuthRequest callback
6737           that the library will call after the server has replied.  The
6738           application can call this function if it does not know the
6739           current authentication method.
6740
6741           Affected files are lib/silcclient/client.c and
6742           lib/silcclient/silcapi.h.
6743
6744         * The Irssi SILC client now automatically resolves the authentication
6745           method incase any configuration information is not present (and
6746           currently there never is).  The affected file is
6747           irssi/src/silc/core/client_ops.c.
6748
6749         * Fixed public key authentication from the client library.
6750           Affected file lib/silcclient/protocol.c.  Changed also the
6751           protocol specification about the public key authentication in
6752           the connection authentication protocol.  The actual data to be
6753           signed is now computed with a hash function before signing.
6754
6755         * Fixed the public key authentication from the server as well.
6756           Affected file silcd/protocol.c.
6757
6758         * Removed the mlock()'s from the memory allocation routines.
6759           Affected file lib/silcutil/silcmemory.c.  The ./configure does
6760           not check anymore for the mlock().  Affected file is
6761           configure.in.pre.
6762
6763         * Fixed USERS command in server to allow the execution of the
6764           command for private and secret channels if the client sending
6765           the command is on the channel.  Affected file silcd/command.c.
6766
6767         * Fixed silc_client_get_clients_local to return the clients
6768           count correctly.  It could return wrong value.  Affected file
6769           lib/silcclient/idlist.c.
6770
6771 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6772
6773         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
6774           types.  The assembler optimizations seemed not to like 64-bit
6775           data types.  The assmebler optimizations thus are now enabled
6776           also for BSD systems as opposed to only enable them for Linux.
6777
6778         * Do not check for threads at all on BSD systems.  Affected
6779           file configure.in.pre.
6780
6781         * Removed -n and -h options from the Irssi SILC Client since
6782           they are not used in silc.
6783
6784         * Fixed the prime generation to assure that the first digit
6785           of the generated random number is not zero since our conversion
6786           routines does not like number strings that starts with zero
6787           digit.  If zero digit is seen the random number is regenerated.
6788           This caused some corrupted RSA keys when the zero first digit
6789           was met.  Affected file lib/silcmath/silcprimegen.c.
6790
6791 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6792
6793         * Fixed WIN32 configuration in the ./configure script.
6794           Fixed to include xti.h on environments that has it.
6795           Patches by Carsten Ilchmann and andrew.
6796
6797 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6798
6799         * Changed the silc_id_create_client_id to be collision
6800           resistant.  It is now assured that there cannot be created
6801           two same client ID's.  I suspect that some weird bugs in
6802           the server were actually caused by duplicate Client IDs.
6803           Affected file silcd/serverid.[ch].  A router receiving
6804           new ID now also assures and informs the sending server
6805           if the ID caused collision.
6806
6807         * Changed the silc_id_create_channel_id to also assure that
6808           there are no collisions.
6809
6810 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6811
6812         * Statement about ignoring the Mutual Authentication flag when
6813           performing rekey with PFS was a bit misleading.  It is ignored
6814           if it was set in the initial negotiation, it cannot be even
6815           set in the rekey.  Fixed in the ke-auth draft.  Started the
6816           new versions of the protocol drafts in the doc/.
6817
6818 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6819
6820         * Fixed a bug in silc_client_command_identify_save when saving
6821           new channel information.  The channel name was no duplicated
6822           and caused crash on exit.  Affected file is
6823           lib/silcclient/command_reply.c.
6824
6825 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6826
6827         * Fixed the getkey command handling in the server.  Send just
6828           empty OK reply to the sender if the key could not be fetched
6829           (but everything else was ok, like the key just was not available).
6830           Changed the public key parameter to optional in the protocol
6831           specs so that empty OK reply can be sent.  Affected file
6832           silcd/command.c.
6833
6834           Added a message to Irssi SILC client to tell to user if the
6835           server did not return a public key.
6836
6837 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6838
6839         * Fixed a channel key regeneration bug.  It registered new
6840           timeout tasks exponentially until all system resources were
6841           used.  Affected file silcd/server.c.
6842
6843 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6844
6845         * Added the SILC Document generator to the scripts/silcdoc.
6846           It can be used to generate the Toolkit Reference Manual out
6847           of the source tree.  Internally it will also use the RoboDoc
6848           generator now imported in util/robodoc.
6849
6850 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6851
6852         * Added couple of return's in rekey protocol if error orccurred
6853           during the protocol.  The execution must be terminated.
6854           Affected file silcd/protocol.c.  Also, terminate the protocol
6855           always with timeout.
6856
6857 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6858
6859         * The client's Client ID was created initally from the wrong
6860           nickname (it could have been in format nick@host) in the
6861           silc_server_new_client.  Affected file silcd/packet_receive.c
6862
6863 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6864
6865         * Added some SILC_LOG_ERROR's to various error conditions
6866           if client could not be added to ID cache.  Affected files
6867           silcd/packet_receive.c and silcd/server.c.
6868
6869         * When client's sock->user_data is freed, NULL also the
6870           client->router and client->connection pointers.  Added check
6871           for these pointers being NULL to various places around the
6872           code.  Affected file silcd/server.c.
6873
6874         * Added client->data.registered == TRUE checks to various
6875           places around the code to assure that unregistered client's
6876           are not handled when it is not allowed.  Affected file
6877           silcd/server.c.
6878
6879         * Added `bool registered' fields to all
6880           silc_idlist_[server|client]_get_* routines to indicate whether
6881           the fetched client needs to be registered or not.  Affected
6882           file silcd/idlist.[ch].
6883
6884         * Add your own entry as registered to the ID cache in the
6885           server.  Affected file server.c.
6886
6887         * Fixed a bug in silc_server_new_server.  The SilcServer was
6888           set as the new server's context instead of SilcServerEntry.
6889           This naturally caused some weird bugs.
6890
6891         * Added "updated" field the SilcChannelEntry which indicates
6892           the time since the channel entry was last accessed.  This
6893           can be used to determine whether it is necessary to
6894           announce the channel after backup resuming protocol.
6895           Affected files silcd/idlist.[ch].
6896
6897 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6898
6899         * Do not delete the channel rekey task when adding it
6900           for in silc_server_create_channel_key.
6901
6902         * Changed the silc_server_create_channel_key to return
6903           TRUE or FALSE to indicate the success of the channel key
6904           creation.
6905
6906 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6907
6908         * Fixed MSVC++ project files and added missing files to
6909           Makefiles under win32/.
6910
6911 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6912
6913         * Do not add TCP_NODELAY flag if the operating system
6914           does not have it defined.  Affected files are
6915           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6916
6917         * Fixed buffer overflow from Irssi SILC Client.  Affected
6918           file irssi/src/fe-common/core/themes.c.
6919
6920         * Fixed double free in client library in the file
6921           lib/silcclient/client.c when disconnecting from server.
6922
6923         * Applied double free patch from cras to Irssi SILC client.
6924           Affected files irssi/src/core/[modules/expandos].c
6925
6926         * Fixed the disconnection handling to Irssi SILC Client.
6927           The application must call silc_client_close_connection
6928           in ops->connect client operation in case of failure of
6929           the connection.  Affected file is
6930           irssi/src/silc/core/client_ops.c.
6931
6932         * Do not set sock->protocol to NULL in the function
6933           silc_client_close_connection after executing the protocol's
6934           final callback since the sock might not be valid anymore.
6935           Affected file lib/silcclient/client.c.
6936
6937 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6938
6939         * Do not enable SILC_THREADS if the linking with libpthread
6940           did not happen.  Affected file configure.in.pre.
6941
6942         * Added notion to protocol specification that server must
6943           verify the sent authentication payload with CMODE when
6944           setting the channel founder key.  Implemented it to the
6945           server.  Affected file silcd/command.c.
6946
6947 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6948
6949         * Added _EXTRA_DIST SILC distribution variable to the
6950           distributions file.  It is used to conditionally add extra
6951           files or directories to the specific distribution.  Affected
6952           files ./prepare, Makefile.am.pre and distributions.
6953
6954           Removed the `_' from the start of the distribution names.
6955           It is redundant.
6956
6957         * Added README.WIN32 for instructions to compile the Toolkit
6958           under WIN32.
6959
6960 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6961
6962         * Fixed a double free in disconnection in the server.  Affected
6963           file is silcd/server.c.
6964
6965         * Fixed the lib/silcske/groups.c to work now also with GMP
6966           MP library.  The string conversion did not work when using
6967           specific base and the base is indicated in the string as well.
6968
6969         * Created win32/ directory which now includes MSVC++ specific
6970           stuff so that toolkit (DLLs) may be compiled with MSVC++.
6971           It will appear only in the toolkit distribution
6972
6973 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6974
6975         * Changed the key material distribution function in case when
6976           the hash output is too short.  The data is now concatenated
6977           a bit differently than it used to.  Made the change to the
6978           SKE protocol specification.
6979
6980         * Added better GMP detection to configure.in.pre.  A patch
6981           by salo.
6982
6983 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6984
6985         * Fixed a minor bug in SKE that might cause some problem on
6986           some platforms.  Affected file lib/silcske/silcske.c.
6987
6988         * Added the cookie checking for initiator in the SKE.  It checks
6989           that the responder returns the sent cookie unmodified.  The
6990           affected file is lib/silcske/silcske.c.  Added new SKE
6991           error type INVALID_COOKIE that can be sent during the
6992           negotiation.  Fixed some memory leaks as well.
6993
6994         * Added the "invalid cookie" error message to Irssi SILC client's
6995           message formats.
6996
6997 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6998
6999         * Added `task_max' field to the SilcClientParams to indicate
7000           the maximum tasks the scheduler can handle.  If set to zero,
7001           default values are used.  Affected file lib/silcclient/silcapi.h.
7002
7003         * Fixed memory leaks in silc_client_close_connection.  Affected
7004           file lib/silcclient/client.c.
7005
7006         * Added silc_client_del_client_entry to client library to free
7007           all memory of given client entry.  Affected file is
7008           lib/silcclient/idlist.[ch].
7009
7010         * Added new functions silc_client_del_channel and
7011           silc_client_del_server to delete channel and server entries.
7012           Affected file lib/silcclient/[silcapi.h/idlist.c].
7013
7014         * Removed silc_client_del_client_by_id from silcapi.h.
7015
7016         * Fixed the INFO command to return the server's own info
7017           correctly when querying by Server ID.  Affected file is
7018           silcd/command.c.
7019
7020 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7021
7022         * Removed the non-blocking settings in WIN32 code in the
7023           silc_sock_[read/write] and added SleepEx instead.  Affected
7024           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
7025           of input data is now checked with FIONREAD and ioctlsocket.
7026
7027 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7028
7029         * Call silc_schedule_task_del_by_context in the
7030           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
7031           Affected file lib/silccore/silcprotocol.c.
7032
7033         * Call silc_protocol_cancel for active protocols in the
7034           silc_server_close_connection if the funtion
7035           silc_server_free_sock_user_data has not been called.
7036           Affected file silcd/server.c.
7037
7038         * Generic tasks cannot be deleted using the del_by_fd
7039           task deleting function since generic tasks does not match
7040           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
7041
7042         * Added a notion to SILCOPER help file that the SILCOPER works
7043           only on router server, not on normal server.
7044
7045 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7046
7047         * Added for WIN32 support for the new scheduler as well.
7048           Affected file lib/silcutil/win32/silcwin32schedule.c.
7049
7050         * Fixed the SHA1 implementation to work on various platforms.
7051
7052 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7053
7054         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
7055           API.  It is part of the scheduler now.  Everything else is
7056           as previously but some functions has changed their names.
7057           Checkout the lib/silcutil/silcschedule.h for the interface.
7058           Updated all applications to use the new interface.  Affected
7059           files are lib/silcutil/silcschedule.[ch].
7060
7061 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7062
7063         * Found a bug in the SKE implementation.  The HASH value,
7064           specified by the protocol, was not computed correctly.  The
7065           public key of the responder was not added to the computation
7066           even though it is mandatory.  Affected file lib/silcske/silcske.c.
7067           This unfortunately causes incompatibilities with older
7068           clients and servers.
7069
7070         * Added WIN32 specific network init and uninit functions:
7071           silc_net_win32_init and silc_net_win32_uninit to init and uninit
7072           the Winsock2.  Affected file lib/silcutil/silcnet.h and
7073           lib/silcutil/win32/silcwin32net.c.
7074
7075         * Set the socket always to nonblocking mode on WIN32 after
7076           reading data or writing data.  Affected file is
7077           lib/silcutil/win32/silcwin32sockconn.c.
7078
7079 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7080
7081         * Fixed various compilation problems under WIN32.  Affected
7082           files lib/silcutil/win32/silcwin32thread.c and
7083           lib/silcutil/win32/silcwin32schedule.c.
7084
7085         * Removed all _internal.h #includes from public header
7086           files.  Internal headers must never be included from
7087           public headers.
7088
7089           Removed also the lib/silcske/payload_internal.h file.
7090
7091         * All include files that may be needed (public and some others
7092           included by the public headers) by application developers are
7093           now copied to the ./includes directory.  It does not copy any
7094           internal headers.  Affected file Makefile.defines.pre and all
7095           Makefile.am's under lib/ and subdirs.
7096
7097 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7098
7099         * Do not change the ~/.silc directory's permissions automatically.
7100           Affected file irssi/src/silc/core/clientutil.c.
7101
7102 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7103
7104         * Do not cancel the protocol in silc_server_close_connection
7105           it might cause recursion.  Now cancelled in the function
7106           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7107
7108         * Fixed the silc_server_remove_clients_by_server to regenerate
7109           the channel keys correctly finally.  Added also new function
7110           silc_server_remove_clients_channels to actually do it.
7111           Affected file silcd/server.c.
7112
7113         * Fixed the silc_server_new_channel to not crash by giving
7114           wrong router to the new channel.  Affected file is
7115           silcd/packet_receive.c.
7116
7117 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7118
7119         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7120           which is given as argument to the silc_client_alloc now.
7121           It can be used to configure the client and set various parameters
7122           that affect the function of the client.
7123
7124         * The USERS command in server did not check whether the channel
7125           is private or secret.  Affected file silcd/command.c.
7126
7127         * Added new argument to the USERS command in protocol specification.
7128           The USERS command now can take the channel name as argument
7129           as well.  Added support for this in client and server and
7130           updated the protocol specs.
7131
7132         * Completed the GETKEY command in client. It can be now used
7133           to fetch also servers public key not only some clients.
7134           Affected files lib/silcclient/command[_reply].c.
7135
7136         * Added silc_client_get_server to return server entry by the
7137           server name.  Affected files lib/silcclient/silcapi.h and
7138           idlist.c.
7139
7140         * Redefined the IDENTIFY command in protocol specification to be
7141           more generic.  It now can be used to query information about
7142           any entity in the SILC Network, including clients, servers and
7143           channels.  The query may be based either the entity's name
7144           or the ID.  Added support for this in both client and server.
7145
7146           Affected files silcd/command.c and lib/silcclient/command.c
7147           and command_reply.c.
7148
7149         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7150           the _from_client and _from_server functions.  Affected file
7151           silcd/command.c.
7152
7153         * Added silc_client_get_channel_by_id_resolve to the file
7154           lib/silcclient/silcapi.h to resolve channel information by
7155           its ID.  Added also silc_client_get_channel_by_id that
7156           does not resolve it from the server.
7157
7158 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7159
7160         * Added SilcServerEntry context into the client library
7161           to represent one server.  The INFO command now allocates
7162           these to save the resolved server info.  For now on the
7163           client library will also keep information about servers,
7164           connected and resolved with INFO.
7165
7166           The INFO command now allocates the SilcServerEntry context
7167           and saves the server info there.  The COMMAND_REPLY in
7168           the INFO now returns the parameters to application in
7169           same order as defined in the protocol specification.
7170
7171           The entries are cached in the client->server_cache.
7172
7173         * The INFO command is now issued after received the Client ID
7174           from the server.  Affected file lib/silcclient/client.c.
7175
7176         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7177           to the application as the mode changer might be server.
7178           It is guaranteed that NULL is not returned anymore to the
7179           application.  Affected file lib/silcclient/client_notify.c.
7180
7181           The ID Type is now also passed to the application so that
7182           it can check whether the returned entry is SilcClientEntry
7183           or SilcServerEntry.
7184
7185           Added new function silc_client_get_server_by_id to return
7186           the server entry by ID.  Affected files are the
7187           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7188
7189         * Do not create the channel in the Irssi SILC Client when issuing
7190           the JOIN command but when received the sucessful JOIN command
7191           reply.  Otherwise the channel might get created even though we
7192           could not join it.  The Affected file is
7193           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7194
7195         * Fixed a channel joining bug in router.  The router must also
7196           check the channel modes, invite and ban lists etc. when serving
7197           the JOIN command sent by normal server.  Affected file is
7198           silcd/command.c.  The router now resolves the client's
7199           information from the server who sent the JOIN command if it
7200           does not know it, and processes the JOIN command only after
7201           that.
7202
7203         * Changed the SilcCommandCb to take new argument; void *context2.
7204           Affected file lib/silccore/silccommand.h
7205
7206           The second argument in the command callbacks in the server now
7207           includes the SilcServerCommandReplyContext if the command was
7208           called as pending command callback from the command reply.
7209           Otherwise it is NULL. When called as pending the status of the
7210           command reply will be checked and if it was erronous the
7211           error will be sent to the original sender of the command.
7212           This way the client always receives the error messages even
7213           though the server was actually the one who received the error
7214           when it resent the command to router, for example.  Affected
7215           files silcd/command[_reply].[ch].
7216
7217         * Fixed sending WHOWAS command's error message to client if
7218           the requested client could not be found.  It was missing.
7219           silcd/command.c.
7220
7221         * Changed the CMODE and CUMODE commands reply arguments in the
7222           protocol specification.  The Channel ID is now sent in both
7223           of the commands to identify the channel.  Implemented this
7224           new feature to the client and server.  Affected files
7225           lib/silcclient/command_reply.c and silcd/command.c.
7226
7227         * Made better checks for invite and ban lists in the JOIN
7228           command in server.  Affected file silcd/command.c.
7229
7230 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7231
7232         * The server now performs the incoming host IP/DNS lookup
7233           using the silc_socket_host_lookup and thus does not block
7234           the server anymore.  Affected file silcd/server.c.
7235
7236         * Completed the multi-thread support for SILC Scheduler in
7237           the lib/silcutil/silcschedule.c.
7238
7239         * Fixed the configure.in.pre to detect the pthread correctly
7240           on various systems.
7241
7242         * Fixed a deadlock in silc_task_queue_wakeup in the file
7243           lib/silcutil/silctask.c.
7244
7245 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7246
7247         * Added new function silc_schedule_wakeup that is used in
7248           multi-threaded environment to wakeup the main thread's
7249           schduler. It needs to be used when a thread adds a new task
7250           or removes a task from task queues. After waking up, the
7251           scheduler will detect the task queue changes. If threads
7252           support is not compiled in this function has no effect.
7253           Implemented the wakeup mechanism to both Unix and WIN32
7254           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7255           lib/silcutil/unix/silcunixschedule.c and the
7256           lib/silcutil/win32/silcwin32schedule.c.
7257
7258         * Added new function silc_task_queue_wakeup to wakeup the
7259           scheduler by the specified task queue.  Affected file
7260           lib/silcutil/silctask.[ch].
7261
7262         * The silc_socket_host_lookup_start now wakes up the scheduler
7263           after adding the timeout task.  Affected file is
7264           lib/silcutil/silcsockconn.c.
7265
7266         * The silc_socket_host_lookup is synchronous now if the threads
7267           support is not compiled in.  However, the callback is still
7268           called asyncronously through the scheduler, anyway.  Affected
7269           file lib/silcutil/silcsockconn.c.
7270
7271 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7272
7273         * Added new function silc_socket_host_lookup to perform
7274           asynchronous IP and FQDN lookups for the socket connection.
7275           Affected files lib/silcutil/silcsockconn.[ch].
7276
7277 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7278
7279         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7280           that may or may not compile the mutex support in.
7281
7282           Changed the silc_mutex_alloc interface. It allocates the
7283           mutex now to the sent pointer and returns TRUE or FALSE.
7284
7285           Affected file lib/silcutil/silcmutex.h.
7286
7287         * Wrote the SILC Task Queue interface to support multi-threads.
7288           Affected file lib/silcutil/silctask.[ch].
7289
7290         * Wrote the SILC Scheduler to support multi-threads.  Affected
7291           file lib/silcutil/silcschedule.c.
7292
7293 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7294
7295         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7296           in lib/silcutil/win32/.
7297
7298 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7299
7300         * Defined SILC Mutex API and SILC Thread API and implemented
7301           them for Unix.  Affected files are
7302           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7303           lib/silcutil/unix/silcunixmutex.c and
7304           lib/silcutil/unix/silcunixthread.c.
7305
7306 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7307
7308         * Fixed the silc_server_remove_clients_by_server's channel
7309           key re-generation.  The hash table handling was incorrect
7310           and would not work with many channels.  Affected file is
7311           silcd/server.c.
7312
7313         * Fixed some memory leaks around the server code.
7314
7315         * Rewrote the silc_server_get_users_on_channel to support IPv6
7316           based Client ID's.  Affected file silcd/server.c.
7317
7318         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7319           specification.  However, a separate document must be written
7320           to define the detailed signing procedure and the payload
7321           associated with the flag.  Defined the flag to the
7322           lib/silccore/silcchannel.h as well.
7323
7324 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7325
7326         * Changed the dynamic tables to static size tables in the
7327           lib/silccrypt/silchmac.c.
7328
7329         * Removed GCC dependencies from the code.  A patch by cras.
7330
7331 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7332
7333         * Do not show the error "Error receiving packet bla bla"
7334           in server if it really was not an error (-2 means that reading
7335           is pending).  Affected file silcd/server.c.
7336
7337 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7338
7339         * Fixed a possible crash in silc_server_remove_clients_by_server
7340           in silcd/server.c.  Fixed there also some memory leaks.
7341
7342         * Fixed the silc_idlist_replace_client_id.  It could replace
7343           wrong key in the hash table.  Affected file silcd/idlist.c.
7344
7345         * Do not check whether there are global users on the channel
7346           if the channel->global_users is FALSE.  Affected functions
7347           silc_server_remove_from_one_channel and
7348           silc_server_remove_from_channels in silcd/server.c.  Also,
7349           do not check if the removed client is local as we can be
7350           sure that global client was not removed from the channel
7351           and checking for global users is not needed.
7352
7353         * The silc_server_remove_clients_by_server now re-generates
7354           the channel keys correctly for those channels that had
7355           clients removed from them.  Affected file silcd/server.c.
7356
7357 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7358
7359         * Found the reason of random crashes in the server.  We weren't
7360           ignoring the SIGPIPE signal (which can be sent in write())
7361           and it crashed the server.  Affected file silcd/silcd.c.
7362
7363 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7364
7365         * Assure that sock->user_data is not NULL in the function
7366           silc_server_packet_send in silcd/packet_send.c.
7367
7368         * Disconnect the remote connection if it could not be added
7369           to any ID lists in the server.  The affected file is
7370           silcd/server.c.
7371
7372         * Check in silc_server_packet_send[_real/dest] that the
7373           socket is not disconnecting and ignore the data if it is.
7374           Affected file silcd/packet_send.c.
7375
7376         * Define inline to __inline on native WIN32 compilation.
7377           Affected file includes/silcwin32.h.
7378
7379         * Added some explicit type casts for inline code since MSVC
7380           require them.  Affected files lib/silcutil/silcbuffer.h,
7381           lib/trq/silcdlist.h and lib/trq/silclist.h.
7382
7383         * Print warning in log files from now on if the packet
7384           decryption fails.  Affected file silcd/server.c.
7385
7386 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7387
7388         * Changed the `say' client operation's interface to accept
7389           new `type' argument to indicate the type of the message sent
7390           by the library.  The application may filter the library's
7391           messages according the type.  The affected file is the
7392           lib/silcclient/silcapi.h.
7393
7394         * Added two new functions to lib/silcclient/silcapi.h:
7395           silc_client_del_client and silc_client_del_client_by_id.
7396           Affected file lib/silcclient/idlist.c.
7397
7398         * Moved the clientincludes.h from includes/ to silc/ and
7399           serverincludes.h from includes/ to silcd/.
7400
7401         * The modes for the CMODE and CUMODE are now passed as
7402           uint32 for application with COMMAND_REPLY.  The affected
7403           file is lib/silcclient/command_reply.c.
7404
7405 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7406
7407         * /WHOIS without arguments shows client's own information.
7408           Affected file lib/silcclient/command.c.
7409
7410         * Changed PING to not accept any arguments.  The specs
7411           says that client can ping only the connected server so
7412           requiring an argument is not needed.  Affected file is
7413           lib/silcclient/command.c.
7414
7415 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7416
7417         * Fixed a fatal bug in private message sending and reception
7418           encryption and decryption when using private message keys.
7419           The implementation was incorrect and did not follow the
7420           specification.  It causd that some of the message were
7421           lost since it did not use the sending and receiving keys
7422           as the protocol suggests.  This has been fixed and will cause
7423           incompatibilities with older clients when sending private
7424           message encrypted with private message keys.  Affected files
7425           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
7426           and various other in Irssi SILC Client.
7427
7428           Added `responder' boolean argument to the functions
7429           silc_client_add_private_message_key[_ske] to indicate when
7430           the key is added as responder or initiator of the key
7431           negotiation.
7432
7433 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7434
7435         * Removed the silc_ske_check_version function and created
7436           a SilcSKECheckVersion callback.  Added also a function
7437           silc_ske_set_callbacks that is now used to set all SKE
7438           callbacks.  The callback functions are not given to
7439           the SKE functions anymore, but this function is used to
7440           set the callbacks.
7441
7442         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
7443
7444         * Added `silc_version' argument to the silc_client_alloc
7445           to define the version of the application for the library.
7446           The library will use the version string to compare it
7447           against the remote host's (usually a server) version
7448           string.  Affected file lib/silcclient/silcapi.h
7449
7450         * Added the KE protocol context to Key Agreement context
7451           in client library so that we can abort the SKE if it
7452           is in process when we get timeout.  Affected file is
7453           lib/silcclient/client_keyagr.c.
7454
7455         * Do not resolve the client ID forever if it returns in the
7456           first time that such client does not exist.  This was done
7457           for example with private message.  Affected file is
7458           lib/silcclient/client_prvmsg.c.
7459
7460 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7461
7462         * Do not add regex.h for WIN32.  The affected file
7463           includes/silcincludes.h.
7464
7465         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
7466           not work yet 100%.  It generates the DLL's automatically
7467           when compiling with --with-win32 under cygwin.
7468
7469 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7470
7471         * lib/contrib/regex.c is not compiled on WIN32.
7472
7473         * Added silc_net_get_socket_opt function to the
7474           lib/silcutil/silcnet.h.
7475
7476         * Added includes/silcwin32.h for WIN32 specific includes
7477           and definitions.
7478
7479         * Do not use ptime structure or any of the posix process
7480           functions on WIN32 in lib/silccrypt/silrng.c.
7481
7482         * Added silc_gettimeofday to provide generic function
7483           for struct timeval on all platforms.  Added the function
7484           to lib/silcutil/silcutil.h.
7485
7486 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7487
7488         * Moved the lib/silccore/silcsockconn.[ch] to the utility
7489           library as they clearly belong there.  As a plus side we
7490           can make the actual socket connection routines platform
7491           specific.
7492
7493           Added also new generic function silc_socket_read and
7494           silc_socket_write (that used to be silc_packet_[read/write].
7495           The implementation of these are platform specific.
7496
7497         * Added WIN32 specific routines of silc_socket_[read/write]
7498           to lib/silcutil/win32/silcwin32sockconn.c.
7499
7500 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7501
7502         * Added preliminary support for native WIN32 compilation under
7503           cygwin (using the -mno-cygwin option for GCC) to the
7504           ./configure.in.pre.  The --with-win32 now prepares the
7505           compilation for native WIN32.
7506
7507         * Rewrote the SILC Scheduler interface in the file
7508           lib/silcutil/silcschedule.h.  The scheduler is now context
7509           based and does not have anymore any global static scheduler.
7510           Moved the Unix scheduler to the lib/silcutil/unix/ directory
7511           and created lib/silcutil/win32 directory for WIN32 based
7512           scheduler.
7513
7514         * Added Unix specific network routines to the
7515           lib/silcutil/unix/silcunixnet.c and the old
7516           lib/silcutil/silcnet.c includes now only generic routines.
7517
7518           Added WIN32 specific network routines to the
7519           lib/silcutil/win32/silcwin32net.c.
7520
7521         * Added Unix specific utility functions from the
7522           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
7523
7524         * Added WIN32 SILC Scheduler to the file
7525           lib/silcutil/win32/silcwin32schedule.c. The code is of course
7526           untested.
7527
7528 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7529
7530         * Do not handle JOIN notify in the server if the target client
7531           is not registered (idata->registered == FALSE).  The affected
7532           file is silcd/packet_receive.c.
7533
7534         * Update the nickrec->founder in event_cumode in the Irssi SILC
7535           client.  Affected file irssi/src/silc/core/silc-channels.c.
7536
7537         * Fixed the CUMODE_CHANGE notify handling in the server when
7538           server and router are announcing their clients on channels.
7539           Now the mode changes are saved and notified correctly.  The
7540           affected file is /silcd/packet_receive.c.
7541
7542         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
7543           They really did not replace the cache entry in the ID Cache.
7544           Now they do that.  Affected file silcd/idlist.c.
7545
7546         * Fixed the KICK notify handling in the Irssi SILC client to
7547           update the channel records so that the kicked client does not
7548           appear to be on the channel.  The affected file is
7549           irssi/src/silc/core/silc-channels.c.
7550
7551         * Always update the conn->current_channel when executing command
7552           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
7553
7554         * Fixed the KILL notify handling in Irssi SILC client to remove
7555           the killed client on all channels.
7556
7557 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7558
7559         * Fixed the silc_parse_command_line to remove extra spaces
7560           from the start and end of the arguments.  Affected file is
7561           lib/silcutil/silcutil.c.
7562
7563         * Cancel and free any active protocol in the function
7564           silc_server_close_connection.  Affected file silcd/server.c.
7565
7566         * Cancel and free any active protocol in the function
7567           silc_client_close_connction.  Affected file is
7568           lib/silcclient/client.c.
7569
7570         * Do not execute the KILL command for clients that are in
7571           history (ie. they are not in the network).  Affected file is
7572           silcd/command.c.
7573
7574         * Fixed KILL notify handling, client does not crash anymore.
7575           Affected file irssi/src/silc/core/silc-channels.c.
7576
7577         * Reduced the default packet buffer size from 2048 to 1024 in
7578           lib/silccore/silcpacket.c.
7579
7580         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
7581           counter to the SKE context that is incresed when the SKE library
7582           performs async operation outside the library.  If the outside
7583           process frees the SKE context and FREED status will be set
7584           and the library will detect after the sync operation that the
7585           libary is freed.  The affected files are
7586           lib/silcske/silcske[_status].[ch].
7587
7588         * Resolve the client entry information in the function
7589           silc_client_channel_message to assure that NULL pointer is not
7590           passed as client entry to the application. */
7591
7592         * Fixed the task timeout calculation to assure that there is
7593           never negative timeouts.  The affected file is
7594           lib/silcutil/silcschedule.c.
7595
7596         * Fixed the channel user mode notification sending in server.
7597           It was sent point-to-point to the router (or to server by router)
7598           but it needs to be destined to a channel.  The routines now
7599           supports sending the channel user mode notifys to the channels
7600           when announcing clients and channels.  Affected files are
7601           silcd/server.c and silcd/packet_receive.c.
7602
7603         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
7604           It did not actually replace the old channel entry in the cache.
7605           Affected file lib/silcclient/client_notify.c.
7606
7607 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7608
7609         * Fixed a possible crash in silc_packet_send_prepare.  It now
7610           assures always that there is enough space in the buffer and
7611           at the tail area of the buffer (for MAC).
7612
7613           Fixed the inbound buffer reallocation in silc_packet_read.
7614           It was old code and did not handle the reallocation correctly.
7615           Affected
7616
7617           The affected file is lib/silccore/silcpacket.c.
7618
7619         * Fixed buffer overflow in silc_parse_nickname in the file
7620           lib/silcutil/silcutil.c.
7621
7622 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7623
7624         * make install generates new server keys only if there is not
7625           keys already.
7626
7627 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7628
7629         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
7630           Added check that if the NOREPLY is set then we will not send
7631           the away message.  This avoids infinite loop of away messages
7632           if both clients are away.  The affected file is
7633           lib/silcclient/client_prvmsg.c.
7634
7635         * Fixed client crash if /NICK was given without arguments.
7636           Affected file lib/silcclient/command.c.
7637
7638         * Server does not send the invite list in INVITE command back
7639           to the client if the list was not altered.  Added this notion
7640           to the protocol spec as well.  Affected file silcd/command.c.
7641
7642           Fixed possible crash in INVITE command by checking the
7643           value of silc_server_get_client_route command.
7644
7645         * Fixed the INVITE notify type handling.  The arguments are now
7646           taken in correct order and client does not crash.  The affected
7647           file is irssi/src/silc/core/silc-channels.c.
7648
7649           Removed the "Inviting xxx to channel" message from the
7650           client library away and let the application handle it.
7651           Affected file lib/silcclient/command.c.  Added that message
7652           to Irssi SILC client's message formats.
7653
7654         * Fixed CMODE command crash in client.  It now checks the
7655           amount of arguments correctly and does not crash.  The affected
7656           file is lib/silcclient/command.c.
7657
7658         * Do not create new channel automatically in silc_channels_join
7659           but check whether the channel by that name already exists.
7660           Affected file irssi/silc/core/silc-channels.c.
7661
7662         * Do not send the SERVER_SIGNOFF to router if the disconnected
7663           entity was the router.  Affected file silcd/server.c.
7664
7665         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
7666           SILC client as it was missing from there.
7667
7668           Added the handling of the KICK notify to the Irssi SILC client
7669           as it was missing.  Added "you have been kicked" message to
7670           Irssi SILC client's message modules formats.
7671
7672           Added the handing of the KILL notify to the Irssi SILC client
7673           as it was missing.  Added the kill message module formats
7674           as well.
7675
7676           The affected file is irssi/src/silc/core/silc-channels.c.
7677
7678         * The router did not save the channel mode the server announced.
7679           Affected file silcd/packet_receive.c.
7680
7681         * Fixed a possible crash in INFO command in server.  If the
7682           server did not provide the server info it crashed.  Affected
7683           file silcd/command.c.
7684
7685 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7686
7687         * Fixed the GETKEY command in the server to check also the
7688           global list.  Otherwise the GETKEY would not work correctly
7689           in normal SILC server.  Affected file silcd/command.c.
7690
7691 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7692
7693         * Fixed GETKEY crash, it crashed if the command did not succseed.
7694
7695 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7696
7697         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
7698           is now real and not just an macro interface to GMP.
7699
7700           Removed the entire GMP from the source tree and imported new
7701           NSS MPI library instead.  Reason for removing GMP is that it is
7702           extremely large and compiles extremely slow.  The NSS MPI
7703           is only a few files and compiles in less than 10 seconds.
7704           The speed is also about the same as GMP.  The MPI is imported
7705           to lib/silcmath/mpi.
7706
7707           If the system has GMP installed we will still use the GMP.
7708           If it is not then the NSS MPI will be compiled.
7709
7710 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7711
7712         * Merged a long nickname (127 characters long) crash bugfix from
7713           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
7714
7715         * Merged a freed memory reference bugfix from Irssi CVS tree.
7716           Affected file irssi/src/core/commands.c.
7717
7718 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7719
7720         * Added the server's public key sving and verification to the
7721           server when performing the SKE.  This was missing and the
7722           remote server's (or router's) public key was accepted without
7723           checking whether we have it previously or trust it at all.
7724           Affected file silcd/protocol.c.
7725
7726 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7727
7728         * Check in the silc_server_timeout_remote if protocol is active
7729           and make sure that the protocol's final callback is called so
7730           that all memory if freed.  Affected file silcd/server.c.
7731
7732 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7733
7734         * silc_server_whois_send_reply crashed the server if the nickname
7735           was 127 characters long.  Affected file silcd/command.c.
7736
7737 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7738
7739         * Added sanity check to the silc_server_new_client. If the hostname
7740           is provided inside username then check that the provided hostname
7741           really is the same as the resolved one.  If the hostname was not
7742           resolved then check it from the public key.  Affected file is
7743           silcd/packet_receive.c.
7744
7745         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
7746           if the server disconnected us and the connection is not valid
7747           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
7748
7749         * Moved the silc_client_[chmode|chumode|chumode_char] away from
7750           the library to the lib/silcutil/silcutil.[ch].
7751
7752 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7753
7754         * Close log file after open.  Affected file
7755           lib/silcutil/silclog.c.
7756
7757         * Check whether sock == NULL in silc_client_send_packet and return
7758           if it is.  Affected file lib/silcclient/silcclient.c.
7759
7760         * Check rec->entry == NULL in the Irssi SILC Client before
7761           sending the channel message.  Affecte file is
7762           irssi/src/silc/core/silc-servers.c.
7763
7764 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7765
7766         * Merged a splitted window bugfix from Irssi CVS tree.  The
7767           affected file is irssi/src/fe-text/textbuffer-view.c.
7768
7769         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
7770           It did not print nickname.
7771
7772         * Improved the distributions system a bit.
7773
7774 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7775
7776         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
7777           irssi/src/fe-text/gui-window.c.
7778
7779         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
7780           to in-active server.  The affected file is
7781           irssi/src/silc/core/client_ops.c.
7782
7783         * Resolve the client in USERS command reply if the entry does
7784           not have username resolved.  The affected file is
7785           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
7786           command to WHOIS command to really resolve stuff.  The USERS
7787           is not used any more in any critical section so WHOIS can
7788           be used even though it might be slower than IDENTIFY.
7789
7790         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
7791           format.
7792
7793 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7794
7795         * Changed the protocol API a bit more consistent in the
7796           lib/silccore/silcprotocol.[ch].
7797
7798         * Changed the following headers to ROBODoc format:
7799
7800                 lib/silccore/silcpayload.h
7801                 lib/silccore/silcprotocol.h
7802                 lib/silccore/silcsockconn.h
7803
7804           All core library headers are now formatted.
7805
7806 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7807
7808         * Fixed a bug in Irssi SILC client; do not show that you are
7809           server/router operator if you really are not.  Affected file is
7810           irssi/src/silc/core/client_ops.c.
7811
7812         * Renamed silc_command_free_payload to silc_command_payload_free.
7813           Affected file lib/silccore/silccommand.h
7814
7815         * Added silcmath.h to include the prototoypes of various routines
7816           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
7817           silcprimegen.h.
7818
7819         * Changed the following headers to ROBODoc format:
7820
7821                 lib/silccore/silcchannel.h
7822                 lib/silccore/silccommand.h
7823                 lib/silccore/silcid.h
7824                 lib/silccore/silcidcache.h
7825                 lib/silccore/silcmode.h
7826                 lib/silccore/silcnotify.h
7827                 lib/silccore/silcpacket.h
7828                 lib/silcmath/silcmath.h
7829
7830 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7831
7832         * Added checking to the server code not to start the server if
7833           ciphers and stuff are not configured properly.  Affected files
7834           silcd/serverconfig.[h] and silcd/server.c.
7835
7836         * Changed the layout of the header files of the public interfaces
7837           in the SILC libraries.  The new layout supports ROBODoc
7838           documentation tool (and some others) so that it is easy to create
7839           a library reference manual.  All the other headers and source
7840           code must still follow the CodingStyle document.  Also source
7841           code must not include these ROBODoc stuffs, only the headers.
7842           Furthermore, all public interface headers must now be named
7843           by using `silc' prefix, example: silcapi.h, silccipher.h.
7844           Some files were renamed due to this.  All the other headers
7845           must not be used as public interfaces.  I will update the
7846           CodingStyle document later.  Changed following headers, so far:
7847
7848                 lib/silcclient/silcapi.h
7849                 lib/silccore/silcauth.h
7850                 lib/silccore/silcprivate.h
7851                 lib/silccrypt/silcdh.h
7852
7853 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7854
7855         * Updated TODO.
7856
7857         * Removed silc_client_packet_send_flush from the client library
7858           as it is not needed.  Affected file lib/silcclient/client.[ch].
7859
7860         * Added printing of message of unresolved authentication method
7861           to the Irssi SILC client.  Added it to the module formats.
7862           Removed the same message from the client library.
7863
7864 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7865
7866         * Added new distribution feature, DISTLABEL.  Every distribution
7867           can define own preprocessor label that can be used in the
7868           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
7869           file distributions, acconfig.h.pre and prepare.
7870
7871 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7872
7873         * Added Makefile.defines_int to include the actual definitions
7874           for Makefile.defines.in.  Tested the new distribution system,
7875           created distributions and tested installation.
7876
7877         * Added AWAY message printing to the Irssi SILC client.  Added
7878           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
7879
7880         * Added SCONNECT command to call the SILC's CONNECT command.
7881           Cannot use CONNECT directly since Irssi uses that internally.
7882           Affected file irssi/src/silc/core/silc-servers.c.
7883
7884           Added ACTION local command.  It is same as ME command but takes
7885           the channel as mandatory argument.
7886
7887           Rewrote some of the Irssi's help files to suite for SILC
7888           protocol.
7889
7890 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7891
7892         * Added Makefile.defines[.in] that should for now on be included
7893           in all Makefile.am file in the source tree.  That file includes
7894           all common compilation definitions for SILC source tree.
7895
7896 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7897
7898         * Minor changes to the ./prepare script to change the package
7899           name according the distribution name to the configure.in.
7900
7901 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7902
7903         * Created new distribution system.  Added file `distributions'
7904           that defines all the distributions that can be created out of
7905           the SILC source tree.  The ./prepare script now reads that
7906           file to determine how to prepare the distributions.  The
7907           first argument to the ./prepare is the name of the distribution
7908           and second is the version of the distribution.  If given
7909           without arguments it creates the default (toolkit) distribution
7910           with the default version (defined in ./prepare).
7911
7912           All Makefile.am files that are subject to the distributions
7913           are now named as Makefile.am.pre.  These are ./Makefile.am
7914           and lib/Makefile.am.  Others may be changed later.
7915
7916 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7917
7918         * Added invite list, ban list, some key management and connection
7919           error message printing to module formats in the Irssi SILC client.
7920
7921         * Added new silc_client_set_away_message to set the away message
7922           that is back to the person who sent private message.  The
7923           affected file lib/silcclient/silcapi.h and the
7924           lib/silcclient/client_prvmsg.c.
7925
7926 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7927
7928         * Fixed the private message sending in the Irssi SILC client,
7929           added local command KEY to the Irssi SILC client.
7930
7931           Added key management and key agreement message formats to the
7932           irssi/src/fe-common/silc/module-formats.[ch].
7933
7934           Added USERS (alias WHO) printing, server/router operator
7935           indication and LIST command printing to the module formats.
7936
7937 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7938
7939         * Fixed channel joining notify handling, cumode notify handling
7940           from Irssi SILC client.
7941
7942         * Added SILC specific module-formats to the Irssi SILC client so
7943           that SILC specific message hilighting, colors etc is possible.
7944           Affected file irssi/src/fe-common/silc/module-formats.[ch].
7945
7946           Added channel mode, channel user mode, actions, notices,
7947           whois and whowas printing to the the module-formats.c.
7948
7949         * Fixed a bug in channel deletion in the server.  The channel
7950           is not left to the cache even if the channel founder auth mode
7951           is set when there are no users anymore on the channel.  Affected
7952           file silcd/server.c.
7953
7954         * The silc_net_localhost now resolves the entire hostname including
7955           the domain name.  Affected file lib/silcutil/silcnet.c.
7956
7957 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7958
7959         * Changed the ask_passphrase client operation to be ascynchronous.
7960           It has now a completion callback and a context that the
7961           application must call after it has got the passphrase from
7962           the user.  Affected files lib/silcclient/silcapi.h,
7963           lib/silcclient/protocol.c, lib/silcclient/command.c and
7964           silc/client_ops.c.
7965
7966           Added SilcAskPassphrase callback that the application calls
7967           to deliver the passphrase to the library.
7968
7969         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
7970           The public key verification and especially a certificate
7971           verification is asynchronous procedure.
7972
7973           Added new SILC_SKE_STATUS_PENDING status to indicate the
7974           request is pending and a callback will be called to finalize
7975           the request.
7976
7977           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
7978           indicate that remote end did not send its public key (or
7979           certificate), even though we require it.  Added check for this
7980           condition in the SKE.  This was a security bug, now fixed.
7981
7982           Defined new SilcSKEVerifyCbCompletion callback that is called
7983           when the verification process is completed.
7984
7985           The affected files lib/silcske/silcske_status.h and
7986           lib/silcske/silcske.[ch].
7987
7988         * Changed the verify_public_key client operation to be async
7989           as well.  Defined SilcVerifyPublicKey callback that is used to
7990           indicate the success of the public key verification process.
7991
7992           Changed the server and client to use the new async client
7993           operations.
7994
7995         * Changed the Irssi SILC client's internal scheduler to be called
7996           twice as many times as it used to be.  As a result the client
7997           should be a bit faster now.  Affected file is
7998           irssi/src/silc/core/silc-core.c.
7999
8000         * Added support to Irssi SILC client of asynchronous public key
8001           verification and passphrase inquiry.  Affected file is
8002           irssi/src/silc/core/silc-core.c.
8003
8004 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8005
8006         * Do not say "You have left channel %s" in client library.
8007           Moved it to the application.  Affected files are
8008           lib/silcclient/command.c and silc/client_ops.c.
8009
8010         * Fixed silc_client_get_clients.  Command context was not
8011           duplicated and was freed memory in the callback.  Affected
8012           file lib/silcclient/idlist.c.
8013
8014         * Do not say "you are now talking..." on JOIN command in the
8015           client library.  The appliation must handle it.
8016
8017         * Do not say ".. changed topic to" in command reply in the
8018           client libary.  The application must handle it.
8019
8020         * Fixed TOPIC command sending in the client library.
8021
8022         * Fixed a memory leak in silc_client_command_free in the file
8023           lib/silcclient/command.c.
8024
8025 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8026
8027         * Imported a modified version of Irssi client to the source tree.
8028           The Irssi will be used to create a new client called
8029           Irssi SILC.  Imported to irssi/.
8030
8031           Added silc_core_init_finish function to the Irssi.  Affected
8032           file irssi/configure.in.
8033
8034           A lot changes in the Makefile.ams around the irssi tree.
8035
8036 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8037
8038         * Do not rehash if the new size is same as the old size of the
8039           hash table, in the silc_hash_table_rehash*.  The affected file
8040           lib/silcutil/silchashtable.c.
8041
8042         * Replaced hash_table_del_by_context calls from the server
8043           (when channel->user_list and client->channels) to the
8044           hash_table_del as it is sufficient and faster.
8045
8046 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8047
8048         * Added silc_hash_table_list, silc_hash_table_get and the
8049           SilcHashTableList structure to provide an alternative way to
8050           traverse the hash table.  The affected files are
8051           lib/silcutil/silchashtable.[ch].
8052
8053         * Changed the server's idlist routines to use the hash table
8054           routines to optimize the code.
8055
8056 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8057
8058         * Replaced the client entry's `channel' list and channel entry's
8059           `user_list' list to hash tables for optimized lookup.  Changed
8060           the code to use the hash table interface around the code.
8061           Affected file lib/silcd/idlist.[ch].
8062
8063         * Added `auto_rehash' boolean argument to the function
8064           silc_hash_table_alloc to indicate whether the hash table should
8065           auto-rehash when it thinks is appropriate time.  It will
8066           increase the hash table size if the there is twice as much
8067           entries in the table than the size of the table, and will
8068           decrease the size if there are twice as less entries than
8069           the size of the table.
8070
8071 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8072
8073         * Fixed silc_xxx_get_supported to not crash at some circumstances.
8074
8075 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8076
8077         * silc_idcache_purge_by_context deletes the entry now by context
8078           as it is supposed to do.  Affected file lib/silccore/idcache.c.
8079
8080         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
8081           client is not anymore valid (WHOWAS givens the info) and not
8082           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
8083
8084 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8085
8086         * Removed the `data' and `data_len' arguments from the ID Cache
8087           interfaces and added `name' argument.  ID Cache does not handle
8088           anymore the binary data only a names associated with given ID.
8089
8090         * When hashing a Client ID with silc_hash_id the entire ID is
8091           not hashed anymore, instead only the hash of the Client ID is
8092           hashed.  This way we can access the Client ID from the cache
8093           with Client ID but with the hash of the ID (which is a hash of
8094           the nickname) as well without any difference in performance.
8095
8096           Added also silc_idcache_find_by_id_one_ext to do one on one
8097           searching when we have the actual ID.  Added also function
8098           silc_hash_client_id_compare.  The affected files are
8099           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8100
8101         * When hashing the name associated with a ID it is always done
8102           in lowercase.  This way we can access the cache without worrying
8103           about case-sensitivity, even though, for example nicknames are
8104           case sensitive.
8105
8106         * Fixed a bug in server with channel message sending.  It put
8107           wrong ID type as destination ID.  The affected file
8108           silcd/packet_send.c.
8109
8110         * silc_idcache_del_by_context now deletes from all hash tables
8111           by context.  Affected file lib/silccore/idcache.c.
8112
8113 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8114
8115         * Changed the client library to use the new ID Cache interface.
8116           Changes around the source tree.
8117
8118         * Added silc_hash_table_rehash_ext to rehash with specific
8119           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8120
8121         * Added silc_hash_string_compare to compare two strings in the
8122           hash table.  Affected file lib/silcutil/silcutil.[ch].
8123
8124 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8125
8126         * Added new function silc_idcache_del_by_context into the
8127           lib/silccore/idcache.[ch].
8128
8129         * Changed the server's ID list routines to use the new ID Cache
8130           interface.  Changes around the source tree.
8131
8132 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8133
8134         * Added silc_hash_table_del[_by_context]_ext functions in to the
8135           lib/silcutil/silchashtable.[ch].
8136
8137           Removed silc_hash_table_find_all* routines and added new
8138           silc_hash_table_find_foreach to replace them.
8139
8140           Added silc_hash_table_replace_ext function as extended
8141           replacing function.  Separated the simple hash table interface
8142           from the extended hash table interface in the file
8143           lib/silcutil/silchashtable.h.
8144
8145         * Fixed minor bugs and changed it to use some of the new
8146           hash table functions in lib/silccore/idcache.c
8147
8148 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8149
8150         * Added new function silc_hash_table_find_all to return all keys
8151           in the hash table by the specified key.  As the hash table is
8152           collision resistant it also makes it possible to have several
8153           duplicate keys in the hash table.  This function may be used to
8154           find all of the keys from the hash.
8155
8156           Added user_context arguments to the SilcHashFunction,
8157           SilcHashCompare and SilcHashDestructor to deliver user specified
8158           context.
8159
8160           Added new fuctions silc_hash_table_find[_all]_ext to do
8161           extended lookup with specified hash and compare functions and
8162           specified user contexts.
8163
8164           Added new function silc_hash_table_add_ext to add the key
8165           with specified hash function and user context.
8166
8167           Added new function silc_hash_table_foreach to traverse all
8168           entrys in the hash table.  Added SilcHashForeach callback
8169           function.
8170
8171           Added new function silc_hash_table_del_by_context to delete
8172           the entry only if the context associated with the key matches.
8173
8174           Affected files are lib/silcutil/silchashtable.[ch].
8175
8176         * Removed silc_hash_[server/client/channel]_id and added just
8177           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8178           silc_hash_id_compare to compare two ID's using as the hash table
8179           comparison function.  Added also silc_hash_data to hash
8180           binary data and silc_hash_data_compare to compare it.
8181
8182         * Removed silc_idlist_find_client_by_hash as it is not needed
8183           anymore.  Affected file silcd/idlist.[ch].
8184
8185         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8186           to use internally the SilcHashTable.  The new ID Cache is a lot
8187           faster than the old one.  Some of the ID Cache interface was also
8188           rewritten and obsolete and stupid functions were removed.
8189
8190 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8191
8192         * Added entry_count field to the SilcHashTable to keep the number
8193           of the entries in the table.  Implemented the function
8194           silc_hash_table_rehash.  Added new function
8195           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8196
8197           Fixed a minor bug in silc_hash_table_free.
8198
8199         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8200           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8201           into the lib/silcutil/silcutil.[ch].
8202
8203 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8204
8205         * Implemented a collision resistant hash table into the
8206           lib/silcutil/silchashtable[ch].  See the header and the source
8207           for the SilcHashTable API.
8208
8209 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8210
8211         * Merged dotconf version 1.0.2 into lib/dotconf.
8212
8213 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8214
8215         * Do not compile anything in lib/silcsim/* if the SIM support
8216           is not enabled.  The tree should now compile without problems
8217           under cygwin.
8218
8219 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8220
8221         * Compiled the SILC under cygwin.  Compiled and tested briefly
8222           without problems.  More tests needed.  The SIMs didn't compile
8223           though.
8224
8225         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8226
8227         * Fixed possible crash in silc_get_username in the
8228           lib/silcutil/silcutil.c.
8229
8230 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8231
8232         * Fixed a va_arg in silc/client_ops.c.
8233
8234         * Oops, RC5 routines were named AES and caused some problems
8235           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8236
8237 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8238
8239         * Added new SilcIDIP structure into the lib/silccore/id.h and
8240           replaced the old `ip' fields from all SILC ID's to that type.
8241           This is a step towards IPv6 support.
8242
8243           The silc_id_get_len takes now the ID as an extra argument.
8244           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8245           both IPv4 and IPv6 based ID's.
8246
8247           The affected files are lib/silccore/id.[ch] and other files
8248           around the tree using these routines.
8249
8250         * Removed the ID length arguments in server from various
8251           silc_server_send_notify_* routines -> they are not needed
8252           anymore.
8253
8254 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8255
8256         * Fixed memory leak in silc_encode_pem_file in the file
8257           lib/silcutil/silcutil.c.
8258
8259 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8260
8261         * Check minor version as well in the SKE.  Affected files are
8262           silcd/protocol.c and lib/silcclient/protocol.c.
8263
8264         * Added --identifier option to the server so that an identifier
8265           can be when creating the public key for the server.  Affected
8266           file is silcd/silcd.c.
8267
8268         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8269           lib/silccrypt/silcpkcs.c.
8270
8271 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8272
8273         * Register default ciphers and stuff when using -C option with
8274           the server.  Affected file sildc/silcd.c.
8275
8276         * Put back the servers public key filename format, it is better
8277           than the new one.  For now, the client keys are saved with the
8278           new filename format.  The affected file silc/client_ops.c.
8279
8280         * Implemented the Cipher API for the rest of the ciphers that
8281           did not implement it or implemented it the wrong way.
8282
8283 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8284
8285         * Register default ciphers and stuff when using the -S option
8286           in the client.  Affected file silc/silc.c.  Same also when
8287           creating new key pair with -C option.
8288
8289 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8290
8291         * Fixed the silc_verify_public_key client operation function to
8292           save the public keys differently.  The fingerprint is now
8293           used as filename and not the hostname.  This way also the
8294           client keys are saved uniquely and not with hostnames.  The
8295           affected file is silc/client_ops.c.
8296
8297         * Trimmed the silc_hash_fingerprint function to remove extra
8298           whitespaces from the end of the fingerprint.  The affected
8299           file is lib/silccrypt/silchash.c.
8300
8301         * Updated TODO.
8302
8303         * Added silc_cipher_register_default function to register all
8304           default ciphers.  It can be used when configuration files
8305           does not exist and the application does not want any specific
8306           ciphers in any specific order.
8307
8308           The SilcDList is now used as silc_cipher_list dynamically
8309           allocated cipher list.  Removed the static list all together
8310           and now all ciphers must be allocated to the dynamic list.
8311           The silc_cipher_alloc routine was changed to check only the
8312           dynamic list.
8313
8314           All silc_cipher_* routines that used to return int returns
8315           now bool.
8316
8317           The affected files lib/silccrypt/silccrypt.[ch].
8318
8319         * The same thing was done to silc_hash_* as for silc_cipher_*
8320           routines.  Affected files lib/silccrypt/silchash.[ch].
8321
8322         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8323           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8324           Added also silc_pkcs_[un]register[_default] functions.
8325           Removed the data_context from the PKCS API.
8326
8327         * Added silc_hmac_register_default function to register default
8328           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
8329           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
8330           to unregister all hmacs at once.
8331
8332         * Register the default ciphers, hash functions, PKCSs and HMACs
8333           if client's configuration file does not exist.  The affected
8334           file silc/silc.c.
8335
8336         * The client did not load the hash functions from the SIM
8337           modules at all.  Added support for this.  Affected file is
8338           silc/clientconfig.c.
8339
8340         * When decoding public key with silc_pkcs_public_key_decode, check
8341           the supported algorithm only if PKCS are registered.  Affected
8342           file lib/silccrypt/silcpkcs.c.  The same was done with the
8343           silc_pkcs_private_key_decode.
8344
8345         * Fixed the SILC List routines to keep the list always in order.
8346           It used to change the list's order when traversing the list but
8347           not it preserves the order.  Affected file lib/trq/silclist.h.
8348
8349 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8350
8351         * Added the client library to use the SilcSocketConnection's
8352           reference counter (by silc_socket_dup) to prevent the bug that
8353           the socket object may be freed underneath async operation.
8354
8355         * The name resolv library checking fixes in the configure.in.pre.
8356           The patch by salo.
8357
8358         * Created new version of the protocol drafts for future
8359           development. The -03 drafts are the ones that will be changed
8360           in the trunk now and the -02 will remain as they are.
8361
8362         * Send list of CUMODE notifys to the router when announcing
8363           the channel users to the router.  Affected file silcd/server.c.
8364           If the router receiving channel founder CUMODE for a channel
8365           that already has channel founder it will send CUMODE notify
8366           to the sender to remove the channel founder rights from the
8367           announced client.  Affected file silcd/packet_receive.c.
8368
8369         * The CUMODE notify may now use Server ID as well as the entity
8370           who changes the mode.  Updated protocool specs.
8371
8372         * Updated INSTALL and README files.
8373
8374 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8375
8376         * New web pages in the http://silc.pspt.fi.  The pages was
8377           designed by salo.
8378
8379         * Updated CREDITS.
8380
8381 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8382
8383         * Implemented the [DenyConnectin] config section in the server.
8384           Added silc_server_config_denied_conn to check whether incoming
8385           connection is denied.  Affected file silcd/serverconfig.[ch].
8386
8387         * Do not check the ports when checking the incoming configuration
8388           data if the port is 0, meaning any.  Affected file is
8389           silcd/serverconfig.c.
8390
8391 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8392
8393         * Fixed buffer overflow in silc_string_compare in the file
8394           lib/silcutil/silcutil.c.
8395
8396         * Fixed double free in silc_server_command_leave in the file
8397           silcd/command.c.
8398
8399 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8400
8401         * Fixed the version checking in the server.  Affected file is
8402           silcd/protocol.c.
8403
8404 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8405
8406         * Fixed the configuration data fetching when accepting new
8407           connections in the server.  Affected file silcd/server.c.
8408
8409 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8410
8411         * Added `sender_entry' argument to the function
8412           silc_server_packet_relay_to_channel so that we can check
8413           whether some destination actually belongs to the same route
8414           the sender belongs (ie, we must not resend the packet to the
8415           sender).  Affected file silcd/packet_send.[ch].
8416
8417         * Added `servername' field to the SilcClientEntry in the server
8418           to hold the name of the server where client is from.  Affected
8419           file is silcd/idlist.h.
8420
8421 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8422
8423         * Moved the channel message encrypting in the router betwen
8424           router connections from silc_server_channel_message to the
8425           silc_server_packet_relay_to_channel since we want to check
8426           whether we have anybody channel before encrypting anything.
8427           Affected files silcd/packet_[receive/send].c.
8428
8429 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8430
8431         * Fixed the [AdminConnection] server config section to support
8432           multiple entries.  Affected file silcd/serverconfig.c.
8433
8434         * Added support into the server to check the validity of the
8435           incoming connection before executing any KE or authentication
8436           protocols.
8437
8438         * The connection configuration is now saved to the KE and
8439           connection auth protocol contexts and not fetched anymore in
8440           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
8441
8442         * The local hosts listenning address and port is also resolved
8443           now when starting the server.  We want to have the socket object
8444           to include the real address and port for the listener.  Added
8445           new function silc_net_check_local_by_sock into the files
8446           lib/silcutil/silcnet.[ch].
8447
8448         * Fixed a broadcast bug in server -> do not broadcast if we
8449           are standalone.
8450
8451         * Fixed a routing bug.  Do not route broadcast packets ever.
8452           Broadcast packets must be processed always and not routed since
8453           they may be destined to some other host than yourself and thus
8454           would get routed without no good reason.  Affected file is
8455           silcd/server.c.
8456
8457         * Added function silc_server_config_is_primary_route to check
8458           whether primary router connection has been configured (a router
8459           configuration that we are initiating).  If there is not, we
8460           will assume that there is only two routers in the SILC network
8461           and we will use the incoming router connection as our primary
8462           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
8463
8464         * Changed the order of the broadcasting.  Broadcast _after_ the
8465           packet has been processed not before.  Affected file is
8466           silcd/server.c.
8467
8468         * Fixed a [ClientConnection] parsing bug.  The port was never
8469           parsed correctly thus resulting to port 0.  Affected file
8470           silcd/serverconfig.c.
8471
8472         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
8473           argument and did not set the broadcast packet flag.  Affected
8474           file silcd/packet_send.c.  Fixed same bug in the function
8475           silc_server_send_notify as well.
8476
8477         * If we receive NEW_ID packet for our own ID in the server, ignore
8478           the packet.
8479
8480 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8481
8482         * Updated TODO.
8483
8484         * Removed the nickname from the Private Message Payload.
8485           Updated the code and the protocol specs.
8486
8487         * Updated protocol specs for submitting to the IETF.
8488
8489         * Tweaked the Random Number Generator a bit.  Affected file
8490           lib/silccrypt/silcrng.c.  Exported a new function
8491           silc_rng_[global]_add_noise which can be used to add more
8492           noise to the RNG.
8493
8494 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8495
8496         * Do not parse packets with different timeout when protocol
8497           is active -> may cause problem with rekey.  Affected file
8498           silcd/server.c.
8499
8500         * When server receives signoff notify it must not create
8501           new channel key if the client is on any channels since the
8502           sender of the signoff notify will create it.
8503
8504 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8505
8506         * Added printing of error messages during SKE protocol from the
8507           failure packet sent by server during SKE.  Affected file
8508           silc/client_ops.c.
8509
8510         * Removed the client's failure_callback handling with timeout
8511           and handle it immediately when received.
8512
8513         * The SKE library returned wrong type in SUCCESS and FAILURE
8514           packets.  They must be 32 bit MSB not 16 bit MSB.
8515
8516 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8517
8518         * Ok, rewrote the logic of the re-key and now it seems to work.
8519           I tested it on high traffic with frequent re-keys without
8520           problems.  Added hmac_receive (and renamed hmac to hmac_send)
8521           in SilcClientConnection in lib/silcclient/client.h and
8522           in SilcIDListData in silcd/idlist.h.  Also, removed the
8523           SilcPacketParserContext's cipher and hmac fields as they are
8524           not needed anymore and actually caused some problems when
8525           the ciphers and hmac's changed underneath the packet parser.
8526
8527 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8528
8529         * If re-key protocol is active then process the incoming packets
8530           synchronously since we must assure that icoming packets encrypted
8531           with the old key is processed before the new keys is set to
8532           use.  This is true other packets than for REKEY packets.
8533           Affected file silcd/server.c.  The same was done to client library
8534           as well, affected file lib/silcclient/client.c.
8535
8536 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8537
8538         * Fixed bug in client and server to accept the force send if
8539           the packet is send from silc_[server/client]_packet_process
8540           function.  Otherwise the packets are never delivered, oops.
8541
8542 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8543
8544         * Disable force sending of packets when REKEY protocol is active.
8545           We must assure that no packet is sent directly when rekey is
8546           performed.  All packets must be sent through packet queue.
8547           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
8548           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
8549           function is silc_[server/client]_packet_send_real to check
8550           the situation.
8551
8552         * Replaced the SIM paths from example config files to
8553           /usr/local/modules.  Also, make install creates now
8554           /usr/local/silc/logs directory to hold all the SILC server
8555           logs.
8556
8557 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8558
8559         * Made the configure.in.pre work on Solaris.  Patch by salo.
8560
8561         * Made all ciphers compatible with non-x86 machines.  Defined
8562           CBC mode macros into lib/silccrypt/ciphers_def.h.
8563
8564 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8565
8566         * Fixed the make install.
8567
8568 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8569
8570         * When MAC computation fails the silc_packet_decrypt returned 0
8571           even though it was supposed to return -1.  Fixed this.  The
8572           affected file is lib/silccore/silcpacket.c.
8573
8574         * Do not replace the config files in /etc/silc (in make install)
8575           if they already exist.  Affected file ./Makefile.am.
8576
8577         * Do not send re-key packets immediately but through packet queue.
8578           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
8579
8580         * Changed silc_net_check_host_by_sock to return FALSE if the
8581           IP/DNS could not be resolved.  Though, it returns the IP address
8582           now even if it could not resolve it (but returns also FALSE).
8583           Affected file lib/silcutil/silcnet.[ch].
8584
8585 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8586
8587         * Added silc_pkcs_decode_identifier to decode the public key's
8588           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
8589           Added also silc_pkcs_free_identifier.  Added also new context
8590           SilcPublicKeyIdentifier.
8591
8592         * Added -S option to the silc client.  It is used to dump the
8593           contents of the specified public key file.
8594
8595         * Changed the PKCS api to return the public key length when
8596           setting the public key.
8597
8598         * Fixed a fatal bug in the public and private key file loading.
8599           Affected file lib/silccrypt/silcpkcs.c.
8600
8601         * Execute the packet parsing for client with zero (0) timeout
8602           if the protocol is active.  Affected file silcd/server.c.
8603
8604 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8605
8606         * Made the key generation options to the silcd program.  Added
8607           -C option, equivalent to client's option.
8608
8609         * Added new [ServerKeys] config section to the server.  It
8610           configures the server's public and private key.
8611
8612         * Defined generic Public Key Payload into the protocol
8613           specification to send specific type of public keys and
8614           certificates.
8615
8616         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
8617           public key or certificate.
8618
8619         * Implemented the GETKEY command to the server and to the
8620           client library and on user interface.
8621
8622 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8623
8624         * Made preliminary `make install' work.
8625
8626 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8627
8628         * Added SilcServerRekey context into silcd/idlist.h.
8629
8630         * Added the PFS support as defined in the specification to the
8631           SKE protocol.  Affected files lib/silcske/*.c.
8632
8633         * Added `ske_group' field to the SilcServerRekey context to hold
8634           the number of the SKE group that is used with PFS in re-key.
8635           Affected file silcd/idlist.h.
8636
8637         * Added PFS re-key support to the server.  Affected file is
8638           silcd/protocol.c.
8639
8640         * Added silc_protocol_cancel to cancel execution of the next
8641           state of the protocol.  Affected file is
8642           lib/silccore/silcprotocol.[ch].
8643
8644         * Added the re-key support with and without PFS to the client
8645           library.  Re-key is performed once in an hour, by default.
8646
8647           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
8648           Added silc_client_rekey_callback and silc_client_rekey_final.
8649           Affected files are lib/silcclient/protocol.[ch] and
8650           lib/silcclient/client.[ch].
8651
8652         * Removed the `hmac_key' and `hmac_key_len' fields from the
8653           SilcClientConnection structure; not needed.  Affected file is
8654           lib/silcclient/client.h.
8655
8656         * Updated TODO.
8657
8658 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8659
8660         * Do not ask whether user wants to use the negotiated private key
8661           for private messages, just use it.  Affected file is
8662           silc/local_command.c.
8663
8664         * Added `send_enc_key' and `enc_key_len' fields to the
8665           SilcIDListData structure since they are needed in the re-key
8666           phase.  Affected file is silcd/idlist.[ch].
8667
8668         * Implemented the simple re-key protocol into the server.
8669           Affected files silcd/server.c and silcd/protocol.[ch].  The
8670           re-key will be performed once in an hour, by default.
8671
8672           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
8673           Added silc_server_rekey, silc_server_rekey_callback and
8674           silc_server_rekey_final.
8675
8676         * Removed Tunneled flag from the protocol.  Updated the code
8677           and the specifications.
8678
8679         * Adde `pfs' field to the SilcIDListData to indicate whether
8680           the PFS is to be performed in the re-key.  Affected file is
8681           silcd/idlist.h.
8682
8683 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8684
8685         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
8686           int64 of at least the xintXX size.  If void * is less that 4
8687           bytes uint32 * will be used.  Defined bool as boolean.
8688
8689         * Changed _ALL_ unsigned long and unsigned int to uint32,
8690           unsgined short to uint16 in the source tree.
8691
8692         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
8693           not handle clients that has entry->data.registered == FALSE.
8694           They are not in the network anymore.  Affected file is
8695           silcd/server.c.
8696
8697 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8698
8699         * Implemented the sending of the SERVER_SIGNOFF notify in the
8700           server.  Affected file is silcd/server.c.
8701
8702         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
8703           Added also silc_notify_payload_encode_args into the
8704           lib/silccore/silcnotify.[ch].
8705
8706         * Implemented ther SERVER_SIGNOFF notify handling in the server.
8707           Affected file silcd/packet_receive.c.
8708
8709         * Implemented the SERVER_SIGNOFF notify handling in the client
8710           library.  Affected file lib/silcclient/client_notify.c.  Also,
8711           implemnted the printing of the SERVER_SIGNOFF info to the
8712           application.  Affected file silc/client_ops.c.
8713
8714         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
8715           if the deleting was successful.  Affected file silcd/idlist.[ch].
8716
8717         * Added support for public key authentication in the connection
8718           authentication protocol in the client library.  Affected file
8719           lib/silcclient/protocol.c.
8720
8721         * Changed the server's silc_idlist_get_clients_by_* interface
8722           to support already allocated array so that new entries may be
8723           added to pre-allocated array.  Affected file silcd/idlist.[ch].
8724           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
8725           and command replies.
8726
8727         * All command reply functions in the server now calls the
8728           pending command callback even if error occured.  This way the
8729           error will be delivered to the client as well.  Affected files
8730           silcd/command.c and silcd/command_reply.c.
8731
8732         * Fixed INFO command to return local server's info if no server
8733           was provided.  Affected file lib/silcclient/command.c.
8734
8735         * Removed RESTART command for good.  Updated the code and the
8736           protocol specs.
8737
8738         * Rewrote parts of the task system.  It is a bit simpler now.
8739           Removed unsued task priorities. The affected files are
8740           lib/silcutil/silctask.[ch].
8741
8742 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8743
8744         * Moved the USERS printing from the library to the application.
8745           Affected files lib/silcclient/command.c and silc/client_ops.c.
8746
8747 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8748
8749         * Updated TODO.
8750
8751         * Added channel key re-key support.  The re-key is perfomed
8752           only by the router and is done once in an hour.  Added `rekey'
8753           field to the SilcChannelEntry in the server.  Affected files
8754           silcd/server.c and silcd/idlist.h.
8755
8756         * Added silc_task_unregister_by_context into the file
8757           lib/silcutil/silctask.[ch].
8758
8759 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8760
8761         * Added SILC_UMODE_GONE mode to indicate when the client is not
8762           present in the SILC network.  Added also support to the local
8763           command AWAY that will set this mode.  Added support of showing
8764           "xxx is gone" in WHOIS command.  The USERS command shows the
8765           gone status as well.
8766
8767         * Fixed setting server and router operator privileges in the
8768           server's UMODE command.  Affected file silcd/command.c.
8769
8770         * Merged the SKE KE1 and KE2 payloads into one payload.  The
8771           new KE payload is equivalent to the old KE2 payload.
8772
8773           Cleaned up the SKE Start Payload parsing.  It now uses the
8774           simple buffer unformatting to do the parsing.  A lot faster
8775           now.
8776
8777           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
8778           to the SKE that is used to indicate whether both of the SKE
8779           parties should perform authentication.  By default only the
8780           responder performs authentication.  By setting this flag also
8781           the initiator must do authentication.  By default it is unset
8782           since in normal SKE case, client to server connection, only
8783           the responder should do authentication.  When doing SKE between
8784           two clients both should perform authentication.  Updated the
8785           code and the protocol specs.
8786
8787         * A little fix to IDENTIFY command in the server.  Search the
8788           client first by hash not nickname.  Affected file is
8789           silcd/command.c.
8790
8791         * Fixed the silc_client_close_connection to support closing
8792           the client to client connections wihtout deleting too much
8793           data.  Affected file lib/silcclient/client.c.
8794
8795         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
8796           are received if protocol used to be active but is not anymore
8797           the application would crash due to NULL pointer dereference.
8798           Affected files silcd/server.c and lib/silcclient/client.c.
8799
8800         * Added `hash' field to the SilcClientConnection to include
8801           the hash function negotiated in the SKE protocol.
8802
8803         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
8804           to set the channel founder authentication data.  A client can
8805           claim the founder rights later by providing the authentication
8806           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
8807           This way the channel founder can regain the channel founder
8808           privileges even it is left the channel.  This works only on
8809           local server and the client must be connected to the same
8810           server to be able to regain the founder rights.  Updated the
8811           protocol specs accordingly.
8812
8813           Added support to the CMODE command in the client to set the
8814           founder auth data.  Read the README to see how to set it.
8815
8816           Added support to the CUMODE command to claim the founder
8817           rights.  Read the README to see how to do it.
8818
8819           Added support for the founder authentication to the Channel
8820           Entry in the server.  Affected file silcd/idlist.h.
8821
8822           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
8823           server's CMODE command.  Affected file silcd/command.c.
8824
8825         * Added the following new functions into lib/silccore/silcauth.[ch]:
8826           silc_auth_get_method and silc_auth_get_data.
8827
8828         * The server now saves the remote hosts public key to the
8829           SilcIDListData pointer.  Affected file silcd/protocol.c.
8830
8831         * The normal server now does not remove the channel entry from
8832           the cache if the founder authentication data is set.  It used
8833           to remove it if the founder was the last one on the channel on
8834           the server and left the channel.  The auth data is saved and
8835           if the channel is re-joined later the old entry is used with
8836           the old auth data.  Affected files silcd/command_reply.c and
8837           silcd/server.c.
8838
8839         * Removed the `pkcs' field from the SilcIDListData structure
8840           in the server; it is not used.  Affected file silcd/idlist.h.
8841
8842 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8843
8844         * Fixed packet processing on slow links.  Partial packets were
8845           never re-processed because the incoming data buffer was cleared
8846           by the application.  Application must not directly clear the
8847           sock->inbuf, the packet processing routines handle it.  Fixed
8848           this in client library and in server.
8849
8850 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8851
8852         * Fixed the WHOIS and IDENTIFY send reply function to really
8853           check whether to send list or just one entry.  Affected file
8854           silcd/command.c.
8855
8856         * Cleaned up the LEAVE command's channel key distribution.  The
8857           affected file silcd/command.c.
8858
8859         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
8860           can enforce the channel mode as well.  In that case the ID
8861           includes the ID of the server.  The code now enforces the
8862           mode change if the router have different mode than the server.
8863
8864         * The notify client operation with CMODE_CHANGE notify can now
8865           return NULL client_entry pointer if the CMODE was not changed
8866           by client.  Application must check for this.
8867
8868         * Added <Server ID> argument to INFO command to support server
8869           info fetching by Server ID.
8870
8871         * Added silc_server_announce_get_channel_users to get assembled
8872           packets of channel users of the specified channel.  Affected
8873           file silcd/server.[ch].
8874
8875         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
8876           was freed underneath the ID Cache.
8877
8878         * Re-announce clients when the server received CHANNEL_CHANGE
8879           notify from the router.  Affected file silcd/packet_send.c.
8880
8881 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8882
8883         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
8884           crashed since it did not handle the fact that there is no cipher
8885           called "3" and didn't check the error condition.  Now fixed.
8886
8887         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
8888           flag.  It can be used to send message requests.
8889
8890 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8891
8892         * Implemented the RESTART command in the client.
8893
8894         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
8895           notice type messages.  Added notice printing to the user
8896           interface.
8897
8898         * The channel keys are not re-generated if the channel's mode
8899           is PRIVKEY, ie private key on the channel exists.  Affected
8900           files silcd/server.c and silcd/command.c.
8901
8902         * Fixed a little bug in channel message delivery when channel
8903           private keys are set in the server.  Affected file is
8904           silcd/packet_send.c.
8905
8906         * Changed the setting on channel->on_channel = TRUE from the
8907           silc_client_save_channel_key to the JOIN command reply.  The
8908           key payload is not received if the private channel key is set.
8909           Affected file lib/silcclient/command_reply.c and the
8910           lib/silcclient/client_channel.c.
8911
8912         * When the CMODE_CHANGE notify is sent and the channel private
8913           key mode is removed the channel key must be re-generated in
8914           other cells as well.  Added this support for the router in the
8915           silcd/packet_receive.c.
8916
8917         * Added new local command NOTICE to send notice message on
8918           channel.  Affected file silc/local_command.[ch].
8919
8920 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8921
8922         * Added new local command ME to the client.  It is used to send
8923           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
8924           some action.  Affected file silc/local_command.[ch].
8925
8926         * Changed channel_message and private_message client operations
8927           to deliver the message flags to the application.  Added also
8928           the `flags' arguments to the silc_client_send_channel_message
8929           and silc_client_send_private_message functions.  Affected file
8930           silcapi.h.
8931
8932 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8933
8934         * Redefined the Private Message Payload to support private message
8935           keys and to support the new private message flags.  Updated
8936           the protocol specs.  Flags makes it possible to have for example
8937           CTCP style messages.
8938
8939         * Added new type SilcPrivateMessagePayload and defined an API
8940           for it in the lib/silcclient/silcprivate.[ch].
8941
8942         * Tested private message private keys successfully.  Tested the
8943           private message key set, unset and list commands with the new
8944           KEY command.
8945
8946         * Redefined the Channel Message Payload to include the channel
8947           message flags (equal with private message flags) to support
8948           for example CTCP style messages.
8949
8950         * Defined some of the message (for channel and private message)
8951           flags.  Updated the protocol specs and added the flags to the
8952           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
8953
8954 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8955
8956         * Added SilcKeyAgreementStatus type to the key agreement routines
8957           to indicate the current status and error if one occured.
8958           The status types are defined in the lib/silcclient/silcapi.h.
8959
8960         * Added new local command KEY that is used to set and unset private
8961           keys for channels, set and unset private keys for private messages
8962           with remote clients and to send key agreement requests and
8963           negotiate the key agreement protocol with remote client.  The
8964           key agreement is supported only to negotiate private message keys,
8965           it currently cannot be used to negotiate private keys for channels,
8966           as it is not convenient for that purpose.
8967
8968         * Fixed a minor pending callback setting bug in the function
8969           silc_client_get_client_by_id_resolve, now the function works.
8970           Affected file lib/silcclient/idlist.c.
8971
8972         * Added function silc_net_get_local_port to get local bound
8973           port by socket.  Added to lib/silcutil/silcnet.[ch].
8974
8975         * Added `sockets' and `sockets_count' fields to the SilcClient
8976           object.  They hold the sockets of the listenning sockets in
8977           the client.  Listenning sockets may be for example the key
8978           agreement server.  Affected file lib/silcclient/client.[ch].
8979           Added functions the silc_client_add_socket and the
8980           silc_client_del_socket.  They are exported to the application
8981           as well.
8982
8983         * Added ~./silc/clientkeys to support other client's public keys.
8984
8985         * Renamed verify_server_key client operation to verify_public_key
8986           and added one argument to indicate the type of the connection
8987           (server, client etc.).
8988
8989 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8990
8991         * Added silc_server_connection_auth_request to handle the
8992           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
8993           silcd/packet_receive.[ch].
8994
8995         * Added silc_server_send_connection_auth_request into the
8996           silcd/packet_send.c to send the connection auth request packet.
8997
8998         * Cleaned up the silcd/protocol.c a bit and fixed some memory
8999           leaks.
9000
9001         * Fixed the public key authentication in responder side in the
9002           server.  The `auth_data' pointer includes the SilcPublicKey
9003           not the path to the public key.  Affected file silcd/protocol.c.
9004
9005         * Implemented the public key authentication in the initiator side
9006           in the server.  Affected file silcd/protocol.c.
9007
9008         * Removed the [RedirectClient] config section from the server
9009           configuration.  Is not needed and I don't want to implement it.
9010
9011 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9012
9013         * Cleaned up the CMODE command in the server.  It now works
9014           correctly and supports all the modes defined in the protocol.
9015           Affected file is silcd/command.c.
9016
9017         * Added `hmac_name' field to the SilcChannelEntry in the server
9018           to hold the default HMAC of the channel.  It can be set when
9019           creating the channel (with JOIN command).  Affected files
9020           silcd/idlist.[ch].
9021
9022         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
9023           type to indicate the change of the current cipher and hmac
9024           on the channel.  Client can safely ignore the <cipher> argument
9025           (if it chooses to do so) since the CHANNEL_KEY packet will
9026           force the channel key change anyway.  The <hmac> argument is
9027           important since the client is responsible of setting the new
9028           HMAC and the hmac key into use.
9029
9030         * Fixed the CMODE command in the client library as well.
9031
9032         * Tested CMODE command in router environment successfully.
9033
9034 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9035
9036         * Show the version of the remote client (or server) when connecting
9037           to the server.  It is logged to the log file.  Affected file
9038           is silcd/protocol.c.
9039
9040         * Fixed the KILLED notify handling in the client library.  The
9041           client must be removed from all channels when receiving the
9042           KILLED notify.
9043
9044           Also, do not remove the client entry when giving the KILL
9045           command but when the KILLED notify is received.
9046
9047         * Removed silc_idlist_find_client_by_nickname from the server.
9048           Not needed anymore.  Affected files silcd/idlist.[ch].
9049
9050         * Implemented the CHANNEL_CHANGE notify type handling to the
9051           server.  Affected file silcd/server.c.
9052
9053         * Updated TODO.
9054
9055 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9056
9057         * Added silc_server_send_notify_invite to send the INVITE
9058           notify between routers.
9059
9060         * Implemented the INVITE command correctly to the server.
9061
9062         * Implemented the INVITE notify type handling in the server.
9063
9064         * Implemented the INVITE command to the client library and on the
9065           user interface.
9066
9067 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9068
9069         * Added function silc_server_get_client_resolve to find the
9070           client entry by ID from all ID lists and then resolve it
9071           (using WHOIS) if it cannot be found.  Affected file is
9072           silcd/server.[ch].
9073
9074 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9075
9076         * Implemented the BAN command to the client library.
9077
9078         * The JOIN command in the server now checks the invite list
9079           and the ban list.
9080
9081         * Changed the silc_command_reply_payload_encode_va and the
9082           silc_command_payload_encode_va to support that if argument is
9083           NULL it ignores and checks the next argument.  Affected file
9084           lib/silccore/silccommand.c.
9085
9086         * Added silc_server_send_notify_ban to send the BAN notify
9087           type between routers.
9088
9089         * Chaned the silc_notify_payload_encode to support that if
9090           argument is NULL it ignores and checks the next argument.
9091           Affected file lib/silccore/silcnotify.c.
9092
9093         * Tested ban lists in router environment successfully.
9094
9095 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9096
9097         * Implemented BAN command to the server, in silcd/command.[ch].
9098
9099         * Removed the BAN and INVITE_LIST modes from the CMODE command
9100           in the server code.
9101
9102         * Added function silc_string_match to regex match two strings.
9103           Affected files lib/silcutil/silcutil.[ch].
9104
9105 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9106
9107         * Redefined parts of the SilcChannelEntry in the server to support
9108           the new ban and invite lists.
9109
9110 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9111
9112         * Redefined the INVITE command.  The same command can be used to
9113           invite individuals to the channel but also to manage the invite
9114           list of the channel (to add to and remove from the invite list).
9115           Updated the protocol specs.
9116
9117         * Added new command SILC_COMMAND_BAN that can be used to manage
9118           the ban list of the channel.  Updated the protocol specs.
9119
9120         * Removed the channel modes: the SILC_CMODE_BAN and the
9121           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9122           in the CMODE command.  The equivalent features are now available
9123           using INVITE and BAN commands.  Updated the protocol specs.
9124
9125         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9126           in the network about change in the current ban list.  The notify
9127           type is not used by the client.
9128
9129         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9130           support the invite lists.
9131
9132 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9133
9134         * Added new function silc_string_regexify that converts string
9135           including wildcard characters into regex string that can
9136           be used by the GNU regex library.  Added into the file
9137           lib/silcutil/silcutil.[ch].
9138
9139           Added silc_string_regex_combine to combine to regex strings
9140           into one so that they can be used as one regex string by
9141           the GNU regex library.  Added into the file
9142           lib/silcutil/silcutil.[ch].
9143
9144           Added silc_string_regex_match to match two strings.  It returns
9145           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9146
9147 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9148
9149         * Imported GNU regex to the soruce tree into lib/contrib.
9150           Fixed some compiler warning from the regex.c.
9151
9152 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9153
9154         * Fixed MOTD command in the server to work in router environment.
9155
9156         * Fixed the MOTD command in the client library to support
9157           the server argument in the command.
9158
9159         * Added `nickname_len' argument to the silc_idlist_add_client
9160           in the server, as the `nickname' argument may be binary data
9161           (it may be hash).
9162
9163         * Added silc_idlist_get_channels to return all channels from
9164           the ID list.
9165
9166         * Implemented LIST command to the server.  Affected file is
9167           silcd/command.c.
9168
9169         * Implemented the LIST command to the client library and on the
9170           user interface.
9171
9172         * Added [<user count>] argument to the LIST command reply.
9173           With private channels the user count is not shown.
9174
9175         * Updated TODO and README.
9176
9177 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9178
9179         * The client entry's data.registered must be TRUE even with
9180           global client entry on global client list.  The data.registered
9181           is used to check whether the client is anymore in the network,
9182           for example with WHOWAS command so it must be valid.
9183
9184         * Fixed the WHOWAS command in the server.  It now actually works
9185           in router environment.  Added function into silcd/command_reply.c
9186           silc_server_command_reply_whowas_save.
9187
9188         * Added silc_idlist_purge function to the silcd/idlist.c
9189           to periodically purge the ID Cache.
9190
9191         * Fixed INFO command in the server.  It works now in router
9192           environment.  Added <server name> argument to the INFO command
9193           reply.  Updated the protocol specs.
9194
9195         * Fixed minor bug in silc_idcache_purge to not purge if the
9196           expire value is zero.
9197
9198         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9199           they were buggy because of the WHOWAS information.
9200
9201         * Fixed local command MSG to handle the async resolving of
9202           the remote client properly.  It used to fail the first MSG.
9203           Affected file silc/local_command.c.
9204
9205         * Added `data_len' field to SilcIDCache context.
9206
9207 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9208
9209         * Update TODO.  Todo in commands in the server.
9210
9211 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9212
9213         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9214           used by routers as broadcast packet to inform other routers
9215           about the changed user mode.
9216
9217           Implemented the notify handling in the server.  Affected file is
9218           silcd/packet_receive.c.  Added the function
9219           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9220
9221         * Added new generic Channel Payload and deprecated the New Channel
9222           Payload.  The New Channel Payload is now the generic Channel
9223           Payload.
9224
9225         * Added new argument `mode' to the silc_server_send_new_channel
9226           as it is required in the Channel Payload now.
9227
9228         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9229           and created a new and real SilChannelPayload to represent the
9230           new generic Channel Payload.  Implemented the encode/decode
9231           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9232
9233         * Added silc_server_get_client_channel_list to return the list
9234           of channels the client has joined for WHOIS command reply.
9235           Affected file silcd/server.[ch].
9236
9237         * Implemented the channel list sending in the WHOIS command reply
9238           in server and in the client.
9239
9240           Implemented the channel list displaying on the user interface
9241           as well.  Affected file silc/client_ops.c.
9242
9243         * Added silc_channel_payload_parse_list to parse list of Channel
9244           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9245           Client for example can use this function to parse the list of
9246           channels it receives in the WHOIS command reply.  The caller
9247           must free the list by calling silc_channel_payload_list_free.
9248           Affected files lib/silccore/silcchannel.[ch].
9249
9250 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9251
9252         * Added one new argument <user mode> to the WHOIS command reply
9253           to return the mode of the user in SILC.  Updated the protocol
9254           specs.
9255
9256           Implemented it to the server and client.
9257
9258 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9259
9260         * Fixed the mode printing on the user interface on joining.
9261           Affected file silc/client_ops.c.
9262
9263         * Implemented the UMODE command and user modes in general to the
9264           client library and to the user interface.
9265
9266         * Implemented the UMODE command to the server.
9267
9268         * The server now sends UNKNOWN_COMMAND error status if client sends
9269           unknown command.  Affected file silcd/command.c.
9270
9271         * All server commands now handle the command identifier the right
9272           way when sending the command reply to the client.  The client can
9273           use to identify the command replies with the identifier.
9274
9275 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9276
9277         * Added silc_server_get_client_route to resolve the route to
9278           the client indicated by the client ID.  Affected file is
9279           silcd/server.[ch].
9280
9281         * Added silc_server_relay_packet as general function to relay
9282           packet to arbitrary destination.  This deprecates functions
9283           like _send_private_message_key, _relay_notify etc.  Affected
9284           file is silcd/packet_send.[ch].
9285
9286           Removed silc_server_send_key_agreement,
9287           silc_server_send_private_message_key and
9288           silc_server_packet_relay_notify functions from the file
9289           silcd/packet_send.[ch].
9290
9291         * Updated TODO.
9292
9293         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9294           server.  Affected file silcd/packet_receive.[ch].
9295
9296         * Implemented the KILL command to the client.  Implemented the
9297           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9298           Affected files lib/silcclient/command[_reply].c and
9299           lib/silcclient/client_notify.c.  Implemented the KILL notify
9300           printing in the user inteface.
9301
9302         * Fixed a lot silc_parse_nick memory leaks from the client
9303           library in the file lib/silcclient/command.c.
9304
9305         * Changed the silc_server_send_notify_on_channels's `sender'
9306           argument from SilcSocketConnection to SilcClientEntry to
9307           check the sender as entry and not as connection object and not
9308           to send to the client provided as argument.  The affected file
9309           is silcd/packet_send.[ch].
9310
9311         * The notify packets that are destined directly to the client used
9312           to not to be processed by the server.  Now changed that and the
9313           server processes all notify packets.  After relaying the packet
9314           to the client the notify packet is processed in the server.
9315
9316         * The silc_server_free_client_data now checks whether there is
9317           pending outgoing traffic for the client and purges the data to
9318           the network before removing the client entry.
9319
9320 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9321
9322         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9323           an client is killed from the SILC Network.  Updated the protocol
9324           specs accordingly.
9325
9326           Added new function silc_server_send_notify_killed to the
9327           silcd/packet_send.[ch].
9328
9329         * Added function silc_server_packet_relay_notify to relay notify
9330           packets that are destined directly to a client.  In this case
9331           the server does not process the notify packets but merely relays
9332           it to the client.  Affected file silcd/packet_send.[ch].
9333
9334           Added also silc_server_packet_process_relay_notify to check
9335           whereto relay the notify.  Affected file is
9336           silcd/packet_receive.[ch].
9337
9338         * Implemented the KILL command to the server.
9339
9340         * Updated TODO.
9341
9342         * Added the backup schema desgined last fall to the protocol
9343           specs for everyone to see.  The specification is in the
9344           *-spec-xx.txt draft and the packet type definitions for the
9345           backup routers is in *-pp-xx.txt draft.  Thusly, added also
9346           new packet type SILC_PACKET_CELL_ROUTERS.
9347
9348         * A big security problem in the implementation discovered.  The
9349           signoff of an client did not cause new channel key generation
9350           which it of course should've done.  The channel keys must be
9351           always re-generated when client leaves (or signoffs) the channel.
9352           The silc_server_remove_from_channels funtion now handles
9353           the channel key re-generation.
9354
9355         * Added `sender' argument to the silc_server_send_notify_on_channels
9356           to not to send the client provided as argument.  Affected file
9357           silcd/packet_send.[ch].
9358
9359 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9360
9361         * Implemented OPER and SILCOPER commands into the server and
9362           the client library.
9363
9364         * Added silc_auth_verify and silc_auth_verify_data to verify
9365           the authentication directly from the authentication payload.
9366           It supports verifying both passphrase and public key based
9367           authentication.  Affected file lib/silccore/silcauth.[ch].
9368
9369         * Added `hash' field to the SilcIDListData structure.  It is the
9370           hash negotiated in the SKE protocol.  Affected file is
9371           silcd/idlist.[ch].
9372
9373         * Slight redesigning of the SilcAuthPayload handling routines.
9374           Do not send SilcPKCS but SilcPublicKey as argument.
9375
9376         * Implemented the public key authentication support to the
9377           serverconfig.  The public key is loaded from the provided path
9378           and saved as authentication data to void * pointer.  Thus,
9379           changed the unsigned char *auth_data to void *auth_data;
9380
9381         * Fixed SHUTDOWN command to send the reply before the server
9382           is shutdown. :)  Affected file silcd/command.c.
9383
9384         * Fixed fatal bug in CONNECT command.  The hostname was invalid
9385           memory and server crashed.  Affected file silcd/command.c.
9386
9387         * Fixed fatal bug in CLOSE command.  The server_entry became
9388           invalid but was referenced later in the command.  Affected file
9389           silcd/command.c.
9390
9391 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9392
9393         * Fixed fatal bug in failure packet handling.  Server ignored
9394           the failure and thus crashed when it came.
9395
9396         * Updated TODO.
9397
9398 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9399
9400         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
9401           that the command may be executed only once in (about) 2 seconds.
9402           The old SILC_CF_LAG flag is same but allows command bursts up
9403           to five before limiting.
9404
9405           Added the support for CF_LAG and CF_LAG_STRICT flags to the
9406           server code.  Various commands now includes the CF_LAG_STRICT
9407           flag to disallow any kind of miss-use of the command.
9408
9409         * Fixed the silc_buffer_unformat to not to allocate any data
9410           if the length of the data is zero.  It used to allocate the
9411           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
9412
9413 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9414
9415         * Changed the format of AdminConnection configuration section
9416           in the server.  Added username of the admin to the format.
9417           Affected files silcd/serverconfig.[ch].
9418
9419           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
9420           to return admin configuration data by host, username and/or
9421           nickname.
9422
9423 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9424
9425         * Implemented WHOWAS command to the server.  Added the functions:
9426
9427           silc_server_command_whowas_parse,
9428           silc_server_command_whowas_send_reply,
9429           silc_server_command_whowas_from_client and
9430           silc_server_command_whowas_from_server
9431
9432         * Added <Client ID> argument to the WHOWAS command reply.  Updated
9433           the protocol specs accordingly.
9434
9435         * Implemented WHOWAS command and command_reply to the client
9436           library.
9437
9438           Implemented the WHOWAS printing on the user interface.
9439
9440 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9441
9442         * Added new argument to the WHOWAS command reply, the real name.
9443           It is an optional argument.  Updated the protocol specs.
9444
9445         * Added SilcIDCacheDestructor callback that is registered when
9446           the SilcIDCache is allocated.  The callback is called when
9447           an cache entry in the ID Cache expires, or is purged from the
9448           cache.  Added into lib/silccore/idcache.[ch].
9449
9450           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
9451           to destruct the client entries when the cache entry expires.
9452           Other ID Cache's in server and in the client library ignores
9453           the destructor.
9454
9455         * If the ID Cache entry's `expire' field is zero then the entry
9456           never expires.  Added boolean `expire' argument to the
9457           silc_idcache_add function in the lib/silccore/idcache.[ch].
9458           If it is TRUE the default expiry value is used.
9459
9460         * Added silc_server_free_client_data_timeout that is registered
9461           when client disconnects.  By default for 5 minutes we preserve
9462           the client entry for history - for WHOWAS command.
9463
9464 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9465
9466         * Added support to the server to enforce that commands are not
9467           executed more than once in 2 seconds.  If server receives
9468           commands from client more frequently, timeout is registered
9469           to process the commands.  Affected file silcd/command.c.
9470           Added new function silc_server_command_process_timeout.
9471
9472         * Changed NICK_NOTIFY handling in client library to check that
9473           if the client's nickname was changed, so there is no need to
9474           resolve anything from the server.
9475
9476         * Removed error printing from the WHOIS and IDENTIFY commands.
9477           If error occurs then it is ignored silently in the client library.
9478           The application, however, may map the received error to
9479           human readable error string.  The application currently maps
9480           the NO_SUCH_NICKNAME error to string.
9481
9482         * Made the command status message public to the application.  Moved
9483           them from lib/silcclient/command_reply.c to
9484           lib/silcclient/command_reply.h.  The application can map the
9485           received command status to the string with the
9486           silc_client_command_status_message function.
9487
9488         * Added check to the server to check that client's ID is same
9489           as the Source ID in the packet the client sent.  They must
9490           match.
9491
9492 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9493
9494         * Added dist-bzip hook to the Makefile.am to make bzip2
9495           compressed distributions.
9496
9497 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9498
9499         * Server now enforces the maximum length for the nickname and
9500           the channel as protocol specification dictates.  128 bytes for
9501           nickname and 256 bytes for channel name.
9502
9503         * Moved the WHOIS printing to the application.  The client libary
9504           does not print out the WHOIS information anymore, the application
9505           must do it.  Renamed silc_client_command_reply_whois_print to
9506           the silc_client_command_reply_whois_save.
9507
9508           The client's idle time is also sent to the application now, and
9509           the idle is shown on screen.
9510
9511         * Added silc_client_command_reply_identify_save to save the
9512           received IDENTIFY entries.
9513
9514         * Do not check for channel private keys in message sending and
9515           reception if the channel does not have the PRIVKEY mode set.
9516           Affected file lib/silclient/client_channel.c.
9517
9518 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9519
9520         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
9521           just surfaced after chaning the JOIN procedure.
9522
9523 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9524
9525         * Added silc_client_get_clients_by_list to get client entries
9526           from Client ID list, that is returned for example by JOIN
9527           and USERS command replies.  The application should use this
9528           function for example when JOIN command reply is received to
9529           resolve the clients already on the channel (library does not
9530           do that anymore as USERS command reply is not used in the JOIN
9531           procedure anymore).  Affected files lib/silcclient/silcapi.h and
9532           lib/silcclient/idlist.c.
9533
9534         * JOIN command reply and USERS command reply returns now SilcBuffer
9535           pointers instead of unsigned char pointers when returning
9536           the client list and mode list.
9537
9538         * Added <Client ID> argument to the JOIN command reply, mainly
9539           for the server to identify for which client the command was
9540           originally sent.  Updated protocol specs accordingly.
9541
9542         * Added SilcDlist private_key pointer to the SilcChannelEntry
9543           in the client to support the channel private keys.  Affected
9544           file is lib/silcclient/idlist.h.
9545
9546         * Added SilcChannelPrivateKey argument to the function
9547           silc_client_send_channel_message so that application can choose
9548           to use specific private ke if it wants to.  If it is not provided,
9549           the normal channel key is used, unless private keys are set.
9550           In this case the first (key that was added first) is used
9551           as the encryption key.
9552
9553         * Implemented the support for channel private key handling.
9554           Implemented the following functions:
9555
9556           silc_client_add_channel_private_key,
9557           silc_client_del_channel_private_keys,
9558           silc_client_del_channel_private_key,
9559           silc_client_list_channel_private_keys and
9560           silc_client_free_channel_private_keys
9561
9562           Affected file lib/silcclient/client_channel.c.
9563
9564         * Added the support for the private keys in the channel message
9565           sending and encryption and in the message reception and
9566           decryption.  Affected funtions are
9567           silc_client_send_channel_message and silc_client_channel_message.
9568
9569 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9570
9571         * Added SKE's key verify callback to the client library's
9572           KE protocol context. Affected files lib/silcclient/protocol.[ch].
9573
9574         * Removed the statement that server (or router) must send USERS
9575           command reply when joining to the channel so that the client
9576           knows who are on the channel.  Instead, the client list and
9577           client's mode list is now sent in the JOIN command reply to the
9578           client who joined channel.  This is better solution.
9579
9580         * Added function silc_server_get_users_on_channel and function
9581           silc_server_save_users_on_channel to the silcd/server.[ch].
9582
9583         * Removed function silc_server_command_send_users from the
9584           silcd/command.c.
9585
9586         * Do not show topic on the client library anymore.  The topic is
9587           sent in the command reply notify to the application and the
9588           application must show the topic now.
9589
9590 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9591
9592         * Added client searching by nickname hash into the IDENTIFY and
9593           WHOIS commands in the server as they were clearly missing from
9594           them.  Affected file is silcd/command.c.
9595
9596         * Fixed a bug in private message receiving in the client library.
9597           The remote ID was freed and it wasn't supposed, now it is
9598           duplicated.
9599
9600 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9601
9602         * Minor fix to the channel payload; allocate the data area, as it
9603           needs to be of specific length.
9604
9605         * If the key agreement port is zero then the operating
9606           system will define the bound port.  Affected files are
9607           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
9608
9609         * Added new function silc_channel_payload_decrypt into the file
9610           lib/silccore/silcchannel.[ch].
9611
9612         * Moved the channel message etc, check from silc_packet_decrypt
9613           to applications.  The library calls now a generic
9614           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
9615           when the packet is either normal or special.  This was done to
9616           allow more wide range of checking that was not allowed when
9617           the code was in library.  Now applications can do virtually any
9618           checks to the packet and return to the library the decision how
9619           the packet should be processed.  Affected files are
9620           lib/silccore/silcpacket.[ch].
9621
9622           Added silc_server_packet_decrypt_check to the server and
9623           silc_client_packet_decrypt_check to the client library.
9624
9625         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
9626           to send with specified source and destination information.
9627
9628         * Channel message delivery between routers was broken after the
9629           channel key distribution was fixed earlier.  The channel key
9630           was used be to distributed to other routers as well which is not
9631           allowed by the protocol.  Now this is fixed and channel keys
9632           really are cell specific and the channel message delivery between
9633           routers comply with the protocol specification.
9634
9635         * Fixed various commands in server to check also the global list
9636           for the channel entry and not just the local list.  The affected
9637           file silcd/command.c.
9638
9639 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9640
9641         * Added assert()s to buffer formatting and unformatting routines
9642           to assert (if --enable-debug) when error occurs.  Affected
9643           file: lib/silcutil/silcbuffmt.c.
9644
9645         * Changed to auto-reconnect to check whether the remote host is
9646           router and register the re-connect timeout if it is.  It used
9647           to check that whether we are normal server, but router must do
9648           auto-reconnect with another router as well.  Affected file
9649           silcd/server.c.
9650
9651         * Removed the [<key len>] option from CMODE command as the cipher
9652           name decides the key length, nowadays.  See the defined ciphers
9653           from the protocol specification.
9654
9655         * Added [<hmac>] option to the CMODE command to define the HMAC
9656           for the channel.  Added SILC_CMODE_HMAC channel mode.
9657
9658         * Added [<hmac>] option for the JOIN command so that user can
9659           select which HMAC is used to compute the MACs of the channel
9660           messages.
9661
9662         * Added Hmac field to the Channel Message Payload.  The integrity
9663           of plaintext channel messages are now protected by computing
9664           MAC of the message and attaching the MAC to the payload.  The
9665           MAC is encrypted.  Now, it is clear that this causes some
9666           overhead to the size of the packet but rationale for this is that
9667           now the receiver can verify whether the channel message decrypted
9668           correctly and also when private keys are set for the channel the
9669           receiver can decrypt the packet with several keys and check from
9670           the MAC which key decrypted the message correctly.
9671
9672         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
9673           lib/silccrypt/silccipher.[ch].
9674
9675         * Added silc_hash_len to return the digest length into the
9676           lib/silcrypt/silchash.[ch].
9677
9678         * Rewrote parts of Silc Channel Payload interface in the
9679           lib/silccore/silcchannel.[ch].  The encode function now also
9680           encrypts the packet and parse function decrypts it.
9681
9682 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9683
9684         * Fixed a minor formatting bug in the SKE's key material processing.
9685           It actually might have processed the keys wrong way resulting
9686           into wrong keys.
9687
9688         * Redefined the mandatory HMAC algorithms and added new algorithms.
9689           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
9690           and hmac-md5 truncated to 96 bits.  The mandatory is now
9691           hmac-sha1-96.  Rest are optional (including the one that used
9692           to be mandatory).  Rationale for this is that the truncated HMAC
9693           length is sufficient from security point of view and can actually
9694           make the attack against the HMAC harder.  Also, the truncated
9695           HMAC causes less overhead to the packets.  See the RFC2104 for
9696           more information.
9697
9698         * Added new [hmac] configuration section.  The SKE used to use
9699           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
9700           is of course wrong.  The official names that must be proposed in
9701           the SKE are the ones defined in the protocol specification
9702           (hmac-sha1-96 for example).  The user can configure any hmac
9703           using any hash function configured in the [hash] section.  At
9704           least, the mandatory must be configured.
9705
9706           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
9707
9708         * Added HMAC list to the SKE proposal list.  It has now both
9709           hash algorithm list and HMAC list.  This makes the protocol
9710           incompatible with previous versions.  The SKE now seems to work
9711           the way it is supposed to work, for the first time actually.
9712
9713         * Defined plain Hash algorithms to the protocol specification.
9714           Added sha1 and md5.
9715
9716 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9717
9718         * Implemented support for key agreement packets into the server.
9719           Added functions silc_server_key_agreement and
9720           silc_server_send_key_agreement.  Other than these functions,
9721           server has nothing to do with this packet.
9722
9723         * Added support for private message key packets into the server.
9724           Added functions silc_server_private_message_key and
9725           silc_server_send_private_message_key.
9726
9727         * Updated TODO.
9728
9729         * Changed the silc_[client|server]_protocol_ke_set_keys to be
9730           called in the protocol's final callback instead in the END
9731           protocol state.  This makes a little more sense and in the same
9732           time in client we can use the same protocol routines for normal
9733           key exchange and to key agreement packet handling as well.
9734
9735         * Added to both client's and server's KE protocol context the
9736           SilcSKEKeyMaterial pointer to save the key material.  We will
9737           bring the key material to the protocol's final callback by doing
9738           this.  The final callback must free the key material.
9739
9740         * Added SKE's packet_send callback into client's KE protocol
9741           context so that the caller can choose what packet sending function
9742           is used.  This way we can use different packet sending when
9743           doing normal SKE when doing key agreement packet handling (in
9744           the key agreement packet handling we do not want to encrypt
9745           the packets).
9746
9747         * Implemented the responder side of the key agreement routines
9748           in the client.  The client can now bind to specified port and
9749           accept incoming key negotiation.  The key material is passed
9750           to the application after the protocol is over.
9751
9752         * Implemented the processing of incoming Key Agreement packet
9753           in the client.  Added function silc_client_key_agreement to
9754           process the packet.
9755
9756         * Implemented the intiator side of the key agreement routines
9757           in the client.  The client can now initiate key agreement with
9758           another remote client.  The key material is passed to the
9759           application after the protocol is over.
9760
9761         * Created client_keyagr.c to include all the key agreement
9762           routines.
9763
9764         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
9765           SILC_TASK_CALLBACK except that it is not static.
9766
9767         * Created client_notify.c and moved the Notify packet handling
9768           from the client.[ch] into that file.
9769
9770         * Created client_prvmsg.c and moved all private message and
9771           private message key routines from the client.[ch] into that file.
9772
9773         * Create client_channel.c and moved all channel message and
9774           channel private key routines from the client.[ch] into that file.
9775
9776         * Changed silc_client_get_client_by_id_resolve to resolve with
9777           WHOIS command instead of IDENTIFY command, in the file
9778           lib/silclient/idlist.c.
9779
9780 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9781
9782         * Implemented the SKE's responder side to the Client library.
9783
9784         * When FAILURE is received to the protocol do not trust it
9785           blindly.  Register a timeout to wait whether the remote closes
9786           the connection as it should do it, only after that process the
9787           actual failure.  This was changed to both client and server.
9788
9789         * Added client_internal.h to include some of the structures
9790           there instead of client.h in lib/silcclient/.
9791
9792         * Added function silc_task_unregister_by_callback to unregister
9793           timeouts by the callback function.
9794
9795 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9796
9797         * Some "Incomplete WHOIS info" errors has been appearing on the
9798           log files.  Took away the entry->userinfo check from WHOIS
9799           reply sending.  The entry->userinfo is now " " if client did not
9800           provide one.  I thought this was fixed earlier but something
9801           is wrong still.  Let's see if the error still appears.
9802
9803 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9804
9805         * Fixed a minor bug in the login when the channel key is
9806           re-generated in the server.  It used to generate the key in
9807           wrong order and thus caused problems in the channel traffic.
9808
9809         * Fixed a minor bug in channel key distsribution after
9810           KICK command.  The key was not sent to the router even though
9811           it should've been.
9812
9813 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9814
9815         * Added silc_ske_process_key_material_data as generic routine
9816           to process any key material as the SILC protocol dictates.  The
9817           function is used by the actual SKE library but can be used by
9818           applications as well.  This relates to the private message keys
9819           and the channel private keys since they must be processed the
9820           same way the normal SILC session keys.  The protocol dictates
9821           this.  Affected files: lib/silcske/silcske.[ch].
9822
9823           Added also silc_ske_free_key_material to free the
9824           SilcSKEKeyMaterial structure.
9825
9826         * Defined silc_cipher_set_key function to set the key for
9827           cipher without using the object's method function.  The affected
9828           files: lib/silccrypt/silccipher.[ch].
9829
9830         * Implemented silc silc_client_add_private_message_key,
9831           silc_client_add_private_message_key_ske,
9832           silc_client_del_private_message_key,
9833           silc_client_list_private_message_keys and
9834           silc_client_free_private_message_keys functions in the
9835           client library.
9836
9837           Added functions silc_client_send_private_message_key to send
9838           the Private Message Key payload and silc_client_private_message_key
9839           to handle incoming Private Message Key payload.
9840
9841         * Added Cipher field to the Private Message Key payload to set
9842           the cipher to be used.  If ignored, the default cipher defined
9843           in the SILC protocol (aes-256-cbc) is used.
9844
9845 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9846
9847         * Removed lib/silcclient/ops.h file.
9848
9849           Redefined parts of the SILC Client Library API. Created new
9850           file silcapi.h that deprecates the ops.h file and defines the
9851           published Client Library API.  Defined also private message key
9852           API and channel private key API into the file.
9853
9854           This is the file that the application must include from the
9855           SILC Client Library.  Other files need not be included by
9856           the application anymore.
9857
9858         * Added new key_agreement client operation callback and also
9859           defined the Key Agreement library API for the application.
9860
9861 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9862
9863         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
9864           is used by clients to request key negotiation  between another
9865           client in the SILC network.  If the negotiation is started it
9866           is performed using the SKE protocol.  The result of the
9867           negotiation, the secret key material, can be used for example
9868           as private message key.
9869
9870           Implemented the Key Agreement payload into the files
9871           lib/silccore/silauth.[ch].
9872
9873 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9874
9875         * Redefined ciphers for the SILC protocol.  Added some new ciphers
9876           and defined the key lengths for the algorithms.  Changed the
9877           code accordingly.  The default key length is now 256 bits.
9878
9879         * Fixed SKE key distribution function silc_ske_process_key_material
9880           when the key length is more than 128 bits.  The default key
9881           length in SILC is now 256 bits.
9882
9883         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
9884           to indicate unsupported algorithm.
9885
9886         * Renamed rijndael.c to aes.c and all functions as well.
9887
9888         * Fixed a long standing channel key setting bug in client library.
9889           Weird that it has never surfaced before.
9890
9891         * Fixed bug in channel deletion.  If the entire channel is removed
9892           then it must also delete the references of the channel entry
9893           from the client's channel list as the client's channel entry and
9894           the channel's client entry share same memory.
9895
9896 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9897
9898         * Implemented CONNECT and SHUTDOWN commands in the client.
9899
9900         * Implemented CLOSE command to the client.
9901
9902         * Added the function silc_idlist_find_server_by_name into the
9903           files silcd/idlist.[ch].
9904
9905           Added the function silc_idlist_find_server_by_conn into the
9906           files silcd/idlist.[ch].
9907
9908 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9909
9910         * DIE command was renamed to SHUTDOWN.  Updated the both code
9911           and protocol specs.
9912
9913         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
9914           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
9915
9916         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
9917           side.
9918
9919         * Added function silc_server_create_connection function to create
9920           connection to remote router.  My server implementation actually
9921           does not allow router to connect to normal server (it expects
9922           that normal server always initiates the connection to the router)
9923           so the CONNECT command is only good for connecting to another
9924           router.
9925
9926 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9927
9928         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
9929           or some other client was kicked from the channel.
9930
9931           Implemented the handling of the notify type to both client
9932           and server.
9933
9934           Implemented silc_server_send_notify_kicked to send the KICKED
9935           notify.  It is used to send it to the server's primary router.
9936
9937         * Implemented the KICK command into server and client.
9938
9939         * Added `query' argument to the silc_idlist_get_client function
9940           to indicate whether to query the client from server or not if
9941           it was not found.
9942
9943         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
9944           to indicate that the client is not channel founder.
9945
9946         * Updated TODO.
9947
9948 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9949
9950         * Removed the rng context from SilcPacketContext structure and
9951           changed that the packet routine uses the Global RNG API.
9952
9953 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9954
9955         * Added support for quit message that client can "leave" on the
9956           channel when it quits the SILC.  It is ditributed inside the
9957           SILC_NOTIFY_TYPE_SIGNOFF notify type.
9958
9959           Added silc_server_free_client_data that will take the
9960           signoff message as argument.
9961
9962         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
9963
9964 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9965
9966         * Updated parts of the protocol specification to keep it up
9967           to date.
9968
9969 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9970
9971         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
9972           payloads in one packet.
9973
9974         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
9975           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
9976           use now the new List flag.
9977
9978         * Also deprecated the following packet types: REPLACE_ID,
9979           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
9980
9981         * Added list support for Notify packet in server.
9982
9983         * Added silc_server_send_notify_channel_change to send the
9984           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
9985           the silc_server_send_replace_id.
9986
9987         * Added silc_server_send_notify_nick_change to send the
9988           NICK_CHANGE notify type.  Deprecates the function
9989           silc_server_send_replace_id.
9990
9991         * Added silc_server_send_notify_join to send the JOIN notify type.
9992           Deprecates the function silc_server_send_new_channel_user.
9993
9994         * Added silc_server_send_notify_leave to send LEAVE notify type.
9995           Deprecates the function silc_server_send_remove_channel_user.
9996
9997         * Added silc_server_send_notify_cmode and
9998           silc_server_send_notify_cumode to send CMODE and CUMODE notify
9999           types.  Deprecates the silc_server_send_set_mode function.
10000
10001         * Added SERVER_SIGNOFF notify type to indicate that server has
10002           quit.  This means that all clients on the channel from that
10003           server will drop.  This can be also used when netsplit happens.
10004
10005           Deprecated REMOVE_ID packet type since it is not needed anymore
10006           even from server.
10007
10008           Added silc_server_send_notify_server_signoff to send the
10009           SERVER_SIGNOFF notify type.  Deprecates the function
10010           silc_server_send_remove_id.
10011
10012           Added also silc_server_send_notify_signoff to send the
10013           SIGNOFF notify type.
10014
10015         * Employed the PKCS #1. It is the mandatory way to do RSA in the
10016           SILC protocol from this day on.  Changed the protocol
10017           specification as well.
10018
10019         * Added silc_server_send_notify_topic_set to send TOPIC_SET
10020           notify type.  It is used between routers to notify about
10021           topic changes on a channel.
10022
10023         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
10024           ID data.
10025
10026         * Partly updated the protocol specification to comply with the
10027           changes now made.  It is still though a bit outdated.
10028
10029         * The JOIN notify type now takes one extra argument <Channel ID>.
10030           The packet used to be destined to the channel but now the
10031           JOIN type may be sent as list thus it is impossible to
10032           destine it to any specific channel.  By adding this argument
10033           it is again possible.
10034
10035 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10036
10037         * Added CREDITS file.  The CHANGES and CREDITS file will appear
10038           in the distribution as well.
10039
10040 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10041
10042         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
10043           types in the server's silcd/packet_receive.c.
10044
10045         * Implemented CMODE and CUMODE to work in router environment.
10046
10047         * Fixed minor encoding and decoding buglet from the
10048           lib/silccore/silcmode.c.
10049
10050         * Fixed buffer overflow from lib/silcclient/command.c in USERS
10051           command parsing.
10052
10053 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
10054
10055         * Changed all SilcConfigServer* and silc_config_server* to
10056           SilcServerConfig* and silc_server_config*, respectively.
10057           Patch by Bostik.
10058
10059 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10060
10061         * Associated the ID (client or server ID) to the Authentication
10062           Payload to avoid any possibility of forging.  Updated the
10063           protocol specification and the code accordingly.
10064
10065 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10066
10067         * The RSA key length is now save to the RsaKey context in the
10068           key generation process in lib/silccrypt/rsa.c.  The key length
10069           is now used to figure out the maximum size of the block allowed
10070           to be encrypted/signed.
10071
10072         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
10073           is equivalent to the silc_mp_mp2bin but does not allocate any
10074           memory.
10075
10076         * Changed silc_mp_mp2bin API to take length argument.  If it is
10077           non-zero then the buffer is allocated that large.  If zero, then
10078           the size is approximated using silc_mp_sizeinbase, which however
10079           is not relieable.
10080
10081         * Created Global RNG API which is global RNG that application can
10082           initialize.  After initializing, any routine anywhere in the
10083           code (including library) can use RNG without allocating a new
10084           RNG object.  This was done to allow this sort of use of the
10085           RNG in code that has no chance to allocate RNG object.  All
10086           applications currently allocate this and many routines in the
10087           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10088
10089         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10090           it to use the Global RNG API.
10091
10092         * Defined Authentication Payload into protocol specification that
10093           is used during SILC session to authenticate entities.  It is
10094           used for example by client to authenticate itself to the server
10095           to obtain server operator privileges.
10096
10097           Implemented this payload into the lib/silccore/silcauth.[ch].
10098           Implemented also routines for public key based authentication
10099           as the new protocol specification dictates.
10100
10101           Moved definitions of different authentication methods from
10102           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10103
10104         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10105           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10106           silc_pkcs_verify_with_hash functions into the file
10107           lib/silccrypt/silcpkcs.[ch].
10108
10109 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10110
10111         * The client entry's userinfo pointer must be always valid.
10112           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10113           will fail since it requires the userinfo.  Now, the userinfo
10114           is allocated as "" if actual userinfo does not exist.  Actually,
10115           it must exist and it is totally Ok to drop client connections
10116           that does not announce the userinfo.  However, we will make
10117           this workaround for now.
10118
10119         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10120           to return the remote port by socket.
10121
10122 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10123
10124         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10125           SILC_SERVER_PENDING_EXEC and added an new macro
10126           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10127           data or when error occurs while processing the pending command.
10128
10129           Added new argument `destructor' into silc_server_command_pending
10130           and to the SilcServerCommandPending object.  This destructor is
10131           now called after calling the pending callback or if error occurs
10132           immediately.  If error occurs the actual pending callback won't
10133           be called at all - only the destructor.  The destructor may be
10134           NULL if destructor is not needed.
10135
10136           All this applies for client library code as well.  Similar
10137           changes were made there as well for the pending commands.
10138
10139           In the client, the application must now allocate the
10140           SilcClientCommandContext with the silc_client_command_alloc
10141           function.
10142
10143         * Added reference counter to the SilcServerCommandContext.  Added
10144           function silc_server_command_alloc and silc_server_command_dup
10145           functions.
10146
10147           Same type of functions added to the client library for the same
10148           purpose as well.
10149
10150         * Removed the cmd_ident from IDListData away since it is now
10151           global for all connections.  It is the command identifier used
10152           in command sending and with pending commands.  The affected file
10153           is silcd/idlist.h.
10154
10155         * Added reference counter to the SilcSocketConnection objecet to
10156           indicate the usage count of the object.  The object won't be
10157           freed untill the reference counter hits zero.  Currently only
10158           server uses this, and client ignores it.  The client must be
10159           set to use this too later.  The affected files are
10160           lib/silccore/silcsockconn.[ch].  Added also the function
10161           silc_socket_dup to increase the reference counter.
10162
10163           This was mainly added because it is possible that the socket
10164           is removed underneath of pending command or other async
10165           operation.  Now it won't be free'd and proper DISCONNECTING
10166           flags, etc. can be set to avoid sending data to connection that
10167           is not valid anymore.
10168
10169         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10170           the connection.  After that it sets SILC_SET_DISCONNECTED.
10171           It is, however, possible that the socket data is not still freed.
10172           The silc_server_packet_process now checks that data is not
10173           read or written to connection that is DISCONNECTED.  The socket
10174           get's freed when the reference counter hits zero.
10175
10176 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10177
10178         * Changed the client operation API: channel_message operation's
10179           `sender' is now the client entry of the sender, not the nickname
10180           and the `channel' is the channel entry, not the channel name.
10181
10182           In the private_message operation the `sender' is now also the
10183           client entry of the sender not the nickname.
10184
10185           Affected file is lib/silcclient/ops.h and all applications
10186           using the client operations.
10187
10188 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10189
10190         * Moved the calling of ops->connect() from connect_to_server_final
10191           into receive_new_id functin since that is the point when the
10192           client is actually allowed to send traffic to network.  The
10193           affected file is lib/silcclient/client.c.
10194
10195 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10196
10197         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10198           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10199           (if needs broadcasting) instead of broadcasting the packets one
10200           by one which would make a burst in the network traffic.
10201
10202         * Added `broadcast' argument to the functions in silcd/server.[ch]
10203           silc_server_create_new_channel[_with_id] to indicate whether
10204           to send New Channel packet to primary router.
10205
10206 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10207
10208         * Added new function into the silcd/server.[ch] files:
10209           silc_server_create_new_channel_with_id to create new channel with
10210           already existing Channel ID.
10211
10212         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10213           lib/silccore/silcpacket.h.  This packet is used t send list of
10214           Set Mode payloads inside one packet.  Server uses this to set
10215           the modes for the channels and clients on those channels, that it
10216           announced to the router when it connected to it.  The protocol
10217           specification has been updated accordingly.
10218
10219         * The silc_server_new_channel did not handle the packet coming
10220           from normal server as it normally does not send that.  However,
10221           when it announces its channels it does send it.  Implemented
10222           the support for that.
10223
10224         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10225           into the file lib/silccore/id.h.
10226
10227 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10228
10229         * Fixed memory leaks in the functions silc_idlist_del_client,
10230           silc_idlist_del_channel and silc_idlist_del_server in the file
10231           silcd/idlist.c.  All of those leaked like a sieve.
10232
10233         * Fixed some small memory leaks in the client's function
10234           silc_client_notify_by_server.
10235
10236         * Added functions into silcd/server.c: silc_server_announce_clients,
10237           silc_server_announce_channels and silc_server_announce_server.
10238           These functions are used by normal and router server to announce
10239           to its primary router about clients, channels and servers (when
10240           router) that we own.  This is done after we've connected to the
10241           router.
10242
10243           These functions effectively implements the following packet types:
10244           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10245           and SILC_PACKET_NEW_ID_LIST.
10246
10247         * Added new functions into the silcd/packet_receive.[ch]:
10248           silc_server_new_id_list, silc_server_new_channel_list and
10249           silc_server_new_channel_user_list to handle the incoming
10250           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10251
10252         * Added support of changing Channel ID in the function
10253           silc_server_replace_id.  If the server that announces a channel
10254           to the router already exists in the router (with same name but
10255           with different Channel ID), router is responsible to send
10256           Replace ID packet to the server and force the server to change
10257           the Channel ID to the one router has.
10258
10259         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10260           client that the Channel ID has been changed by the router.  The
10261           normal server sends this to the client.  Client must start using
10262           the new Channel ID as the channel's ID.
10263
10264           Implemented handling of this new type into lib/silcclient/client.c
10265           into the function silc_client_notify_by_server.
10266
10267         * Added new function silc_idlist_replace_channel_id into the files
10268           silcd/idlist.[ch] to replace the Channel ID.
10269
10270 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10271
10272         * Call silc_server_command_identify_check always when processing
10273           the IDENTIFY command in silcd/command.c
10274
10275 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10276
10277         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10278           send keepalive packets.  The packet can be sent by clients,
10279           servers and routers.
10280
10281           Added function silc_socket_set_heartbeat into the file
10282           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10283           If not set, the heartbeat is not performed.  The actual
10284           heartbeat is implemented in the low level socket connection
10285           library.  However, application is responsible of actually
10286           sending the packet.
10287
10288           Added silc_server_send_heartbeat to send the actual heartbeat
10289           packet into silcd/packet_send.[ch].  Server now performs
10290           keepalive with all connections.
10291
10292         * Added silc_task_get_first function into lib/silcutil/silctask.c
10293           to return the timeout task with shortest timeout.  There was a bug
10294           in task unregistration that caused problems.  TODO has been
10295           updated to include that task system must be rewritten.
10296
10297         * The client library will now resolve the client information when
10298           receiving JOIN notify from server for client that we know but
10299           have incomplete information.
10300
10301         * Rewrote parts of silc_server_remove_from_channels and
10302           silc_server_remove_from_one_channel as they did not remove the
10303           channel in some circumstances even though they should've.
10304
10305         * Encryption problem encountered in server:
10306
10307           The LEAVE command used to send the Channel Key packet to the
10308           router immediately after generating it.  However, the code
10309           had earlier sent Remove Channel user packet but not immediately,
10310           ie. it was put to queue.  The order of packets in the router
10311           was that Channel Key packet was first and Remove Channel User
10312           packet was second, even though they were encrypted in the
10313           reverse order.  For this reason, MAC check failed.  Now, this
10314           is fixed by not sending the Channel Key packet immediately but
10315           putting it to queue.  However, this is more fundamental problem:
10316           packets that are in queue should actually not be encrypted
10317           because packets that are sent immediately gets encrypted
10318           actually with wrong IV (and thus MAC check fails).  So, packets
10319           that are in queue should be encrypted when they are sent to
10320           the wire and not when they put to the queue.
10321
10322           However, the problem is that the current system has not been
10323           designed to work that way.  Instead, the packet is encrypted
10324           as soon as possible and left to the queue.  The queue is then
10325           just purged into wire.  There won't be any fixes for this
10326           any time soon.  So, the current semantic for packet sending
10327           is as follows:
10328
10329           o If you send packet to remote host and do not force the send
10330           (the packet will be in queue) then all subsequent packets to the
10331           same remote host must also be put to the queue.  Only after the
10332           queue has been purged is it safe again to force the packet
10333           send immediately.
10334
10335           o If you send all packets immediately then it safe to send
10336           any of subsequent packets through the queue, however, after
10337           the first packet is put to queue then any subsequent packets
10338           must also be put to the queue.
10339
10340           Follow these rules and everything works fine.
10341
10342 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10343
10344         * Added new function silc_server_remove_clients_by_server to
10345           remove all client entries from ID list when the server connection
10346           is lost.  In this case it is also important to invalidate all
10347           client entires as they hold the invalid server entry.  This
10348           fixes fatal bug when server has lost connection and will reconnect
10349           again.
10350
10351 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10352
10353         * Made some sanity checks to silc_server_daemonise like to check
10354           whether the requested user and group actually exists.
10355
10356         * Added sanity check to SKE's silc_ske_responder_finish to check
10357           that the public and private key actually is valid.
10358
10359         * Invalidate the client's nickname when receiving Replace ID
10360           packet and the Client ID is being replaced.  This means that the
10361           server will query the nickname if someone needs it (client)
10362           a bit later.
10363
10364         * Sort the ID Cache in client library when the ID Cache data
10365           has changed (needs sorting).
10366
10367         * Do not allow for SILC client to create several connections to
10368           several servers.  The client does not support windows right now
10369           and generating multiple connections causes weird behaviour.
10370
10371           Irssi-silc client does support windows and can handle several
10372           connections without problems, see: www.irssi.org and SILC plugin.
10373
10374         * Fixed some places where client was added to the IDList.  The
10375           rule of thumb is following (in order to get everything right):
10376           If the client is directly connected local client then the
10377           `connection' argument must be set and `router' argument must be
10378           NULL to silc_idlist_add_client function.  If the client is not
10379           directly connected client then the `router' argument must
10380           bet set and the `connection' argument must be NULL to the
10381           silc_idlist_add_client function.
10382
10383         * The funtion silc_server_packet_send_local_channel actually did
10384           not check whether the client was locally connected or not.  It
10385           does that now.  Fixed a bug related to LEAVE command.
10386
10387         * Fixed Remove Channel User payload parsing bug in server's
10388           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
10389
10390         * The server's silc_server_save_channel_key now checks also the
10391           global ID list for the channel as it might not be in the local
10392           list.  Fixed a bug related to LEAVE command.
10393
10394         * Is this the end of the [<unknown>] buglet that has been lurking
10395           around for a long time?  A little for loop fix in server's
10396           silc_server_command_whois_parse that is used by both IDENTIFY
10397           and WHOIS command.  At least, this was a clear bug and a cause
10398           of one type of [<unknown>] buglet.
10399
10400         * WHOIS and IDENTIFY commands call the function
10401           silc_server_command_[whois/identify]_check function even if
10402           we are not router server.
10403
10404 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10405
10406         * Added --with-gmp configuration option.  If set the GMP
10407           is always compiled in the SILC source tree.  If not set then
10408           it is checked whether the system has the GMP3 installed.  If
10409           it has then the GMP won't be compiled (the system's headers
10410           and library is used), if it doesn't have it then the GMP is
10411           compiled in the SILC source tree.
10412
10413 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10414
10415         * Changed RSA private exponent generation to what PKCS #1
10416           suggests.  We try to find the smallest possible d by doing
10417           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
10418           not security fix but optimization.
10419
10420 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10421
10422         * Added new config entry [Identity] to fork the server and run
10423           it as specific user and group.  A patch from Bostik.
10424
10425         * Imported Dotconf configuration library into lib/dotconf.
10426           This will be used to create the SILC configuration files later.
10427           It will appear in the distsribution after this commit.
10428
10429 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10430
10431         * A big code auditing weekend happening.  Auditing code for
10432           obvious mistakes, bugs and errors.  Also, removing any code
10433           that is obsolete.
10434
10435           Removed files for being obsolete:
10436
10437           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
10438           inline in the file lib/silcutil/silcbuffer.h)
10439
10440           o lib/silcutil/silcbufutil.c (the header has inline versions)
10441
10442           Changed code to fix possible error conditions:
10443
10444           o The buffer formatting routines now check that the destination
10445           buffer really has enough space to add the data.  This applies for
10446           both buffer formatting and unformatting
10447           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
10448           unformatting was changed to accomodate following rules:
10449           XXX_*STRING_ALLOC will allocate space for the data into the pointer
10450           sent to the function while XXX_*STRING will not allocate or copy
10451           the data into the buffer.  Instead it sets the pointer from the
10452           buffer into the pointer sent as argument (XXX_*STRING used to
10453           require that the pointer must be allocated already).  This change
10454           makes this whole thing a bit more consistent and more optimized
10455           (note that the data returned in the unformatting with XXX_*STRING
10456           must not be freed now).  The routines return now -1 on error.
10457
10458           o Tried to find all code that use buffer_format and buffer_unformat
10459           and added return value checking to prevent formatting and
10460           especially unformatting errors and possible subsequent fatal
10461           errors.
10462
10463           o Changed ske->x and ske->KEY to mallocated pointers in
10464           lib/silcske/silcske.h.  Fixed possible data and memory leak.
10465
10466           o Added return value checking to all *_parse* functions.  Fixed
10467           many memory leaks as well.
10468
10469           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
10470           so that buffer overflows would not happen.  All code now also
10471           checks the return value as it can fail.
10472
10473 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10474
10475         * Added reconnection support to server if the normal server looses
10476           its connection to the router (for example if router is rebooted).
10477           The server performs normal reconnection strategy implemented
10478           to the server.  Affected file silcd/server.c.
10479
10480 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10481
10482         * Added new packet type SILC_PACKET_SET_MODE that is used to
10483           distribute the information about changed modes (for clients,
10484           channels and clients channel modes) to all routers in the
10485           network.  Updated the protocol specification accordingly.
10486
10487           Added functions into silcd/packet_send.c and
10488           silcd/packet_receive.c: silc_server_send_set_mode,
10489           silc_server_set_mode.
10490
10491           Added new files silcmode.[ch] into lib/silccore that implements
10492           the encoding and decoding of Set Mode Payload.  Added new type
10493           SilcSetModePayload.  Moved the definitions of different modes
10494           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
10495
10496 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10497
10498         * Oops, a little mistake in server's connection authentication
10499           protocol.  The protocol is not ended with FAILURE but with
10500           SUCCESS if the authentication is Ok. :)  Affected file is
10501           silcd/protocol.c.
10502
10503         * Implemented NICK_CHANGE notify handling in server in the file
10504           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
10505           the local clients on the channel.  After the changing nickname
10506           in router environment snhould work and the [<unknown>] nickname
10507           should appear no more.
10508
10509           The silc_server_replace_id function that receives the Replace ID
10510           payload now sends the NICK_CHANGE notify type also in the file
10511           silcd/packet_receive.c
10512
10513         * Changed WHOIS and IDENTIFY command to support the maximum amount
10514           of arguments defined in protocol specs (3328 arguments).  This
10515           fixed a bug that caused problems when there were more than three
10516           users on a channel.
10517
10518 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10519
10520         * Added extra parameter, command identifier, to the
10521           silc_client_send_command so that explicit command identifier
10522           can be defined.
10523
10524           Changed that ID list routines uses specific command identifier
10525           when sending WHOIS/IDENTIFY requests to the server so that they
10526           can be identified when the reply comes back.
10527
10528           Affected files lib/silcclient/command.[ch],
10529           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
10530
10531         * Added `sender' argument to silc_server_packet_send_to_channel
10532           to indicaet the sender who originally sent the packet to us
10533           that we are now re-sending.  Ignored if NULL.  Affected file
10534           silcd/packet_send.[ch].
10535
10536         * Added some server statistics support in silcd/server_internal.h
10537           SilcServerStatistics structure and around the server code.  Also
10538           send some nice statistics information when client is connecting
10539           to the client.
10540
10541 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10542
10543         * Fixed channel ID decoding in server's JOIN command reply in
10544           silcd/command_reply.c
10545
10546         * Fixed braodcasting of replace ID payload to not to send it if
10547           we are standalone server in silcd/packet_receive.c.
10548
10549         * Fixed all channel message sending routines to not to send
10550           packets to clients that has router set, since they are routed
10551           separately in the same function earlier.  Affects file
10552           silcd/packet_send.c and all channel packet sending functions.
10553
10554         * In USERS reply, res_argv[i] are not allocated, the table
10555           is allocated.  Thus changed that free the table, not its
10556           internals.
10557
10558         * In server's whois_check and identify_check if the client is
10559           locally connected do not send any WHOIS commands - they are not
10560           needed.
10561
10562 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10563
10564         * Fixed some minor bugs in client when sending WHOIS command.  The
10565           arguments was in wrong order.
10566
10567         * Removed statis function add_to_channel from server in
10568           silcd/command.c that was previously used with the joining but
10569           is obsolete now.
10570
10571         * Tested USERS command in router environment successfully with two
10572           routers, two servers and two clients.
10573
10574 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10575
10576         * Reorganized the USERS command and command reply in client library
10577           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
10578           When the command is given by user we register a pending command
10579           callback that will reprocess the command after the reply has been
10580           received from the server.  When reprocessing the packet we then
10581           display the information.  Thus, the USERS information is displayed
10582           now in the command callback instead of in the command reply
10583           callback.  The processing of the command is same as previously
10584           when server has sent the command reply in the JOINing process.
10585
10586         * Added to USERS command in silcd/command_reply.c to join the client,
10587           we didn't use to know about, to the channel after we've created
10588           a client entry for it.  Also, for clienet we did know already still
10589           check whether it is on the channel or not and add it if not.
10590
10591         * Removed silc_server_command_join_notify as the function and its
10592           use was obsolete.
10593
10594 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10595
10596         * Changed the client's pending command handling to the same as the
10597           server's pending command handling.  It is also now possible to
10598           execute command reply functions from other command reply
10599           function as the function callbacks for commands and command
10600           replies are one and same.  The pending commands are not static
10601           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
10602           in client connection context.  Thus, pending commands are server
10603           connection specific as it is convenient.
10604
10605           Changed the function silc_client_command_pending and
10606           silc_client_command_pending_del and added new function
10607           silc_client_command_pending_check.  Removed the
10608           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
10609           macros.
10610
10611         * Added cmd_ident, current command identifier, to the client
10612           connection context in lib/silcclient/client.h to keep track on
10613           command identifiers used in command sending.  Client's command reply
10614           function handling now supports the mandatory command identifiers.
10615
10616         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
10617           funtions in client to fully support pending command callbacks.
10618
10619         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
10620           as one of the arguments to the application in the command reply
10621           client operation.
10622
10623         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
10624           before first releasing SILC but came back.  Now it is removed again
10625           and should come back nomore.  The FORWARDED flag was used only
10626           by the JOINing procedure by forwarding the command packet to router.
10627           Now, the JOINing procedure has been changed to more generic (due
10628           to various router environment issues) and FORWARDED is not needed
10629           anymore for anything.  The protocol specification is yet to be
10630           updated.
10631
10632           Now, removed silc_server_packet_forward from server and the flag
10633           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
10634
10635 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10636
10637         * Renamed NAMES command to USERS command.  The NAMES was named that
10638           due to historical reasons.  Now it is renamed.  Also, rewrote
10639           parts of the USERS command.  The nickname list is not sent anymore
10640           by the server.  Only Client ID and mode lists are sent in the USERS
10641           command.  Changed this also to the protocol specification.
10642
10643           The client now resolves the names and stuff after it receives
10644           the USERS list from the server when joining to the channel.
10645
10646         * WHOIS and IDENTIFY commands has been changed to support multiple
10647           Client ID's per command.  One can now search for multiple users
10648           in the network by sending only one WHOIS or IDENTIFY command.
10649           Changed the code and the protocol specifications.
10650
10651         * Removed silc_server_command_identify_parse and changed that IDENTIFY
10652           uses silc_server_command_whois_parse to parse the request. */
10653
10654         * If normal server, do not parse the WHOIS and IDENTIFY requests
10655           before sending it to the router.  Saves some time.
10656
10657 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10658
10659         * Fixed JOIN command on client library.  Wrong number of arguments
10660           used to crash the client.
10661
10662         * Added silc_server_channel_has_global function to check whether
10663           channel has global users or not.
10664
10665         * Added silc_server_channel_has_local function to check whether channel
10666           has locally connected clients on the channel.
10667
10668         * The silc_server_remove_from_one_channel now checks whether the
10669           channel has global users or not after given client was removed from
10670           the channel.  It also checks whether the channel has local clients
10671           on the channel anymore.  If it does not have then the channel entry
10672           is removed as it is not needed anymore.
10673
10674         * The silc_server_notify now checks on JOIN notify whether the joining
10675           client is one of locally connected or global.  If it is global then
10676           the channel has now global users on the channel and that is marked
10677           to the channel entry.  Also, it now saves the global client to
10678           global list who is joining and JOINs it to the channel.  This is
10679           for normal server, that is.
10680
10681           Changed silc_server_send_notify_on_channel,
10682           silc_server_packet_relay_to_channel and
10683           silc_server_packet_send_to_channel check if we are normal server
10684           and client has router set (ie. global client) do not send the
10685           message to that client, as it is already routed to our router.
10686
10687         * Implemented LEAVE notify type handling in silc_server_notify
10688           function.
10689
10690         * Tested LEAVE command in router environment successfully.  Tested
10691           with two routers, two servers and two clients.
10692
10693         * Updated TODO.
10694
10695         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
10696
10697         * Implemented SIGNOFF notify type handling in silc_server_notify
10698           function.
10699
10700         * silc_server_remove_id now removes the client entry from all channels
10701           it has joined and thusly sends SIGNOFF notify type.
10702
10703         * Rewrote the NAMES list generation in server by removing two excess
10704           loops.  The lists are created now inside one loop.
10705
10706 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10707
10708         * silc_server_remove_channel_user checks now also global list
10709           for channel and client.
10710
10711         * silc_server_new_channel_user checks now both local and global
10712           list for channel and client.  Fixed a bug in client id decoding.
10713           Used to decode wrong buffer.
10714
10715         * silc_server_channel_message checks now both local and global
10716           list for channel entry.
10717
10718         * Tested channel joining (hence JOIN) in router environment
10719           successfully.  Tested with two routers, two servers and two
10720           clients.
10721
10722         * Tested channel message sending in router environment successfully.
10723
10724 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10725
10726         * Added silc_server_save_channel_key into server.[ch] to save the
10727           received channel key in Channel Key payload processing. It is
10728           also used in JOIN command reply handling.
10729
10730           Equivalent function silc_client_save_channel_key added into
10731           client.[ch] into client library.
10732
10733         * Changed JOIN command reply to send information whether the channel
10734           was created or not (is existing already) and the channel key
10735           payload.  Changed protocol specs accordingly.
10736
10737         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
10738           the request was sent by ID and not by nickname.  Crashed on
10739           NULL dereference.
10740
10741 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10742
10743         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
10744           now correctly save the received data.
10745
10746         * silc_server_free_sock_user_data now notifies routers in the
10747           network about entities leaving the network.
10748
10749           At the same time implemented functions silc_server_remove_id
10750           and silc_server_send_remove_id to receive and send REMOVE_ID
10751           packets.  The packet is used to notify routers in the network
10752           about leaving entities.  The ID removed will become invalid in
10753           the network.
10754
10755         * Added function silc_idlist_del_server into server. Removes and
10756           free's server entry from ID list.
10757
10758         * silc_server_private_message function now checks, if we are router,
10759           that the destination ID really is valid ID, naturally.
10760
10761         * In router when NEW_ID packet is received (for new client) the
10762           hash of the Client ID is saved in the ID Cache but the
10763           client->nickname is set to NULL, instead of putting the hash
10764           to it as well.
10765
10766           IDENTIFY command now also checks that client->nickname must be
10767           valid. If it is not if will request the data from the server who
10768           owns the client.  Added new function
10769           silc_server_command_identify_check.
10770
10771         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
10772           to set the command to already allocated Command Payload.
10773
10774         * Tested private message sending in router environment with two
10775           routers, two servers and two clients.  Fixed minor bugs and now
10776           it works fine.
10777
10778         * Fixed segfault from client's NAMES command. Used to crash if
10779           not on any channel.
10780
10781         * Forwarded packets must not be routed even if it is not destined
10782           to the receiver.  Changed server code comply with this.
10783
10784 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10785
10786         * Added `require_reverse_mapping' boolean value to ServerParams
10787           structure. If TRUE (not default) the server will require that
10788           the connecting host has fully qualified domain name.
10789
10790           If the reverse mapping is not required and hostname could not be
10791           found the IP address is used as hostname.
10792
10793 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10794
10795         * Implemented version string checking to both client and server.
10796           The check is incomplete currently due to the abnormal version
10797           strings used in development version of SILC.
10798
10799         * Changed all command functions in server to use the new
10800           CHECK_ARGS macro.
10801
10802 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10803
10804         * Changed char *data to unsigned char *data in ID Cache system to
10805           support binary data as ID Cache data. Changed code to support
10806           binary data in lib/silccore/idcache.c.
10807
10808         * Renamed silc_server_packet_relay_command_reply to
10809           silc_server_command_reply as it is normal packet receiving
10810           function. Rewrote the function to accept command replys for
10811           servers and not only for clients.
10812
10813         * Mark remote router always as registered server if we are connecting
10814           to it.  Otherwise, commands sent by the router to us are ignored.
10815
10816         * All ID List find routines now returns the ID Cache Entry pointer
10817           as well if requested.
10818
10819         * WHOIS command works now in router environment, tested with two
10820           routers, two servers and two clients.
10821
10822         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
10823           in router environment (as it is almost equivalent to WHOIS) but
10824           hasn't been tested thoroughly.  Added new functions:
10825
10826           silc_server_command_identify_parse
10827           silc_server_command_identify_send_reply
10828           silc_server_command_identify_from_client
10829           silc_server_command_identify_from_server
10830
10831         * Disabled route cache adding because adding two different ID's with
10832           same IP replaces the old cache entry thus giving wrong route.
10833           The entry->router->connection is always the fastest route anyway
10834           so route cache may not be needed.  Of course, new routes maybe
10835           established after receiving the ID when the entry->router->connection
10836           might not be anymore the most optimal.
10837
10838 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10839
10840         * Add route cache for received ID for fast routing.
10841
10842         * Added silc_server_packet_route to route received packet on router
10843           that is not destined to us.
10844
10845         * Renamed silc_server_get_route to silc_server_route_get.
10846
10847         * Added id_string and id_string_len fields into SilcServer to
10848           include encoded ServerID for fast comparing without excess
10849           encoding of the ID's.
10850
10851         * Cleaned up WHOIS command on server side. Added following static
10852           functions:
10853
10854           silc_server_command_whois_parse
10855           silc_server_command_whois_check
10856           silc_server_command_whois_send_reply
10857           silc_server_command_whois_from_client
10858           silc_server_command_whois_from_server
10859
10860         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
10861           arguments in command replies. All command functions should be
10862           updated to use this macro.
10863
10864 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10865
10866         * Minor typo fixes on command reply handling on server.
10867
10868 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10869
10870         * Added silc_server_command_add_to_channel internal routine to add
10871           the client to the channel after router has created the channel and
10872           sent command reply to the server.
10873
10874         * Added generic silc_server_send_command to send any command from
10875           server.
10876
10877         * Use static buffer with ID rendering instead of duplicating data.
10878
10879 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10880
10881         * Fixed a channel user mode bug when joining to a channel server gave
10882           everybody channel founder rights, oops.
10883
10884         * We mark ourselves as the router of the incoming server connection
10885           if we are router ourselves.  This way we can check in some packet
10886           sending functions whether it is locally connected server.  For
10887           incoming router connections we put NULL.
10888
10889         * For router sending packets locally means now always sending the
10890           packet cell wide; to local clients and local servers.  For normal
10891           server sending packet locally means sending it to only local
10892           clients.
10893
10894         * Fixed the JOIN command to really work in router environment.  If the
10895           channel is created it is always created by the router.  Router is
10896           also responsible of making the initial joining to the channel,
10897           sending JOIN notify to the sending server and distributing
10898           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
10899           does not exist server doesn't do anything else but forward the
10900           command to the router which performs everything.
10901
10902         * Added silc_server_send_channel_key function to send the Channel Key
10903           payload.
10904
10905         * Added silc_server_create_channel_key to create new channel key.  The
10906           channel key is now re-generated everytime someone joins or leaves
10907           a channel, as protocol dictates.  Note: channel->key_len is the
10908           key length in bits.
10909
10910 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10911
10912         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
10913           packet_receive.[ch] to separate packet sending and receiving
10914           routines.  The server.[ch] now includes everything else including
10915           actual packet processing (writing and reading data) and other
10916           server issues.
10917
10918           Renamed silc_server_private_message_send_internal to
10919           silc_server_send_private_message.  The routine is still though
10920           used only to relay private messages as server does not send
10921           private messages itself.
10922
10923           Renamed silc_server_new_channel to silc_server_create_new_channel
10924           and added new function sicl_server_new_channel that handles the
10925           incoming New Channel packet.  Added also new sending function
10926           silc_server_send_new_channel to send New Channel Payload.
10927
10928         * Added new function silc_server_notify to process incoming notify
10929           packet to the server/router. Server may then relay the notify
10930           to clients if needed.
10931
10932         * Added new function silc_server_new_channel_user to process incoming
10933           New Channel User packet.  Router will redistribute the packet and
10934           send JOIN notify to its local clients and locally connected servers
10935           if needed.  Normal server will send JOIN notify to its local client
10936           on same channel when received this packet.  Added also corresponding
10937           sending function silc_server_send_new_channel_user to sent the
10938           payload.
10939
10940         * Added boolean route argument to send_notif_to_channel and
10941           packet_send_to_channel functions to attempt to route the packet
10942           if it is TRUE and send only locally if it is FALSE.
10943
10944 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10945
10946         * silc_server_replace_id now broadcasts the received replace ID
10947           packet if it is not broadcast packet already. The router must
10948           broadcast to inform other routers about changed ID.
10949
10950         * Added backpointer to server's router into SilcServer context in
10951           silcd/server_internal.h.
10952
10953         * Fixed silc_server_packet_broadcast to send correct broadcast
10954           packets.
10955
10956         * The channel key is now distributed to the local client as soon
10957           as it is received from the router (in router environment) so that
10958           no other packet may be sent for the channel until client has
10959           received the key.
10960
10961         * silc_server_remove_channel_user now broadcasts the received
10962           Remove Channel User packet if it is not broadcast packet already.
10963           The router must broadcast to inform other routers about removed
10964           channel user.
10965
10966         * Added users field into SilcPacketContext that is a reference count
10967           of the context.  One can increase the reference count by calling
10968           silc_packet_context_dup which is now changed to just increase the
10969           reference count instead of duplicating the data.  The reference
10970           count is decresed by calling silc_packet_context_free that will
10971           free the data after the reference count hits zero.
10972
10973           For now on the packet context and everything allocated into it
10974           (including the raw packet from network) must be freed by calling
10975           the new silc_packet_context_free function.  Added also new function
10976           silc_packet_context_alloc that must be used now to allocate the
10977           context.  This also means that if a routine is asynchronous from
10978           silc_[client/server]_packet_parse_type the packet context must
10979           be duplicated by calling silc_packet_context_dup.  Otherwise it
10980           gets free'd after silc_[client/server]_packet_parse_type returns.
10981           Also, one must remember that if packet is duplicated then its
10982           reference count must be decresed by calling the free function as
10983           many times as it was duplicated.
10984
10985         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
10986           from both client and server.
10987
10988 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10989
10990         * Made joining to a channel working in router environment.
10991
10992         * Cleaned up JOIN command on server side and create function
10993           silc_server_command_join_channel internal routine to make the
10994           joining happen.
10995
10996 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10997
10998         * Changed silc_command_pending list to SilcDList.  Also, added
10999           `ident' field to SilcServerCommandPending structure to identify
11000           the reply and to call correct callback.
11001
11002           Added silc_server_command_pending_check function to replace the
11003           corresnponding macro.  The silc_command_pending list is not
11004           extern anymore.
11005
11006         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
11007           to set identifier to previously allocated Command Payload.  It
11008           is used to set identifier for command when resending Command
11009           Payload.
11010
11011         * Added silc_command_payload_encode_payload to encode Command
11012           Payload buffer from SilcCommandPayload structure.
11013
11014         * Added silc_argument_payload_encode_payload to encode Argument
11015           payload buffer from SilcArgumentPayload structure.
11016
11017 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11018
11019         * Changed WHOIS command to support router connection on server side.
11020           The whois request is always sent to router unless the server is
11021           standalone server.  After server has received the reply from the
11022           router will it send the reply to the client.
11023
11024         * Added silc_server_packet_broadcast into silcd/server.[ch] to
11025           broadcast received broadcast packet.  The function is used only
11026           by router.  The broadcast packet is always sent to the router's
11027           primary route.
11028
11029         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
11030           render given ID to printable string, for log files for example.
11031
11032 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11033
11034         * Made basic router to router connections working.  At least they
11035           can now connect to each other but nothing really works the way
11036           they are supposed - yet.
11037
11038         * Added new initiator token to RouterConnection configuration
11039           file in silcd/serverconfig.[ch].  It is used to tell whether we
11040           are the initiator to the remote router or whether we'll expect
11041           the other end to connect.
11042
11043         * Moved registering of listener task to silc_server_init, hence
11044           the server starts listenning as soon as it is run, even if it
11045           does not have connections to other routers.  Let's see how well
11046           this will work.
11047
11048         * Changed default connection retry timeouts for more suitable in
11049           silcd/server.h.
11050
11051         * Removed cipher and such arguments from silc_idlist_add_client
11052           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
11053           Added new function silc_idlist_add_data to add the keys and stuff
11054           to any ID entry.
11055
11056         * Added SilcIDListData structure and added it to SilcClientEntry
11057           and SilcServerEntry as their first field in the structure.  This
11058           way we can explicitly cast the ID entries to the SilcIDListData
11059           structure and get common data for the entries.  In past, we had
11060           to first check what type of connection it is and then cast it to
11061           correct ID entry type.  Now, we can directly cast the opaque
11062           pointer to the SilcIDListData (no matter what ID entry it actually
11063           is) and get the data needed.
11064
11065 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11066
11067         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
11068           in some circumstances even if threre were timeout tasks, though not
11069           IO tasks, but tasks anyway.  Now fixed.
11070
11071         * Defined SilcServerConnection structure to hold connection specific
11072           stuff about directly connected servers and routers.  The definition
11073           is currently in silcd/server_internal.h.  I thought about having
11074           a bit more important role fro this struct but for now it is used
11075           only when connecting to other server (or router actually).
11076
11077         * Added connecting retry support in server when connecting to
11078           router(s).  The retry feature implement exponential backoff
11079           algorithm.  Also, added SilcServerParams structure to hold default
11080           parameters for server.  For now, it include these retry settings
11081           and are hard coded.  After server is moded to be as Silc Server
11082           Library this structure will be more important.
11083
11084 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11085
11086         * Changed client librarys channel->clients table to SilcList and
11087           changed code accordingly.
11088
11089 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11090
11091         * Changed client's channel table to SilcList and changed code
11092           accordingly.  Also changed SilcChannelClientEntry to include back-
11093           pointer to the channel so that client entry can use that structure
11094           as list as well and we have fast cross-reference to the channel.
11095           This change dramatically decreased the complexity of channel
11096           handling with client entry and vice versa (removed one extra
11097           loop when searching for channel entry from many functions).
11098
11099         * Changed server->sim from table to SilcDList and changed code
11100           accordingly.
11101
11102         * NAMES command can now be used from user interface.  It will show
11103           the user list on the channel, neatly.
11104
11105         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11106           Code now saves realname of the user if it becomes available.
11107
11108         * Renamed configure.in to configure.in.pre and made ./prepare
11109           script to automatically add correct version string to
11110           configure.in which it creates from configure.in.pre.
11111
11112 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11113
11114         * NAMES command reply now shows users mode with the nickname when
11115           joining to channel.
11116
11117         * Moved silc_client_ch[u]mode[_char] functions from
11118           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11119           place sucks, they are utility functions and should be in some
11120           other file.
11121
11122         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11123
11124         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11125           cras.
11126
11127 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11128
11129         * Updated README.
11130
11131         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11132           a very good list library that is currently used in the SILC.  Defined
11133           SilcList API over the library because I didn't like the API very
11134           much.  See lib/trq/silclist.h for the API and examples of how to
11135           use the API.  Fixed various places in the code to use the new
11136           SilcList API. The SilcList is meant for lists that has a structure
11137           already defined as a list.  It is not suitable to add just some
11138           context to the list (in TRQ, the context is the list actually).
11139
11140           So, I defined SilcDList that can be used for the purpose where
11141           predefined list structure does not exit.  This can be used as
11142           such list.  Now some context just can be added to the SilcDList.
11143           Currently this list is not used in the SILC just yet, though there
11144           are a lot places where this can replace dynamically allocated
11145           tables and I will fix these places, later, to use SilcDList.
11146           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11147           and use TRQ internally).
11148
11149           Also fixed some annoying warning messages that the original TRQ
11150           code generated.  Also minor changes to TRQ's Makefile.in.
11151
11152         * Added support for querying by Client ID to both WHOIS and
11153           IDENTIFY commands into server, as required by the protocol.
11154
11155         * Removed method function pointers from SilcBuffer structure. They
11156           weren't used to anything and just increased the context size for
11157           no good reason.  This change also made silc_buffer_alloc and
11158           silc_buffer_free functions inline functions.
11159
11160         * Disabled command flooding detection support until it's fixed so
11161           that it accepts commands in but does not execute them more than once
11162           in two seconds.
11163
11164         * Added silc_net_localhost(), to return local hostname, into
11165           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11166           that must be initialized before calling silc_client_init.
11167
11168         * Added new function: silc_server_send_notify_on_channels to send
11169           notify messages to all channels client has joined.  It is assured
11170           that the message is sent only once per client.
11171
11172         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11173           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11174           function is generic and is used by server as well, not only by
11175           the logging routines.
11176
11177         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11178           the provided version string was not acceptable.  Added new function:
11179           silc_ske_check_version into lib/silcske/silcske.h.  The function
11180           must be implemented by the application (client or server) and it
11181           does not reside in the SKE library.  The function checks the version
11182           string remote end sent.
11183
11184         * Added back pointers (to opaque context and to SilcSocketConnection)
11185           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11186
11187         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11188           duplicate packet context structure.
11189
11190         * Changed `notify' client operation to send same arguments as client
11191           receives from server except for ID's.  ID's are mapped to correct
11192           ID entry and that is returned.  Also, if channel entry is not sent
11193           by server but the notify is for channel the channel entry is sent
11194           to application (otherwise application doesn't know that it is for
11195           channel (library gets it from packet's Destination ID)).
11196
11197         * Added silc_client_remove_from_channels into client library to
11198           remove a client from all channels it has joined to.  Used when
11199           received SIGNOFF notify from server.  Added also new function
11200           silc_client_replace_from_channels to replace old ID entry with
11201           new ID entry on all channels.  Used when received NICK_CHANGE
11202           notify from server.
11203
11204         * Fixed ID Cache list handling in silc_idlist_get_client in
11205           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11206           to get (or query) client by ID.
11207
11208         * Updated TODO list.
11209
11210         * Added connection authentication status message defined by the
11211           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11212           support for these into the code in client and server side.
11213
11214         * Added generic function silc_client_send_command to send any command
11215           with variable argument list.  Application should use this function
11216           to send commands if the command functions provided by the library
11217           does not suite for the application's user interface needs.
11218
11219         * Added new `failure' client operation.  Application is notified about
11220           received failure packet if client is executing a protocol.  In this
11221           case the protocol's execution has failed.
11222
11223         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11224           is required by the protocol.
11225
11226         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11227           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11228           error at our end.
11229
11230         * Added status flag to SilcSKE object to indicate realtime status
11231           of the SKE protocol.
11232
11233         * Application receives now exactly same command reply arguments as
11234           the library receives from server.  However, if ID is received the
11235           corresponding ID entry is returned to the application (eg. Client
11236           ID is mapped to correct SilcClientEntry entry and that is returned).
11237           Changed command_reply client operation due to this change.
11238
11239         * Changed all ID's in commands and in command replys as ID Payloads.
11240           Change affected both client and server side codes.
11241
11242           All ID's sent in SILC network (with execption of ID's in SILC
11243           Packet header) are sent in ID Payload to support variable length
11244           ID's.
11245
11246         * Server now notifies nick changes and notifies all clients on
11247           the channels about the new nickname (about the new Client ID,
11248           actually).
11249
11250         * Implemented CMODE command to change channel modes. Supports all
11251           channel modes defined by the protocol specs except ban and invite
11252           lists. (Also, private channel key mode is supported but support for
11253           setting private channel key in client is missing, thus, this mode
11254           has no effect on client side (except that server requires that the
11255           client uses private channel key and normal channel traffic does not
11256           work anymore)).
11257
11258           Also, invite mode works per se, but INVITE command does not work
11259           yet correctly, so you can set channel as invite only channel but
11260           inviting clients to the channel does not work (it is yet to be
11261           thought what's the best way to do it).
11262
11263         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11264           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11265           Implemented CUMODE command to change user's mode on the channel.
11266           Supports all modes defined by the protocol specs.
11267
11268         * Added NAMES command reply to return users modes on the channel.
11269
11270         * Removed unnecessary and slow ciphers from lib/silccrypt.
11271
11272         * Set SO_KEEPALIVE option to connection sockets by default.
11273
11274         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11275
11276         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11277           redefined the Notify Payload into protocol specs.
11278
11279         * Added silc_id_payload_parse_id to get ID directly from raw
11280           ID payload data.
11281
11282 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11283
11284         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11285           accept searching by Client ID as well.
11286
11287         * Added support for LEAVE and SIGNOFF notify types in client library.
11288
11289         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11290           to parse ID Payload from raw data.
11291
11292 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11293
11294         * Added flags parameter into silc_ske_assemble_security_properties
11295           function in lib/silcske/silcske.[ch].
11296
11297         * Changed notify client operation to fit better for notify messages
11298           sent by server.  The notify payload received from server is now
11299           passed to the application (after parsing it to SilcNotifyPayload).
11300           It is application's responsibility to retrieve the arguments
11301           from the payload and show the message the way it wants.  The message
11302           sent by server is implementation specific.
11303
11304         * Changed public keys to comply with the protocol specification.
11305           Old public keys are not supported anymore and are not compatible.
11306
11307         * Removed nickname from Channel Payload as the latest draft removed
11308           it.  The client must resolve the nickname from the NAMES command
11309           reply received when it joined the channel.
11310
11311           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11312
11313 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11314
11315         * Fixed some errors in protocol specification drafts.
11316
11317         * Created lib/silccore/silcnotify.c to implement Notify Payload
11318           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11319           generic payloads described by protocol specifications.  The file
11320           includes implementations for ID Payload and Argument Payload.
11321
11322         * Changed Command Payload implementation to use the new Argument
11323           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11324           to comply with SILC coding conventions.
11325
11326         * Added suppport for Argument Payload handling in Notify Payload
11327           implementation as protocol requires it.  Added the new support
11328           into server and client lib as well.
11329
11330 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11331
11332         * Added support for multiple nicknames on same channel.  [n] is
11333           added locally to the nickname if there are more than one same
11334           nicknames on the channel.
11335
11336         * Server now sends all nicknames that matched WHOIS request.
11337           Client also shows the list received from server.
11338
11339         * Added TOPIC command to client side.  User can now set and show
11340           current topic on channel.
11341
11342         * Added MOTD command to client and server.  Also, server sends the
11343           motd when client connects to the server.
11344
11345         * Changed version strings to comply ISO 8601.
11346
11347 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11348
11349         * Fixed protocol error handling in client library.  It should now
11350           cope even if the SKE fails for some reason.
11351
11352         * Made new protocol specification drafts for submitting to IETF.
11353
11354         * Implemented TOPIC command to server in silcd/command.c.
11355
11356         * Added two new notify types into lib/silccore/silcnotify.h:
11357           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
11358           notify nickname change and topic setting/change on a channel.
11359
11360         * API change of command_reply operation in client library.  The
11361           application gets now the status type received from server as well.
11362
11363 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11364
11365         * Removed the function just added to lib/silcutil/silcschedule.[ch].
11366
11367         * Cras fixed and optimized the packet handling even further and
11368           it should work now.  Minor change to the prototype of function
11369           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
11370
11371 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11372
11373         * Added new function into lib/silcutil/silcschedule.[ch]:
11374           silc_schedule_with_fd to select() a specified fd.  The function
11375           returns after timeout expires or data arrives or goes.  The
11376           function is used by packet routines to wait that all data is
11377           received from network.
11378
11379         * Fixed data reading from network in lib/silccore/silcpacket.c.
11380           The code now assures that all data is read from the fd and then
11381           continues packet processing.  This was a bug fix since the code
11382           used to drop some data in some circumstances.
11383
11384         * Added new function into lib/silcclient/client.[ch]:
11385           silc_client_start_key_exchange to start key exchange after
11386           connection has been established to server.  The code internally
11387           now uses this funtion but its main purpose was to provide it
11388           for applications that perform their own connecting.  After
11389           application has created a connection it merely calls this
11390           function to start the key exchange between client and server.
11391           The library takes care of everything else after that.
11392
11393           Updated also lib/silcclient/README to explain the usage of
11394           this new function.
11395
11396         * Do not send to application information that connection has
11397           been established.  Application gets notified it by connect
11398           operation anyway.
11399
11400 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11401
11402         * Applied cras's patch to add silc_schedule_one function.  The
11403           function runs scheduler once and returns.
11404
11405         * Fixed the scheduler after cras messed it up.  The timeout
11406           handling works now as it's supposed to work.
11407
11408         * Added into lib/silccore/ silcnotify.h to include notify
11409           message types support.  Changed silc_server_send_notify*
11410           functions, in server.[ch], to support those new notify types.
11411           Added the support for the notify types into client library,
11412           as well.  Added new notify client operation into ops.h in
11413           lib/silcclient/.
11414
11415         * Changed silc_server_packet_send_to_channel to send normal
11416           packets instead of just channel message packets.  The function
11417           is now used to send the notify packets to channels.  It is not
11418           used to send channel message packets anymore, as server never
11419           sends them anymore.
11420
11421         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
11422           va_arg()s as it seems to require it nowadays.  I guess, if SILC
11423           is compiled with older va_arg() the new code should work anyway.
11424
11425 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11426
11427         * Splitted core library.  Core library (lib/silccore) includes
11428           now only SILC protocol specific core (and common) components.
11429           Created new utility library (lib/silcutil) that includes more
11430           generic purpose stuff.  The stuff for util library was taken
11431           from the old core library.  This was minor and easy split.
11432
11433         * Created SILC Client Library (lib/silcclient) that includes
11434           implementation of the SILC client without user interface.  This
11435           was major move from silc/ directory.  The code has been changed
11436           so that it is transparent towards the user interface.  The
11437           silc/ directory includes now the same user interface as before
11438           and it uses the new client library.  Read lib/silcclient/README.
11439           Basicly, the client library performs everything else related
11440           to SILC except user interface handling.  Also, configuration
11441           files are considered to be part of user interface and library
11442           does not handle them.
11443
11444           This change also changed a lot of structures, function naming etc.
11445           Most important change was that SilcClientWindow object was
11446           renamed to SilcClientConnection in the client library.  Created
11447           also new file lib/silcclient/ops.h.  Also added new files
11448           silc/local_command.[ch] and silc/client_ops.[ch].
11449
11450           All these changes were made to make it easier for user interface
11451           designers to create what ever user interface for the SILC client
11452           they want.
11453
11454           It is also expected that the server will be moved to lib
11455           directory as well and SILC Server Library will be created;
11456           sometimes in the future.
11457
11458         * Removed Local commands from lib/silccore/silccommand.h as
11459           they are application specific and new client library does not
11460           handle any of those anymore.
11461
11462         * Several functions moved to lib/silcutil/silcutilc.[ch] from
11463           old client implementation in silc/.
11464
11465         * Added support for callback functions in SILC_LOG_* macros.
11466           Application can now set its own callbacks that will be called
11467           instead of using the default functions that will always print
11468           the debug messages to stderr (or stdout).  Also, debugging can
11469           now be disabled by setting silc_debug to FALSE and re-enabled by
11470           setting it to TRUE.  Note, that logging will still work even
11471           if debugging is disabled.
11472
11473           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
11474           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
11475           silc_log_reset_debug_callbacks.
11476
11477         * To enable debugging in silc client one must give now -d
11478           option on command line.
11479
11480         * Changed silc_schedule_init to automatically allocate task queues
11481           if they are not allocated before calling it.
11482
11483 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11484
11485         * Added GMP 3.1 into math library.
11486
11487 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11488
11489         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
11490           a channel in SILC network.  The packet is used by servers and
11491           routers to notify other routers that user has left a channel.
11492           This little feature was missing until now.  Added the feature
11493           to protocol specification as well.
11494
11495           Added functions: silc_server_send_remove_channel_user and
11496           silc_server_remove_channel_user into server.[ch].
11497
11498         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
11499           lib/silccore/silcpacket.h.  However, they are not implemented
11500           yet.
11501
11502 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11503
11504         * Fixed joining to a channel and sending channel messages
11505           between server and router.  The channel message sending should
11506           now work inside a cell.
11507
11508 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11509
11510         * Fixed the private message sending between server and router.
11511           The private message sending should now work inside a cell.
11512
11513         * Added silc_server_replace_id into server.[ch] to replace
11514           existing ID in the SILC network.
11515
11516         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
11517           and silc_idlist_replace_server_id into idlist.[ch] in server.
11518
11519 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11520
11521         * Fixed the server to server connections.  Server can again now
11522           connect to router.  Router to router connections probably does
11523           not work just yet.
11524
11525 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11526
11527         * Added dynamic protocol registering support.  Now protocols can
11528           registered and unregistered on the fly.  Patch by cras.
11529
11530 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11531
11532         * Added lib/contrib directory to hold routines that some platforms
11533           don't have but are needed by SILC.
11534
11535         * Added getopt.c, getopt1.c and getopt.h from GNU C library
11536           into lin/contrib to provide getopt() and getopt_long() for
11537           those who don't have it.
11538
11539 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11540
11541         * Added AWAY command to client.  When away message is set and
11542           client receives a private message packet the client automatically
11543           replies to the sender with the away message.
11544
11545         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
11546           bug seemed to be the cause of recent problems when compiling
11547           with gcc-2.95.
11548
11549         * Added version detection support to SKE protocol specification
11550           and added the new changes to the SKE implementation as well.
11551           There were other minor changes in the SKE protocol as well.
11552
11553           Many changes in lib/silcske/silcske.[ch] and in
11554           lib/silcske/payload.[ch].
11555
11556         * Added ^U functionality, clear input line.  Patch from cras.
11557
11558 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11559
11560         * Mainly small bugfixes on core library.  Fixed some debugging
11561           logging and buffer overflow in silclog.c.
11562
11563         * Updated config.sub and config.guess on the distribution tree.
11564
11565 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11566
11567         * Added command lagging support in server. Client may execute
11568           commands now only once in two seconds.
11569
11570 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11571
11572         * Optimized packet reception. MAC computation and checking is now
11573           also more optimized.  A lot previously duplicated code is now
11574           used as generic by both client and server.
11575
11576         * Fixed key pair generation in clientutil.c
11577
11578 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11579
11580         * Added into lib/silccore/silcbufutil.[ch] new function;
11581           silc_buffer_realloc.
11582
11583         * Moved generic packet sending/encryption functions to
11584           lib/silccore/silcpacket.[ch] from client and server.  Some
11585           rewriting of the functions.
11586
11587         * Moved all generic packet reception/decryption functions to
11588           lib/silccore/silcpacket.[ch] from client and server.  The
11589           packet processing is now much cleaner in both client and server.
11590           These were major changes in both client and server.
11591
11592         * Created many common functions in server to do packet sending.
11593           Previously code were duplicated a lot, this has been removed
11594           with these changes.
11595
11596 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11597
11598         * Rewrote major parts of the ID cache system.  Don't know
11599           whether it is better now or not but at least the API is more
11600           cleaner now.
11601
11602         * Major rewrite on ID cache stuff on client because of the ID
11603           cache API changes.  Added idlist.c to client.
11604
11605         * Also major rewrite on ID cache stuff on server as well.
11606           Major rewrite of idlist.[ch]. SilcXXXList's are now named
11607           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
11608           in hand, instead they are all put into the ID cache system now.
11609           All server_idlist_* routines uses ID cache now instead of
11610           traversing its own lists (those lists does not exist anymore).
11611           SilcIDList though still exists.  Also, SilcXXXEntry's are
11612           now pointers.
11613
11614 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11615
11616         * Finally made the SKE implementation compliant to the protocol
11617           specification.  All mp integers are now binary encoded as
11618           opposed being HEX encoded.
11619
11620         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
11621           from binary data.
11622
11623         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
11624           functions: silc_[encode/decode]_pem.  Also added function
11625           silc_encode_pem_file to PEM encode with newlines ('\n') for
11626           saving into a file.
11627
11628         * SILC public keys are now encoded either PEM or binary.  Same
11629           option is for private keys as well.  By default private keys
11630           are binary encoded and public keys PEM encoded.  Silly HEX
11631           encoding were removed.
11632
11633         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
11634           function to create fingerprints.
11635
11636         * Fixed a bug in SHA1; does not change the original data anymore.
11637
11638         * Partly implemented INFO command on client and server side.
11639           Fixed CLEAR command.  Changes to SERVER command; show current
11640           server(s) when giving command without arguments.  Added
11641           VERSION command to client.
11642
11643         * Added check to server that unregistered connections cannot
11644           execute commands (unless it is specificly allowed).
11645
11646 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11647
11648         * Fixed screen refresh.
11649
11650         * Fixed channel joining bug from client.  On some circumstances
11651           client tried to join to a channel it had already joined.
11652
11653         * Added public key verification process into client's protocol.c.
11654           The client now verifies the public key from user and saves
11655           it into ~./silc/serverkeys/ directory.
11656
11657           Added into: clientutil.[ch]: silc_client_verify_server_key.
11658
11659         * Changed SKE protocol's silc_ske_initiator_finish function
11660           to accept callback function that verifies the received public
11661           key.  Removed old silc_ske_verify_public_key function.
11662
11663 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11664
11665         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
11666           silc_pkcs_private_key[_data]_set.
11667
11668         * Made the password and public authentication more cleaner in
11669           server's protocol.c.
11670
11671         * Removed historic and obsolete protocol `channel_auth' from
11672           both client and server.
11673
11674         * Removed wrong way of sending command status messages from
11675           server to client in server's command.c.  The old way violated
11676           protocol specification.
11677
11678           Changes to silccore/silccommand.[ch]: removed
11679           silc_command_encode_status_payload -> not needed anymore,
11680           changed silc_command_encode_payload_va to accept extra
11681           argument on variable argument list.  The argument type must
11682           now be provided to the function.  Also, added new function:
11683           silc_command_encode_reply_payload_va which is same as
11684           normal command_encode_payload_va except command status type
11685           is provided as extra argument.
11686
11687 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11688
11689         * Added ~./silc directory handling.  The directory includes the
11690           public and private keys for the client.
11691
11692           Added silc_client_check_silc_dir, silc_client_create_identifier
11693           and silc_client_load_keys.
11694
11695         * Implemented SILC protocol compliant public key.  Added public
11696           and private key saving to and loading from files.
11697
11698           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
11699           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
11700           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
11701           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
11702           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
11703
11704           Implemented: silc_pkcs_save_[public/private]_key[_data] and
11705           silc_pkcs_load_[public/private]_key.
11706
11707 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11708
11709         * Added silc_server_get_route (route.[ch]) to get connection
11710           data for the fastest route for given ID.
11711
11712         * Implemented INVITE command on client and server.  The command
11713           were re-defined in the SILC Protocol Specification and the
11714           implementation now complies with the specification.
11715
11716         * Implemented PING command on client and server.
11717
11718         * Implemented NAMES command on client and server.  The server side
11719           supports currently only normal server not router server yet.
11720           Some changes to NAMES definition in SILC protocol specification.
11721
11722 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11723
11724         * Implemented LEAVE command on client and server.
11725
11726         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
11727           again.  This change was made to the protocol as well.  Server
11728           should not violate the protocol specification anymore.
11729
11730 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11731
11732         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
11733           was tested.  SOCKS4 was not but should work anyway.