updates.
[runtime.git] / CHANGES
1 Sun Sep  9 17:52:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * SILC Toolkit 1.1.3.
4
5         * Fixed possible buffer overflows from SILC Config code.
6           Patch from Jérémy Bobbio.  Affected file is
7           lib/silcutil/silcconfig.c.
8
9 Sun Aug 26 12:28:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
10
11         * Fixed TIMEOUT handling in user info resolving during JOINing,
12           fixes crash.  Affected file is lib/silcclient/client_notify.c.
13
14         * Fixed mandatory UN and HN SILC public key identifier checking
15           (both must be present).  Affected file is
16           lib/silccrypt/silcpk.c.
17
18 Tue Aug  7 20:56:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
19
20         * Fixed alignment issues with 64-bit CPUs.  Affected files
21           are lib/silcutil/silcschedule.c and unix/silcunixschedule.c.
22
23         * Added "There are now xx nick's" to "are xx nicks".  Affected
24           file is apps/irssi/src/fe-common/silc/module-formats.c.
25
26 Sat Aug 4 18:37:22 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
27
28         * Fixed USERS command user mode handling (integer overflow).
29           Affected file is lib/silcclient/command_reply.c.
30
31 Thu Jul 19 21:08:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
32
33         * Fixed big-endian issues from aes implementation.  Affected
34           files are lib/silccrypt/aes.c.
35
36         * Fixed lib/silcutil/silcatomic.h compilation on IA64.  Patch
37           from Jérémy Bobbio.
38
39         * Fixed public key identifier parsing to check lengths
40           correctly.  Affected file is lib/silccrypt/silcpk.c.
41
42 Wed Jul  4 08:06:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
43
44         * SILC Toolkit 1.1.2.
45
46         * SILC Client 1.1.2.
47
48 Mon Jul  2 17:28:47 CEST 2007  Pekka Riikonen <priikone@silcnet.org>
49
50         * In silc_client_free check that scheduler is allocated before
51           trying to free it.  Affected file is lib/silcclient/client.c.
52
53         * Fixed buffer overflow in NICK_CHANGE notify.  The destination
54           buffer for old nickname was too small.  Affected file is
55           lib/silclient/client_notify.c.
56
57 Sun Jul  1 19:15:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
58
59         * SILC Server 1.1 Beta1.
60
61 Sun Jul  1 12:40:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
62
63         * Added support for rekey with PFS when using CTR mode
64           encryption.  Affected file is lib/silcske/silcske.c.
65
66         * Added silc_idcache_move that can be used to move entries
67           between caches.  Affected files are
68           lib/silcapputil/silcidcache.[ch].
69
70         * Added better checks for invalid argument and notify payloads.
71           Affected files are lib/silccore/silcnotify.c and
72           silcargument.c.
73
74         * Fixed SILC_PACKET_FLAG_LONG_PAD bitmask value.  Affected
75           file lib/silccore/silcpacket.h.
76
77 Sat Jun 30 21:48:08 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
78
79         * Set the destination ID to packet stream as SKE responder
80           if ID was present in key exchange packet.  Affected file
81           is lib/silcske/silcske.[ch].
82
83         * Handle also zero timeouts in the scheduler notify callback
84           to avoid problems with SILC Plugin.  Affected file is
85           apps/irssi/src/silc/core/silc-core.c.
86
87 Thu Jun 28 19:19:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
88
89         * SILC Client 1.1.1.
90
91 Sun Jun 24 18:47:55 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
92
93         * SILC Toolkit 1.1.1.
94
95         * Compile sources with _GNU_SOURCE on Linux systems.  Affected
96           file is configure.ad.
97
98 Sun Jun 24 16:33:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
99
100         * Fixed Unix signal task dispatching to not lock the signals
101           when dispatching the callback to avoid deadlocks.  Affected
102           file is lib/silcutil/unix/silcunixschedule.c.
103
104 Sun Jun 24 14:43:21 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
105
106         * Fix configure output for with-plugin.  Affected file is
107           apps/irssi/configure.ad
108
109 Tue Jun 19 17:05:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
110
111         * Added SILC_VERSION macro for checking package versions at
112           compile time.  Affected files are configure.ad,
113           includes/silc.h.in and includes/silcversion.h.in.
114
115 Mon Jun 18 23:47:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
116
117         * Use SILC_VERIFY to assert that silc_rwlock_wrlock can be
118           called only once per thread on Unix.  Affected file is
119           lib/silcutil/unix/silcunixthread.c.  Added same for mutex
120           as well.   Documented same on the API in 
121           lib/silcutil/silcmutex.h.
122
123         * Fixed USERS command reply write-lock unlocking.  Affected file
124           is lib/silcclient/command_reply.c.
125
126 Mon Jun 18 08:14:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
127
128         * Fixed silc_create_key_pair to check for valid identifier.
129           Affected file is lib/silcapputil/silcapputil.c.
130
131 Sun Jun 17 20:08:26 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
132
133         * Rewrite signed public message handling, adopting the new
134           hilight interface.  Affected file is
135           apps/irssi/src/fe-common/silc/fe-silc-messages.c
136
137 Thu Jun 14 21:15:31 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
138
139         * Fix off by one error when loading modules.  Affected file is
140           apps/irssi/src/core/modules-load.c
141
142         * Don't delete hilight entry (because it's just a pointer, not a
143           copy).  Affected file is 
144           apps/irssi/src/fe-common/silc/fe-silc-messages.c
145
146 Mon Jun 11 22:10:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
147
148         * Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution
149           which can be used to check for Toolkit version in third-party
150           software.  Affected file is configure.ad, includes/silc.h.in.
151
152 Sun Jun 10 17:32:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
153
154         * Added support for channel@server channel name strings to
155           client library (SILC protocol version 1.3 change).  Affected
156           files are lib/silcclient/silcclient_entry.h, client_entry.c.
157
158         * Added full_nicknames and full_channel_names settings to
159           SilcClientParams that can be used to specify whether client
160           library returns full nickname and channel name strings.
161           Full strings are nick@server and channel@server.  Affected
162           file is lib/silcclient/client_entry.c and command.c.
163
164 Sat Jun  9 19:43:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
165
166         * Fixed unix connecting failure to return error code correctly.
167           Affected file is lib/silcutil/unix/silcunixnet.c.
168
169 Fri Jun  8 23:32:33 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
170
171         * Fixed SKE timeout double free crash.  Affected file is
172           lib/silcske/silcske.c.
173
174         * Fixed MIME multipart decoding buffer overflow.  Affected file
175           is lib/silcutil/silcmime.c.  Thanks to Matt Miller for patch.
176
177 Fri Jun  8 18:39:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
178
179         * Fixed connection auth protocol timeout crash.  Affected
180           file is lib/silcske/silconnauth.c.
181
182         * Fixed FSM machine finishing to check for existing threads
183           at the final free callback to allow time for the threads to
184           finish.  Affected file lib/silcutil/silcfsm.c.
185
186 Thu Jun  7 21:25:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
187
188         * Fixed silc_client_get_clients_local to check the nick's
189           server also if nick@server nickname string is given to the
190           function.  Affected file is lib/silcclient/client_entry.c.
191
192 Wed Jun  6 18:33:05 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
193
194         * Added notify callback to silc_schedule_init which can be used to 
195           set a notify callback for scheduler which is called when task is
196           added to scheduler or deleted from scheduler.  Affected file
197           is lib/silcutil/silcschedule.[ch].
198
199         * Dispatch timeout tasks after dispatching FD tasks if the timeout
200           was very short.  Affected file is lib/silcutil/silcschedule.c.
201
202         * Rewrote the SILC scheduler handling in SILC Client to not poll
203           every few msecs but to use the new notify callback.  Affected 
204           file is apps/irssi/src/silc/core/silc-core.c.
205
206         * Fixed SFTP client library read buffer size which was too small.
207           Affected file is lib/silcsftp/sftp_client.c.
208
209         * Fixed file transfer crash bug in /QUIT in SILC Client.  Close
210           the FTP sessions before quitting the client.  Affected file
211           is apps/irssi/src/silc/core/silc-servers.c.
212
213 Tue Jun  5 20:48:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
214
215         * Fixed silc_packet_get_ids to decode the IDs correctly.
216           Affected file is lib/silccore/silcpacket.c.
217
218         * Fixed silc_client_get_clients_local to parse correctly nickname
219           string that may have server name in it (nick@server) regardless
220           whether it was formatted nickname or not.  Affected file is
221           lib/silcclient/client_entry.c.
222
223 Mon Jun  4 22:02:53 CEST 2007  Jochen Eisinger <jochen@penguin-breeder.org>
224
225         * Only destroy sendbuffers, if they still exist (they cease to
226           exist during /upgrade).  Affected file is
227           apps/irssi/src/silc/core/silc-servers.c
228
229 Mon Jun  4 21:24:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
230
231         * Removed --enable-silc-plugin.  Added --with-silc-plugin.
232           Affected files are configure.ad, lib/configure.ad,
233           apps/irssi/configure.ad, apps/irssi/configure.in,
234           apps/irssi/scripts/Makefile.am,
235           apps/irssi/scripts/examples/Makefile.am,
236           apps/irssi/src/silc/core/silc/Makefile.am,
237           apps/irssi/src/fe-common/silc/Makefile.am.
238
239 Mon Jun  4 08:35:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
240
241         * SILC Client 1.1.
242
243 Sun Jun  3 14:00:09 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
244
245         * Fixed DESTDIR handling in make install.
246
247 Sat Jun  2 21:04:32 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
248
249         * SIM modules are not delivered to SILC CLient distribution
250           anymore.
251
252         * Changed default installation path from /usr/local/silc to
253           /usr/local for all distributions.
254
255         * Removed --with-etcdir and --with-docdir.  The etcdir is now
256           the system's default.  The Docdir is system's default.
257
258 Sat Jun  2 00:51:57 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
259
260         * If public key/private key loading fails set the return
261           pointer to NULL.  Affected file is lib/silccrypt/silcpkcs.c.
262
263         * If private key loading fails in silc_load_key_pair free the
264           loaded public key.  Affected file is
265           lib/silcapputil/silcapputil.c.
266
267         * Fixed key pair loading crash with SILC Plugin if key pair
268           loading fails.  Affected file is
269           apps/irssi/src/silc/core/silc-core.c.
270
271         * Fixed SILC Client help and script file installation path
272           to go to prefix/share/silc.  Affected files are
273           apps/irssi/src/scripts/Makefile.am and
274           apps/irssi/docs/help/Makefile.am.gen.
275
276 Thu May 31 16:49:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
277
278         * Fixed UTC offset minutes to be actually minutes.  Affected
279           file is lib/silcutil/silctime.c.
280
281 Thu May 31 09:40:56 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
282
283         * SILC Toolkit 1.1.
284
285         * Added support for checking for timezone and tm_gmtoff.
286           Affected files are configure.ad and lib/silcutil/silctime.c.
287
288 Wed May 30 18:46:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
289
290         * Added silc-toolkit.spec.in RPM spec file.
291
292 Mon May 28 23:21:39 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
293
294         * Fixed nickname formatting crash when updating existing
295           client entry.  Affected file is lib/silcclient/client_entry.c.
296
297         * Fixed MIME object encoding in attribute payload encoding.
298           Affected file is lib/silccore/silcattrs.c.
299
300 Mon May 28 09:02:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
301
302         * SILC Client 1.1 Beta6
303
304 Sun May 27 20:38:30 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
305
306         * Copy SILC Plugin's libfe_common_silc.so to libfe_silc.so so
307           that user's don't have to do it manually.  Affected file
308           is apps/irssi/src/fe-common/silc/core/Makefile.am.
309
310 Thu May 24 15:30:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
311
312         * SILC Toolkit 1.1 Beta4.
313
314         * Fixed channel and server entry freeing in client library.
315           Affected file is lib/silcclient/client_entry.c.
316
317         * Do not allow stopping client before it has been started.
318           Affected file is lib/silcclient/client.c.
319
320 Wed May 23 23:21:03 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
321
322         * Fixed formatted nickname renaming to rename also irssi's
323           nicklist (/NAMES etc).  Affected file is
324           apps/irssi/src/silc/core/client_ops.c.
325
326         * Fixed SILC Plugin crash when stopping client library before
327           it has been started.  Affected file is
328           apps/irssi/src/silc/core/silc-core.c.
329
330 Tue May 22 17:18:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
331
332         * For SILC Client and SILC Server check for 1.1 Toolkit
333           in configure.  Affected file is configure.ad.
334
335         * Added better library linking flags and orders for SILC Client.
336           Affected file is configure.ad, Makefile.defines_int.in and
337           apps/irssi/src/fe-text/Makefile.am
338
339 Mon May 21 08:26:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
340
341         * SILC Client 1.1 Beta5.
342
343 Sun May 20 18:34:22 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
344
345         * Add hooks for Irssi 0.8.11 module functions.  Affected file
346           is apps/irssi/src/fe-common/silc/fe-common-silc.c
347
348 Sat May 19 14:46:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
349
350         * Fixed passphrase authentication with server.  Affected file
351           is lib/silcclient/client_connect.c.
352
353         * Fixed passphrase authentication as responder.  Affected file is
354           lib/silcske/silcconnauth.c.
355
356         * Changed SilcAskPassphrase and SilcGetAuthMeth callbacks to
357           return data as const.  Affected file is
358           lib/silcclient/silcclient.h.
359
360         * Fixed timeout calculation in Symbian scheduler.  Affected
361           file is lib/silcutil/symbian/silcsymbianscheduler.c.
362
363 Fri May 18 21:10:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
364
365         * Do not uninitialize u.m.threads atomic int in finish but in
366           free.  Fixes crash on any platform using atomic operations
367           using mutexes (like Symbian).  Affected file is
368           lib/silcutil/silcfsm.c.
369
370         * Fixes Symbian scheduler wakeup synchronization.  Affected file
371           is lib/silcutil/symbian/silcsymbianscheduler.c.
372
373 Fri May 18 18:10:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
374
375         * Fixed nickname formatting to handle already formatted nicknames
376           better.  Affected file is lib/silccilent/client_entry.c.
377
378         * Added "foo#2 appears as foo" support to SILC Client when user
379           leaves or quits and one formatted nickname remain.  Affected file 
380           is apps/irssi/src/silc/core/client_ops.c.
381
382         * Send SilcChannelEntry to application in SILC_NOTIFY_TYPE_SIGNOFF.
383           Affected file is lib/silcclient/client_notify.c.
384
385 Thu May 17 18:05:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
386
387         * Fixed silc_show_public_key to not free public key in case of
388           failure.  Affected file is lib/silcapputil/silcapputil.c.
389
390 Thu May 17 17:09:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
391
392         * SILC Toolkit 1.1 Beta3.
393
394         * Porting Toolkit to Symbian.  It should work while some sporadic
395           odd crashes remain.  However I was able to run mybot on SILCNet.
396           Basically tested scheduler, net routines, socket  routines,
397           threads and some other utility routines.  Affected files are
398           in lib/silcutil/symbian/.
399
400 Thu May 17 11:57:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
401
402         * Show realname and email address from public key when verifying
403           cached public keys with GETKEY.  Affected files are
404           apps/irssi/src/fe-common/module-formats.[ch] and
405           apps/irssi/src/silc/core/client_ops.c.
406
407 Wed May 16 20:41:04 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
408
409         * Include SILC Plugin theme.  Affected file is apps/irssi/plugin.theme
410
411         * Include SILC Plugin /silc command help.  Affected file is
412           apps/irssi/docs/help/silc
413
414         * Create channels before joining them.  Affected file is
415           apps/irssi/src/silc/core/client_ops.c
416
417 Wed May 16 18:59:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
418
419         * Fixed channel private key listing with /key.  Affected file
420           is apps/irssi/src/silc/core/silc-channels.c.
421
422         * Fixed the public headers from anonymous structures.  Affected
423           files are lib/.
424
425         * Changed silc_buffer_*len macros to inline functions.  Affected
426           file is lib/silcutil/silcbuffer.h.
427
428 Wed May 16 10:21:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
429
430         * Fixed nickname format parsing in JOIN notify handling and
431           in WHOIS command reply.  Affected file is
432           apps/irssi/src/silc/core/client_ops.c.
433
434 Wed May 16 09:34:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
435
436         * SILC Client 1.1 Beta4.
437
438 Tue May 15 23:55:41 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
439
440         * Added SILC_VERIFY macro which is equivalent to SILC_ASSERT
441           but is compiled always in.  Affected file is 
442           lib/silcutil/silclog.h.
443
444         * Use SILC_VERIFY in FSM macros instead of SILC_ASSERT which is
445           not there in release builds.  Affected file is
446           lib/silcutil/silcfsm.h.
447
448 Tue May 15 21:19:09 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
449
450         * SILC Client 1.1-beta3
451
452 Mon May 14 23:20:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
453
454         * Added silc_utf8_c2w and silc_utf8_w2c to do UTF-8 to widechar
455           and widechar to UTF-8 conversions.  Affected files are
456           lib/silcutil/silcutf8.[ch].
457
458 Mon May 14 19:45:14 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
459
460         * Include a README for the SILC Plugin
461
462 Sun May 13 22:08:59 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
463
464         * Adopt perl Makefiles for SILC Plugin.
465
466 Sun May 13 18:27:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
467
468         * Fixed client library initialization when the running callback
469           is not given to silc_client_init.  Affected file is
470           lib/silcclient/client.c.
471
472         * Fixed Symbian compilation problems around the tree.  Added
473           new Carbide.c++ project files to symbian/ directory.
474
475         * Fixed SilcLog API to work on Symbian.  On Symbian it doesn't
476           use any globals.  Affected files are lib/silcutil/silclog.c
477           and silclog_i.h.
478
479 Sun May 13 16:54:35 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
480
481         * Fix several warnings in Irssi's Makefiles.
482
483 Sun May 13 12:16:30 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
484
485         * Disable ASM if --with-pic was given.  Affected file is
486           lib/silccrypt/configure.ad
487
488 Fri May 11 19:10:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
489
490         * Wakeup scheduler in silc_fsm_continue and silc_fsm_next_later
491           in case they are called from a thread.  Affected file is
492           lib/silcutil/silcfsm.c.
493
494         * Fixed WIN32 thread creation to handle the Tls correctly.
495           Affected file is lib/silcutil/win32/silcwin32thread.c.
496
497 Thu May 10 18:29:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
498
499         * SILC Toolkit 1.1-beta2.
500
501 Thu May 10 18:21:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
502
503         * Fixed silc_net_tcp_connect crash on Unix and Win32.  Handle
504           the socket async operation correctly.  Changed that DNS lookup
505           is now done during connecting.  Affected files are
506           lib/silcutil/[unix|win32]/silc[unix|win32]net.c.
507
508         * Changed also silc_net_tcp_connect on Symbian to do DNS lookup.
509           Affected file is lib/silcutil/symbian/silcsymbiannet.c.
510
511         * Optimize silc_net_gethostbyname to check if the name is already
512           IP address.  Affected file is lib/silcutil/silcnet.c.
513
514 Wed May  9 19:51:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
515
516         * Print filename instead of empty function name in debug output
517           on WIN32.  Affected files are lib/silcutil/silclog_i.h and
518           silclog.c.
519
520         * Rewrote WIN32 SILC Scheduler.  It now handles non-blocking file 
521           descriptors and sockets better.  Though, room for optimization
522           remains.  Affected file is lib/silcutil/win32/silcwin32schedule.c.
523
524         * Removed silc_net_win32_[init|uninit].  They are called now
525           automatically when SILC Scheduler is allocated.  Wrote IPv4
526           address parser because inet_addr seemed not to work on my WIN32.
527           Affected file is lib/silcutil/win32/silcwin32net.c.
528
529         * Improved socketstream.h and stream.h documentation.
530
531 Tue May  8 18:13:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
532
533         * Changed private message waiting API in client library to make
534           it work better with multiple waiting threads.  The waiting is
535           not always per client entry instead of per connection.  Affected
536           files are lib/silcclient/client_prvmsg.c, client.h and
537           silcclient.h.
538
539         * Changed silc_packet_wait_init function to accept the the expected
540           Source ID of the packet as argument.  If specified only packets
541           with the specified types and Source ID are delivered.  Affected
542           files are lib/silccore/silcpacket.[ch].
543
544         * Fixed file transfer disconnection crash when closing the session
545           directly in the monitor callback after disconnection.  Affected
546           file is lib/silcclient/client_ftp.c.
547
548         * Make Toolkit compile on WIN32.  Affected files in win32/
549           and in lib/silcutil/win32/.
550
551         * Changed silc_compare_timeval to return negative, zero or
552           positive instead of just TRUE or FALSE.  This fixes 0 timeout
553           task dispatching on Windows.  Affected files are
554           lib/silcutil/silctime.[ch] and silcschedule.c.
555
556 Mon May  7 18:18:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
557
558         * Fixed CMODE channel auth public key retrieval.  Affected
559           file is lib/silcclient/command.c.
560
561         * Fixed CMODE command reply to return channel public keys
562           correctly.  Affected files are lib/silcclient/command_reply.c
563           and client_channel.c.
564
565 Sun May  6 12:43:19 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
566
567         * Added current channel key cipher name and HMAC name to
568           SilcChannelEntry.  Fixed channel private key creation.
569           Affected files are lib/silcclient/client_channel.c,
570           client_entry and silcclient_entry.h.
571
572         * Allow formatted nicknames as input to silc_client_get_clients
573           and silc_client_get_clients_whois.  Affected file is
574           lib/silcclient/client_entry.c.
575
576         * Fixed silc_message_payload_free crash.  Affected file is
577           lib/silccore/silcmessage.c.
578
579         * Added SILC_STATUS_ERR_NO_SUCH_PUBLIC_KEY to
580           lib/silccore/silcstatus.h.
581
582 Thu May  3 18:07:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
583
584         * Imported libtommath 0.41.  Renamed all mp_* functions to
585           tma_mp_* functions to avoid rare linking problems on systems
586           with mp_* functions.  Affected files are in lib/silcmath/.
587
588 Wed May  2 17:46:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
589
590         * SILC Toolkit 1.1 Beta1.
591
592 Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
593
594         * Set the server and router operator modes to local entry after
595           successful OPER or SILCOPER commands.  Affected file is
596           lib/silcclient/command_reply.c.
597
598 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
599
600         * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
601           and other smaller APIs to WIN32.  Affected files are in
602           lib/silcutil/win32/.
603
604         * Changed the various regex APIs as generic code in util library.
605           Affected files are lib/silcutil/silcstrutil.[ch].
606
607 Sat Apr 28 13:47:47 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
608
609         * Ported SILC Server to the new Toolkit API, working towards
610           SILC Server 1.1.  Affected files are in apps/silcd/.
611
612         * Added silc_skr_del_public_key, silc_skr_[ref|unref]_public_key
613           to lib/silcskr/silcskr.[ch].
614
615         * Fixed SILC public key copying to copy the identifier also.
616           Affected file is lib/silccrypt/silcpk.c.
617
618         * Added silc_packet_error_string to lib/silccore/silcpacket.[ch].
619
620         * Fixed OPER and SILCOPER passphrase asking in Client library.
621           Affected file is lib/silcclient/command.c.
622
623 Tue Apr 24 17:55:24 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
624
625         * Fixed command queue enabling after connecting to server.
626           The comparisons was from after changing to silc_utf8_strcasecmp.
627           Affected file is apps/irssi/src/silc/core/silc-servers.c.
628
629         * Fixed nickname setting with own client entry with 1.3 protocol
630           version server.  Affected file lib/silcclient/client_register.c.
631
632         * Ignore error notify for local client entry.  Affected file is
633           lib/silcclient/client_notify.c.
634
635         * Implemented responder rekey to SKE library.  Affected files are
636           lib/silcske/silcske.[ch].
637
638         * Fixed connection auth protocol completion sending.  Affected
639           file lib/silcske/silcconnauth.c.
640
641 Mon Apr 23 17:20:01 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
642
643         * Do not call TCP network listener callback with any error
644           status, as documented.  Affected file is
645           lib/silcutil/unix/silcunixnet.c.
646
647 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
648
649         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
650
651         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
652           Changed silc_skr_find to have SilcSchedule argument and removed
653           it from silc_skr_[alloc|init].  Affected files are
654           lib/silcskr/silcskr.[ch].
655
656         * Allow NULL id for silc_idcache_add.  Affected file is
657           lib/silcapputil/silcidcache.c.
658
659         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
660           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
661           Fixed also channel message encryption with router-to-router
662           packets.
663
664         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
665
666         * Added silc_net_get_error_string, silc_net_listener_get_ip and
667           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
668
669 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
670
671         * Add option --enable-silc-plugin.  Affected files are
672           apps/irssi/configure.{ad,in}
673
674         * Only compile the SILC Plugin if required.  Affected files are
675           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
676
677         * Conditionally build the SILC Plugin.  Affected files are
678           apps/irssi/src/silc/core/Makefile.am,
679           apps/irssi/src/fe-common/silc/Makefile.am
680
681         * Backout delayed protocol exit and replace with a lame busy
682           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
683           apps/irssi/src/silc/core/silc-core.c
684
685         * Fix key generation for SILC Plugin.  Affected file
686           apps/irssi/src/silc/core/clientutil.c
687
688 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
689
690         * Only pass -rpath to libtool when building shared libraries.
691           Affected file lib/Makefile.ad
692
693         * Removing the stray "s" in configure.ad
694
695 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
696
697         * Redraw the screen after creating a new key.  Affected file
698           apps/irssi/src/silc/core/clientutil.c
699
700 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
701
702         * Added SILC Client setting /set nickname_format that specifies
703           the nickname format string.  Changed default nickname format
704           string to "%n#%a".  Affected file is
705           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
706
707         * Fixed nickname parsing with WHOIS command to accept formatted
708           nicknames.  Changed the silc_client_get_clients_local to allow
709           the searched nickname to be formatted nickname.  Removed %s and
710           %S nickname formatters.  Affected files are in lib/silcclient/.
711
712         * Added silc_client_nickname_parse to Client library API.  Affected
713           file is lib/silcclient/silcclient.h.
714
715         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
716           commands.  Affected file are
717           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
718
719 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
720
721         * Incorporate SILC Plugin patches.  Affected files are
722           apps/irssi/src/fe-common/silc/module-formats.{c,h},
723           apps/irssi/src/silc/core/clientutil.{c,h},
724           apps/irssi/src/silc/core/silc-core.c,
725           apps/irssi/src/silc/core/silc-chatnets.{c,h},
726           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
727           apps/irssi/src/fe-common/silc/module.h
728
729 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
730
731         * In notify handling resolve user entries many times if the
732           resolving timedout.  Affected file lib/silcclient/client_notify.c.
733
734         * silc_client_get_clients_local do not return any invalid entries.
735           Affected file is lib/silcclient/client_entry.c.
736
737         * Do not print "there are now xx user on this channel" for users
738           that actually aren't anymore on the channel.  Affected file
739           is apps/irssi/src/client_ops.c.
740
741 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
742
743         * When joining channels with a password given in the config file,
744           use it.  Also use it when cycling (it would be better to get
745           the password from the server, but this isn't possible in SILC).
746           Affected files apps/irssi/src/silc/core/silc-servers.c,
747           apps/irssi/src/silc/core/silc-channels.c
748
749 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
750
751         * Import perl script for sign_messages from silc-plugin.  Affected
752           file apps/irssi/scripts/silc.pl
753
754 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
755
756         * Only wait for a nick on connecting, when it differs
757           (not counting case) from the username.  Affected file
758           is apps/irssi/src/silc/core/silc-servers.c
759
760 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
761
762         * Use time settings for lag settings.  Affected file is
763           apps/irssi/src/silc/core/silc-lag.c
764
765 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
766
767         * Added silc_thread_yield.  Affected file is
768           lib/silcutil/silcmutex.h.
769
770 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
771
772         * Fixed WHOIS command and requested attributes handling in
773           client library.  Affected files are lib/silcclient/command.c
774           and lib/silcclient/client_attrs.c.
775
776         * Fixed silc_time_value to actually work.  Added new function
777           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
778
779 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
780
781         * SILC Client 1.1 beta2.
782
783 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
784
785         * Fixed client to properly abort TCP stream creation when
786           giving /QUIT.  Affected file
787           apps/irssi/src/silc/core/silc-servers.c.
788
789         * Fixed several connecting aborting crashes from the client
790           library, packet engine and socket stream.  Affected files
791           are in lib/silclient/, lib/silccore/silcpacket.c and
792           lib/silcutil/unix/silcunixsocketstream.c.
793
794         * Fixed private key export double free crash in key generation.
795           Affected file is lib/silccrypt/silcpk.c.
796
797         * Fixed FSM event waiting when there are multiple signallers
798           and the waiter goes away after the first signal.  Affected
799           file in lib/silcutil/silcfsm.c.
800
801 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
802
803         * Fixed FSM event signalling to check if the waiter has gone
804           away already.  Affected file is lib/silcutil/silcfsm.c.
805
806         * Fixed counter mode encryption/decryption to handle non-padded
807           SILC packets correctly.  The silc_cipher_set_iv now
808           in counter mode resets for a new block.  Affected files are
809           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
810
811 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
812
813         * SILC Client 1.1 beta1.
814
815         * Memory leak fixes around the libraries.
816
817 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
818
819         * Added better check for epoll() in configure.  Affected file
820           is lib/configure.ad.
821
822 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
823
824         * Fixed per scheduler data input buffer in packet engine.  Use
825           list of inbufs instead of just one so that multiple streams
826           can do partial reads to different buffers.  Affected file is
827           lib/silccore/silcpacket.c.
828
829         * Fixed WATCH notify handling in client library.  Affected file
830           is lib/silcclient/client_notify.c.
831
832 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
833
834         * Fixed packet wrapper stream API to support encoder/decoder
835           for packets, and to handle partial reading correctly.  Fixed
836           also inbuf size checking in reading to have enough space before
837           reading.  Affected files are lib/silccore/silcpacket.[ch].
838
839         * Rewrote file transfer in client library.  Affected files are
840           in lib/silcclient/.
841
842         * Added TCP/UDP listener (internal) API to client library to have
843           generic way of dealing with listeners.  Fixed Key Agreement and
844           file transfer to use it.  Affected files are in lib/silcclient/.
845
846         * Fixed SKE to process SUCCESS packets synchronously and to call
847           completion synchronously.  Affected file is lib/silcske/silske.c.
848
849         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
850
851         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
852           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
853
854 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
855
856         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
857           to client library.  Affected file is
858           lib/silcclient/client_register.c.
859
860         * Serialize NICK and JOIN commands to avoid problems locally
861           with changing ID while joining to channel.  Affected file is
862           lib/silcclient/command.c.
863
864         * Fixed entry resolving while handling incoming JOIN notify.
865           Handle properly cases, in re-processing of notify packets, where
866           the IDs may become invalid while resolving the entry (like nick
867           change).  Entry is invalid if it doesn't have nickname, and such
868           entries are not delivered to application anymore.  These fixes
869           problems of not seeing JOINs when remote user changes nickname
870           at the same time.  Affected files are in lib/silcclient/.
871
872 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
873
874         * Added support for computing message payload MAC in new way
875           (SILC Protocol version 1.3).  Bakcwards support for old way
876           remains.  Affected files are lib/silccore/silcmessage.[ch].
877
878 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
879
880         * Added SilcRwLock API, a read/write lock.  Affected files are
881           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
882
883 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
884
885         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
886
887 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
888
889         * The silc_schedule_set_listen_fd now returns boolean value.
890           Fixed FD task adding to check correctly for already added
891           FD tasks.  Added stricter error checking for FD scheduling
892           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
893           and lib/silcutil/unix/silcunixschedule.c.
894
895         * The silc_stream_set_notifier now returns boolean value.  Changed
896           all streams to support and check for the error condition.
897           Affected files are in lib/silcutil/.
898
899         * Fixed SKE library session aborting and deletion.  Affected
900           file are lib/silcske/silcske.c.
901
902 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
903
904         * Implemented PKCS #1 with appendix with hash OID in the
905           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
906           lib/silccrypt/silchash.[ch] and
907           lib/silcasn1/silcasn1[_encode|decode].[ch].
908
909 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
910
911         * Added support for Version (V) SILC public key identifier.
912           Affected files are lib/silccrypt/silcpk.[ch].
913
914 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
915
916         * Rewrote connection auth request in client library.  It is now
917           done automatically by the library and the resolved method given
918           as a hint to get_auth_method client operation.  Affected files
919           are lib/silcclient/.
920
921 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
922
923         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
924           It can be used to wrap SilcPacketStream into SilcStream.
925
926         * Fixed %p formatting from silc_snprintf.  Affected file is
927           lib/silcutil/silcsnprintf.c.
928
929         * Ported SFTP library to new utility library.  Ported also
930           the SFTP testers.  Affected files in lib/silcsftp/.
931
932 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
933
934         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
935           of silc_snprintf, silc_vsnprintf, silc_asprintf and
936           silc_vasprintf.
937
938 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
939
940         * Added preliminary Symbian support.  Changes around the source
941           tree.  The symbian/ directory now includes Carbide.c++ project
942           files to compile the sources.
943
944         * Added silc_snprintf.  Affected files are
945           lib/silcutil/silcstrutil.[ch].
946
947 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
948
949         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
950           macros.  SILC_FSM_CONTINUE macro now immediately calls the
951           next state instead of first returning back to FSM.  Helps
952           in debugging crashes etc.
953
954           Removed FSM Semaphores.  Introduced FSM Event which is
955           asynchronous event.   Affected files are in lib/.
956
957         * Added epoll(7) support to SILC Scheduler.  It is used by default
958           if it is available.  Affected files are
959           lib/silcutil/silcschedule.[ch],
960           lib/silcutil/unix/silcunixschedule.c.
961
962 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
963
964         * Added CTR mode to AES.  Simplified cipher implementation API
965           more.  Affected files are in lib/silccrypt/.
966
967 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
968
969         * Removed `detach' client operation.  The detachment data is
970           now delivered in SILC_COMMAND_DETACH command reply to
971           application.  Affected file in lib/silcclient/.
972
973         * Rewrote resuming/detaching in client library.
974
975         * Added boolean encryption indicator for silc_cipher_set_key.
976           Affected files lib/silccrypt/silccipher.[ch].
977
978 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
979
980         * Added silc_likely and silc_unlikely macros for GCC branch
981           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
982
983         * Added assembler AES optimization.  Cleaned up the SILC Cipher
984           implementation API.  Affected files are in lib/silccrypt/.
985
986 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
987
988         * Changed back the SILC_FSM_THREAD_WAIT operation to not
989           continue to next state if thread is finished already.  That
990           check is not done anymore.  Affected files are
991           lib/silcutil/silcfsm.[ch].
992
993 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
994
995         * Removed silc_packet_[get|set]_ciphers and
996           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
997           handle REKEY_DONE packet sending in rekey.  Affected files
998           are lib/silccore/silcpacket.[ch].
999
1000         * Added silc_fsm_is_started.  Affected files are
1001           lib/silcutil/silcfsm.[ch].
1002
1003         * Added settings sign_channel_message, sign_private_message
1004           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
1005           support for key agreement in /KEY command. Affected files
1006           in apps/irssi/src/silc/core/.
1007
1008         * During SILC Client initialization forward log messages to
1009           stderr.   Affected files in apps/irssi/src/silc/core/.
1010
1011 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1012
1013         * Added silc_ske_get_key_material.  Affected files are
1014           lib/silcske/silcske.[ch].
1015
1016         * Added silc_packet_stream_is_udp.  Affected files are
1017           lib/silccore/silcpacket.[ch].
1018
1019         * Added SKE packet retransmission support with UDP transport.
1020           Affected file is lib/silcske/silcske.c.
1021
1022 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1023
1024         * Added silc_socket_stream_is_udp.  Affected file is
1025           lib/silcutil/silcsocketstream.[ch].
1026
1027         * Added UDP transport support to packet engine.  Affected file
1028           is lib/silccore/silcpacket.c.
1029
1030         * Added silc_socket_stream_is_udp.  Affected file is
1031           lib/silcutil/silcsocketstream.[ch].
1032
1033 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1034
1035         * Added silc_packet_send_va[_ext] to send variable argument
1036           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
1037
1038         * Timeout freelist garbage collection added to scheduler.
1039           Affected file lib/silcutil/silcschedule.c.
1040
1041 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1042
1043         * Added silc_show_public_key_file to
1044           lib/silcapputil/silcapputil.[ch].
1045
1046         * Added SILC_STR_ADVANCE support for buffer unformatting.
1047           Affected file lib/silcutil/silcbuffmt.c.
1048
1049 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
1050
1051         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
1052
1053         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
1054
1055         * silc_fsm_continue[_sync] now cancels erlier timeout set with
1056           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
1057
1058 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
1059
1060         * Added SILC_STR_FUNC to buffer format API.  Affected files
1061           are lib/silcutil/silcbuffmt.[ch].
1062
1063         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
1064
1065         * No more memory allocation for message payload parsing.
1066           Pre-allocated buffer can be used with message payload encoding.
1067           Affected files lib/silccore/silcmessage.[ch].
1068
1069 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1070
1071         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
1072           to silcutil/silcbuffmt.[ch].
1073
1074 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1075
1076         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
1077           Affected file lib/silcutil/silcbuffmt.[ch].
1078
1079         * Removed silc_schedule_signal_[un]register and
1080           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
1081           to add signal task.  Only one callback per signal may be
1082           added.  The signals are now automatically called back to
1083           caller.  Affected files lib/silcutil/silcschedule.[ch] and
1084           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
1085
1086         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
1087
1088         * Added SilcSKEParams for SKE parameters and simplied even more
1089           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
1090           Added support for IV included and session port handling with
1091           UDP/IP connections.
1092
1093         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
1094           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
1095           which is called after every rekey when IV Included flag is used.
1096           See SILC specifications for details.
1097
1098 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1099
1100         * Added lib/silcapputil and moved SILC application specific
1101           utility routines from the generic util library lib/silcutil
1102           to the new library.  Removed lib/silcidcache and moved that
1103           to lib/silcapputil as well.
1104
1105 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1106
1107         * Added SILC_STR_ADVANCE.  Affected file is
1108           lib/silcutil/silcbuffmt.[ch].
1109
1110         * The silc_buffer_strformat preserves buffer locations now.
1111
1112         * Added lib/silcutil/silcatomic.h for atomic operations.
1113
1114 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1115
1116         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
1117           server.
1118
1119         * Fixed MIME deocing when data portion is not present.
1120           Affected file lib/silcutil/silcmime.c.
1121
1122 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1123
1124         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
1125
1126         * Added IV Included support to packet routines, to allow
1127           packet sending and receiving on UDP/IP.  Affected files are
1128           lib/silccore/silcpacket.[ch].
1129
1130         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
1131
1132 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1133
1134         * Added UDP support to network and socket stream library.
1135
1136 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1137
1138         * Added conditional variables.  New files are
1139           lib/silcutil/silcondvar.h and platform specific implementations.
1140
1141 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
1142
1143         * make sure session->hostname and session->port are valid before the
1144           application callback is done, since things will go wrong if the
1145           application immediately calls silc_client_file_receive. Affected
1146           file lib/silcclient/client_ftp.c.
1147           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
1148
1149 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1150
1151         * New SILC PKCS API enabling support for other public keys
1152           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
1153
1154         * Separated SILC Public Key Payload routines from the PKCS API
1155           to lib/silccore/silcpubkey.[ch].
1156
1157 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1158
1159         * Added SILC Key Repository library, lib/silcskr.
1160
1161         * Added SILC Server library, lib/silcserver.
1162
1163 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1164
1165         * MIME objects in attributes now use SilcMime.  Affected files
1166           are lib/silccore/silcattrs.[ch].
1167
1168 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1169
1170         * Synchronize semaphore posting for real threads in FSM.
1171           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
1172
1173 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1174
1175         * Added silc_file_set_nonblock.  Affected file is
1176           lib/silcutil/silcfileutil.h.
1177
1178         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
1179
1180 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1181
1182         * FSM based implementation of SILC SKE.  Simpler interface also.
1183           Affected files are in lib/silcske/.
1184
1185         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
1186
1187 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1188
1189         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
1190           silc_mime_parse is available but deprecated.
1191
1192         * Check that packet is valid when processing key exchange,
1193           authentication and rekey protocols.  Fixes a crashbug.
1194           Affected files are apps/silcd/protocol.c and
1195           lib/silcclient/protocol.c.
1196
1197         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
1198           all hash buffers to use that instead of fixed values.
1199
1200 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1201
1202         * Added SHA-256 to crypto library.  The SHA-256 takes now
1203           precedence over SHA-1.
1204
1205 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1206
1207         * Check for valid return value from regcomp.  Affected file
1208           lib/silcutil/unix/silcunixutil.c.
1209
1210 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1211
1212         * Fixed silc_hash_uint to work with integers.  Affected
1213           file lib/silcutil/silcutil.c.
1214
1215 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1216
1217         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
1218
1219 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1220
1221         * Fixed channel public key list saving on JOIN command reply
1222           on backup router.  Affected file apps/silcd/command_reply.c.
1223
1224 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1225
1226         * Added default limit how many channels client can join,
1227           default is 50.  Added 'channel_join_limit' configuration
1228           option to server too.  Affected files are apps/silcd/command.c
1229           and serverconfig.[ch].
1230
1231 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1232
1233         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
1234           On Toolkit the server and client are not compiled by default.
1235           Affected file configure.ad.
1236
1237 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1238
1239         * Added lib/contrib/getopt.[ch] for platforms that don't
1240           have it (it is not GPL implementation).
1241
1242         * Fixed compilation when pkg-config is used.
1243
1244 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1245
1246         * A comma in invite/ban string is invalid, check for it.
1247           Affected file apps/silcd/server_util.c.
1248
1249         * Added SERVICE command to the server.  It parses the command
1250           request but SILC Server does not support services for the
1251           time being.  Affected file apps/silcd/command.[ch].
1252
1253         * Added SERVICE command and command reply to client library.
1254           It is however incomplete.  Updated Toolkit documentation.
1255           Affected files are lib/silcclient/command[_reply].[ch].
1256
1257         * Fixed IDENTIFY/WHOWAS command reply to send the username
1258           correctly (uninitialized buffer).  Affected file is
1259           apps/silcd/server_query.c.
1260
1261 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1262
1263         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
1264           finalizes the major restructuring of the CVS tree.
1265
1266 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1267
1268         * Send empty MOTD reply if MOTD file cannot be read.
1269           Affected file silcd/command.c.
1270
1271 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1272
1273         * Optimized primer number generator to use simpler conversion
1274           routines.  Also assure that the prime number will have the
1275           highest bit set after modifying it.  Affected file is
1276           lib/silcmath/silcprimegen.c.
1277
1278         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
1279
1280         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
1281           for now only for testing purposes, it will not be delivered
1282           in any distribution for now.
1283
1284         * Removed NSS MPI from the source tree.  Due to upcoming
1285           license change for the SILC Toolkit, we cannot deliver the
1286           NSS MPI anymore.  I decided to replace it in all distributions
1287           with public domain library.
1288
1289         * Removed GNU regex from lib/contrib and introduced free
1290           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
1291           GNU regex compatible API to it (only partial).
1292
1293         * Removed getopt routines from lib/contrib.
1294
1295 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1296
1297         * Use silc_server_send_command_reply to send replies instead
1298           of encoding packet itself.  Affected file silcd/command.c.
1299
1300         * Added command sending and receiving statistics to server.
1301           Affected files in silcd/.
1302
1303         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
1304           with GCC, for it not to warn about pointer signedness.
1305
1306 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1307
1308         * Added context to the SilcIDCache destructor.  Affected
1309           files are lib/silccore/silcidcache.[ch],
1310           lib/silcclient/client.c and silcd/server.c.
1311
1312 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1313
1314         * Added pkg-config check to configure.
1315
1316         * The PublicKeyDir must not be used with Admin block in server
1317           config.  Affected file silcd/serverconfig.c.
1318
1319 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1320
1321         * Added Autodist.
1322
1323 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1324
1325         * Handle empty LIST command reply correcttly in server.  Affected
1326           file silcd/command_reply.c.
1327
1328         * Handle empty LIST command reply correctly in client library.
1329           The application will now receive one LIST command reply with
1330           all arguments set to NULL if there are no channels.  Updated
1331           Client Library documentation accordingly.  Affected file
1332           lib/silcclient/command_reply.c.
1333
1334 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1335
1336         * Added channel name string stringprep profile to the protocol
1337           and implementation to allow a little free'er channel name
1338           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
1339
1340         * Added silc_channel_name_[check|verify] to check and verify
1341           channel name strings.  Affected files are
1342           lib/silcutil/silcstrutil.[ch].
1343
1344         * Added support for the new channel name preparation in client
1345           library and server.  Affected files in lib/silcclient and
1346           silcd/.
1347
1348 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1349
1350         * Added the Autodist into the source tree.  It replaces the
1351           old ./prepare.  It can be used to create distributions as
1352           previously.  See README.CVS and README.DIST.  See
1353           distributions in distdir/.
1354
1355 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1356
1357         * Make sure query sends at least an error back if nothing
1358           more is sent.  Affected file silcd/server_query.c.
1359
1360 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1361
1362         * During query, check if the original command caller goes
1363           away.  If it does, stop the query.  Affected file
1364           silcd/server_query.c.
1365
1366         * Check for valid channel creation in JOIN command reply.
1367           Affected file lib/silcclient/command_reply.c.
1368
1369         * Handle the resolver counter in silc_client_get_users_by_channel
1370           callback correctly.  Fixed auto-join bug in Gaim.  Affected
1371           file lib/silcclient/idlist.c.
1372
1373 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1374
1375         * Added some better error messages.  Affected file
1376           silcd/command_reply.c and packet_receive.c.
1377
1378         * Handle error in WATCH command propely on backup router.
1379           Affected file silcd/command.c.
1380
1381         * Fixed freeing of unfreeable variable in WHOIS command reply.
1382           Affected file silcd/command_reply.c.
1383
1384 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
1385
1386         * Added pkg-config .pc file creation for silc core library
1387           and silcclient library.  A patch by c0ffee.
1388
1389         * Removed the need for GNU Libidn.  Added the simple stringprep
1390           from libidn into lib/contrib/.  It is now used also on Windows
1391           build.
1392
1393 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1394
1395         * Simplified the invite and ban string handling in the
1396           server.  Check for valid invite and ban arguments also.
1397           Affected file silcd/server_util.c.
1398
1399 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1400
1401         * Added WATCH list announcing in backup router protocol.
1402           Affected files are silcd/command.c, server.c, server_backup.c.
1403
1404         * Do not change users mode to founder on normal server/backup
1405           if the founder mode is set, and user is first one to join.
1406           Affected file silcd/pcaket_receive.c.
1407
1408         * Do not send CUMODE_CHANGE notify back to sender.  Affected
1409           file silcd/packet_receive.c.
1410
1411         * Added getrusage() to take noise in SILC RNG.  A patch by
1412           Mika Boström.  Affected files are configure.in.pre,
1413           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
1414
1415 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1416
1417         * Splitted the SILC libraries configuration into a configure
1418           fragment into lib/configure.ad.  It is now possible, once
1419           this feature is added, to specify whether to compile or not
1420           compile included SILC libraries.  Affected files are
1421           configure.in.pre, lib/silcmath/mpi/configure.ad,
1422           lib/configure.ad, Makefile.defines.pre and
1423           Makefile.defines_int.pre.
1424
1425         * Added --with-silc-includes and --with-silc-libs to configure.
1426           If specified the included libs are not compiled, but the
1427           specified libs are used.  Pkg-config is not yet supported.
1428           Affected file configure.in.pre.
1429
1430         * Fixed WATCH command handling on backup router.  Router does not
1431           send the watch command any more to backup if it originates from
1432           backup.  Affected file silcd/command.c.
1433
1434 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1435
1436         * Changed announcing to not announce unregistered clients.
1437           Affected file silcd/server.c.
1438
1439         * Fixed username handling in command reply.  Affected file
1440           silcd/command_reply.c.
1441
1442         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
1443
1444 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
1445
1446         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
1447           Affected file: includes/silcincludes.h.in
1448
1449         * bool is defined as _Bool on Mac OS X now.
1450           Affected file: lib/silcutil/silctypes.h
1451
1452 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1453
1454         * Added support for UTF-8 nicknames, channel names and
1455           server names in client library.  Affected files in
1456           lib/silcclient/.
1457
1458         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
1459           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
1460           software to check how Toolkit has been compiled.
1461
1462 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1463
1464         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
1465
1466         * Use silc_utf8_str[n]casecmp instead of strcmp routines
1467           in library and in SILC Client when dealing with nicknames
1468           and other identifier strings.  Affected file in client lib
1469           and irssi.
1470
1471         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
1472           irssi/src/silc/core/silc-servers.c.
1473
1474 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1475
1476         * Fixed idcache to work with the new identifier strings.
1477           Affected file lib/silccore/silcidcache.c.
1478
1479         * Added UTF-8 hash and compare function for SilcHashTable.
1480           Affected file lib/silcutil/silcutil.[ch].
1481
1482         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
1483           Affected file lib/silcutil/silcstringprep.[ch].
1484
1485         * Changed the identifier string handling to include the original
1486           format in client, server, channel entries and normalized
1487           format in cache.  Affected files in silcd/.
1488
1489 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1490
1491         * Added support for the new identifier strings and their
1492           validity checking.  Nicknames, channel names and usernames
1493           can now include practically any kind of letters and various
1494           other characters.  Affected files in silcd/ and in libraries.
1495
1496           NOTE: comparing these strings should now be done with memcmp()
1497           to check binary compatibility.  All these strings are normalized
1498           and casing is irrelevant.
1499
1500         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
1501           as easy function for applications to check whether identifier
1502           strings are valid.
1503
1504 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1505
1506         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
1507           file lib/silcutil/silcutf8.c.
1508
1509         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
1510
1511 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1512
1513         * Make public key in getkey reply mandatory.  Affected file
1514           lib/silcclient/command_reply.c
1515
1516 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
1517
1518         * Added Parameter dont_register_crypto_library to
1519           SilcClientParam. If set to TRUE, silcclient library will
1520           not initalize the Crypto Libraries and application
1521           will need to do it. Affected file lib/silcclient/silcclient.h,
1522           lib/silcclient/client.c.
1523
1524 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1525
1526         * Imported new silc_utf8_[encode|decode] routines from
1527           my internal SILC 1.1 source tree.  New encodings added:
1528           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
1529           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
1530           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
1531           SILC_STRING_LDAP_DN.
1532
1533         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
1534
1535         * Implemented stringprep (RFC 3454) API.  Internally we use
1536           GNU Libidn's stringprep, for now, so it is required now to
1537           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
1538
1539         * Added checking for GNU Libidn and --with-libidn to configure.
1540
1541 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1542
1543         * If the passphrases entered do not match while generating a new key,
1544           completly start over instead of going into an infinite loop asking
1545           the user to re-enter the passphrase correctly.  Affected file
1546           lib/silcutil/silcapputil.c
1547
1548 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
1549
1550         * Make sure server is removed from backup list when it is
1551           deleted.  Affected files silcd/command.c, server.c,
1552           server_util.c.
1553
1554         * Close socket when connecting to router fails.  Affected
1555           file silcd/server.c.
1556
1557 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1558
1559         * Adopt configuration toolchain to current auto-tools.
1560           Affected files prepare, irssi/configure.in
1561         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
1562           redo that.  Affected files irssi/src/silc/core/client_ops.c,
1563           irssi/src/fe-common/silc/fe-silc-channels.c
1564         * Take over command line options into silcclient data structure.
1565           Affected file irssi/src/silc/core/silc-core.c
1566
1567 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1568
1569         * Do not try to initiate backup resuming protocol forever.
1570           Affected file silcd/server_backup.c.
1571
1572 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1573
1574         * ID change in resuming has to be done before changing
1575           detached client's modes, since the ID change may fail and
1576           leave ghosts on the network.  Affected file is
1577           silcd/packet_receive.c.
1578
1579 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1580
1581         * Fixed Win32 scheduler to not stuck anymore.  A patch from
1582           Juha Räsänen.  Affected file is
1583           lib/silcutil/win32/silcwin32schedule.c.
1584
1585         * Fixed QoS parsing for connection blocks in server.  Affected
1586           file is silcd/serverconfig.c.
1587
1588         * Fixed server statistics increasing in server.  Affected file
1589           is silcd/server.c.
1590
1591         * The CLOSE command now marks backup router as self disconnected
1592           to avoid resuming problems.  Affected file silcd/command.c.
1593
1594 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
1595
1596         * When using silc_net_create_connection[_async], and your system can
1597           create IPv6 sockets, it will try to connect to the IPv6 host.
1598           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
1599           file lib/silcutil/unix/silcunixnet.c
1600
1601 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
1602
1603         * Check for valid route when receiving packet from router and
1604           when routing it to local server in the cell.  A patch from
1605           Matt Miller.  Affected files silcd/router.c and server.c.
1606
1607 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
1608
1609         * Couldn't detach and reattach twice, because of the previous
1610           commit. Affected file silcd/packet_receive.c
1611
1612 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
1613
1614         * Added check to ignore Port value if Initiator is FALSE.
1615           Remote router coudln't connect if Port was set. Affected file
1616           silcd/serverconfig.c
1617
1618         * If some client tries to resume more than once at the same time,
1619           server crashed. Router didn't crash, but showed odd behaviour
1620           (didn't allow clients to join anymore, ..). Affected files
1621           silcd/packet_receive.c silcd/idlist.h
1622
1623 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1624
1625         * Destroy the file transfer session in silc_client_file_close
1626           with timeout.  Affected file lib/silcclient/client_ftp.c.
1627
1628         * Call SFTP server monitor in READ and WRITE after the actual
1629           operations.  Affected file lib/silcsftp/sftp_server.c.
1630
1631 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1632
1633         * Create one configure script from configure fragments
1634           (configure.ad).  This is a first step towards new distribution
1635           system.  Affected files prepare, configure.in.pre,
1636           lib/silcmath/mpi/configure.ad.
1637
1638 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1639
1640         * Removed expiring of client key pair.  Affected file is
1641           irssi/src/silc/core/clientutil.c
1642
1643 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1644
1645         * Check the number of connections from real number of
1646           connections instead of socket number, when deciding if
1647           server is full.  Affected files are silcd/server.c,
1648           server_internal.h and silcd.c.
1649
1650         * Clarified the connections_max meaning in General section
1651           in doc/example_silcd.conf.in.
1652
1653         * The reconnect_keep_trying default value set to TRUE
1654           if it is not defined in the config file.  Affected file
1655           silcd/serverconfig.c.
1656
1657 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1658
1659         * Fixed crashbug in connection closing, after a protocol
1660           completion callback, which might have closed it already.
1661           Affected file silcd/server.c.
1662
1663         * Fixed rekey with PFS in backup router.  It did not allow
1664           rekeys with PFS, and when the rekey protocol timedout
1665           it crashed the backup router without the above fix.  Affected
1666           file silcd/packet_send.c and server.c.
1667
1668 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1669
1670         * The silc_client_add_channel_private_key now returns the
1671           private key context if pointer is given as argument.
1672           Affected files are lib/silcclient/silcclient.h and
1673           client_channel.c.
1674
1675         * Added support for using channel private keys in SILC
1676           Client Library even if the private key mode is not set
1677           on the channel.  Affected file lib/silcclient/client_channel.c.
1678
1679         * The channel private key used to decrypt message is now
1680           delivered to the application in the 'channel_messageÃ' client
1681           operation.  Affected files are lib/silcclient/silcclient.h
1682           and client_channel.c.
1683
1684         * Fixed wrong arg type for user limit in CMODE command reply.
1685           Affected file silcd/command.c.
1686
1687         * The user limit is now taken and saved to SilcClientEntry in
1688           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1689           Affected files lib/silcclient/silcclient.h, command_reply.c
1690           and client_notify.c.
1691
1692         * Added support to the new private message key indicator
1693           packet.  Added a new function to the client library:
1694           silc_client_send_private_message_key_request.  The sender
1695           indicates to be initiator, and receiver is responder.
1696           Added the indicator to the SilcClientEntry as 'prv_resp'
1697           boolean.  Affected files are lib/silcclient/silcclient.h
1698           client.[ch], and client_prvmsg.c.
1699
1700 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1701
1702         * Fixed the JOIN command calling when called with both
1703          -auth and -founder.  Affected file is lib/silcclien/command.c.
1704
1705 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1706
1707         * Check watcher list for resumed clients as well.  Affected
1708           file is silcd/packet_receive.c.
1709
1710 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1711
1712         * Implemented the user limit to the CMODE_CHANGE notify,
1713           CMODE command reply and JOIN command reply in server.
1714           Affected files are silcd/server.c, command.c, command_reply.c,
1715           packet_send.c and packet_receive.c.
1716
1717 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1718
1719         * Defined SILC_STRFMT_END that must be used now with
1720           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1721           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1722           lib/silcclient/silcvcard.c, silcd/server_util.c.
1723
1724         * Fixed the adding of public key to the WATCH list in server.
1725           Fixed the WATCH notify sending to client.  Affected files
1726           are silcd/packet_send.[ch], command.c, server_util.c.
1727
1728         * Implemented the watching by public key in the SILC Client
1729           Library and SILC Client.  Affected files are
1730           lib/silcclient/command.c and client_notify.c.
1731
1732 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1733
1734         * Added support for public key watching in server.  Affected
1735           files are silcd/server.c, server_internal.h, command.c,
1736           server_util.c.
1737
1738 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1739
1740         * Added public key to the SIlcClientEntry.  Affected files
1741           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1742
1743         * Fixed the get_clients_whois reply processing to return
1744           exactly same entries server returned.  Makes it possible
1745           to search using attributes.  Affected file is
1746           lib/silcclient/idlist.c.
1747
1748 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1749
1750         * Save founder key to SilcChannelEntry.  Affected files are
1751           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1752
1753 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1754
1755         * Call the monitor callback with _CLOSED status from the
1756           silc_client_file_close.  Affected files are
1757           lib/silcclient/client_fpt.c, silcclient.h
1758
1759         * Added silc_client_get_clients_whois which resolves using
1760           WHOIS, and supports requested attributes as well.
1761           Affected files are lib/silcclient/silcclient.h, idlist.c.
1762
1763 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1764
1765         * Added support for asking the destination filename where
1766           the downloaded file is saved in the file transfer.  Affected
1767           files are lib/silccilent/silcclient.h, client_ftp.c.
1768
1769 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1770
1771         * Fixed error handling in resuming data processing.  Affected
1772           files are lib/silcclient/client_resume.c and client.c.
1773
1774 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1775
1776         * Fixed silc_client_send_private_message to return TRUE correctly.
1777           Affected file lib/silcclient/client_prvmsg.c.
1778
1779         * Added topic to the SilcChannelEntry.  Affected files are
1780           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1781
1782 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1783
1784         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1785           file lib/silcclient/command.c
1786
1787 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1788
1789         * Convert all commands to UTF-8 before passing them to the
1790           client library.  Still need to convert replies from UTF-8 to
1791           the locale encoding.  Affected file
1792           irssi/src/silc/core/silc-cmdqueue.c
1793
1794 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1795
1796         * redirect all silc_client_command_calls through a queueing framework.
1797           This fixes /CYCLE and the annoying "nick change after auto-joining
1798           a channel".  Furthermore it defines one central point where
1799           command parameters can be UTF-8-ified.  Affected files
1800           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1801           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1802
1803 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1804
1805         * use asynchronous connect() to establish router connections.
1806           Fixes problem when the primary router goes down.  Affected files
1807           silcd/server.c, silcd/server_backup.c
1808
1809 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1810
1811         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1812           Fixed various compilation warnings when type casting ints
1813           to pointers or vice versa, of different size.  Updates around
1814           the source free.
1815
1816 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1817
1818         * Surrogates not allowed in UTF-8 strings, updated decoder.
1819           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1820           testers in lib/silcutil/tests/ directory.
1821
1822 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1823
1824         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1825           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1826           files are lib/silcclient/silcclient.h, client.c.
1827
1828 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1829
1830         * When resuming a session fails, notify the user that the session
1831           file needs to be removed eventually.  Affected files
1832           irssi/src/fe-common/silc/module-formats.[ch],
1833           irssi/src/silc/core/client_ops.c.
1834
1835 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1836
1837         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1838           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1839
1840         * Typofix in Irssi::Silc module.  Affected file
1841           irssi/src/perl/silc/Silc.xs.
1842
1843 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1844
1845         * Changed the way NOTICE flagged messages are treated. Added support
1846           for notices in queries and signing notices.  Affected files
1847           irssi/default.theme; irssi/docs/help/in/notice.in;
1848           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1849           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1850
1851         * Fixed typo in /ACTION help.  Affected file
1852           irssi/docs/help/in/action.in
1853
1854 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1855
1856         * Fixed typo in perl module.  Affected file
1857           irssi/src/perl/silc/Server.xs
1858
1859         * Changed the way ACTION flagged messages are treated. Added support
1860           for actions in queries and signing actions.  Affected files
1861           irssi/default.theme; irssi/docs/help/in/action.in;
1862           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1863           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1864           silc-servers.[ch]
1865
1866 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1867
1868         * Incorrectly reported error when client had to be resolved from
1869           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1870
1871 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1872
1873         * Fixed whois public key hash table deleting and adding in
1874           detached client case.  Affected file silcd/packet_receive.c.
1875
1876 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1877
1878         * Changed filenames of silc/fe module not to collide with filenames
1879           from core/fe.  Also seperated public messages printing from
1880           query messages printing.  Affected files are all in
1881           irssi/src/fe-common/silc.
1882
1883 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1884
1885         * Fixed the invite process handling during joining to use
1886           correct server name for the client that is matched against
1887           the invite string for the channel.  Wrong server name caused
1888           inability to join the channel.  Affected file is
1889           silcd/command.c.
1890
1891 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1892
1893         * Fixed the CUMODE channel founder authentication on normal
1894           server to not remove the founder rights on existing founder
1895           before checking that router accepts the mode change.  Affected
1896           files are silcd/command.c and silcd/packet_receive.c.
1897
1898         * Remove the server entry correctly when rekey timeouts and
1899           remote router connection on normal server is closed.  Fixes
1900           a crash where server uses the freed server entry.  Affected
1901           file silcd/server.c.
1902
1903 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1904
1905         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1906           networks.  This is the first step in solving the bug about
1907           /SERVER ADD -silcnet <silcnet>.  Affected files
1908           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1909           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1910           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1911
1912 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1913
1914         * /SMSG and /MMSG now correctly create new queries. Affected files
1915           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1916
1917         * Add basic support for SILC protocol specific variables in perl.
1918           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1919           irssi/src/perl/Makefile.am
1920
1921 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1922
1923         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1924           issue when the current key expires.  Affect file
1925           irssi/src/silc/core/clientutils.c
1926
1927         * Make the session data filename configurable.  This makes it
1928           possible to have different session files for different
1929           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1930           client_ops.[ch], silc-servers.c,
1931           irssi/src/silc/fe-common/silc/module-formats.[ch]
1932
1933         * Use the same set of libtool files for the MPI lib as for the
1934           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
1935           config.sub, configure.in, install-sh, missing, mkinstalldirs
1936
1937 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1938
1939         * Fixed server statistics decrementing error to not go to
1940           negative.  Affected file silcd/packet_receive.c.
1941
1942 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1943
1944         * Use silc_server_query_add_error to add error in public key
1945           search error.  Added support in send_reply to send errors
1946           without specific argument.  Affected file silcd/server_query.c.
1947
1948         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
1949           Client for NO_SUCH_NICK.  It was against the protocol specs.
1950           Affected file irssi/src/silc/core/client_ops.c.
1951
1952         * Added backwards support for the wrong NO_SUCH_NICK error sending
1953           in server.  To be removed in SILC Server 1.0.  Both old clients
1954           and clients with fixed error handling now works.  Affected file
1955           silcd/server_query.c.
1956
1957 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
1958
1959         * fixed a bug in the whois using attributes function where no
1960           error was sent if no nickname and client id but the attributes were
1961           given to whois. Affected file silcd/server_query.c
1962
1963 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
1964
1965         * remove public key from public key hashtable on detach. Affected
1966           file silcd/packet_receive.c
1967
1968         * free public key hashtable before removing clients on server
1969           shutdown. Affected file silcd/server.c
1970
1971         * remove public key prior deleting client-data on killing a client.
1972           Affected file silcd/server_util.c
1973
1974 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
1975
1976         * Getting the MOTD from other servers works now. Affected
1977           files are silcd/command.c and silcd/command_reply.c
1978
1979 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1980
1981         * Initialize the variable idletag, since it is tested in
1982           silc_core_deinit for its default value.  Affected file
1983           irssi/src/silc/core/silc-core.c
1984
1985 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
1986
1987         * Fixed signed channel messages across cells. Affected file
1988           silcd/packet_send.c
1989
1990 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1991
1992         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
1993           is not defined.  They can now be safely used in if-statements
1994           without braces.  Affected file lib/silcutil/silclog.h.
1995
1996         * Added the checks for backup closing connection due to error
1997           (local or remote) and thus not allow the resuming to occur
1998           in reconnect.  Affected files are silcd/packet_send.c
1999           and server.c.
2000
2001 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2002
2003         * Help file updates.  Affected files in irssi/src/docs/help/in/.
2004
2005 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
2006
2007         * Fixed channel messages across cells. Affected file
2008           silcd/packet_send.c
2009
2010 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2011
2012         * Fixed file transmission accepting in client library to not
2013           start the negotiation if user hasn't accepted the transfer,
2014           instead create new session for resent transfer.  Affected
2015           file lib/silcclient/client_ftp.c.
2016
2017         * Show the session ID in the file transmision list.  Remove
2018           session from list that failed to transfer.  Switch the current
2019           session automatically after transmission, and in errors, to new
2020           session if other sessions exists in the transfer list.  Affected
2021           files are irssi/src/silc/core/silc-servers.c,
2022           irssi/src/fe-common/silc/modfule-formats.c.
2023
2024 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2025
2026         * Fixed MIME header parsing for the hopefully last time.  Affected
2027           file lib/silcutil/silcstrutil.c
2028
2029 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2030
2031         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
2032
2033         * The SILC RNG is now gauranteed to return non-zero random
2034           values.  Affected files are lib/silccrypt/silcrng.[ch].
2035
2036 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2037
2038         * Fixed nickname formatting when changing only case of the
2039           nickname.  Affected file lib/silcclient/idlist.c.
2040
2041 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2042
2043         * Fixed a memory leak and incorrect printing of the "appears as"
2044           message.  Affected file irssi/src/silc/core/client_ops.c
2045
2046 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2047
2048         * Added CRT (Chinese Remainder Theorem) supported RSA
2049           private keys and private key operations.  This significantly
2050           increases private key operation efficiency.  No compatibility
2051           issues with new or old private keys.  Affected files are
2052           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
2053
2054 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2055
2056         * Fixed GCC-3.3.2 related compilation warnings from the
2057           source tree.
2058
2059 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2060
2061         * Removed RC6 from distributions.
2062
2063 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2064
2065         * Added some better comments to lib/silccrypt/silcpkcs.h,
2066           optimized some routines in lib/silccrypt/silcpkcs.c.
2067           Added test_silcpkcs into lib/silccrypt/tests/.
2068
2069         * Fixed silc_rng_global_init to actually init the global RNG
2070           if RNG wasn't provided for it.  Affected file is
2071           lib/silccrypt/silrng.c.
2072
2073 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2074
2075         * Added silc_hash_table_find_by_context_ext.  Affected files
2076           lib/silcutil/silchashtable.[ch].
2077
2078         * Save the public key on normal server in WHOIS command reply
2079           from attributes, if present, and add it to public key hash
2080           table.  Fixes WHOIS resolving by public key on normal server.
2081
2082           Optimized the attributes resolving on normal server to not
2083           resolve if we resolved them already from router.
2084
2085           Affected files are silcd/server_query.c, command_reply.c.
2086
2087 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
2088
2089         * Added support for whois using attributes.
2090           Affected files silcd/command_reply.c, silcd/packet_receive.c,
2091           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
2092           silcd/server_util.c
2093
2094         * Added support for whois using public key attribute to /WHOIS i
2095           client command. Affected files irssi/docs/help/in/whois.in,
2096           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
2097
2098 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2099
2100         * Fixed UMODE setting in server when the client has anonymous
2101           mode set.  The mode setting was not working.  Affected file
2102           silcd/command.c.
2103
2104 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2105
2106         * Fixed some bugs and typos related to sending split messages.
2107           Print notification when sending messages with /MMSG.  Affected
2108           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
2109
2110 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2111
2112         * Optimized the socket referencing in packet routines, client
2113           library and server.  Affected files are lib/silccore/silcpacket.c,
2114           lib/silcclient/client.c and silcd/server.c.
2115
2116         * If silc_socket_set_qos is given with NULL arguments the QoS is
2117           reset from the socket.  Affected files are
2118           lib/silcutil/silcsockconn.[ch].
2119
2120 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2121
2122         * Add a /LISTKEYS command which lists the locally cached
2123           client and server keys.  Affected files
2124           irssi/src/fe-common/module-formats.[ch],
2125           irssi/src/silc/core/silc-{channels,servers}.c
2126           irssi/docs/help/in/listkeys.in
2127
2128 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2129
2130         * Check that packet queue purging was successful.  Affected
2131           files lib/silcclient/client.c and silcd/packet_send.c.  Related
2132           to MAC failed errors.
2133
2134         * Do not clear the inbuf even if it is empty if QoS was applied
2135           to it.  Otherwise the QoS data is cleared and MAC failed error
2136           will occur.  Affected file lib/silccore/silcpacket.c.
2137
2138         * Use the rekey period time as rekey protocol timeout value.
2139           If the rekey does not succeed during the rekey period there's
2140           something very wrong, and we most likely end up with wrong keys,
2141           do graceful reconnect then.   Affected file silcd/server.c.
2142
2143         * Take reference of the socket in the parser context, as it's
2144           possible to have the parsers in queue after the socket is
2145           disconnected and this may cause crash.  Affected files are
2146           lib/silccore/silcpacket.c, lib/silcclient/client.c and
2147           silcd/server.c.
2148
2149 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2150
2151         * Fixed KICK command reply sending, it sent to replies.
2152           Affected file silcd/command.c.
2153
2154 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2155
2156         * Finish the silc-mime.pl script. It now supports MIME type
2157           guessing using magic files, signing data messages, executing
2158           MIME handlers in background. Affected files
2159           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
2160
2161         * Changed MIME signal handler to make things easier for the perl
2162           script. Affected files irssi/src/silc/core/client_ops.c,
2163           silc-servers.c, and irssi/docs/signals.txt
2164
2165         * Cleaned up the silc_mime_parse function and fixed detection
2166           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
2167
2168 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2169
2170         * Resolve the IP for file transfer listener from the connection
2171           socket.  Affected file lib/silcclient/client_ftp.c.
2172
2173         * Accept NULL hostname parameter in the functions
2174           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
2175           if hostname is not wanted.
2176
2177 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2178
2179         * Fixed race condition between silc_client_init and
2180           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
2181
2182 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2183
2184         * Fixed file transfer connection closing when SIGNOFF for
2185           the client is received from server.  Affected file is
2186           lib/silcclient/client_ftp.c.
2187
2188 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2189
2190         * Check for disconnected socket in QUIT callback.  Affected
2191           file silcd/command.c.
2192
2193 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2194
2195         * Modified the MIME parsing to allow \n and \r\n as delimiters.
2196           Affected files lib/silcutil/silcstrutil.c
2197
2198         * Cleaned up the escape/unescape functions for correctness and
2199           speed. Affected file irssi/src/silc/core/client_ops.c
2200
2201         * Removed handling for data messages with Content-Type: text/*,
2202           moved parsing of MIME headers to the signal handler, added
2203           support for signing and verifying data messages. Affected
2204           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
2205           irssi/src/silc/core/silc-{servers,channels}.c
2206
2207         * Added a perl script for handling data messages based on
2208           information read from Mailcap files. New file
2209           irssi/scripts/silc-mime.pl
2210
2211 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2212
2213         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
2214           acknowledge recepetion of a message to the sender.  Updated
2215           protocol specs.
2216
2217 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2218
2219         * Unregister channel key saving callback when deleting channel.
2220           Affected file lib/silcclient/idlist.c.
2221
2222         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
2223           before calling notify client operation.  Affected file is
2224           lib/silcclient/client_notify.c.
2225
2226         * Unregister QoS tasks when deleting the socket connection.
2227           Affected files lib/silcutil/silcsockconn.[ch],
2228           unix/silcunixsockconn.c.
2229
2230         * Implemented latest presence-attrs draft changes.  Affected
2231           files lib/silccore/silcattrs.h and
2232           irssi/src/silc/core/silc-queries.c.
2233
2234 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2235
2236         * Save old channel keys in list to allow more rapid change
2237           of channel keys if server for some reason does that.  This
2238           avoids loosing so many channel messages due to not having
2239           key to decrypt.  Affected file lib/silcclient/silcclient.h,
2240           idlist.c and client_channel.c.
2241
2242 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2243
2244         * Continued backup router tests and fixes.  Affected files
2245           silcd/server_backup, server_util.c, server.c.  See TODO.
2246
2247 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2248
2249         * Fixed SERVER_SIGNOFF handling in servers.  The client
2250           was removed from wrong list thus not removing the client
2251           at all.  Affected file silcd/packet_receive.c.
2252
2253         * Do not execute rekey protocol for disabled connections as
2254           it would never go through.  Affected file silcd/server.c.
2255
2256         * Added timeout for rekey protocol to catch if the protocol
2257           never executes successfully.  Affected files silcd/server.c
2258           and protocol.h.
2259
2260 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2261
2262         * Abandon packet processing for disconnected sockets.  Check
2263           this always after calling packet processing callback.
2264           Affected file lib/silccore/silcpacket.c.
2265
2266         * Fixed double registration disconnection code in server.
2267           Closed wrong connection.  Affected file silcd/packet_receive.c.
2268
2269 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2270
2271         * On normal server reconnect to primary during resuming 4
2272           times, then give up.  Affected file silcd/server_backup.c.
2273
2274         * If during reconnecting to routers we notice we have router
2275           connection but no primary router set, the server is in desync.
2276           Reconnect to primary to restore network.  Affected file
2277           silcd/server.c.
2278
2279         * Assure that only one protocol is exeucting at the same time.
2280           Added checks for all protocols.  Affected files are
2281           silcd/server.c and server_backup.c.
2282
2283 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2284
2285         * Check that a string is not already part on invite/ban
2286           string when processing it.  Affected file silcd/server_util.c.
2287
2288 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2289
2290         * Fixed the CUMODE_CHANGE for founder mode changes to comply
2291           with 1.2 version of the protocol.  Affected file is
2292           silcd/packet_receive.c.
2293
2294 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2295
2296         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
2297           where the passphrase was given.  Affected file is
2298           silcd/command.c.
2299
2300 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2301
2302         * INVITE and BAN notifys are now delivered from routers to
2303           servers (but not clients) on the channel.  Updated specs and
2304           code.  Affected files silcd/packet_[send|receive].[ch],
2305           command.c, server.c and server_util.c.
2306
2307         * Implemented INVITE and BAN announcing.  Affected files are
2308           silcd/server.[ch], server_util.c.
2309
2310         * Implemented SilcStatus error type argument returning in
2311           command reply error in server.  Affected file silcd/command.c.
2312
2313         * Implemented SilcStatus argument returning in comand reply
2314           in client library.  The command_reply client operation now
2315           returns error specific arguments as well.  Affected files
2316           are lib/silcclient/command_reply.[ch], client_resume.c,
2317           lib/silccore/silcstatus.[ch].
2318
2319 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2320
2321         * Backup router protocol version 1.2 implemented.  Testing still
2322           required.  Affected files in silcd/server_backup.[ch], server.c,
2323           packet_receive.c and server_internal.h.
2324
2325 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2326
2327         * silc_client_send_[channel|private]_message now return TRUE
2328           or FALSE.  Affected file lib/silcclien/client_channel.c and
2329           client_prvmsg.c.
2330
2331 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2332
2333         * Check for explicit nickname in INVITE and BAN processing
2334           during join as well (and don't expect only wildcards in
2335           invite/ban strings).  Affected file silcd/command.c.
2336
2337         * Fixed the INVITE and BAN by public key.  The public key saved
2338           is the PK payload (as specified) not the raw data.  Affected
2339           file silcd/server_util.c.
2340
2341 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2342
2343         * UTF-8 text message support for actions and notices in SILC
2344           Client.  Affected file irssi/src/silc/core/client_ops.c.
2345
2346         * silc_get_username and silc_get_real_name now returns sensible
2347           data on Win32.  Patch by Toni Willberg.  Affected file is
2348           lib/silcutil/win32/silcwin32util.c.
2349
2350 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2351
2352         * Provide a signal handler to send MIME encoded messages and emit
2353           a signal when a MIME encoded message is received. Also document
2354           the signals for usage with the perl interface.
2355
2356           A sample perl script will be supplied at a later point.
2357
2358           Affected files are irssi/docs/signals.txt,
2359           irssi/src/silc/core/client_ops.[ch],
2360           irssi/src/silc/core/silc-{channels,servers}.c
2361
2362 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2363
2364         * Use SILC_COMMAND_PING to estimate the round-trip time to the
2365           server. Use this time to display a lag and disconnect when it
2366           exceeds a specified limit.
2367
2368           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
2369
2370 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2371
2372         * Remove the channel auth list in normal server if router
2373           encofrces its list during connecting.  Send notify to channel
2374           to remove the mode to remove the list.  Affected files are
2375           silcd/server_util.c and silcd/packet_receive.c.
2376
2377 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2378
2379         * Added support for channel public keys.  Updated protocol specs
2380           and implemented it.  Affected files are
2381           silcd/command.c, command_reply.c, lib/silcclient/command.c,
2382           lib/silcclient/command_reply.c.
2383
2384 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2385
2386         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
2387           terminate the process on Linux.  Affected file silcd/silcd.c.
2388
2389 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2390
2391         * Check for NULL buffer in silc_buffer_clear.  Affected file
2392           is lib/silcutil/silcbuffer.h.
2393
2394         * Simplified the backup router protocol by removing the _GLOBAL
2395           types.  Updated protocol specs and the code.  Affected files
2396           are silcd/server_backup.[ch].
2397
2398 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2399
2400         * Deny '@' and '!' from nicknames since they are reserved
2401           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
2402           Updated protocol specs and the code.
2403
2404           Affected files are silcd/server_util.[ch].
2405
2406 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2407
2408         * Fixed stack overflow in Irssi SILC client.  Affected
2409           file irssi/src/silc/core/client_ops.c.
2410
2411         * Check that Host is set in ServerConnection and RouterConnection
2412           in silcd.conf.  Affected file silcd/serverconfig.c.
2413
2414         * Fixed crash in server with protocol completion callbacks,
2415           namely rekey and backup resuming protocols.  Affected files
2416           are silcd/server_backup.c and silcd/server.c.
2417
2418         * Fixed rekey protocol to not restart if it is started already.
2419           Affected files are lib/silcclient/client.c and
2420           silcd/server.c.c
2421
2422 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2423
2424         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
2425
2426         * Fixed EOF handling in SILC Config, affected file
2427           lib/silcutil/silcconfig.c.
2428
2429         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
2430
2431         * Fixed RESOLVING flag handling in JOIN notify and other
2432           notifys to handle the resolvings correctly in client library.
2433           Affected file lib/silcclient/client_notify.c.
2434
2435         * Do not send full INVITE and BAN lists in INVITE and BAN
2436           notifys, only the changed information.  Affected file
2437           silcd/command.c.
2438
2439         * Fixed INVITE notify sending in INVITE command, send it
2440           only when needed.  Affected file silcd/command.c.
2441
2442         * Handle the founder key change properly in CMODE_CHANGE
2443           notify.  Bug #122.  Affected file silcd/packet_receive.c.
2444
2445 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2446
2447         * Remove the mark for output (mark it only for input) after
2448           purging outgoing queue.  Prevents the "Error in select()"
2449           floods.  Affected file silcd/packet_send.c.
2450
2451         * Fixed incorrect connection deletion from client library
2452           after calling "connect" client operation.  Could cause
2453           crashes for example during reconnect timeouts.  Affected
2454           files are lib/silcclient/client.c and
2455           irssi/src/silc/core/client_ops.c.
2456
2457         * Check server private key file permissions before starting
2458           the server.  Affected file silcd/serverconfig.c.
2459
2460 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2461
2462         * NULL terminate allocated string in silc_buffer_strformat.
2463           Affected file lib/silcutil/silcbuffmt.c.
2464
2465         * Rewrote the invite/ban list string handling in server to
2466           use SilcBuffer instead.  Affected files are silcd/command.c
2467           and silcd/server_util.c.
2468
2469 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2470
2471         * Fixed double free in CMODE command when setting new HMAC
2472           for channel.  Affected file silcd/command.c.
2473
2474         * Added couple of missing memset's to zero sensitive memory.
2475           Affected files silcd/command.c, lib/silcclient/command.c.
2476
2477 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2478
2479         * Fixed a double free in INVITE command error handling in
2480           server.  Affected file silcd/command.c.
2481
2482         * Added macros SILC_SWAB_[16|32] to swab byte order of
2483           16-bit and 32-bit unsigned integers.  Affected file
2484           lib/silcutil/silctypes.h.
2485
2486         * Use the SILC_SWAB_16 instead of htons() in server when
2487           handling ports since the ports in structures are always
2488           in little-endian order (regardless of platform).  Affected
2489           file silcd/serverid.c and silcd/server_backup.c.
2490
2491 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2492
2493         * Send DISCONNECT in close admin command in server.  Affected
2494           file silcd/command.c.
2495
2496         * Check whether we are already connecting to a remote router
2497           (in addition of checking whether we are already connected)
2498           before creating new connection.  Affected file silcd/server.c.
2499
2500 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2501
2502         * Added better compiler and compiler flags checking in
2503           configure.
2504
2505         * Check that socket is valid after QoS is applied to data.
2506           Affected file lib/silcutil/unix/silcunixsockconn.c.
2507
2508         * Make sure the socket connecetion is not closed to early
2509           when closing connection in server.  Also make sure the
2510           connection is always closed after error in a protocol.
2511           Affected file silcd/server.c.
2512
2513 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2514
2515         * Removed --session and --dummy options from Irssi SILC Client.
2516           -d option is available only if --enable-debug was given.
2517           Affected files are irssi/src/silc/core/silc-core,
2518           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
2519
2520 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2521
2522         * Added silc_buffer_steal to steal the data from the buffer.
2523           Affected file lib/silcutil/silcbuffer.h.
2524
2525 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
2526
2527         * Fixed server crash with double Primary block in config file.
2528
2529           Fixed also various memory leaks around the config file
2530           parser.  Affected files lib/silcutil/silcconfig.c,
2531           silcd/serverconfig.c.
2532
2533         * Changed my nickname (Johnny Mnemonic) to my real name, this
2534           means that bugs introduced by him were actually introduced
2535           by me!
2536
2537 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2538
2539         * Don't display "foo appears as foo\nYou're now known as foo"
2540           messages.  Affected file irssi/src/silc/core/client_ops.c
2541
2542 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2543
2544         * Fixed error handling of invalid client entry when calling
2545           commands in server.  Fixes a crash.  Affected file
2546           silcd/command.c.
2547
2548 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2549
2550         * Added some sanity checks in server for correctness of the
2551           server configuration.  Affected file silcd/serverconfig.c.
2552
2553 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2554
2555         * Prevent endless resolving of user informations in USERS
2556           command by checking the command reply status correctly.
2557           Affected file lib/silcclient/command_reply.c.
2558
2559 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2560
2561         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
2562           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
2563           Aldous <Matthew@Aldous.com>.
2564
2565         * Added better implementation using CriticalSection of
2566           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
2567           <mikko.lahteenmaki@pikabaana.net>.
2568
2569         * Added some Winsock WIN32 compatiblity defines into
2570           includes/silcwin32.h.
2571
2572 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2573
2574         * Fixed double free in async host lookup code.  Affected file
2575           lib/silcutil/silcsockconn.c.
2576
2577         * On backup router handle now the SERVER_SIGNOFF from router
2578           for local connected servers too, and close the connections.
2579
2580           Do not process them as normally signing off servers when they
2581           really signoff by sending EOF fe, but always assume that
2582           router sends the SERVER_SIGNOFF.
2583
2584           Affected files silcd/server.c and silcd/packet_receive.c.
2585
2586         * Fixed socket unsetting when closing connections.  Affected
2587           files silcd/server.c and silcd/packet_send.c.
2588
2589         * Do not print the nickname in SERVER_SIGNOFF if we do not
2590           have it.  Prevents asserts in Irssi core.  It is possible we
2591           don't have the nick if it was just being resolved when server
2592           signoff.  Affected file irssi/src/silc/core/client_ops.c.
2593
2594 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2595
2596         * Fixed autonick crashbug in client library.  Affected file
2597           lib/silcclient/client.c.
2598
2599         * Fixed Unix implementation of SilcMutex to really assert if
2600           the mutex is locked/unlcoked already.  Affected file
2601           lib/silcutil/unix/silcunixmutex.c.
2602
2603         * Fixed locking in silc_schedule_uninit.  It didn't lock
2604           when dispatching timeout tasks.  Affected file is
2605           lib/silcutil/silcschedule.c.
2606
2607         * Changed Win32 implementation of SilcThread to use modern
2608           Win32 interface.  Affected file is
2609           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
2610
2611 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2612
2613         * Don't print signed messages when sending failed.  Affected files
2614           irssi/src/silc/core/silc-[servers.c/commands.h]
2615
2616         * Send adquate signal when founding a channel by joing it.  Affect
2617           file irssi/src/silc/core/client_ops.c
2618
2619 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2620
2621         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
2622           irssi/src/fe-common/core/themes.c
2623
2624 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2625
2626         * Fixed close command to use the port correctly when closing
2627           server connections.  Affected file silcd/idlist.c.
2628
2629         * Check for NULL outbuf in silc_socket_write.  It is possible
2630           that it is NULL is some odd case.  Affected files are
2631           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
2632
2633         * Do not call final protocol callback for backup router
2634           resuming protocol when closing connection.  It is closed
2635           by timeout in case of error.  Affected file silcd/server.c.
2636
2637         * Backup reconnect to router if backup resuming protocol
2638           failed.  Affected file silcd/server_backup.c.
2639
2640 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
2641
2642         * Fixed double free in SKE library error hadling when signature
2643           error occurred.  Affected file lib/silcske/silcske.c.
2644
2645         * Save the fingerprint to new SilcClientEntry after changing
2646           nickname.  Affected file lib/silcclient/client_notify.c.
2647
2648         * Print SIGNOFF in Irssi SILC client only if the nickname is
2649           known.  Prevents asserts in Irssi core.  It is possible we
2650           don't have the nick if it was just being resolved when it
2651           quit.  Affected file irssi/src/silc/core/client_ops.c.
2652
2653 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2654
2655         * Fixed double free in invite list adding code when adding
2656           invite strings.  Affected file silcd/server_util.c.
2657
2658 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2659
2660         * More log printing during backup router protocol.  Affected
2661           file silcd/server_backup.c.
2662
2663         * Removed backwards support for old private key file format.
2664           Affected file lib/silccrypt/silcpkcs.c.
2665
2666         * Removed backwards support for not-so-strict decryption length
2667           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2668
2669         * GETKEY to update the client entrys fingerprint too.
2670           Affected file lib/silcclient/command_reply.c.
2671
2672         * Added --without-libtoolfix for package builders using weird
2673           wrappers around libtool (BSD at least).
2674
2675 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2676
2677         * Fixed backup router bugs:  When backup resumes router and
2678           receives a CHANNEL_MESSAGE packet the backup must not act
2679           as router since the packet header decryption would be
2680           different.  Also, when relaying packets to channel, do
2681           not re-encrypt packets on backup that came from the primary
2682           since the connection isn't really router-router connection.
2683           Affected files silcd/server.c, silcd/packet_send.c.
2684
2685         * Added checks in encryption/decryption that encryption/decryption
2686           length sent as argument really is multiple by block size.  Helps
2687           catching really weird bugs like the above backup router bugs
2688           when packets are being decrypted in wrong way.  Affected files
2689           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2690
2691         * Fixed padding generation in private key file encryption.
2692           Affected file lib/silccrypt/silcpkcs.c.
2693
2694 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2695
2696         * Added ignore_message_signatures setting which can be used
2697           to ignore signatures in messages.  Affected files are
2698           irssi/src/silc/core/client_ops.c, silc-core.c.
2699
2700         * Fixed the libtoolfix to use command line options instead of
2701           environment variables.  They didn't work as expected.  Now,
2702           the libtool is fully run-time configurable.
2703
2704 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2705
2706         * Verify signature payload for signed messages. Affected files
2707           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2708           irssi/src/silc/core/silc-core.h
2709
2710         * Display signature verification result in public and private
2711           messages using theme abstracts. See irssi/default.theme for
2712           examples on their usage. Affected files
2713           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2714           irssi/src/fe-common/silc/module-formats.[ch],
2715           irssi/src/fe-common/silc/fe-common-silc.c,
2716           irssi/src/fe-common/silc/Makefile.am
2717           irssi/src/fe-common/core/fe-messages.[ch]
2718
2719         * Fixed bugs in Irssi's theme parsing. Affected files
2720           irssi/src/fe-common/core/themes.c
2721
2722 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2723
2724         * Calculate the correct length for signed messages before
2725           encrypting, it must be multiple by block size.  Affected
2726           file lib/silccore/silcmessage.c.
2727
2728         * silc_message_signed_get_public_key returns now both
2729           decoded and encoded public key.  Affected files are
2730           lib/silccore/silcmessage.[ch].
2731
2732         * Added libtoolfix script that makes the libtool more generic
2733           and configurable in run-time.  Now we can specify in run-time
2734           if what kind of libraries we want to create, regardless of
2735           configuration.  SIMs are now creates even if --disable-shared
2736           was explicitly given.
2737
2738 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2739
2740         * Fixed founder key sending in CMODE command in client.
2741           Affected file lib/silcclient/command.c.
2742
2743         * Fixed CUMODE founder authentication in server to not check
2744           for client's public key since it's not supposed to do that.
2745           Affected file silcd/command.c.
2746
2747 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2748
2749         * Set realname and hostname in NICK_REC records. Affected file
2750           irssi/src/silc/core/silc-nicklist.c
2751
2752 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2753
2754         * Remove 1.0 protocol backwards compat code from client
2755           library.
2756
2757         * Added more reliable check for whether nickname did change
2758           or not, or whether only Client ID changed in NICK_CHANGE
2759           notify.  Affected file lib/silcclient/client_notify.c.
2760           Fixes bug in '@' character handling in a nickname.
2761
2762         * Added support for automatically parsing signature from
2763           the message payload.  Added new function
2764           silc_message_get_signature to return the payload to
2765           application.  Affected files lib/silccore/silcmessage.[ch].
2766
2767         * Changed the private_message and channel_message client
2768           operations to deliver the SilcMessagePayload to the
2769           application too.  Application can use it fe. to get the
2770           signature from the message for verification.  Affected
2771           file lib/silcclient/silcclient.h, client_channel.c and
2772           client_prvmsg.c.
2773
2774         * Redefined the signed payload for message payloads.
2775           Updated protocol specs and implemented.
2776
2777 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2778
2779         * Fixed wrong invite and ban list handling in server command
2780           reply.  Affected files are silcd/command_reply.c,
2781           silcd/server_util.[ch].
2782
2783 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2784
2785         * Fixed CMODE setting in server when founder mode was set.
2786           Affected file silcd/command.c.  Bug #95.
2787
2788         * Added support to setting specific public key in CMODE in
2789           Irssi SILC client.  Affected file lib/silcclient/command.c.
2790
2791         * Added support to use specific public key in CUMODE in
2792           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2793
2794         * Added support for inviting and banning by public key in
2795           Irssi SILC client.  Affected file lib/silcclient/command.c.
2796
2797         * Fixed fingerprint/babbleprint showing in invite and ban
2798           list command replys.  Affected file is
2799           irssi/src/silc/core/client_ops.c.
2800
2801 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2802
2803         * Format CMODE +c and +h to display both the mode and the argument
2804
2805 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2806
2807         * Added test vectors and test programs for SHA-1, MD5,
2808           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2809           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2810           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2811
2812         * Changed the channel private key and private message key
2813           generation (with static keys) to use SHA1 instead of MD5,
2814           as SHA1 is the mandatory hash function in SILC.  Affected
2815           file lib/silcclient/client_[channel/prvmsg].c.
2816
2817         * Changed the private key file encryption to use SHA1 instead
2818           of MD5.  Added support for the old generation and added
2819           automatic change of the key (to be removed later).  Affected
2820           files lib/silccrypt/silcpkcs.c.
2821
2822 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2823
2824         * Load only files with .pub suffix in PublicKeyDir.  Affected
2825           file silcd/serverconfig.c.
2826
2827 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2828
2829         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2830           channels.  Affected files silcd/silcd.c, silcd/server.h.
2831
2832         * Added the config directive PublicKeyDir for the client block.
2833           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2834
2835 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2836
2837         * Merged Toni's irssi/silc.conf patch.
2838
2839         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2840
2841         * Max alloc tests in allocation routines.  Affected file
2842           lib/silcutil/silcmemory.c.
2843
2844 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2845
2846         * Fixed a typo in resuming code that fixed detach/resume code
2847           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2848
2849 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2850
2851         * Do reverse lookups for server when /connecting. Affected files
2852           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2853           irssi/src/core/net-nonblock.*
2854
2855 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2856
2857         * Added library versioning for shared libraries.  Affected
2858           files configure.in.pre and lib/Makefile.am.pre.
2859
2860 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2861
2862         * Display INVITE and BAN lists as specified by SILC 1.2
2863
2864 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2865
2866         * Do not send invite list back unless asked (when sending
2867           no arguments) or when list was modified.  Affected file
2868           silcd/command.c.
2869
2870         * Remove client from invite list in KILLED notify and in
2871           KILL command.  Affected file silcd/command.c and
2872           silcd/server.[ch].
2873
2874         * Fixed bugs in invite list handling in INVITE command.
2875           Affected files silcd/command.c and silcd/server_util.c.
2876
2877         * Merged with Irssi 0.8.6.
2878
2879         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2880           Affected file irssi/src/fe-text/silc.c.
2881
2882 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2883
2884         * The silc_argument_get_[first/next] now return the argument
2885           type to caller.  Added silc_argument_payload_encode_one.
2886
2887           Affected files are lib/silccore/silcargument.[ch].
2888
2889         * Added support for the SILC 1.2 INVITE command and new
2890           invite lists to server.  Affected files are silcd/command.c,
2891           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2892
2893         * Added support for the SILC 1.2 BAN command and new
2894           ban lists to server.  Affected files are silcd/command.c,
2895           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2896
2897         * Added support to client sending new INVITE command.  Affected
2898           file is lib/silcclient/command.c.
2899
2900         * Added support to client sending new BAN command.  Affected
2901           file is lib/silcclient/command.c.
2902
2903         * Added support for removing client from invite list when kicked
2904           from channel, as SILC 1.2 dictates.  Affected files are
2905           silcd/packet_receive.c and silcd/command.c.
2906
2907 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2908
2909         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2910           automatically the cipher's internal IV.  Affected files
2911           lib/silccrypt/silccipher.[ch].
2912
2913         * Assure the RESUME_CLIENT packet is not sent to twice to
2914           backup router if the detached client was originated from
2915           the backup.  Affected file silcd/server.c.  Bug #76.
2916
2917         * Changed silc_sim_symname to not allocate memory.  Affected
2918           file lib/silcsim/silcsimutil.c.
2919
2920         * Fixed memory leaks with SIMs in server.  Affected files
2921           silcd/serverconfig.c, silcd/server.c.
2922
2923         * Fixed channel key distribution after resuming detached
2924           client.  Affected files silcd/packet_receive.c.
2925
2926         * Fixed channel's global_user boolean checking after detaching.
2927           Check it after changing the owner of the client not before.
2928           Affected file silcd/packet_receive.c.
2929
2930         * Fixed few double frees from client library.  Fixes at least
2931           Bug #81, possibly others too.
2932
2933         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2934           notifys in Irssi SILC Client.  Affected file is
2935           irssi/src/silc/core/client_ops.c.  Bug #82.
2936
2937         * Applied Ville Räsänen's manual page and --mandir bugfix
2938           patch.  Affected files are configure.in.pre and Makefile.am.pre.
2939           Bug #88.
2940
2941 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2942
2943         * Added support to backup router protocol for backup to tell
2944           normal server that it cannot use the backup router as primary
2945           because the primary isn't really down.  Updated protocol
2946           specs.
2947
2948         * Added support for primary router to tell backup router that
2949           resuming is not possible because the backup really isn't primary
2950           in the cell.  For example if backup disconnected itself the
2951           resuming is not allowed since the primary really did not
2952           go down.  Updated protocol specs.
2953
2954         * Removed MARS from crypto library.
2955
2956         * Defined the CTR mode and Randomized CBC mode in SILC.  The
2957           CTR mode is RECOMMENDED now in specification.  Defined also
2958           Serpent cipher as optional cipher.  Updated the protocol specs.
2959
2960 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2961
2962         * Added support for inviting/banning by IP/MASK, public key,
2963           and explicit Client ID.  Redefined the command and notify
2964           types to allow easier forwards support for other methods
2965           of inviting/banning.  Updated protocol specs.
2966
2967         * Remove the client from channel's invite lists if the client
2968           is kicked or killed.  Updated protocol specs.
2969
2970         * Unified the Channel Message Payload and Private Message
2971           into one Message Payload.  Updated protocol specs and
2972           implemented.
2973
2974 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2975
2976         * Don't wait for EOF after socket error has occurred, but
2977           close the connection.  Affected file is silcd/server.c.
2978
2979 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2980
2981         * Added support for setting FOUNDER mode on channel with
2982           specific public key which can be set with CMODE command.
2983           Updated protocol specs and implemented in client and server.
2984
2985         * Fixed the Irssi SILC client to correctly shutdown the client
2986           library to avoid memory leaks.  Affected files are
2987           irssi/src/silc/core/silc-core.c and silc-servers.c.
2988
2989         * Deprecated the No Reply flag in SKE protocol and introduced
2990           "IV Included" flag which can be used to indicate that the IV
2991           is included in the ciphertext.  This makes it possible to use
2992           SILC on unreliable transport, such as UDP which may cause
2993           packet reordering and losses.  Updated protocol specs, did
2994           not implement yet.
2995
2996 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2997
2998         * Fixed the MPI implementation of silc_mp_sizeinbase to return
2999           < 32 bit values in correct size.  Affected file is
3000           lib/silcmath/mp_mpi.c.
3001
3002 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3003
3004         * Fixed the KE Start Payload parsing to check that mandatory
3005           fields are present.  Affected file lib/silcske/payload.c.
3006
3007         * Fixed compilation warnigs in Irssi SILC Client.  Affected
3008           files are irssi/src/silc/core/silc-query.c. client_ops.c.
3009
3010 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3011
3012         * Print "nick now appears as newnick" and update Irssi's nicklist
3013           when you change your nick to "nick". Closes #62
3014
3015         * Never format your own nick. Closes #63
3016
3017 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3018
3019         * SILC_UMODE_GONE changes are now propagated correctly to the
3020           Irssi client. Closes #54
3021
3022 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3023
3024         * Fixed example in /HELP KEY
3025
3026         * Added expando $j which expands to current SILC Client version
3027
3028 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3029
3030         * Fixed public key decoding in crypto library.
3031
3032         * Added better error printing to SKE library.
3033
3034 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3035
3036         * Fixed NICK command to not crash if nickname was not sent.
3037
3038 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3039
3040         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
3041           Deprecated the old Encrypt-And-MAC order.  Updated protocol
3042           specs and implemented.
3043
3044         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
3045           generation.  Updated specs and implemented.
3046
3047 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3048
3049         * Added support for rekey before 2^32 sequence number wraps.
3050           Affected files in server and client library.
3051
3052         * Padding must be at least 8 bytes now.  Implemented and updated
3053           protocol specs.
3054
3055         * Compute maximum padding for authentication packets to make
3056           passphrase approximation attacks impossible.  Affected files
3057           in client library and in server.
3058
3059         * Fixed PING command sending in client library and handling in
3060           server.  The server ID must be ID Payload, not raw ID data.
3061           Affected files in server and client library.
3062
3063         * Defined that all public keys sent in commands and notify
3064           payloads are actually Public Key Payloads not raw public key
3065           data.  Updated protocol specs and implemented.
3066
3067         * Updated protocol version to 1.2.  Updated specs and code.
3068
3069         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
3070           status types.  Updated specs and the code.
3071
3072         * Added support for normal client to kill its own entries from
3073           the network.  Updated protocol specs and the code.
3074
3075         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
3076           and added initial implementation.
3077
3078         * Added MAC field to the Private Message Payload to protect
3079           against chosen ciphertext attacks.  Updated the protocol specs
3080           and implemented.
3081
3082         * Added idle and signon fields to the ATTRIBUTE_SERVICE
3083           attribute to indicate the user's current idle and signon time
3084           of a service.  Updated protocol specs and implemented.
3085
3086 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3087
3088         * Added "do_not_bind" argument to silc_client_file_send what
3089           can be used to not bind locally but assume the file receiver
3090           provides the point of connect.  Usefull when sender is behind
3091           NAT device.  Affected file lib/silcclient/silcclient.h and
3092           client_ftp.c.
3093
3094         * Added -no-listener option to FILE SEND command in Irssi SILC
3095           client.  Affected file irssi/src/silc/core/silc-servers.c.
3096           Renamed FILE RECEIVE to FILE ACCEPT.
3097
3098         * Confirm passphrase for private key encryption in
3099           silc_create_key_pair and silc_change_private_key_passphrase.
3100           Affected files are lib/silcutil/silcapputil.c.
3101
3102 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3103
3104         * Move silc_client_packet_send back to internal, added
3105           silc_client_send_packet, a bit simpler function for application.
3106           Affected files lib/silcclient/silcclient.h, client.c and
3107           client_internal.h.
3108
3109         * Moved the SilcClientEntry, SilcChannelEntry and
3110           SilcServerEntry to silcclient.h to be public and documented
3111           them for application.  Affected files are
3112           lib/silcclient/silcclient.h and idlist.h.
3113
3114 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3115
3116         * Fixed manual page installation patch by Ville Räsänen.
3117           USERS help page fix patch by Ville Räsänen
3118
3119         * Changed the silc_client_command_call interface to make
3120           the command call simpler for the application.  The library
3121           now handles the command line parsing, command finding and
3122           execution.  Application only needs to call the function
3123           with the command line.  Affected files are
3124           lib/silcclient/silcclient.h, command.[ch].
3125
3126         * Fixed silc_get_input to NULL-terminate the returned input.
3127           Affected file lib/silcutil/silcutil.c.
3128
3129         * Resolve the client's public key in JOIN command if the
3130           founder auth data is being requested but we don't know the
3131           client's public key.  Affected file silcd/command.c.
3132           Bug #53.
3133
3134 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3135
3136         * Print notify for server opers when backup router comes
3137           online.  Affected file silcd/server.c.
3138
3139         * Fixed the INVITE command to send the invite list in
3140           command reply.  Affected file silcd/command_reply.c.
3141
3142         * Fixed MOTD command reply sending.  Affected file
3143           silcd/command.c.
3144
3145         * UTF-8 decode the topic in TOPIC command reply and LIST
3146           command reply in Irssi SILC client.  Affected file is
3147           irssi/src/silc/core/client_ops.c.
3148
3149 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3150
3151         * Fixed the INVITE command to not crash Irssi SILC client
3152           when given without nickname argument.  AFfected file
3153           irssi/src/silc/core/client_ops.c.
3154
3155         * Fixed double free in WHOIS query on normal server when
3156           forwarding query to router.  Affected file is
3157           silcd/server_query.c.
3158
3159         * Fixed WATCH command reply handling on normal server which
3160           was missing altogether.  Affected file silcd/command_reply.c.
3161           Bug #44.
3162
3163 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
3164
3165         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
3166           Included yodl sources for each of these. Also modified
3167           Makefile.am prototype to install these files to proper
3168           locations. Updated CREDITS. Affected file Makefile.am.pre,
3169           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
3170           doc/silcd.8.
3171
3172 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3173
3174         * Added support for encrypted private key files.  Now
3175           passphrase must be provided when new key pair is created
3176           (can be empty though), and prompted when loading the
3177           private key.  Added support for loading the old-style
3178           non-encrypted private keys as well.  Affected files
3179           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
3180           SILC Server.
3181
3182         * Fixed silc_get_input to accept input on all terminals.
3183           Affected file lib/silcutil/silcutil.c.
3184
3185         * Moved the Irssi SILC client key loading and other stuff
3186           to be called after the arguments and UI is initialized.
3187           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
3188
3189         * Added -P option to Irssi SILC client which can be used
3190           to change the passphrase of the private key.  Affected
3191           file irssi/src/silc/core/silc-core.c.
3192
3193         * Added silc_change_private_key_passphrase apputil routine
3194           to lib/silcutil/silcapputil.[ch].
3195
3196 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3197
3198         * Fixed connection closing in client library to not crash.
3199           Moved the connection freeing totally to function
3200           silc_clinet_del_connection.  Affected file
3201           lib/silcclinet/client.c.
3202
3203 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3204
3205         * Changed includes/silcincludes.h to silcincludes.h.in to
3206           include configuration specific information.  The silcdefs.h
3207           is not included in to installation anymore (it's only
3208           compilation time header).
3209
3210 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3211
3212         * Moved the SilcClient and SilcClientConnection from client.h
3213           to the public lib/silcclient/silcclient.h.  Changed the
3214           structures a bit.
3215
3216 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3217
3218         * If version string in silc_clinet_alloc is NULL the library
3219           puts it automatically.  Affected file lib/silcclient/client.c.
3220
3221         * Changed the version strings from variables to #define's
3222           in includes/silcversion.h.
3223
3224 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3225
3226         * Added shared library complation support.
3227
3228 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3229
3230         * Added lib/silcutil/silcapputil.[ch] for application
3231           utility functions.  It includes routines for applications'
3232           convenience.  Added silc_create_key_pair, silc_show_public_key
3233           and silc_load_key_pair functions.
3234
3235 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3236
3237         * Send RESUME_CLIENT packet from router to backup routers
3238           to in resuming.  Affected file silcd/packet_receive.c.
3239
3240 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3241
3242         * In IDENTIFY command parsing, send all other IDs except
3243           Client IDs explicitly to router for resolving on normal
3244           server.  Also check that ID received in WHOIS command is
3245           always Client ID, others are not allowed.  Affected file
3246           silcd/server_query.c.
3247
3248         * Merged latest changes from irssi.org CVS.
3249
3250 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3251
3252         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
3253           Affected files irssi/src/silc/core/silc-core, silc-server.c.
3254
3255         * Fixed the heartbeat sending in Irssi SILC client.  Moved
3256           the silc_client_packet_send to silcclient.h for application
3257           usage.  Affected files lib/silcclient/client_internal.h
3258           lib/silcclient/silcclient.h.
3259
3260         * Fixed a bug in query resolving in server.  Used wrong
3261           variable in a for loop and crashed.  Affected file is
3262           silcd/server_query.c.
3263
3264         * Server constructs requested attributes only to locally
3265           connected clients.  Affected file silcd/server_query.c.
3266           Bug #36.
3267
3268         * Fixed a bug when sending resolving from router to server
3269           with requested attributes.  The constructed WHOIS command
3270           was incorrect.  Affected file silcd/server_query.c.
3271           Bug #38.
3272
3273         * Fixed Requested Attributes saving in WHOIS command reply.
3274           The length of the data buffer must be saved too.  Affected
3275           file silcd/command_reply.c.
3276
3277         * Update the client entry's servername after detaching is
3278           over.  Affected file silcd/packet_receive.c.  Bug #37.
3279
3280         * Resolve incomplete client entrys in CUMODE_CHANGE and
3281           CMODE_CHANGE notifys.  Affected file is
3282           lib/silcclient/client_notify.c.  Bug #42.
3283
3284 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3285
3286         * Fixed channel key packet processing bug on backup router
3287           during backup resuming protocol.  Affected file is
3288           silcd/packet_receive.c.
3289
3290         * Fixed memory leaks in server.  Affected files are
3291           silcd/server.c and silcd/packet_receive.c.
3292
3293         * Fixed packet decryption problem when backup router encrypted
3294           channel message with wrong key during backup resuming
3295           protocol.  Affected file silcd/packet_send.c.
3296
3297         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
3298           Toni Willberg (toniw@iki.fi)
3299
3300         * Changed the SilcCipher context to be private.  Changed the
3301           silc_cipher_get_iv to just return pointer to the IV.  Added
3302           silc_cipher_get_name to return the name of the cipher.
3303           Fixed code all around to support these changes.  Affected
3304           files are lib/silccrypt/silccipher.[ch], client library and
3305           server.
3306
3307 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3308
3309         * Fixed unaligned access in lib/silccore/silcattrs.c.
3310
3311         * Fixed libtool linking in lib/silcsim/Makefile.am.
3312
3313         * Fixed services attribute printing.  Affected files is
3314           irssi/src/silc/core/silc-queries.c.
3315
3316 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3317
3318         * Fixed a crashbug in incoming server accepting.  Affected
3319           file silcd/server.c.
3320
3321 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3322
3323         * Added automatically generated index to Toolkit Reference
3324           Manual.
3325
3326         * Added support for Postscript Toolkit Reference Manual.
3327
3328 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3329
3330         * Merged DISCONNECT fix, and autoconn port fix from Irssi
3331           CVS.
3332
3333 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3334
3335         * Added 'send_events' boolean argument to the function
3336           silc_schedule_set_listen_fd which sends the set events to
3337           the application explicitly if set to TRUE.  Default action
3338           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
3339           lib/silcclient/client_internal.h and silcd/server_internal.h.
3340
3341         * Added silc_compare_timeval to determine which time values
3342           is smaller.  Affected file lib/silcutil/silcutil.[ch].
3343
3344         * Added sort-of "Quality of Service" (QoS) support to
3345           SilcSocketConnection.  Data reception can be controlled with
3346           rate limit per second and/or read data length limit.
3347           Added silc_socket_set_qos.  Affected files are
3348           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
3349
3350         * Added the QoS configuration to SILC Server configuration
3351           file.  Affected files are silcd/serverconfig.[ch] and
3352           server.c.
3353
3354 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3355
3356         * Merged with irssi.org CVS.
3357
3358         * Failed OPER and SILCOPER authentications are now logged.
3359           Affected file silcd/command.c.  Bugs #25.
3360
3361 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3362
3363         * ROBODoc documented lib/silcutil/silcbuffer.h and
3364           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
3365           <ville.rasanen@iki.fi>.
3366
3367 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3368
3369         * Added support for auto-passphrase authentication from the
3370           config file during connecting which was not implemented
3371           yet.  Affected file irssi/src/silc/core/client_ops.c.
3372
3373         * Fixed a bug in authentication protocol failure handling which
3374           was processing wrong callback context.  Affected files
3375           are lib/silcclient/client.c and protocol.c.
3376
3377         * Fixed the /ATTR allow off to actually work.  Affected file
3378           is irssi/src/silc/core/silc-queries.c.
3379
3380         * Fixed the /ATTR -del to work.  Affected file is
3381           irssi/src/silc/core/silc-queries.c.
3382
3383 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3384
3385         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
3386
3387         * Fixed mask attribute adding in Irssi SILC client.  Affected
3388           file irssi/src/silc/core/silc-queries.c.
3389
3390 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3391
3392         * Added support for saving the requested attributes in
3393           WHOIS to directory.  Affected file is
3394           irssi/src/silc/core/silc-queries.c.
3395
3396 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3397
3398         * Added support for parsing VCard fields that do not have
3399           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
3400
3401         * Fixed a double free bug in hash table foreach function
3402           if the entry was deleted in the foreach callback.  Affected
3403           file lib/silcutil/silchashtable.c.
3404
3405 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3406
3407         * Added silc_attribute_get_verify_data to return the signature
3408           verification data for either user digital signature or
3409           server digital signature in Requested Attributes.  Affected
3410           files are lib/silccore/silcattrs.[ch].
3411
3412         * Added silc_vcard_alloc which is used to allocated dynamic
3413           SilcVCard context.  The silc_vcard_free now checks whether
3414           the context is dynamically allocated or not.  Affected files
3415           are lib/silcutil/silcvcard.[ch].
3416
3417 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3418
3419         * Periodically remove the NOATTR status from client entry
3420           so that the client may take the attributes in use even after
3421           server has resolved them unsuccessfully earlier.  Affected
3422           file silcd/server_query.c and idlist.h.
3423
3424         * Moved sha1hash and md5hash from client->internal to
3425           SilcClient for application usage.  Affected files are
3426           lib/silcclient/client.h and client_internal.h.
3427
3428         * Fixed attribute encoding and decoding bugs.  Affected
3429           files lib/silccore/silcattrs.[ch].
3430
3431         * Added ATTR command to Irssi SILC Client which is used to
3432           manage user's Requested Attributes sending and values for
3433           WHOIS command.  Affected files around Irssi SILC client.
3434
3435 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3436
3437         * Added silc_buffer_strformat which can be used to format
3438           strings into a buffer which size is automatically increased.
3439           Affected file lib/silcutil/silcbuffmt.[ch].
3440
3441         * Added implementation of VCard (RFC 2426) which can be used
3442           as part of Requested Attributes in WHOIS command.  Affected
3443           file lib/silcutil/silcvcard.[ch].
3444
3445 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3446
3447         * Some strncat -> silc_strncat changes our the core and
3448           client library.
3449
3450         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
3451           errors.  Added better error printing to SKE library.
3452           Affected files lib/silcske/silcske.c, silcske_status.h and
3453           payload.c.
3454
3455         * Save the PKCS key length even if only private key is set to
3456           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
3457
3458         * Fixed the usage of silc_pkcs_get_key_len since it returns the
3459           length in bits not in bytes.  Affected files are
3460           lib/silcske/silcske.c, lib/silccore/silcauth.c and
3461           silcd/server_query.c.
3462
3463 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3464
3465         * Added silc_attribute_payload_encode_data to directly encode
3466           the data into the attributes buffer.  Renamed function
3467           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
3468           Affected files are lib/silccore/silcattrs.[ch].
3469
3470         * silc_hash_table_find_foreach calls the foreach function now
3471           once even if the nothing was found with context set to NULL.
3472           Affected file lib/silcutil/silchashtable.[ch].
3473
3474         * Remove the RESOLVING flag from client entry after received
3475           the Requested Attributes from the client.  Fixed memory leak
3476           in client entry freeing.  Affected files silcd/server_query.c
3477           and idlist.c.
3478
3479         * Added Requested Attributes support into SILC Client Library.
3480           It is not able to send requested attributes in WHOIS command,
3481           and also receive and process requested attributes.  Added
3482           silc_client_attribute_[add|del] and silc_client_attributes_get
3483           functions.  Added also `ignore_requested_attributes' to the
3484           SilcClientParams to not use attributes in client.  Affected
3485           files are lib/silcclient/command.c, client_attrs.[ch],
3486           silcclient.h, client_internal and client.[ch].
3487
3488         * Changed the silc_client_get_client_by_id to support Requested
3489           Attributes, it takes them as argument now.  Affected file
3490           is lib/silcclient/silcclient.h, and idlist.c.
3491
3492         * Added -details option to WHOIS command in Irssi SILC Client
3493           to support the requested attributes.  By default it requests
3494           all attributes.  Affected file lib/silcclient/command.c and
3495           irssi/doc/help/in/whois.in.
3496
3497 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3498
3499         * Add also SERVICE attribute for server-constructed attribute
3500           data.  Also digitally sign the attributes and add
3501           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
3502           silcd/server_query.c.
3503
3504 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3505
3506         * Changed the silc_attribute_payload_encode to support list
3507           of attributes (function may be called several times to add
3508           a new attribute).  Removed the silc_attribute_payload_encode_list
3509           function.  The encoding function now also automatically encodes
3510           the data, so the caller does not need to do that.  Affected
3511           files lib/silccore/silcattrs.[ch].
3512
3513         * Added support for replying on behalf of the user to the
3514           Requested Attributes in WHOIS command in the server.  Affected
3515           file silcd/server_query.c.
3516
3517         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
3518           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
3519
3520 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3521
3522         * Don't swtich to become primary router if we are backup if
3523           decryption error has occurred.  Affected file silcd/server.c.
3524
3525         * Fixed a bug in backup router IP address comparison in
3526           silc_server_backup_get.
3527
3528           Save now also the port of the server/router and use that
3529           in comparison as well.  Affected file silcd/server_backup.c.
3530
3531         * Normal server now reconnects to backup router automatically
3532           if connection is lost to it.  Affected file silcd/server.c.
3533
3534 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3535
3536         * If packet processing fails (like integrity check fails)
3537           the connection is closed now.  Affected files are
3538           lib/silccore/silcpacket.c and silcd/server.c.
3539
3540 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3541
3542         * Fixed double free in RSA public key set function
3543           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
3544           Bug #29.
3545
3546 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3547
3548         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
3549           Added server_query.[ch] which provides one interface for
3550           querying information using all three commands.
3551
3552         * Changed all "typedef unsigned char" in core library to
3553           "typedef SilcUInt8".
3554
3555 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3556
3557         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
3558
3559         * Renamed silc_server_get_client_resolve to
3560           silc_server_query_resolve and moved to server_query.[ch].
3561
3562 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3563
3564         * Resumed client packet handling from server put the resumed
3565           client on wrong list on router and caused the client not
3566           be present on the network anymore.  Now fixed to put the
3567           client to correct list.  Affected file silcd/packet_receive.c.
3568
3569 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3570
3571         * Various cleanup in error message output in config parsing code
3572           and in server init code.  Fixed error log files containing
3573           too many newlines ('\n') in some situations.  Affected files are
3574           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
3575
3576 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3577
3578         * Use the reverse lookupped hostname in client internals
3579           instead of one user provided us as remote server name.
3580           Affected file lib/silcclient/client.c.
3581
3582 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3583
3584         * Added 'app_context' to silc_schedule_init.  It is an
3585           application specific context that is delivered to application
3586           in task callback functions.  Affected files are
3587           lib/silcutil/silcutil.[ch].
3588
3589         * The hb_context in SilcSocketConnection is not freed
3590           automatically anymore (application must free it).  Freeing
3591           it automatic is inconsistent.  Affected files are
3592           lib/silcutil/silcsockconn.[ch].
3593
3594 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3595
3596         * Added support for removing explicitly added client connections
3597           in rehash and closing the client connections if they were
3598           unconfigured in the rehash.  Affected file silcd/server.c.
3599
3600         * Added support for aborting automatically pending commands
3601           that never receives the reply (to avoid memory leaks).
3602           Added also silc_server_command_pending_timed to set the
3603           specific timeout for pending command.  Affected files are
3604           silcd/command[_reply].[ch].
3605
3606         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
3607           specs and lib/silccore/silcstatus.h.
3608
3609 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3610
3611         * Changed the silc_get_time to accept time value as argument
3612           or if zero is sent return current local time.  Affected
3613           file lib/silcutil/silcutil.[ch].
3614
3615         * Added STATS command to client library and Irssi SILC client.
3616           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
3617
3618 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3619
3620         * Assure that channel key is set before sending it.  May
3621           crash server otherwise.  Affected file silcd/packet_send.c.
3622
3623 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3624
3625         * Assure that endless loop cannot happen with detached client
3626           resolving on normal server.  Added idlist status
3627           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
3628           silcd/idlist.h and silcd/packet_receive.c.
3629
3630 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3631
3632         * Incoming file transfer request cannot use same session as
3633           the sending session.  This can happen when sending file to
3634           yourself.  Crashed the client on quit.  Affected file
3635           lib/silcclient/client_ftp.c.  Bug #24.
3636
3637 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3638
3639         * Implemented the draft-riikonen-precense-attrs draft and
3640           the Attribute Payload into the lib/silccore/silcattrs.[ch].
3641
3642 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3643
3644         * Distribute the SERVER_SIGNOFF notify also to local backup
3645           routers from the primary router.  The backup router may not
3646           have the signing of local server directly connected and need
3647           to know about the signoff.  Affected file silcd/server_util.c.
3648
3649         * Use the primary router as the origin of the locally connected
3650           server when it is disconnecting from the backup router since
3651           that's where it really is coming from.  Now the clients from
3652           the disconnecting server are removed correctly and "shadow"
3653           clients are not left to the backup router.  Affected file
3654           silcd/server.c.
3655
3656 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3657
3658         * If normal server is standalone and found existing but disabled
3659           channel, do not re-create the channel since it creates
3660           duplicate same channels.  Affected file silcd/server.c.
3661
3662         * Added anonymous client connections support to server.  New
3663           "anonymous" configuration option to ConnectionParams section
3664           added.  If set to true, the username and hostname information
3665           of the client will be scrambled and anonymous user mode is
3666           set automatically to the user.  Affected files are
3667           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3668
3669 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3670
3671         * In JOIN notify handling, mark that the cache entry of the
3672           client cannot be expired.  Can cause crashes on normal
3673           server (asserts client->channels).  Affected file is
3674           silcd/packet_receive.c.
3675
3676         * From now on distribution versions are used as protocol versions
3677           instead of by default using the Toolkit base version as protocol
3678           version.  Affected file prepare.
3679
3680         * Do not set the locally resolved hostname for local client
3681           entry but take what server sends.  This way the real hostname
3682           is showed in WHOIS for yourself.  Affected file is
3683           lib/silcclient/idlist.c and lib/silcclient/client.c.
3684
3685         * Resolve local info with IDENTIFY when connecting to server.y
3686
3687 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3688
3689         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3690           for implied search (not needed on platforms which has native
3691           pthreads library).  Use --without-pthreads to disable threads.
3692           Affected file is configure.in.pre
3693
3694         * Fixed --with-iconv on platforms which need to bypass (broken)
3695           native iconv().  Affected file is configure.in.pre
3696
3697 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3698
3699         * Moved -C option parsing in Irssi SILC client at same time
3700           as other options.  The UI was initialized earlier and caused
3701           problems on command line.  Bug #16.  Affected file is
3702           irssi/src/silc/core/silc-core.c.
3703
3704 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3705
3706         * Added global variable silc_log_timestamp that tells silclog
3707           wether to print or not the timestamp in the logging files.
3708           Affected file lib/silcutil/silclog.[ch].
3709
3710         * Added silcd configuration option Timestamp in the Logging
3711           section.  Affected file silcd/serverconfig.[ch],
3712           doc/example_silcd.conf.in.
3713
3714 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3715
3716         * Fixed fingerprint checking to check for entirely empty
3717           fingerprint instead of two first bytes when determining
3718           if it is set.  Bug #18.  Affected file silcd/command.c.
3719
3720         * Fixed duplicate PKCS name registering to not allow it.
3721           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3722
3723 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3724
3725         * Conditionalize non-gcc compiler optimizations for various
3726           platforms, enable those commented out.  Cleanups.
3727           Affected file lib/silcmath/mpi/configure.in
3728
3729 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3730
3731         * silc_rng_exec_command() left zombie processes if command
3732           didn't generate any output.  Affected file
3733           lib/silccrypt/silcrng.c
3734
3735 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3736
3737         * Rewrote iconv checking, introduce --with-iconv for systems
3738           which rely on libiconv.  Check if iconv() provided by libc
3739           is good enough, otherwise demand libiconv.  Affected file
3740           configure.in.pre
3741
3742 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3743
3744         * Search for ldopen() also in libc.  This enables SIM support
3745           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3746           file configure.in.pre
3747
3748 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3749
3750         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3751           This fixes prepare on *BSD systems.  Affected file
3752           configure.in.pre
3753
3754 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3755
3756         * More fixed for not having purge timeout for global clients
3757           that are on channel.  Affected files silcd/command_reply.c
3758           and server_util.c.
3759
3760         * Fixed the rekey protocol to work with backup router connections.
3761           Rekey packets are now allowed on disabled connections as
3762           well.  Affected files silcd/packet_send.c and server.c.
3763
3764         * Do not switch to be as backup router when shutting down and
3765           closing the primary connection.  Affected file silcd/server.c.
3766
3767         * Fixed memory leaks in backup router deleting.  Added
3768           silc_server_backup_free to free all data during shutdown of
3769           server.  Affected files silcd/server_backup.[ch].
3770
3771 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3772
3773         * Do not process commands if the sock->user_data is NULL.
3774           Affected file silcd/command.c.
3775
3776 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3777
3778         * Fixed buffer overflow and security problems (loosing bits
3779           in CFB encryption) in SILC RNG.  Problems reported by
3780           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3781
3782 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3783
3784         * Added yet more checks that client is not expired on global
3785           list if it is on channels.  Affected file is
3786           silcd/command_reply.c.
3787
3788 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3789
3790         * Merged c0ffee's MIME signal patch which adds support for
3791           sending also MIME messages in Irssi SILC Client, and handling
3792           received MIME messages in a signal (and perhaps doing something
3793           to non-textual MIME messages).
3794
3795 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3796
3797         * Fixed pending command deletion in server and client library
3798           to check the whole list instead of breaking after first found.
3799           The affected files are silcd/command.[ch] and
3800           lib/silcclient/command.[ch].
3801
3802 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3803
3804         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3805           secret or private, otherwise it's possible to find out
3806           whether a secret channel exists or not.  Affected file
3807           silcd/command.c.
3808
3809         * If CMODE change fails during the mode setting, assure that
3810           the old mode mask is set for the channel back.  Affected
3811           file silcd/command.c.
3812
3813         * Fixed passphrase saving on +a channel on normal server
3814           after successful JOIN command.  Affected file silcd/command.c.
3815
3816 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3817
3818         * Remove server/router operator privileges in DETACH command,
3819           since it's possible to resume to server where these
3820           privileges would not be allowed for the client.  Affected
3821           file silcd/command.c.
3822
3823         * Do not set to wait for backup in rehash of the server.
3824           Affected file silcd/server.c.
3825
3826         * Do not check listener sockets when counting how many
3827           socket connections we have.  Affected file is
3828           silcd/server_util.c.
3829
3830         * Do not announce disconnected clients that are remaining
3831           in history (for WHOWAS).  This is because SIGNOFF notify
3832           for these has been sent earlier already.  Affected file
3833           silcd/server.c.
3834
3835 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3836
3837         * Buffer overflow with CUMODE command's mode->mode character
3838           conversion.  Reported by Ville Räsänen.  Affected file
3839           lib/silcutil/silcutil.c.
3840
3841 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3842
3843         * Allow heartbeat packets to go disabled connections anyway.
3844           Affected files silcd/server.c and silcd/packet_send.c.
3845
3846         * Do not broadcast New Channel packets with List flag set
3847           in the packet to backup routers.  The router must check
3848           for the correctness of the packets before sending them.
3849           It is possible that router will have enforce Channel ID
3850           change and this would cause desync in the backup router.
3851           Affected file silcd/packet_receive.c.
3852
3853         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3854           are handled in list parsing.  They are not list packets
3855           anymore.  Affected file silcd/packet_receive.c.
3856
3857 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3858
3859         * Stop waiting for backup router through the timeout, not
3860           directly after backup router has arrived.  Affected file
3861           silcd/server.c.
3862
3863         * Do not re-create channel keys and send them when removing
3864           clients in server shutdown.  Affected files are
3865           silcd/server_internal.h and silcd/server_util.c.
3866
3867         * Notify distribution to backup routers was missing from
3868           the silc_server_send_notify_dest function which caused
3869           desyncing problems with backup router.  Affected file is
3870           silcd/packet_send.c.
3871
3872         * The client's channel removing was working wrong on
3873           backup router.  It assumed that it doesn't know global
3874           information but backup router does know.  For this reason
3875           it could remove channel when it wasn't supposed to do that.
3876           Affected file silcd/server.c and silcd/server_util.c.
3877
3878 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3879
3880         * Stop for a couple seconds after badkup router has become
3881           primary router.  Affected file silcd/server.c.
3882
3883         * Added silc_server_remove_servers_by_server, which is used
3884           to remove servers originated from some other server.  Also
3885           clients of those servers can be removed too.  Affected file
3886           silcd/server_util.[ch].
3887
3888         * When removing clients after a server has signed of remove
3889           also all servers behind that server (unless they are known
3890           to be available locally), and send SERVER_SIGNOFF for each
3891           of the server separately.  Also the signed off clients are
3892           sent now separately per signed off server.  The affected files
3893           are silcd/server.c and silcd/server_util.[ch].
3894
3895         * All servers added with silc_idlist_add_server must always
3896           have both "router" and "connection" pointers set.  Otherwise,
3897           bad server entries may be left around in the cache.
3898           Affected file silcd/command_reply.c.
3899
3900         * Do not create the channel key in NEW_CHANNEL packet
3901           processing if the channel is empty.  Affected file
3902           silcd/packet_receive.c.
3903
3904         * Completed backup router support for standalone routers.
3905           Supports also servers in the cell that do not use the backup
3906           at all.
3907
3908 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3909
3910         * Fixed a bug in silc_string_regexify which did not add '^'
3911           at the start of each string, and thus the matching was
3912           not explicit.  For example ban list iikone@*!*@* would
3913           match also "priikone", which is wrong, it would have to be
3914           *iikone@*!*@* to match also "priikone".  Affected
3915           file lib/silcutil/unix/silcunixutil.c.
3916
3917 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3918
3919         * Enable all local server connections before updating client
3920           caches when we've become backup router.  Otherwise, signoff
3921           packets may not reach the clients.  Affected files are
3922           silcd/server.c and silcd/server_util.[ch].
3923
3924         * Fixed a bug in version string parsing which could crash
3925           the program with specially formatted version string.
3926           Bug reported and patch provided by Ville Räsänen.  Affected
3927           file lib/silcutil/silcutil.c.
3928
3929         * Handle the disconnection immediately when DISCONNECT
3930           packet is received in server.  Affected file silcd/server.c.
3931
3932         * Primary router now waits a short time (10 seconds) for
3933           backup router connection before accepting any other
3934           connection (except local).  Affected file silcd/server.c,
3935           serverconfig.[ch].
3936
3937         * Fixed a crash in client libary in NICK_CHANGE notify when
3938           NICK_CHANGE arrived for client entry we are resolving
3939           currently.  Affected file lib/silcclient/client_notify.c.
3940
3941         * Call the sconn->callback completion even if error had
3942           occurred.  Start reconnecting always if connection to
3943           primary router fails during backup router protocol.
3944           Affected files silcd/server.c and server_backup.c.
3945
3946 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3947
3948         * Added functions silc_server_send_opers and
3949           silc_server_send_opers_notify to send packets stricly
3950           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
3951           to send variable argument notify to operators.
3952           Affected files silcd/packet_send.[ch] and silcd/server.h.
3953
3954         * Removed UMODE rights checking with UMODE_CHANGE notify.
3955           Affected file silcd/packet_receive.c.
3956
3957         * Server/router operator now receives notify when network
3958           switches to backup router and when it resumes the use of
3959           primary router.  Affected file silcd/server.c and
3960           silcd/server_backup.c.
3961
3962         * Fixed the updating of client information after backup
3963           resuming protocol is over; update all except local clients
3964           to the new primary router.  The affected file is
3965           silcd/server_util.c.
3966
3967         * Added support for closing active connections in rehash
3968           that were unconfigured by the user.  Supports currently
3969           closing server and router connections.  Affected file
3970           silcd/server.c.
3971
3972         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
3973
3974 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3975
3976         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
3977           is NULL since seems that on some platforms NULL is allowed
3978           and on some it's not.  Fallback encoding is used instead.
3979           Affected file lib/silcutil/silcstrutil.c.
3980
3981         * Fixed statistics updating for incoming server connection
3982           which could cause problems when re-connecting.  Affected
3983           file silcd/server.c.
3984
3985         * Preliminary backup router support for standalone router
3986           added.  Affected files in silcd/.
3987
3988         * Mark server connections in backup router disabled before
3989           and after backup protocol.  Affected file is
3990           silcd/server_backup.c.
3991
3992         * Added support for reconnecting to remote server connection
3993           even if the protocol fails, and if the configuration wants
3994           us to keep trying to connect anyway.
3995
3996           Server connection is not allowed to backup router if
3997           backup router does not have connection to primary router yet.
3998
3999           Affected file is silcd/server.c.
4000
4001 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4002
4003         * Added silc_client_udpate_server function to update changed
4004           server info.  Affected file lib/silcclient/idlist.[ch].
4005
4006         * Added check for server entries that are being resolved when
4007           notify is received.  If being resolved, handle the received
4008           notify only after it's resolved so that all notifys are
4009           handled in same order as received from the server.
4010
4011           Added similar resolver check to channel entries.  Every
4012           notify that cause resolving of any information that affects
4013           channel entry marks the channel entry in waiting state.
4014           After whatever resolving is over the waiters are signalled
4015           and only then the notifys are handled in the same order
4016           as delivered from the server.
4017
4018           Affected files are lib/silcclient/idlist.[ch], and
4019           client_notify.c.
4020
4021         * Fixed KILLED notify handling in normal server.  Affected
4022           file silcd/packet_receive.c.
4023
4024         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
4025           is locally connected, or was locally connected (but may
4026           be detached and connection is not active).  Added also
4027           SILC_IS_LOCAL for checking this status.  Affected files
4028           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
4029           silcd/server.c and silcd/server_internal.h.
4030
4031 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4032
4033         * Don't send or handle TOPIC_SET if topic is already set and
4034           is same as being set.  Affected files silcd/command.c and
4035           silcd/packet_receive.c.
4036
4037         * Fixed CMODE change rights checking to work correctly when
4038           removing modes by operator.  Affected file is
4039           silcd/server_util.c.
4040
4041         * Fixed some handling with New Channel packet in router and
4042           fixed some CMODE_CHANGE notify handling in server and router.
4043           Affected file is silcd/packet_receive.c.
4044
4045         * Changed "disconnect" client operation to include the
4046           reason of the disconnection and optional disconnection
4047           message.  Affected file lib/silcclient/silcclient.h.
4048
4049         * Made the compilation of lib/contrib/ stuff conditional.
4050           Affected files configure.in.pre, lib/contrib/Makefile.am.
4051
4052 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4053
4054         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
4055           to the sender of the notify too, to avoid situation where two
4056           notifys are in the network at the same time going to oppsite
4057           directions.  Affected file silcd/packet_receice.c.
4058
4059 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4060
4061         * Delete the client from channel even if the cilent->id is
4062           NULL.  It was possible that client was deleted without
4063           removing from channels (theoretically at least).  Affected
4064           file silcd/server.c and silcd/server_util.c.
4065
4066         * Free the client data too when resuming is not successful.
4067           Affected file silcd/packet_receive.c.
4068
4069         * Merged some code from c0ffee's silc-plugin.  Affected files
4070           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
4071
4072         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
4073           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
4074           to the primary router connection, the other one returns
4075           TRUE if packet must be broadcasted to network.
4076
4077         * All notifys that are destined to primary router (to network)
4078           are now automatically sent to backup routers even if the
4079           router is standalone (and has backup router).  Affected files
4080           in silcd/.
4081
4082         * Added --without-irssi and --without-silcd configuration
4083           options for disabling the compilation of these applications.
4084           Affected file configure.in.pre and prepare.
4085
4086 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4087
4088         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
4089           UTF-8 encoding and decoding.  Added also new encodings
4090           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
4091
4092           Added also SILC_STRING_LANGUAGE which is language and charset
4093           specific encoder and decoer for those platforms that support
4094           iconv().  It can convert the UTF-8 to and from the locale
4095           specific character set.
4096
4097           Affected file lib/silcutil/silcstrutil.[ch].
4098
4099         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
4100
4101         * Added function silc_get_command_name to the file
4102           lib/silcutil/silcutil.[ch].
4103
4104         * Improved the server debug output a bit.  Affected files are
4105           in silcd/.
4106
4107 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4108
4109         * Save the channel passphrase when received succesful JOIN
4110           command reply from router, on normal server.  Otherwise
4111           joinig +a channels from normal server is not possible.
4112           Affected file silcd/command.c.
4113
4114         * Fixed a bug in TOPIC_SET notify handling.  The notifier
4115           may be other than client too, like server or channel.
4116           It expected it to always be only client and ignored the
4117           notify.  Affected file silcd/packet_recieve.c.
4118
4119         * Removed some (unnecessary) debug printing from
4120           lib/silccore/silcid.c and lib/silccore/silcargument.c.
4121
4122         * Do not force CMODE_CHANGE when server is announcing new
4123           channel.
4124
4125           Router announces stuff only after server reannounces channel
4126           after CHANNEL_CHANGE notify.
4127
4128           These fixes optimizes the announcing procedure, and perhaps
4129           fixes some problems too.  Affected file silcd/packet_receive.c.
4130
4131         * Fixed SERVER_SIGNOFF sending to local clients.  It was
4132           totally broken and sent the notify to all local clients,
4133           instead of only to those that was on same channel as the
4134           signing off clients.  Affected file silcd/server_util.c.
4135
4136         * Added -D option to server.  It can be used to give debug
4137           level.  The levels are from 0 - 99, and are predefined for
4138           smooth server debugging.  (see silcd.c for the predefined
4139           levels).  Affected file silcd/server.c.
4140
4141 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4142
4143         * Fixed a bug in Irssi SILC client to close the connection
4144           properly when disconnecting from server.  Affected file
4145           irssi/src/silc/core/client_ops.c.
4146
4147 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4148
4149         * When authenticating as founder during JOIN command, check
4150           that the one authenticating becomes the only founder on the
4151           channel.  Affected file silcd/command.c.
4152
4153         * Better checking for founder mode setting when CUMODE_CHANGE
4154           notify is received.  Affected file silcd/packet_receive.c.
4155
4156         * Close all connections when shutting down the server by sending
4157           DISCONNECT packet.  Close all listeners too when shutting
4158           down the server.  Affected file silcd/server.c.
4159
4160         * Handle DISCONNECT packet correctly in client library by
4161           calling the "disconnect" client operation.  Affected file
4162           lib/silcclient/client.c.
4163
4164         * Handle local errors correctly during resuming.  Affected
4165           file lib/silcclient/client.c.
4166
4167 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4168
4169         * The log file is not dupped internally anymore in
4170           lib/silcutil/silclog.c.  Fixed memory leaks too.
4171
4172         * The scheduler now dispatches all pending timeout tasks
4173           when it is uninitialized with silc_schedule_uninit.
4174           Affected file lib/silcutil/silcschedule.c.
4175
4176 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4177
4178         * Added --enable-stack-trace option to configure.  Added
4179           memory allocation stack trace support.  Added files
4180           lib/silcutil/stacktrace.[ch].  Affected files are
4181           lib/silcutil/silcmemory.[ch].
4182
4183         * Fixed memory leaks from libraries and server.  Affected
4184           files around the tree.
4185
4186         * Reverted back a fix made to CUMODE which broke it.
4187           Affected file silcd/command.c.
4188
4189 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4190
4191         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
4192           core library, and implemented it.  All textual messages SHOULD
4193           use this flag and the message MUST be UTF-8 encoded.
4194           All text messages sent by Irssi SILC client are now UTF-8
4195           encoded (regardless whether the terminal supports UTF-8 or not).
4196           Affected files are lib/silccore/silcchannel.h,
4197           irssi/src/silc/core/silc-servers.c, silc-channels.c and
4198           client_ops.c.
4199
4200 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4201
4202         * Added lots of new statistics updating that was missing from
4203           the server and router code.  Affected files in silcd/.
4204
4205         * Sending SIGUSR1 signal to server now dumps the current
4206           server statistics into /tmp directory.  Affected file is
4207           silcd/silcd.c.
4208
4209         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
4210           the SILC Hash Interface also.  Added new functions
4211           silc_hash_get_name, silc_hash_init, silc_hash_update and
4212           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
4213
4214 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4215
4216         * Added some better info printing for client during connecting.
4217           Affected file silcd/server_util.c.
4218
4219         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
4220           to silence a user on a channel.  Affected files are
4221           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
4222           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
4223           and silcd/packet_receive.c.
4224
4225         * Fixed a fatal bug in handling of malformed command payload.
4226           Affected file silcd/command.c.
4227
4228         * Fixed a double free when announcing channel users to router.
4229           Affected file silcd/server.c.
4230
4231         * After successful authentication to channel founder mode, check
4232           that there isn't anyone else with founder mode on the channel.
4233           The one that authenticated will become founder and anyone
4234           else is demoted.  Affected file silcd/command.c.
4235
4236         * Added error printing of any error that has occurred during
4237           any command in client library.  Affected file is
4238           irssi/src/silc/core/client_ops.c.
4239
4240         * Removed some error printing from the client library and left
4241           it for the application to worry (from the error status it
4242           receives in 'command' client operation.  Affected file is
4243           lib/silcclient/command.c.
4244
4245 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4246
4247         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
4248           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
4249           Starting key agreement with itself is denied.  Affected file
4250           is lib/silcclient/client_keyagr.c.
4251
4252         * Fixed some error checkings from the SFTP library which caused
4253           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
4254           and lib/silcsftp/sftp_util.c.
4255
4256         * Added new "debug" and "debug_string" settings to Irssi SILC
4257           client which can be used to print runtime debugging on the
4258           Irssi's screen.  Available when compiled with --enable-debug
4259           option.  Affected file irssi/src/silc/core/silc-core.c.
4260
4261 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
4262
4263         * Fixed a missing variadic parameter in a function call that
4264           caused server crash when a non-allowed connection arrived.
4265           Reported by Richard Becker.  Affected file silcd/server.c.
4266
4267 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4268
4269         * Added WATCH list sending to backup routers from router.
4270           The WATCH command is sent by the router to the backup
4271           router.  Affected file silcd/command.c.
4272
4273         * Mark the backup_router flag for RouterConnection entry
4274           if the backup router stuff is defined in the config file.
4275           Affected file silcd/serverconfig.c.
4276
4277         * Fixed some backup data sending around the code to work better
4278           if the router is standalone router.  Not all places were fixed.
4279           Affected file silcd/packet_receive.c, silcd/packet_send.c,
4280           silcd/server.c.
4281
4282         * Fixed the router connecting when connecting to multiple
4283           routers.  It ignored every other router except the first
4284           one.  Affected file silcd/server.c.
4285
4286 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4287
4288         * Made the private key generation after expiration optional.
4289           If not created after expiration the old key will re-expire
4290           at a later time (and thus key pair is not necessary to
4291           change).  Affected file irssi/src/silc/core/clientutil.c.
4292
4293 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4294
4295         * The length arguments in bind() and connect() were wrong
4296           and fixed now to used SIZEOF_SOCKADDR in the
4297           lib/silcutil/unix/silcunixutil.c.
4298
4299 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4300
4301         * Fixed detach timeout handling to use Client ID and not
4302           the actual client entry which may be freed in the callback.
4303           Affected file silcd/command.c.
4304
4305 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4306
4307         * Merged c0ffee's multiple interface support patch.
4308           Affected files in silcd/.
4309
4310 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4311
4312         * Cleanup keys properly.  Affected file is
4313           irssi/src/silc/core/clientutil.c.
4314
4315 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4316
4317         * Display the user mode on the status bar.  Affected file
4318           irssi/src/silc/core/silc-expandos.c.
4319
4320 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4321
4322         * If private message key is not set, but the flag is set in
4323           the packet, ignore the packet since it cannot be decrypted.
4324           Affected file lib/silcclient/client_prvmsg.c.
4325
4326 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4327
4328         * When resuming client, remove the old client entry from
4329           the watcher list too.  Affected file silcd/packet_receive.c.
4330
4331         * Do not allow normal server to force founder mode away
4332           from router if the founder mode is already set.  Affected
4333           file silcd/packet_receive.c.
4334
4335         * Remove the client entry with watch notify types with short
4336           timeout, and not directly, so that other notifys can be
4337           retrieved too.  Affected file lib/silcclient/client_notify.c.
4338
4339         * Display notification about data messages that cannot be
4340           displayed.  Affected files irssi/src/silc/core/client_ops.c,
4341           irssi/src/fe-common/silc/module-formats.[ch].
4342
4343 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4344
4345         * Fixed the CHANNEL_CHANGE notify handling in client libary
4346           to not use freed memory.  Affected file is
4347           lib/silcclient/client_notify.c.
4348
4349         * Fixed CUMODE_CHANGE notify handling in server.  Affected
4350           file silcd/packet_receive.c.
4351
4352         * Fixed USERS command to support empty channels.  Affected
4353           file silcd/command.c.
4354
4355 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4356
4357         * Allow multiple identical pending commands to be registered
4358           in client library.  Affected file is lib/silcclient/command.c.
4359
4360         * Call the completion for resolving client information only
4361           after all resolvers has finished.  This fixes a crash in
4362           the client.  Added support for checking when the resolvers
4363           are finished.  Affected file is lib/silcclient/idlist.c.
4364
4365         * Wait by default 3 seconds before reconnecting to the server
4366           after being disconnected.  Makes the /detach command a bit
4367           more usable.
4368
4369 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4370
4371         * Check the watcher list before sending signoff notifys
4372           when closing client connection.  Affected file is
4373           silcd/server.c.
4374
4375         * Added better CMODE command rights checking.  Affected file
4376           silcd/server_util.c.
4377
4378 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4379
4380         * Fixed watcher list checking during server signoff.  It
4381           crashed the server.  Affected file silcd/server_util.c.
4382
4383         * The JOIN command reply returns now the founder's public
4384           key.  Affected file is silcd/command.c.
4385
4386         * Announce the channel mode, and the mode properties with
4387           CMODE_CHANGE notify.  Affected file silcd/server.c.
4388
4389         * Mark new channels by default disabled, untill at least
4390           one user joins the channel.  Affected file is
4391           silcd/packet_receive.c.
4392
4393 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4394
4395         * The nickname argument to watch notify can be optional.
4396           Fixes a crash in server.  Affected file silcd/packet_send.c.
4397
4398         * Remove the client entry from cache if the WATCH notify type
4399           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
4400           lib/silcclient/client_notify.c.
4401
4402         * Check the watcher list before and after changing nickname
4403           when the NICK_CHANGE notify is received.  Affected file is
4404           silcd/idlist.c.
4405
4406         * Fixed a crash in OPER and SILCOPER command sending.  Empty
4407           passphrase caused the crash.  Affected file is
4408           lib/silcclient/command.c.
4409
4410 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4411
4412         * Merged with Irssi CVS for Irssi SILC client.
4413
4414 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4415
4416         * Completed the protocol specifications.
4417
4418 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4419
4420         * Merged with Irssi CVS for Irssi SILC client.
4421
4422 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4423
4424         * Added the founder's public key delivery to the
4425           CUMODE_CHANGE notify type as well.  Updated the protocol
4426           specs and the code.  Affected files are silcd/packet_send.[ch],
4427           silcd/packet_receive.c and silcd/command.c.
4428
4429 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4430
4431         * Added silc_pkcs_public_key_copy function into the
4432           lib/silccrypt/silcpkcs.[ch].
4433
4434         * Remove the `iv' from the SilcChannelEntry since we can
4435           live without it.  Affected files are silcd/idlist.h and
4436           silcd/packet_receive.c.
4437
4438         * Added support for sending the founder's public key in
4439           the CMODE_CHANGE notify packet in the server.  Affected
4440           files are silcd/packet_send.[ch], silcd/packet_receive.c,
4441           silcd/command.c and silcd/server.c.
4442
4443         * Changed the FOUNDER_AUTH authentication to use only
4444           public key authentication as defined by new protocol
4445           specs.  Passphrase authentication with that mode cannot
4446           be used anymore.  It is now possible to reclaim founder
4447           mode from any server in the network.  Affected files are
4448           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
4449
4450         * Added permanent channels support by making the channel
4451           permanent when FOUNDER_AUTH mode is set on the channel.
4452           The channel will not be destroyed even if channel is empty
4453           when that mode is set.  Protocol TODO #17.  Affected
4454           files are silcd/server.[ch], server_util.[ch],
4455           silcd/command.c, silcd/packet_receive.c and
4456           lib/silcclient/command.c.
4457
4458 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4459
4460         * Added reference counter to the command reply context in
4461           the client library.  Affected files are
4462           lib/silcclient/command_reply.[ch].
4463
4464 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4465
4466         * Fixed rekey protocol with PFS in the client library.
4467           Affected file is lib/silcclient/protocol.c.
4468
4469         * Added support for list of errors in client library
4470           command reply handling.  Affected file is
4471           lib/silcclient/command_reply.c.
4472
4473         * Defined that the WHOIS and IDENTIFY commands can send
4474           list of errors.  Updated the protocol specs.  Protocol
4475           TODO #2.
4476
4477         * Added support for sending list of errors to WHOIS and
4478           IDENTIFY commands in server.  Added support for receiving
4479           list of errors in server.  Affected files are
4480           silcd/command.c and silcd/command_reply.c.
4481
4482         * Fixed client info resolving on LEAVE command in client
4483           library to not crash.  Affected file is
4484           lib/silcclient/client_notify.c.
4485
4486 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4487
4488         * Defined that the NICK command replies with thew changed
4489           nickname too, to make the nickname changing simpler at
4490           the client's end.  Updated protocol specs and the code
4491           in client and server.  Affected files are
4492           silcd/command.c, lib/silcclient/command_reply.c and
4493           lib/silcclient/command.c.
4494
4495 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4496
4497         * Added `Compressed' packet flag to indicate that the packet
4498           payload is compressed by the sender.  Updated the protocol
4499           specs and the core library.  The compression still is not
4500           implemented in the sources.  Affected file is
4501           lib/silccore/silcpacket.h.
4502
4503 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4504
4505         * Remove pending command callbacks also if the connection
4506           to the server is destroyed.  Affected file is
4507           lib/silcclient/client.c.
4508
4509 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4510
4511         * Added new QUIET channel user mode that can be used to
4512           quiet a user in a channel.  Updated the protocol specs but
4513           it wasn't implemented yet.  Protocol TODO #27.  Affected
4514           file is lib/silccore/silcmode.h.
4515
4516 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4517
4518         * Added BLOCK_INVITE user mode to be able to block incoming
4519           invite notifications.  Protoocol TODO #26.  Affected files
4520           are lib/silccore/silcmode.h, lib/silcclient/command.c and
4521           silcd/command.c.
4522
4523         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
4524           the protocol specs and the code.  Affected file is
4525           lib/silccrypt/silcpkcs.c.
4526
4527 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4528
4529         * Disconnect Payload includes now the status type.  Updated
4530           the protocol specs and the code.  Protocol TODO #25.
4531           Affected files are silcd/server.c, lib/silcclient/client.c.
4532
4533         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
4534           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
4535           Moved the silc_client_command_status_messages table to the
4536           lib/silcutil/silcutil.c and added new funtion
4537           silc_get_status_message, which deprecates function
4538           silc_client_status_message.  Affected files are
4539           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
4540           lib/silcutil/silcutil.[ch].
4541
4542 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4543
4544         * Defined that the nickname hash in Client ID MUST be from
4545           lowercase nickname.  This effectively changes nicknames in
4546           SILC to case-insensitive.  Updated the protocol specs and
4547           the code.  Affected files are lib/silcutil/silcutil.[ch],
4548           silcd/serverid.c, and silcd/idlist.c.
4549
4550         * Added new channel user modes BLOCK_MESSAGES_USERS and
4551           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
4552           code.  Affected files are lib/silccore/silcmode.h,
4553           lib/silcclient/command.c, and silcd/packet_send.c.
4554
4555         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
4556           specs and code.  Affected file lib/silccore/silcstatus.h.
4557
4558         * Added support for watch list.  It is possible to add nicknames
4559           to be watched, and when they come to network, leave network
4560           or user mode changes the watcher will be notified of this
4561           change.  Added SILC_COMMAND_WATCH command, added new
4562           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
4563           notifications.  Updated the protocol specs and implemented
4564           this to library, client and server.  Protocol TODO #21.
4565           Affected files are lib/silccore/silccomand.h,
4566           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
4567           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
4568           silcd/packet_send.[ch], silcd/packet_receive.c, and
4569           irssi/src/silc/core/client_ops.c.
4570
4571         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
4572           somebody watching you.  Updated the protocol specs and the
4573           code.  Affected files are lib/silccore/silcmode.h, and
4574           lib/silcclient/command.c.
4575
4576 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4577
4578         * Added service support to SILC protocol.  Added new command
4579           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
4580           core library.  Services are not implemented in server or
4581           client for now.  Protocol TODO #20.  Affected files are
4582           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
4583
4584         * Added SilcStatus argument to `command' client operation
4585           to return the error status when command sending fails
4586           locally.  Changed all command in client library to return
4587           correct command status.  Affected files are
4588           lib/silcclient/command.c, lib/silcclient/silcclient.h and
4589           irssi/src/silc/core/client_ops.c.
4590
4591 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4592
4593         * Added silc_mime_parse function to parse MIME headers.
4594           Affected files are lib/silcutil/silcstruti.[ch].
4595
4596         * Added MIME header parsing in Irssi SILC Client.  It displays
4597           all textual MIME objects, others it ignores.  Affected file
4598           is irssi/src/silc/core/clien_ops.c.
4599
4600 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4601
4602         * Fixed a bug in the pid writing function, which couldn't be
4603           written in a root-owned directory.
4604
4605 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4606
4607         * Defined that channel message to unknown Channel ID must
4608           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
4609           Updated the protocol specs and the code in server.  The
4610           affected file is silcd/packet_receive.c.
4611
4612 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4613
4614         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
4615           that it is used to send error notifys if error occurs during
4616           some SILC packet processing, except commands.  The error
4617           types are same as for command reply types.  Defined that
4618           if private message is sent to unknown Client ID the error
4619           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
4620           Updated the protocol specs and code.  Affected files are
4621           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
4622           lib/silcclient/client_notify.c, silcd/packet_receive.c,
4623           and irssi/src/silc/core/client_ops.c.  Renamed the
4624           SilcCommandStatus to SilcStatus.
4625
4626         * Defined the use of extra WHOIS attributes in WHOIS command.
4627           The <Requested Attributes> (defined in a separate document)
4628           can be used to request additional information about user
4629           not returned by standard WHOIS command.  Defined that server
4630           can send WHOIS command directly to client.  Client provides
4631           the requested attributes to the server.  Updated the protocol
4632           specs.  Protocol TODO #4.  Implementation is not done yet
4633           (Protocol TODO #24).
4634
4635         * Renamed function silc_client_command_status_message to
4636           silc_client_status_message.  Affected files are
4637           lib/silcclient/command_reply.[ch].
4638
4639 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4640
4641         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
4642           32 bit integers.  Updated the protcol specs and the code.
4643           Affected files are silcd/command.c and
4644           lib/silcclient/command.c.
4645
4646 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4647
4648         * Fixed a bug in library where sending a bogus authentication
4649           payload would lead to a crash.  Affected file is
4650           lib/silccore/silcauth.c.
4651
4652 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4653
4654         * Added detach_disabled and detach_timeout server config
4655           options to the server.  Affected files silcd/serverconfig.[ch],
4656           silcd/command.c and silcd/packet_receive.c.
4657
4658 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4659
4660         * Added resolve_cmd_ident field to the SilcClientEntry structure
4661           too so that if the entry is for example being resolved so
4662           another command may attach to the same pending command reply
4663           without requiring to resolve the same entry again.  Added
4664           support for adding multiple pending commands for one
4665           command idenfier.  Affected files lib/silcclient/command.[ch],
4666           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4667
4668 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4669
4670         * Defined that server receives WHOIS command reply for private
4671           and secret channels too.  Updated protocol specs and the
4672           code in server.  Affected file silcd/command.c.
4673
4674         * Defined <channel user mode list> argument to WHOIS command
4675           reply for returning user modes on the channels.  The
4676           channel list now doesn't include the user mode anymore but the
4677           actual channel mode.  Updated protocol specs and the code in
4678           client and server.  Affected files are silcd/command_reply.c,
4679           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4680           and lib/silcclient/command_reply.c.
4681
4682         * Save the channels list in WHOIS command reply in normal server
4683           so that WHOIS always shows joined channels also in normal
4684           server and not just on router.  Affected file is
4685           silcd/command_reply.c.
4686
4687 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4688
4689         * Defined that server receives USERS command reply for private
4690           and secret channels too.  Updated protocol specs and the
4691           code in server.  Affected file silcd/command.c.
4692
4693 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4694
4695         * Changed the UMODE's mode mask argument to be optional.  If
4696           not provided then the command merely returns the current mode
4697           mask to the client.  Updated protocol specs and the server.
4698           Affected file is silcd/command.c.
4699
4700         * Added SILC session detachment/resuming support.  It is possible
4701           to detach by closing the network connection and then re-connect
4702           and resume to the old client session.  Added DETACHED user
4703           mode that server will set for detached client.  Added new
4704           packet RESUME_CLIENT which is used to perform the resuming
4705           process.  Added DETACH command.  Updated the protocol specs,
4706           core library, client and server.  Protocol TODO #22.  Very
4707           many affected files around the tree.
4708
4709 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4710
4711         * Changed the CMODE's mode mask argument to be optional.  If
4712           not provided then the command merely returns the current mode
4713           mask to the client.  Updated protocol specs and the server.
4714           Affected file is silcd/command.c.
4715
4716         * Changed the Killer's Client ID in KILLED notify to be just
4717           any ID payload since router server is allowed to kill as well.
4718           Updated protocol specs, client libary and server.  Affected
4719           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4720           and irssi/src/silc/core/client_ops.c.
4721
4722 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4723
4724         * Added new user modes ANONYMOUS for special anonymous servers
4725           that may set the mode for client, and BLOCK_PRIVMSG which
4726           client may set to block incoming private messages unless the
4727           Private Message Key flag is set (using private keys to protect
4728           private messages).  Updated protocol specs and code in client
4729           and server and core library.  Protocol TODO #23.  Affected
4730           files are lib/silccore/silcmode.h, silcd/server.[ch],
4731           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4732           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4733
4734         * Added new channel user mode BLOCK_MESSAGES which the client
4735           may set to itself to tell server not send channel messages.
4736           Other packets such as channel key packets are still sent.
4737           Protocol TODO #23.  Updated the protocol specs, client and
4738           server.  Affected files are lib/silccore/silcmode.h,
4739           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4740           lib/silcutil/silcutil.c, silcd/command.c, and
4741           silcd/packet_send.c.
4742
4743 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4744
4745         * Redefined the Status Payload to include now two 8 bit fields,
4746           instead of one 16 bit field.  This now makes it possible to
4747           send list of errors.  Updated the protocol specs and the code
4748           in core library, client library and server.  Protocol TODO #1.
4749           Affected files are lib/silccore/silccommand.[ch],
4750           lib/silcclient/command_reply.[ch], silcd/command.c,
4751           silcd/command_reply.c and silcd/packet_receive.[ch].
4752
4753 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4754
4755         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4756           must be handled by the application and should tell the application
4757           that an error message was already printed, and it should print the
4758           config coords (line, filename, ...).  Affected files are
4759           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4760
4761         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4762           server config parsing code more readable.
4763
4764           Fixed a bug in the fetch_logging() config callback.
4765
4766           Affected files is silcd/serverconfig.c.
4767
4768         * Drop root privileges when started in foreground.  Don't drop them
4769           if debugging also.  Affected file is silcd/silcd.c.
4770
4771 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4772
4773         * Added more IM-like features by introducing new user modes
4774           for setting various presence information.  Added new modes:
4775           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4776           specs and code.  Protocol TODO #19. Affected files are
4777           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4778           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4779
4780 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4781
4782         * Added STATS command to the protocol after all, to return
4783           various statistical information about the network.  It can
4784           be used by clients to retrieve statistical information, and
4785           servers may use it to to fetch cell and network wide
4786           statistics from router.  Updated the protocol specs and
4787           implemented it to the server.  Protocol TODO #16.
4788           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4789           silcd/command_reply.[ch].
4790
4791 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4792
4793         * The LIST command reply in client libary now adds new channel
4794           entry if the returned channel doesn't exist yet in cache,
4795           and returns the channel entry to the application in the
4796           command_reply client operation.  Affected file is
4797           lib/silcclient/command_reply.c.
4798
4799         * Changed the channel message payload's MAC generation to
4800           include the IV in the MAC as well.  This way all relevant
4801           parts of the channel message payload are authenticated also
4802           with the channel message MAC (and not only by packet MAC).
4803           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4804           Affected file is lib/silccore/silcchannel.c.
4805
4806         * Fixed the SKE to save the remote version, since the
4807           silc_ske_parse_version mistakenly checked wrong version,
4808           after it replaced the start payload.  Affected files are
4809           lib/silcske/silcske.[ch].
4810
4811 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4812
4813         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4814           string utility functions.  Added there also new functions
4815           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4816           Affected files lib/silcutil/silcstrutil.[ch].
4817
4818         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4819           files are lib/silcutil/silcstrutil.[ch].
4820
4821         * Defined that the security property fields in SKE SHOULD be
4822           UTF-8 encoded, defined that version string MUST be US-ASCII
4823           encoded, defined that passphrases sent in connection
4824           authentication protocol MUST be UTF-8 encoded.  Implemented
4825           these to the client and server.  Defined also that other
4826           passphrases sent in the protocol MUST be UTF-8 encoded.
4827           Affected files are lib/silcske/silcske.c,
4828           lib/silcclient/protocol.c, silcd/protocol.c,
4829           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4830
4831         * Changed the silc_client_close_connection interface to not
4832           need the SilcSocketConnection which should not be visible
4833           to application.  Affected files are lib/silcclient/client.c
4834           and lib/silcclient/silcclient.h.
4835
4836         * Rewrote the text for Private Message Key Payload in the
4837           protocol specification.  Protocol TODO #11.
4838
4839 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4840
4841         * Upgraded the protocol version to 1.1, updated protocol specs
4842           and software.
4843
4844         * Added the nickname as new argument to NICK_CHANGE notify and
4845           added it to protocol specs and implemented it to client and
4846           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4847           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4848           lib/silcclient/client_notify.c.
4849
4850         * Added the killer's client ID to the KILLED notify and added
4851           it to protocol specs and implemented it to client and server.
4852           Protocol TODO #13.  Affected files are silcd/command.c,
4853           silcd/packet_receive.c, packet_send.[ch],
4854           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4855           The killer's client entry is now returned to application in
4856           the `notify' client operation.
4857
4858         * Fixed the Max Argument fields that had too large value set
4859           in the protocol specs.  Protocol TODO #14.
4860
4861         * Added the LEAVE command reply to return the ID of parted
4862           channel.  Updated protocol specs and implemented it to the
4863           client and server.  Protocol TODO #15.  Affected files are
4864           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4865           entry is now returned to application in the `command_reply'
4866           client operation.
4867
4868         * Rewrote the version SKE version checking in client libary
4869           and in server to use the silc_parse_version_string.  Affected
4870           files are lib/silcclient/protocol.c, silcd/protocol.c.
4871
4872         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4873           commands that was missing it, and updated protocol specs and
4874           the server implementation.  Protocol TODO #10.  The affected
4875           file is silcd/command.c.
4876
4877         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4878           generic reply to a generic request (REQUEST flag), and
4879           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4880           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4881           to define the payload for DATA flag.  Added the flags to
4882           the implementation.  Protocol TODO #9.  Affected file is
4883           lib/silccore/silcchannel.h.
4884
4885           Changed the client library to return the message length
4886           to application as well in the channel_message and private_message
4887           client operations.  Affected files are
4888           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4889           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4890           and lib/silcclient/client_ops_example.c.
4891
4892         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4893           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4894           the channel.  Updated protocol specs and impelemented this
4895           to client and server.  Protocol TODO #6.  Affected files are
4896           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4897           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4898
4899           Added new options m and M to CMODE command in Irssi SILC
4900           client to set these modes.
4901
4902         * Deprecated all administrative commands from SILC protocol
4903           since they are highly implementation specific commands.
4904           Updated protocol specs.  Moved the old commands in
4905           implementations to private range of command types.  Affected
4906           files are silcd/command.c, lib/silcclient/command.c and
4907           lib/silcclient/command_reply.c.  Protocol TODO #8.
4908
4909         * Fixed a bug in server where sending unknown command crashes
4910           the server.  Affected file silcd/command.c.
4911
4912 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4913
4914         * Added SILC_PROTOCOLVERSION macro to check protocol version
4915           of a socket connection.  The affected file is
4916           lib/silcutil/silcsockconn.h.
4917
4918         * Added better error logging in rekey protocol.  Affected file
4919           silcd/protocol.c.
4920
4921         * Do not check public key types in SKE during rekey.  Affected
4922           file lib/silcske/payload.c.
4923
4924         * Fixed the rekey protocol with PFS, which was totally broken.
4925           Affected file silcd/protocol.c.
4926
4927 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4928
4929         * Some client implementations quit network by doing first LEAVE
4930           and then immediately SIGNOFF (like Bombyx).  We now do check
4931           after a short time after LEAVE notify and check whether the
4932           client is still valid after LEAVE, and if not we remove it from
4933           cache.  Affected file is lib/silcclient/client_notify.c.
4934
4935 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4936
4937         * Merged version 1.1.4 of zlib. Even if it not currently in use,
4938           it's good not to have security holes here.
4939
4940         * Fixed a negative refcount situtuation for the config context.
4941           Affected file is silcd/serverconfig.c.
4942
4943 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4944
4945         * ROBOdoc documented lib/silcutil/silcutil.h.
4946
4947 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4948
4949         * Optimized even more the SilcPacketContext structure.  Now
4950           totally saved 16 bytes of memory per context after optimization.
4951           Affected files are lib/silccore/silcpacket.[ch].
4952
4953         * Made strict checks for valid SILC IDs.  Affected file is
4954           lib/silccore/silcid.c.
4955
4956 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4957
4958         * Changed the object argument for silc_cipher_register,
4959           silc_hash_register, silc_hmac_register and silc_pkcs_register
4960           to const.  Affected files are lib/silccrypt/silccipher.[ch],
4961           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
4962
4963         * Changed the silc_get_username and silc_get_real_name to
4964           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
4965
4966         * Fixed the Irssi SILC Client to use the silc_get_username and
4967           silc_get_real_name insted of glib routines since the glib
4968           routines only corrupt stack.  Fixes the Irssi SILC to work in
4969           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
4970
4971         * Fixed the Irssi to not use g_get_home_dir since it crashes
4972           or returns garbage on cygwin and corrupts stack.  Added function
4973           get_home_dir to Irssi routines.  Affected files are
4974           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
4975
4976 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4977
4978         * Made some structure optimizations.  SFTP memory FS MemFSEntry
4979           entry structure.  Optimized SilcTask structure.  Optimized
4980           SilcPacketContext structure.
4981
4982           Affected files lib/silcsftp/sftp_fs_memory.c,
4983           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
4984
4985 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4986
4987         * And yet again reverted back the config thing since Johnny
4988           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
4989           and silcd.c.
4990
4991         * Fixed memory leaks from config object.  Affected files are
4992           silcd/serverconfig.[ch].
4993
4994         * Added support for adding new connections to the server in rehash.
4995           After rehash they take effect.
4996
4997           Added support for changing the maximum allowed connections in
4998           rehash.  The number can grow but going smaller is not supported.
4999
5000           Added function silc_server_num_sockets_by_remote to the
5001           silcd/server_util.[ch].
5002
5003           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
5004
5005 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
5006
5007         * Added preliminary checking during config parsing for a valid
5008           public/private key and removed further checks in the code.
5009           Affected files are silcd/serverconfig.[ch], server.c.
5010
5011         * Moved functions silc_server_drop() and silc_server_daemonise()
5012           from server.c to silcd.c since they are stricly related to
5013           the application activity.
5014
5015         * Reverted a small part of the automatic ref/unref since
5016           it caused a double unref in some situations.  Affected
5017           files are silcd/silcd.[ch], server.c, serverconfig.c.
5018
5019         * Added some .cvsignore files in the lib directory.
5020
5021 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5022
5023         * Fixed silc_net_gethostbyaddr to correctly resolve by
5024           address.  Affected file lib/silcutil/silcnet.c.
5025
5026         * Fixed the notify relaying to client.  The HMAC to be used
5027           with relayed packets ws wrong and caused decryption failure
5028           at the client end.  Affected file is silcd/packet_receive.c.
5029
5030 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5031
5032         * Created new branch silc_protocol_1_0_branch.
5033
5034         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
5035
5036         * Changed the silc_server_config_* routines to be SilcServer
5037           independent.  They are now officially application specific code
5038           and not part of generic server implementation.  Affected files
5039           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
5040
5041 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5042
5043         * Added automatic referencing of config context in the
5044           silc_server_config_alloc, and automatic unreferencing in the
5045           silc_server_config_destroy.  Affected files are
5046           silcd/serverconfig.[ch], silcd/silcd.c.
5047
5048         * Fixed the silc_log_quick handling in the logging routines.
5049           It didn't log quickly when it was TRUE.  Affected file is
5050           lib/silcutil/silclog.c.  Also the flush delay was set even
5051           if it was 0 in config file.  Affected file is
5052           silcd/serverconfig.c.
5053
5054         * Added support for changing key pair of the server in rehash.
5055           Affected file silcd/server.c.
5056
5057 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5058
5059         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
5060           too early, before getting the channel entry.  Affected file
5061           is silcd/packet_receive.c.
5062
5063 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5064
5065         * Added functions silc_server_config_[ref/unref], these are used
5066           to prevent that the config object is destroyed.
5067
5068           No longer directly affect global variables silc_log_quick and
5069           silc_log_delay, they are first cached inside the config object
5070           and then applied with silc_server_config_setlogfiles().
5071
5072           silc_server_config_set_defaults() is now internal to
5073           serverconfig.c, there are no reasons to show this internal stuff
5074           to the server.
5075
5076           Affected files are silcd/serverconfig.[ch].
5077
5078         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
5079           fprintf's to stderr, since some code may be executed again after
5080           the server went into the background.  Affected files are
5081           silcd/server.[ch].
5082
5083         * Added rehash support. Added function silc_server_rehash() that
5084           will perform all the basic tasks of the rehashing procedure.
5085
5086         * Added command line option `-x, --hexdump'. This will enable the
5087           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
5088           The option `--hexdump' implies `--debug'.
5089
5090         * Fixed a bad bug in the logging APIs (silcutil library) where
5091           the application would crash after calling silc_log_reset_all().
5092
5093 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5094
5095         * Fixed the KICKED notify handling in client library to
5096           correctly remove the channel and all entries from the
5097           channel when I was kicked.  This bug crashed the client.
5098
5099           Fixed yet another but in KICKED notify handling to remove
5100           the kicked client correctly from the channel.
5101
5102           Affected file is lib/silcclient/client_notify.c.
5103
5104         * Fixed a minor bug in looking up correct client entry
5105           in KICKED notify in server.  Affected file is
5106           silcd/packet_receive.c.
5107
5108         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
5109           sources correctly to distribution.  Fixes --with-gmp option.
5110
5111         * Removed the manual rehashing from ID Cache, and changed it
5112           to use the SILC Hash Table's auto rehash feature.  Affected
5113           file is lib/silccore/silcidcache.c.
5114
5115 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5116
5117         * Fixed a bug in the silc_client_nickname_format function that
5118           handles the multiple same nickname formatting.  Two clients
5119           with same nickname caused problems after the first one left
5120           and rejoined.  It didn't format the nickname correctly.
5121           Affected file is lib/silcclient/idlist.c.
5122
5123 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5124
5125         * Don't change the topic if olod topic is same as new one.
5126           Affected file is silcd/packet_receive.c.
5127
5128 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5129
5130         * Added cross-reference support to the SILC Documentation
5131           generator.  All types across all HTML files are now cross-
5132           referenced.  Affected files util/robodoc/generator.c and
5133           scripts/silcdoc/silcdoc.
5134
5135         * Added file lib/silcutil/silctypes.h to include all the
5136           arithmetic type definitions and some macros.  Removed
5137           includes/bitmove.h and moved macros to silctypes.h.
5138
5139 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5140
5141         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
5142
5143 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5144
5145         * Added `type' argument to silc_id_payload_parse_id function which
5146           now returns the type of the ID to the sent pointer.  Affected
5147           file is lib/silccore/silcid.[ch].
5148
5149         * Added check for CMODE_CHANGE notify type that mode change is
5150           allowed by the sender.  Affected file silcd/packet_receive.c.
5151
5152         * Added check for CUMODE_CHANGE notify type that mode change is
5153           allowed by the sender.  Affected file silcd/packet_receive.c.
5154           Added the ID type as CUMODE_CHANGE notify type as argument
5155           to the `notify' client operation.  Affected files are
5156           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
5157
5158         * Added function silc_client_add_server to the client library.
5159           Added support for resolving also channel and server info when
5160           received unknown entity in notify packet.  Affected files are
5161           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
5162
5163         * Added function silc_command_get_status to return the command
5164           status from the command reply's argument payload.  Affected files
5165           are lib/silccore/silccommand.[ch].
5166
5167         * Added check for KICKED notify type that the kicking is
5168           allowed by the client.  Affected file silcd/packet_receive.c.
5169
5170         * Created function silc_get_input which can be used to get input
5171           (echo on or off) from user on command line.  Affected files are
5172           lib/silcutil/silcutil.[ch].
5173
5174 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5175
5176         * Optimized silc_server_packet_relay_to_channel function.
5177           Added new function silc_channel_message_payload_encrypt which
5178           can be called directly if channel message payload needs to
5179           be encrypted and is already encoded (no need to call _encode
5180           function).  Packet relaying is now done by router without any
5181           extra memory allocations.  Affected files are
5182           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
5183           silcd/packet_send.c.
5184
5185         * Fixed the INVITE notify handling.  It took wrong arguments
5186           as invite list and invite delete.  Affected file is
5187           silcd/packet_receive.c.
5188
5189         * Added check for TOPIC_SET notify type that the topic change is
5190           allowed by the client.  Affected file silcd/packet_receive.c.
5191
5192         * Added check for INVITE notify type that inviting is allowed by
5193           the client.  Affected file silcd/packet_receive.c.
5194
5195         * Changed the silc_server_client_on_channel to return the
5196           SilcChannelClientEntry as well.  Moved the function
5197           silc_server_check_cmode_rights to server_util.[ch].
5198           Affected files are silcd/server_util.[ch], silcd/command.c.
5199
5200         * Added function silc_server_check_umode_rights to check whether
5201           changing client's user mode is allowed.  Added check for
5202           UMODE_CHANGE notify type that the umode change is allowed
5203           by the client.  Affected files are silcd/server_util.[ch],
5204           silcd/packet_receive.c and silcd/command.c.
5205
5206 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5207
5208         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
5209           ID length.  It ignored that ID can be IPv6 based as well.
5210           Affected file lib/silccore/silcpacket.h.
5211
5212         * Fixed the silc_id_id2str and silc_id_str2id to take the
5213           IPv6 address offset's into consideration.  Affecte file is
5214           lib/silccore/silcid.c.
5215
5216 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5217
5218         * Fixed the internal Unix scheduler functions to check for
5219           NULL context they may receive.  The affected file is
5220           lib/silcutil/unix/silcunixschedule.c.
5221
5222 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
5223
5224         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
5225           can specify different directory with --home command line
5226           parameter. Affected files irssi/src/silc/core/client_ops.c,
5227           clientutil.c
5228
5229         * SILC-specific commands aren't now executed if the active server
5230           isn't of SILC-type, so there won't be problems with having
5231           IRC and SILC protocol support in same client. Affected files
5232           irssi/src/silc/core/silc-channels.c, silc-servers.c,
5233           silc-commands.h
5234
5235 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5236
5237         * Improved the signal support in SILC Schedule.  Added new
5238           function silc_schedule_signal_call which is used by application
5239           to mark a signal to be called.  It is now safe to perform
5240           any kind of tasks in signal callbacks since it is guaranteed
5241           that the application specified signal callback is called
5242           after the signal is over.  Affected files are
5243           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
5244
5245 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5246
5247         * Added `name' field to SilcChannelPrivateKey to represent
5248           application given name for the key.  Moved also the context from
5249           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
5250           Added the `name' argument also to the function
5251           silc_client_add_channel_private_key.
5252
5253           Added function silc_client_current_channel_private_key to set the
5254           current channel private key in use.
5255
5256           Added "change" command to KEY command which can be used to change
5257           the current channel private key.  Bound the command also to
5258           alt+K (Alt+Shift+k).
5259
5260           Also affected files lib/silcclient/client_channel.c,
5261           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
5262
5263 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5264
5265         * Added silc_rng_get_byte_fast function in to the
5266           lib/silccrypt/silcrng.[ch].
5267
5268         * Changed the interface of silc_packet_assemble and the
5269           silc_packet_send_prepare.  If silc_packet_assmble is now
5270           called the application does not call silc_packet_send_prepare
5271           because the library will call it automatically.  These
5272           interfaces now also return a reference to the outgoing buffer
5273           which includes the assembled packet, which the application can
5274           use to encrypt the packet.
5275
5276           Affected files are lib/silccore/silcpacket.[ch],
5277           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
5278           silcd/packet_send.c, server_backup.c and packet_receive.c.
5279
5280         * Fixed a packet sending bug on very high load, where outgoing
5281           packet queue wasn't handled correctly and packets got corrupted.
5282           Affected files are lib/silcutil/*/silc*sockconn.c,
5283           lib/silcclient/client.c and silcd/server.c.
5284
5285 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5286
5287         * Added macro SILC_PACKET_DATALEN which can be used during
5288           packet assembling to check whether the data to be added to
5289           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
5290           len is truncated until it fits it.
5291
5292           Added checks for maximum length of channel message payload and
5293           private message payload also.
5294
5295           Added checks for maximum packet length in server and in
5296           client library.
5297
5298           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
5299           lib/silcclient/client.c, lib/silccore/silcchannel.c and
5300           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
5301           lib/silcclient/client_prvmsg.c.
5302
5303 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5304
5305         * Added silc_server_packet_queue_purge call to the
5306           silc_server_disconnect_remote to assure that all data in the
5307           queue before disconnecting is sent to the network.  Affected
5308           file silcd/server.c.
5309
5310 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5311
5312         * Added the deleting of server's own ID cache entry to the
5313           silc_server_free function.  Free also everything else that
5314           has been allocated in silc_server_init.  The affected file
5315           is silcd/server.c.
5316
5317 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5318
5319         * Added functions silc_parse_version_string, silc_version_to_num,
5320           and silc_ske_parse_version to parse SILC protocol style version
5321           strings.  Affected files lib/silcutil/silcutil.[ch] and
5322           lib/silcske/silcske.[ch].
5323
5324         * Added new configuration params: version_protocol, version_software
5325           and version_software_vendor to specify what version the remote
5326           host must at least be to be able to connect to server.  The vendor
5327           string can be regex matched too.  Added new function
5328           silc_server_connection_allowed to check maximum number of allowed
5329           connections, and allowed versions for incoming connections.
5330           Affected files are silcd/server.c, server_util.[ch] and
5331           serverconfig.[ch].
5332
5333 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5334
5335         * Added preliminary support for signals in scheduler.  The
5336           signals we care about are now blocked always when the scheduler
5337           is locked.  This way we can synchronise the use of signal with
5338           scheduler.  It is guaranteed that when signal occurs the scheduler
5339           is not locked, and thus new tasks can be safely added to the
5340           scheduler.
5341
5342           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
5343           to silc_schedule_internal_init and silc_schedule_internal_uninit.
5344           Added new platform specific routines
5345           silc_schedule_internal_signals_[un]block and
5346           silc_schedule_internal_signal_[un]register.
5347
5348           Added new functions to SILC Schedule API:
5349           silc_schedule_signal_[un]register.  Each signal that application
5350           is going to use should be registered to the scheduler.
5351
5352           Affected files are lib/silcutil/silcschedule.[ch],
5353           lib/silcutil/*/silc*schedule.c.
5354
5355 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5356
5357         * Check for unauthenticated client and server in the
5358           silc_server_new_client and silc_server_new_server functions.
5359           Affected file silcd/packet_receive.c.
5360
5361         * Added function silc_string_is_ascii to check whether given
5362           string is 7-bit ASCII string.  Affected files are
5363           lib/silcutil/silcutil.[ch].
5364
5365         * Added function silc_id_is_valid_server_id into the
5366           silcd/serverid.c and added checking for valid Server ID's in
5367           silc_server_new_server.  The Server ID must always be based
5368           on the server's public IP address.
5369
5370         * Added logging of DISCONNECT packet message in the server.
5371           Affected file silcd/server.c.
5372
5373 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5374
5375         * Changed all library interfaces that use Global RNG to also
5376           accept SilcRng as argument.  Affected files are
5377           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
5378           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
5379           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
5380           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
5381           lib/silccrypt/rsa.c.
5382
5383         * Added function silc_pkcs_generate_key to the
5384           lib/silccrypt/silcpkcs.[ch] for applications so that they
5385           don't need to do pkcs->pkcs->init calls anymore.
5386
5387         * Remove SilcSocketConnection from the SFTP API since it really
5388           wasn't needed there.  The application has the information
5389           saved in its contexts anyway and the SFTP layer doesn't need
5390           know about it.  Affected files lib/silcsft/silcsftp.h and
5391           lib/silcsftp/sftp_[server/client].c.
5392
5393         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
5394           The SilcSimContext is not SilcSim.
5395
5396         * Fixed possible buffer overflows in silc_id_render in the
5397           lib/silcutil/silcutil.c.
5398
5399         * On EPOC the global crypto module lists are not used at all
5400           in the crypto library.  Added support for using the constant
5401           algorithm list on EPOC.  Affected files are
5402           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
5403           silcpkcs.c.
5404
5405         * Fixed the handling of third parameter of KICKED notify, since
5406           it was mistakenly updated to SILC Protocol 1.0 even though it
5407           is to be included in 1.1.  Since it is not in 1.0 it is not
5408           mandatory, and this fix now handles it only if it is provided,
5409           and it is not error if it is not provided.  Affected file
5410           lib/silcclient/client_notify.c.
5411
5412 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5413
5414         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
5415           client.  Affected file irssi/src/silc/core/client_ops.c.
5416
5417         * Merged with Irssi 0.8.4 from irssi.org CVS.
5418
5419 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5420
5421         * Check for valid socket connection in client entries before
5422           sending any messages.  Fixes a crash, but doesn't fix some
5423           other underlaying bug that is lurking there.  Affected
5424           file silcd/packet_send.c.
5425
5426 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
5427
5428         * $usermode, $cumode and $cumode_space expandos shouldn't do
5429           anything with non-SILC server records. Affected file
5430           irssi/src/silc/core/silc-expandos.c
5431
5432 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5433
5434         * Fixed the silc_net_check_[host/local]_by_sock to support
5435           IPv6 bound sockets as well.  Now they can return IPv6 addresses
5436           as well.  Affected file lib/silcutil/silcnet.c.
5437
5438         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
5439           Affected lib/silcutil/unix/silcunixnet.c.
5440
5441         * Fixed ID rendering (at least on some platforms, not NetBSD)
5442           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
5443
5444 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5445
5446         * Added silc_hash_public_key and silc_hash_public_key_compare
5447           functions to be used with SilcHashTable.  They can be used to
5448           hash public keys and compare public keys in hash table.  Affected
5449           file lib/silcutil/silcutil.[ch].
5450
5451         * Added support for specifying multiple public keys for Client
5452           connection section in server configuration file.  This makes it
5453           possible to accept multiple public keys from same host, or to
5454           make a section that accepts any incoming host, and have the
5455           accepted public keys listed in the section.
5456
5457           Added functions silc_sever_[find/get]_public_key,  added the
5458           support for this actually to all connection sections but only
5459           the Client section is currently allowed to specify multiple
5460           public keys.
5461
5462           Affected files are silcd/server.c, server_internal.h,
5463           command.c, protocol.c, server_util.[ch], packet_receive.c.
5464
5465 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5466
5467         * Merged Irssi 0.8.2 from irssi.org CVS.
5468
5469 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5470
5471         * If silc_debug is TRUE, also output standard logging messages
5472           to stderr with the debug output.
5473
5474           Made silc_log_reset_all() flushing all channels before returning.
5475           Also fixed some documentation typos.
5476
5477           Affected files are lib/silcutil/silclog.[ch].
5478
5479 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5480
5481         * Fixed the server to check correctly the amount of connections
5482           from single host, by checking also the type of the connection.
5483           Fixed also the comparison of number of connections and number
5484           of allowed connections.  Affected files are silcd/server.c,
5485           server_util.[ch].
5486
5487 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5488
5489         * Fixed the USERS command reply to save the user's mode on the
5490           channel as well.  Fixed JOIN command reply to check whether a
5491           client is on channel already and not join it twice.  Affected
5492           file lib/silcclient/command_reply.c.
5493
5494         * Added new file silc-expandos.c into irssi/silc/core/ to return
5495           various stuff for various signal for the statusbar etc. updating.
5496           Now Irssi SILC client prints channel user modes etc. on the
5497           statusbar.
5498
5499         * The user mode (like server/router operator changes) is now shown
5500           on the Irssi SILC client's statusbar.  The affected files are
5501           irssi/src/silc/core/client_ops.c, silc-expandos.c.
5502
5503 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5504
5505         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
5506           to SILC_SCHEDULE_[UN]LOCK macros.
5507
5508         * Added more error printing to logs in server code.  Affected
5509           files silcd/server.c and silcd/protocol.c.
5510
5511         * Fixed -S option parsing in Irssi SILC Client.  Affected file
5512           irssi/src/silc/core/silc-core.c.
5513
5514         * Added silc_buffer_alloc_size function.  Affected file is
5515           lib/silcutil/silcbuffer.h.
5516
5517 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5518
5519         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
5520           constants.  Affected files in
5521           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
5522           silccipher.[ch].
5523
5524         * Changed the internal SFTP Memory FS table to const.  Affected
5525           file lib/silcsftp/sftp_fs_memory.c.
5526
5527 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5528
5529         * Fixed the buffer formatting and unformatting routines to
5530           check the size of 64 bits types with sizeof().  Affected
5531           file is lib/silcutil/silcbuffmt.c.
5532
5533 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5534
5535         * Removed 0.6.x backwards support.
5536
5537 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5538
5539         * Changed all integer type names:
5540           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
5541           to avoid collisions with other libraries using same type names
5542           as we did.
5543
5544 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5545
5546         * Added `prefer_ipv6' argument to the functions
5547           silc_net_gethostbyname[_async].  If it is TRUE it will return
5548           IPv6 address over IPv4.  If FALSE IPv4 address is returned
5549           even if IPv6 address was found.  Affected files
5550           lib/silcutil/silcnet.[ch].
5551
5552         * Added support silc_net_create_connection[_async] to fallback
5553           to IPv4 address if IPv6 address could not be used (like if
5554           it doesn't work on a specific system).  Affected file in
5555           lib/silcutil/unix/silcunixnet.c.
5556
5557 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5558
5559         * Added silc_schedule_reinit function to do the enlarging
5560           of the max tasks handling capabilities of the scheduler.
5561           Affected files lib/silcutil/silcschedule.[ch].
5562
5563 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5564
5565         * Added automatic extern "C" { ... } for C++ compilers so the
5566           application does not need to define them.  Affected file
5567           includes/silcincludes.h.
5568
5569         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
5570           old name went against naming convention.  Applications now
5571           include "silcclient.h" instead of "clientlibincludes.h".
5572           Removed includes/clientlibincludes.h, it is redundant now.
5573
5574         * Renamed includes/version.h to silcversion.h.
5575
5576         * Added really preliminary support for OS/2 into the util
5577           library.  Only thread & mutex API is implemented, others
5578           are still to be implemented.  Created the lib/silcutil/os2/
5579           directory.  Created also file includes/silcos2.h.
5580
5581 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5582
5583         * Added preliminary BeOS support into the util library.
5584           Created lib/silcutil/beos/, and implemented all the needed
5585           functions to support SILC on BeOS.  Created also file
5586           includes/silcbeos.h.
5587
5588 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
5589
5590         * Added proper initializations to silc's irssi code, so it's
5591           now possible to load it as module.  Affected files
5592           irssi/src/silc/core/silc-core.c,
5593           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
5594
5595 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5596
5597         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
5598           the SILC tree.
5599
5600         * Fixed the silcdoc document generator to correct generate
5601           docs from all kinds of filenames.  Affected files are
5602           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
5603
5604         * ROBOdoc documented lib/silcutil/silcmemory.h.
5605           Added also new function silc_memdup.
5606
5607         * Removed lib/silcutil/silcbufutil.h and moved those routines
5608           to the lib/silcutil/silcbuffer.h.
5609
5610 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5611
5612         * Added `user_count' to the SilcChannelEntry which now tells the
5613           number of users on the channel.  The user count is now saved
5614           in normal server of global channels as well.  Affected files
5615           silcd/server.c, idlist.h, packet_receive.c and command.c.
5616
5617         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
5618           include file utility functions.
5619
5620         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
5621           instead of calling directly OS routines.
5622
5623         * Fixed NICK change printing in Irssi SILC Client. Fixed
5624           KICKED notify printing in Irssi SILC Client.  Affected file
5625           irssi/src/silc/core/client_ops.c.
5626
5627         * Fixed a NICK change bug in client library, to not recreate the
5628           client_entry->channels hash table everytime nick is changed.
5629           Affected file lib/silcclient/client.c.
5630
5631 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5632
5633         * ROBOdoc documented the lib/silcske/silcske.h, and improved
5634           the SKE interface a bit.
5635
5636         * Fixed padding problem in PKCS#1. The padding was not actually
5637           random since the random number generator was used incorrectly.
5638           This security bug affects only when encrypting with PKCS#1, and
5639           it is not currently used at all in SILC. SILC only use signing
5640           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
5641
5642 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5643
5644         * Rewrote the notify handling in Irssi SILC client to not call
5645           the events as signals.  Fixes problems with Perl support.
5646           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5647
5648         * Send the auto-nicking NICK command in client library with
5649           little timeout after connecting.  The affected file is
5650           lib/silcclient/client.c.
5651
5652         * Added following new config file settings:
5653           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5654           key_exchange_timeout, conn_auth_timeout, connections_max,
5655           links_max.
5656
5657           Implemented all the new config settings handling in the server.
5658
5659           Optimized the use of SKE Mutual flag usage.  Use it only
5660           if connection authentication protocol is not based in public
5661           key authentication.
5662
5663           Renamed all SilcServerConfigSection* to SilcServerConfig*
5664           to have a bit shorter names.
5665
5666           Affected files silcd/serverconfig.[ch], server.[ch], and
5667           protocol.[ch].
5668
5669 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5670
5671         * Cleaned up the listening sockets code, preparing for the rehash
5672           support.  Affected file is silcd/server.c.
5673
5674         * Fixed some output messages.  Affected files are silcd/silcd.c,
5675           and silcd/server.c.
5676
5677 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5678
5679         * Create lib/doc/silcrng_intro.html document as introduction
5680           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5681
5682 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5683
5684         * Fixes to the silcd config template.  Affected file is
5685           doc/example_silcd.conf.in.
5686
5687         * Removed type casts from silc_calloc(), conforming to the
5688           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5689
5690         * Removed param_name member from client, server, and router
5691           section structs, now identifying the param directly.
5692
5693           Added CONFIG_FREE_AUTH macro in config file parsing.
5694
5695           Affected files are silcd/serverconfig.[ch].
5696
5697 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5698
5699         * Fixed command line parameter handling. All SILC initialization
5700           is now done in silc_core_init() which also fixes autoconnecting
5701           to servers.
5702
5703           Affected files irssi/src/silc/core/silc-core.c,
5704           irssi/src/fe-text/silc.c.
5705
5706 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5707
5708         * Added new configuration options and blocks:
5709           keepalive_secs, reconnect_count, reconnect_interval,
5710           reconnect_interval_max, reconnect_keep_trying and
5711           require_reverser_lookup.  Added ConnectionParam block, and
5712           implemented the connection parameters when connecting as
5713           initiator and when accepting connections as responder.
5714
5715           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5716           whether given configuration value has been given already.
5717
5718           Affected files silcd/serverconfig.[c], server.[c].
5719
5720         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5721           algorithm parts and created new file silcalgs.conf, that
5722           is now included from the example_silcd.conf.in.
5723
5724         * Optimized the silc_server_connect_to_router_second to take
5725           the connection configuration object from the SilcServerConnection
5726           object instead of finding it during the connecting phase.
5727           Added the configuration object to SilcServerConnection struct.
5728           Affected files silcd/server_internal.h, server.c.
5729
5730 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5731
5732         * Add the client on channel after it was resolved at the
5733           channel message receiving, and it was not already on the
5734           channel.  Affected file lib/silcclient/client_channel.c.
5735
5736 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5737
5738         * Fixed the public key authentication to allocate always the
5739           destination signature buffer instead of using static buffer.
5740           Affected file silcd/protocol.c.
5741
5742 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5743
5744         * Unified the serverconfig.[ch]'s helper function interface.
5745           Affected file silcd/serverconfig.[ch].
5746
5747         * Removed doc/example_silc.conf.in since it is redundant.
5748           The make install will now install irssi/silc.conf file.
5749
5750         * Added new Passphrase and Publickey authentication methods to
5751           config file, allowing both public key and passphrase based
5752           authentication to be set at the same time.
5753
5754           Added `prefer_passphrase_auth' setting in config file which
5755           can be used to set to prefer passwd auth if both passwd and
5756           public key is set.  If not set, public key is preferred.
5757           This has effect only when being initiator (responder will try
5758           both anyway).
5759
5760           Added support for authentication with passphrase and public key
5761           at the same time.  The passphrase is tried first always since
5762           it is faster to check.
5763
5764           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5765
5766 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5767
5768         * Merged the new SILC Config library, with the server parsing
5769           support.  Read the header file silcconfig.h or the toolkit
5770           documentation for the news.  Affected files are
5771           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5772           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5773           silcd/protocol.c silcd/server.c silcd/server_backup.c
5774           silcd/serverconfig.[ch] silcd/silcd.c.
5775
5776         * Fixed some silclog documentation.  Affected file is
5777           lib/silcutil/silclog.h.
5778
5779 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5780
5781         * The silc_cipher_register, silc_hash_register and
5782           silc_hmac_register now checks if the object to be registered
5783           is registered already.  Affected files are
5784           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5785
5786 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5787
5788         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5789
5790 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5791
5792         * Allow zero length channel messages inside the Channel Message
5793           Payload.  Affected file lib/silccore/silcchannel.c.
5794
5795         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5796           as header filenames.
5797
5798         * Removed lib/silcclient/README and created HTML file
5799           lib/silcclient/silcclient_using.html, which is now included
5800           as part of Toolkit documentation.
5801
5802 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5803
5804         * Fixed CUMODE_CHANGE notify handling to change the mode of
5805           correct client.  Affected file lib/silcclient/client_notify.c.
5806
5807         * Make silc_rng_alloc fail if it cannot allocate the sha1
5808           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5809
5810 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5811
5812         * Fixed the file transfer's key agreement payload to include
5813           zero port also if the hostname is NULL because it could not
5814           be bound.
5815
5816           Call file transfer monitor callback now also if error occurs
5817           during key agreement protocol.
5818
5819           Changed the silc_client_file_send interface to return the
5820           SilcClientFileError instead of session id.  The session ID
5821           is returned into pointer provided as argument.
5822
5823           Check that the file exists locally before sending the
5824           file transfer request at all.
5825
5826           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5827
5828         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5829           error than can occur while key agreement protocol.  Affected
5830           file lib/silcclient/silcapi.h.
5831
5832         * Fixed the event_mode CMODE handler to not crash when mode
5833           is changed and +k mode is set in the channel.  Affected file
5834           irssi/src/silc/core/silc-channels.c.
5835
5836         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5837           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5838           file lib/silcutil/silclog.c.
5839
5840         * Fixed the channel message payload decryption in the function
5841           silc_channel_message_payload_decrypt to not modify the original
5842           buffer before it is verified that the message decrypted
5843           correctly.  Otherwise, next time it is called with correct
5844           channel key it won't encrypt since the payload is corrupted.
5845           Affected file lib/silccore/silcchannel.c.
5846
5847 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5848
5849         * Do not constantly resize the window.  A fix patch by cras.
5850           Affected file irssi/src/fe-text/screen.c.
5851
5852 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5853
5854         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5855           Affected file lib/silcutil/silcnet.c.
5856
5857 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5858
5859         * Fixed a bug in hash table internal routine for traversing
5860           the table with foreach callback.  The current entry may
5861           become invalid in the callback but it was referenced after
5862           the callback returned.
5863
5864           Do not allow auto rehashing of hash table during the
5865           silc_hash_table_foreach operation, for same reasons as it is
5866           not allowed for SilcHashTableList.  Affected files are
5867           lib/silcutil/silchashtable.[ch].
5868
5869 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5870
5871         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5872           Win32 DLL.  extern's in header files are now declared with
5873           DLLAPI.
5874
5875 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5876
5877         * Fixed private message handling.  It used some old code that
5878           caused the client to crash.  Affecte file is
5879           lib/silcclient/client_prvmsg.c.
5880
5881 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5882
5883         * Added function silc_client_add_channel,
5884           silc_client_replace_channel_id, and removed functions
5885           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5886           from client library.
5887
5888         * Added cross reference of the joined channels to the
5889           SilcClientEntry, and changed the SilcChannelEntry's
5890           users list to SilcHashTable.  The affected files are
5891           lib/silcclient/idlist.[ch].
5892
5893         * Fixed a bug in hash table tarversing.  While the hash table
5894           is traversed with SilcHashTableList the table must not be
5895           rehashed.  It is now guaranteed that auto rehashable tables
5896           are not rehashed while tarversing the list.  Also defined that
5897           silc_hash_table_rehash must not be called while tarversing
5898           the table.  Added function silc_hash_table_list_reset that must
5899           be called after the tarversing is over.  The affected files are
5900           lib/silcutil/silchashtable.[ch].
5901
5902         * Changed all hash table traversing to call the new
5903           silc_hash_table_list_reset in server and in client library.
5904
5905         * Added function silc_client_on_channel to return the
5906           SilcChannelUser entry if the specified client entry is joined
5907           on the specified channel.  This is exported to application as
5908           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5909
5910 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5911
5912         * Fixed founder regaining problem with JOIN command on normal
5913           server.  The notify for mode change must be sent always and
5914           not only if !cmd->pending.  Affected file silcd/command.c.
5915
5916         * Fixed the WHOWAS command's reply sending to support the
5917           lists correctly.  Affected file silcd/command.c.
5918
5919 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5920
5921         * When sending JOIN command to router for processing the
5922           sender's old command identifier was not saved back to the
5923           sender's command context, fixed now.  The affected file is
5924           silcd/command.c.
5925
5926         * Create the key in JOIN command of the router did not return
5927           the channel key, added check for this.  Affected file is
5928           silcd/command.c.
5929
5930         * Fixed a channel ID update bug in JOIN command reply.  Do
5931           not directly upgrade the ID but call the function
5932           silc_idlist_replace_channel_id if the ID was changed.
5933           Affected file silcd/command_reply.c.
5934
5935         * Fixed memory leaks from command calling if it would fail.
5936           Affected file silcd/command.c.
5937
5938 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5939
5940         * Applied patches from cras:
5941
5942           Memory leak fixes around libaries, irssi window resize fix,
5943           new silclist.h and silcdlist.h, all extern inline changed to
5944           static inline.
5945
5946         * Removed dotconf from lib/dotconf, not needed anymore.
5947
5948         * Removed TRQ from lib/trq, not needed anymore.
5949
5950         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
5951           with server connections.  Later this will be configurable
5952           in config file after new config file is done.  Affected file
5953           silcd/server.c.
5954
5955 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5956
5957         * Fixed a crash in server related to channel announcements.
5958           Affected file silcd/server.c.
5959
5960 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5961
5962         * Fixed memory leaks in silc_server_create_new_channel*
5963           functions.  Affected file silcd/server.c.
5964
5965         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
5966           which ID was changed.  This way the router will send the
5967           user list for the channel again, and server won't be in
5968           desync in some rare circumstances.  Affected file is
5969           silcd/packet_receive.c.
5970
5971 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5972
5973         * Check for NULL socket pointer in the function
5974           silc_server_packet_send_to_channel_real.  Affected file
5975           silcd/packet_send.c.
5976
5977         * Fixed the BAN notify handling to correctly remove ban
5978           list.  Affected file silcd/packet_receive.c.
5979
5980 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5981
5982         * Fixed some header addition to Toolkit distribution in
5983           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
5984
5985         * Added lib/silcclient/client_ops_example.h as an template
5986           file for application programmers to quickly start using
5987           the SilcClientOperation functions in their application.
5988           Updated the lib/silcclient/README as well to tell about this
5989           nice file made available.
5990
5991 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5992
5993         * Call silc_server_remove_from_channels when removing client
5994           entry when NO_SUCH_CLIENT_ID was received.  Affected file
5995           is silcd/command_reply.c.
5996
5997 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5998
5999         * Added server & router operator statistics updating.  Affected
6000           file silcd/packet_receive.c and silcd/command.c.
6001
6002         * Fixed the SERVER_SIGNOFF notify handling on normal server
6003           not to save the history information for clients.  Same was
6004           fixed earlier in remove_clients_by_server function, but not
6005           here.  Affected file silcd/packet_receive.c.
6006
6007         * Raised the default connection-retry count from 4 to 7 in
6008           server.  Affected file silcd/server.h.
6009
6010         * Cancel any possible reconnect timeouts when we start the
6011           key exchange.  Affected file silcd/server.c.
6012
6013         * Do not reconnect on connection failure when SCONNECT was
6014           given.  Affected files silcd/server.[ch].
6015
6016 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6017
6018         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
6019
6020         * Fixed the NICK command to always give the unformatted
6021           nickname to the one giving the NICK command.  If unformatted
6022           nickname is cached already it will be formatted and the
6023           local entry will always get the unformatted nickname.
6024           Affected file lib/silcclient/idlist.c.
6025
6026         * Fixed some double frees from client library commands.
6027           Affected file is lib/silcclient/command.c.
6028
6029         * Fixed CUMODE command in server to assure that no one can
6030           change founder's mode than the founder itself, there was a
6031           little bug.  Affected file silcd/command.c.
6032
6033 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6034
6035         * Removed the SilcClientCommandDestructor from the client
6036           libary, it is not needed anymore.  Affected files are
6037           lib/silcclient/silcapi.h, command[_reply].[ch],
6038           client_notify, idlist.c.
6039
6040         * Fixed GETKEY command to first resolve client, and then
6041           resolve the server only if the client was not found, instead
6042           of resolving both at the same time.  Affected file is
6043           lib/silcclient/command.c.
6044
6045         * Added silc_client_start_key_exchange_cb and lookup the
6046           remote hostname and IP address before starting the key
6047           exchange with server.  The affected file is
6048           lib/silcclient/client.c.
6049
6050         * The server's public key is now saved using the IP address
6051           of the server and not the servername for the filename.
6052           The hostname public key filename is checked as an fall back
6053           method if the IP address based filename is not found.
6054
6055           Fixed the GETKEY command to save the fetched server key
6056           in correct filename.
6057
6058           Print the remote server's hostname now when new key is
6059           received during connection process.  Affected file is
6060           irssi/src/silc/core/client_ops.c.
6061
6062         * Return always our own public key to the client if it asks
6063           for it with GETKEY command.  Affected file silcd/command.c.
6064
6065         * Removed the use_auto_addr variable from default config
6066           file since it was in wrong section.  Affected file is
6067           irssi/src/config.
6068
6069         * Fixed TOPIC_CHANGE notification to not route it when it
6070           was sent using silc_server_send_notify_to_channel function.
6071           Affected file silcd/command.c.
6072
6073         * Fixed silc_server_send_notify_kicked to send the kicker's
6074           Client ID also, it was missing.  Affected files are
6075           silcd/command.c, silcd/packet_send.[ch].
6076
6077 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6078
6079         * Do not save client history information in SERVER_SIGNOFF.
6080           Fixes the bug in normal server that it does not detect
6081           the client becoming valid after the server becomes back
6082           online.  Affected file silcd/server_util.c.
6083
6084         * Added `sock_error' field  into the SilcSocketConnection
6085           context.  When error occurs during socket operation (read
6086           or write) the error is saved.  Added also new function
6087           silc_socket_get_error to return human readable socket error
6088           message.  Affected files are lib/silcutil/silcsockconn.[ch],
6089           lib/silcutil/unix/silcunixsockconn.c, and
6090           lib/silcutil/win32/silcwin32sockconn.c.
6091
6092         * The server now prints the socket error message in the
6093           signoff for client.  Affected file silcd/server.c.
6094
6095         * Fixed the `created' channel information sending from router
6096           to server in JOIN command.  Checks now whether the channel
6097           really was created or not and set it according that.
6098
6099           Fixed the JOIN command to use the client entry's current
6100           ID during the joining procedure instead of the one it sent
6101           in the command (it is checked though), since it can change
6102           between the packet processing and command processing, and
6103           would just case unnecessary pain in the client end.  Affected
6104           file silcd/command.c.
6105
6106         * Fixed a channel key payload sending to use correct channel
6107           ID when the server was forced to change the channel's ID by
6108           router.  Router sent the key payload with the old Channel ID.
6109           Affected file silcd/packet_receive.c.
6110
6111 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6112
6113         * Call silc_server_save_channel_key only if the key payload
6114           was provided in the JOIN command's command reply.  Affected
6115           file silcd/command_reply.c.
6116
6117 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6118
6119         * Fixed silc_mp_sizeinbase to return the value correctly with
6120           MPI.  Affected file lib/silcmath/mp_mpi.c.
6121
6122         * Fixed the stop_server signal to correctly stop the scheduler
6123           and gracefully stop the server when SIGTERM or SIGINT signals
6124           are received.  Affected file silcd/silcd.c.
6125
6126 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
6127
6128         * Simple handling of TERM and HUP signals. Also added some log
6129           flushing call around.  Affected file is
6130           silcd/silcd.c.
6131
6132         * Fixed small bugs in silclog.c. Now buffering output will take
6133           effect after 10 seconds since startup: This will ensure that
6134           no important startup messages are lost. Also output redirection
6135           will preserve original format ([Date] [Type] message).
6136           Affected file is lib/silcutil/silclog.c.
6137
6138         * Added two options to the config file, in the logging section:
6139           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
6140           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
6141
6142 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6143
6144         * Do not print the warning about log files not being initialized
6145           more than once to avoid excess logging.  Affected file is
6146           lib/silcutil/silclog.c.
6147
6148         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
6149           the SIM copying in make install in Makefile.am.pre.
6150
6151 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6152
6153         * Rewritten silclog APIs. Globally interesting changes follows:
6154           silc_log_set_files() changed to silc_log_set_file().
6155           silc_log_set_callbacks() changed to silc_log_set_callback().
6156           ROBOdoc documented silclog header file.
6157           SilcLogCb now returns bool to wether inihibit the default
6158           handler or not (to keep the old behaviour return always TRUE).
6159           The new APIs should also fix the problem of the
6160           silcd_error.log file that was written in the current directory.
6161
6162           New features:
6163           Log files streams will remain opened after silc_log_set_file()
6164           call, means less CPU usage notably on high traffic servers.
6165           File streams are now full buffered, and flushed to the disk
6166           every 5 minutes, lesses HD activity and CPU usage.
6167           Messages can be redirected, allowing admins to configure
6168           one single logfile for all server messages.
6169           the silc_log_quick global variable to activate fast-logging.
6170           Affected files lib/silcutil/silclog.[ch]
6171
6172         * Changed some code to conform new silclog APIs. Affected
6173           files are doc/example_silcd.conf.in, silcd/server.c
6174           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
6175           silcd/silcd.c.
6176
6177         * Fixed a memory leak that could occur in some situations.
6178           Affected file silcd/serverconfig.c.
6179
6180 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6181
6182         * Added the silc_client_del_client to remove the client from
6183           all channels as well.  Affected file lib/silcclient/idlist.c.
6184
6185         * Fixed the client library to correctly remove the client
6186           from all channels when the client entry is being destroyed.
6187           Affected file lib/silcclient/client_notify.c, command.c.
6188
6189         * Added auto-nicking support to the client library.  If the
6190           applicatio now sets client->nickname it will be sent to the
6191           server after connecting by the library.  This way for example
6192           SILCNICK (or IRCNICK) environment variables will have effect
6193           and always change the nickname automatically to whatever
6194           it is wanted.  Affected file lib/silcclient/client.[ch].
6195
6196         * Renamed silc_server_command_bad_chars to the
6197           silc_server_name_bad_chars and moved it to the
6198           silcd/server_util.[ch].  Added also new function
6199           silc_server_name_modify_bad to return nickname that
6200           includes bad characters as new nickname without those
6201           bad characters.  This check and modify is now used in
6202           silc_server_new_client when the username is initially set
6203           as nickname, so it must be checked to be valid nickname.
6204           Affected file silcd/packet_receive.c.
6205
6206         * The nickname length is now taken from the packet for real
6207           and not trusted to strlen() since it clearly can return
6208           wrong length for nickname including bad characters.  This
6209           also applies to channel names.  Affected file silcd/command.c.
6210
6211         * Removed the lib/silcsilm/modules directory.  Modules are now
6212           compiled into the lib/silcsim.  Fixed the copying of the
6213           modules to follow symbolic links in Makefile.am.pre.
6214
6215 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6216
6217         * Fixed silc_string_regexify list creation.  Fixes bugs with
6218           BAN and INVITE commands in server.  The affected file is
6219           lib/silcutil/unix/silcunixutil.c.
6220
6221 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6222
6223         * Removed the command destructor entirely from the server's
6224           command and command reply routines.  It is not needed, and
6225           its usage was buggy and caused crashes.  Affected files are
6226           silcd/command[_reply].[ch].
6227
6228 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6229
6230         * Cancel protocol and NULL sock->protocol if timeout
6231           occurred during protocol.  Affected file silcd/server.c.
6232
6233         * Cancel protocol timeouts always before calling the final
6234           callback, to assure that after final callback is called
6235           no other state will be called for the protocol anymore.
6236           Affected file silcd/protocol.c.
6237
6238         * Print error log if incoming connection configuration could
6239           not be found.  Affected file silcd/server.c.
6240
6241         * Fixed JOIN command to correctly save the founder mode
6242           to the client on normal SILC server, when the channel
6243           was created by the router.  Affected file silcd/command.c.
6244
6245         * Fixed LIST command (hopefully) to send correct reply
6246           packets.  Affected file silcd/command.c.
6247
6248 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6249
6250         * The silc_packet_receive_process now returns FALSE if the
6251           read data was invalid packet, and TRUE if it was ok.
6252
6253           The server now checks that if unauthenticated connection
6254           sends data and its processing fails the server will close
6255           the connection since it could be a malicious flooder.
6256
6257           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
6258
6259 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6260
6261         * Make sure the warning about error opening a log file is
6262           printed only once and not everytime it fails (produces
6263           too much useless log).  Affected file lib/silcutil/silclog.c.
6264
6265 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6266
6267         * Made the silc_server_daemonise() function more readable.
6268           Affected file silcd/server.c.
6269
6270         * Pid file is now optional, the user may comment it out from
6271           the config file. Removed define SILC_SERVER_PID_FILE, we
6272           don't need a default any longer.  Affected file
6273           configure.in.pre, lib/Makefile.am.pre.
6274
6275         * Make some use of the pid file. The server now dies at startup
6276           if it detects a valid pid file on his path. The server would
6277           die anyway in this circumstance, because of the bind() failure.
6278           Affected file silcd/silcd.c.
6279
6280         * No longer compiling lib/dotconf.
6281
6282 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6283
6284         * Fixed JOIN command parsing not to crash.  Affected file
6285           lib/silcclient/command.c.
6286
6287         * Fied the NICK_CHANGE notify to add the new client entry
6288           even it is resolved.  This removes an <[unknown]> nick
6289           thingy bug in the client.  Affected file is
6290           lib/silcclient/client_notify.c.
6291
6292         * Do not try to allocate 0 bytes (efence does not like it)
6293           in lib/silccore/silccomand.c when encoding payload.
6294
6295         * Do not take IRCNICK as nickname in Irssi SILC client since
6296           it is not possible to set nickname before hand connecting
6297           the server (TODO has an entry about adding auto-nicking
6298           support).
6299
6300         * Changed the silc_server_command_pending to check whether
6301           there already exists an pending entry with the specified
6302           command, command identifier and pending callback.  This is
6303           to fix IDENTIFY and WHOIS related crashes that may register
6304           multiple pending commands with same identifier.  Affected
6305           file silcd/command.c.
6306
6307         * Fixed the server to reconnect to the router even if it
6308           was already reconnecting and EOF was received.  This to
6309           fix a possibility that the server wouldn't ever try to
6310           auto-reconnect to the router.  Affected file silcd/server.c.
6311
6312 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6313
6314         * Fixed the server's password authentication to use the
6315           length of the locally saved password, and not the one
6316           sent in the packet.  Affected file silcd/protocol.c.
6317
6318         * Fixed same password authentication problem in the
6319           Authentication Payload handling routines in
6320           lib/silccore/silcauth.c.
6321
6322         * Yet another password authentication problem fixed with
6323           channel password handling in silcd/command.c.
6324
6325 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6326
6327         * If first character of string in silc_parse_userfqdn is '@'
6328           then do not parse it.  Affected file is
6329           lib/silcutil/silcutil.c.
6330
6331 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6332
6333         * Fixed minor bug in IDENTIFY command reply sending, which
6334           caused various weird problems during JOIN when it was
6335           resolving names for users.  Affected file silcd/command.c.
6336
6337 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6338
6339         * Fixed the IDENTIFY command reply sending to chech better valid
6340           clients.  It was possible to send incomplete list of replies.
6341           Affected file silcd/command.c.
6342
6343 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6344
6345         * Added silc_client_command[s]_[un]register functions now to
6346           dynamically register the commands in client library.  Removed
6347           the static table of commands.  This allows the client library
6348           to call commands without causing the application to know about
6349           what commands library has called.
6350
6351           Removed the INFO command reply kludge to detect when the command
6352           was called by library.  Now library use its own command reply
6353           function for INFO command.
6354
6355           Added function silc_client_command_call to call a command.
6356           Application can use it to call command, not access the structure
6357           directly.
6358
6359           Now all commands that are sent by the client library (not
6360           explicitly sent by application) use own command reply functions.
6361
6362           Affected files around lib/silcclient/ and in
6363           irssi/src/silc/core/.
6364
6365         * Fixed the WHOIS command reply sending to chech better valid
6366           clients.  It was possible to send incomplete list of replies.
6367
6368           Fixed the WHOIS and IDENTIFY to send the request to router
6369           if normal server did not do it and did not find any results.
6370
6371           Affected file silcd/command.c.
6372
6373 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6374
6375         * Moved the internal data from SilcClient context into its
6376           own file, not accesible to application.  Affected files
6377           lib/silcclient/client.h and lib/silcclient/client_internal.h,
6378           and other files in client library.
6379
6380 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6381
6382         * Added doc/examples installation target in Makefile.am.pre.
6383           A patch by salo.
6384
6385 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6386
6387         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
6388           commands the found client entry will be removed from the
6389           cache, after notifying application about the error.  Affected
6390           file lib/silcclient/command_reply.c.
6391
6392         * Changed the /MSG to check for exact nickname user gave, and
6393           not let `nick' match `nick@host' if it is only one found.  Now,
6394           user must type the exact nickname (like nick@host2) even if
6395           there are no more than one same nicks found.  This is to avoid
6396           a possibility of sending nickname to wrong nickname since
6397           `nick' could match `nick@host'.  Affected file is
6398           irssi/src/core/silc-servers.c.
6399
6400 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6401
6402         * Do not print "you are now server operator" or similar when
6403           giving /away command.  Affected files are
6404           irssi/src/silc/core/client_ops.c, silc-servers.h.
6405
6406         * Made the silc_server_command_pending_error_check to send
6407           the same command reply payload it received back to the
6408           original sender of the command.  This way all arguments
6409           that was received by the server will be received by the
6410           client too.  Affected file silcd/command.c.
6411
6412         * Added the silc_idcache_add to return the created cache entry
6413           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
6414
6415         * Add global clients to expire if they are not on any channel.
6416           This is because normal server will never know if they signoff
6417           if they are not on any channel.  The cache expiry will take
6418           case of these entries.  This is done by normal servers only.
6419           The affected files are silcd/command_reply.c,
6420           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
6421
6422         * If server receives invalid ID notification for WHOIS or
6423           IDENTIFY and the ID exists in the lists, it is removed.
6424           Affected file silcd/command_reply.c.
6425
6426         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
6427           in client then client entry that it matches is searched and
6428           the nickname is printed on the screen for user.  Affected
6429           file irssi/src/silc/core/client_ops.c.
6430
6431 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6432
6433         * Use cache entry expire time in the LIST command reply to
6434           purge old entries from the cache after the LIST command
6435           reply has been received.  This way we don't have non-existent
6436           entries in the cache for too long.  Affected file is
6437           silcd/command_reply.c.
6438
6439 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6440
6441         * If we are normal server, and we've not resolved client info
6442           in WHOIS or IDENTIFY from router, and it is global client,
6443           we'll check whether it is on some channel.  If it is not
6444           then we cannot be sure about its validity and will resolve it
6445           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
6446           file silcd/command.c.
6447
6448         * Search channel by name (if possible) rather than by ID
6449           in IDENTIFY command's command reply.  Affected file is
6450           silcd/command_reply.c.
6451
6452 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6453
6454         * Distribute to the channel passphrase in CMODE_CHANGE notify.
6455           Updated specs and implemented it.  Affected file silcd/command.c,
6456           silcd/packet_send.c and silcd/packet_receive.c.
6457
6458         * Implemented the <founder auth> payload handling in the JOIN
6459           command.  If provided all conditions for channel joining
6460           except requirement to provide correct passphrase can be
6461           overrided by the channel founder.  Updated the protocol specs.
6462           Affected file silcd/command.c.
6463
6464           Added support for founder auth in JOIN command in client
6465           library.  Fixed the parsing of the JOIN command now to support
6466           all options as they should be.  The affected file is
6467           lib/silcclient/command.c.
6468
6469         * Optimized the WHOIS and IDENTIFY commands to send the request
6470           to router only if it includes nicknames or other names.  If
6471           they include only IDs then check the local cache first before
6472           routing.  Affected file is silcd/command.c.
6473
6474         * Added channels topic announcements.  Affected file is
6475           silcd/packet_receive.c and silcd/server.c.
6476
6477         * Fixed the silc_server_send_notify_topic_set to really destine
6478           the packet to channel.  Affected file silcd/packet_send.c.
6479
6480         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
6481           library.  Affected file lib/silcclient/client_notify.c.
6482
6483         * Added UMODE announcements.  Affected file silcd/server.c.
6484
6485 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6486
6487         * Memory leak fixes in:
6488
6489           lib/silcutil/silcsockconn.c
6490           lib/silcske/silcske.c
6491           lib/silcske/groups.c
6492           lib/silccrypt/rsa.c
6493           lib/silccrypt/silcpkcs.c
6494           lib/silccore/silccommand.c
6495           lib/silccore/silcidcache.c
6496           silcd/idlist.c
6497           silcd/packet_send.c
6498           silcd/command.c
6499
6500         * ROBOdoc documented the lib/silcske/groups.h file and a
6501           bit changed the interface for better.
6502
6503 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6504
6505         * Update the client entry context in the ID cache after
6506           nick change.  Affected file lib/silcclient/command.c.
6507           Fixes the CUMODE command when regaining founder privileges,
6508           and a little WHOIS problem.
6509
6510         * Fixed silc_net_gethostbyname to correctly call the
6511           inet_ntop.  Affected file lib/silcutil/silcnet.c.
6512
6513 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6514
6515         * Added IPv6 support checking to the configure.in.pre, added
6516           also --enable-ipv6 option to override the check.  Affected
6517           file configure.in.pre.
6518
6519         * The silc_thread_create now calls the start function
6520           directly if threads support is not compiled in.  Removes
6521           ugly #ifdef's from generic code.  Affected files are
6522           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
6523
6524         * Added silc_net_gethostby[name/addr]_async to asynchronously
6525           resolve.  Affected files are lib/silcutil/silcnet.[ch].
6526
6527         * Added support for rendering IPv6 based server, client and
6528           channel IDs.  Affected file lib/silcutil/silcutil.c.
6529
6530         * Added support for creating IPv6 based server IDs.  Affected
6531           file is silcd/serverid.c.
6532
6533 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6534
6535         * Added silc_net_gethostby[addr/name] into the
6536           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
6537           routines.  Added silc_net_is_ip[4/6].  Affected file is
6538           lib/silcutil/unix/silcunixnet.c.  All routines that take
6539           address as argument now supports both IPv4 and IPv6 addresses.
6540
6541 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6542
6543         * Fixed LIST command reply sending in server.  Affected file
6544           silcd/command.c.
6545
6546         * Server now sends the kicker's client ID in the KICK notify
6547           to the kicked client.  Affected file silcd/command.c.
6548
6549         * The client library now parses the kickers client ID and
6550           UI displays it.  Affected files lib/silcclient/client_notify.c
6551           and irssi/src/silc/core/silc-channels.c, module-formats.c.
6552
6553         * Made all payload parsing function prototypes consistent.
6554           They all take now const unsigned char * and uint32 pair as
6555           the payload data instead of SilcBuffer.  Changes all around
6556           the source tree.  Other unsigned char* -> const unsigned char*
6557           changes around the tree as well.
6558
6559         * Optimized SFTP client and server packet sending not to
6560           allocate new buffer for each packet but to recycle the
6561           first allocated buffer.  Affected files are
6562           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
6563
6564         * Optimized the SFTP client to use SilcList instead of
6565           SilcDList for requests, because it is faster.  Affected file
6566           is lib/silcsftp/sftp_client.c.
6567
6568         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
6569           into lib/silccore/silcid.[ch].
6570
6571           Renamed silcpayload.[ch] into silcargument.[ch].
6572
6573 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6574
6575         * If client entry is deleted with active key agreement
6576           session, abort the session.
6577
6578           The silc_client_abort_key_agreement now calls the completion
6579           callback with new SILC_KEY_AGREEMENT_ABORTED status.
6580
6581           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
6582           idlist.c.
6583
6584 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6585
6586         * Don't use __restrict in older GCC's.  Affected file is
6587           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
6588
6589         * silc_net_localhost now attempts to reverse lookup the
6590           IP/hostname.  Affected file lib/silcutil/silcnet.c.
6591
6592         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
6593           command.  It can be used to gain founder privileges at
6594           the same time when joining the channel.
6595
6596           Defined that the SILC_NOTIFY_TYPE_KICKED send the
6597           kicker's client ID as well.  Updated protocol specs.
6598
6599           Defined that the server must send SILC_COMMAND_IDENTIFY
6600           command reply with error status to client who sent
6601           private message with invalid client ID.
6602
6603           Updated the protocol specification.
6604
6605         * Added silc_server_send_command_reply to send any
6606           command reply.  Affected file silcd/packet_send.[ch].
6607
6608         * Added silc_id_payload_encode_data to encode ID payload
6609           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
6610
6611         * The server now send IDENTIFY command reply with error
6612           status if client ID in private message is invalid.  Affected
6613           file silcd/packet_receive.c.
6614
6615         * Save the server key file with server's IP address in
6616           the filename instead of hostname.  The affected file is
6617           irssi/src/silc/core/client_ops.c.
6618
6619 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6620
6621         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
6622           A patch by Sunfall.
6623
6624         * Added libtool support for compiling shared objects in
6625           lib/silcsim.  Affected file configure.in.pre and
6626           lib/silcsim/Makefile.am.  Original patch by cras.
6627
6628 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6629
6630         * Pid file configuration, and server's config file fixes
6631           patch by toma.  Updated CREDITS file.
6632
6633 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6634
6635         * Fixed silc_client_channel_message to not try to decrypt
6636           the message twice if it resolved the destination client
6637           information.  This could cause of dropping one channel
6638           message.  Affected file lib/silcclient/client_channel.c.
6639
6640 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6641
6642         * Added silc_client_run_one into lib/silcclient/silcapi.h and
6643           lib/silcclient/client.c. This function is used when the SILC
6644           Client is run under some other scheduler, or event loop or
6645           main loop.  On GUI applications, for example this may be
6646           desired to used to run the client under the GUI application's
6647           main loop.  Typically the GUI application would register an
6648           idle task that calls this function multiple times in a second
6649           to quickly process the SILC specific data.
6650
6651 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6652
6653         * Fixed silc_server_drop() for dropping the supplementary
6654           groups as well, this could cause a security hole on some
6655           systems.
6656
6657 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6658
6659         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6660           johnny.
6661
6662         * Write PID file after dropping privileges.  Added -F option
6663           to run server on foreground.  A patch by debolaz.
6664           Affected files silcd/server.c, silcd/silcd.c.
6665
6666         * Fixed MOTD to return the MOTD file server name.  Affected
6667           file silcd/command.c.
6668
6669         * Added INFO command reply handling to the Irssi SILC Client.
6670           Affected file irssi/src/silc/core/client_ops.c.
6671
6672 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6673
6674         * Fixed the silc_idcache_list_* routines to really support
6675           the dynamic list.  Fixes a crash.  Affected file is
6676           lib/silccore/silcidcache.c.
6677
6678         * Fixed the LIST command reply to really call LIST command's
6679           pending callbacks.  Affected file silcd/command_reply.c.
6680
6681 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6682
6683         * Update conn->local_entry->nickname after giving NICK
6684           command.  Affected file lib/silcclient/command.c.
6685
6686 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6687
6688         * Added the [pid] option to the silcd configuration file
6689
6690           Affected files: serverconfig.[ch] and silcd.c
6691
6692 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6693
6694         * Save fingerprint in WHOIS command reply in server.
6695           Affected file silcd/command_reply.c.
6696
6697         * Fixed NICK commands pending callback registration.
6698           Affected file lib/silcclient/command.c.
6699
6700 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6701
6702         * Use ++server->cmd_ident when sending commands in server,
6703           instead of random number.  Affected file silcd/command.c.
6704
6705         * Fixed GETKEY command reply to call actually GETKEY pending
6706           command callbacks.  Affected file silcd/command_reply.c.
6707
6708         * A bit stricter check for nicknames.  Check for same nickname
6709           in NICK command also.  Affected file silcd/command.c.
6710
6711         * Do not call INFO command everytime client ID changes, only
6712           during first connecting.  Affected file lib/silcclient/client.c.
6713
6714         * Set the new nickname only after successful command reply for
6715           NICK command is returned by server.  Affected file
6716           lib/silcclient/command.c.
6717
6718         * Remove nicknames from nicklist during server_signoff notify.
6719           Should fix /NAMES bit more.  The affected file is
6720           irssi/src/silc/core/silc-channels.c.
6721
6722         * Added `fingerprint' field to the SilcIDListData in the
6723           silcd/idlist.h to hold the fingerprint of the client's
6724           public key.
6725
6726           Send the fingerprint of the client's public key in WHOIS
6727           command reply.
6728
6729           Affected files silcd/command.c, and silcd/idlist.[ch].
6730
6731         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6732           create fingerprint from given data.
6733
6734         * Show the fingerprint of the client's public key in WHOIS.
6735           Affected files irssi/src/module-formats.[ch] and
6736           irssi/src/silc/core/client_ops.c.
6737
6738         * Format the multiple same nicknames also during JOIN and
6739           NICK_CHANGE notifys.  Affected file is
6740           lib/silcclient/client_notify.c.
6741
6742         * Do not print error on screen for invalid private message
6743           payload since it can come if someone is sending private
6744           messages with wrong key.  Affected file
6745           lib/silccore/silcprivate.c.
6746
6747         * Fixed multiple concurrent /PING crash.  Affected file
6748           lib/silcclient/command.c.
6749
6750         * Changed the wrong ID encoding.  All IP addresses must be
6751           in MSB first order in encoded format.  They were encoded
6752           wrong and was in LSB format.  Affected files are
6753           silcd/serverid.c, lib/silcutil/silcutil.c.
6754
6755         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6756
6757         * Call the `connect' client operation through the scheduler
6758           in case of error.  Affected file lib/silcclient/client.c.
6759
6760         * Call the `failure' client operation even if the error
6761           occurred locally during a protocol.  Affected file is
6762           lib/silcclient/protocol.c.
6763
6764         * Added support of sending LIST command to router from normal
6765           server.  This way normal server can get list of all channels
6766           in the network too.  Fixed the channel list sending in the
6767           server too.  Affected files are silcd/command.c, and
6768           silcd/command_reply.[ch].
6769
6770         * Added silc_server_update_channels_by_server and
6771           silc_server_remove_channels_by_server.  They are used during
6772           disconnection of primary router and in backup router protocol.
6773           Affected file silcd/server_util.[ch], silcd/server.c and
6774           silcd/server_backup.c.
6775
6776         * Fixed channel adding to global list in IDENTIFY command
6777           reply in server.  Affected file silcd/command_reply.c.
6778
6779 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6780
6781         * If the incoming packet type is REKEY or REKEY_DONE process
6782           that packet always synchronously.  Fixes yet another MAC
6783           failed error on slow (dialup) connections.  Affected file
6784           lib/silcclient/client.c and silcd/server.c.
6785
6786 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6787
6788         * Call check_version SKE callback for initiator too.  Affected
6789           file lib/silcske/silcske.c.
6790
6791         * Implemented fix for security hole found in the SKE that was
6792           fixed in the specification few days back; the initiator's
6793           public key is now added to the HASH value computation.
6794           Added backwards support for the old way of doing it too, for
6795           old clients and old servers.  Affected file is
6796           lib/silcske/silcske.c.
6797
6798         * Enabled mutual authentication by default in SKE.  If initiator
6799           is not providing mutual authentication the responder will
6800           force it.  This will provide the proof of posession of the
6801           private key for responder.  The affected files are
6802           lib/silcclient/protocol.c and silcd/protocol.c.
6803
6804         * Do not cache anymore the server's public key during SKE.
6805           We do mutual authentication so the proof of posession of
6806           private key is done, and if the server is authenticated in
6807           conn auth protocol with public key we must have the public
6808           key already.  Affected file silcd/protocol.c.
6809
6810         * Added new global debug variable: silc_debug_hexdump.  If
6811           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6812           file lib/silcutil/silclog.[ch].
6813
6814         * Fixed compilation warning due to char * -> const char *.
6815           Affected files lib/silcutil/silcnet.h, and
6816           lib/silccore/silcauth.[ch].
6817
6818 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6819
6820         * Fixed CMODE command when new channel key was created.  If
6821           the creation failed the old key was removed.  Next time giving
6822           same command would crash the server since the old key was
6823           freed already.  Affected file silcd/command.c.
6824
6825         * Fixed the silc_server_announce_get_channels to not crash
6826           on reconnect.  Affected file silcd/server.c.
6827
6828 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6829
6830         * Added silc_log_set_debug_string function to set a regex
6831           string to match for debug output.  Only the function names,
6832           or filenames matching the given debug string is actually
6833           printed.  This way it is possible to filter out those debug
6834           strings that user is not interested in.
6835
6836           Fixed a bug in silc_string_regexify.
6837
6838           Affected files lib/silcutil/silclog.[ch], and
6839           lib/silcutil/unix/silcunixutil.c.
6840
6841         * Changed the -d options in both server and Irssi SILC client
6842           to take the debug string as argument.  Affected files
6843           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6844
6845 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6846
6847         * Added silc_hash_babbleprint to create a Bubble Babble
6848           Encoded fingerprint.  The encoding is developed by Antti
6849           Huima (draft-huima-babble-01.txt), and it creates human
6850           readable strings out of binary data.  Affected file
6851           lib/silccrypt/silchash.[ch].
6852
6853         * Print the babble print now in addition of fingerprint as well
6854           in Irssi SILC client.  Affected files are
6855           irssi/src/fe-common/silc/module-formats.[ch],
6856           irssi/src/fe-common/silc/core/client_ops.c.
6857
6858 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6859
6860         * Fixed a security problem found in SKE.  The initiator's
6861           public key too is now added to the HASH hash value creation
6862           which is signed by the responder to create the SIGN value.
6863           This will prevent anyone in the middle to lie to the responder
6864           about the initiator's public key.  If this is done now, the
6865           man in the middle will get caught.  Updated the protocol
6866           specification.
6867
6868 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6869
6870         * Better installation directory handling.  Configure module
6871           paths and other paths automatically to example_silc* files
6872           in doc/.  A patch by toma.
6873
6874         * Fixed compiler warning from MPI library, and from SILC RNG.
6875           A patch by johnny.
6876
6877         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6878           It can be configured with ./configure.  A patch by toma.
6879
6880 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6881
6882         * Find correct make to use in prepare-clean.  A patch by
6883           toma.  Affected file prepare-clean.
6884
6885 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6886
6887         * Added irssi variables use_auto_addr, auto_bind_ip,
6888           auto_bind_port and auto_public_ip.
6889
6890         * Changed the interface for silc_client_send_key_agreement
6891           in lib/silcclient/silcapi.h
6892
6893         Affected files:
6894
6895          irssi/src/silc/core/silc-core.c
6896          irssi/config
6897          lib/silcclient/silcapi.h
6898          irssi/src/silc/core/silc-channels.c
6899          lib/silcclient/client_keyagr.c
6900          irssi/docs/help/key
6901
6902 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6903
6904         * Added silc_pkcs_public_key_compare to compare two
6905           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6906
6907         * Check that the client who set the founder mode on the
6908           channel is the same client that is giving the founder
6909           mode to itself.  It is done by comparing the saved public
6910           key (it is saved even in the authentication is passphrase).
6911           Affected file silcd/command.c.
6912
6913 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6914
6915         * Do not process packet for disconnected socket connection.
6916           Affected file lib/silccore/silcpacket.c.
6917
6918         * Process the DISCONNECT packet through scheduler in the
6919           client library.  Affected file lib/silcclient/client.c.
6920
6921         * Fixed the silc_client_packet_parse to not to increase
6922           the packet sequence number if the conn->sock and the
6923           current socket connection is not same.  This can happen
6924           for example during key agreement when the conn includes
6925           multiple socket connections (listeners).  Affected file
6926           lib/silcclient/client.c.
6927
6928         * The sender of the file transfer request now provides also
6929           the pointer (listener) for the key exchange protocol.  If
6930           the listener cannot be created then it sends empty key
6931           agreement and lets the receiver provide the listener.
6932
6933           Added `local_ip' and `local_port' arguments to the
6934           silc_client_file_send.  If they are provided they are used,
6935           if not then it will attempt to find local IP address, if
6936           not found or bind fails then the remote client will provide
6937           the listener.
6938
6939           Affected files are lib/silcclient/client_ftp.c and
6940           lib/silcclient/silcapi.h.
6941
6942         * Extended the FILE SEND command to support defining the
6943           local IP and port for key exchange listener.  They are
6944           optional.  Affected file irssi/src/silc/core/silc-servers.c.
6945
6946 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6947
6948         * Defined to WHOIS command reply the sending of fingerprint
6949           of the client's public key (if the proof of posession of the
6950           corresponding private key is verified by the server).
6951           Updated to the protocol specification.
6952
6953         * Added support of receiving the client's public key's
6954           fingerprint in command reply in client library.  Affected
6955           file is lib/silcclient/command_reply.c, and
6956           lib/silcclient/idlist.[ch].
6957
6958 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6959
6960         * Do not send over 128 chars long nickname to the server
6961           in NICK command.  Affected file lib/silcclient/command.c.
6962
6963         * Do not send over 256 chars long channel names to the server
6964           in JOIN command.  Affected file lib/silcclient/command.c.
6965
6966 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6967
6968         * Assure that silc_server_close_connection cannot be called
6969           twice for same socket context.  Affected file is
6970           silcd/server.c.
6971
6972 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6973
6974         * Send error message to application if opening file for
6975           writing during file transfer fails.  Affected file is
6976           lib/silcclient/client_ftp.c.
6977
6978           Remove all file transfer sessions for a client that we're
6979           removing from ID cache.
6980
6981           Affected file is lib/silcclient/client_ftp.c.
6982
6983         * Fixed silc_net_addr2bin to return correct address.  Affected
6984           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6985
6986         * Fixed file transfer session removing on signoff notify.
6987           Affected file irssi/src/silc/core/silc-servers.c.
6988
6989         * Added the SilcClientFileError to be returned in the monitor
6990           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
6991           Affected file lib/silcclient/silcapi.h.
6992
6993 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6994
6995         * Fixed a crash in silc_client_ftp_free_sessions and
6996           silc_client_ftp_session_free_client.  Affected file
6997           lib/silcclient/client_ftp.c.
6998
6999         * Added `disabled' field in the SilcChannelEntry in the server
7000           to indicate if the server entry is disabled.  Affected file
7001           silcd/idlist.h, silcd/command[_reply].c.
7002
7003         * SILC server adds now /var/run/silcd.pid everytime it is
7004           started.  Affected file silcd/silcd.c.
7005
7006         * Added silc_server_packet_send_clients to send a packet to
7007           the provided table of client entries.  Affected file
7008           silcd/packet_send.[ch].
7009
7010         * Fixed a crash in client resolving in client_prvmsg.c in
7011           client library.  Affected file lib/silcclient/client_prvmsg.c.
7012
7013         * Do not actually remove the client directly from ID cache
7014           during SERVER_SIGNOFF, but invalidate it.  This way we
7015           preserve the WHOWAS info for the client.  Affected file
7016           silcd/server_util.c.
7017
7018         * Fixed SERVER_SIGNOFF notify handling in the server.  The
7019           server is now able to process incoming SERVER_SIGNOFF notify
7020           for a server that it doesn't even know about.  It will remove
7021           the clients provided in the notify.  Affected file
7022           silcd/packet_receive.c.
7023
7024         * Check for partial packet in data queue after every packet that
7025           was found from the queue.  Return and wait for more data if
7026           there is partial data in queue.  Affected file is
7027           lib/silccore/silcpacket.c.
7028
7029 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7030
7031         * Added SilcClietFileError enum to indicate error in
7032           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
7033           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
7034           Affected files lib/silcclient/silcapi.h and
7035           lib/silcclient/client_ftp.c.
7036
7037         * Check that newsize in silc_buffer_realloc is larger than
7038           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
7039
7040         * Added better monitor of file transfers.  It now monitors
7041           key agreement protocol during the file transfer too.  Added
7042           error reporting too.  Affected files
7043           irssi/src/silc/core/silc-servers.c,
7044           irssi/src/fe-common/silc/module-formats.[ch].
7045
7046         * Wrote a help file for FILE command.
7047
7048         * Added silc_rng_global_get_byte_fast to get not-so-secure
7049           random data as fast as possible.  Random data is read from
7050           /dev/urandom if available and from the SILC RNG if not
7051           available.  It is used in padding generation.  Affected file
7052           lib/silccrypt/silcrng.[ch].
7053
7054         * All packets in client library are now processed synchronously.
7055           Optimized packet processing a lot.  Affected file
7056           lib/silcclient/client.c.
7057
7058         * All server connection packets are processing synchronously
7059           now in server, to optimize packet processing.  Affected file
7060           silcd/server.c.
7061
7062         * Include files are installed now only in Toolkit distribution
7063           if make install is given.  Affected files: all Makefile.am's.
7064
7065 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7066
7067         * Assure that silc_client_notify_by_server_resolve does not
7068           resolve the client information multiple times.  If it cannot
7069           be found by the first it cannot be found at all.  Affected
7070           file lib/silcclient/client_notify.c.
7071
7072         * Fixed WHOWAS command reply calling.  Affected file
7073           lib/silcclient/command_reply.c.
7074
7075         * Removed all references to silc_idlist_get_client from the
7076           Irssi SILC client since that call is internal call used by
7077           the library.  The Irssi SILC client will use now client
7078           retrieval functions found in silcapi.h.
7079
7080         * Fixed a bug in resolving nickname info before sending
7081           private message.  It used freed memory.  Affected file
7082           irssi/src/silc/core/silc-servers.c.
7083
7084 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7085
7086         * Assure my_channels statistics cannot go negative in server.
7087           Affected files silcd/server.c, silcd/server_util.c.
7088
7089 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7090
7091         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
7092
7093 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7094
7095         * Win32 Toolkit changes.  Affected files
7096           win32/silc.dsw, win32/libsilc/libsilc.def,
7097           win32/libsilcclient/libsilc.def,
7098           lib/silcutil/silcutil.c, and
7099           lib/sftp/sftp_fs_memory.c.
7100
7101 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7102
7103         * Added silc_net_localip to return local host's IP address.
7104           Affected file lib/silcutil/silcnet.[ch].
7105
7106         * If key exchange or rekey protocol is active for a connection
7107           parse all packets syncronously since there might be packets
7108           in packet queue that we are not able to process without first
7109           processing packets before them.  Affected file silcd/server,
7110           lib/silcclient/client.c.
7111
7112         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
7113           whether library should continue processing the packet.
7114           Affected file lib/silccore/silcpacket.h.
7115
7116         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
7117           SilcSFTPMonitorData to SFTP server to monitor various
7118           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
7119           lib/silcsftp/sftp_server.c.
7120
7121         * Added silc_file_size to return file size.  Affected file
7122           lib/silcutil/silcutil.[ch].
7123
7124         * Implemented the file transfer support for the client library.
7125           Added preliminary support for simple client to client one-file
7126           transmission.  Affected file lib/silcclient/client_ftp.c,
7127           lib/silccilent/client.[ch].
7128
7129         * Added new local command FILE to the Irssi SILC Client.
7130           It is used to perform the file transfer.  It has subcommands
7131           SEND, RECEIVE, SHOW and CLOSE.  Affected files
7132           irssi/src/silc/core/client_ops.c,
7133           irssi/src/silc/core/silc-server.[ch].
7134
7135 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7136
7137         * Relay the SILC_PACKET_FTP in the server.  Affected files
7138           silcd/server.c and silcd/packet_receive.c.
7139
7140 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7141
7142         * Renamed silc_file_read and silc_file_write to functions
7143           silc_file_readfile and silc_file_writefile.  Added function
7144           silc_file_open and silc_file_close.  Affected files
7145           lib/silcutil/silcutil.[ch].
7146
7147 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7148
7149         * Resolve the client info when received private message or
7150           channel message for a client which nickname we don't know.
7151           Affected files lib/silcclient/client_prvmsg.c and
7152           lib/silcclient/client_channel.c.
7153
7154         * Do not crash in /KEY if client is not connected.  Affected
7155           file irssi/src/silc/core/silc-channels.c.
7156
7157         * Added SilcClientStatus field to the SilcClientEntry in the
7158           lib/silcclient/idlist.h.
7159
7160           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
7161           is incomplete and is being resolved, it won't be resolved
7162           twice.
7163
7164           Make sure also that USERS command reply does not resolve
7165           twice information.  Affected file is
7166           lib/silcclient/command_reply.c.
7167
7168           Make sure that silc_client_get_clients_by_list does not
7169           resolve twice same information.
7170
7171         * Check for valid client->id in the silc_server_free_client_data.
7172           Affected file silcd/server.c.
7173
7174         * Fixed /GETKEY nick@server not to crash if the server entry
7175           is not found.  Affected file lib/silcclient/command.c.
7176
7177         * Fixed the silc_server_check_cmode_rights to check the
7178           requested modes correctly.  Affected file silcd/command.c.
7179
7180 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7181
7182         * Better checks for non-printable chars in nick added.
7183           Affected file silcd/command.c.
7184
7185 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7186
7187         * Call the silc_server_udpate_servers_by_server in the
7188           primary router that comes back online in the backup resuming
7189           protocol.  Otherwise it routes packets wrong.  Affected file
7190           silcd/server_util.[ch], silcd/server_backup.c.
7191
7192 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7193
7194         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
7195           lib/silcutil/silcbuffmt.[ch].
7196
7197         * Redefined the SILC packet header to include the padding
7198           length.  Affected file lib/silccore/silcpacket.[ch].
7199
7200         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
7201           length for maximum padding up to 128 bytes).  Affected
7202           file lib/silccore/silcpacket.h.
7203
7204         * Removed all backwards support for old 0.5.x MAC thingies.
7205           The SILC packet header change makes it impossible to be
7206           backwards compatible.
7207
7208         * Send the ENDING packet with timeout in the backup resuming
7209           protocol.  This is to assure that all routers has connected
7210           to the primary router.  Affected file silcd/server_backup.c.
7211
7212         * Changed the RNG to take the first IV from random data.  It
7213           used to take it from zero actually.  Changed the RNG also
7214           to use /dev/urandom during session.  /dev/random is used
7215           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
7216
7217 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7218
7219         * Changed the SILC packet header to have the first two bytes
7220           (the packet length) encrypted.  Affected files aroung the
7221           code tree, lib/silccore/silcpacket.[ch].  Removed the
7222           SilcPacketCheckDecrypt callback.  It is not needed anymore
7223           since the silc_packet_receive_process will determine now
7224           whether the packet is normal or special.
7225
7226         * Implemented the unidirectional MAC keys.  Affected files
7227           lib/silcske/silcske.c, silcd/protocol.c and
7228           lib/silcclient/protocol.c.
7229
7230         * Implemented the packet sequence number to the MAC computation.
7231           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
7232           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
7233           lib/silcclient/protocol.c.
7234
7235 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7236
7237         * Allow backup router to announce servers.  All servers
7238           announced by backup router are added to the global list
7239           automatically.  Update hte server's socket to our primary
7240           router also when backup router announces a server.
7241           Affected file silcd/packet_receive.c.
7242
7243         * Do not update the client->router in the function
7244           silc_server_udpate_clients_by_server if the client is on
7245           global list.  We might fail to find any specific server
7246           for locally connected clients and local cell clients.  They
7247           should still use the `from' and not `to' as client->router.
7248           This fixes backup router resuming protocol.  Affected file
7249           silcd/server_util.c.
7250
7251         * Decrease channel statistics count only if the channel
7252           deletion worked.  Affected files are silcd/server.c and
7253           silcd/server_util.c.
7254
7255         * Added silc_server_update_servers_by_server to update origin
7256           of all server entries.  Used during backup router protocol.
7257           Affected files silcd/server_util.[ch], silcd/server.c. and
7258           silcd/backup_router.c.
7259
7260         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
7261           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
7262           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
7263           lib/silccrypt/silchmac.c.
7264
7265 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7266
7267         * Assure that router cannot reroute the same channel message
7268           to the sender.  Affected file silcd/packet_receive.c.
7269
7270 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7271
7272         * Made better checks that the channel message is not sent
7273           to the router it came from.  Affected file is
7274           silcd/packet_send.c.  Fixed memory leak too.
7275
7276         * Announce informations for incoming router connection, but
7277           only after checking if it is replaced by backup router.
7278           Affected file silcd/packet_receive.c.
7279
7280 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7281
7282         * Fixed the backup resuming protocol to work in multiple
7283           router environment.  Affected file silcd/server_backup.c.
7284
7285         * Route packet only to one router in the function
7286           silc_server_packet_send_to_channel.  Affected file is
7287           silcd/packet_send.c.
7288
7289         * Fixed silc_server_send_notify_dest to set the broadcast
7290           flag.  Fixed the silc_server_send_notify_topic to actually
7291           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
7292           Affected file silcd/packet_send.c.
7293
7294         * Changed the SFTP Filesystem interface.  Changed the
7295           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
7296           the filesystem operation function.  The SilcSFTPFilesystem
7297           is now a context that is allocated by all filesystem allocation
7298           functions and it already includes the operations structure
7299           and filesystem specific context.  It is given as argument
7300           now to the silc_sftp_server_start.  This made the interface
7301           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
7302           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
7303
7304 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7305
7306         * Changed the backup router adding and getting interfaces
7307           in the server.  The router that will be replaced by the
7308           specified backup router is now sent as argument.  Affected
7309           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
7310           silcd/server.c.
7311
7312         * Added silc_net_addr2bin_ne to return the binary form of
7313           the IP address in network byte order.  Affected files
7314           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
7315
7316 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7317
7318         * Check for existing server ID in silc_server_new_server
7319           and in silc_server_connect_to_router_final and remove the
7320           old entry if it exists.  Affected file silcd/packet_receive.c,
7321           silcd/server.c.
7322
7323         * Send the channel message always to only one router, either
7324           in upstream or downstream.  Affected file is
7325           silcd/packet_send.c.
7326
7327 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7328
7329         * Wrote the definition of the backup resuming protocol to the
7330           protocol specification.
7331
7332         * Removed one redundant channel key generation from normal
7333           server during joining procedure.  Removed one redundant
7334           channel key sending from server to router during joining
7335           procedure.  Affected file silcd/command.c.
7336
7337         * Made minor bugfixes to the backup router resuming protocol.
7338           Affected file silcd/server_backup.c, server.c.
7339
7340 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7341
7342         * Added --disable-asm configuration option.  Affected files
7343           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
7344           by salo.
7345
7346         * Implemented the backup resuming protocol that is used to
7347           resume the primary router position in the cell after the
7348           primary router comes back online.  Affected files
7349           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
7350           and silcd/server_util.[ch].
7351
7352 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7353
7354         * Sleep two (2) seconds after sending QUIT command to server.
7355           Affected file lib/silcclient/command.c.
7356
7357         * Assure that if outgoing data buffer is pending do not force
7358           send any data.  Affected file silcd/packet_send.c.
7359
7360         * Assure that if outgoing data buffer is pending do not force
7361           send any data.  Affected file lib/silcclient/client.c.
7362
7363         * Implemented the backup router support when the primary router
7364           goes down.  The servers and routers can now use the backup
7365           router as new primary router without loosing connectivity.
7366
7367 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7368
7369         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
7370           in the server to indicate disabled entry.  All data read
7371           from the connection will be ignored and no data is sent
7372           for entry that is disabled.  Affected files are
7373           silcd/idlist.h, silcd/server.c.
7374
7375 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7376
7377         * Created SFTP client and server test programs in the
7378           lib/silcsftp/tests directory.
7379
7380 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7381
7382         * Implemented memory filesystem (virtual filesystem) for
7383           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
7384           sftp_fs_memory.c.
7385
7386 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7387
7388         * Implemented the SFTP (SSH File Transfer Protocol) to the
7389           lib/silcsftp.  It includes SFTP client and SFTP server
7390           implementations.
7391
7392 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7393
7394         * Moved lib/silccore/silcprotocol.[ch] to the
7395           lib/silcutil library.
7396
7397         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
7398           take variable argument list pointer as argument.  Affected
7399           file lib/silcutil/silcbuffmt.[ch].
7400
7401         * Added silc_buffer_set function that is used to set data
7402           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
7403           Affected file lib/silcutil/silcbuffer.h.
7404
7405         * Changed various routines in the core library to use the new
7406           silc_buffer_set instead of allocating new buffer only for
7407           temporary purposes.
7408
7409         * Added 64-bit value formatting and unformatting support to the
7410           silc_buffer_[un]format routines.  Affected file is
7411           lib/silcutil/silcbuffmt.[ch].
7412
7413           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
7414           to includes/bitmove.h.
7415
7416 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7417
7418         * Fixed channel user mode saving in client library.  Affected
7419           file lib/silcclient/command[_reply].c.
7420
7421 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7422
7423         * Defined the file transfer to the SILC Protocol.  Added
7424           new packet type SILC_PACKET_FTP and defined File Transfer
7425           Payload.  The mandatory file transfer protocol is SFTP
7426           (SSH File Transfer Protocol).  Affected file in addition
7427           of the internet draft is lib/silccore/silcpacket.h.
7428
7429         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
7430           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
7431           is used as part of backup router protocol when the primary
7432           router of the cell is back online and wishes to resume
7433           the position as primary router.
7434
7435         * Redefined the MAC generation keys in the protocol.  The
7436           same key is not used anymore in both direction.  Both
7437           direction will now use different keys for sending and
7438           receiving.  This fixes a potential security flaw.  This
7439           change causes incompatibilities in the protocol.
7440
7441         * Redefined also the MAC computation from the packet.
7442           An packet sequence number is now added to the MAC
7443           computation.  This prevents possible replay attacks against
7444           the protocol.  This change too causes incompatibilities
7445           in the protocol.
7446
7447           Added `sequence' field to the SilcPacketContext to hold
7448           the current sequence number for the packet.
7449
7450 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7451
7452         * Added `created' field to the SilcIDListData in the file
7453           silcd/idlist.h to indicate the time when the entry was
7454           created.
7455
7456         * Added `created' field to the SilcChannelEntry too.  Affected
7457           file silcd/idlist.h.
7458
7459         * Added `creation_time' aguments to all the announcement functions
7460           in the server.  If it is provided then only the entries that
7461           was created after the provided time frame are actually
7462           announced.  Affected file silcd/server.[ch].
7463
7464         * The protocol says that the Channel ID's IP address must be
7465           based on the router's IP address.  Added check for this in
7466           the silc_server_new_channel when processing incoming New Channel
7467           Payload.  Affected file silcd/packet_receive.c.
7468
7469         * Print out the correct version with --version in SILC client.
7470           Affected file irssi/src/silc/core/silc-core.c.
7471
7472 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7473
7474         * Fixed WHOWAS command to check for completnes of the client
7475           entry always, not just when the command is coming from client.
7476           Affected file silcd/command.c.
7477
7478         * Added new function silc_server_packet_queue_purge to purge the
7479           outgoing data queue to the network.  After the function returns
7480           it is guaranteed that the outgoing packet queue is empty.
7481           Affected file silcd/packet_send.[ch].
7482
7483         * Purge the outgoing packet queue in the rekey protocol's final
7484           callback to assure that all rekey packets go to the network
7485           before quitting the protocol.  Affected file silcd/server.c.
7486
7487         * Added silc_client_packet_queue_parse as similar function as
7488           in server to the client library.  The affected file is
7489           lib/silcclient/client.c.
7490
7491 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7492
7493         * Splitted silcd/server.c and created silcd/server_util.[ch]
7494           for utility functions.
7495
7496         * Added new socket flag SILC_SF_DISABLED to indicate that the
7497           connection is open but nothing can be sent to or received from
7498           the connection.  Affected file lib/silcutil/silsockconn.[ch].
7499           The checking for disabled socket is checked in the low level
7500           silc_socket_write and silc_socket_read functions.
7501
7502 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7503
7504         * Allow only nicknames and channel names that fits into the
7505           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
7506
7507 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7508
7509         * When processing JOIN command reply in server check that if
7510           the channel exists in our global list we'll move it the local
7511           list.  Affected file silcd/command_reply.c.
7512
7513         * Fixed the check whether client is joined on the channel already
7514           in JOIN command.  Affected file lib/silcclient/command.c.
7515
7516         * Fixed the JOIN command reply to check whether the channel
7517           already exists.  Affected file lib/silcclient/command_reply.c.
7518
7519 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7520
7521         * Added silc_ske_status_string to map the SKE error numbers
7522           to readable strings.  The affected files are
7523           lib/silcske/silcske[_status].[ch].
7524
7525 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7526
7527         * Do not show the private channels on the WHOIS channel list
7528           as it is not allowed by the protocol.  The affected file is
7529           silcd/server.c.
7530
7531 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7532
7533         * Assure that the packet length digged from the actual packet
7534           is something sensible in the silc_packet_decrypt_rest_special
7535           in lib/silccrypt/silcpacket.c.
7536
7537         * Free and NULL the allocated pointer in silc_hmac_alloc if
7538           the HMAC allocation fails.  The affected file is
7539           lib/silccrypt/silchmac.c.
7540
7541         * Print the selected security properties to the log files in
7542           the server.  Affected file silcd/protocol.c.
7543
7544         * Add SKE's reference counter even if calling the completion
7545           callback manually.  Otherwise it goes negative, although it
7546           does not cause any problems.  The affected file is
7547           lib/silcske/silcske.c.
7548
7549         * Remove the client entry with short timeout after giving the
7550           KILL command.  Affected file lib/silcclient/command.c.
7551
7552         * Fixed to send error reply in WHOIS and IDENTIFY commands in
7553           case all found clients are already disconnected (WHOWAS would
7554           found them) in the server.  Affected file silcd/command.c.
7555
7556         * Update the last_receive (time of last data received) to be
7557           updated only when received private or channel message so that
7558           the idle time showed in WHOIS makes more sense.
7559
7560         * Added boolean field `valid' in to the SilcClientEntry in the
7561           client library to indicate whether the entry is valid or not.
7562           This fixes the nickname change bug on channel when changing
7563           the nickname to be same than the old (like nick to Nick) the
7564           nickname formatter doesn't set the new nick anymore to Nick@host.
7565           Affected file lib/silcclient/idlist.[ch].
7566
7567         * Now actually fixed the nickname changing on disconnection.
7568           Added new function silc_change_nick to the Irssi SILC Client.
7569           Affected file irssi/src/silc/core/client_ops.c,
7570           irssi/src/silc/core/silc-nicklist.[ch].
7571
7572 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7573
7574         * Check that the public key exists in the GETKEY command before
7575           trying to encode it.  Affected file silcd/command.c.
7576
7577         * Print some notifications on received public keys with GETKEY
7578           command in the Irssi SILC Client.  Affected files are
7579           irssi/src/fe-common/silc/module-formats.[ch],
7580           irssi/src/silc/core/client_ops.c.
7581
7582         * Use IDENTIFY command to resolve the server information in the
7583           GETKEY command instead of INFO command.  Affected file
7584           lib/silcclient/command.c.
7585
7586         * All command reply functions in the client library now calls
7587           the pending command reply callbacks even if an error has
7588           occurred.  The server has done this a long time and now it was
7589           time to move the client library to this as well.  Now all
7590           errors can be delivered back to the pending command reply
7591           callbacks if necessary.  Affected files are
7592           lib/silcclient/command[_reply].[ch].
7593
7594         * Change the nickname on disconnection back to the username
7595           because in reconnect the server will enforce it to it anyway.
7596           Affected file irssi/src/silc/core/silc-servers.c.
7597
7598         * Fixed a config file parsing bug in the Irssi SILC client.
7599           Affected file irssi/src/silc/core/clientconfig.c.
7600
7601 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7602
7603         * When printing the channel mode on JOIN, verify that the
7604           channel key and channel's HMAC are valid.  Affected file
7605           irssi/src/silc/core/client_ops.c.
7606
7607 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7608
7609         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
7610           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
7611           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
7612
7613         * Removed channel key rekey task deleting from the function
7614           silc_server_save_channel_key.  Affected file silcd/server.c.
7615           Added explicit timeout task context instead that is used to
7616           delete the task if we are registering a new task before the
7617           new task has elapsed.
7618
7619         * When channel key rekey occurs the client library now saves
7620           the old channel key for a short period of time (10 seconds) and
7621           is able to use it in case some is still sending channel
7622           messages encrypted with the old key after the rekey.  Affected
7623           file lib/silcclient/[idlist.h|client_channel.c].
7624
7625 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7626
7627         * Added check to the silc_server_new_id_real to not accept
7628           new ID if it is the sender's own ID.  Affected file is
7629           silcd/packet_receive.c.
7630
7631         * Assure that we do not announce ourself or the one we've
7632           sending our announcements when we're router and are announcing
7633           servers to our primary router.  Affected file silcd/server.c.
7634
7635         * Fixed silc_server_command_identify_check_client to assemble
7636           correct WHOIS packet.  It send corrupted WHOIS packet and
7637           caused problem with router to router connections.  Affected
7638           file silcd/command.c.
7639
7640           Fixed also silc_server_command_whois_check the same way
7641           as for the IDENTIFY command.
7642
7643         * Added new SilcIDListStatus to the server in the SilcIDListData
7644           structure.   The status now includes the current status of
7645           the entry (like registered, resolved etc.).  Affected file
7646           silcd/idlist.[ch].  Defined a bunch of different status types
7647           as well.  This replaced the old boolean registered field as well.
7648
7649           Added resolve_cmd_ident field to the SilcClientEntry structure
7650           too so that if the entry is for example being resolved so
7651           another command may attach to the same pending command reply
7652           without requiring to resolve the same entry again.  This concept
7653           should optimize the WHOIS and the IDENTIFY resolving under
7654           heavy load by taking away unnecessary resolving for entries
7655           that are being resolved already.
7656
7657           Added support for adding multiple pending commands for one
7658           command idenfier.  Affected file silcd/command[_reply].[ch].
7659
7660         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7661           before deleting the data.  Otherwise the hash table will have
7662           freed data in comparison functions.  Affected file is
7663           silcd/command_reply.c.
7664
7665         * Fixed silc_idlist_replace_client_id to add the new entry to
7666           the cache with NULL nickname.  Otherwise there will be invalid
7667           memory as the nickname after the nickname is freed.  Affected
7668           file silcd/packet_receive.c.
7669
7670         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7671           saved into wrong slots because the previous number of entries
7672           was not taken into account.  Affected file silcd/idlist.c.
7673           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7674
7675         * If we are router and we receive JOIN notify to a channel that
7676           does not have any users then notified client is marked as the
7677           channel founder, as it is it.  The affected file is
7678           silcd/packet_receive.c
7679
7680         * Added to the extended hash table API's table_del_*ext functions
7681           the destructor as argument too, so that the caller can decide
7682           which destructor to use or whether to use destructor at all.
7683           Affected file lib/silcutil/silchashtable.[ch].
7684
7685         * Fixed ID Cache purging.  It actually deleted the entries from
7686           the hash table after the data was freed.  The hash table ended
7687           up comparing freed memory.  The affected file is
7688           lib/silccore/silcidcache.c.
7689
7690 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7691
7692         * Fixed Irssi SILC client's KILL command's HELP syntax.
7693
7694         * The USERS command now resolves the detailed user information
7695           if the userinfo field is missing.  Affected file is
7696           lib/silcclient/command_reply.c.
7697
7698         * Do not print error in silc_file_read if the read file does
7699           not exist.  Just silently return NULL.  Affected file is
7700           lib/silcutil/silcutil.c.
7701
7702         * Fixed the silc_log_output to not wine about NULL filename
7703           and to not create some bogus " " filename.  Affected file is
7704           lib/silcutil/silclog.c.
7705
7706 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7707
7708         * Fixed various printing bugs on the user interface in the
7709           Irssi SILC Client.  Minor changes that were forgotten from
7710           the release.
7711
7712 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7713
7714         * Fixed the configure.in.pre and the compilation and distribution
7715           environment to support the new autoconf 2.52.  That version is
7716           now required to compile the CVS trunk.
7717
7718 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7719
7720         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7721           to generally parse user@fqdn format strings.  Affected file
7722           lib/silcutil/silcutil.c.
7723
7724         * Added nickname_format and nickname_force_format fields to the
7725           SilcClientParams structure.  The first one defines the format
7726           for the nicknames that the library will enforce if the receives
7727           multiple same nicknames.  The second one is boolean value and
7728           can be used to force the library to always enforce the format
7729           to the nicknames regardles whether there are multiple nicknames
7730           or not.  This configurable formatting was employed to flexibly
7731           support accessing multiple nicknames from the user interface.
7732           The userinterface can now set the nicknames to what ever format
7733           they prefer.  Affected file lib/silcclient/silcapi.h.
7734
7735           Added function silc_client_nickname_format to the file
7736           lib/silcclient/idlist.c.  It performs the nickname formatting.
7737
7738           Added new field `hostname´ to the SilcClientEntry context.
7739           It holds the hostname of the client.  Affected file is
7740           lib/silcclient/idlist.h.
7741
7742         * Irssi SILC Client sets the nicknames in nick@hostn format.
7743           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7744           irssi/src/silc/core/silc-core.c.
7745
7746           The WHOIS printing now also shows both the real nickname and
7747           the formatted nickname so that user knows how to access the
7748           user if there are multiple same nicknames cached.  Affected
7749           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7750           printing formatting too to take the hostname now as a separate
7751           argument.  The Affected file is
7752           irssi/src/fe-common/silc/modules-formats.[ch].
7753
7754         * Changed the silc_client_get_clients_local to accept the formatted
7755           nickname as argument.  It accepts the real nickname too but the
7756           formatted nickname can be used to find the true entry from
7757           multiple entries.  Affected file lib/silcclient/silcapi.h and
7758           lib/silcclient/idlist.c.
7759
7760         * Added nickname_format_parse field to the SilcClientParams.
7761           It is a callback function provided by the application to parse
7762           the nickname out of the formatted nickname string. The library
7763           calls it to get the nickname from the formatted string. Since
7764           the application generally knows better the format of the nickname
7765           string it parses it instead of the library, even though library
7766           encodes the formatted string.  If the callback function is not
7767           provided then the library will use the string as is.  The
7768           affected file is lib/silcclient/silcapi.h.
7769
7770         * All the nickname strings passed to the client library in
7771           commands are now expected to be formatted nickname strings.
7772           If the command does not support the formatted nickname string
7773           it will assume that the sent string is the actual nickname.
7774           Affected file lib/silcclient/command.c.
7775
7776 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7777
7778         * Added public key authentication support to OPER and SILCOPER
7779           commands in the client library.  Affected file is
7780           lib/silcclient/command.c.
7781
7782 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7783
7784         * Changed the get_auth_methdod client operation to be asynchronous.
7785           It can be async if the application resolves the authentication
7786           method from the server during the negotiation.  Added new
7787           SilcGetAuthMeth completion callback that the application will
7788           call after resolving the authentication method.
7789
7790           Added function silc_client_request_authentication_method that
7791           the application can use to resolve the authentication method
7792           from the server.  Added also SilcConnectionAuthRequest callback
7793           that the library will call after the server has replied.  The
7794           application can call this function if it does not know the
7795           current authentication method.
7796
7797           Affected files are lib/silcclient/client.c and
7798           lib/silcclient/silcapi.h.
7799
7800         * The Irssi SILC client now automatically resolves the authentication
7801           method incase any configuration information is not present (and
7802           currently there never is).  The affected file is
7803           irssi/src/silc/core/client_ops.c.
7804
7805         * Fixed public key authentication from the client library.
7806           Affected file lib/silcclient/protocol.c.  Changed also the
7807           protocol specification about the public key authentication in
7808           the connection authentication protocol.  The actual data to be
7809           signed is now computed with a hash function before signing.
7810
7811         * Fixed the public key authentication from the server as well.
7812           Affected file silcd/protocol.c.
7813
7814         * Removed the mlock()'s from the memory allocation routines.
7815           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7816           not check anymore for the mlock().  Affected file is
7817           configure.in.pre.
7818
7819         * Fixed USERS command in server to allow the execution of the
7820           command for private and secret channels if the client sending
7821           the command is on the channel.  Affected file silcd/command.c.
7822
7823         * Fixed silc_client_get_clients_local to return the clients
7824           count correctly.  It could return wrong value.  Affected file
7825           lib/silcclient/idlist.c.
7826
7827 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7828
7829         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7830           types.  The assembler optimizations seemed not to like 64-bit
7831           data types.  The assmebler optimizations thus are now enabled
7832           also for BSD systems as opposed to only enable them for Linux.
7833
7834         * Do not check for threads at all on BSD systems.  Affected
7835           file configure.in.pre.
7836
7837         * Removed -n and -h options from the Irssi SILC Client since
7838           they are not used in silc.
7839
7840         * Fixed the prime generation to assure that the first digit
7841           of the generated random number is not zero since our conversion
7842           routines does not like number strings that starts with zero
7843           digit.  If zero digit is seen the random number is regenerated.
7844           This caused some corrupted RSA keys when the zero first digit
7845           was met.  Affected file lib/silcmath/silcprimegen.c.
7846
7847 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7848
7849         * Fixed WIN32 configuration in the ./configure script.
7850           Fixed to include xti.h on environments that has it.
7851           Patches by Carsten Ilchmann and andrew.
7852
7853 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7854
7855         * Changed the silc_id_create_client_id to be collision
7856           resistant.  It is now assured that there cannot be created
7857           two same client ID's.  I suspect that some weird bugs in
7858           the server were actually caused by duplicate Client IDs.
7859           Affected file silcd/serverid.[ch].  A router receiving
7860           new ID now also assures and informs the sending server
7861           if the ID caused collision.
7862
7863         * Changed the silc_id_create_channel_id to also assure that
7864           there are no collisions.
7865
7866 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7867
7868         * Statement about ignoring the Mutual Authentication flag when
7869           performing rekey with PFS was a bit misleading.  It is ignored
7870           if it was set in the initial negotiation, it cannot be even
7871           set in the rekey.  Fixed in the ke-auth draft.  Started the
7872           new versions of the protocol drafts in the doc/.
7873
7874 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7875
7876         * Fixed a bug in silc_client_command_identify_save when saving
7877           new channel information.  The channel name was no duplicated
7878           and caused crash on exit.  Affected file is
7879           lib/silcclient/command_reply.c.
7880
7881 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7882
7883         * Fixed the getkey command handling in the server.  Send just
7884           empty OK reply to the sender if the key could not be fetched
7885           (but everything else was ok, like the key just was not available).
7886           Changed the public key parameter to optional in the protocol
7887           specs so that empty OK reply can be sent.  Affected file
7888           silcd/command.c.
7889
7890           Added a message to Irssi SILC client to tell to user if the
7891           server did not return a public key.
7892
7893 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7894
7895         * Fixed a channel key regeneration bug.  It registered new
7896           timeout tasks exponentially until all system resources were
7897           used.  Affected file silcd/server.c.
7898
7899 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7900
7901         * Added the SILC Document generator to the scripts/silcdoc.
7902           It can be used to generate the Toolkit Reference Manual out
7903           of the source tree.  Internally it will also use the RoboDoc
7904           generator now imported in util/robodoc.
7905
7906 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7907
7908         * Added couple of return's in rekey protocol if error orccurred
7909           during the protocol.  The execution must be terminated.
7910           Affected file silcd/protocol.c.  Also, terminate the protocol
7911           always with timeout.
7912
7913 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7914
7915         * The client's Client ID was created initally from the wrong
7916           nickname (it could have been in format nick@host) in the
7917           silc_server_new_client.  Affected file silcd/packet_receive.c
7918
7919 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7920
7921         * Added some SILC_LOG_ERROR's to various error conditions
7922           if client could not be added to ID cache.  Affected files
7923           silcd/packet_receive.c and silcd/server.c.
7924
7925         * When client's sock->user_data is freed, NULL also the
7926           client->router and client->connection pointers.  Added check
7927           for these pointers being NULL to various places around the
7928           code.  Affected file silcd/server.c.
7929
7930         * Added client->data.registered == TRUE checks to various
7931           places around the code to assure that unregistered client's
7932           are not handled when it is not allowed.  Affected file
7933           silcd/server.c.
7934
7935         * Added `bool registered' fields to all
7936           silc_idlist_[server|client]_get_* routines to indicate whether
7937           the fetched client needs to be registered or not.  Affected
7938           file silcd/idlist.[ch].
7939
7940         * Add your own entry as registered to the ID cache in the
7941           server.  Affected file server.c.
7942
7943         * Fixed a bug in silc_server_new_server.  The SilcServer was
7944           set as the new server's context instead of SilcServerEntry.
7945           This naturally caused some weird bugs.
7946
7947         * Added "updated" field the SilcChannelEntry which indicates
7948           the time since the channel entry was last accessed.  This
7949           can be used to determine whether it is necessary to
7950           announce the channel after backup resuming protocol.
7951           Affected files silcd/idlist.[ch].
7952
7953 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7954
7955         * Do not delete the channel rekey task when adding it
7956           for in silc_server_create_channel_key.
7957
7958         * Changed the silc_server_create_channel_key to return
7959           TRUE or FALSE to indicate the success of the channel key
7960           creation.
7961
7962 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7963
7964         * Fixed MSVC++ project files and added missing files to
7965           Makefiles under win32/.
7966
7967 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7968
7969         * Do not add TCP_NODELAY flag if the operating system
7970           does not have it defined.  Affected files are
7971           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7972
7973         * Fixed buffer overflow from Irssi SILC Client.  Affected
7974           file irssi/src/fe-common/core/themes.c.
7975
7976         * Fixed double free in client library in the file
7977           lib/silcclient/client.c when disconnecting from server.
7978
7979         * Applied double free patch from cras to Irssi SILC client.
7980           Affected files irssi/src/core/[modules/expandos].c
7981
7982         * Fixed the disconnection handling to Irssi SILC Client.
7983           The application must call silc_client_close_connection
7984           in ops->connect client operation in case of failure of
7985           the connection.  Affected file is
7986           irssi/src/silc/core/client_ops.c.
7987
7988         * Do not set sock->protocol to NULL in the function
7989           silc_client_close_connection after executing the protocol's
7990           final callback since the sock might not be valid anymore.
7991           Affected file lib/silcclient/client.c.
7992
7993 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7994
7995         * Do not enable SILC_THREADS if the linking with libpthread
7996           did not happen.  Affected file configure.in.pre.
7997
7998         * Added notion to protocol specification that server must
7999           verify the sent authentication payload with CMODE when
8000           setting the channel founder key.  Implemented it to the
8001           server.  Affected file silcd/command.c.
8002
8003 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8004
8005         * Added _EXTRA_DIST SILC distribution variable to the
8006           distributions file.  It is used to conditionally add extra
8007           files or directories to the specific distribution.  Affected
8008           files ./prepare, Makefile.am.pre and distributions.
8009
8010           Removed the `_' from the start of the distribution names.
8011           It is redundant.
8012
8013         * Added README.WIN32 for instructions to compile the Toolkit
8014           under WIN32.
8015
8016 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8017
8018         * Fixed a double free in disconnection in the server.  Affected
8019           file is silcd/server.c.
8020
8021         * Fixed the lib/silcske/groups.c to work now also with GMP
8022           MP library.  The string conversion did not work when using
8023           specific base and the base is indicated in the string as well.
8024
8025         * Created win32/ directory which now includes MSVC++ specific
8026           stuff so that toolkit (DLLs) may be compiled with MSVC++.
8027           It will appear only in the toolkit distribution
8028
8029 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8030
8031         * Changed the key material distribution function in case when
8032           the hash output is too short.  The data is now concatenated
8033           a bit differently than it used to.  Made the change to the
8034           SKE protocol specification.
8035
8036         * Added better GMP detection to configure.in.pre.  A patch
8037           by salo.
8038
8039 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8040
8041         * Fixed a minor bug in SKE that might cause some problem on
8042           some platforms.  Affected file lib/silcske/silcske.c.
8043
8044         * Added the cookie checking for initiator in the SKE.  It checks
8045           that the responder returns the sent cookie unmodified.  The
8046           affected file is lib/silcske/silcske.c.  Added new SKE
8047           error type INVALID_COOKIE that can be sent during the
8048           negotiation.  Fixed some memory leaks as well.
8049
8050         * Added the "invalid cookie" error message to Irssi SILC client's
8051           message formats.
8052
8053 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8054
8055         * Added `task_max' field to the SilcClientParams to indicate
8056           the maximum tasks the scheduler can handle.  If set to zero,
8057           default values are used.  Affected file lib/silcclient/silcapi.h.
8058
8059         * Fixed memory leaks in silc_client_close_connection.  Affected
8060           file lib/silcclient/client.c.
8061
8062         * Added silc_client_del_client_entry to client library to free
8063           all memory of given client entry.  Affected file is
8064           lib/silcclient/idlist.[ch].
8065
8066         * Added new functions silc_client_del_channel and
8067           silc_client_del_server to delete channel and server entries.
8068           Affected file lib/silcclient/[silcapi.h/idlist.c].
8069
8070         * Removed silc_client_del_client_by_id from silcapi.h.
8071
8072         * Fixed the INFO command to return the server's own info
8073           correctly when querying by Server ID.  Affected file is
8074           silcd/command.c.
8075
8076 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8077
8078         * Removed the non-blocking settings in WIN32 code in the
8079           silc_sock_[read/write] and added SleepEx instead.  Affected
8080           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
8081           of input data is now checked with FIONREAD and ioctlsocket.
8082
8083 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8084
8085         * Call silc_schedule_task_del_by_context in the
8086           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
8087           Affected file lib/silccore/silcprotocol.c.
8088
8089         * Call silc_protocol_cancel for active protocols in the
8090           silc_server_close_connection if the funtion
8091           silc_server_free_sock_user_data has not been called.
8092           Affected file silcd/server.c.
8093
8094         * Generic tasks cannot be deleted using the del_by_fd
8095           task deleting function since generic tasks does not match
8096           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
8097
8098         * Added a notion to SILCOPER help file that the SILCOPER works
8099           only on router server, not on normal server.
8100
8101 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8102
8103         * Added for WIN32 support for the new scheduler as well.
8104           Affected file lib/silcutil/win32/silcwin32schedule.c.
8105
8106         * Fixed the SHA1 implementation to work on various platforms.
8107
8108 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8109
8110         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
8111           API.  It is part of the scheduler now.  Everything else is
8112           as previously but some functions has changed their names.
8113           Checkout the lib/silcutil/silcschedule.h for the interface.
8114           Updated all applications to use the new interface.  Affected
8115           files are lib/silcutil/silcschedule.[ch].
8116
8117 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8118
8119         * Found a bug in the SKE implementation.  The HASH value,
8120           specified by the protocol, was not computed correctly.  The
8121           public key of the responder was not added to the computation
8122           even though it is mandatory.  Affected file lib/silcske/silcske.c.
8123           This unfortunately causes incompatibilities with older
8124           clients and servers.
8125
8126         * Added WIN32 specific network init and uninit functions:
8127           silc_net_win32_init and silc_net_win32_uninit to init and uninit
8128           the Winsock2.  Affected file lib/silcutil/silcnet.h and
8129           lib/silcutil/win32/silcwin32net.c.
8130
8131         * Set the socket always to nonblocking mode on WIN32 after
8132           reading data or writing data.  Affected file is
8133           lib/silcutil/win32/silcwin32sockconn.c.
8134
8135 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8136
8137         * Fixed various compilation problems under WIN32.  Affected
8138           files lib/silcutil/win32/silcwin32thread.c and
8139           lib/silcutil/win32/silcwin32schedule.c.
8140
8141         * Removed all _internal.h #includes from public header
8142           files.  Internal headers must never be included from
8143           public headers.
8144
8145           Removed also the lib/silcske/payload_internal.h file.
8146
8147         * All include files that may be needed (public and some others
8148           included by the public headers) by application developers are
8149           now copied to the ./includes directory.  It does not copy any
8150           internal headers.  Affected file Makefile.defines.pre and all
8151           Makefile.am's under lib/ and subdirs.
8152
8153 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8154
8155         * Do not change the ~/.silc directory's permissions automatically.
8156           Affected file irssi/src/silc/core/clientutil.c.
8157
8158 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8159
8160         * Do not cancel the protocol in silc_server_close_connection
8161           it might cause recursion.  Now cancelled in the function
8162           silc_server_free_sock_user_data.  Affected file silcd/server.c.
8163
8164         * Fixed the silc_server_remove_clients_by_server to regenerate
8165           the channel keys correctly finally.  Added also new function
8166           silc_server_remove_clients_channels to actually do it.
8167           Affected file silcd/server.c.
8168
8169         * Fixed the silc_server_new_channel to not crash by giving
8170           wrong router to the new channel.  Affected file is
8171           silcd/packet_receive.c.
8172
8173 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8174
8175         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
8176           which is given as argument to the silc_client_alloc now.
8177           It can be used to configure the client and set various parameters
8178           that affect the function of the client.
8179
8180         * The USERS command in server did not check whether the channel
8181           is private or secret.  Affected file silcd/command.c.
8182
8183         * Added new argument to the USERS command in protocol specification.
8184           The USERS command now can take the channel name as argument
8185           as well.  Added support for this in client and server and
8186           updated the protocol specs.
8187
8188         * Completed the GETKEY command in client. It can be now used
8189           to fetch also servers public key not only some clients.
8190           Affected files lib/silcclient/command[_reply].c.
8191
8192         * Added silc_client_get_server to return server entry by the
8193           server name.  Affected files lib/silcclient/silcapi.h and
8194           idlist.c.
8195
8196         * Redefined the IDENTIFY command in protocol specification to be
8197           more generic.  It now can be used to query information about
8198           any entity in the SILC Network, including clients, servers and
8199           channels.  The query may be based either the entity's name
8200           or the ID.  Added support for this in both client and server.
8201
8202           Affected files silcd/command.c and lib/silcclient/command.c
8203           and command_reply.c.
8204
8205         * Optimized the WHOIS and WHOWAS commands in the server. Removed
8206           the _from_client and _from_server functions.  Affected file
8207           silcd/command.c.
8208
8209         * Added silc_client_get_channel_by_id_resolve to the file
8210           lib/silcclient/silcapi.h to resolve channel information by
8211           its ID.  Added also silc_client_get_channel_by_id that
8212           does not resolve it from the server.
8213
8214 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8215
8216         * Added SilcServerEntry context into the client library
8217           to represent one server.  The INFO command now allocates
8218           these to save the resolved server info.  For now on the
8219           client library will also keep information about servers,
8220           connected and resolved with INFO.
8221
8222           The INFO command now allocates the SilcServerEntry context
8223           and saves the server info there.  The COMMAND_REPLY in
8224           the INFO now returns the parameters to application in
8225           same order as defined in the protocol specification.
8226
8227           The entries are cached in the client->server_cache.
8228
8229         * The INFO command is now issued after received the Client ID
8230           from the server.  Affected file lib/silcclient/client.c.
8231
8232         * The CMODE_CHANGE notify may now return also an SilcServerEntry
8233           to the application as the mode changer might be server.
8234           It is guaranteed that NULL is not returned anymore to the
8235           application.  Affected file lib/silcclient/client_notify.c.
8236
8237           The ID Type is now also passed to the application so that
8238           it can check whether the returned entry is SilcClientEntry
8239           or SilcServerEntry.
8240
8241           Added new function silc_client_get_server_by_id to return
8242           the server entry by ID.  Affected files are the
8243           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
8244
8245         * Do not create the channel in the Irssi SILC Client when issuing
8246           the JOIN command but when received the sucessful JOIN command
8247           reply.  Otherwise the channel might get created even though we
8248           could not join it.  The Affected file is
8249           irssi/src/silc/core/[silc-channels.c/client_ops.c].
8250
8251         * Fixed a channel joining bug in router.  The router must also
8252           check the channel modes, invite and ban lists etc. when serving
8253           the JOIN command sent by normal server.  Affected file is
8254           silcd/command.c.  The router now resolves the client's
8255           information from the server who sent the JOIN command if it
8256           does not know it, and processes the JOIN command only after
8257           that.
8258
8259         * Changed the SilcCommandCb to take new argument; void *context2.
8260           Affected file lib/silccore/silccommand.h
8261
8262           The second argument in the command callbacks in the server now
8263           includes the SilcServerCommandReplyContext if the command was
8264           called as pending command callback from the command reply.
8265           Otherwise it is NULL. When called as pending the status of the
8266           command reply will be checked and if it was erronous the
8267           error will be sent to the original sender of the command.
8268           This way the client always receives the error messages even
8269           though the server was actually the one who received the error
8270           when it resent the command to router, for example.  Affected
8271           files silcd/command[_reply].[ch].
8272
8273         * Fixed sending WHOWAS command's error message to client if
8274           the requested client could not be found.  It was missing.
8275           silcd/command.c.
8276
8277         * Changed the CMODE and CUMODE commands reply arguments in the
8278           protocol specification.  The Channel ID is now sent in both
8279           of the commands to identify the channel.  Implemented this
8280           new feature to the client and server.  Affected files
8281           lib/silcclient/command_reply.c and silcd/command.c.
8282
8283         * Made better checks for invite and ban lists in the JOIN
8284           command in server.  Affected file silcd/command.c.
8285
8286 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8287
8288         * The server now performs the incoming host IP/DNS lookup
8289           using the silc_socket_host_lookup and thus does not block
8290           the server anymore.  Affected file silcd/server.c.
8291
8292         * Completed the multi-thread support for SILC Scheduler in
8293           the lib/silcutil/silcschedule.c.
8294
8295         * Fixed the configure.in.pre to detect the pthread correctly
8296           on various systems.
8297
8298         * Fixed a deadlock in silc_task_queue_wakeup in the file
8299           lib/silcutil/silctask.c.
8300
8301 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8302
8303         * Added new function silc_schedule_wakeup that is used in
8304           multi-threaded environment to wakeup the main thread's
8305           schduler. It needs to be used when a thread adds a new task
8306           or removes a task from task queues. After waking up, the
8307           scheduler will detect the task queue changes. If threads
8308           support is not compiled in this function has no effect.
8309           Implemented the wakeup mechanism to both Unix and WIN32
8310           systems.  Affected files are lib/silcutil/silcschedule.[ch],
8311           lib/silcutil/unix/silcunixschedule.c and the
8312           lib/silcutil/win32/silcwin32schedule.c.
8313
8314         * Added new function silc_task_queue_wakeup to wakeup the
8315           scheduler by the specified task queue.  Affected file
8316           lib/silcutil/silctask.[ch].
8317
8318         * The silc_socket_host_lookup_start now wakes up the scheduler
8319           after adding the timeout task.  Affected file is
8320           lib/silcutil/silcsockconn.c.
8321
8322         * The silc_socket_host_lookup is synchronous now if the threads
8323           support is not compiled in.  However, the callback is still
8324           called asyncronously through the scheduler, anyway.  Affected
8325           file lib/silcutil/silcsockconn.c.
8326
8327 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8328
8329         * Added new function silc_socket_host_lookup to perform
8330           asynchronous IP and FQDN lookups for the socket connection.
8331           Affected files lib/silcutil/silcsockconn.[ch].
8332
8333 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8334
8335         * Added SILC_MUTEX_DEFINE to define the mutex on environments
8336           that may or may not compile the mutex support in.
8337
8338           Changed the silc_mutex_alloc interface. It allocates the
8339           mutex now to the sent pointer and returns TRUE or FALSE.
8340
8341           Affected file lib/silcutil/silcmutex.h.
8342
8343         * Wrote the SILC Task Queue interface to support multi-threads.
8344           Affected file lib/silcutil/silctask.[ch].
8345
8346         * Wrote the SILC Scheduler to support multi-threads.  Affected
8347           file lib/silcutil/silcschedule.c.
8348
8349 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8350
8351         * Implemented the SILC Mutex API and SILC Thread API for WIN32
8352           in lib/silcutil/win32/.
8353
8354 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8355
8356         * Defined SILC Mutex API and SILC Thread API and implemented
8357           them for Unix.  Affected files are
8358           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
8359           lib/silcutil/unix/silcunixmutex.c and
8360           lib/silcutil/unix/silcunixthread.c.
8361
8362 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8363
8364         * Fixed the silc_server_remove_clients_by_server's channel
8365           key re-generation.  The hash table handling was incorrect
8366           and would not work with many channels.  Affected file is
8367           silcd/server.c.
8368
8369         * Fixed some memory leaks around the server code.
8370
8371         * Rewrote the silc_server_get_users_on_channel to support IPv6
8372           based Client ID's.  Affected file silcd/server.c.
8373
8374         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
8375           specification.  However, a separate document must be written
8376           to define the detailed signing procedure and the payload
8377           associated with the flag.  Defined the flag to the
8378           lib/silccore/silcchannel.h as well.
8379
8380 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8381
8382         * Changed the dynamic tables to static size tables in the
8383           lib/silccrypt/silchmac.c.
8384
8385         * Removed GCC dependencies from the code.  A patch by cras.
8386
8387 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8388
8389         * Do not show the error "Error receiving packet bla bla"
8390           in server if it really was not an error (-2 means that reading
8391           is pending).  Affected file silcd/server.c.
8392
8393 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8394
8395         * Fixed a possible crash in silc_server_remove_clients_by_server
8396           in silcd/server.c.  Fixed there also some memory leaks.
8397
8398         * Fixed the silc_idlist_replace_client_id.  It could replace
8399           wrong key in the hash table.  Affected file silcd/idlist.c.
8400
8401         * Do not check whether there are global users on the channel
8402           if the channel->global_users is FALSE.  Affected functions
8403           silc_server_remove_from_one_channel and
8404           silc_server_remove_from_channels in silcd/server.c.  Also,
8405           do not check if the removed client is local as we can be
8406           sure that global client was not removed from the channel
8407           and checking for global users is not needed.
8408
8409         * The silc_server_remove_clients_by_server now re-generates
8410           the channel keys correctly for those channels that had
8411           clients removed from them.  Affected file silcd/server.c.
8412
8413 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8414
8415         * Found the reason of random crashes in the server.  We weren't
8416           ignoring the SIGPIPE signal (which can be sent in write())
8417           and it crashed the server.  Affected file silcd/silcd.c.
8418
8419 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8420
8421         * Assure that sock->user_data is not NULL in the function
8422           silc_server_packet_send in silcd/packet_send.c.
8423
8424         * Disconnect the remote connection if it could not be added
8425           to any ID lists in the server.  The affected file is
8426           silcd/server.c.
8427
8428         * Check in silc_server_packet_send[_real/dest] that the
8429           socket is not disconnecting and ignore the data if it is.
8430           Affected file silcd/packet_send.c.
8431
8432         * Define inline to __inline on native WIN32 compilation.
8433           Affected file includes/silcwin32.h.
8434
8435         * Added some explicit type casts for inline code since MSVC
8436           require them.  Affected files lib/silcutil/silcbuffer.h,
8437           lib/trq/silcdlist.h and lib/trq/silclist.h.
8438
8439         * Print warning in log files from now on if the packet
8440           decryption fails.  Affected file silcd/server.c.
8441
8442 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8443
8444         * Changed the `say' client operation's interface to accept
8445           new `type' argument to indicate the type of the message sent
8446           by the library.  The application may filter the library's
8447           messages according the type.  The affected file is the
8448           lib/silcclient/silcapi.h.
8449
8450         * Added two new functions to lib/silcclient/silcapi.h:
8451           silc_client_del_client and silc_client_del_client_by_id.
8452           Affected file lib/silcclient/idlist.c.
8453
8454         * Moved the clientincludes.h from includes/ to silc/ and
8455           serverincludes.h from includes/ to silcd/.
8456
8457         * The modes for the CMODE and CUMODE are now passed as
8458           uint32 for application with COMMAND_REPLY.  The affected
8459           file is lib/silcclient/command_reply.c.
8460
8461 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8462
8463         * /WHOIS without arguments shows client's own information.
8464           Affected file lib/silcclient/command.c.
8465
8466         * Changed PING to not accept any arguments.  The specs
8467           says that client can ping only the connected server so
8468           requiring an argument is not needed.  Affected file is
8469           lib/silcclient/command.c.
8470
8471 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8472
8473         * Fixed a fatal bug in private message sending and reception
8474           encryption and decryption when using private message keys.
8475           The implementation was incorrect and did not follow the
8476           specification.  It causd that some of the message were
8477           lost since it did not use the sending and receiving keys
8478           as the protocol suggests.  This has been fixed and will cause
8479           incompatibilities with older clients when sending private
8480           message encrypted with private message keys.  Affected files
8481           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
8482           and various other in Irssi SILC Client.
8483
8484           Added `responder' boolean argument to the functions
8485           silc_client_add_private_message_key[_ske] to indicate when
8486           the key is added as responder or initiator of the key
8487           negotiation.
8488
8489 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8490
8491         * Removed the silc_ske_check_version function and created
8492           a SilcSKECheckVersion callback.  Added also a function
8493           silc_ske_set_callbacks that is now used to set all SKE
8494           callbacks.  The callback functions are not given to
8495           the SKE functions anymore, but this function is used to
8496           set the callbacks.
8497
8498         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
8499
8500         * Added `silc_version' argument to the silc_client_alloc
8501           to define the version of the application for the library.
8502           The library will use the version string to compare it
8503           against the remote host's (usually a server) version
8504           string.  Affected file lib/silcclient/silcapi.h
8505
8506         * Added the KE protocol context to Key Agreement context
8507           in client library so that we can abort the SKE if it
8508           is in process when we get timeout.  Affected file is
8509           lib/silcclient/client_keyagr.c.
8510
8511         * Do not resolve the client ID forever if it returns in the
8512           first time that such client does not exist.  This was done
8513           for example with private message.  Affected file is
8514           lib/silcclient/client_prvmsg.c.
8515
8516 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8517
8518         * Do not add regex.h for WIN32.  The affected file
8519           includes/silcincludes.h.
8520
8521         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
8522           not work yet 100%.  It generates the DLL's automatically
8523           when compiling with --with-win32 under cygwin.
8524
8525 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8526
8527         * lib/contrib/regex.c is not compiled on WIN32.
8528
8529         * Added silc_net_get_socket_opt function to the
8530           lib/silcutil/silcnet.h.
8531
8532         * Added includes/silcwin32.h for WIN32 specific includes
8533           and definitions.
8534
8535         * Do not use ptime structure or any of the posix process
8536           functions on WIN32 in lib/silccrypt/silrng.c.
8537
8538         * Added silc_gettimeofday to provide generic function
8539           for struct timeval on all platforms.  Added the function
8540           to lib/silcutil/silcutil.h.
8541
8542 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8543
8544         * Moved the lib/silccore/silcsockconn.[ch] to the utility
8545           library as they clearly belong there.  As a plus side we
8546           can make the actual socket connection routines platform
8547           specific.
8548
8549           Added also new generic function silc_socket_read and
8550           silc_socket_write (that used to be silc_packet_[read/write].
8551           The implementation of these are platform specific.
8552
8553         * Added WIN32 specific routines of silc_socket_[read/write]
8554           to lib/silcutil/win32/silcwin32sockconn.c.
8555
8556 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8557
8558         * Added preliminary support for native WIN32 compilation under
8559           cygwin (using the -mno-cygwin option for GCC) to the
8560           ./configure.in.pre.  The --with-win32 now prepares the
8561           compilation for native WIN32.
8562
8563         * Rewrote the SILC Scheduler interface in the file
8564           lib/silcutil/silcschedule.h.  The scheduler is now context
8565           based and does not have anymore any global static scheduler.
8566           Moved the Unix scheduler to the lib/silcutil/unix/ directory
8567           and created lib/silcutil/win32 directory for WIN32 based
8568           scheduler.
8569
8570         * Added Unix specific network routines to the
8571           lib/silcutil/unix/silcunixnet.c and the old
8572           lib/silcutil/silcnet.c includes now only generic routines.
8573
8574           Added WIN32 specific network routines to the
8575           lib/silcutil/win32/silcwin32net.c.
8576
8577         * Added Unix specific utility functions from the
8578           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
8579
8580         * Added WIN32 SILC Scheduler to the file
8581           lib/silcutil/win32/silcwin32schedule.c. The code is of course
8582           untested.
8583
8584 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8585
8586         * Do not handle JOIN notify in the server if the target client
8587           is not registered (idata->registered == FALSE).  The affected
8588           file is silcd/packet_receive.c.
8589
8590         * Update the nickrec->founder in event_cumode in the Irssi SILC
8591           client.  Affected file irssi/src/silc/core/silc-channels.c.
8592
8593         * Fixed the CUMODE_CHANGE notify handling in the server when
8594           server and router are announcing their clients on channels.
8595           Now the mode changes are saved and notified correctly.  The
8596           affected file is /silcd/packet_receive.c.
8597
8598         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
8599           They really did not replace the cache entry in the ID Cache.
8600           Now they do that.  Affected file silcd/idlist.c.
8601
8602         * Fixed the KICK notify handling in the Irssi SILC client to
8603           update the channel records so that the kicked client does not
8604           appear to be on the channel.  The affected file is
8605           irssi/src/silc/core/silc-channels.c.
8606
8607         * Always update the conn->current_channel when executing command
8608           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
8609
8610         * Fixed the KILL notify handling in Irssi SILC client to remove
8611           the killed client on all channels.
8612
8613 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8614
8615         * Fixed the silc_parse_command_line to remove extra spaces
8616           from the start and end of the arguments.  Affected file is
8617           lib/silcutil/silcutil.c.
8618
8619         * Cancel and free any active protocol in the function
8620           silc_server_close_connection.  Affected file silcd/server.c.
8621
8622         * Cancel and free any active protocol in the function
8623           silc_client_close_connction.  Affected file is
8624           lib/silcclient/client.c.
8625
8626         * Do not execute the KILL command for clients that are in
8627           history (ie. they are not in the network).  Affected file is
8628           silcd/command.c.
8629
8630         * Fixed KILL notify handling, client does not crash anymore.
8631           Affected file irssi/src/silc/core/silc-channels.c.
8632
8633         * Reduced the default packet buffer size from 2048 to 1024 in
8634           lib/silccore/silcpacket.c.
8635
8636         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
8637           counter to the SKE context that is incresed when the SKE library
8638           performs async operation outside the library.  If the outside
8639           process frees the SKE context and FREED status will be set
8640           and the library will detect after the sync operation that the
8641           libary is freed.  The affected files are
8642           lib/silcske/silcske[_status].[ch].
8643
8644         * Resolve the client entry information in the function
8645           silc_client_channel_message to assure that NULL pointer is not
8646           passed as client entry to the application. */
8647
8648         * Fixed the task timeout calculation to assure that there is
8649           never negative timeouts.  The affected file is
8650           lib/silcutil/silcschedule.c.
8651
8652         * Fixed the channel user mode notification sending in server.
8653           It was sent point-to-point to the router (or to server by router)
8654           but it needs to be destined to a channel.  The routines now
8655           supports sending the channel user mode notifys to the channels
8656           when announcing clients and channels.  Affected files are
8657           silcd/server.c and silcd/packet_receive.c.
8658
8659         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8660           It did not actually replace the old channel entry in the cache.
8661           Affected file lib/silcclient/client_notify.c.
8662
8663 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8664
8665         * Fixed a possible crash in silc_packet_send_prepare.  It now
8666           assures always that there is enough space in the buffer and
8667           at the tail area of the buffer (for MAC).
8668
8669           Fixed the inbound buffer reallocation in silc_packet_read.
8670           It was old code and did not handle the reallocation correctly.
8671           Affected
8672
8673           The affected file is lib/silccore/silcpacket.c.
8674
8675         * Fixed buffer overflow in silc_parse_nickname in the file
8676           lib/silcutil/silcutil.c.
8677
8678 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8679
8680         * make install generates new server keys only if there is not
8681           keys already.
8682
8683 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8684
8685         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8686           Added check that if the NOREPLY is set then we will not send
8687           the away message.  This avoids infinite loop of away messages
8688           if both clients are away.  The affected file is
8689           lib/silcclient/client_prvmsg.c.
8690
8691         * Fixed client crash if /NICK was given without arguments.
8692           Affected file lib/silcclient/command.c.
8693
8694         * Server does not send the invite list in INVITE command back
8695           to the client if the list was not altered.  Added this notion
8696           to the protocol spec as well.  Affected file silcd/command.c.
8697
8698           Fixed possible crash in INVITE command by checking the
8699           value of silc_server_get_client_route command.
8700
8701         * Fixed the INVITE notify type handling.  The arguments are now
8702           taken in correct order and client does not crash.  The affected
8703           file is irssi/src/silc/core/silc-channels.c.
8704
8705           Removed the "Inviting xxx to channel" message from the
8706           client library away and let the application handle it.
8707           Affected file lib/silcclient/command.c.  Added that message
8708           to Irssi SILC client's message formats.
8709
8710         * Fixed CMODE command crash in client.  It now checks the
8711           amount of arguments correctly and does not crash.  The affected
8712           file is lib/silcclient/command.c.
8713
8714         * Do not create new channel automatically in silc_channels_join
8715           but check whether the channel by that name already exists.
8716           Affected file irssi/silc/core/silc-channels.c.
8717
8718         * Do not send the SERVER_SIGNOFF to router if the disconnected
8719           entity was the router.  Affected file silcd/server.c.
8720
8721         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8722           SILC client as it was missing from there.
8723
8724           Added the handling of the KICK notify to the Irssi SILC client
8725           as it was missing.  Added "you have been kicked" message to
8726           Irssi SILC client's message modules formats.
8727
8728           Added the handing of the KILL notify to the Irssi SILC client
8729           as it was missing.  Added the kill message module formats
8730           as well.
8731
8732           The affected file is irssi/src/silc/core/silc-channels.c.
8733
8734         * The router did not save the channel mode the server announced.
8735           Affected file silcd/packet_receive.c.
8736
8737         * Fixed a possible crash in INFO command in server.  If the
8738           server did not provide the server info it crashed.  Affected
8739           file silcd/command.c.
8740
8741 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8742
8743         * Fixed the GETKEY command in the server to check also the
8744           global list.  Otherwise the GETKEY would not work correctly
8745           in normal SILC server.  Affected file silcd/command.c.
8746
8747 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8748
8749         * Fixed GETKEY crash, it crashed if the command did not succseed.
8750
8751 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8752
8753         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8754           is now real and not just an macro interface to GMP.
8755
8756           Removed the entire GMP from the source tree and imported new
8757           NSS MPI library instead.  Reason for removing GMP is that it is
8758           extremely large and compiles extremely slow.  The NSS MPI
8759           is only a few files and compiles in less than 10 seconds.
8760           The speed is also about the same as GMP.  The MPI is imported
8761           to lib/silcmath/mpi.
8762
8763           If the system has GMP installed we will still use the GMP.
8764           If it is not then the NSS MPI will be compiled.
8765
8766 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8767
8768         * Merged a long nickname (127 characters long) crash bugfix from
8769           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8770
8771         * Merged a freed memory reference bugfix from Irssi CVS tree.
8772           Affected file irssi/src/core/commands.c.
8773
8774 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8775
8776         * Added the server's public key sving and verification to the
8777           server when performing the SKE.  This was missing and the
8778           remote server's (or router's) public key was accepted without
8779           checking whether we have it previously or trust it at all.
8780           Affected file silcd/protocol.c.
8781
8782 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8783
8784         * Check in the silc_server_timeout_remote if protocol is active
8785           and make sure that the protocol's final callback is called so
8786           that all memory if freed.  Affected file silcd/server.c.
8787
8788 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8789
8790         * silc_server_whois_send_reply crashed the server if the nickname
8791           was 127 characters long.  Affected file silcd/command.c.
8792
8793 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8794
8795         * Added sanity check to the silc_server_new_client. If the hostname
8796           is provided inside username then check that the provided hostname
8797           really is the same as the resolved one.  If the hostname was not
8798           resolved then check it from the public key.  Affected file is
8799           silcd/packet_receive.c.
8800
8801         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8802           if the server disconnected us and the connection is not valid
8803           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8804
8805         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8806           the library to the lib/silcutil/silcutil.[ch].
8807
8808 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8809
8810         * Close log file after open.  Affected file
8811           lib/silcutil/silclog.c.
8812
8813         * Check whether sock == NULL in silc_client_send_packet and return
8814           if it is.  Affected file lib/silcclient/silcclient.c.
8815
8816         * Check rec->entry == NULL in the Irssi SILC Client before
8817           sending the channel message.  Affecte file is
8818           irssi/src/silc/core/silc-servers.c.
8819
8820 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8821
8822         * Merged a splitted window bugfix from Irssi CVS tree.  The
8823           affected file is irssi/src/fe-text/textbuffer-view.c.
8824
8825         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8826           It did not print nickname.
8827
8828         * Improved the distributions system a bit.
8829
8830 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8831
8832         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8833           irssi/src/fe-text/gui-window.c.
8834
8835         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8836           to in-active server.  The affected file is
8837           irssi/src/silc/core/client_ops.c.
8838
8839         * Resolve the client in USERS command reply if the entry does
8840           not have username resolved.  The affected file is
8841           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8842           command to WHOIS command to really resolve stuff.  The USERS
8843           is not used any more in any critical section so WHOIS can
8844           be used even though it might be slower than IDENTIFY.
8845
8846         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8847           format.
8848
8849 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8850
8851         * Changed the protocol API a bit more consistent in the
8852           lib/silccore/silcprotocol.[ch].
8853
8854         * Changed the following headers to ROBODoc format:
8855
8856                 lib/silccore/silcpayload.h
8857                 lib/silccore/silcprotocol.h
8858                 lib/silccore/silcsockconn.h
8859
8860           All core library headers are now formatted.
8861
8862 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8863
8864         * Fixed a bug in Irssi SILC client; do not show that you are
8865           server/router operator if you really are not.  Affected file is
8866           irssi/src/silc/core/client_ops.c.
8867
8868         * Renamed silc_command_free_payload to silc_command_payload_free.
8869           Affected file lib/silccore/silccommand.h
8870
8871         * Added silcmath.h to include the prototoypes of various routines
8872           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8873           silcprimegen.h.
8874
8875         * Changed the following headers to ROBODoc format:
8876
8877                 lib/silccore/silcchannel.h
8878                 lib/silccore/silccommand.h
8879                 lib/silccore/silcid.h
8880                 lib/silccore/silcidcache.h
8881                 lib/silccore/silcmode.h
8882                 lib/silccore/silcnotify.h
8883                 lib/silccore/silcpacket.h
8884                 lib/silcmath/silcmath.h
8885
8886 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8887
8888         * Added checking to the server code not to start the server if
8889           ciphers and stuff are not configured properly.  Affected files
8890           silcd/serverconfig.[h] and silcd/server.c.
8891
8892         * Changed the layout of the header files of the public interfaces
8893           in the SILC libraries.  The new layout supports ROBODoc
8894           documentation tool (and some others) so that it is easy to create
8895           a library reference manual.  All the other headers and source
8896           code must still follow the CodingStyle document.  Also source
8897           code must not include these ROBODoc stuffs, only the headers.
8898           Furthermore, all public interface headers must now be named
8899           by using `silc' prefix, example: silcapi.h, silccipher.h.
8900           Some files were renamed due to this.  All the other headers
8901           must not be used as public interfaces.  I will update the
8902           CodingStyle document later.  Changed following headers, so far:
8903
8904                 lib/silcclient/silcapi.h
8905                 lib/silccore/silcauth.h
8906                 lib/silccore/silcprivate.h
8907                 lib/silccrypt/silcdh.h
8908
8909 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8910
8911         * Updated TODO.
8912
8913         * Removed silc_client_packet_send_flush from the client library
8914           as it is not needed.  Affected file lib/silcclient/client.[ch].
8915
8916         * Added printing of message of unresolved authentication method
8917           to the Irssi SILC client.  Added it to the module formats.
8918           Removed the same message from the client library.
8919
8920 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8921
8922         * Added new distribution feature, DISTLABEL.  Every distribution
8923           can define own preprocessor label that can be used in the
8924           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8925           file distributions, acconfig.h.pre and prepare.
8926
8927 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8928
8929         * Added Makefile.defines_int to include the actual definitions
8930           for Makefile.defines.in.  Tested the new distribution system,
8931           created distributions and tested installation.
8932
8933         * Added AWAY message printing to the Irssi SILC client.  Added
8934           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
8935
8936         * Added SCONNECT command to call the SILC's CONNECT command.
8937           Cannot use CONNECT directly since Irssi uses that internally.
8938           Affected file irssi/src/silc/core/silc-servers.c.
8939
8940           Added ACTION local command.  It is same as ME command but takes
8941           the channel as mandatory argument.
8942
8943           Rewrote some of the Irssi's help files to suite for SILC
8944           protocol.
8945
8946 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8947
8948         * Added Makefile.defines[.in] that should for now on be included
8949           in all Makefile.am file in the source tree.  That file includes
8950           all common compilation definitions for SILC source tree.
8951
8952 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8953
8954         * Minor changes to the ./prepare script to change the package
8955           name according the distribution name to the configure.in.
8956
8957 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8958
8959         * Created new distribution system.  Added file `distributions'
8960           that defines all the distributions that can be created out of
8961           the SILC source tree.  The ./prepare script now reads that
8962           file to determine how to prepare the distributions.  The
8963           first argument to the ./prepare is the name of the distribution
8964           and second is the version of the distribution.  If given
8965           without arguments it creates the default (toolkit) distribution
8966           with the default version (defined in ./prepare).
8967
8968           All Makefile.am files that are subject to the distributions
8969           are now named as Makefile.am.pre.  These are ./Makefile.am
8970           and lib/Makefile.am.  Others may be changed later.
8971
8972 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8973
8974         * Added invite list, ban list, some key management and connection
8975           error message printing to module formats in the Irssi SILC client.
8976
8977         * Added new silc_client_set_away_message to set the away message
8978           that is back to the person who sent private message.  The
8979           affected file lib/silcclient/silcapi.h and the
8980           lib/silcclient/client_prvmsg.c.
8981
8982 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8983
8984         * Fixed the private message sending in the Irssi SILC client,
8985           added local command KEY to the Irssi SILC client.
8986
8987           Added key management and key agreement message formats to the
8988           irssi/src/fe-common/silc/module-formats.[ch].
8989
8990           Added USERS (alias WHO) printing, server/router operator
8991           indication and LIST command printing to the module formats.
8992
8993 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8994
8995         * Fixed channel joining notify handling, cumode notify handling
8996           from Irssi SILC client.
8997
8998         * Added SILC specific module-formats to the Irssi SILC client so
8999           that SILC specific message hilighting, colors etc is possible.
9000           Affected file irssi/src/fe-common/silc/module-formats.[ch].
9001
9002           Added channel mode, channel user mode, actions, notices,
9003           whois and whowas printing to the the module-formats.c.
9004
9005         * Fixed a bug in channel deletion in the server.  The channel
9006           is not left to the cache even if the channel founder auth mode
9007           is set when there are no users anymore on the channel.  Affected
9008           file silcd/server.c.
9009
9010         * The silc_net_localhost now resolves the entire hostname including
9011           the domain name.  Affected file lib/silcutil/silcnet.c.
9012
9013 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9014
9015         * Changed the ask_passphrase client operation to be ascynchronous.
9016           It has now a completion callback and a context that the
9017           application must call after it has got the passphrase from
9018           the user.  Affected files lib/silcclient/silcapi.h,
9019           lib/silcclient/protocol.c, lib/silcclient/command.c and
9020           silc/client_ops.c.
9021
9022           Added SilcAskPassphrase callback that the application calls
9023           to deliver the passphrase to the library.
9024
9025         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
9026           The public key verification and especially a certificate
9027           verification is asynchronous procedure.
9028
9029           Added new SILC_SKE_STATUS_PENDING status to indicate the
9030           request is pending and a callback will be called to finalize
9031           the request.
9032
9033           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
9034           indicate that remote end did not send its public key (or
9035           certificate), even though we require it.  Added check for this
9036           condition in the SKE.  This was a security bug, now fixed.
9037
9038           Defined new SilcSKEVerifyCbCompletion callback that is called
9039           when the verification process is completed.
9040
9041           The affected files lib/silcske/silcske_status.h and
9042           lib/silcske/silcske.[ch].
9043
9044         * Changed the verify_public_key client operation to be async
9045           as well.  Defined SilcVerifyPublicKey callback that is used to
9046           indicate the success of the public key verification process.
9047
9048           Changed the server and client to use the new async client
9049           operations.
9050
9051         * Changed the Irssi SILC client's internal scheduler to be called
9052           twice as many times as it used to be.  As a result the client
9053           should be a bit faster now.  Affected file is
9054           irssi/src/silc/core/silc-core.c.
9055
9056         * Added support to Irssi SILC client of asynchronous public key
9057           verification and passphrase inquiry.  Affected file is
9058           irssi/src/silc/core/silc-core.c.
9059
9060 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9061
9062         * Do not say "You have left channel %s" in client library.
9063           Moved it to the application.  Affected files are
9064           lib/silcclient/command.c and silc/client_ops.c.
9065
9066         * Fixed silc_client_get_clients.  Command context was not
9067           duplicated and was freed memory in the callback.  Affected
9068           file lib/silcclient/idlist.c.
9069
9070         * Do not say "you are now talking..." on JOIN command in the
9071           client library.  The appliation must handle it.
9072
9073         * Do not say ".. changed topic to" in command reply in the
9074           client libary.  The application must handle it.
9075
9076         * Fixed TOPIC command sending in the client library.
9077
9078         * Fixed a memory leak in silc_client_command_free in the file
9079           lib/silcclient/command.c.
9080
9081 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9082
9083         * Imported a modified version of Irssi client to the source tree.
9084           The Irssi will be used to create a new client called
9085           Irssi SILC.  Imported to irssi/.
9086
9087           Added silc_core_init_finish function to the Irssi.  Affected
9088           file irssi/configure.in.
9089
9090           A lot changes in the Makefile.ams around the irssi tree.
9091
9092 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9093
9094         * Do not rehash if the new size is same as the old size of the
9095           hash table, in the silc_hash_table_rehash*.  The affected file
9096           lib/silcutil/silchashtable.c.
9097
9098         * Replaced hash_table_del_by_context calls from the server
9099           (when channel->user_list and client->channels) to the
9100           hash_table_del as it is sufficient and faster.
9101
9102 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9103
9104         * Added silc_hash_table_list, silc_hash_table_get and the
9105           SilcHashTableList structure to provide an alternative way to
9106           traverse the hash table.  The affected files are
9107           lib/silcutil/silchashtable.[ch].
9108
9109         * Changed the server's idlist routines to use the hash table
9110           routines to optimize the code.
9111
9112 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9113
9114         * Replaced the client entry's `channel' list and channel entry's
9115           `user_list' list to hash tables for optimized lookup.  Changed
9116           the code to use the hash table interface around the code.
9117           Affected file lib/silcd/idlist.[ch].
9118
9119         * Added `auto_rehash' boolean argument to the function
9120           silc_hash_table_alloc to indicate whether the hash table should
9121           auto-rehash when it thinks is appropriate time.  It will
9122           increase the hash table size if the there is twice as much
9123           entries in the table than the size of the table, and will
9124           decrease the size if there are twice as less entries than
9125           the size of the table.
9126
9127 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9128
9129         * Fixed silc_xxx_get_supported to not crash at some circumstances.
9130
9131 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9132
9133         * silc_idcache_purge_by_context deletes the entry now by context
9134           as it is supposed to do.  Affected file lib/silccore/idcache.c.
9135
9136         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
9137           client is not anymore valid (WHOWAS givens the info) and not
9138           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
9139
9140 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9141
9142         * Removed the `data' and `data_len' arguments from the ID Cache
9143           interfaces and added `name' argument.  ID Cache does not handle
9144           anymore the binary data only a names associated with given ID.
9145
9146         * When hashing a Client ID with silc_hash_id the entire ID is
9147           not hashed anymore, instead only the hash of the Client ID is
9148           hashed.  This way we can access the Client ID from the cache
9149           with Client ID but with the hash of the ID (which is a hash of
9150           the nickname) as well without any difference in performance.
9151
9152           Added also silc_idcache_find_by_id_one_ext to do one on one
9153           searching when we have the actual ID.  Added also function
9154           silc_hash_client_id_compare.  The affected files are
9155           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
9156
9157         * When hashing the name associated with a ID it is always done
9158           in lowercase.  This way we can access the cache without worrying
9159           about case-sensitivity, even though, for example nicknames are
9160           case sensitive.
9161
9162         * Fixed a bug in server with channel message sending.  It put
9163           wrong ID type as destination ID.  The affected file
9164           silcd/packet_send.c.
9165
9166         * silc_idcache_del_by_context now deletes from all hash tables
9167           by context.  Affected file lib/silccore/idcache.c.
9168
9169 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9170
9171         * Changed the client library to use the new ID Cache interface.
9172           Changes around the source tree.
9173
9174         * Added silc_hash_table_rehash_ext to rehash with specific
9175           hash function.  Affected file lib/silcutil/silchashtable.[ch].
9176
9177         * Added silc_hash_string_compare to compare two strings in the
9178           hash table.  Affected file lib/silcutil/silcutil.[ch].
9179
9180 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9181
9182         * Added new function silc_idcache_del_by_context into the
9183           lib/silccore/idcache.[ch].
9184
9185         * Changed the server's ID list routines to use the new ID Cache
9186           interface.  Changes around the source tree.
9187
9188 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9189
9190         * Added silc_hash_table_del[_by_context]_ext functions in to the
9191           lib/silcutil/silchashtable.[ch].
9192
9193           Removed silc_hash_table_find_all* routines and added new
9194           silc_hash_table_find_foreach to replace them.
9195
9196           Added silc_hash_table_replace_ext function as extended
9197           replacing function.  Separated the simple hash table interface
9198           from the extended hash table interface in the file
9199           lib/silcutil/silchashtable.h.
9200
9201         * Fixed minor bugs and changed it to use some of the new
9202           hash table functions in lib/silccore/idcache.c
9203
9204 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9205
9206         * Added new function silc_hash_table_find_all to return all keys
9207           in the hash table by the specified key.  As the hash table is
9208           collision resistant it also makes it possible to have several
9209           duplicate keys in the hash table.  This function may be used to
9210           find all of the keys from the hash.
9211
9212           Added user_context arguments to the SilcHashFunction,
9213           SilcHashCompare and SilcHashDestructor to deliver user specified
9214           context.
9215
9216           Added new fuctions silc_hash_table_find[_all]_ext to do
9217           extended lookup with specified hash and compare functions and
9218           specified user contexts.
9219
9220           Added new function silc_hash_table_add_ext to add the key
9221           with specified hash function and user context.
9222
9223           Added new function silc_hash_table_foreach to traverse all
9224           entrys in the hash table.  Added SilcHashForeach callback
9225           function.
9226
9227           Added new function silc_hash_table_del_by_context to delete
9228           the entry only if the context associated with the key matches.
9229
9230           Affected files are lib/silcutil/silchashtable.[ch].
9231
9232         * Removed silc_hash_[server/client/channel]_id and added just
9233           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
9234           silc_hash_id_compare to compare two ID's using as the hash table
9235           comparison function.  Added also silc_hash_data to hash
9236           binary data and silc_hash_data_compare to compare it.
9237
9238         * Removed silc_idlist_find_client_by_hash as it is not needed
9239           anymore.  Affected file silcd/idlist.[ch].
9240
9241         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
9242           to use internally the SilcHashTable.  The new ID Cache is a lot
9243           faster than the old one.  Some of the ID Cache interface was also
9244           rewritten and obsolete and stupid functions were removed.
9245
9246 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9247
9248         * Added entry_count field to the SilcHashTable to keep the number
9249           of the entries in the table.  Implemented the function
9250           silc_hash_table_rehash.  Added new function
9251           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
9252
9253           Fixed a minor bug in silc_hash_table_free.
9254
9255         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
9256           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
9257           into the lib/silcutil/silcutil.[ch].
9258
9259 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9260
9261         * Implemented a collision resistant hash table into the
9262           lib/silcutil/silchashtable[ch].  See the header and the source
9263           for the SilcHashTable API.
9264
9265 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9266
9267         * Merged dotconf version 1.0.2 into lib/dotconf.
9268
9269 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9270
9271         * Do not compile anything in lib/silcsim/* if the SIM support
9272           is not enabled.  The tree should now compile without problems
9273           under cygwin.
9274
9275 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9276
9277         * Compiled the SILC under cygwin.  Compiled and tested briefly
9278           without problems.  More tests needed.  The SIMs didn't compile
9279           though.
9280
9281         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
9282
9283         * Fixed possible crash in silc_get_username in the
9284           lib/silcutil/silcutil.c.
9285
9286 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9287
9288         * Fixed a va_arg in silc/client_ops.c.
9289
9290         * Oops, RC5 routines were named AES and caused some problems
9291           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
9292
9293 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9294
9295         * Added new SilcIDIP structure into the lib/silccore/id.h and
9296           replaced the old `ip' fields from all SILC ID's to that type.
9297           This is a step towards IPv6 support.
9298
9299           The silc_id_get_len takes now the ID as an extra argument.
9300           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
9301           both IPv4 and IPv6 based ID's.
9302
9303           The affected files are lib/silccore/id.[ch] and other files
9304           around the tree using these routines.
9305
9306         * Removed the ID length arguments in server from various
9307           silc_server_send_notify_* routines -> they are not needed
9308           anymore.
9309
9310 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9311
9312         * Fixed memory leak in silc_encode_pem_file in the file
9313           lib/silcutil/silcutil.c.
9314
9315 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9316
9317         * Check minor version as well in the SKE.  Affected files are
9318           silcd/protocol.c and lib/silcclient/protocol.c.
9319
9320         * Added --identifier option to the server so that an identifier
9321           can be when creating the public key for the server.  Affected
9322           file is silcd/silcd.c.
9323
9324         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
9325           lib/silccrypt/silcpkcs.c.
9326
9327 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9328
9329         * Register default ciphers and stuff when using -C option with
9330           the server.  Affected file sildc/silcd.c.
9331
9332         * Put back the servers public key filename format, it is better
9333           than the new one.  For now, the client keys are saved with the
9334           new filename format.  The affected file silc/client_ops.c.
9335
9336         * Implemented the Cipher API for the rest of the ciphers that
9337           did not implement it or implemented it the wrong way.
9338
9339 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9340
9341         * Register default ciphers and stuff when using the -S option
9342           in the client.  Affected file silc/silc.c.  Same also when
9343           creating new key pair with -C option.
9344
9345 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9346
9347         * Fixed the silc_verify_public_key client operation function to
9348           save the public keys differently.  The fingerprint is now
9349           used as filename and not the hostname.  This way also the
9350           client keys are saved uniquely and not with hostnames.  The
9351           affected file is silc/client_ops.c.
9352
9353         * Trimmed the silc_hash_fingerprint function to remove extra
9354           whitespaces from the end of the fingerprint.  The affected
9355           file is lib/silccrypt/silchash.c.
9356
9357         * Updated TODO.
9358
9359         * Added silc_cipher_register_default function to register all
9360           default ciphers.  It can be used when configuration files
9361           does not exist and the application does not want any specific
9362           ciphers in any specific order.
9363
9364           The SilcDList is now used as silc_cipher_list dynamically
9365           allocated cipher list.  Removed the static list all together
9366           and now all ciphers must be allocated to the dynamic list.
9367           The silc_cipher_alloc routine was changed to check only the
9368           dynamic list.
9369
9370           All silc_cipher_* routines that used to return int returns
9371           now bool.
9372
9373           The affected files lib/silccrypt/silccrypt.[ch].
9374
9375         * The same thing was done to silc_hash_* as for silc_cipher_*
9376           routines.  Affected files lib/silccrypt/silchash.[ch].
9377
9378         * The same thing was done to silc_pkcs_* as for silc_cipher_*
9379           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
9380           Added also silc_pkcs_[un]register[_default] functions.
9381           Removed the data_context from the PKCS API.
9382
9383         * Added silc_hmac_register_default function to register default
9384           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
9385           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
9386           to unregister all hmacs at once.
9387
9388         * Register the default ciphers, hash functions, PKCSs and HMACs
9389           if client's configuration file does not exist.  The affected
9390           file silc/silc.c.
9391
9392         * The client did not load the hash functions from the SIM
9393           modules at all.  Added support for this.  Affected file is
9394           silc/clientconfig.c.
9395
9396         * When decoding public key with silc_pkcs_public_key_decode, check
9397           the supported algorithm only if PKCS are registered.  Affected
9398           file lib/silccrypt/silcpkcs.c.  The same was done with the
9399           silc_pkcs_private_key_decode.
9400
9401         * Fixed the SILC List routines to keep the list always in order.
9402           It used to change the list's order when traversing the list but
9403           not it preserves the order.  Affected file lib/trq/silclist.h.
9404
9405 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9406
9407         * Added the client library to use the SilcSocketConnection's
9408           reference counter (by silc_socket_dup) to prevent the bug that
9409           the socket object may be freed underneath async operation.
9410
9411         * The name resolv library checking fixes in the configure.in.pre.
9412           The patch by salo.
9413
9414         * Created new version of the protocol drafts for future
9415           development. The -03 drafts are the ones that will be changed
9416           in the trunk now and the -02 will remain as they are.
9417
9418         * Send list of CUMODE notifys to the router when announcing
9419           the channel users to the router.  Affected file silcd/server.c.
9420           If the router receiving channel founder CUMODE for a channel
9421           that already has channel founder it will send CUMODE notify
9422           to the sender to remove the channel founder rights from the
9423           announced client.  Affected file silcd/packet_receive.c.
9424
9425         * The CUMODE notify may now use Server ID as well as the entity
9426           who changes the mode.  Updated protocool specs.
9427
9428         * Updated INSTALL and README files.
9429
9430 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9431
9432         * New web pages in the http://silc.pspt.fi.  The pages was
9433           designed by salo.
9434
9435         * Updated CREDITS.
9436
9437 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9438
9439         * Implemented the [DenyConnectin] config section in the server.
9440           Added silc_server_config_denied_conn to check whether incoming
9441           connection is denied.  Affected file silcd/serverconfig.[ch].
9442
9443         * Do not check the ports when checking the incoming configuration
9444           data if the port is 0, meaning any.  Affected file is
9445           silcd/serverconfig.c.
9446
9447 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9448
9449         * Fixed buffer overflow in silc_string_compare in the file
9450           lib/silcutil/silcutil.c.
9451
9452         * Fixed double free in silc_server_command_leave in the file
9453           silcd/command.c.
9454
9455 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9456
9457         * Fixed the version checking in the server.  Affected file is
9458           silcd/protocol.c.
9459
9460 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9461
9462         * Fixed the configuration data fetching when accepting new
9463           connections in the server.  Affected file silcd/server.c.
9464
9465 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9466
9467         * Added `sender_entry' argument to the function
9468           silc_server_packet_relay_to_channel so that we can check
9469           whether some destination actually belongs to the same route
9470           the sender belongs (ie, we must not resend the packet to the
9471           sender).  Affected file silcd/packet_send.[ch].
9472
9473         * Added `servername' field to the SilcClientEntry in the server
9474           to hold the name of the server where client is from.  Affected
9475           file is silcd/idlist.h.
9476
9477 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9478
9479         * Moved the channel message encrypting in the router betwen
9480           router connections from silc_server_channel_message to the
9481           silc_server_packet_relay_to_channel since we want to check
9482           whether we have anybody channel before encrypting anything.
9483           Affected files silcd/packet_[receive/send].c.
9484
9485 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9486
9487         * Fixed the [AdminConnection] server config section to support
9488           multiple entries.  Affected file silcd/serverconfig.c.
9489
9490         * Added support into the server to check the validity of the
9491           incoming connection before executing any KE or authentication
9492           protocols.
9493
9494         * The connection configuration is now saved to the KE and
9495           connection auth protocol contexts and not fetched anymore in
9496           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
9497
9498         * The local hosts listenning address and port is also resolved
9499           now when starting the server.  We want to have the socket object
9500           to include the real address and port for the listener.  Added
9501           new function silc_net_check_local_by_sock into the files
9502           lib/silcutil/silcnet.[ch].
9503
9504         * Fixed a broadcast bug in server -> do not broadcast if we
9505           are standalone.
9506
9507         * Fixed a routing bug.  Do not route broadcast packets ever.
9508           Broadcast packets must be processed always and not routed since
9509           they may be destined to some other host than yourself and thus
9510           would get routed without no good reason.  Affected file is
9511           silcd/server.c.
9512
9513         * Added function silc_server_config_is_primary_route to check
9514           whether primary router connection has been configured (a router
9515           configuration that we are initiating).  If there is not, we
9516           will assume that there is only two routers in the SILC network
9517           and we will use the incoming router connection as our primary
9518           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
9519
9520         * Changed the order of the broadcasting.  Broadcast _after_ the
9521           packet has been processed not before.  Affected file is
9522           silcd/server.c.
9523
9524         * Fixed a [ClientConnection] parsing bug.  The port was never
9525           parsed correctly thus resulting to port 0.  Affected file
9526           silcd/serverconfig.c.
9527
9528         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
9529           argument and did not set the broadcast packet flag.  Affected
9530           file silcd/packet_send.c.  Fixed same bug in the function
9531           silc_server_send_notify as well.
9532
9533         * If we receive NEW_ID packet for our own ID in the server, ignore
9534           the packet.
9535
9536 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9537
9538         * Updated TODO.
9539
9540         * Removed the nickname from the Private Message Payload.
9541           Updated the code and the protocol specs.
9542
9543         * Updated protocol specs for submitting to the IETF.
9544
9545         * Tweaked the Random Number Generator a bit.  Affected file
9546           lib/silccrypt/silcrng.c.  Exported a new function
9547           silc_rng_[global]_add_noise which can be used to add more
9548           noise to the RNG.
9549
9550 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9551
9552         * Do not parse packets with different timeout when protocol
9553           is active -> may cause problem with rekey.  Affected file
9554           silcd/server.c.
9555
9556         * When server receives signoff notify it must not create
9557           new channel key if the client is on any channels since the
9558           sender of the signoff notify will create it.
9559
9560 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9561
9562         * Added printing of error messages during SKE protocol from the
9563           failure packet sent by server during SKE.  Affected file
9564           silc/client_ops.c.
9565
9566         * Removed the client's failure_callback handling with timeout
9567           and handle it immediately when received.
9568
9569         * The SKE library returned wrong type in SUCCESS and FAILURE
9570           packets.  They must be 32 bit MSB not 16 bit MSB.
9571
9572 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9573
9574         * Ok, rewrote the logic of the re-key and now it seems to work.
9575           I tested it on high traffic with frequent re-keys without
9576           problems.  Added hmac_receive (and renamed hmac to hmac_send)
9577           in SilcClientConnection in lib/silcclient/client.h and
9578           in SilcIDListData in silcd/idlist.h.  Also, removed the
9579           SilcPacketParserContext's cipher and hmac fields as they are
9580           not needed anymore and actually caused some problems when
9581           the ciphers and hmac's changed underneath the packet parser.
9582
9583 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9584
9585         * If re-key protocol is active then process the incoming packets
9586           synchronously since we must assure that icoming packets encrypted
9587           with the old key is processed before the new keys is set to
9588           use.  This is true other packets than for REKEY packets.
9589           Affected file silcd/server.c.  The same was done to client library
9590           as well, affected file lib/silcclient/client.c.
9591
9592 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9593
9594         * Fixed bug in client and server to accept the force send if
9595           the packet is send from silc_[server/client]_packet_process
9596           function.  Otherwise the packets are never delivered, oops.
9597
9598 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9599
9600         * Disable force sending of packets when REKEY protocol is active.
9601           We must assure that no packet is sent directly when rekey is
9602           performed.  All packets must be sent through packet queue.
9603           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
9604           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
9605           function is silc_[server/client]_packet_send_real to check
9606           the situation.
9607
9608         * Replaced the SIM paths from example config files to
9609           /usr/local/modules.  Also, make install creates now
9610           /usr/local/silc/logs directory to hold all the SILC server
9611           logs.
9612
9613 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9614
9615         * Made the configure.in.pre work on Solaris.  Patch by salo.
9616
9617         * Made all ciphers compatible with non-x86 machines.  Defined
9618           CBC mode macros into lib/silccrypt/ciphers_def.h.
9619
9620 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9621
9622         * Fixed the make install.
9623
9624 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9625
9626         * When MAC computation fails the silc_packet_decrypt returned 0
9627           even though it was supposed to return -1.  Fixed this.  The
9628           affected file is lib/silccore/silcpacket.c.
9629
9630         * Do not replace the config files in /etc/silc (in make install)
9631           if they already exist.  Affected file ./Makefile.am.
9632
9633         * Do not send re-key packets immediately but through packet queue.
9634           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
9635
9636         * Changed silc_net_check_host_by_sock to return FALSE if the
9637           IP/DNS could not be resolved.  Though, it returns the IP address
9638           now even if it could not resolve it (but returns also FALSE).
9639           Affected file lib/silcutil/silcnet.[ch].
9640
9641 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9642
9643         * Added silc_pkcs_decode_identifier to decode the public key's
9644           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
9645           Added also silc_pkcs_free_identifier.  Added also new context
9646           SilcPublicKeyIdentifier.
9647
9648         * Added -S option to the silc client.  It is used to dump the
9649           contents of the specified public key file.
9650
9651         * Changed the PKCS api to return the public key length when
9652           setting the public key.
9653
9654         * Fixed a fatal bug in the public and private key file loading.
9655           Affected file lib/silccrypt/silcpkcs.c.
9656
9657         * Execute the packet parsing for client with zero (0) timeout
9658           if the protocol is active.  Affected file silcd/server.c.
9659
9660 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9661
9662         * Made the key generation options to the silcd program.  Added
9663           -C option, equivalent to client's option.
9664
9665         * Added new [ServerKeys] config section to the server.  It
9666           configures the server's public and private key.
9667
9668         * Defined generic Public Key Payload into the protocol
9669           specification to send specific type of public keys and
9670           certificates.
9671
9672         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9673           public key or certificate.
9674
9675         * Implemented the GETKEY command to the server and to the
9676           client library and on user interface.
9677
9678 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9679
9680         * Made preliminary `make install' work.
9681
9682 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9683
9684         * Added SilcServerRekey context into silcd/idlist.h.
9685
9686         * Added the PFS support as defined in the specification to the
9687           SKE protocol.  Affected files lib/silcske/*.c.
9688
9689         * Added `ske_group' field to the SilcServerRekey context to hold
9690           the number of the SKE group that is used with PFS in re-key.
9691           Affected file silcd/idlist.h.
9692
9693         * Added PFS re-key support to the server.  Affected file is
9694           silcd/protocol.c.
9695
9696         * Added silc_protocol_cancel to cancel execution of the next
9697           state of the protocol.  Affected file is
9698           lib/silccore/silcprotocol.[ch].
9699
9700         * Added the re-key support with and without PFS to the client
9701           library.  Re-key is performed once in an hour, by default.
9702
9703           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9704           Added silc_client_rekey_callback and silc_client_rekey_final.
9705           Affected files are lib/silcclient/protocol.[ch] and
9706           lib/silcclient/client.[ch].
9707
9708         * Removed the `hmac_key' and `hmac_key_len' fields from the
9709           SilcClientConnection structure; not needed.  Affected file is
9710           lib/silcclient/client.h.
9711
9712         * Updated TODO.
9713
9714 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9715
9716         * Do not ask whether user wants to use the negotiated private key
9717           for private messages, just use it.  Affected file is
9718           silc/local_command.c.
9719
9720         * Added `send_enc_key' and `enc_key_len' fields to the
9721           SilcIDListData structure since they are needed in the re-key
9722           phase.  Affected file is silcd/idlist.[ch].
9723
9724         * Implemented the simple re-key protocol into the server.
9725           Affected files silcd/server.c and silcd/protocol.[ch].  The
9726           re-key will be performed once in an hour, by default.
9727
9728           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9729           Added silc_server_rekey, silc_server_rekey_callback and
9730           silc_server_rekey_final.
9731
9732         * Removed Tunneled flag from the protocol.  Updated the code
9733           and the specifications.
9734
9735         * Adde `pfs' field to the SilcIDListData to indicate whether
9736           the PFS is to be performed in the re-key.  Affected file is
9737           silcd/idlist.h.
9738
9739 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9740
9741         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9742           int64 of at least the xintXX size.  If void * is less that 4
9743           bytes uint32 * will be used.  Defined bool as boolean.
9744
9745         * Changed _ALL_ unsigned long and unsigned int to uint32,
9746           unsgined short to uint16 in the source tree.
9747
9748         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9749           not handle clients that has entry->data.registered == FALSE.
9750           They are not in the network anymore.  Affected file is
9751           silcd/server.c.
9752
9753 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9754
9755         * Implemented the sending of the SERVER_SIGNOFF notify in the
9756           server.  Affected file is silcd/server.c.
9757
9758         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9759           Added also silc_notify_payload_encode_args into the
9760           lib/silccore/silcnotify.[ch].
9761
9762         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9763           Affected file silcd/packet_receive.c.
9764
9765         * Implemented the SERVER_SIGNOFF notify handling in the client
9766           library.  Affected file lib/silcclient/client_notify.c.  Also,
9767           implemnted the printing of the SERVER_SIGNOFF info to the
9768           application.  Affected file silc/client_ops.c.
9769
9770         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9771           if the deleting was successful.  Affected file silcd/idlist.[ch].
9772
9773         * Added support for public key authentication in the connection
9774           authentication protocol in the client library.  Affected file
9775           lib/silcclient/protocol.c.
9776
9777         * Changed the server's silc_idlist_get_clients_by_* interface
9778           to support already allocated array so that new entries may be
9779           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9780           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9781           and command replies.
9782
9783         * All command reply functions in the server now calls the
9784           pending command callback even if error occured.  This way the
9785           error will be delivered to the client as well.  Affected files
9786           silcd/command.c and silcd/command_reply.c.
9787
9788         * Fixed INFO command to return local server's info if no server
9789           was provided.  Affected file lib/silcclient/command.c.
9790
9791         * Removed RESTART command for good.  Updated the code and the
9792           protocol specs.
9793
9794         * Rewrote parts of the task system.  It is a bit simpler now.
9795           Removed unsued task priorities. The affected files are
9796           lib/silcutil/silctask.[ch].
9797
9798 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9799
9800         * Moved the USERS printing from the library to the application.
9801           Affected files lib/silcclient/command.c and silc/client_ops.c.
9802
9803 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9804
9805         * Updated TODO.
9806
9807         * Added channel key re-key support.  The re-key is perfomed
9808           only by the router and is done once in an hour.  Added `rekey'
9809           field to the SilcChannelEntry in the server.  Affected files
9810           silcd/server.c and silcd/idlist.h.
9811
9812         * Added silc_task_unregister_by_context into the file
9813           lib/silcutil/silctask.[ch].
9814
9815 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9816
9817         * Added SILC_UMODE_GONE mode to indicate when the client is not
9818           present in the SILC network.  Added also support to the local
9819           command AWAY that will set this mode.  Added support of showing
9820           "xxx is gone" in WHOIS command.  The USERS command shows the
9821           gone status as well.
9822
9823         * Fixed setting server and router operator privileges in the
9824           server's UMODE command.  Affected file silcd/command.c.
9825
9826         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9827           new KE payload is equivalent to the old KE2 payload.
9828
9829           Cleaned up the SKE Start Payload parsing.  It now uses the
9830           simple buffer unformatting to do the parsing.  A lot faster
9831           now.
9832
9833           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9834           to the SKE that is used to indicate whether both of the SKE
9835           parties should perform authentication.  By default only the
9836           responder performs authentication.  By setting this flag also
9837           the initiator must do authentication.  By default it is unset
9838           since in normal SKE case, client to server connection, only
9839           the responder should do authentication.  When doing SKE between
9840           two clients both should perform authentication.  Updated the
9841           code and the protocol specs.
9842
9843         * A little fix to IDENTIFY command in the server.  Search the
9844           client first by hash not nickname.  Affected file is
9845           silcd/command.c.
9846
9847         * Fixed the silc_client_close_connection to support closing
9848           the client to client connections wihtout deleting too much
9849           data.  Affected file lib/silcclient/client.c.
9850
9851         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9852           are received if protocol used to be active but is not anymore
9853           the application would crash due to NULL pointer dereference.
9854           Affected files silcd/server.c and lib/silcclient/client.c.
9855
9856         * Added `hash' field to the SilcClientConnection to include
9857           the hash function negotiated in the SKE protocol.
9858
9859         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9860           to set the channel founder authentication data.  A client can
9861           claim the founder rights later by providing the authentication
9862           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9863           This way the channel founder can regain the channel founder
9864           privileges even it is left the channel.  This works only on
9865           local server and the client must be connected to the same
9866           server to be able to regain the founder rights.  Updated the
9867           protocol specs accordingly.
9868
9869           Added support to the CMODE command in the client to set the
9870           founder auth data.  Read the README to see how to set it.
9871
9872           Added support to the CUMODE command to claim the founder
9873           rights.  Read the README to see how to do it.
9874
9875           Added support for the founder authentication to the Channel
9876           Entry in the server.  Affected file silcd/idlist.h.
9877
9878           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9879           server's CMODE command.  Affected file silcd/command.c.
9880
9881         * Added the following new functions into lib/silccore/silcauth.[ch]:
9882           silc_auth_get_method and silc_auth_get_data.
9883
9884         * The server now saves the remote hosts public key to the
9885           SilcIDListData pointer.  Affected file silcd/protocol.c.
9886
9887         * The normal server now does not remove the channel entry from
9888           the cache if the founder authentication data is set.  It used
9889           to remove it if the founder was the last one on the channel on
9890           the server and left the channel.  The auth data is saved and
9891           if the channel is re-joined later the old entry is used with
9892           the old auth data.  Affected files silcd/command_reply.c and
9893           silcd/server.c.
9894
9895         * Removed the `pkcs' field from the SilcIDListData structure
9896           in the server; it is not used.  Affected file silcd/idlist.h.
9897
9898 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9899
9900         * Fixed packet processing on slow links.  Partial packets were
9901           never re-processed because the incoming data buffer was cleared
9902           by the application.  Application must not directly clear the
9903           sock->inbuf, the packet processing routines handle it.  Fixed
9904           this in client library and in server.
9905
9906 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9907
9908         * Fixed the WHOIS and IDENTIFY send reply function to really
9909           check whether to send list or just one entry.  Affected file
9910           silcd/command.c.
9911
9912         * Cleaned up the LEAVE command's channel key distribution.  The
9913           affected file silcd/command.c.
9914
9915         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9916           can enforce the channel mode as well.  In that case the ID
9917           includes the ID of the server.  The code now enforces the
9918           mode change if the router have different mode than the server.
9919
9920         * The notify client operation with CMODE_CHANGE notify can now
9921           return NULL client_entry pointer if the CMODE was not changed
9922           by client.  Application must check for this.
9923
9924         * Added <Server ID> argument to INFO command to support server
9925           info fetching by Server ID.
9926
9927         * Added silc_server_announce_get_channel_users to get assembled
9928           packets of channel users of the specified channel.  Affected
9929           file silcd/server.[ch].
9930
9931         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9932           was freed underneath the ID Cache.
9933
9934         * Re-announce clients when the server received CHANNEL_CHANGE
9935           notify from the router.  Affected file silcd/packet_send.c.
9936
9937 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9938
9939         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
9940           crashed since it did not handle the fact that there is no cipher
9941           called "3" and didn't check the error condition.  Now fixed.
9942
9943         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
9944           flag.  It can be used to send message requests.
9945
9946 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9947
9948         * Implemented the RESTART command in the client.
9949
9950         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
9951           notice type messages.  Added notice printing to the user
9952           interface.
9953
9954         * The channel keys are not re-generated if the channel's mode
9955           is PRIVKEY, ie private key on the channel exists.  Affected
9956           files silcd/server.c and silcd/command.c.
9957
9958         * Fixed a little bug in channel message delivery when channel
9959           private keys are set in the server.  Affected file is
9960           silcd/packet_send.c.
9961
9962         * Changed the setting on channel->on_channel = TRUE from the
9963           silc_client_save_channel_key to the JOIN command reply.  The
9964           key payload is not received if the private channel key is set.
9965           Affected file lib/silcclient/command_reply.c and the
9966           lib/silcclient/client_channel.c.
9967
9968         * When the CMODE_CHANGE notify is sent and the channel private
9969           key mode is removed the channel key must be re-generated in
9970           other cells as well.  Added this support for the router in the
9971           silcd/packet_receive.c.
9972
9973         * Added new local command NOTICE to send notice message on
9974           channel.  Affected file silc/local_command.[ch].
9975
9976 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9977
9978         * Added new local command ME to the client.  It is used to send
9979           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
9980           some action.  Affected file silc/local_command.[ch].
9981
9982         * Changed channel_message and private_message client operations
9983           to deliver the message flags to the application.  Added also
9984           the `flags' arguments to the silc_client_send_channel_message
9985           and silc_client_send_private_message functions.  Affected file
9986           silcapi.h.
9987
9988 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9989
9990         * Redefined the Private Message Payload to support private message
9991           keys and to support the new private message flags.  Updated
9992           the protocol specs.  Flags makes it possible to have for example
9993           CTCP style messages.
9994
9995         * Added new type SilcPrivateMessagePayload and defined an API
9996           for it in the lib/silcclient/silcprivate.[ch].
9997
9998         * Tested private message private keys successfully.  Tested the
9999           private message key set, unset and list commands with the new
10000           KEY command.
10001
10002         * Redefined the Channel Message Payload to include the channel
10003           message flags (equal with private message flags) to support
10004           for example CTCP style messages.
10005
10006         * Defined some of the message (for channel and private message)
10007           flags.  Updated the protocol specs and added the flags to the
10008           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
10009
10010 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10011
10012         * Added SilcKeyAgreementStatus type to the key agreement routines
10013           to indicate the current status and error if one occured.
10014           The status types are defined in the lib/silcclient/silcapi.h.
10015
10016         * Added new local command KEY that is used to set and unset private
10017           keys for channels, set and unset private keys for private messages
10018           with remote clients and to send key agreement requests and
10019           negotiate the key agreement protocol with remote client.  The
10020           key agreement is supported only to negotiate private message keys,
10021           it currently cannot be used to negotiate private keys for channels,
10022           as it is not convenient for that purpose.
10023
10024         * Fixed a minor pending callback setting bug in the function
10025           silc_client_get_client_by_id_resolve, now the function works.
10026           Affected file lib/silcclient/idlist.c.
10027
10028         * Added function silc_net_get_local_port to get local bound
10029           port by socket.  Added to lib/silcutil/silcnet.[ch].
10030
10031         * Added `sockets' and `sockets_count' fields to the SilcClient
10032           object.  They hold the sockets of the listenning sockets in
10033           the client.  Listenning sockets may be for example the key
10034           agreement server.  Affected file lib/silcclient/client.[ch].
10035           Added functions the silc_client_add_socket and the
10036           silc_client_del_socket.  They are exported to the application
10037           as well.
10038
10039         * Added ~./silc/clientkeys to support other client's public keys.
10040
10041         * Renamed verify_server_key client operation to verify_public_key
10042           and added one argument to indicate the type of the connection
10043           (server, client etc.).
10044
10045 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10046
10047         * Added silc_server_connection_auth_request to handle the
10048           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
10049           silcd/packet_receive.[ch].
10050
10051         * Added silc_server_send_connection_auth_request into the
10052           silcd/packet_send.c to send the connection auth request packet.
10053
10054         * Cleaned up the silcd/protocol.c a bit and fixed some memory
10055           leaks.
10056
10057         * Fixed the public key authentication in responder side in the
10058           server.  The `auth_data' pointer includes the SilcPublicKey
10059           not the path to the public key.  Affected file silcd/protocol.c.
10060
10061         * Implemented the public key authentication in the initiator side
10062           in the server.  Affected file silcd/protocol.c.
10063
10064         * Removed the [RedirectClient] config section from the server
10065           configuration.  Is not needed and I don't want to implement it.
10066
10067 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10068
10069         * Cleaned up the CMODE command in the server.  It now works
10070           correctly and supports all the modes defined in the protocol.
10071           Affected file is silcd/command.c.
10072
10073         * Added `hmac_name' field to the SilcChannelEntry in the server
10074           to hold the default HMAC of the channel.  It can be set when
10075           creating the channel (with JOIN command).  Affected files
10076           silcd/idlist.[ch].
10077
10078         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
10079           type to indicate the change of the current cipher and hmac
10080           on the channel.  Client can safely ignore the <cipher> argument
10081           (if it chooses to do so) since the CHANNEL_KEY packet will
10082           force the channel key change anyway.  The <hmac> argument is
10083           important since the client is responsible of setting the new
10084           HMAC and the hmac key into use.
10085
10086         * Fixed the CMODE command in the client library as well.
10087
10088         * Tested CMODE command in router environment successfully.
10089
10090 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10091
10092         * Show the version of the remote client (or server) when connecting
10093           to the server.  It is logged to the log file.  Affected file
10094           is silcd/protocol.c.
10095
10096         * Fixed the KILLED notify handling in the client library.  The
10097           client must be removed from all channels when receiving the
10098           KILLED notify.
10099
10100           Also, do not remove the client entry when giving the KILL
10101           command but when the KILLED notify is received.
10102
10103         * Removed silc_idlist_find_client_by_nickname from the server.
10104           Not needed anymore.  Affected files silcd/idlist.[ch].
10105
10106         * Implemented the CHANNEL_CHANGE notify type handling to the
10107           server.  Affected file silcd/server.c.
10108
10109         * Updated TODO.
10110
10111 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10112
10113         * Added silc_server_send_notify_invite to send the INVITE
10114           notify between routers.
10115
10116         * Implemented the INVITE command correctly to the server.
10117
10118         * Implemented the INVITE notify type handling in the server.
10119
10120         * Implemented the INVITE command to the client library and on the
10121           user interface.
10122
10123 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10124
10125         * Added function silc_server_get_client_resolve to find the
10126           client entry by ID from all ID lists and then resolve it
10127           (using WHOIS) if it cannot be found.  Affected file is
10128           silcd/server.[ch].
10129
10130 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10131
10132         * Implemented the BAN command to the client library.
10133
10134         * The JOIN command in the server now checks the invite list
10135           and the ban list.
10136
10137         * Changed the silc_command_reply_payload_encode_va and the
10138           silc_command_payload_encode_va to support that if argument is
10139           NULL it ignores and checks the next argument.  Affected file
10140           lib/silccore/silccommand.c.
10141
10142         * Added silc_server_send_notify_ban to send the BAN notify
10143           type between routers.
10144
10145         * Chaned the silc_notify_payload_encode to support that if
10146           argument is NULL it ignores and checks the next argument.
10147           Affected file lib/silccore/silcnotify.c.
10148
10149         * Tested ban lists in router environment successfully.
10150
10151 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10152
10153         * Implemented BAN command to the server, in silcd/command.[ch].
10154
10155         * Removed the BAN and INVITE_LIST modes from the CMODE command
10156           in the server code.
10157
10158         * Added function silc_string_match to regex match two strings.
10159           Affected files lib/silcutil/silcutil.[ch].
10160
10161 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10162
10163         * Redefined parts of the SilcChannelEntry in the server to support
10164           the new ban and invite lists.
10165
10166 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10167
10168         * Redefined the INVITE command.  The same command can be used to
10169           invite individuals to the channel but also to manage the invite
10170           list of the channel (to add to and remove from the invite list).
10171           Updated the protocol specs.
10172
10173         * Added new command SILC_COMMAND_BAN that can be used to manage
10174           the ban list of the channel.  Updated the protocol specs.
10175
10176         * Removed the channel modes: the SILC_CMODE_BAN and the
10177           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
10178           in the CMODE command.  The equivalent features are now available
10179           using INVITE and BAN commands.  Updated the protocol specs.
10180
10181         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
10182           in the network about change in the current ban list.  The notify
10183           type is not used by the client.
10184
10185         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
10186           support the invite lists.
10187
10188 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10189
10190         * Added new function silc_string_regexify that converts string
10191           including wildcard characters into regex string that can
10192           be used by the GNU regex library.  Added into the file
10193           lib/silcutil/silcutil.[ch].
10194
10195           Added silc_string_regex_combine to combine to regex strings
10196           into one so that they can be used as one regex string by
10197           the GNU regex library.  Added into the file
10198           lib/silcutil/silcutil.[ch].
10199
10200           Added silc_string_regex_match to match two strings.  It returns
10201           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
10202
10203 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10204
10205         * Imported GNU regex to the soruce tree into lib/contrib.
10206           Fixed some compiler warning from the regex.c.
10207
10208 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10209
10210         * Fixed MOTD command in the server to work in router environment.
10211
10212         * Fixed the MOTD command in the client library to support
10213           the server argument in the command.
10214
10215         * Added `nickname_len' argument to the silc_idlist_add_client
10216           in the server, as the `nickname' argument may be binary data
10217           (it may be hash).
10218
10219         * Added silc_idlist_get_channels to return all channels from
10220           the ID list.
10221
10222         * Implemented LIST command to the server.  Affected file is
10223           silcd/command.c.
10224
10225         * Implemented the LIST command to the client library and on the
10226           user interface.
10227
10228         * Added [<user count>] argument to the LIST command reply.
10229           With private channels the user count is not shown.
10230
10231         * Updated TODO and README.
10232
10233 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10234
10235         * The client entry's data.registered must be TRUE even with
10236           global client entry on global client list.  The data.registered
10237           is used to check whether the client is anymore in the network,
10238           for example with WHOWAS command so it must be valid.
10239
10240         * Fixed the WHOWAS command in the server.  It now actually works
10241           in router environment.  Added function into silcd/command_reply.c
10242           silc_server_command_reply_whowas_save.
10243
10244         * Added silc_idlist_purge function to the silcd/idlist.c
10245           to periodically purge the ID Cache.
10246
10247         * Fixed INFO command in the server.  It works now in router
10248           environment.  Added <server name> argument to the INFO command
10249           reply.  Updated the protocol specs.
10250
10251         * Fixed minor bug in silc_idcache_purge to not purge if the
10252           expire value is zero.
10253
10254         * Fixed various bugs in WHOIS and IDENTIFY command handling as
10255           they were buggy because of the WHOWAS information.
10256
10257         * Fixed local command MSG to handle the async resolving of
10258           the remote client properly.  It used to fail the first MSG.
10259           Affected file silc/local_command.c.
10260
10261         * Added `data_len' field to SilcIDCache context.
10262
10263 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10264
10265         * Update TODO.  Todo in commands in the server.
10266
10267 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10268
10269         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
10270           used by routers as broadcast packet to inform other routers
10271           about the changed user mode.
10272
10273           Implemented the notify handling in the server.  Affected file is
10274           silcd/packet_receive.c.  Added the function
10275           silc_server_send_notify_umode to the silcd/packet_send.[ch].
10276
10277         * Added new generic Channel Payload and deprecated the New Channel
10278           Payload.  The New Channel Payload is now the generic Channel
10279           Payload.
10280
10281         * Added new argument `mode' to the silc_server_send_new_channel
10282           as it is required in the Channel Payload now.
10283
10284         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
10285           and created a new and real SilChannelPayload to represent the
10286           new generic Channel Payload.  Implemented the encode/decode
10287           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
10288
10289         * Added silc_server_get_client_channel_list to return the list
10290           of channels the client has joined for WHOIS command reply.
10291           Affected file silcd/server.[ch].
10292
10293         * Implemented the channel list sending in the WHOIS command reply
10294           in server and in the client.
10295
10296           Implemented the channel list displaying on the user interface
10297           as well.  Affected file silc/client_ops.c.
10298
10299         * Added silc_channel_payload_parse_list to parse list of Channel
10300           Payloads.  It returns SilcDList list of SilcChannelPayloads.
10301           Client for example can use this function to parse the list of
10302           channels it receives in the WHOIS command reply.  The caller
10303           must free the list by calling silc_channel_payload_list_free.
10304           Affected files lib/silccore/silcchannel.[ch].
10305
10306 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10307
10308         * Added one new argument <user mode> to the WHOIS command reply
10309           to return the mode of the user in SILC.  Updated the protocol
10310           specs.
10311
10312           Implemented it to the server and client.
10313
10314 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10315
10316         * Fixed the mode printing on the user interface on joining.
10317           Affected file silc/client_ops.c.
10318
10319         * Implemented the UMODE command and user modes in general to the
10320           client library and to the user interface.
10321
10322         * Implemented the UMODE command to the server.
10323
10324         * The server now sends UNKNOWN_COMMAND error status if client sends
10325           unknown command.  Affected file silcd/command.c.
10326
10327         * All server commands now handle the command identifier the right
10328           way when sending the command reply to the client.  The client can
10329           use to identify the command replies with the identifier.
10330
10331 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10332
10333         * Added silc_server_get_client_route to resolve the route to
10334           the client indicated by the client ID.  Affected file is
10335           silcd/server.[ch].
10336
10337         * Added silc_server_relay_packet as general function to relay
10338           packet to arbitrary destination.  This deprecates functions
10339           like _send_private_message_key, _relay_notify etc.  Affected
10340           file is silcd/packet_send.[ch].
10341
10342           Removed silc_server_send_key_agreement,
10343           silc_server_send_private_message_key and
10344           silc_server_packet_relay_notify functions from the file
10345           silcd/packet_send.[ch].
10346
10347         * Updated TODO.
10348
10349         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
10350           server.  Affected file silcd/packet_receive.[ch].
10351
10352         * Implemented the KILL command to the client.  Implemented the
10353           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
10354           Affected files lib/silcclient/command[_reply].c and
10355           lib/silcclient/client_notify.c.  Implemented the KILL notify
10356           printing in the user inteface.
10357
10358         * Fixed a lot silc_parse_nick memory leaks from the client
10359           library in the file lib/silcclient/command.c.
10360
10361         * Changed the silc_server_send_notify_on_channels's `sender'
10362           argument from SilcSocketConnection to SilcClientEntry to
10363           check the sender as entry and not as connection object and not
10364           to send to the client provided as argument.  The affected file
10365           is silcd/packet_send.[ch].
10366
10367         * The notify packets that are destined directly to the client used
10368           to not to be processed by the server.  Now changed that and the
10369           server processes all notify packets.  After relaying the packet
10370           to the client the notify packet is processed in the server.
10371
10372         * The silc_server_free_client_data now checks whether there is
10373           pending outgoing traffic for the client and purges the data to
10374           the network before removing the client entry.
10375
10376 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10377
10378         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
10379           an client is killed from the SILC Network.  Updated the protocol
10380           specs accordingly.
10381
10382           Added new function silc_server_send_notify_killed to the
10383           silcd/packet_send.[ch].
10384
10385         * Added function silc_server_packet_relay_notify to relay notify
10386           packets that are destined directly to a client.  In this case
10387           the server does not process the notify packets but merely relays
10388           it to the client.  Affected file silcd/packet_send.[ch].
10389
10390           Added also silc_server_packet_process_relay_notify to check
10391           whereto relay the notify.  Affected file is
10392           silcd/packet_receive.[ch].
10393
10394         * Implemented the KILL command to the server.
10395
10396         * Updated TODO.
10397
10398         * Added the backup schema desgined last fall to the protocol
10399           specs for everyone to see.  The specification is in the
10400           *-spec-xx.txt draft and the packet type definitions for the
10401           backup routers is in *-pp-xx.txt draft.  Thusly, added also
10402           new packet type SILC_PACKET_CELL_ROUTERS.
10403
10404         * A big security problem in the implementation discovered.  The
10405           signoff of an client did not cause new channel key generation
10406           which it of course should've done.  The channel keys must be
10407           always re-generated when client leaves (or signoffs) the channel.
10408           The silc_server_remove_from_channels funtion now handles
10409           the channel key re-generation.
10410
10411         * Added `sender' argument to the silc_server_send_notify_on_channels
10412           to not to send the client provided as argument.  Affected file
10413           silcd/packet_send.[ch].
10414
10415 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10416
10417         * Implemented OPER and SILCOPER commands into the server and
10418           the client library.
10419
10420         * Added silc_auth_verify and silc_auth_verify_data to verify
10421           the authentication directly from the authentication payload.
10422           It supports verifying both passphrase and public key based
10423           authentication.  Affected file lib/silccore/silcauth.[ch].
10424
10425         * Added `hash' field to the SilcIDListData structure.  It is the
10426           hash negotiated in the SKE protocol.  Affected file is
10427           silcd/idlist.[ch].
10428
10429         * Slight redesigning of the SilcAuthPayload handling routines.
10430           Do not send SilcPKCS but SilcPublicKey as argument.
10431
10432         * Implemented the public key authentication support to the
10433           serverconfig.  The public key is loaded from the provided path
10434           and saved as authentication data to void * pointer.  Thus,
10435           changed the unsigned char *auth_data to void *auth_data;
10436
10437         * Fixed SHUTDOWN command to send the reply before the server
10438           is shutdown. :)  Affected file silcd/command.c.
10439
10440         * Fixed fatal bug in CONNECT command.  The hostname was invalid
10441           memory and server crashed.  Affected file silcd/command.c.
10442
10443         * Fixed fatal bug in CLOSE command.  The server_entry became
10444           invalid but was referenced later in the command.  Affected file
10445           silcd/command.c.
10446
10447 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10448
10449         * Fixed fatal bug in failure packet handling.  Server ignored
10450           the failure and thus crashed when it came.
10451
10452         * Updated TODO.
10453
10454 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10455
10456         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
10457           that the command may be executed only once in (about) 2 seconds.
10458           The old SILC_CF_LAG flag is same but allows command bursts up
10459           to five before limiting.
10460
10461           Added the support for CF_LAG and CF_LAG_STRICT flags to the
10462           server code.  Various commands now includes the CF_LAG_STRICT
10463           flag to disallow any kind of miss-use of the command.
10464
10465         * Fixed the silc_buffer_unformat to not to allocate any data
10466           if the length of the data is zero.  It used to allocate the
10467           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
10468
10469 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10470
10471         * Changed the format of AdminConnection configuration section
10472           in the server.  Added username of the admin to the format.
10473           Affected files silcd/serverconfig.[ch].
10474
10475           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
10476           to return admin configuration data by host, username and/or
10477           nickname.
10478
10479 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10480
10481         * Implemented WHOWAS command to the server.  Added the functions:
10482
10483           silc_server_command_whowas_parse,
10484           silc_server_command_whowas_send_reply,
10485           silc_server_command_whowas_from_client and
10486           silc_server_command_whowas_from_server
10487
10488         * Added <Client ID> argument to the WHOWAS command reply.  Updated
10489           the protocol specs accordingly.
10490
10491         * Implemented WHOWAS command and command_reply to the client
10492           library.
10493
10494           Implemented the WHOWAS printing on the user interface.
10495
10496 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10497
10498         * Added new argument to the WHOWAS command reply, the real name.
10499           It is an optional argument.  Updated the protocol specs.
10500
10501         * Added SilcIDCacheDestructor callback that is registered when
10502           the SilcIDCache is allocated.  The callback is called when
10503           an cache entry in the ID Cache expires, or is purged from the
10504           cache.  Added into lib/silccore/idcache.[ch].
10505
10506           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
10507           to destruct the client entries when the cache entry expires.
10508           Other ID Cache's in server and in the client library ignores
10509           the destructor.
10510
10511         * If the ID Cache entry's `expire' field is zero then the entry
10512           never expires.  Added boolean `expire' argument to the
10513           silc_idcache_add function in the lib/silccore/idcache.[ch].
10514           If it is TRUE the default expiry value is used.
10515
10516         * Added silc_server_free_client_data_timeout that is registered
10517           when client disconnects.  By default for 5 minutes we preserve
10518           the client entry for history - for WHOWAS command.
10519
10520 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10521
10522         * Added support to the server to enforce that commands are not
10523           executed more than once in 2 seconds.  If server receives
10524           commands from client more frequently, timeout is registered
10525           to process the commands.  Affected file silcd/command.c.
10526           Added new function silc_server_command_process_timeout.
10527
10528         * Changed NICK_NOTIFY handling in client library to check that
10529           if the client's nickname was changed, so there is no need to
10530           resolve anything from the server.
10531
10532         * Removed error printing from the WHOIS and IDENTIFY commands.
10533           If error occurs then it is ignored silently in the client library.
10534           The application, however, may map the received error to
10535           human readable error string.  The application currently maps
10536           the NO_SUCH_NICKNAME error to string.
10537
10538         * Made the command status message public to the application.  Moved
10539           them from lib/silcclient/command_reply.c to
10540           lib/silcclient/command_reply.h.  The application can map the
10541           received command status to the string with the
10542           silc_client_command_status_message function.
10543
10544         * Added check to the server to check that client's ID is same
10545           as the Source ID in the packet the client sent.  They must
10546           match.
10547
10548 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10549
10550         * Added dist-bzip hook to the Makefile.am to make bzip2
10551           compressed distributions.
10552
10553 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10554
10555         * Server now enforces the maximum length for the nickname and
10556           the channel as protocol specification dictates.  128 bytes for
10557           nickname and 256 bytes for channel name.
10558
10559         * Moved the WHOIS printing to the application.  The client libary
10560           does not print out the WHOIS information anymore, the application
10561           must do it.  Renamed silc_client_command_reply_whois_print to
10562           the silc_client_command_reply_whois_save.
10563
10564           The client's idle time is also sent to the application now, and
10565           the idle is shown on screen.
10566
10567         * Added silc_client_command_reply_identify_save to save the
10568           received IDENTIFY entries.
10569
10570         * Do not check for channel private keys in message sending and
10571           reception if the channel does not have the PRIVKEY mode set.
10572           Affected file lib/silclient/client_channel.c.
10573
10574 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10575
10576         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
10577           just surfaced after chaning the JOIN procedure.
10578
10579 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10580
10581         * Added silc_client_get_clients_by_list to get client entries
10582           from Client ID list, that is returned for example by JOIN
10583           and USERS command replies.  The application should use this
10584           function for example when JOIN command reply is received to
10585           resolve the clients already on the channel (library does not
10586           do that anymore as USERS command reply is not used in the JOIN
10587           procedure anymore).  Affected files lib/silcclient/silcapi.h and
10588           lib/silcclient/idlist.c.
10589
10590         * JOIN command reply and USERS command reply returns now SilcBuffer
10591           pointers instead of unsigned char pointers when returning
10592           the client list and mode list.
10593
10594         * Added <Client ID> argument to the JOIN command reply, mainly
10595           for the server to identify for which client the command was
10596           originally sent.  Updated protocol specs accordingly.
10597
10598         * Added SilcDlist private_key pointer to the SilcChannelEntry
10599           in the client to support the channel private keys.  Affected
10600           file is lib/silcclient/idlist.h.
10601
10602         * Added SilcChannelPrivateKey argument to the function
10603           silc_client_send_channel_message so that application can choose
10604           to use specific private ke if it wants to.  If it is not provided,
10605           the normal channel key is used, unless private keys are set.
10606           In this case the first (key that was added first) is used
10607           as the encryption key.
10608
10609         * Implemented the support for channel private key handling.
10610           Implemented the following functions:
10611
10612           silc_client_add_channel_private_key,
10613           silc_client_del_channel_private_keys,
10614           silc_client_del_channel_private_key,
10615           silc_client_list_channel_private_keys and
10616           silc_client_free_channel_private_keys
10617
10618           Affected file lib/silcclient/client_channel.c.
10619
10620         * Added the support for the private keys in the channel message
10621           sending and encryption and in the message reception and
10622           decryption.  Affected funtions are
10623           silc_client_send_channel_message and silc_client_channel_message.
10624
10625 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10626
10627         * Added SKE's key verify callback to the client library's
10628           KE protocol context. Affected files lib/silcclient/protocol.[ch].
10629
10630         * Removed the statement that server (or router) must send USERS
10631           command reply when joining to the channel so that the client
10632           knows who are on the channel.  Instead, the client list and
10633           client's mode list is now sent in the JOIN command reply to the
10634           client who joined channel.  This is better solution.
10635
10636         * Added function silc_server_get_users_on_channel and function
10637           silc_server_save_users_on_channel to the silcd/server.[ch].
10638
10639         * Removed function silc_server_command_send_users from the
10640           silcd/command.c.
10641
10642         * Do not show topic on the client library anymore.  The topic is
10643           sent in the command reply notify to the application and the
10644           application must show the topic now.
10645
10646 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10647
10648         * Added client searching by nickname hash into the IDENTIFY and
10649           WHOIS commands in the server as they were clearly missing from
10650           them.  Affected file is silcd/command.c.
10651
10652         * Fixed a bug in private message receiving in the client library.
10653           The remote ID was freed and it wasn't supposed, now it is
10654           duplicated.
10655
10656 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10657
10658         * Minor fix to the channel payload; allocate the data area, as it
10659           needs to be of specific length.
10660
10661         * If the key agreement port is zero then the operating
10662           system will define the bound port.  Affected files are
10663           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10664
10665         * Added new function silc_channel_payload_decrypt into the file
10666           lib/silccore/silcchannel.[ch].
10667
10668         * Moved the channel message etc, check from silc_packet_decrypt
10669           to applications.  The library calls now a generic
10670           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10671           when the packet is either normal or special.  This was done to
10672           allow more wide range of checking that was not allowed when
10673           the code was in library.  Now applications can do virtually any
10674           checks to the packet and return to the library the decision how
10675           the packet should be processed.  Affected files are
10676           lib/silccore/silcpacket.[ch].
10677
10678           Added silc_server_packet_decrypt_check to the server and
10679           silc_client_packet_decrypt_check to the client library.
10680
10681         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10682           to send with specified source and destination information.
10683
10684         * Channel message delivery between routers was broken after the
10685           channel key distribution was fixed earlier.  The channel key
10686           was used be to distributed to other routers as well which is not
10687           allowed by the protocol.  Now this is fixed and channel keys
10688           really are cell specific and the channel message delivery between
10689           routers comply with the protocol specification.
10690
10691         * Fixed various commands in server to check also the global list
10692           for the channel entry and not just the local list.  The affected
10693           file silcd/command.c.
10694
10695 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10696
10697         * Added assert()s to buffer formatting and unformatting routines
10698           to assert (if --enable-debug) when error occurs.  Affected
10699           file: lib/silcutil/silcbuffmt.c.
10700
10701         * Changed to auto-reconnect to check whether the remote host is
10702           router and register the re-connect timeout if it is.  It used
10703           to check that whether we are normal server, but router must do
10704           auto-reconnect with another router as well.  Affected file
10705           silcd/server.c.
10706
10707         * Removed the [<key len>] option from CMODE command as the cipher
10708           name decides the key length, nowadays.  See the defined ciphers
10709           from the protocol specification.
10710
10711         * Added [<hmac>] option to the CMODE command to define the HMAC
10712           for the channel.  Added SILC_CMODE_HMAC channel mode.
10713
10714         * Added [<hmac>] option for the JOIN command so that user can
10715           select which HMAC is used to compute the MACs of the channel
10716           messages.
10717
10718         * Added Hmac field to the Channel Message Payload.  The integrity
10719           of plaintext channel messages are now protected by computing
10720           MAC of the message and attaching the MAC to the payload.  The
10721           MAC is encrypted.  Now, it is clear that this causes some
10722           overhead to the size of the packet but rationale for this is that
10723           now the receiver can verify whether the channel message decrypted
10724           correctly and also when private keys are set for the channel the
10725           receiver can decrypt the packet with several keys and check from
10726           the MAC which key decrypted the message correctly.
10727
10728         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10729           lib/silccrypt/silccipher.[ch].
10730
10731         * Added silc_hash_len to return the digest length into the
10732           lib/silcrypt/silchash.[ch].
10733
10734         * Rewrote parts of Silc Channel Payload interface in the
10735           lib/silccore/silcchannel.[ch].  The encode function now also
10736           encrypts the packet and parse function decrypts it.
10737
10738 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10739
10740         * Fixed a minor formatting bug in the SKE's key material processing.
10741           It actually might have processed the keys wrong way resulting
10742           into wrong keys.
10743
10744         * Redefined the mandatory HMAC algorithms and added new algorithms.
10745           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10746           and hmac-md5 truncated to 96 bits.  The mandatory is now
10747           hmac-sha1-96.  Rest are optional (including the one that used
10748           to be mandatory).  Rationale for this is that the truncated HMAC
10749           length is sufficient from security point of view and can actually
10750           make the attack against the HMAC harder.  Also, the truncated
10751           HMAC causes less overhead to the packets.  See the RFC2104 for
10752           more information.
10753
10754         * Added new [hmac] configuration section.  The SKE used to use
10755           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10756           is of course wrong.  The official names that must be proposed in
10757           the SKE are the ones defined in the protocol specification
10758           (hmac-sha1-96 for example).  The user can configure any hmac
10759           using any hash function configured in the [hash] section.  At
10760           least, the mandatory must be configured.
10761
10762           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10763
10764         * Added HMAC list to the SKE proposal list.  It has now both
10765           hash algorithm list and HMAC list.  This makes the protocol
10766           incompatible with previous versions.  The SKE now seems to work
10767           the way it is supposed to work, for the first time actually.
10768
10769         * Defined plain Hash algorithms to the protocol specification.
10770           Added sha1 and md5.
10771
10772 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10773
10774         * Implemented support for key agreement packets into the server.
10775           Added functions silc_server_key_agreement and
10776           silc_server_send_key_agreement.  Other than these functions,
10777           server has nothing to do with this packet.
10778
10779         * Added support for private message key packets into the server.
10780           Added functions silc_server_private_message_key and
10781           silc_server_send_private_message_key.
10782
10783         * Updated TODO.
10784
10785         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10786           called in the protocol's final callback instead in the END
10787           protocol state.  This makes a little more sense and in the same
10788           time in client we can use the same protocol routines for normal
10789           key exchange and to key agreement packet handling as well.
10790
10791         * Added to both client's and server's KE protocol context the
10792           SilcSKEKeyMaterial pointer to save the key material.  We will
10793           bring the key material to the protocol's final callback by doing
10794           this.  The final callback must free the key material.
10795
10796         * Added SKE's packet_send callback into client's KE protocol
10797           context so that the caller can choose what packet sending function
10798           is used.  This way we can use different packet sending when
10799           doing normal SKE when doing key agreement packet handling (in
10800           the key agreement packet handling we do not want to encrypt
10801           the packets).
10802
10803         * Implemented the responder side of the key agreement routines
10804           in the client.  The client can now bind to specified port and
10805           accept incoming key negotiation.  The key material is passed
10806           to the application after the protocol is over.
10807
10808         * Implemented the processing of incoming Key Agreement packet
10809           in the client.  Added function silc_client_key_agreement to
10810           process the packet.
10811
10812         * Implemented the intiator side of the key agreement routines
10813           in the client.  The client can now initiate key agreement with
10814           another remote client.  The key material is passed to the
10815           application after the protocol is over.
10816
10817         * Created client_keyagr.c to include all the key agreement
10818           routines.
10819
10820         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10821           SILC_TASK_CALLBACK except that it is not static.
10822
10823         * Created client_notify.c and moved the Notify packet handling
10824           from the client.[ch] into that file.
10825
10826         * Created client_prvmsg.c and moved all private message and
10827           private message key routines from the client.[ch] into that file.
10828
10829         * Create client_channel.c and moved all channel message and
10830           channel private key routines from the client.[ch] into that file.
10831
10832         * Changed silc_client_get_client_by_id_resolve to resolve with
10833           WHOIS command instead of IDENTIFY command, in the file
10834           lib/silclient/idlist.c.
10835
10836 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10837
10838         * Implemented the SKE's responder side to the Client library.
10839
10840         * When FAILURE is received to the protocol do not trust it
10841           blindly.  Register a timeout to wait whether the remote closes
10842           the connection as it should do it, only after that process the
10843           actual failure.  This was changed to both client and server.
10844
10845         * Added client_internal.h to include some of the structures
10846           there instead of client.h in lib/silcclient/.
10847
10848         * Added function silc_task_unregister_by_callback to unregister
10849           timeouts by the callback function.
10850
10851 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10852
10853         * Some "Incomplete WHOIS info" errors has been appearing on the
10854           log files.  Took away the entry->userinfo check from WHOIS
10855           reply sending.  The entry->userinfo is now " " if client did not
10856           provide one.  I thought this was fixed earlier but something
10857           is wrong still.  Let's see if the error still appears.
10858
10859 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10860
10861         * Fixed a minor bug in the login when the channel key is
10862           re-generated in the server.  It used to generate the key in
10863           wrong order and thus caused problems in the channel traffic.
10864
10865         * Fixed a minor bug in channel key distsribution after
10866           KICK command.  The key was not sent to the router even though
10867           it should've been.
10868
10869 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10870
10871         * Added silc_ske_process_key_material_data as generic routine
10872           to process any key material as the SILC protocol dictates.  The
10873           function is used by the actual SKE library but can be used by
10874           applications as well.  This relates to the private message keys
10875           and the channel private keys since they must be processed the
10876           same way the normal SILC session keys.  The protocol dictates
10877           this.  Affected files: lib/silcske/silcske.[ch].
10878
10879           Added also silc_ske_free_key_material to free the
10880           SilcSKEKeyMaterial structure.
10881
10882         * Defined silc_cipher_set_key function to set the key for
10883           cipher without using the object's method function.  The affected
10884           files: lib/silccrypt/silccipher.[ch].
10885
10886         * Implemented silc silc_client_add_private_message_key,
10887           silc_client_add_private_message_key_ske,
10888           silc_client_del_private_message_key,
10889           silc_client_list_private_message_keys and
10890           silc_client_free_private_message_keys functions in the
10891           client library.
10892
10893           Added functions silc_client_send_private_message_key to send
10894           the Private Message Key payload and silc_client_private_message_key
10895           to handle incoming Private Message Key payload.
10896
10897         * Added Cipher field to the Private Message Key payload to set
10898           the cipher to be used.  If ignored, the default cipher defined
10899           in the SILC protocol (aes-256-cbc) is used.
10900
10901 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10902
10903         * Removed lib/silcclient/ops.h file.
10904
10905           Redefined parts of the SILC Client Library API. Created new
10906           file silcapi.h that deprecates the ops.h file and defines the
10907           published Client Library API.  Defined also private message key
10908           API and channel private key API into the file.
10909
10910           This is the file that the application must include from the
10911           SILC Client Library.  Other files need not be included by
10912           the application anymore.
10913
10914         * Added new key_agreement client operation callback and also
10915           defined the Key Agreement library API for the application.
10916
10917 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10918
10919         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10920           is used by clients to request key negotiation  between another
10921           client in the SILC network.  If the negotiation is started it
10922           is performed using the SKE protocol.  The result of the
10923           negotiation, the secret key material, can be used for example
10924           as private message key.
10925
10926           Implemented the Key Agreement payload into the files
10927           lib/silccore/silauth.[ch].
10928
10929 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10930
10931         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10932           and defined the key lengths for the algorithms.  Changed the
10933           code accordingly.  The default key length is now 256 bits.
10934
10935         * Fixed SKE key distribution function silc_ske_process_key_material
10936           when the key length is more than 128 bits.  The default key
10937           length in SILC is now 256 bits.
10938
10939         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
10940           to indicate unsupported algorithm.
10941
10942         * Renamed rijndael.c to aes.c and all functions as well.
10943
10944         * Fixed a long standing channel key setting bug in client library.
10945           Weird that it has never surfaced before.
10946
10947         * Fixed bug in channel deletion.  If the entire channel is removed
10948           then it must also delete the references of the channel entry
10949           from the client's channel list as the client's channel entry and
10950           the channel's client entry share same memory.
10951
10952 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10953
10954         * Implemented CONNECT and SHUTDOWN commands in the client.
10955
10956         * Implemented CLOSE command to the client.
10957
10958         * Added the function silc_idlist_find_server_by_name into the
10959           files silcd/idlist.[ch].
10960
10961           Added the function silc_idlist_find_server_by_conn into the
10962           files silcd/idlist.[ch].
10963
10964 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10965
10966         * DIE command was renamed to SHUTDOWN.  Updated the both code
10967           and protocol specs.
10968
10969         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
10970           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
10971
10972         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
10973           side.
10974
10975         * Added function silc_server_create_connection function to create
10976           connection to remote router.  My server implementation actually
10977           does not allow router to connect to normal server (it expects
10978           that normal server always initiates the connection to the router)
10979           so the CONNECT command is only good for connecting to another
10980           router.
10981
10982 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10983
10984         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
10985           or some other client was kicked from the channel.
10986
10987           Implemented the handling of the notify type to both client
10988           and server.
10989
10990           Implemented silc_server_send_notify_kicked to send the KICKED
10991           notify.  It is used to send it to the server's primary router.
10992
10993         * Implemented the KICK command into server and client.
10994
10995         * Added `query' argument to the silc_idlist_get_client function
10996           to indicate whether to query the client from server or not if
10997           it was not found.
10998
10999         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
11000           to indicate that the client is not channel founder.
11001
11002         * Updated TODO.
11003
11004 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11005
11006         * Removed the rng context from SilcPacketContext structure and
11007           changed that the packet routine uses the Global RNG API.
11008
11009 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11010
11011         * Added support for quit message that client can "leave" on the
11012           channel when it quits the SILC.  It is ditributed inside the
11013           SILC_NOTIFY_TYPE_SIGNOFF notify type.
11014
11015           Added silc_server_free_client_data that will take the
11016           signoff message as argument.
11017
11018         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
11019
11020 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11021
11022         * Updated parts of the protocol specification to keep it up
11023           to date.
11024
11025 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11026
11027         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
11028           payloads in one packet.
11029
11030         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
11031           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
11032           use now the new List flag.
11033
11034         * Also deprecated the following packet types: REPLACE_ID,
11035           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
11036
11037         * Added list support for Notify packet in server.
11038
11039         * Added silc_server_send_notify_channel_change to send the
11040           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
11041           the silc_server_send_replace_id.
11042
11043         * Added silc_server_send_notify_nick_change to send the
11044           NICK_CHANGE notify type.  Deprecates the function
11045           silc_server_send_replace_id.
11046
11047         * Added silc_server_send_notify_join to send the JOIN notify type.
11048           Deprecates the function silc_server_send_new_channel_user.
11049
11050         * Added silc_server_send_notify_leave to send LEAVE notify type.
11051           Deprecates the function silc_server_send_remove_channel_user.
11052
11053         * Added silc_server_send_notify_cmode and
11054           silc_server_send_notify_cumode to send CMODE and CUMODE notify
11055           types.  Deprecates the silc_server_send_set_mode function.
11056
11057         * Added SERVER_SIGNOFF notify type to indicate that server has
11058           quit.  This means that all clients on the channel from that
11059           server will drop.  This can be also used when netsplit happens.
11060
11061           Deprecated REMOVE_ID packet type since it is not needed anymore
11062           even from server.
11063
11064           Added silc_server_send_notify_server_signoff to send the
11065           SERVER_SIGNOFF notify type.  Deprecates the function
11066           silc_server_send_remove_id.
11067
11068           Added also silc_server_send_notify_signoff to send the
11069           SIGNOFF notify type.
11070
11071         * Employed the PKCS #1. It is the mandatory way to do RSA in the
11072           SILC protocol from this day on.  Changed the protocol
11073           specification as well.
11074
11075         * Added silc_server_send_notify_topic_set to send TOPIC_SET
11076           notify type.  It is used between routers to notify about
11077           topic changes on a channel.
11078
11079         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
11080           ID data.
11081
11082         * Partly updated the protocol specification to comply with the
11083           changes now made.  It is still though a bit outdated.
11084
11085         * The JOIN notify type now takes one extra argument <Channel ID>.
11086           The packet used to be destined to the channel but now the
11087           JOIN type may be sent as list thus it is impossible to
11088           destine it to any specific channel.  By adding this argument
11089           it is again possible.
11090
11091 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11092
11093         * Added CREDITS file.  The CHANGES and CREDITS file will appear
11094           in the distribution as well.
11095
11096 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11097
11098         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
11099           types in the server's silcd/packet_receive.c.
11100
11101         * Implemented CMODE and CUMODE to work in router environment.
11102
11103         * Fixed minor encoding and decoding buglet from the
11104           lib/silccore/silcmode.c.
11105
11106         * Fixed buffer overflow from lib/silcclient/command.c in USERS
11107           command parsing.
11108
11109 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
11110
11111         * Changed all SilcConfigServer* and silc_config_server* to
11112           SilcServerConfig* and silc_server_config*, respectively.
11113           Patch by Bostik.
11114
11115 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11116
11117         * Associated the ID (client or server ID) to the Authentication
11118           Payload to avoid any possibility of forging.  Updated the
11119           protocol specification and the code accordingly.
11120
11121 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11122
11123         * The RSA key length is now save to the RsaKey context in the
11124           key generation process in lib/silccrypt/rsa.c.  The key length
11125           is now used to figure out the maximum size of the block allowed
11126           to be encrypted/signed.
11127
11128         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
11129           is equivalent to the silc_mp_mp2bin but does not allocate any
11130           memory.
11131
11132         * Changed silc_mp_mp2bin API to take length argument.  If it is
11133           non-zero then the buffer is allocated that large.  If zero, then
11134           the size is approximated using silc_mp_sizeinbase, which however
11135           is not relieable.
11136
11137         * Created Global RNG API which is global RNG that application can
11138           initialize.  After initializing, any routine anywhere in the
11139           code (including library) can use RNG without allocating a new
11140           RNG object.  This was done to allow this sort of use of the
11141           RNG in code that has no chance to allocate RNG object.  All
11142           applications currently allocate this and many routines in the
11143           library use this.  Affected file lib/silccrypt/silcrng.[ch].
11144
11145         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
11146           it to use the Global RNG API.
11147
11148         * Defined Authentication Payload into protocol specification that
11149           is used during SILC session to authenticate entities.  It is
11150           used for example by client to authenticate itself to the server
11151           to obtain server operator privileges.
11152
11153           Implemented this payload into the lib/silccore/silcauth.[ch].
11154           Implemented also routines for public key based authentication
11155           as the new protocol specification dictates.
11156
11157           Moved definitions of different authentication methods from
11158           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
11159
11160         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
11161           silc_pkcs_verify and silc_pkcs_sign_with_hash and
11162           silc_pkcs_verify_with_hash functions into the file
11163           lib/silccrypt/silcpkcs.[ch].
11164
11165 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11166
11167         * The client entry's userinfo pointer must be always valid.
11168           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
11169           will fail since it requires the userinfo.  Now, the userinfo
11170           is allocated as "" if actual userinfo does not exist.  Actually,
11171           it must exist and it is totally Ok to drop client connections
11172           that does not announce the userinfo.  However, we will make
11173           this workaround for now.
11174
11175         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
11176           to return the remote port by socket.
11177
11178 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11179
11180         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
11181           SILC_SERVER_PENDING_EXEC and added an new macro
11182           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
11183           data or when error occurs while processing the pending command.
11184
11185           Added new argument `destructor' into silc_server_command_pending
11186           and to the SilcServerCommandPending object.  This destructor is
11187           now called after calling the pending callback or if error occurs
11188           immediately.  If error occurs the actual pending callback won't
11189           be called at all - only the destructor.  The destructor may be
11190           NULL if destructor is not needed.
11191
11192           All this applies for client library code as well.  Similar
11193           changes were made there as well for the pending commands.
11194
11195           In the client, the application must now allocate the
11196           SilcClientCommandContext with the silc_client_command_alloc
11197           function.
11198
11199         * Added reference counter to the SilcServerCommandContext.  Added
11200           function silc_server_command_alloc and silc_server_command_dup
11201           functions.
11202
11203           Same type of functions added to the client library for the same
11204           purpose as well.
11205
11206         * Removed the cmd_ident from IDListData away since it is now
11207           global for all connections.  It is the command identifier used
11208           in command sending and with pending commands.  The affected file
11209           is silcd/idlist.h.
11210
11211         * Added reference counter to the SilcSocketConnection objecet to
11212           indicate the usage count of the object.  The object won't be
11213           freed untill the reference counter hits zero.  Currently only
11214           server uses this, and client ignores it.  The client must be
11215           set to use this too later.  The affected files are
11216           lib/silccore/silcsockconn.[ch].  Added also the function
11217           silc_socket_dup to increase the reference counter.
11218
11219           This was mainly added because it is possible that the socket
11220           is removed underneath of pending command or other async
11221           operation.  Now it won't be free'd and proper DISCONNECTING
11222           flags, etc. can be set to avoid sending data to connection that
11223           is not valid anymore.
11224
11225         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
11226           the connection.  After that it sets SILC_SET_DISCONNECTED.
11227           It is, however, possible that the socket data is not still freed.
11228           The silc_server_packet_process now checks that data is not
11229           read or written to connection that is DISCONNECTED.  The socket
11230           get's freed when the reference counter hits zero.
11231
11232 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11233
11234         * Changed the client operation API: channel_message operation's
11235           `sender' is now the client entry of the sender, not the nickname
11236           and the `channel' is the channel entry, not the channel name.
11237
11238           In the private_message operation the `sender' is now also the
11239           client entry of the sender not the nickname.
11240
11241           Affected file is lib/silcclient/ops.h and all applications
11242           using the client operations.
11243
11244 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11245
11246         * Moved the calling of ops->connect() from connect_to_server_final
11247           into receive_new_id functin since that is the point when the
11248           client is actually allowed to send traffic to network.  The
11249           affected file is lib/silcclient/client.c.
11250
11251 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11252
11253         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
11254           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
11255           (if needs broadcasting) instead of broadcasting the packets one
11256           by one which would make a burst in the network traffic.
11257
11258         * Added `broadcast' argument to the functions in silcd/server.[ch]
11259           silc_server_create_new_channel[_with_id] to indicate whether
11260           to send New Channel packet to primary router.
11261
11262 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11263
11264         * Added new function into the silcd/server.[ch] files:
11265           silc_server_create_new_channel_with_id to create new channel with
11266           already existing Channel ID.
11267
11268         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
11269           lib/silccore/silcpacket.h.  This packet is used t send list of
11270           Set Mode payloads inside one packet.  Server uses this to set
11271           the modes for the channels and clients on those channels, that it
11272           announced to the router when it connected to it.  The protocol
11273           specification has been updated accordingly.
11274
11275         * The silc_server_new_channel did not handle the packet coming
11276           from normal server as it normally does not send that.  However,
11277           when it announces its channels it does send it.  Implemented
11278           the support for that.
11279
11280         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
11281           into the file lib/silccore/id.h.
11282
11283 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11284
11285         * Fixed memory leaks in the functions silc_idlist_del_client,
11286           silc_idlist_del_channel and silc_idlist_del_server in the file
11287           silcd/idlist.c.  All of those leaked like a sieve.
11288
11289         * Fixed some small memory leaks in the client's function
11290           silc_client_notify_by_server.
11291
11292         * Added functions into silcd/server.c: silc_server_announce_clients,
11293           silc_server_announce_channels and silc_server_announce_server.
11294           These functions are used by normal and router server to announce
11295           to its primary router about clients, channels and servers (when
11296           router) that we own.  This is done after we've connected to the
11297           router.
11298
11299           These functions effectively implements the following packet types:
11300           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
11301           and SILC_PACKET_NEW_ID_LIST.
11302
11303         * Added new functions into the silcd/packet_receive.[ch]:
11304           silc_server_new_id_list, silc_server_new_channel_list and
11305           silc_server_new_channel_user_list to handle the incoming
11306           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
11307
11308         * Added support of changing Channel ID in the function
11309           silc_server_replace_id.  If the server that announces a channel
11310           to the router already exists in the router (with same name but
11311           with different Channel ID), router is responsible to send
11312           Replace ID packet to the server and force the server to change
11313           the Channel ID to the one router has.
11314
11315         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
11316           client that the Channel ID has been changed by the router.  The
11317           normal server sends this to the client.  Client must start using
11318           the new Channel ID as the channel's ID.
11319
11320           Implemented handling of this new type into lib/silcclient/client.c
11321           into the function silc_client_notify_by_server.
11322
11323         * Added new function silc_idlist_replace_channel_id into the files
11324           silcd/idlist.[ch] to replace the Channel ID.
11325
11326 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11327
11328         * Call silc_server_command_identify_check always when processing
11329           the IDENTIFY command in silcd/command.c
11330
11331 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11332
11333         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
11334           send keepalive packets.  The packet can be sent by clients,
11335           servers and routers.
11336
11337           Added function silc_socket_set_heartbeat into the file
11338           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
11339           If not set, the heartbeat is not performed.  The actual
11340           heartbeat is implemented in the low level socket connection
11341           library.  However, application is responsible of actually
11342           sending the packet.
11343
11344           Added silc_server_send_heartbeat to send the actual heartbeat
11345           packet into silcd/packet_send.[ch].  Server now performs
11346           keepalive with all connections.
11347
11348         * Added silc_task_get_first function into lib/silcutil/silctask.c
11349           to return the timeout task with shortest timeout.  There was a bug
11350           in task unregistration that caused problems.  TODO has been
11351           updated to include that task system must be rewritten.
11352
11353         * The client library will now resolve the client information when
11354           receiving JOIN notify from server for client that we know but
11355           have incomplete information.
11356
11357         * Rewrote parts of silc_server_remove_from_channels and
11358           silc_server_remove_from_one_channel as they did not remove the
11359           channel in some circumstances even though they should've.
11360
11361         * Encryption problem encountered in server:
11362
11363           The LEAVE command used to send the Channel Key packet to the
11364           router immediately after generating it.  However, the code
11365           had earlier sent Remove Channel user packet but not immediately,
11366           ie. it was put to queue.  The order of packets in the router
11367           was that Channel Key packet was first and Remove Channel User
11368           packet was second, even though they were encrypted in the
11369           reverse order.  For this reason, MAC check failed.  Now, this
11370           is fixed by not sending the Channel Key packet immediately but
11371           putting it to queue.  However, this is more fundamental problem:
11372           packets that are in queue should actually not be encrypted
11373           because packets that are sent immediately gets encrypted
11374           actually with wrong IV (and thus MAC check fails).  So, packets
11375           that are in queue should be encrypted when they are sent to
11376           the wire and not when they put to the queue.
11377
11378           However, the problem is that the current system has not been
11379           designed to work that way.  Instead, the packet is encrypted
11380           as soon as possible and left to the queue.  The queue is then
11381           just purged into wire.  There won't be any fixes for this
11382           any time soon.  So, the current semantic for packet sending
11383           is as follows:
11384
11385           o If you send packet to remote host and do not force the send
11386           (the packet will be in queue) then all subsequent packets to the
11387           same remote host must also be put to the queue.  Only after the
11388           queue has been purged is it safe again to force the packet
11389           send immediately.
11390
11391           o If you send all packets immediately then it safe to send
11392           any of subsequent packets through the queue, however, after
11393           the first packet is put to queue then any subsequent packets
11394           must also be put to the queue.
11395
11396           Follow these rules and everything works fine.
11397
11398 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11399
11400         * Added new function silc_server_remove_clients_by_server to
11401           remove all client entries from ID list when the server connection
11402           is lost.  In this case it is also important to invalidate all
11403           client entires as they hold the invalid server entry.  This
11404           fixes fatal bug when server has lost connection and will reconnect
11405           again.
11406
11407 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11408
11409         * Made some sanity checks to silc_server_daemonise like to check
11410           whether the requested user and group actually exists.
11411
11412         * Added sanity check to SKE's silc_ske_responder_finish to check
11413           that the public and private key actually is valid.
11414
11415         * Invalidate the client's nickname when receiving Replace ID
11416           packet and the Client ID is being replaced.  This means that the
11417           server will query the nickname if someone needs it (client)
11418           a bit later.
11419
11420         * Sort the ID Cache in client library when the ID Cache data
11421           has changed (needs sorting).
11422
11423         * Do not allow for SILC client to create several connections to
11424           several servers.  The client does not support windows right now
11425           and generating multiple connections causes weird behaviour.
11426
11427           Irssi-silc client does support windows and can handle several
11428           connections without problems, see: www.irssi.org and SILC plugin.
11429
11430         * Fixed some places where client was added to the IDList.  The
11431           rule of thumb is following (in order to get everything right):
11432           If the client is directly connected local client then the
11433           `connection' argument must be set and `router' argument must be
11434           NULL to silc_idlist_add_client function.  If the client is not
11435           directly connected client then the `router' argument must
11436           bet set and the `connection' argument must be NULL to the
11437           silc_idlist_add_client function.
11438
11439         * The funtion silc_server_packet_send_local_channel actually did
11440           not check whether the client was locally connected or not.  It
11441           does that now.  Fixed a bug related to LEAVE command.
11442
11443         * Fixed Remove Channel User payload parsing bug in server's
11444           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
11445
11446         * The server's silc_server_save_channel_key now checks also the
11447           global ID list for the channel as it might not be in the local
11448           list.  Fixed a bug related to LEAVE command.
11449
11450         * Is this the end of the [<unknown>] buglet that has been lurking
11451           around for a long time?  A little for loop fix in server's
11452           silc_server_command_whois_parse that is used by both IDENTIFY
11453           and WHOIS command.  At least, this was a clear bug and a cause
11454           of one type of [<unknown>] buglet.
11455
11456         * WHOIS and IDENTIFY commands call the function
11457           silc_server_command_[whois/identify]_check function even if
11458           we are not router server.
11459
11460 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11461
11462         * Added --with-gmp configuration option.  If set the GMP
11463           is always compiled in the SILC source tree.  If not set then
11464           it is checked whether the system has the GMP3 installed.  If
11465           it has then the GMP won't be compiled (the system's headers
11466           and library is used), if it doesn't have it then the GMP is
11467           compiled in the SILC source tree.
11468
11469 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11470
11471         * Changed RSA private exponent generation to what PKCS #1
11472           suggests.  We try to find the smallest possible d by doing
11473           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
11474           not security fix but optimization.
11475
11476 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11477
11478         * Added new config entry [Identity] to fork the server and run
11479           it as specific user and group.  A patch from Bostik.
11480
11481         * Imported Dotconf configuration library into lib/dotconf.
11482           This will be used to create the SILC configuration files later.
11483           It will appear in the distsribution after this commit.
11484
11485 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11486
11487         * A big code auditing weekend happening.  Auditing code for
11488           obvious mistakes, bugs and errors.  Also, removing any code
11489           that is obsolete.
11490
11491           Removed files for being obsolete:
11492
11493           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
11494           inline in the file lib/silcutil/silcbuffer.h)
11495
11496           o lib/silcutil/silcbufutil.c (the header has inline versions)
11497
11498           Changed code to fix possible error conditions:
11499
11500           o The buffer formatting routines now check that the destination
11501           buffer really has enough space to add the data.  This applies for
11502           both buffer formatting and unformatting
11503           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
11504           unformatting was changed to accomodate following rules:
11505           XXX_*STRING_ALLOC will allocate space for the data into the pointer
11506           sent to the function while XXX_*STRING will not allocate or copy
11507           the data into the buffer.  Instead it sets the pointer from the
11508           buffer into the pointer sent as argument (XXX_*STRING used to
11509           require that the pointer must be allocated already).  This change
11510           makes this whole thing a bit more consistent and more optimized
11511           (note that the data returned in the unformatting with XXX_*STRING
11512           must not be freed now).  The routines return now -1 on error.
11513
11514           o Tried to find all code that use buffer_format and buffer_unformat
11515           and added return value checking to prevent formatting and
11516           especially unformatting errors and possible subsequent fatal
11517           errors.
11518
11519           o Changed ske->x and ske->KEY to mallocated pointers in
11520           lib/silcske/silcske.h.  Fixed possible data and memory leak.
11521
11522           o Added return value checking to all *_parse* functions.  Fixed
11523           many memory leaks as well.
11524
11525           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
11526           so that buffer overflows would not happen.  All code now also
11527           checks the return value as it can fail.
11528
11529 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11530
11531         * Added reconnection support to server if the normal server looses
11532           its connection to the router (for example if router is rebooted).
11533           The server performs normal reconnection strategy implemented
11534           to the server.  Affected file silcd/server.c.
11535
11536 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11537
11538         * Added new packet type SILC_PACKET_SET_MODE that is used to
11539           distribute the information about changed modes (for clients,
11540           channels and clients channel modes) to all routers in the
11541           network.  Updated the protocol specification accordingly.
11542
11543           Added functions into silcd/packet_send.c and
11544           silcd/packet_receive.c: silc_server_send_set_mode,
11545           silc_server_set_mode.
11546
11547           Added new files silcmode.[ch] into lib/silccore that implements
11548           the encoding and decoding of Set Mode Payload.  Added new type
11549           SilcSetModePayload.  Moved the definitions of different modes
11550           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
11551
11552 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11553
11554         * Oops, a little mistake in server's connection authentication
11555           protocol.  The protocol is not ended with FAILURE but with
11556           SUCCESS if the authentication is Ok. :)  Affected file is
11557           silcd/protocol.c.
11558
11559         * Implemented NICK_CHANGE notify handling in server in the file
11560           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
11561           the local clients on the channel.  After the changing nickname
11562           in router environment snhould work and the [<unknown>] nickname
11563           should appear no more.
11564
11565           The silc_server_replace_id function that receives the Replace ID
11566           payload now sends the NICK_CHANGE notify type also in the file
11567           silcd/packet_receive.c
11568
11569         * Changed WHOIS and IDENTIFY command to support the maximum amount
11570           of arguments defined in protocol specs (3328 arguments).  This
11571           fixed a bug that caused problems when there were more than three
11572           users on a channel.
11573
11574 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11575
11576         * Added extra parameter, command identifier, to the
11577           silc_client_send_command so that explicit command identifier
11578           can be defined.
11579
11580           Changed that ID list routines uses specific command identifier
11581           when sending WHOIS/IDENTIFY requests to the server so that they
11582           can be identified when the reply comes back.
11583
11584           Affected files lib/silcclient/command.[ch],
11585           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
11586
11587         * Added `sender' argument to silc_server_packet_send_to_channel
11588           to indicaet the sender who originally sent the packet to us
11589           that we are now re-sending.  Ignored if NULL.  Affected file
11590           silcd/packet_send.[ch].
11591
11592         * Added some server statistics support in silcd/server_internal.h
11593           SilcServerStatistics structure and around the server code.  Also
11594           send some nice statistics information when client is connecting
11595           to the client.
11596
11597 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11598
11599         * Fixed channel ID decoding in server's JOIN command reply in
11600           silcd/command_reply.c
11601
11602         * Fixed braodcasting of replace ID payload to not to send it if
11603           we are standalone server in silcd/packet_receive.c.
11604
11605         * Fixed all channel message sending routines to not to send
11606           packets to clients that has router set, since they are routed
11607           separately in the same function earlier.  Affects file
11608           silcd/packet_send.c and all channel packet sending functions.
11609
11610         * In USERS reply, res_argv[i] are not allocated, the table
11611           is allocated.  Thus changed that free the table, not its
11612           internals.
11613
11614         * In server's whois_check and identify_check if the client is
11615           locally connected do not send any WHOIS commands - they are not
11616           needed.
11617
11618 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11619
11620         * Fixed some minor bugs in client when sending WHOIS command.  The
11621           arguments was in wrong order.
11622
11623         * Removed statis function add_to_channel from server in
11624           silcd/command.c that was previously used with the joining but
11625           is obsolete now.
11626
11627         * Tested USERS command in router environment successfully with two
11628           routers, two servers and two clients.
11629
11630 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11631
11632         * Reorganized the USERS command and command reply in client library
11633           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
11634           When the command is given by user we register a pending command
11635           callback that will reprocess the command after the reply has been
11636           received from the server.  When reprocessing the packet we then
11637           display the information.  Thus, the USERS information is displayed
11638           now in the command callback instead of in the command reply
11639           callback.  The processing of the command is same as previously
11640           when server has sent the command reply in the JOINing process.
11641
11642         * Added to USERS command in silcd/command_reply.c to join the client,
11643           we didn't use to know about, to the channel after we've created
11644           a client entry for it.  Also, for clienet we did know already still
11645           check whether it is on the channel or not and add it if not.
11646
11647         * Removed silc_server_command_join_notify as the function and its
11648           use was obsolete.
11649
11650 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11651
11652         * Changed the client's pending command handling to the same as the
11653           server's pending command handling.  It is also now possible to
11654           execute command reply functions from other command reply
11655           function as the function callbacks for commands and command
11656           replies are one and same.  The pending commands are not static
11657           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11658           in client connection context.  Thus, pending commands are server
11659           connection specific as it is convenient.
11660
11661           Changed the function silc_client_command_pending and
11662           silc_client_command_pending_del and added new function
11663           silc_client_command_pending_check.  Removed the
11664           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11665           macros.
11666
11667         * Added cmd_ident, current command identifier, to the client
11668           connection context in lib/silcclient/client.h to keep track on
11669           command identifiers used in command sending.  Client's command reply
11670           function handling now supports the mandatory command identifiers.
11671
11672         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11673           funtions in client to fully support pending command callbacks.
11674
11675         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11676           as one of the arguments to the application in the command reply
11677           client operation.
11678
11679         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11680           before first releasing SILC but came back.  Now it is removed again
11681           and should come back nomore.  The FORWARDED flag was used only
11682           by the JOINing procedure by forwarding the command packet to router.
11683           Now, the JOINing procedure has been changed to more generic (due
11684           to various router environment issues) and FORWARDED is not needed
11685           anymore for anything.  The protocol specification is yet to be
11686           updated.
11687
11688           Now, removed silc_server_packet_forward from server and the flag
11689           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11690
11691 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11692
11693         * Renamed NAMES command to USERS command.  The NAMES was named that
11694           due to historical reasons.  Now it is renamed.  Also, rewrote
11695           parts of the USERS command.  The nickname list is not sent anymore
11696           by the server.  Only Client ID and mode lists are sent in the USERS
11697           command.  Changed this also to the protocol specification.
11698
11699           The client now resolves the names and stuff after it receives
11700           the USERS list from the server when joining to the channel.
11701
11702         * WHOIS and IDENTIFY commands has been changed to support multiple
11703           Client ID's per command.  One can now search for multiple users
11704           in the network by sending only one WHOIS or IDENTIFY command.
11705           Changed the code and the protocol specifications.
11706
11707         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11708           uses silc_server_command_whois_parse to parse the request. */
11709
11710         * If normal server, do not parse the WHOIS and IDENTIFY requests
11711           before sending it to the router.  Saves some time.
11712
11713 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11714
11715         * Fixed JOIN command on client library.  Wrong number of arguments
11716           used to crash the client.
11717
11718         * Added silc_server_channel_has_global function to check whether
11719           channel has global users or not.
11720
11721         * Added silc_server_channel_has_local function to check whether channel
11722           has locally connected clients on the channel.
11723
11724         * The silc_server_remove_from_one_channel now checks whether the
11725           channel has global users or not after given client was removed from
11726           the channel.  It also checks whether the channel has local clients
11727           on the channel anymore.  If it does not have then the channel entry
11728           is removed as it is not needed anymore.
11729
11730         * The silc_server_notify now checks on JOIN notify whether the joining
11731           client is one of locally connected or global.  If it is global then
11732           the channel has now global users on the channel and that is marked
11733           to the channel entry.  Also, it now saves the global client to
11734           global list who is joining and JOINs it to the channel.  This is
11735           for normal server, that is.
11736
11737           Changed silc_server_send_notify_on_channel,
11738           silc_server_packet_relay_to_channel and
11739           silc_server_packet_send_to_channel check if we are normal server
11740           and client has router set (ie. global client) do not send the
11741           message to that client, as it is already routed to our router.
11742
11743         * Implemented LEAVE notify type handling in silc_server_notify
11744           function.
11745
11746         * Tested LEAVE command in router environment successfully.  Tested
11747           with two routers, two servers and two clients.
11748
11749         * Updated TODO.
11750
11751         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11752
11753         * Implemented SIGNOFF notify type handling in silc_server_notify
11754           function.
11755
11756         * silc_server_remove_id now removes the client entry from all channels
11757           it has joined and thusly sends SIGNOFF notify type.
11758
11759         * Rewrote the NAMES list generation in server by removing two excess
11760           loops.  The lists are created now inside one loop.
11761
11762 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11763
11764         * silc_server_remove_channel_user checks now also global list
11765           for channel and client.
11766
11767         * silc_server_new_channel_user checks now both local and global
11768           list for channel and client.  Fixed a bug in client id decoding.
11769           Used to decode wrong buffer.
11770
11771         * silc_server_channel_message checks now both local and global
11772           list for channel entry.
11773
11774         * Tested channel joining (hence JOIN) in router environment
11775           successfully.  Tested with two routers, two servers and two
11776           clients.
11777
11778         * Tested channel message sending in router environment successfully.
11779
11780 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11781
11782         * Added silc_server_save_channel_key into server.[ch] to save the
11783           received channel key in Channel Key payload processing. It is
11784           also used in JOIN command reply handling.
11785
11786           Equivalent function silc_client_save_channel_key added into
11787           client.[ch] into client library.
11788
11789         * Changed JOIN command reply to send information whether the channel
11790           was created or not (is existing already) and the channel key
11791           payload.  Changed protocol specs accordingly.
11792
11793         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11794           the request was sent by ID and not by nickname.  Crashed on
11795           NULL dereference.
11796
11797 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11798
11799         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11800           now correctly save the received data.
11801
11802         * silc_server_free_sock_user_data now notifies routers in the
11803           network about entities leaving the network.
11804
11805           At the same time implemented functions silc_server_remove_id
11806           and silc_server_send_remove_id to receive and send REMOVE_ID
11807           packets.  The packet is used to notify routers in the network
11808           about leaving entities.  The ID removed will become invalid in
11809           the network.
11810
11811         * Added function silc_idlist_del_server into server. Removes and
11812           free's server entry from ID list.
11813
11814         * silc_server_private_message function now checks, if we are router,
11815           that the destination ID really is valid ID, naturally.
11816
11817         * In router when NEW_ID packet is received (for new client) the
11818           hash of the Client ID is saved in the ID Cache but the
11819           client->nickname is set to NULL, instead of putting the hash
11820           to it as well.
11821
11822           IDENTIFY command now also checks that client->nickname must be
11823           valid. If it is not if will request the data from the server who
11824           owns the client.  Added new function
11825           silc_server_command_identify_check.
11826
11827         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11828           to set the command to already allocated Command Payload.
11829
11830         * Tested private message sending in router environment with two
11831           routers, two servers and two clients.  Fixed minor bugs and now
11832           it works fine.
11833
11834         * Fixed segfault from client's NAMES command. Used to crash if
11835           not on any channel.
11836
11837         * Forwarded packets must not be routed even if it is not destined
11838           to the receiver.  Changed server code comply with this.
11839
11840 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11841
11842         * Added `require_reverse_mapping' boolean value to ServerParams
11843           structure. If TRUE (not default) the server will require that
11844           the connecting host has fully qualified domain name.
11845
11846           If the reverse mapping is not required and hostname could not be
11847           found the IP address is used as hostname.
11848
11849 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11850
11851         * Implemented version string checking to both client and server.
11852           The check is incomplete currently due to the abnormal version
11853           strings used in development version of SILC.
11854
11855         * Changed all command functions in server to use the new
11856           CHECK_ARGS macro.
11857
11858 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11859
11860         * Changed char *data to unsigned char *data in ID Cache system to
11861           support binary data as ID Cache data. Changed code to support
11862           binary data in lib/silccore/idcache.c.
11863
11864         * Renamed silc_server_packet_relay_command_reply to
11865           silc_server_command_reply as it is normal packet receiving
11866           function. Rewrote the function to accept command replys for
11867           servers and not only for clients.
11868
11869         * Mark remote router always as registered server if we are connecting
11870           to it.  Otherwise, commands sent by the router to us are ignored.
11871
11872         * All ID List find routines now returns the ID Cache Entry pointer
11873           as well if requested.
11874
11875         * WHOIS command works now in router environment, tested with two
11876           routers, two servers and two clients.
11877
11878         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11879           in router environment (as it is almost equivalent to WHOIS) but
11880           hasn't been tested thoroughly.  Added new functions:
11881
11882           silc_server_command_identify_parse
11883           silc_server_command_identify_send_reply
11884           silc_server_command_identify_from_client
11885           silc_server_command_identify_from_server
11886
11887         * Disabled route cache adding because adding two different ID's with
11888           same IP replaces the old cache entry thus giving wrong route.
11889           The entry->router->connection is always the fastest route anyway
11890           so route cache may not be needed.  Of course, new routes maybe
11891           established after receiving the ID when the entry->router->connection
11892           might not be anymore the most optimal.
11893
11894 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11895
11896         * Add route cache for received ID for fast routing.
11897
11898         * Added silc_server_packet_route to route received packet on router
11899           that is not destined to us.
11900
11901         * Renamed silc_server_get_route to silc_server_route_get.
11902
11903         * Added id_string and id_string_len fields into SilcServer to
11904           include encoded ServerID for fast comparing without excess
11905           encoding of the ID's.
11906
11907         * Cleaned up WHOIS command on server side. Added following static
11908           functions:
11909
11910           silc_server_command_whois_parse
11911           silc_server_command_whois_check
11912           silc_server_command_whois_send_reply
11913           silc_server_command_whois_from_client
11914           silc_server_command_whois_from_server
11915
11916         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11917           arguments in command replies. All command functions should be
11918           updated to use this macro.
11919
11920 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11921
11922         * Minor typo fixes on command reply handling on server.
11923
11924 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11925
11926         * Added silc_server_command_add_to_channel internal routine to add
11927           the client to the channel after router has created the channel and
11928           sent command reply to the server.
11929
11930         * Added generic silc_server_send_command to send any command from
11931           server.
11932
11933         * Use static buffer with ID rendering instead of duplicating data.
11934
11935 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11936
11937         * Fixed a channel user mode bug when joining to a channel server gave
11938           everybody channel founder rights, oops.
11939
11940         * We mark ourselves as the router of the incoming server connection
11941           if we are router ourselves.  This way we can check in some packet
11942           sending functions whether it is locally connected server.  For
11943           incoming router connections we put NULL.
11944
11945         * For router sending packets locally means now always sending the
11946           packet cell wide; to local clients and local servers.  For normal
11947           server sending packet locally means sending it to only local
11948           clients.
11949
11950         * Fixed the JOIN command to really work in router environment.  If the
11951           channel is created it is always created by the router.  Router is
11952           also responsible of making the initial joining to the channel,
11953           sending JOIN notify to the sending server and distributing
11954           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
11955           does not exist server doesn't do anything else but forward the
11956           command to the router which performs everything.
11957
11958         * Added silc_server_send_channel_key function to send the Channel Key
11959           payload.
11960
11961         * Added silc_server_create_channel_key to create new channel key.  The
11962           channel key is now re-generated everytime someone joins or leaves
11963           a channel, as protocol dictates.  Note: channel->key_len is the
11964           key length in bits.
11965
11966 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11967
11968         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
11969           packet_receive.[ch] to separate packet sending and receiving
11970           routines.  The server.[ch] now includes everything else including
11971           actual packet processing (writing and reading data) and other
11972           server issues.
11973
11974           Renamed silc_server_private_message_send_internal to
11975           silc_server_send_private_message.  The routine is still though
11976           used only to relay private messages as server does not send
11977           private messages itself.
11978
11979           Renamed silc_server_new_channel to silc_server_create_new_channel
11980           and added new function sicl_server_new_channel that handles the
11981           incoming New Channel packet.  Added also new sending function
11982           silc_server_send_new_channel to send New Channel Payload.
11983
11984         * Added new function silc_server_notify to process incoming notify
11985           packet to the server/router. Server may then relay the notify
11986           to clients if needed.
11987
11988         * Added new function silc_server_new_channel_user to process incoming
11989           New Channel User packet.  Router will redistribute the packet and
11990           send JOIN notify to its local clients and locally connected servers
11991           if needed.  Normal server will send JOIN notify to its local client
11992           on same channel when received this packet.  Added also corresponding
11993           sending function silc_server_send_new_channel_user to sent the
11994           payload.
11995
11996         * Added boolean route argument to send_notif_to_channel and
11997           packet_send_to_channel functions to attempt to route the packet
11998           if it is TRUE and send only locally if it is FALSE.
11999
12000 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12001
12002         * silc_server_replace_id now broadcasts the received replace ID
12003           packet if it is not broadcast packet already. The router must
12004           broadcast to inform other routers about changed ID.
12005
12006         * Added backpointer to server's router into SilcServer context in
12007           silcd/server_internal.h.
12008
12009         * Fixed silc_server_packet_broadcast to send correct broadcast
12010           packets.
12011
12012         * The channel key is now distributed to the local client as soon
12013           as it is received from the router (in router environment) so that
12014           no other packet may be sent for the channel until client has
12015           received the key.
12016
12017         * silc_server_remove_channel_user now broadcasts the received
12018           Remove Channel User packet if it is not broadcast packet already.
12019           The router must broadcast to inform other routers about removed
12020           channel user.
12021
12022         * Added users field into SilcPacketContext that is a reference count
12023           of the context.  One can increase the reference count by calling
12024           silc_packet_context_dup which is now changed to just increase the
12025           reference count instead of duplicating the data.  The reference
12026           count is decresed by calling silc_packet_context_free that will
12027           free the data after the reference count hits zero.
12028
12029           For now on the packet context and everything allocated into it
12030           (including the raw packet from network) must be freed by calling
12031           the new silc_packet_context_free function.  Added also new function
12032           silc_packet_context_alloc that must be used now to allocate the
12033           context.  This also means that if a routine is asynchronous from
12034           silc_[client/server]_packet_parse_type the packet context must
12035           be duplicated by calling silc_packet_context_dup.  Otherwise it
12036           gets free'd after silc_[client/server]_packet_parse_type returns.
12037           Also, one must remember that if packet is duplicated then its
12038           reference count must be decresed by calling the free function as
12039           many times as it was duplicated.
12040
12041         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
12042           from both client and server.
12043
12044 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12045
12046         * Made joining to a channel working in router environment.
12047
12048         * Cleaned up JOIN command on server side and create function
12049           silc_server_command_join_channel internal routine to make the
12050           joining happen.
12051
12052 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12053
12054         * Changed silc_command_pending list to SilcDList.  Also, added
12055           `ident' field to SilcServerCommandPending structure to identify
12056           the reply and to call correct callback.
12057
12058           Added silc_server_command_pending_check function to replace the
12059           corresnponding macro.  The silc_command_pending list is not
12060           extern anymore.
12061
12062         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
12063           to set identifier to previously allocated Command Payload.  It
12064           is used to set identifier for command when resending Command
12065           Payload.
12066
12067         * Added silc_command_payload_encode_payload to encode Command
12068           Payload buffer from SilcCommandPayload structure.
12069
12070         * Added silc_argument_payload_encode_payload to encode Argument
12071           payload buffer from SilcArgumentPayload structure.
12072
12073 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12074
12075         * Changed WHOIS command to support router connection on server side.
12076           The whois request is always sent to router unless the server is
12077           standalone server.  After server has received the reply from the
12078           router will it send the reply to the client.
12079
12080         * Added silc_server_packet_broadcast into silcd/server.[ch] to
12081           broadcast received broadcast packet.  The function is used only
12082           by router.  The broadcast packet is always sent to the router's
12083           primary route.
12084
12085         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
12086           render given ID to printable string, for log files for example.
12087
12088 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12089
12090         * Made basic router to router connections working.  At least they
12091           can now connect to each other but nothing really works the way
12092           they are supposed - yet.
12093
12094         * Added new initiator token to RouterConnection configuration
12095           file in silcd/serverconfig.[ch].  It is used to tell whether we
12096           are the initiator to the remote router or whether we'll expect
12097           the other end to connect.
12098
12099         * Moved registering of listener task to silc_server_init, hence
12100           the server starts listenning as soon as it is run, even if it
12101           does not have connections to other routers.  Let's see how well
12102           this will work.
12103
12104         * Changed default connection retry timeouts for more suitable in
12105           silcd/server.h.
12106
12107         * Removed cipher and such arguments from silc_idlist_add_client
12108           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
12109           Added new function silc_idlist_add_data to add the keys and stuff
12110           to any ID entry.
12111
12112         * Added SilcIDListData structure and added it to SilcClientEntry
12113           and SilcServerEntry as their first field in the structure.  This
12114           way we can explicitly cast the ID entries to the SilcIDListData
12115           structure and get common data for the entries.  In past, we had
12116           to first check what type of connection it is and then cast it to
12117           correct ID entry type.  Now, we can directly cast the opaque
12118           pointer to the SilcIDListData (no matter what ID entry it actually
12119           is) and get the data needed.
12120
12121 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12122
12123         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
12124           in some circumstances even if threre were timeout tasks, though not
12125           IO tasks, but tasks anyway.  Now fixed.
12126
12127         * Defined SilcServerConnection structure to hold connection specific
12128           stuff about directly connected servers and routers.  The definition
12129           is currently in silcd/server_internal.h.  I thought about having
12130           a bit more important role fro this struct but for now it is used
12131           only when connecting to other server (or router actually).
12132
12133         * Added connecting retry support in server when connecting to
12134           router(s).  The retry feature implement exponential backoff
12135           algorithm.  Also, added SilcServerParams structure to hold default
12136           parameters for server.  For now, it include these retry settings
12137           and are hard coded.  After server is moded to be as Silc Server
12138           Library this structure will be more important.
12139
12140 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12141
12142         * Changed client librarys channel->clients table to SilcList and
12143           changed code accordingly.
12144
12145 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12146
12147         * Changed client's channel table to SilcList and changed code
12148           accordingly.  Also changed SilcChannelClientEntry to include back-
12149           pointer to the channel so that client entry can use that structure
12150           as list as well and we have fast cross-reference to the channel.
12151           This change dramatically decreased the complexity of channel
12152           handling with client entry and vice versa (removed one extra
12153           loop when searching for channel entry from many functions).
12154
12155         * Changed server->sim from table to SilcDList and changed code
12156           accordingly.
12157
12158         * NAMES command can now be used from user interface.  It will show
12159           the user list on the channel, neatly.
12160
12161         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
12162           Code now saves realname of the user if it becomes available.
12163
12164         * Renamed configure.in to configure.in.pre and made ./prepare
12165           script to automatically add correct version string to
12166           configure.in which it creates from configure.in.pre.
12167
12168 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12169
12170         * NAMES command reply now shows users mode with the nickname when
12171           joining to channel.
12172
12173         * Moved silc_client_ch[u]mode[_char] functions from
12174           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
12175           place sucks, they are utility functions and should be in some
12176           other file.
12177
12178         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
12179
12180         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
12181           cras.
12182
12183 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12184
12185         * Updated README.
12186
12187         * Added TRQ (efficient deque and list library) into lib/trq.  This is
12188           a very good list library that is currently used in the SILC.  Defined
12189           SilcList API over the library because I didn't like the API very
12190           much.  See lib/trq/silclist.h for the API and examples of how to
12191           use the API.  Fixed various places in the code to use the new
12192           SilcList API. The SilcList is meant for lists that has a structure
12193           already defined as a list.  It is not suitable to add just some
12194           context to the list (in TRQ, the context is the list actually).
12195
12196           So, I defined SilcDList that can be used for the purpose where
12197           predefined list structure does not exit.  This can be used as
12198           such list.  Now some context just can be added to the SilcDList.
12199           Currently this list is not used in the SILC just yet, though there
12200           are a lot places where this can replace dynamically allocated
12201           tables and I will fix these places, later, to use SilcDList.
12202           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
12203           and use TRQ internally).
12204
12205           Also fixed some annoying warning messages that the original TRQ
12206           code generated.  Also minor changes to TRQ's Makefile.in.
12207
12208         * Added support for querying by Client ID to both WHOIS and
12209           IDENTIFY commands into server, as required by the protocol.
12210
12211         * Removed method function pointers from SilcBuffer structure. They
12212           weren't used to anything and just increased the context size for
12213           no good reason.  This change also made silc_buffer_alloc and
12214           silc_buffer_free functions inline functions.
12215
12216         * Disabled command flooding detection support until it's fixed so
12217           that it accepts commands in but does not execute them more than once
12218           in two seconds.
12219
12220         * Added silc_net_localhost(), to return local hostname, into
12221           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
12222           that must be initialized before calling silc_client_init.
12223
12224         * Added new function: silc_server_send_notify_on_channels to send
12225           notify messages to all channels client has joined.  It is assured
12226           that the message is sent only once per client.
12227
12228         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
12229           lib/silcutil/silcutil.[ch] as silc_format function.  The new
12230           function is generic and is used by server as well, not only by
12231           the logging routines.
12232
12233         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
12234           the provided version string was not acceptable.  Added new function:
12235           silc_ske_check_version into lib/silcske/silcske.h.  The function
12236           must be implemented by the application (client or server) and it
12237           does not reside in the SKE library.  The function checks the version
12238           string remote end sent.
12239
12240         * Added back pointers (to opaque context and to SilcSocketConnection)
12241           into SilcPacketContext structure into lib/silccore/silcpacket.h.
12242
12243         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
12244           duplicate packet context structure.
12245
12246         * Changed `notify' client operation to send same arguments as client
12247           receives from server except for ID's.  ID's are mapped to correct
12248           ID entry and that is returned.  Also, if channel entry is not sent
12249           by server but the notify is for channel the channel entry is sent
12250           to application (otherwise application doesn't know that it is for
12251           channel (library gets it from packet's Destination ID)).
12252
12253         * Added silc_client_remove_from_channels into client library to
12254           remove a client from all channels it has joined to.  Used when
12255           received SIGNOFF notify from server.  Added also new function
12256           silc_client_replace_from_channels to replace old ID entry with
12257           new ID entry on all channels.  Used when received NICK_CHANGE
12258           notify from server.
12259
12260         * Fixed ID Cache list handling in silc_idlist_get_client in
12261           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
12262           to get (or query) client by ID.
12263
12264         * Updated TODO list.
12265
12266         * Added connection authentication status message defined by the
12267           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
12268           support for these into the code in client and server side.
12269
12270         * Added generic function silc_client_send_command to send any command
12271           with variable argument list.  Application should use this function
12272           to send commands if the command functions provided by the library
12273           does not suite for the application's user interface needs.
12274
12275         * Added new `failure' client operation.  Application is notified about
12276           received failure packet if client is executing a protocol.  In this
12277           case the protocol's execution has failed.
12278
12279         * Added SKE's end notify to send the SKE_SUCCESS notify message that
12280           is required by the protocol.
12281
12282         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
12283           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
12284           error at our end.
12285
12286         * Added status flag to SilcSKE object to indicate realtime status
12287           of the SKE protocol.
12288
12289         * Application receives now exactly same command reply arguments as
12290           the library receives from server.  However, if ID is received the
12291           corresponding ID entry is returned to the application (eg. Client
12292           ID is mapped to correct SilcClientEntry entry and that is returned).
12293           Changed command_reply client operation due to this change.
12294
12295         * Changed all ID's in commands and in command replys as ID Payloads.
12296           Change affected both client and server side codes.
12297
12298           All ID's sent in SILC network (with execption of ID's in SILC
12299           Packet header) are sent in ID Payload to support variable length
12300           ID's.
12301
12302         * Server now notifies nick changes and notifies all clients on
12303           the channels about the new nickname (about the new Client ID,
12304           actually).
12305
12306         * Implemented CMODE command to change channel modes. Supports all
12307           channel modes defined by the protocol specs except ban and invite
12308           lists. (Also, private channel key mode is supported but support for
12309           setting private channel key in client is missing, thus, this mode
12310           has no effect on client side (except that server requires that the
12311           client uses private channel key and normal channel traffic does not
12312           work anymore)).
12313
12314           Also, invite mode works per se, but INVITE command does not work
12315           yet correctly, so you can set channel as invite only channel but
12316           inviting clients to the channel does not work (it is yet to be
12317           thought what's the best way to do it).
12318
12319         * Added new command SILC_COMMAND_CUMODE to change user mode on the
12320           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
12321           Implemented CUMODE command to change user's mode on the channel.
12322           Supports all modes defined by the protocol specs.
12323
12324         * Added NAMES command reply to return users modes on the channel.
12325
12326         * Removed unnecessary and slow ciphers from lib/silccrypt.
12327
12328         * Set SO_KEEPALIVE option to connection sockets by default.
12329
12330         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
12331
12332         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
12333           redefined the Notify Payload into protocol specs.
12334
12335         * Added silc_id_payload_parse_id to get ID directly from raw
12336           ID payload data.
12337
12338 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12339
12340         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
12341           accept searching by Client ID as well.
12342
12343         * Added support for LEAVE and SIGNOFF notify types in client library.
12344
12345         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
12346           to parse ID Payload from raw data.
12347
12348 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12349
12350         * Added flags parameter into silc_ske_assemble_security_properties
12351           function in lib/silcske/silcske.[ch].
12352
12353         * Changed notify client operation to fit better for notify messages
12354           sent by server.  The notify payload received from server is now
12355           passed to the application (after parsing it to SilcNotifyPayload).
12356           It is application's responsibility to retrieve the arguments
12357           from the payload and show the message the way it wants.  The message
12358           sent by server is implementation specific.
12359
12360         * Changed public keys to comply with the protocol specification.
12361           Old public keys are not supported anymore and are not compatible.
12362
12363         * Removed nickname from Channel Payload as the latest draft removed
12364           it.  The client must resolve the nickname from the NAMES command
12365           reply received when it joined the channel.
12366
12367           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
12368
12369 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12370
12371         * Fixed some errors in protocol specification drafts.
12372
12373         * Created lib/silccore/silcnotify.c to implement Notify Payload
12374           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
12375           generic payloads described by protocol specifications.  The file
12376           includes implementations for ID Payload and Argument Payload.
12377
12378         * Changed Command Payload implementation to use the new Argument
12379           Payload.  Changed command_xxxx_payload to command_payload_xxxx
12380           to comply with SILC coding conventions.
12381
12382         * Added suppport for Argument Payload handling in Notify Payload
12383           implementation as protocol requires it.  Added the new support
12384           into server and client lib as well.
12385
12386 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12387
12388         * Added support for multiple nicknames on same channel.  [n] is
12389           added locally to the nickname if there are more than one same
12390           nicknames on the channel.
12391
12392         * Server now sends all nicknames that matched WHOIS request.
12393           Client also shows the list received from server.
12394
12395         * Added TOPIC command to client side.  User can now set and show
12396           current topic on channel.
12397
12398         * Added MOTD command to client and server.  Also, server sends the
12399           motd when client connects to the server.
12400
12401         * Changed version strings to comply ISO 8601.
12402
12403 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12404
12405         * Fixed protocol error handling in client library.  It should now
12406           cope even if the SKE fails for some reason.
12407
12408         * Made new protocol specification drafts for submitting to IETF.
12409
12410         * Implemented TOPIC command to server in silcd/command.c.
12411
12412         * Added two new notify types into lib/silccore/silcnotify.h:
12413           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
12414           notify nickname change and topic setting/change on a channel.
12415
12416         * API change of command_reply operation in client library.  The
12417           application gets now the status type received from server as well.
12418
12419 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12420
12421         * Removed the function just added to lib/silcutil/silcschedule.[ch].
12422
12423         * Cras fixed and optimized the packet handling even further and
12424           it should work now.  Minor change to the prototype of function
12425           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
12426
12427 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12428
12429         * Added new function into lib/silcutil/silcschedule.[ch]:
12430           silc_schedule_with_fd to select() a specified fd.  The function
12431           returns after timeout expires or data arrives or goes.  The
12432           function is used by packet routines to wait that all data is
12433           received from network.
12434
12435         * Fixed data reading from network in lib/silccore/silcpacket.c.
12436           The code now assures that all data is read from the fd and then
12437           continues packet processing.  This was a bug fix since the code
12438           used to drop some data in some circumstances.
12439
12440         * Added new function into lib/silcclient/client.[ch]:
12441           silc_client_start_key_exchange to start key exchange after
12442           connection has been established to server.  The code internally
12443           now uses this funtion but its main purpose was to provide it
12444           for applications that perform their own connecting.  After
12445           application has created a connection it merely calls this
12446           function to start the key exchange between client and server.
12447           The library takes care of everything else after that.
12448
12449           Updated also lib/silcclient/README to explain the usage of
12450           this new function.
12451
12452         * Do not send to application information that connection has
12453           been established.  Application gets notified it by connect
12454           operation anyway.
12455
12456 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12457
12458         * Applied cras's patch to add silc_schedule_one function.  The
12459           function runs scheduler once and returns.
12460
12461         * Fixed the scheduler after cras messed it up.  The timeout
12462           handling works now as it's supposed to work.
12463
12464         * Added into lib/silccore/ silcnotify.h to include notify
12465           message types support.  Changed silc_server_send_notify*
12466           functions, in server.[ch], to support those new notify types.
12467           Added the support for the notify types into client library,
12468           as well.  Added new notify client operation into ops.h in
12469           lib/silcclient/.
12470
12471         * Changed silc_server_packet_send_to_channel to send normal
12472           packets instead of just channel message packets.  The function
12473           is now used to send the notify packets to channels.  It is not
12474           used to send channel message packets anymore, as server never
12475           sends them anymore.
12476
12477         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
12478           va_arg()s as it seems to require it nowadays.  I guess, if SILC
12479           is compiled with older va_arg() the new code should work anyway.
12480
12481 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12482
12483         * Splitted core library.  Core library (lib/silccore) includes
12484           now only SILC protocol specific core (and common) components.
12485           Created new utility library (lib/silcutil) that includes more
12486           generic purpose stuff.  The stuff for util library was taken
12487           from the old core library.  This was minor and easy split.
12488
12489         * Created SILC Client Library (lib/silcclient) that includes
12490           implementation of the SILC client without user interface.  This
12491           was major move from silc/ directory.  The code has been changed
12492           so that it is transparent towards the user interface.  The
12493           silc/ directory includes now the same user interface as before
12494           and it uses the new client library.  Read lib/silcclient/README.
12495           Basicly, the client library performs everything else related
12496           to SILC except user interface handling.  Also, configuration
12497           files are considered to be part of user interface and library
12498           does not handle them.
12499
12500           This change also changed a lot of structures, function naming etc.
12501           Most important change was that SilcClientWindow object was
12502           renamed to SilcClientConnection in the client library.  Created
12503           also new file lib/silcclient/ops.h.  Also added new files
12504           silc/local_command.[ch] and silc/client_ops.[ch].
12505
12506           All these changes were made to make it easier for user interface
12507           designers to create what ever user interface for the SILC client
12508           they want.
12509
12510           It is also expected that the server will be moved to lib
12511           directory as well and SILC Server Library will be created;
12512           sometimes in the future.
12513
12514         * Removed Local commands from lib/silccore/silccommand.h as
12515           they are application specific and new client library does not
12516           handle any of those anymore.
12517
12518         * Several functions moved to lib/silcutil/silcutilc.[ch] from
12519           old client implementation in silc/.
12520
12521         * Added support for callback functions in SILC_LOG_* macros.
12522           Application can now set its own callbacks that will be called
12523           instead of using the default functions that will always print
12524           the debug messages to stderr (or stdout).  Also, debugging can
12525           now be disabled by setting silc_debug to FALSE and re-enabled by
12526           setting it to TRUE.  Note, that logging will still work even
12527           if debugging is disabled.
12528
12529           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
12530           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
12531           silc_log_reset_debug_callbacks.
12532
12533         * To enable debugging in silc client one must give now -d
12534           option on command line.
12535
12536         * Changed silc_schedule_init to automatically allocate task queues
12537           if they are not allocated before calling it.
12538
12539 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12540
12541         * Added GMP 3.1 into math library.
12542
12543 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12544
12545         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
12546           a channel in SILC network.  The packet is used by servers and
12547           routers to notify other routers that user has left a channel.
12548           This little feature was missing until now.  Added the feature
12549           to protocol specification as well.
12550
12551           Added functions: silc_server_send_remove_channel_user and
12552           silc_server_remove_channel_user into server.[ch].
12553
12554         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
12555           lib/silccore/silcpacket.h.  However, they are not implemented
12556           yet.
12557
12558 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12559
12560         * Fixed joining to a channel and sending channel messages
12561           between server and router.  The channel message sending should
12562           now work inside a cell.
12563
12564 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12565
12566         * Fixed the private message sending between server and router.
12567           The private message sending should now work inside a cell.
12568
12569         * Added silc_server_replace_id into server.[ch] to replace
12570           existing ID in the SILC network.
12571
12572         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
12573           and silc_idlist_replace_server_id into idlist.[ch] in server.
12574
12575 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12576
12577         * Fixed the server to server connections.  Server can again now
12578           connect to router.  Router to router connections probably does
12579           not work just yet.
12580
12581 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12582
12583         * Added dynamic protocol registering support.  Now protocols can
12584           registered and unregistered on the fly.  Patch by cras.
12585
12586 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12587
12588         * Added lib/contrib directory to hold routines that some platforms
12589           don't have but are needed by SILC.
12590
12591         * Added getopt.c, getopt1.c and getopt.h from GNU C library
12592           into lin/contrib to provide getopt() and getopt_long() for
12593           those who don't have it.
12594
12595 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12596
12597         * Added AWAY command to client.  When away message is set and
12598           client receives a private message packet the client automatically
12599           replies to the sender with the away message.
12600
12601         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
12602           bug seemed to be the cause of recent problems when compiling
12603           with gcc-2.95.
12604
12605         * Added version detection support to SKE protocol specification
12606           and added the new changes to the SKE implementation as well.
12607           There were other minor changes in the SKE protocol as well.
12608
12609           Many changes in lib/silcske/silcske.[ch] and in
12610           lib/silcske/payload.[ch].
12611
12612         * Added ^U functionality, clear input line.  Patch from cras.
12613
12614 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12615
12616         * Mainly small bugfixes on core library.  Fixed some debugging
12617           logging and buffer overflow in silclog.c.
12618
12619         * Updated config.sub and config.guess on the distribution tree.
12620
12621 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12622
12623         * Added command lagging support in server. Client may execute
12624           commands now only once in two seconds.
12625
12626 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12627
12628         * Optimized packet reception. MAC computation and checking is now
12629           also more optimized.  A lot previously duplicated code is now
12630           used as generic by both client and server.
12631
12632         * Fixed key pair generation in clientutil.c
12633
12634 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12635
12636         * Added into lib/silccore/silcbufutil.[ch] new function;
12637           silc_buffer_realloc.
12638
12639         * Moved generic packet sending/encryption functions to
12640           lib/silccore/silcpacket.[ch] from client and server.  Some
12641           rewriting of the functions.
12642
12643         * Moved all generic packet reception/decryption functions to
12644           lib/silccore/silcpacket.[ch] from client and server.  The
12645           packet processing is now much cleaner in both client and server.
12646           These were major changes in both client and server.
12647
12648         * Created many common functions in server to do packet sending.
12649           Previously code were duplicated a lot, this has been removed
12650           with these changes.
12651
12652 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12653
12654         * Rewrote major parts of the ID cache system.  Don't know
12655           whether it is better now or not but at least the API is more
12656           cleaner now.
12657
12658         * Major rewrite on ID cache stuff on client because of the ID
12659           cache API changes.  Added idlist.c to client.
12660
12661         * Also major rewrite on ID cache stuff on server as well.
12662           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12663           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12664           in hand, instead they are all put into the ID cache system now.
12665           All server_idlist_* routines uses ID cache now instead of
12666           traversing its own lists (those lists does not exist anymore).
12667           SilcIDList though still exists.  Also, SilcXXXEntry's are
12668           now pointers.
12669
12670 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12671
12672         * Finally made the SKE implementation compliant to the protocol
12673           specification.  All mp integers are now binary encoded as
12674           opposed being HEX encoded.
12675
12676         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12677           from binary data.
12678
12679         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12680           functions: silc_[encode/decode]_pem.  Also added function
12681           silc_encode_pem_file to PEM encode with newlines ('\n') for
12682           saving into a file.
12683
12684         * SILC public keys are now encoded either PEM or binary.  Same
12685           option is for private keys as well.  By default private keys
12686           are binary encoded and public keys PEM encoded.  Silly HEX
12687           encoding were removed.
12688
12689         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12690           function to create fingerprints.
12691
12692         * Fixed a bug in SHA1; does not change the original data anymore.
12693
12694         * Partly implemented INFO command on client and server side.
12695           Fixed CLEAR command.  Changes to SERVER command; show current
12696           server(s) when giving command without arguments.  Added
12697           VERSION command to client.
12698
12699         * Added check to server that unregistered connections cannot
12700           execute commands (unless it is specificly allowed).
12701
12702 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12703
12704         * Fixed screen refresh.
12705
12706         * Fixed channel joining bug from client.  On some circumstances
12707           client tried to join to a channel it had already joined.
12708
12709         * Added public key verification process into client's protocol.c.
12710           The client now verifies the public key from user and saves
12711           it into ~./silc/serverkeys/ directory.
12712
12713           Added into: clientutil.[ch]: silc_client_verify_server_key.
12714
12715         * Changed SKE protocol's silc_ske_initiator_finish function
12716           to accept callback function that verifies the received public
12717           key.  Removed old silc_ske_verify_public_key function.
12718
12719 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12720
12721         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12722           silc_pkcs_private_key[_data]_set.
12723
12724         * Made the password and public authentication more cleaner in
12725           server's protocol.c.
12726
12727         * Removed historic and obsolete protocol `channel_auth' from
12728           both client and server.
12729
12730         * Removed wrong way of sending command status messages from
12731           server to client in server's command.c.  The old way violated
12732           protocol specification.
12733
12734           Changes to silccore/silccommand.[ch]: removed
12735           silc_command_encode_status_payload -> not needed anymore,
12736           changed silc_command_encode_payload_va to accept extra
12737           argument on variable argument list.  The argument type must
12738           now be provided to the function.  Also, added new function:
12739           silc_command_encode_reply_payload_va which is same as
12740           normal command_encode_payload_va except command status type
12741           is provided as extra argument.
12742
12743 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12744
12745         * Added ~./silc directory handling.  The directory includes the
12746           public and private keys for the client.
12747
12748           Added silc_client_check_silc_dir, silc_client_create_identifier
12749           and silc_client_load_keys.
12750
12751         * Implemented SILC protocol compliant public key.  Added public
12752           and private key saving to and loading from files.
12753
12754           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12755           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12756           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12757           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12758           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12759
12760           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12761           silc_pkcs_load_[public/private]_key.
12762
12763 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12764
12765         * Added silc_server_get_route (route.[ch]) to get connection
12766           data for the fastest route for given ID.
12767
12768         * Implemented INVITE command on client and server.  The command
12769           were re-defined in the SILC Protocol Specification and the
12770           implementation now complies with the specification.
12771
12772         * Implemented PING command on client and server.
12773
12774         * Implemented NAMES command on client and server.  The server side
12775           supports currently only normal server not router server yet.
12776           Some changes to NAMES definition in SILC protocol specification.
12777
12778 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12779
12780         * Implemented LEAVE command on client and server.
12781
12782         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12783           again.  This change was made to the protocol as well.  Server
12784           should not violate the protocol specification anymore.
12785
12786 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12787
12788         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12789           was tested.  SOCKS4 was not but should work anyway.