updates.
[silc.git] / CHANGES
1 Sat Nov  3 23:23:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Do not free packet engine before uninitializing scheduler.
4           Do not disconnct already disconnected streams.  Affected
5           files are in apps/silcd/.
6
7 Sun Sep 30 15:16:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
8
9         * Fixed channel private key deleting when deleting the channel.
10           Affected file is lib/silcclient/client_channel.c.
11
12 Sun Sep  9 17:52:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
13
14         * SILC Toolkit 1.1.3.
15
16         * Fixed possible buffer overflows from SILC Config code.
17           Patch from Jérémy Bobbio.  Affected file is
18           lib/silcutil/silcconfig.c.
19
20 Sun Aug 26 12:28:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
21
22         * Fixed TIMEOUT handling in user info resolving during JOINing,
23           fixes crash.  Affected file is lib/silcclient/client_notify.c.
24
25         * Fixed mandatory UN and HN SILC public key identifier checking
26           (both must be present).  Affected file is
27           lib/silccrypt/silcpk.c.
28
29 Tue Aug  7 20:56:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
30
31         * Fixed alignment issues with 64-bit CPUs.  Affected files
32           are lib/silcutil/silcschedule.c and unix/silcunixschedule.c.
33
34         * Added "There are now xx nick's" to "are xx nicks".  Affected
35           file is apps/irssi/src/fe-common/silc/module-formats.c.
36
37 Sat Aug 4 18:37:22 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
38
39         * Fixed USERS command user mode handling (integer overflow).
40           Affected file is lib/silcclient/command_reply.c.
41
42 Thu Jul 19 21:08:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
43
44         * Fixed big-endian issues from aes implementation.  Affected
45           files are lib/silccrypt/aes.c.
46
47         * Fixed lib/silcutil/silcatomic.h compilation on IA64.  Patch
48           from Jérémy Bobbio.
49
50         * Fixed public key identifier parsing to check lengths
51           correctly.  Affected file is lib/silccrypt/silcpk.c.
52
53 Wed Jul  4 08:06:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
54
55         * SILC Toolkit 1.1.2.
56
57         * SILC Client 1.1.2.
58
59 Mon Jul  2 17:28:47 CEST 2007  Pekka Riikonen <priikone@silcnet.org>
60
61         * In silc_client_free check that scheduler is allocated before
62           trying to free it.  Affected file is lib/silcclient/client.c.
63
64         * Fixed buffer overflow in NICK_CHANGE notify.  The destination
65           buffer for old nickname was too small.  Affected file is
66           lib/silclient/client_notify.c.
67
68 Sun Jul  1 19:15:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
69
70         * SILC Server 1.1 Beta1.
71
72 Sun Jul  1 12:40:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
73
74         * Added support for rekey with PFS when using CTR mode
75           encryption.  Affected file is lib/silcske/silcske.c.
76
77         * Added silc_idcache_move that can be used to move entries
78           between caches.  Affected files are
79           lib/silcapputil/silcidcache.[ch].
80
81         * Added better checks for invalid argument and notify payloads.
82           Affected files are lib/silccore/silcnotify.c and
83           silcargument.c.
84
85         * Fixed SILC_PACKET_FLAG_LONG_PAD bitmask value.  Affected
86           file lib/silccore/silcpacket.h.
87
88 Sat Jun 30 21:48:08 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
89
90         * Set the destination ID to packet stream as SKE responder
91           if ID was present in key exchange packet.  Affected file
92           is lib/silcske/silcske.[ch].
93
94         * Handle also zero timeouts in the scheduler notify callback
95           to avoid problems with SILC Plugin.  Affected file is
96           apps/irssi/src/silc/core/silc-core.c.
97
98 Thu Jun 28 19:19:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
99
100         * SILC Client 1.1.1.
101
102 Sun Jun 24 18:47:55 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
103
104         * SILC Toolkit 1.1.1.
105
106         * Compile sources with _GNU_SOURCE on Linux systems.  Affected
107           file is configure.ad.
108
109 Sun Jun 24 16:33:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
110
111         * Fixed Unix signal task dispatching to not lock the signals
112           when dispatching the callback to avoid deadlocks.  Affected
113           file is lib/silcutil/unix/silcunixschedule.c.
114
115 Sun Jun 24 14:43:21 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
116
117         * Fix configure output for with-plugin.  Affected file is
118           apps/irssi/configure.ad
119
120 Tue Jun 19 17:05:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
121
122         * Added SILC_VERSION macro for checking package versions at
123           compile time.  Affected files are configure.ad,
124           includes/silc.h.in and includes/silcversion.h.in.
125
126 Mon Jun 18 23:47:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
127
128         * Use SILC_VERIFY to assert that silc_rwlock_wrlock can be
129           called only once per thread on Unix.  Affected file is
130           lib/silcutil/unix/silcunixthread.c.  Added same for mutex
131           as well.   Documented same on the API in 
132           lib/silcutil/silcmutex.h.
133
134         * Fixed USERS command reply write-lock unlocking.  Affected file
135           is lib/silcclient/command_reply.c.
136
137 Mon Jun 18 08:14:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
138
139         * Fixed silc_create_key_pair to check for valid identifier.
140           Affected file is lib/silcapputil/silcapputil.c.
141
142 Sun Jun 17 20:08:26 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
143
144         * Rewrite signed public message handling, adopting the new
145           hilight interface.  Affected file is
146           apps/irssi/src/fe-common/silc/fe-silc-messages.c
147
148 Thu Jun 14 21:15:31 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
149
150         * Fix off by one error when loading modules.  Affected file is
151           apps/irssi/src/core/modules-load.c
152
153         * Don't delete hilight entry (because it's just a pointer, not a
154           copy).  Affected file is 
155           apps/irssi/src/fe-common/silc/fe-silc-messages.c
156
157 Mon Jun 11 22:10:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
158
159         * Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution
160           which can be used to check for Toolkit version in third-party
161           software.  Affected file is configure.ad, includes/silc.h.in.
162
163 Sun Jun 10 17:32:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
164
165         * Added support for channel@server channel name strings to
166           client library (SILC protocol version 1.3 change).  Affected
167           files are lib/silcclient/silcclient_entry.h, client_entry.c.
168
169         * Added full_nicknames and full_channel_names settings to
170           SilcClientParams that can be used to specify whether client
171           library returns full nickname and channel name strings.
172           Full strings are nick@server and channel@server.  Affected
173           file is lib/silcclient/client_entry.c and command.c.
174
175 Sat Jun  9 19:43:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
176
177         * Fixed unix connecting failure to return error code correctly.
178           Affected file is lib/silcutil/unix/silcunixnet.c.
179
180 Fri Jun  8 23:32:33 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
181
182         * Fixed SKE timeout double free crash.  Affected file is
183           lib/silcske/silcske.c.
184
185         * Fixed MIME multipart decoding buffer overflow.  Affected file
186           is lib/silcutil/silcmime.c.  Thanks to Matt Miller for patch.
187
188 Fri Jun  8 18:39:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
189
190         * Fixed connection auth protocol timeout crash.  Affected
191           file is lib/silcske/silconnauth.c.
192
193         * Fixed FSM machine finishing to check for existing threads
194           at the final free callback to allow time for the threads to
195           finish.  Affected file lib/silcutil/silcfsm.c.
196
197 Thu Jun  7 21:25:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
198
199         * Fixed silc_client_get_clients_local to check the nick's
200           server also if nick@server nickname string is given to the
201           function.  Affected file is lib/silcclient/client_entry.c.
202
203 Wed Jun  6 18:33:05 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
204
205         * Added notify callback to silc_schedule_init which can be used to 
206           set a notify callback for scheduler which is called when task is
207           added to scheduler or deleted from scheduler.  Affected file
208           is lib/silcutil/silcschedule.[ch].
209
210         * Dispatch timeout tasks after dispatching FD tasks if the timeout
211           was very short.  Affected file is lib/silcutil/silcschedule.c.
212
213         * Rewrote the SILC scheduler handling in SILC Client to not poll
214           every few msecs but to use the new notify callback.  Affected 
215           file is apps/irssi/src/silc/core/silc-core.c.
216
217         * Fixed SFTP client library read buffer size which was too small.
218           Affected file is lib/silcsftp/sftp_client.c.
219
220         * Fixed file transfer crash bug in /QUIT in SILC Client.  Close
221           the FTP sessions before quitting the client.  Affected file
222           is apps/irssi/src/silc/core/silc-servers.c.
223
224 Tue Jun  5 20:48:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
225
226         * Fixed silc_packet_get_ids to decode the IDs correctly.
227           Affected file is lib/silccore/silcpacket.c.
228
229         * Fixed silc_client_get_clients_local to parse correctly nickname
230           string that may have server name in it (nick@server) regardless
231           whether it was formatted nickname or not.  Affected file is
232           lib/silcclient/client_entry.c.
233
234 Mon Jun  4 22:02:53 CEST 2007  Jochen Eisinger <jochen@penguin-breeder.org>
235
236         * Only destroy sendbuffers, if they still exist (they cease to
237           exist during /upgrade).  Affected file is
238           apps/irssi/src/silc/core/silc-servers.c
239
240 Mon Jun  4 21:24:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
241
242         * Removed --enable-silc-plugin.  Added --with-silc-plugin.
243           Affected files are configure.ad, lib/configure.ad,
244           apps/irssi/configure.ad, apps/irssi/configure.in,
245           apps/irssi/scripts/Makefile.am,
246           apps/irssi/scripts/examples/Makefile.am,
247           apps/irssi/src/silc/core/silc/Makefile.am,
248           apps/irssi/src/fe-common/silc/Makefile.am.
249
250 Mon Jun  4 08:35:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
251
252         * SILC Client 1.1.
253
254 Sun Jun  3 14:00:09 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
255
256         * Fixed DESTDIR handling in make install.
257
258 Sat Jun  2 21:04:32 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
259
260         * SIM modules are not delivered to SILC CLient distribution
261           anymore.
262
263         * Changed default installation path from /usr/local/silc to
264           /usr/local for all distributions.
265
266         * Removed --with-etcdir and --with-docdir.  The etcdir is now
267           the system's default.  The Docdir is system's default.
268
269 Sat Jun  2 00:51:57 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
270
271         * If public key/private key loading fails set the return
272           pointer to NULL.  Affected file is lib/silccrypt/silcpkcs.c.
273
274         * If private key loading fails in silc_load_key_pair free the
275           loaded public key.  Affected file is
276           lib/silcapputil/silcapputil.c.
277
278         * Fixed key pair loading crash with SILC Plugin if key pair
279           loading fails.  Affected file is
280           apps/irssi/src/silc/core/silc-core.c.
281
282         * Fixed SILC Client help and script file installation path
283           to go to prefix/share/silc.  Affected files are
284           apps/irssi/src/scripts/Makefile.am and
285           apps/irssi/docs/help/Makefile.am.gen.
286
287 Thu May 31 16:49:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
288
289         * Fixed UTC offset minutes to be actually minutes.  Affected
290           file is lib/silcutil/silctime.c.
291
292 Thu May 31 09:40:56 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
293
294         * SILC Toolkit 1.1.
295
296         * Added support for checking for timezone and tm_gmtoff.
297           Affected files are configure.ad and lib/silcutil/silctime.c.
298
299 Wed May 30 18:46:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
300
301         * Added silc-toolkit.spec.in RPM spec file.
302
303 Mon May 28 23:21:39 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
304
305         * Fixed nickname formatting crash when updating existing
306           client entry.  Affected file is lib/silcclient/client_entry.c.
307
308         * Fixed MIME object encoding in attribute payload encoding.
309           Affected file is lib/silccore/silcattrs.c.
310
311 Mon May 28 09:02:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
312
313         * SILC Client 1.1 Beta6
314
315 Sun May 27 20:38:30 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
316
317         * Copy SILC Plugin's libfe_common_silc.so to libfe_silc.so so
318           that user's don't have to do it manually.  Affected file
319           is apps/irssi/src/fe-common/silc/core/Makefile.am.
320
321 Thu May 24 15:30:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
322
323         * SILC Toolkit 1.1 Beta4.
324
325         * Fixed channel and server entry freeing in client library.
326           Affected file is lib/silcclient/client_entry.c.
327
328         * Do not allow stopping client before it has been started.
329           Affected file is lib/silcclient/client.c.
330
331 Wed May 23 23:21:03 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
332
333         * Fixed formatted nickname renaming to rename also irssi's
334           nicklist (/NAMES etc).  Affected file is
335           apps/irssi/src/silc/core/client_ops.c.
336
337         * Fixed SILC Plugin crash when stopping client library before
338           it has been started.  Affected file is
339           apps/irssi/src/silc/core/silc-core.c.
340
341 Tue May 22 17:18:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
342
343         * For SILC Client and SILC Server check for 1.1 Toolkit
344           in configure.  Affected file is configure.ad.
345
346         * Added better library linking flags and orders for SILC Client.
347           Affected file is configure.ad, Makefile.defines_int.in and
348           apps/irssi/src/fe-text/Makefile.am
349
350 Mon May 21 08:26:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
351
352         * SILC Client 1.1 Beta5.
353
354 Sun May 20 18:34:22 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
355
356         * Add hooks for Irssi 0.8.11 module functions.  Affected file
357           is apps/irssi/src/fe-common/silc/fe-common-silc.c
358
359 Sat May 19 14:46:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
360
361         * Fixed passphrase authentication with server.  Affected file
362           is lib/silcclient/client_connect.c.
363
364         * Fixed passphrase authentication as responder.  Affected file is
365           lib/silcske/silcconnauth.c.
366
367         * Changed SilcAskPassphrase and SilcGetAuthMeth callbacks to
368           return data as const.  Affected file is
369           lib/silcclient/silcclient.h.
370
371         * Fixed timeout calculation in Symbian scheduler.  Affected
372           file is lib/silcutil/symbian/silcsymbianscheduler.c.
373
374 Fri May 18 21:10:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
375
376         * Do not uninitialize u.m.threads atomic int in finish but in
377           free.  Fixes crash on any platform using atomic operations
378           using mutexes (like Symbian).  Affected file is
379           lib/silcutil/silcfsm.c.
380
381         * Fixes Symbian scheduler wakeup synchronization.  Affected file
382           is lib/silcutil/symbian/silcsymbianscheduler.c.
383
384 Fri May 18 18:10:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
385
386         * Fixed nickname formatting to handle already formatted nicknames
387           better.  Affected file is lib/silccilent/client_entry.c.
388
389         * Added "foo#2 appears as foo" support to SILC Client when user
390           leaves or quits and one formatted nickname remain.  Affected file 
391           is apps/irssi/src/silc/core/client_ops.c.
392
393         * Send SilcChannelEntry to application in SILC_NOTIFY_TYPE_SIGNOFF.
394           Affected file is lib/silcclient/client_notify.c.
395
396 Thu May 17 18:05:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
397
398         * Fixed silc_show_public_key to not free public key in case of
399           failure.  Affected file is lib/silcapputil/silcapputil.c.
400
401 Thu May 17 17:09:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
402
403         * SILC Toolkit 1.1 Beta3.
404
405         * Porting Toolkit to Symbian.  It should work while some sporadic
406           odd crashes remain.  However I was able to run mybot on SILCNet.
407           Basically tested scheduler, net routines, socket  routines,
408           threads and some other utility routines.  Affected files are
409           in lib/silcutil/symbian/.
410
411 Thu May 17 11:57:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
412
413         * Show realname and email address from public key when verifying
414           cached public keys with GETKEY.  Affected files are
415           apps/irssi/src/fe-common/module-formats.[ch] and
416           apps/irssi/src/silc/core/client_ops.c.
417
418 Wed May 16 20:41:04 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
419
420         * Include SILC Plugin theme.  Affected file is apps/irssi/plugin.theme
421
422         * Include SILC Plugin /silc command help.  Affected file is
423           apps/irssi/docs/help/silc
424
425         * Create channels before joining them.  Affected file is
426           apps/irssi/src/silc/core/client_ops.c
427
428 Wed May 16 18:59:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
429
430         * Fixed channel private key listing with /key.  Affected file
431           is apps/irssi/src/silc/core/silc-channels.c.
432
433         * Fixed the public headers from anonymous structures.  Affected
434           files are lib/.
435
436         * Changed silc_buffer_*len macros to inline functions.  Affected
437           file is lib/silcutil/silcbuffer.h.
438
439 Wed May 16 10:21:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
440
441         * Fixed nickname format parsing in JOIN notify handling and
442           in WHOIS command reply.  Affected file is
443           apps/irssi/src/silc/core/client_ops.c.
444
445 Wed May 16 09:34:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
446
447         * SILC Client 1.1 Beta4.
448
449 Tue May 15 23:55:41 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
450
451         * Added SILC_VERIFY macro which is equivalent to SILC_ASSERT
452           but is compiled always in.  Affected file is 
453           lib/silcutil/silclog.h.
454
455         * Use SILC_VERIFY in FSM macros instead of SILC_ASSERT which is
456           not there in release builds.  Affected file is
457           lib/silcutil/silcfsm.h.
458
459 Tue May 15 21:19:09 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
460
461         * SILC Client 1.1-beta3
462
463 Mon May 14 23:20:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
464
465         * Added silc_utf8_c2w and silc_utf8_w2c to do UTF-8 to widechar
466           and widechar to UTF-8 conversions.  Affected files are
467           lib/silcutil/silcutf8.[ch].
468
469 Mon May 14 19:45:14 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
470
471         * Include a README for the SILC Plugin
472
473 Sun May 13 22:08:59 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
474
475         * Adopt perl Makefiles for SILC Plugin.
476
477 Sun May 13 18:27:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
478
479         * Fixed client library initialization when the running callback
480           is not given to silc_client_init.  Affected file is
481           lib/silcclient/client.c.
482
483         * Fixed Symbian compilation problems around the tree.  Added
484           new Carbide.c++ project files to symbian/ directory.
485
486         * Fixed SilcLog API to work on Symbian.  On Symbian it doesn't
487           use any globals.  Affected files are lib/silcutil/silclog.c
488           and silclog_i.h.
489
490 Sun May 13 16:54:35 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
491
492         * Fix several warnings in Irssi's Makefiles.
493
494 Sun May 13 12:16:30 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
495
496         * Disable ASM if --with-pic was given.  Affected file is
497           lib/silccrypt/configure.ad
498
499 Fri May 11 19:10:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
500
501         * Wakeup scheduler in silc_fsm_continue and silc_fsm_next_later
502           in case they are called from a thread.  Affected file is
503           lib/silcutil/silcfsm.c.
504
505         * Fixed WIN32 thread creation to handle the Tls correctly.
506           Affected file is lib/silcutil/win32/silcwin32thread.c.
507
508 Thu May 10 18:29:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
509
510         * SILC Toolkit 1.1-beta2.
511
512 Thu May 10 18:21:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
513
514         * Fixed silc_net_tcp_connect crash on Unix and Win32.  Handle
515           the socket async operation correctly.  Changed that DNS lookup
516           is now done during connecting.  Affected files are
517           lib/silcutil/[unix|win32]/silc[unix|win32]net.c.
518
519         * Changed also silc_net_tcp_connect on Symbian to do DNS lookup.
520           Affected file is lib/silcutil/symbian/silcsymbiannet.c.
521
522         * Optimize silc_net_gethostbyname to check if the name is already
523           IP address.  Affected file is lib/silcutil/silcnet.c.
524
525 Wed May  9 19:51:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
526
527         * Print filename instead of empty function name in debug output
528           on WIN32.  Affected files are lib/silcutil/silclog_i.h and
529           silclog.c.
530
531         * Rewrote WIN32 SILC Scheduler.  It now handles non-blocking file 
532           descriptors and sockets better.  Though, room for optimization
533           remains.  Affected file is lib/silcutil/win32/silcwin32schedule.c.
534
535         * Removed silc_net_win32_[init|uninit].  They are called now
536           automatically when SILC Scheduler is allocated.  Wrote IPv4
537           address parser because inet_addr seemed not to work on my WIN32.
538           Affected file is lib/silcutil/win32/silcwin32net.c.
539
540         * Improved socketstream.h and stream.h documentation.
541
542 Tue May  8 18:13:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
543
544         * Changed private message waiting API in client library to make
545           it work better with multiple waiting threads.  The waiting is
546           not always per client entry instead of per connection.  Affected
547           files are lib/silcclient/client_prvmsg.c, client.h and
548           silcclient.h.
549
550         * Changed silc_packet_wait_init function to accept the the expected
551           Source ID of the packet as argument.  If specified only packets
552           with the specified types and Source ID are delivered.  Affected
553           files are lib/silccore/silcpacket.[ch].
554
555         * Fixed file transfer disconnection crash when closing the session
556           directly in the monitor callback after disconnection.  Affected
557           file is lib/silcclient/client_ftp.c.
558
559         * Make Toolkit compile on WIN32.  Affected files in win32/
560           and in lib/silcutil/win32/.
561
562         * Changed silc_compare_timeval to return negative, zero or
563           positive instead of just TRUE or FALSE.  This fixes 0 timeout
564           task dispatching on Windows.  Affected files are
565           lib/silcutil/silctime.[ch] and silcschedule.c.
566
567 Mon May  7 18:18:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
568
569         * Fixed CMODE channel auth public key retrieval.  Affected
570           file is lib/silcclient/command.c.
571
572         * Fixed CMODE command reply to return channel public keys
573           correctly.  Affected files are lib/silcclient/command_reply.c
574           and client_channel.c.
575
576 Sun May  6 12:43:19 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
577
578         * Added current channel key cipher name and HMAC name to
579           SilcChannelEntry.  Fixed channel private key creation.
580           Affected files are lib/silcclient/client_channel.c,
581           client_entry and silcclient_entry.h.
582
583         * Allow formatted nicknames as input to silc_client_get_clients
584           and silc_client_get_clients_whois.  Affected file is
585           lib/silcclient/client_entry.c.
586
587         * Fixed silc_message_payload_free crash.  Affected file is
588           lib/silccore/silcmessage.c.
589
590         * Added SILC_STATUS_ERR_NO_SUCH_PUBLIC_KEY to
591           lib/silccore/silcstatus.h.
592
593 Thu May  3 18:07:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
594
595         * Imported libtommath 0.41.  Renamed all mp_* functions to
596           tma_mp_* functions to avoid rare linking problems on systems
597           with mp_* functions.  Affected files are in lib/silcmath/.
598
599 Wed May  2 17:46:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
600
601         * SILC Toolkit 1.1 Beta1.
602
603 Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
604
605         * Set the server and router operator modes to local entry after
606           successful OPER or SILCOPER commands.  Affected file is
607           lib/silcclient/command_reply.c.
608
609 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
610
611         * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
612           and other smaller APIs to WIN32.  Affected files are in
613           lib/silcutil/win32/.
614
615         * Changed the various regex APIs as generic code in util library.
616           Affected files are lib/silcutil/silcstrutil.[ch].
617
618 Sat Apr 28 13:47:47 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
619
620         * Ported SILC Server to the new Toolkit API, working towards
621           SILC Server 1.1.  Affected files are in apps/silcd/.
622
623         * Added silc_skr_del_public_key, silc_skr_[ref|unref]_public_key
624           to lib/silcskr/silcskr.[ch].
625
626         * Fixed SILC public key copying to copy the identifier also.
627           Affected file is lib/silccrypt/silcpk.c.
628
629         * Added silc_packet_error_string to lib/silccore/silcpacket.[ch].
630
631         * Fixed OPER and SILCOPER passphrase asking in Client library.
632           Affected file is lib/silcclient/command.c.
633
634 Tue Apr 24 17:55:24 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
635
636         * Fixed command queue enabling after connecting to server.
637           The comparisons was from after changing to silc_utf8_strcasecmp.
638           Affected file is apps/irssi/src/silc/core/silc-servers.c.
639
640         * Fixed nickname setting with own client entry with 1.3 protocol
641           version server.  Affected file lib/silcclient/client_register.c.
642
643         * Ignore error notify for local client entry.  Affected file is
644           lib/silcclient/client_notify.c.
645
646         * Implemented responder rekey to SKE library.  Affected files are
647           lib/silcske/silcske.[ch].
648
649         * Fixed connection auth protocol completion sending.  Affected
650           file lib/silcske/silcconnauth.c.
651
652 Mon Apr 23 17:20:01 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
653
654         * Do not call TCP network listener callback with any error
655           status, as documented.  Affected file is
656           lib/silcutil/unix/silcunixnet.c.
657
658 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
659
660         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
661
662         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
663           Changed silc_skr_find to have SilcSchedule argument and removed
664           it from silc_skr_[alloc|init].  Affected files are
665           lib/silcskr/silcskr.[ch].
666
667         * Allow NULL id for silc_idcache_add.  Affected file is
668           lib/silcapputil/silcidcache.c.
669
670         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
671           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
672           Fixed also channel message encryption with router-to-router
673           packets.
674
675         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
676
677         * Added silc_net_get_error_string, silc_net_listener_get_ip and
678           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
679
680 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
681
682         * Add option --enable-silc-plugin.  Affected files are
683           apps/irssi/configure.{ad,in}
684
685         * Only compile the SILC Plugin if required.  Affected files are
686           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
687
688         * Conditionally build the SILC Plugin.  Affected files are
689           apps/irssi/src/silc/core/Makefile.am,
690           apps/irssi/src/fe-common/silc/Makefile.am
691
692         * Backout delayed protocol exit and replace with a lame busy
693           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
694           apps/irssi/src/silc/core/silc-core.c
695
696         * Fix key generation for SILC Plugin.  Affected file
697           apps/irssi/src/silc/core/clientutil.c
698
699 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
700
701         * Only pass -rpath to libtool when building shared libraries.
702           Affected file lib/Makefile.ad
703
704         * Removing the stray "s" in configure.ad
705
706 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
707
708         * Redraw the screen after creating a new key.  Affected file
709           apps/irssi/src/silc/core/clientutil.c
710
711 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
712
713         * Added SILC Client setting /set nickname_format that specifies
714           the nickname format string.  Changed default nickname format
715           string to "%n#%a".  Affected file is
716           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
717
718         * Fixed nickname parsing with WHOIS command to accept formatted
719           nicknames.  Changed the silc_client_get_clients_local to allow
720           the searched nickname to be formatted nickname.  Removed %s and
721           %S nickname formatters.  Affected files are in lib/silcclient/.
722
723         * Added silc_client_nickname_parse to Client library API.  Affected
724           file is lib/silcclient/silcclient.h.
725
726         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
727           commands.  Affected file are
728           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
729
730 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
731
732         * Incorporate SILC Plugin patches.  Affected files are
733           apps/irssi/src/fe-common/silc/module-formats.{c,h},
734           apps/irssi/src/silc/core/clientutil.{c,h},
735           apps/irssi/src/silc/core/silc-core.c,
736           apps/irssi/src/silc/core/silc-chatnets.{c,h},
737           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
738           apps/irssi/src/fe-common/silc/module.h
739
740 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
741
742         * In notify handling resolve user entries many times if the
743           resolving timedout.  Affected file lib/silcclient/client_notify.c.
744
745         * silc_client_get_clients_local do not return any invalid entries.
746           Affected file is lib/silcclient/client_entry.c.
747
748         * Do not print "there are now xx user on this channel" for users
749           that actually aren't anymore on the channel.  Affected file
750           is apps/irssi/src/client_ops.c.
751
752 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
753
754         * When joining channels with a password given in the config file,
755           use it.  Also use it when cycling (it would be better to get
756           the password from the server, but this isn't possible in SILC).
757           Affected files apps/irssi/src/silc/core/silc-servers.c,
758           apps/irssi/src/silc/core/silc-channels.c
759
760 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
761
762         * Import perl script for sign_messages from silc-plugin.  Affected
763           file apps/irssi/scripts/silc.pl
764
765 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
766
767         * Only wait for a nick on connecting, when it differs
768           (not counting case) from the username.  Affected file
769           is apps/irssi/src/silc/core/silc-servers.c
770
771 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
772
773         * Use time settings for lag settings.  Affected file is
774           apps/irssi/src/silc/core/silc-lag.c
775
776 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
777
778         * Added silc_thread_yield.  Affected file is
779           lib/silcutil/silcmutex.h.
780
781 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
782
783         * Fixed WHOIS command and requested attributes handling in
784           client library.  Affected files are lib/silcclient/command.c
785           and lib/silcclient/client_attrs.c.
786
787         * Fixed silc_time_value to actually work.  Added new function
788           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
789
790 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
791
792         * SILC Client 1.1 beta2.
793
794 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
795
796         * Fixed client to properly abort TCP stream creation when
797           giving /QUIT.  Affected file
798           apps/irssi/src/silc/core/silc-servers.c.
799
800         * Fixed several connecting aborting crashes from the client
801           library, packet engine and socket stream.  Affected files
802           are in lib/silclient/, lib/silccore/silcpacket.c and
803           lib/silcutil/unix/silcunixsocketstream.c.
804
805         * Fixed private key export double free crash in key generation.
806           Affected file is lib/silccrypt/silcpk.c.
807
808         * Fixed FSM event waiting when there are multiple signallers
809           and the waiter goes away after the first signal.  Affected
810           file in lib/silcutil/silcfsm.c.
811
812 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
813
814         * Fixed FSM event signalling to check if the waiter has gone
815           away already.  Affected file is lib/silcutil/silcfsm.c.
816
817         * Fixed counter mode encryption/decryption to handle non-padded
818           SILC packets correctly.  The silc_cipher_set_iv now
819           in counter mode resets for a new block.  Affected files are
820           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
821
822 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
823
824         * SILC Client 1.1 beta1.
825
826         * Memory leak fixes around the libraries.
827
828 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
829
830         * Added better check for epoll() in configure.  Affected file
831           is lib/configure.ad.
832
833 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
834
835         * Fixed per scheduler data input buffer in packet engine.  Use
836           list of inbufs instead of just one so that multiple streams
837           can do partial reads to different buffers.  Affected file is
838           lib/silccore/silcpacket.c.
839
840         * Fixed WATCH notify handling in client library.  Affected file
841           is lib/silcclient/client_notify.c.
842
843 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
844
845         * Fixed packet wrapper stream API to support encoder/decoder
846           for packets, and to handle partial reading correctly.  Fixed
847           also inbuf size checking in reading to have enough space before
848           reading.  Affected files are lib/silccore/silcpacket.[ch].
849
850         * Rewrote file transfer in client library.  Affected files are
851           in lib/silcclient/.
852
853         * Added TCP/UDP listener (internal) API to client library to have
854           generic way of dealing with listeners.  Fixed Key Agreement and
855           file transfer to use it.  Affected files are in lib/silcclient/.
856
857         * Fixed SKE to process SUCCESS packets synchronously and to call
858           completion synchronously.  Affected file is lib/silcske/silske.c.
859
860         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
861
862         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
863           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
864
865 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
866
867         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
868           to client library.  Affected file is
869           lib/silcclient/client_register.c.
870
871         * Serialize NICK and JOIN commands to avoid problems locally
872           with changing ID while joining to channel.  Affected file is
873           lib/silcclient/command.c.
874
875         * Fixed entry resolving while handling incoming JOIN notify.
876           Handle properly cases, in re-processing of notify packets, where
877           the IDs may become invalid while resolving the entry (like nick
878           change).  Entry is invalid if it doesn't have nickname, and such
879           entries are not delivered to application anymore.  These fixes
880           problems of not seeing JOINs when remote user changes nickname
881           at the same time.  Affected files are in lib/silcclient/.
882
883 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
884
885         * Added support for computing message payload MAC in new way
886           (SILC Protocol version 1.3).  Bakcwards support for old way
887           remains.  Affected files are lib/silccore/silcmessage.[ch].
888
889 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
890
891         * Added SilcRwLock API, a read/write lock.  Affected files are
892           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
893
894 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
895
896         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
897
898 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
899
900         * The silc_schedule_set_listen_fd now returns boolean value.
901           Fixed FD task adding to check correctly for already added
902           FD tasks.  Added stricter error checking for FD scheduling
903           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
904           and lib/silcutil/unix/silcunixschedule.c.
905
906         * The silc_stream_set_notifier now returns boolean value.  Changed
907           all streams to support and check for the error condition.
908           Affected files are in lib/silcutil/.
909
910         * Fixed SKE library session aborting and deletion.  Affected
911           file are lib/silcske/silcske.c.
912
913 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
914
915         * Implemented PKCS #1 with appendix with hash OID in the
916           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
917           lib/silccrypt/silchash.[ch] and
918           lib/silcasn1/silcasn1[_encode|decode].[ch].
919
920 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
921
922         * Added support for Version (V) SILC public key identifier.
923           Affected files are lib/silccrypt/silcpk.[ch].
924
925 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
926
927         * Rewrote connection auth request in client library.  It is now
928           done automatically by the library and the resolved method given
929           as a hint to get_auth_method client operation.  Affected files
930           are lib/silcclient/.
931
932 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
933
934         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
935           It can be used to wrap SilcPacketStream into SilcStream.
936
937         * Fixed %p formatting from silc_snprintf.  Affected file is
938           lib/silcutil/silcsnprintf.c.
939
940         * Ported SFTP library to new utility library.  Ported also
941           the SFTP testers.  Affected files in lib/silcsftp/.
942
943 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
944
945         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
946           of silc_snprintf, silc_vsnprintf, silc_asprintf and
947           silc_vasprintf.
948
949 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
950
951         * Added preliminary Symbian support.  Changes around the source
952           tree.  The symbian/ directory now includes Carbide.c++ project
953           files to compile the sources.
954
955         * Added silc_snprintf.  Affected files are
956           lib/silcutil/silcstrutil.[ch].
957
958 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
959
960         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
961           macros.  SILC_FSM_CONTINUE macro now immediately calls the
962           next state instead of first returning back to FSM.  Helps
963           in debugging crashes etc.
964
965           Removed FSM Semaphores.  Introduced FSM Event which is
966           asynchronous event.   Affected files are in lib/.
967
968         * Added epoll(7) support to SILC Scheduler.  It is used by default
969           if it is available.  Affected files are
970           lib/silcutil/silcschedule.[ch],
971           lib/silcutil/unix/silcunixschedule.c.
972
973 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
974
975         * Added CTR mode to AES.  Simplified cipher implementation API
976           more.  Affected files are in lib/silccrypt/.
977
978 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
979
980         * Removed `detach' client operation.  The detachment data is
981           now delivered in SILC_COMMAND_DETACH command reply to
982           application.  Affected file in lib/silcclient/.
983
984         * Rewrote resuming/detaching in client library.
985
986         * Added boolean encryption indicator for silc_cipher_set_key.
987           Affected files lib/silccrypt/silccipher.[ch].
988
989 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
990
991         * Added silc_likely and silc_unlikely macros for GCC branch
992           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
993
994         * Added assembler AES optimization.  Cleaned up the SILC Cipher
995           implementation API.  Affected files are in lib/silccrypt/.
996
997 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
998
999         * Changed back the SILC_FSM_THREAD_WAIT operation to not
1000           continue to next state if thread is finished already.  That
1001           check is not done anymore.  Affected files are
1002           lib/silcutil/silcfsm.[ch].
1003
1004 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1005
1006         * Removed silc_packet_[get|set]_ciphers and
1007           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
1008           handle REKEY_DONE packet sending in rekey.  Affected files
1009           are lib/silccore/silcpacket.[ch].
1010
1011         * Added silc_fsm_is_started.  Affected files are
1012           lib/silcutil/silcfsm.[ch].
1013
1014         * Added settings sign_channel_message, sign_private_message
1015           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
1016           support for key agreement in /KEY command. Affected files
1017           in apps/irssi/src/silc/core/.
1018
1019         * During SILC Client initialization forward log messages to
1020           stderr.   Affected files in apps/irssi/src/silc/core/.
1021
1022 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1023
1024         * Added silc_ske_get_key_material.  Affected files are
1025           lib/silcske/silcske.[ch].
1026
1027         * Added silc_packet_stream_is_udp.  Affected files are
1028           lib/silccore/silcpacket.[ch].
1029
1030         * Added SKE packet retransmission support with UDP transport.
1031           Affected file is lib/silcske/silcske.c.
1032
1033 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1034
1035         * Added silc_socket_stream_is_udp.  Affected file is
1036           lib/silcutil/silcsocketstream.[ch].
1037
1038         * Added UDP transport support to packet engine.  Affected file
1039           is lib/silccore/silcpacket.c.
1040
1041         * Added silc_socket_stream_is_udp.  Affected file is
1042           lib/silcutil/silcsocketstream.[ch].
1043
1044 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1045
1046         * Added silc_packet_send_va[_ext] to send variable argument
1047           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
1048
1049         * Timeout freelist garbage collection added to scheduler.
1050           Affected file lib/silcutil/silcschedule.c.
1051
1052 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1053
1054         * Added silc_show_public_key_file to
1055           lib/silcapputil/silcapputil.[ch].
1056
1057         * Added SILC_STR_ADVANCE support for buffer unformatting.
1058           Affected file lib/silcutil/silcbuffmt.c.
1059
1060 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
1061
1062         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
1063
1064         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
1065
1066         * silc_fsm_continue[_sync] now cancels erlier timeout set with
1067           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
1068
1069 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
1070
1071         * Added SILC_STR_FUNC to buffer format API.  Affected files
1072           are lib/silcutil/silcbuffmt.[ch].
1073
1074         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
1075
1076         * No more memory allocation for message payload parsing.
1077           Pre-allocated buffer can be used with message payload encoding.
1078           Affected files lib/silccore/silcmessage.[ch].
1079
1080 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1081
1082         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
1083           to silcutil/silcbuffmt.[ch].
1084
1085 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1086
1087         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
1088           Affected file lib/silcutil/silcbuffmt.[ch].
1089
1090         * Removed silc_schedule_signal_[un]register and
1091           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
1092           to add signal task.  Only one callback per signal may be
1093           added.  The signals are now automatically called back to
1094           caller.  Affected files lib/silcutil/silcschedule.[ch] and
1095           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
1096
1097         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
1098
1099         * Added SilcSKEParams for SKE parameters and simplied even more
1100           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
1101           Added support for IV included and session port handling with
1102           UDP/IP connections.
1103
1104         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
1105           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
1106           which is called after every rekey when IV Included flag is used.
1107           See SILC specifications for details.
1108
1109 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1110
1111         * Added lib/silcapputil and moved SILC application specific
1112           utility routines from the generic util library lib/silcutil
1113           to the new library.  Removed lib/silcidcache and moved that
1114           to lib/silcapputil as well.
1115
1116 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1117
1118         * Added SILC_STR_ADVANCE.  Affected file is
1119           lib/silcutil/silcbuffmt.[ch].
1120
1121         * The silc_buffer_strformat preserves buffer locations now.
1122
1123         * Added lib/silcutil/silcatomic.h for atomic operations.
1124
1125 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1126
1127         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
1128           server.
1129
1130         * Fixed MIME deocing when data portion is not present.
1131           Affected file lib/silcutil/silcmime.c.
1132
1133 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1134
1135         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
1136
1137         * Added IV Included support to packet routines, to allow
1138           packet sending and receiving on UDP/IP.  Affected files are
1139           lib/silccore/silcpacket.[ch].
1140
1141         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
1142
1143 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1144
1145         * Added UDP support to network and socket stream library.
1146
1147 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1148
1149         * Added conditional variables.  New files are
1150           lib/silcutil/silcondvar.h and platform specific implementations.
1151
1152 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
1153
1154         * make sure session->hostname and session->port are valid before the
1155           application callback is done, since things will go wrong if the
1156           application immediately calls silc_client_file_receive. Affected
1157           file lib/silcclient/client_ftp.c.
1158           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
1159
1160 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1161
1162         * New SILC PKCS API enabling support for other public keys
1163           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
1164
1165         * Separated SILC Public Key Payload routines from the PKCS API
1166           to lib/silccore/silcpubkey.[ch].
1167
1168 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1169
1170         * Added SILC Key Repository library, lib/silcskr.
1171
1172         * Added SILC Server library, lib/silcserver.
1173
1174 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1175
1176         * MIME objects in attributes now use SilcMime.  Affected files
1177           are lib/silccore/silcattrs.[ch].
1178
1179 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1180
1181         * Synchronize semaphore posting for real threads in FSM.
1182           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
1183
1184 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1185
1186         * Added silc_file_set_nonblock.  Affected file is
1187           lib/silcutil/silcfileutil.h.
1188
1189         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
1190
1191 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1192
1193         * FSM based implementation of SILC SKE.  Simpler interface also.
1194           Affected files are in lib/silcske/.
1195
1196         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
1197
1198 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1199
1200         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
1201           silc_mime_parse is available but deprecated.
1202
1203         * Check that packet is valid when processing key exchange,
1204           authentication and rekey protocols.  Fixes a crashbug.
1205           Affected files are apps/silcd/protocol.c and
1206           lib/silcclient/protocol.c.
1207
1208         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
1209           all hash buffers to use that instead of fixed values.
1210
1211 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1212
1213         * Added SHA-256 to crypto library.  The SHA-256 takes now
1214           precedence over SHA-1.
1215
1216 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1217
1218         * Check for valid return value from regcomp.  Affected file
1219           lib/silcutil/unix/silcunixutil.c.
1220
1221 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1222
1223         * Fixed silc_hash_uint to work with integers.  Affected
1224           file lib/silcutil/silcutil.c.
1225
1226 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1227
1228         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
1229
1230 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1231
1232         * Fixed channel public key list saving on JOIN command reply
1233           on backup router.  Affected file apps/silcd/command_reply.c.
1234
1235 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1236
1237         * Added default limit how many channels client can join,
1238           default is 50.  Added 'channel_join_limit' configuration
1239           option to server too.  Affected files are apps/silcd/command.c
1240           and serverconfig.[ch].
1241
1242 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1243
1244         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
1245           On Toolkit the server and client are not compiled by default.
1246           Affected file configure.ad.
1247
1248 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1249
1250         * Added lib/contrib/getopt.[ch] for platforms that don't
1251           have it (it is not GPL implementation).
1252
1253         * Fixed compilation when pkg-config is used.
1254
1255 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1256
1257         * A comma in invite/ban string is invalid, check for it.
1258           Affected file apps/silcd/server_util.c.
1259
1260         * Added SERVICE command to the server.  It parses the command
1261           request but SILC Server does not support services for the
1262           time being.  Affected file apps/silcd/command.[ch].
1263
1264         * Added SERVICE command and command reply to client library.
1265           It is however incomplete.  Updated Toolkit documentation.
1266           Affected files are lib/silcclient/command[_reply].[ch].
1267
1268         * Fixed IDENTIFY/WHOWAS command reply to send the username
1269           correctly (uninitialized buffer).  Affected file is
1270           apps/silcd/server_query.c.
1271
1272 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1273
1274         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
1275           finalizes the major restructuring of the CVS tree.
1276
1277 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1278
1279         * Send empty MOTD reply if MOTD file cannot be read.
1280           Affected file silcd/command.c.
1281
1282 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1283
1284         * Optimized primer number generator to use simpler conversion
1285           routines.  Also assure that the prime number will have the
1286           highest bit set after modifying it.  Affected file is
1287           lib/silcmath/silcprimegen.c.
1288
1289         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
1290
1291         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
1292           for now only for testing purposes, it will not be delivered
1293           in any distribution for now.
1294
1295         * Removed NSS MPI from the source tree.  Due to upcoming
1296           license change for the SILC Toolkit, we cannot deliver the
1297           NSS MPI anymore.  I decided to replace it in all distributions
1298           with public domain library.
1299
1300         * Removed GNU regex from lib/contrib and introduced free
1301           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
1302           GNU regex compatible API to it (only partial).
1303
1304         * Removed getopt routines from lib/contrib.
1305
1306 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1307
1308         * Use silc_server_send_command_reply to send replies instead
1309           of encoding packet itself.  Affected file silcd/command.c.
1310
1311         * Added command sending and receiving statistics to server.
1312           Affected files in silcd/.
1313
1314         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
1315           with GCC, for it not to warn about pointer signedness.
1316
1317 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1318
1319         * Added context to the SilcIDCache destructor.  Affected
1320           files are lib/silccore/silcidcache.[ch],
1321           lib/silcclient/client.c and silcd/server.c.
1322
1323 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1324
1325         * Added pkg-config check to configure.
1326
1327         * The PublicKeyDir must not be used with Admin block in server
1328           config.  Affected file silcd/serverconfig.c.
1329
1330 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1331
1332         * Added Autodist.
1333
1334 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1335
1336         * Handle empty LIST command reply correcttly in server.  Affected
1337           file silcd/command_reply.c.
1338
1339         * Handle empty LIST command reply correctly in client library.
1340           The application will now receive one LIST command reply with
1341           all arguments set to NULL if there are no channels.  Updated
1342           Client Library documentation accordingly.  Affected file
1343           lib/silcclient/command_reply.c.
1344
1345 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1346
1347         * Added channel name string stringprep profile to the protocol
1348           and implementation to allow a little free'er channel name
1349           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
1350
1351         * Added silc_channel_name_[check|verify] to check and verify
1352           channel name strings.  Affected files are
1353           lib/silcutil/silcstrutil.[ch].
1354
1355         * Added support for the new channel name preparation in client
1356           library and server.  Affected files in lib/silcclient and
1357           silcd/.
1358
1359 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1360
1361         * Added the Autodist into the source tree.  It replaces the
1362           old ./prepare.  It can be used to create distributions as
1363           previously.  See README.CVS and README.DIST.  See
1364           distributions in distdir/.
1365
1366 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1367
1368         * Make sure query sends at least an error back if nothing
1369           more is sent.  Affected file silcd/server_query.c.
1370
1371 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1372
1373         * During query, check if the original command caller goes
1374           away.  If it does, stop the query.  Affected file
1375           silcd/server_query.c.
1376
1377         * Check for valid channel creation in JOIN command reply.
1378           Affected file lib/silcclient/command_reply.c.
1379
1380         * Handle the resolver counter in silc_client_get_users_by_channel
1381           callback correctly.  Fixed auto-join bug in Gaim.  Affected
1382           file lib/silcclient/idlist.c.
1383
1384 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1385
1386         * Added some better error messages.  Affected file
1387           silcd/command_reply.c and packet_receive.c.
1388
1389         * Handle error in WATCH command propely on backup router.
1390           Affected file silcd/command.c.
1391
1392         * Fixed freeing of unfreeable variable in WHOIS command reply.
1393           Affected file silcd/command_reply.c.
1394
1395 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
1396
1397         * Added pkg-config .pc file creation for silc core library
1398           and silcclient library.  A patch by c0ffee.
1399
1400         * Removed the need for GNU Libidn.  Added the simple stringprep
1401           from libidn into lib/contrib/.  It is now used also on Windows
1402           build.
1403
1404 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1405
1406         * Simplified the invite and ban string handling in the
1407           server.  Check for valid invite and ban arguments also.
1408           Affected file silcd/server_util.c.
1409
1410 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1411
1412         * Added WATCH list announcing in backup router protocol.
1413           Affected files are silcd/command.c, server.c, server_backup.c.
1414
1415         * Do not change users mode to founder on normal server/backup
1416           if the founder mode is set, and user is first one to join.
1417           Affected file silcd/pcaket_receive.c.
1418
1419         * Do not send CUMODE_CHANGE notify back to sender.  Affected
1420           file silcd/packet_receive.c.
1421
1422         * Added getrusage() to take noise in SILC RNG.  A patch by
1423           Mika Boström.  Affected files are configure.in.pre,
1424           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
1425
1426 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1427
1428         * Splitted the SILC libraries configuration into a configure
1429           fragment into lib/configure.ad.  It is now possible, once
1430           this feature is added, to specify whether to compile or not
1431           compile included SILC libraries.  Affected files are
1432           configure.in.pre, lib/silcmath/mpi/configure.ad,
1433           lib/configure.ad, Makefile.defines.pre and
1434           Makefile.defines_int.pre.
1435
1436         * Added --with-silc-includes and --with-silc-libs to configure.
1437           If specified the included libs are not compiled, but the
1438           specified libs are used.  Pkg-config is not yet supported.
1439           Affected file configure.in.pre.
1440
1441         * Fixed WATCH command handling on backup router.  Router does not
1442           send the watch command any more to backup if it originates from
1443           backup.  Affected file silcd/command.c.
1444
1445 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1446
1447         * Changed announcing to not announce unregistered clients.
1448           Affected file silcd/server.c.
1449
1450         * Fixed username handling in command reply.  Affected file
1451           silcd/command_reply.c.
1452
1453         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
1454
1455 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
1456
1457         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
1458           Affected file: includes/silcincludes.h.in
1459
1460         * bool is defined as _Bool on Mac OS X now.
1461           Affected file: lib/silcutil/silctypes.h
1462
1463 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1464
1465         * Added support for UTF-8 nicknames, channel names and
1466           server names in client library.  Affected files in
1467           lib/silcclient/.
1468
1469         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
1470           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
1471           software to check how Toolkit has been compiled.
1472
1473 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1474
1475         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
1476
1477         * Use silc_utf8_str[n]casecmp instead of strcmp routines
1478           in library and in SILC Client when dealing with nicknames
1479           and other identifier strings.  Affected file in client lib
1480           and irssi.
1481
1482         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
1483           irssi/src/silc/core/silc-servers.c.
1484
1485 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1486
1487         * Fixed idcache to work with the new identifier strings.
1488           Affected file lib/silccore/silcidcache.c.
1489
1490         * Added UTF-8 hash and compare function for SilcHashTable.
1491           Affected file lib/silcutil/silcutil.[ch].
1492
1493         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
1494           Affected file lib/silcutil/silcstringprep.[ch].
1495
1496         * Changed the identifier string handling to include the original
1497           format in client, server, channel entries and normalized
1498           format in cache.  Affected files in silcd/.
1499
1500 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1501
1502         * Added support for the new identifier strings and their
1503           validity checking.  Nicknames, channel names and usernames
1504           can now include practically any kind of letters and various
1505           other characters.  Affected files in silcd/ and in libraries.
1506
1507           NOTE: comparing these strings should now be done with memcmp()
1508           to check binary compatibility.  All these strings are normalized
1509           and casing is irrelevant.
1510
1511         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
1512           as easy function for applications to check whether identifier
1513           strings are valid.
1514
1515 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1516
1517         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
1518           file lib/silcutil/silcutf8.c.
1519
1520         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
1521
1522 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1523
1524         * Make public key in getkey reply mandatory.  Affected file
1525           lib/silcclient/command_reply.c
1526
1527 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
1528
1529         * Added Parameter dont_register_crypto_library to
1530           SilcClientParam. If set to TRUE, silcclient library will
1531           not initalize the Crypto Libraries and application
1532           will need to do it. Affected file lib/silcclient/silcclient.h,
1533           lib/silcclient/client.c.
1534
1535 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1536
1537         * Imported new silc_utf8_[encode|decode] routines from
1538           my internal SILC 1.1 source tree.  New encodings added:
1539           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
1540           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
1541           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
1542           SILC_STRING_LDAP_DN.
1543
1544         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
1545
1546         * Implemented stringprep (RFC 3454) API.  Internally we use
1547           GNU Libidn's stringprep, for now, so it is required now to
1548           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
1549
1550         * Added checking for GNU Libidn and --with-libidn to configure.
1551
1552 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1553
1554         * If the passphrases entered do not match while generating a new key,
1555           completly start over instead of going into an infinite loop asking
1556           the user to re-enter the passphrase correctly.  Affected file
1557           lib/silcutil/silcapputil.c
1558
1559 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
1560
1561         * Make sure server is removed from backup list when it is
1562           deleted.  Affected files silcd/command.c, server.c,
1563           server_util.c.
1564
1565         * Close socket when connecting to router fails.  Affected
1566           file silcd/server.c.
1567
1568 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1569
1570         * Adopt configuration toolchain to current auto-tools.
1571           Affected files prepare, irssi/configure.in
1572         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
1573           redo that.  Affected files irssi/src/silc/core/client_ops.c,
1574           irssi/src/fe-common/silc/fe-silc-channels.c
1575         * Take over command line options into silcclient data structure.
1576           Affected file irssi/src/silc/core/silc-core.c
1577
1578 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1579
1580         * Do not try to initiate backup resuming protocol forever.
1581           Affected file silcd/server_backup.c.
1582
1583 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1584
1585         * ID change in resuming has to be done before changing
1586           detached client's modes, since the ID change may fail and
1587           leave ghosts on the network.  Affected file is
1588           silcd/packet_receive.c.
1589
1590 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1591
1592         * Fixed Win32 scheduler to not stuck anymore.  A patch from
1593           Juha Räsänen.  Affected file is
1594           lib/silcutil/win32/silcwin32schedule.c.
1595
1596         * Fixed QoS parsing for connection blocks in server.  Affected
1597           file is silcd/serverconfig.c.
1598
1599         * Fixed server statistics increasing in server.  Affected file
1600           is silcd/server.c.
1601
1602         * The CLOSE command now marks backup router as self disconnected
1603           to avoid resuming problems.  Affected file silcd/command.c.
1604
1605 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
1606
1607         * When using silc_net_create_connection[_async], and your system can
1608           create IPv6 sockets, it will try to connect to the IPv6 host.
1609           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
1610           file lib/silcutil/unix/silcunixnet.c
1611
1612 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
1613
1614         * Check for valid route when receiving packet from router and
1615           when routing it to local server in the cell.  A patch from
1616           Matt Miller.  Affected files silcd/router.c and server.c.
1617
1618 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
1619
1620         * Couldn't detach and reattach twice, because of the previous
1621           commit. Affected file silcd/packet_receive.c
1622
1623 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
1624
1625         * Added check to ignore Port value if Initiator is FALSE.
1626           Remote router coudln't connect if Port was set. Affected file
1627           silcd/serverconfig.c
1628
1629         * If some client tries to resume more than once at the same time,
1630           server crashed. Router didn't crash, but showed odd behaviour
1631           (didn't allow clients to join anymore, ..). Affected files
1632           silcd/packet_receive.c silcd/idlist.h
1633
1634 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1635
1636         * Destroy the file transfer session in silc_client_file_close
1637           with timeout.  Affected file lib/silcclient/client_ftp.c.
1638
1639         * Call SFTP server monitor in READ and WRITE after the actual
1640           operations.  Affected file lib/silcsftp/sftp_server.c.
1641
1642 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1643
1644         * Create one configure script from configure fragments
1645           (configure.ad).  This is a first step towards new distribution
1646           system.  Affected files prepare, configure.in.pre,
1647           lib/silcmath/mpi/configure.ad.
1648
1649 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1650
1651         * Removed expiring of client key pair.  Affected file is
1652           irssi/src/silc/core/clientutil.c
1653
1654 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1655
1656         * Check the number of connections from real number of
1657           connections instead of socket number, when deciding if
1658           server is full.  Affected files are silcd/server.c,
1659           server_internal.h and silcd.c.
1660
1661         * Clarified the connections_max meaning in General section
1662           in doc/example_silcd.conf.in.
1663
1664         * The reconnect_keep_trying default value set to TRUE
1665           if it is not defined in the config file.  Affected file
1666           silcd/serverconfig.c.
1667
1668 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1669
1670         * Fixed crashbug in connection closing, after a protocol
1671           completion callback, which might have closed it already.
1672           Affected file silcd/server.c.
1673
1674         * Fixed rekey with PFS in backup router.  It did not allow
1675           rekeys with PFS, and when the rekey protocol timedout
1676           it crashed the backup router without the above fix.  Affected
1677           file silcd/packet_send.c and server.c.
1678
1679 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1680
1681         * The silc_client_add_channel_private_key now returns the
1682           private key context if pointer is given as argument.
1683           Affected files are lib/silcclient/silcclient.h and
1684           client_channel.c.
1685
1686         * Added support for using channel private keys in SILC
1687           Client Library even if the private key mode is not set
1688           on the channel.  Affected file lib/silcclient/client_channel.c.
1689
1690         * The channel private key used to decrypt message is now
1691           delivered to the application in the 'channel_messageÃ' client
1692           operation.  Affected files are lib/silcclient/silcclient.h
1693           and client_channel.c.
1694
1695         * Fixed wrong arg type for user limit in CMODE command reply.
1696           Affected file silcd/command.c.
1697
1698         * The user limit is now taken and saved to SilcClientEntry in
1699           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1700           Affected files lib/silcclient/silcclient.h, command_reply.c
1701           and client_notify.c.
1702
1703         * Added support to the new private message key indicator
1704           packet.  Added a new function to the client library:
1705           silc_client_send_private_message_key_request.  The sender
1706           indicates to be initiator, and receiver is responder.
1707           Added the indicator to the SilcClientEntry as 'prv_resp'
1708           boolean.  Affected files are lib/silcclient/silcclient.h
1709           client.[ch], and client_prvmsg.c.
1710
1711 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1712
1713         * Fixed the JOIN command calling when called with both
1714          -auth and -founder.  Affected file is lib/silcclien/command.c.
1715
1716 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1717
1718         * Check watcher list for resumed clients as well.  Affected
1719           file is silcd/packet_receive.c.
1720
1721 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1722
1723         * Implemented the user limit to the CMODE_CHANGE notify,
1724           CMODE command reply and JOIN command reply in server.
1725           Affected files are silcd/server.c, command.c, command_reply.c,
1726           packet_send.c and packet_receive.c.
1727
1728 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1729
1730         * Defined SILC_STRFMT_END that must be used now with
1731           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1732           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1733           lib/silcclient/silcvcard.c, silcd/server_util.c.
1734
1735         * Fixed the adding of public key to the WATCH list in server.
1736           Fixed the WATCH notify sending to client.  Affected files
1737           are silcd/packet_send.[ch], command.c, server_util.c.
1738
1739         * Implemented the watching by public key in the SILC Client
1740           Library and SILC Client.  Affected files are
1741           lib/silcclient/command.c and client_notify.c.
1742
1743 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1744
1745         * Added support for public key watching in server.  Affected
1746           files are silcd/server.c, server_internal.h, command.c,
1747           server_util.c.
1748
1749 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1750
1751         * Added public key to the SIlcClientEntry.  Affected files
1752           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1753
1754         * Fixed the get_clients_whois reply processing to return
1755           exactly same entries server returned.  Makes it possible
1756           to search using attributes.  Affected file is
1757           lib/silcclient/idlist.c.
1758
1759 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1760
1761         * Save founder key to SilcChannelEntry.  Affected files are
1762           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1763
1764 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1765
1766         * Call the monitor callback with _CLOSED status from the
1767           silc_client_file_close.  Affected files are
1768           lib/silcclient/client_fpt.c, silcclient.h
1769
1770         * Added silc_client_get_clients_whois which resolves using
1771           WHOIS, and supports requested attributes as well.
1772           Affected files are lib/silcclient/silcclient.h, idlist.c.
1773
1774 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1775
1776         * Added support for asking the destination filename where
1777           the downloaded file is saved in the file transfer.  Affected
1778           files are lib/silccilent/silcclient.h, client_ftp.c.
1779
1780 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1781
1782         * Fixed error handling in resuming data processing.  Affected
1783           files are lib/silcclient/client_resume.c and client.c.
1784
1785 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1786
1787         * Fixed silc_client_send_private_message to return TRUE correctly.
1788           Affected file lib/silcclient/client_prvmsg.c.
1789
1790         * Added topic to the SilcChannelEntry.  Affected files are
1791           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1792
1793 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1794
1795         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1796           file lib/silcclient/command.c
1797
1798 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1799
1800         * Convert all commands to UTF-8 before passing them to the
1801           client library.  Still need to convert replies from UTF-8 to
1802           the locale encoding.  Affected file
1803           irssi/src/silc/core/silc-cmdqueue.c
1804
1805 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1806
1807         * redirect all silc_client_command_calls through a queueing framework.
1808           This fixes /CYCLE and the annoying "nick change after auto-joining
1809           a channel".  Furthermore it defines one central point where
1810           command parameters can be UTF-8-ified.  Affected files
1811           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1812           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1813
1814 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1815
1816         * use asynchronous connect() to establish router connections.
1817           Fixes problem when the primary router goes down.  Affected files
1818           silcd/server.c, silcd/server_backup.c
1819
1820 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1821
1822         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1823           Fixed various compilation warnings when type casting ints
1824           to pointers or vice versa, of different size.  Updates around
1825           the source free.
1826
1827 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1828
1829         * Surrogates not allowed in UTF-8 strings, updated decoder.
1830           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1831           testers in lib/silcutil/tests/ directory.
1832
1833 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1834
1835         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1836           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1837           files are lib/silcclient/silcclient.h, client.c.
1838
1839 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1840
1841         * When resuming a session fails, notify the user that the session
1842           file needs to be removed eventually.  Affected files
1843           irssi/src/fe-common/silc/module-formats.[ch],
1844           irssi/src/silc/core/client_ops.c.
1845
1846 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1847
1848         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1849           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1850
1851         * Typofix in Irssi::Silc module.  Affected file
1852           irssi/src/perl/silc/Silc.xs.
1853
1854 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1855
1856         * Changed the way NOTICE flagged messages are treated. Added support
1857           for notices in queries and signing notices.  Affected files
1858           irssi/default.theme; irssi/docs/help/in/notice.in;
1859           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1860           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1861
1862         * Fixed typo in /ACTION help.  Affected file
1863           irssi/docs/help/in/action.in
1864
1865 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1866
1867         * Fixed typo in perl module.  Affected file
1868           irssi/src/perl/silc/Server.xs
1869
1870         * Changed the way ACTION flagged messages are treated. Added support
1871           for actions in queries and signing actions.  Affected files
1872           irssi/default.theme; irssi/docs/help/in/action.in;
1873           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1874           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1875           silc-servers.[ch]
1876
1877 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1878
1879         * Incorrectly reported error when client had to be resolved from
1880           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1881
1882 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1883
1884         * Fixed whois public key hash table deleting and adding in
1885           detached client case.  Affected file silcd/packet_receive.c.
1886
1887 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1888
1889         * Changed filenames of silc/fe module not to collide with filenames
1890           from core/fe.  Also seperated public messages printing from
1891           query messages printing.  Affected files are all in
1892           irssi/src/fe-common/silc.
1893
1894 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1895
1896         * Fixed the invite process handling during joining to use
1897           correct server name for the client that is matched against
1898           the invite string for the channel.  Wrong server name caused
1899           inability to join the channel.  Affected file is
1900           silcd/command.c.
1901
1902 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1903
1904         * Fixed the CUMODE channel founder authentication on normal
1905           server to not remove the founder rights on existing founder
1906           before checking that router accepts the mode change.  Affected
1907           files are silcd/command.c and silcd/packet_receive.c.
1908
1909         * Remove the server entry correctly when rekey timeouts and
1910           remote router connection on normal server is closed.  Fixes
1911           a crash where server uses the freed server entry.  Affected
1912           file silcd/server.c.
1913
1914 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1915
1916         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1917           networks.  This is the first step in solving the bug about
1918           /SERVER ADD -silcnet <silcnet>.  Affected files
1919           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1920           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1921           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1922
1923 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1924
1925         * /SMSG and /MMSG now correctly create new queries. Affected files
1926           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1927
1928         * Add basic support for SILC protocol specific variables in perl.
1929           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1930           irssi/src/perl/Makefile.am
1931
1932 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1933
1934         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1935           issue when the current key expires.  Affect file
1936           irssi/src/silc/core/clientutils.c
1937
1938         * Make the session data filename configurable.  This makes it
1939           possible to have different session files for different
1940           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1941           client_ops.[ch], silc-servers.c,
1942           irssi/src/silc/fe-common/silc/module-formats.[ch]
1943
1944         * Use the same set of libtool files for the MPI lib as for the
1945           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
1946           config.sub, configure.in, install-sh, missing, mkinstalldirs
1947
1948 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1949
1950         * Fixed server statistics decrementing error to not go to
1951           negative.  Affected file silcd/packet_receive.c.
1952
1953 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1954
1955         * Use silc_server_query_add_error to add error in public key
1956           search error.  Added support in send_reply to send errors
1957           without specific argument.  Affected file silcd/server_query.c.
1958
1959         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
1960           Client for NO_SUCH_NICK.  It was against the protocol specs.
1961           Affected file irssi/src/silc/core/client_ops.c.
1962
1963         * Added backwards support for the wrong NO_SUCH_NICK error sending
1964           in server.  To be removed in SILC Server 1.0.  Both old clients
1965           and clients with fixed error handling now works.  Affected file
1966           silcd/server_query.c.
1967
1968 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
1969
1970         * fixed a bug in the whois using attributes function where no
1971           error was sent if no nickname and client id but the attributes were
1972           given to whois. Affected file silcd/server_query.c
1973
1974 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
1975
1976         * remove public key from public key hashtable on detach. Affected
1977           file silcd/packet_receive.c
1978
1979         * free public key hashtable before removing clients on server
1980           shutdown. Affected file silcd/server.c
1981
1982         * remove public key prior deleting client-data on killing a client.
1983           Affected file silcd/server_util.c
1984
1985 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
1986
1987         * Getting the MOTD from other servers works now. Affected
1988           files are silcd/command.c and silcd/command_reply.c
1989
1990 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1991
1992         * Initialize the variable idletag, since it is tested in
1993           silc_core_deinit for its default value.  Affected file
1994           irssi/src/silc/core/silc-core.c
1995
1996 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
1997
1998         * Fixed signed channel messages across cells. Affected file
1999           silcd/packet_send.c
2000
2001 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2002
2003         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
2004           is not defined.  They can now be safely used in if-statements
2005           without braces.  Affected file lib/silcutil/silclog.h.
2006
2007         * Added the checks for backup closing connection due to error
2008           (local or remote) and thus not allow the resuming to occur
2009           in reconnect.  Affected files are silcd/packet_send.c
2010           and server.c.
2011
2012 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2013
2014         * Help file updates.  Affected files in irssi/src/docs/help/in/.
2015
2016 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
2017
2018         * Fixed channel messages across cells. Affected file
2019           silcd/packet_send.c
2020
2021 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2022
2023         * Fixed file transmission accepting in client library to not
2024           start the negotiation if user hasn't accepted the transfer,
2025           instead create new session for resent transfer.  Affected
2026           file lib/silcclient/client_ftp.c.
2027
2028         * Show the session ID in the file transmision list.  Remove
2029           session from list that failed to transfer.  Switch the current
2030           session automatically after transmission, and in errors, to new
2031           session if other sessions exists in the transfer list.  Affected
2032           files are irssi/src/silc/core/silc-servers.c,
2033           irssi/src/fe-common/silc/modfule-formats.c.
2034
2035 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2036
2037         * Fixed MIME header parsing for the hopefully last time.  Affected
2038           file lib/silcutil/silcstrutil.c
2039
2040 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2041
2042         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
2043
2044         * The SILC RNG is now gauranteed to return non-zero random
2045           values.  Affected files are lib/silccrypt/silcrng.[ch].
2046
2047 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2048
2049         * Fixed nickname formatting when changing only case of the
2050           nickname.  Affected file lib/silcclient/idlist.c.
2051
2052 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2053
2054         * Fixed a memory leak and incorrect printing of the "appears as"
2055           message.  Affected file irssi/src/silc/core/client_ops.c
2056
2057 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2058
2059         * Added CRT (Chinese Remainder Theorem) supported RSA
2060           private keys and private key operations.  This significantly
2061           increases private key operation efficiency.  No compatibility
2062           issues with new or old private keys.  Affected files are
2063           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
2064
2065 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2066
2067         * Fixed GCC-3.3.2 related compilation warnings from the
2068           source tree.
2069
2070 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2071
2072         * Removed RC6 from distributions.
2073
2074 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2075
2076         * Added some better comments to lib/silccrypt/silcpkcs.h,
2077           optimized some routines in lib/silccrypt/silcpkcs.c.
2078           Added test_silcpkcs into lib/silccrypt/tests/.
2079
2080         * Fixed silc_rng_global_init to actually init the global RNG
2081           if RNG wasn't provided for it.  Affected file is
2082           lib/silccrypt/silrng.c.
2083
2084 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2085
2086         * Added silc_hash_table_find_by_context_ext.  Affected files
2087           lib/silcutil/silchashtable.[ch].
2088
2089         * Save the public key on normal server in WHOIS command reply
2090           from attributes, if present, and add it to public key hash
2091           table.  Fixes WHOIS resolving by public key on normal server.
2092
2093           Optimized the attributes resolving on normal server to not
2094           resolve if we resolved them already from router.
2095
2096           Affected files are silcd/server_query.c, command_reply.c.
2097
2098 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
2099
2100         * Added support for whois using attributes.
2101           Affected files silcd/command_reply.c, silcd/packet_receive.c,
2102           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
2103           silcd/server_util.c
2104
2105         * Added support for whois using public key attribute to /WHOIS i
2106           client command. Affected files irssi/docs/help/in/whois.in,
2107           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
2108
2109 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2110
2111         * Fixed UMODE setting in server when the client has anonymous
2112           mode set.  The mode setting was not working.  Affected file
2113           silcd/command.c.
2114
2115 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2116
2117         * Fixed some bugs and typos related to sending split messages.
2118           Print notification when sending messages with /MMSG.  Affected
2119           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
2120
2121 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2122
2123         * Optimized the socket referencing in packet routines, client
2124           library and server.  Affected files are lib/silccore/silcpacket.c,
2125           lib/silcclient/client.c and silcd/server.c.
2126
2127         * If silc_socket_set_qos is given with NULL arguments the QoS is
2128           reset from the socket.  Affected files are
2129           lib/silcutil/silcsockconn.[ch].
2130
2131 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2132
2133         * Add a /LISTKEYS command which lists the locally cached
2134           client and server keys.  Affected files
2135           irssi/src/fe-common/module-formats.[ch],
2136           irssi/src/silc/core/silc-{channels,servers}.c
2137           irssi/docs/help/in/listkeys.in
2138
2139 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2140
2141         * Check that packet queue purging was successful.  Affected
2142           files lib/silcclient/client.c and silcd/packet_send.c.  Related
2143           to MAC failed errors.
2144
2145         * Do not clear the inbuf even if it is empty if QoS was applied
2146           to it.  Otherwise the QoS data is cleared and MAC failed error
2147           will occur.  Affected file lib/silccore/silcpacket.c.
2148
2149         * Use the rekey period time as rekey protocol timeout value.
2150           If the rekey does not succeed during the rekey period there's
2151           something very wrong, and we most likely end up with wrong keys,
2152           do graceful reconnect then.   Affected file silcd/server.c.
2153
2154         * Take reference of the socket in the parser context, as it's
2155           possible to have the parsers in queue after the socket is
2156           disconnected and this may cause crash.  Affected files are
2157           lib/silccore/silcpacket.c, lib/silcclient/client.c and
2158           silcd/server.c.
2159
2160 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2161
2162         * Fixed KICK command reply sending, it sent to replies.
2163           Affected file silcd/command.c.
2164
2165 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2166
2167         * Finish the silc-mime.pl script. It now supports MIME type
2168           guessing using magic files, signing data messages, executing
2169           MIME handlers in background. Affected files
2170           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
2171
2172         * Changed MIME signal handler to make things easier for the perl
2173           script. Affected files irssi/src/silc/core/client_ops.c,
2174           silc-servers.c, and irssi/docs/signals.txt
2175
2176         * Cleaned up the silc_mime_parse function and fixed detection
2177           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
2178
2179 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2180
2181         * Resolve the IP for file transfer listener from the connection
2182           socket.  Affected file lib/silcclient/client_ftp.c.
2183
2184         * Accept NULL hostname parameter in the functions
2185           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
2186           if hostname is not wanted.
2187
2188 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2189
2190         * Fixed race condition between silc_client_init and
2191           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
2192
2193 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2194
2195         * Fixed file transfer connection closing when SIGNOFF for
2196           the client is received from server.  Affected file is
2197           lib/silcclient/client_ftp.c.
2198
2199 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2200
2201         * Check for disconnected socket in QUIT callback.  Affected
2202           file silcd/command.c.
2203
2204 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2205
2206         * Modified the MIME parsing to allow \n and \r\n as delimiters.
2207           Affected files lib/silcutil/silcstrutil.c
2208
2209         * Cleaned up the escape/unescape functions for correctness and
2210           speed. Affected file irssi/src/silc/core/client_ops.c
2211
2212         * Removed handling for data messages with Content-Type: text/*,
2213           moved parsing of MIME headers to the signal handler, added
2214           support for signing and verifying data messages. Affected
2215           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
2216           irssi/src/silc/core/silc-{servers,channels}.c
2217
2218         * Added a perl script for handling data messages based on
2219           information read from Mailcap files. New file
2220           irssi/scripts/silc-mime.pl
2221
2222 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2223
2224         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
2225           acknowledge recepetion of a message to the sender.  Updated
2226           protocol specs.
2227
2228 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2229
2230         * Unregister channel key saving callback when deleting channel.
2231           Affected file lib/silcclient/idlist.c.
2232
2233         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
2234           before calling notify client operation.  Affected file is
2235           lib/silcclient/client_notify.c.
2236
2237         * Unregister QoS tasks when deleting the socket connection.
2238           Affected files lib/silcutil/silcsockconn.[ch],
2239           unix/silcunixsockconn.c.
2240
2241         * Implemented latest presence-attrs draft changes.  Affected
2242           files lib/silccore/silcattrs.h and
2243           irssi/src/silc/core/silc-queries.c.
2244
2245 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2246
2247         * Save old channel keys in list to allow more rapid change
2248           of channel keys if server for some reason does that.  This
2249           avoids loosing so many channel messages due to not having
2250           key to decrypt.  Affected file lib/silcclient/silcclient.h,
2251           idlist.c and client_channel.c.
2252
2253 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2254
2255         * Continued backup router tests and fixes.  Affected files
2256           silcd/server_backup, server_util.c, server.c.  See TODO.
2257
2258 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2259
2260         * Fixed SERVER_SIGNOFF handling in servers.  The client
2261           was removed from wrong list thus not removing the client
2262           at all.  Affected file silcd/packet_receive.c.
2263
2264         * Do not execute rekey protocol for disabled connections as
2265           it would never go through.  Affected file silcd/server.c.
2266
2267         * Added timeout for rekey protocol to catch if the protocol
2268           never executes successfully.  Affected files silcd/server.c
2269           and protocol.h.
2270
2271 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2272
2273         * Abandon packet processing for disconnected sockets.  Check
2274           this always after calling packet processing callback.
2275           Affected file lib/silccore/silcpacket.c.
2276
2277         * Fixed double registration disconnection code in server.
2278           Closed wrong connection.  Affected file silcd/packet_receive.c.
2279
2280 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2281
2282         * On normal server reconnect to primary during resuming 4
2283           times, then give up.  Affected file silcd/server_backup.c.
2284
2285         * If during reconnecting to routers we notice we have router
2286           connection but no primary router set, the server is in desync.
2287           Reconnect to primary to restore network.  Affected file
2288           silcd/server.c.
2289
2290         * Assure that only one protocol is exeucting at the same time.
2291           Added checks for all protocols.  Affected files are
2292           silcd/server.c and server_backup.c.
2293
2294 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2295
2296         * Check that a string is not already part on invite/ban
2297           string when processing it.  Affected file silcd/server_util.c.
2298
2299 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2300
2301         * Fixed the CUMODE_CHANGE for founder mode changes to comply
2302           with 1.2 version of the protocol.  Affected file is
2303           silcd/packet_receive.c.
2304
2305 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2306
2307         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
2308           where the passphrase was given.  Affected file is
2309           silcd/command.c.
2310
2311 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2312
2313         * INVITE and BAN notifys are now delivered from routers to
2314           servers (but not clients) on the channel.  Updated specs and
2315           code.  Affected files silcd/packet_[send|receive].[ch],
2316           command.c, server.c and server_util.c.
2317
2318         * Implemented INVITE and BAN announcing.  Affected files are
2319           silcd/server.[ch], server_util.c.
2320
2321         * Implemented SilcStatus error type argument returning in
2322           command reply error in server.  Affected file silcd/command.c.
2323
2324         * Implemented SilcStatus argument returning in comand reply
2325           in client library.  The command_reply client operation now
2326           returns error specific arguments as well.  Affected files
2327           are lib/silcclient/command_reply.[ch], client_resume.c,
2328           lib/silccore/silcstatus.[ch].
2329
2330 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2331
2332         * Backup router protocol version 1.2 implemented.  Testing still
2333           required.  Affected files in silcd/server_backup.[ch], server.c,
2334           packet_receive.c and server_internal.h.
2335
2336 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2337
2338         * silc_client_send_[channel|private]_message now return TRUE
2339           or FALSE.  Affected file lib/silcclien/client_channel.c and
2340           client_prvmsg.c.
2341
2342 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2343
2344         * Check for explicit nickname in INVITE and BAN processing
2345           during join as well (and don't expect only wildcards in
2346           invite/ban strings).  Affected file silcd/command.c.
2347
2348         * Fixed the INVITE and BAN by public key.  The public key saved
2349           is the PK payload (as specified) not the raw data.  Affected
2350           file silcd/server_util.c.
2351
2352 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2353
2354         * UTF-8 text message support for actions and notices in SILC
2355           Client.  Affected file irssi/src/silc/core/client_ops.c.
2356
2357         * silc_get_username and silc_get_real_name now returns sensible
2358           data on Win32.  Patch by Toni Willberg.  Affected file is
2359           lib/silcutil/win32/silcwin32util.c.
2360
2361 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2362
2363         * Provide a signal handler to send MIME encoded messages and emit
2364           a signal when a MIME encoded message is received. Also document
2365           the signals for usage with the perl interface.
2366
2367           A sample perl script will be supplied at a later point.
2368
2369           Affected files are irssi/docs/signals.txt,
2370           irssi/src/silc/core/client_ops.[ch],
2371           irssi/src/silc/core/silc-{channels,servers}.c
2372
2373 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2374
2375         * Use SILC_COMMAND_PING to estimate the round-trip time to the
2376           server. Use this time to display a lag and disconnect when it
2377           exceeds a specified limit.
2378
2379           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
2380
2381 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2382
2383         * Remove the channel auth list in normal server if router
2384           encofrces its list during connecting.  Send notify to channel
2385           to remove the mode to remove the list.  Affected files are
2386           silcd/server_util.c and silcd/packet_receive.c.
2387
2388 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2389
2390         * Added support for channel public keys.  Updated protocol specs
2391           and implemented it.  Affected files are
2392           silcd/command.c, command_reply.c, lib/silcclient/command.c,
2393           lib/silcclient/command_reply.c.
2394
2395 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2396
2397         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
2398           terminate the process on Linux.  Affected file silcd/silcd.c.
2399
2400 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2401
2402         * Check for NULL buffer in silc_buffer_clear.  Affected file
2403           is lib/silcutil/silcbuffer.h.
2404
2405         * Simplified the backup router protocol by removing the _GLOBAL
2406           types.  Updated protocol specs and the code.  Affected files
2407           are silcd/server_backup.[ch].
2408
2409 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2410
2411         * Deny '@' and '!' from nicknames since they are reserved
2412           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
2413           Updated protocol specs and the code.
2414
2415           Affected files are silcd/server_util.[ch].
2416
2417 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2418
2419         * Fixed stack overflow in Irssi SILC client.  Affected
2420           file irssi/src/silc/core/client_ops.c.
2421
2422         * Check that Host is set in ServerConnection and RouterConnection
2423           in silcd.conf.  Affected file silcd/serverconfig.c.
2424
2425         * Fixed crash in server with protocol completion callbacks,
2426           namely rekey and backup resuming protocols.  Affected files
2427           are silcd/server_backup.c and silcd/server.c.
2428
2429         * Fixed rekey protocol to not restart if it is started already.
2430           Affected files are lib/silcclient/client.c and
2431           silcd/server.c.c
2432
2433 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2434
2435         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
2436
2437         * Fixed EOF handling in SILC Config, affected file
2438           lib/silcutil/silcconfig.c.
2439
2440         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
2441
2442         * Fixed RESOLVING flag handling in JOIN notify and other
2443           notifys to handle the resolvings correctly in client library.
2444           Affected file lib/silcclient/client_notify.c.
2445
2446         * Do not send full INVITE and BAN lists in INVITE and BAN
2447           notifys, only the changed information.  Affected file
2448           silcd/command.c.
2449
2450         * Fixed INVITE notify sending in INVITE command, send it
2451           only when needed.  Affected file silcd/command.c.
2452
2453         * Handle the founder key change properly in CMODE_CHANGE
2454           notify.  Bug #122.  Affected file silcd/packet_receive.c.
2455
2456 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2457
2458         * Remove the mark for output (mark it only for input) after
2459           purging outgoing queue.  Prevents the "Error in select()"
2460           floods.  Affected file silcd/packet_send.c.
2461
2462         * Fixed incorrect connection deletion from client library
2463           after calling "connect" client operation.  Could cause
2464           crashes for example during reconnect timeouts.  Affected
2465           files are lib/silcclient/client.c and
2466           irssi/src/silc/core/client_ops.c.
2467
2468         * Check server private key file permissions before starting
2469           the server.  Affected file silcd/serverconfig.c.
2470
2471 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2472
2473         * NULL terminate allocated string in silc_buffer_strformat.
2474           Affected file lib/silcutil/silcbuffmt.c.
2475
2476         * Rewrote the invite/ban list string handling in server to
2477           use SilcBuffer instead.  Affected files are silcd/command.c
2478           and silcd/server_util.c.
2479
2480 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2481
2482         * Fixed double free in CMODE command when setting new HMAC
2483           for channel.  Affected file silcd/command.c.
2484
2485         * Added couple of missing memset's to zero sensitive memory.
2486           Affected files silcd/command.c, lib/silcclient/command.c.
2487
2488 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2489
2490         * Fixed a double free in INVITE command error handling in
2491           server.  Affected file silcd/command.c.
2492
2493         * Added macros SILC_SWAB_[16|32] to swab byte order of
2494           16-bit and 32-bit unsigned integers.  Affected file
2495           lib/silcutil/silctypes.h.
2496
2497         * Use the SILC_SWAB_16 instead of htons() in server when
2498           handling ports since the ports in structures are always
2499           in little-endian order (regardless of platform).  Affected
2500           file silcd/serverid.c and silcd/server_backup.c.
2501
2502 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2503
2504         * Send DISCONNECT in close admin command in server.  Affected
2505           file silcd/command.c.
2506
2507         * Check whether we are already connecting to a remote router
2508           (in addition of checking whether we are already connected)
2509           before creating new connection.  Affected file silcd/server.c.
2510
2511 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2512
2513         * Added better compiler and compiler flags checking in
2514           configure.
2515
2516         * Check that socket is valid after QoS is applied to data.
2517           Affected file lib/silcutil/unix/silcunixsockconn.c.
2518
2519         * Make sure the socket connecetion is not closed to early
2520           when closing connection in server.  Also make sure the
2521           connection is always closed after error in a protocol.
2522           Affected file silcd/server.c.
2523
2524 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2525
2526         * Removed --session and --dummy options from Irssi SILC Client.
2527           -d option is available only if --enable-debug was given.
2528           Affected files are irssi/src/silc/core/silc-core,
2529           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
2530
2531 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2532
2533         * Added silc_buffer_steal to steal the data from the buffer.
2534           Affected file lib/silcutil/silcbuffer.h.
2535
2536 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
2537
2538         * Fixed server crash with double Primary block in config file.
2539
2540           Fixed also various memory leaks around the config file
2541           parser.  Affected files lib/silcutil/silcconfig.c,
2542           silcd/serverconfig.c.
2543
2544         * Changed my nickname (Johnny Mnemonic) to my real name, this
2545           means that bugs introduced by him were actually introduced
2546           by me!
2547
2548 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2549
2550         * Don't display "foo appears as foo\nYou're now known as foo"
2551           messages.  Affected file irssi/src/silc/core/client_ops.c
2552
2553 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2554
2555         * Fixed error handling of invalid client entry when calling
2556           commands in server.  Fixes a crash.  Affected file
2557           silcd/command.c.
2558
2559 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2560
2561         * Added some sanity checks in server for correctness of the
2562           server configuration.  Affected file silcd/serverconfig.c.
2563
2564 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2565
2566         * Prevent endless resolving of user informations in USERS
2567           command by checking the command reply status correctly.
2568           Affected file lib/silcclient/command_reply.c.
2569
2570 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2571
2572         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
2573           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
2574           Aldous <Matthew@Aldous.com>.
2575
2576         * Added better implementation using CriticalSection of
2577           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
2578           <mikko.lahteenmaki@pikabaana.net>.
2579
2580         * Added some Winsock WIN32 compatiblity defines into
2581           includes/silcwin32.h.
2582
2583 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2584
2585         * Fixed double free in async host lookup code.  Affected file
2586           lib/silcutil/silcsockconn.c.
2587
2588         * On backup router handle now the SERVER_SIGNOFF from router
2589           for local connected servers too, and close the connections.
2590
2591           Do not process them as normally signing off servers when they
2592           really signoff by sending EOF fe, but always assume that
2593           router sends the SERVER_SIGNOFF.
2594
2595           Affected files silcd/server.c and silcd/packet_receive.c.
2596
2597         * Fixed socket unsetting when closing connections.  Affected
2598           files silcd/server.c and silcd/packet_send.c.
2599
2600         * Do not print the nickname in SERVER_SIGNOFF if we do not
2601           have it.  Prevents asserts in Irssi core.  It is possible we
2602           don't have the nick if it was just being resolved when server
2603           signoff.  Affected file irssi/src/silc/core/client_ops.c.
2604
2605 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2606
2607         * Fixed autonick crashbug in client library.  Affected file
2608           lib/silcclient/client.c.
2609
2610         * Fixed Unix implementation of SilcMutex to really assert if
2611           the mutex is locked/unlcoked already.  Affected file
2612           lib/silcutil/unix/silcunixmutex.c.
2613
2614         * Fixed locking in silc_schedule_uninit.  It didn't lock
2615           when dispatching timeout tasks.  Affected file is
2616           lib/silcutil/silcschedule.c.
2617
2618         * Changed Win32 implementation of SilcThread to use modern
2619           Win32 interface.  Affected file is
2620           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
2621
2622 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2623
2624         * Don't print signed messages when sending failed.  Affected files
2625           irssi/src/silc/core/silc-[servers.c/commands.h]
2626
2627         * Send adquate signal when founding a channel by joing it.  Affect
2628           file irssi/src/silc/core/client_ops.c
2629
2630 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2631
2632         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
2633           irssi/src/fe-common/core/themes.c
2634
2635 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2636
2637         * Fixed close command to use the port correctly when closing
2638           server connections.  Affected file silcd/idlist.c.
2639
2640         * Check for NULL outbuf in silc_socket_write.  It is possible
2641           that it is NULL is some odd case.  Affected files are
2642           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
2643
2644         * Do not call final protocol callback for backup router
2645           resuming protocol when closing connection.  It is closed
2646           by timeout in case of error.  Affected file silcd/server.c.
2647
2648         * Backup reconnect to router if backup resuming protocol
2649           failed.  Affected file silcd/server_backup.c.
2650
2651 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
2652
2653         * Fixed double free in SKE library error hadling when signature
2654           error occurred.  Affected file lib/silcske/silcske.c.
2655
2656         * Save the fingerprint to new SilcClientEntry after changing
2657           nickname.  Affected file lib/silcclient/client_notify.c.
2658
2659         * Print SIGNOFF in Irssi SILC client only if the nickname is
2660           known.  Prevents asserts in Irssi core.  It is possible we
2661           don't have the nick if it was just being resolved when it
2662           quit.  Affected file irssi/src/silc/core/client_ops.c.
2663
2664 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2665
2666         * Fixed double free in invite list adding code when adding
2667           invite strings.  Affected file silcd/server_util.c.
2668
2669 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2670
2671         * More log printing during backup router protocol.  Affected
2672           file silcd/server_backup.c.
2673
2674         * Removed backwards support for old private key file format.
2675           Affected file lib/silccrypt/silcpkcs.c.
2676
2677         * Removed backwards support for not-so-strict decryption length
2678           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2679
2680         * GETKEY to update the client entrys fingerprint too.
2681           Affected file lib/silcclient/command_reply.c.
2682
2683         * Added --without-libtoolfix for package builders using weird
2684           wrappers around libtool (BSD at least).
2685
2686 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2687
2688         * Fixed backup router bugs:  When backup resumes router and
2689           receives a CHANNEL_MESSAGE packet the backup must not act
2690           as router since the packet header decryption would be
2691           different.  Also, when relaying packets to channel, do
2692           not re-encrypt packets on backup that came from the primary
2693           since the connection isn't really router-router connection.
2694           Affected files silcd/server.c, silcd/packet_send.c.
2695
2696         * Added checks in encryption/decryption that encryption/decryption
2697           length sent as argument really is multiple by block size.  Helps
2698           catching really weird bugs like the above backup router bugs
2699           when packets are being decrypted in wrong way.  Affected files
2700           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2701
2702         * Fixed padding generation in private key file encryption.
2703           Affected file lib/silccrypt/silcpkcs.c.
2704
2705 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2706
2707         * Added ignore_message_signatures setting which can be used
2708           to ignore signatures in messages.  Affected files are
2709           irssi/src/silc/core/client_ops.c, silc-core.c.
2710
2711         * Fixed the libtoolfix to use command line options instead of
2712           environment variables.  They didn't work as expected.  Now,
2713           the libtool is fully run-time configurable.
2714
2715 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2716
2717         * Verify signature payload for signed messages. Affected files
2718           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2719           irssi/src/silc/core/silc-core.h
2720
2721         * Display signature verification result in public and private
2722           messages using theme abstracts. See irssi/default.theme for
2723           examples on their usage. Affected files
2724           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2725           irssi/src/fe-common/silc/module-formats.[ch],
2726           irssi/src/fe-common/silc/fe-common-silc.c,
2727           irssi/src/fe-common/silc/Makefile.am
2728           irssi/src/fe-common/core/fe-messages.[ch]
2729
2730         * Fixed bugs in Irssi's theme parsing. Affected files
2731           irssi/src/fe-common/core/themes.c
2732
2733 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2734
2735         * Calculate the correct length for signed messages before
2736           encrypting, it must be multiple by block size.  Affected
2737           file lib/silccore/silcmessage.c.
2738
2739         * silc_message_signed_get_public_key returns now both
2740           decoded and encoded public key.  Affected files are
2741           lib/silccore/silcmessage.[ch].
2742
2743         * Added libtoolfix script that makes the libtool more generic
2744           and configurable in run-time.  Now we can specify in run-time
2745           if what kind of libraries we want to create, regardless of
2746           configuration.  SIMs are now creates even if --disable-shared
2747           was explicitly given.
2748
2749 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2750
2751         * Fixed founder key sending in CMODE command in client.
2752           Affected file lib/silcclient/command.c.
2753
2754         * Fixed CUMODE founder authentication in server to not check
2755           for client's public key since it's not supposed to do that.
2756           Affected file silcd/command.c.
2757
2758 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2759
2760         * Set realname and hostname in NICK_REC records. Affected file
2761           irssi/src/silc/core/silc-nicklist.c
2762
2763 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2764
2765         * Remove 1.0 protocol backwards compat code from client
2766           library.
2767
2768         * Added more reliable check for whether nickname did change
2769           or not, or whether only Client ID changed in NICK_CHANGE
2770           notify.  Affected file lib/silcclient/client_notify.c.
2771           Fixes bug in '@' character handling in a nickname.
2772
2773         * Added support for automatically parsing signature from
2774           the message payload.  Added new function
2775           silc_message_get_signature to return the payload to
2776           application.  Affected files lib/silccore/silcmessage.[ch].
2777
2778         * Changed the private_message and channel_message client
2779           operations to deliver the SilcMessagePayload to the
2780           application too.  Application can use it fe. to get the
2781           signature from the message for verification.  Affected
2782           file lib/silcclient/silcclient.h, client_channel.c and
2783           client_prvmsg.c.
2784
2785         * Redefined the signed payload for message payloads.
2786           Updated protocol specs and implemented.
2787
2788 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2789
2790         * Fixed wrong invite and ban list handling in server command
2791           reply.  Affected files are silcd/command_reply.c,
2792           silcd/server_util.[ch].
2793
2794 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2795
2796         * Fixed CMODE setting in server when founder mode was set.
2797           Affected file silcd/command.c.  Bug #95.
2798
2799         * Added support to setting specific public key in CMODE in
2800           Irssi SILC client.  Affected file lib/silcclient/command.c.
2801
2802         * Added support to use specific public key in CUMODE in
2803           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2804
2805         * Added support for inviting and banning by public key in
2806           Irssi SILC client.  Affected file lib/silcclient/command.c.
2807
2808         * Fixed fingerprint/babbleprint showing in invite and ban
2809           list command replys.  Affected file is
2810           irssi/src/silc/core/client_ops.c.
2811
2812 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2813
2814         * Format CMODE +c and +h to display both the mode and the argument
2815
2816 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2817
2818         * Added test vectors and test programs for SHA-1, MD5,
2819           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2820           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2821           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2822
2823         * Changed the channel private key and private message key
2824           generation (with static keys) to use SHA1 instead of MD5,
2825           as SHA1 is the mandatory hash function in SILC.  Affected
2826           file lib/silcclient/client_[channel/prvmsg].c.
2827
2828         * Changed the private key file encryption to use SHA1 instead
2829           of MD5.  Added support for the old generation and added
2830           automatic change of the key (to be removed later).  Affected
2831           files lib/silccrypt/silcpkcs.c.
2832
2833 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2834
2835         * Load only files with .pub suffix in PublicKeyDir.  Affected
2836           file silcd/serverconfig.c.
2837
2838 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2839
2840         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2841           channels.  Affected files silcd/silcd.c, silcd/server.h.
2842
2843         * Added the config directive PublicKeyDir for the client block.
2844           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2845
2846 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2847
2848         * Merged Toni's irssi/silc.conf patch.
2849
2850         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2851
2852         * Max alloc tests in allocation routines.  Affected file
2853           lib/silcutil/silcmemory.c.
2854
2855 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2856
2857         * Fixed a typo in resuming code that fixed detach/resume code
2858           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2859
2860 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2861
2862         * Do reverse lookups for server when /connecting. Affected files
2863           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2864           irssi/src/core/net-nonblock.*
2865
2866 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2867
2868         * Added library versioning for shared libraries.  Affected
2869           files configure.in.pre and lib/Makefile.am.pre.
2870
2871 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2872
2873         * Display INVITE and BAN lists as specified by SILC 1.2
2874
2875 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2876
2877         * Do not send invite list back unless asked (when sending
2878           no arguments) or when list was modified.  Affected file
2879           silcd/command.c.
2880
2881         * Remove client from invite list in KILLED notify and in
2882           KILL command.  Affected file silcd/command.c and
2883           silcd/server.[ch].
2884
2885         * Fixed bugs in invite list handling in INVITE command.
2886           Affected files silcd/command.c and silcd/server_util.c.
2887
2888         * Merged with Irssi 0.8.6.
2889
2890         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2891           Affected file irssi/src/fe-text/silc.c.
2892
2893 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2894
2895         * The silc_argument_get_[first/next] now return the argument
2896           type to caller.  Added silc_argument_payload_encode_one.
2897
2898           Affected files are lib/silccore/silcargument.[ch].
2899
2900         * Added support for the SILC 1.2 INVITE command and new
2901           invite lists to server.  Affected files are silcd/command.c,
2902           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2903
2904         * Added support for the SILC 1.2 BAN command and new
2905           ban lists to server.  Affected files are silcd/command.c,
2906           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2907
2908         * Added support to client sending new INVITE command.  Affected
2909           file is lib/silcclient/command.c.
2910
2911         * Added support to client sending new BAN command.  Affected
2912           file is lib/silcclient/command.c.
2913
2914         * Added support for removing client from invite list when kicked
2915           from channel, as SILC 1.2 dictates.  Affected files are
2916           silcd/packet_receive.c and silcd/command.c.
2917
2918 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2919
2920         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2921           automatically the cipher's internal IV.  Affected files
2922           lib/silccrypt/silccipher.[ch].
2923
2924         * Assure the RESUME_CLIENT packet is not sent to twice to
2925           backup router if the detached client was originated from
2926           the backup.  Affected file silcd/server.c.  Bug #76.
2927
2928         * Changed silc_sim_symname to not allocate memory.  Affected
2929           file lib/silcsim/silcsimutil.c.
2930
2931         * Fixed memory leaks with SIMs in server.  Affected files
2932           silcd/serverconfig.c, silcd/server.c.
2933
2934         * Fixed channel key distribution after resuming detached
2935           client.  Affected files silcd/packet_receive.c.
2936
2937         * Fixed channel's global_user boolean checking after detaching.
2938           Check it after changing the owner of the client not before.
2939           Affected file silcd/packet_receive.c.
2940
2941         * Fixed few double frees from client library.  Fixes at least
2942           Bug #81, possibly others too.
2943
2944         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2945           notifys in Irssi SILC Client.  Affected file is
2946           irssi/src/silc/core/client_ops.c.  Bug #82.
2947
2948         * Applied Ville Räsänen's manual page and --mandir bugfix
2949           patch.  Affected files are configure.in.pre and Makefile.am.pre.
2950           Bug #88.
2951
2952 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2953
2954         * Added support to backup router protocol for backup to tell
2955           normal server that it cannot use the backup router as primary
2956           because the primary isn't really down.  Updated protocol
2957           specs.
2958
2959         * Added support for primary router to tell backup router that
2960           resuming is not possible because the backup really isn't primary
2961           in the cell.  For example if backup disconnected itself the
2962           resuming is not allowed since the primary really did not
2963           go down.  Updated protocol specs.
2964
2965         * Removed MARS from crypto library.
2966
2967         * Defined the CTR mode and Randomized CBC mode in SILC.  The
2968           CTR mode is RECOMMENDED now in specification.  Defined also
2969           Serpent cipher as optional cipher.  Updated the protocol specs.
2970
2971 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2972
2973         * Added support for inviting/banning by IP/MASK, public key,
2974           and explicit Client ID.  Redefined the command and notify
2975           types to allow easier forwards support for other methods
2976           of inviting/banning.  Updated protocol specs.
2977
2978         * Remove the client from channel's invite lists if the client
2979           is kicked or killed.  Updated protocol specs.
2980
2981         * Unified the Channel Message Payload and Private Message
2982           into one Message Payload.  Updated protocol specs and
2983           implemented.
2984
2985 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2986
2987         * Don't wait for EOF after socket error has occurred, but
2988           close the connection.  Affected file is silcd/server.c.
2989
2990 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2991
2992         * Added support for setting FOUNDER mode on channel with
2993           specific public key which can be set with CMODE command.
2994           Updated protocol specs and implemented in client and server.
2995
2996         * Fixed the Irssi SILC client to correctly shutdown the client
2997           library to avoid memory leaks.  Affected files are
2998           irssi/src/silc/core/silc-core.c and silc-servers.c.
2999
3000         * Deprecated the No Reply flag in SKE protocol and introduced
3001           "IV Included" flag which can be used to indicate that the IV
3002           is included in the ciphertext.  This makes it possible to use
3003           SILC on unreliable transport, such as UDP which may cause
3004           packet reordering and losses.  Updated protocol specs, did
3005           not implement yet.
3006
3007 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3008
3009         * Fixed the MPI implementation of silc_mp_sizeinbase to return
3010           < 32 bit values in correct size.  Affected file is
3011           lib/silcmath/mp_mpi.c.
3012
3013 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3014
3015         * Fixed the KE Start Payload parsing to check that mandatory
3016           fields are present.  Affected file lib/silcske/payload.c.
3017
3018         * Fixed compilation warnigs in Irssi SILC Client.  Affected
3019           files are irssi/src/silc/core/silc-query.c. client_ops.c.
3020
3021 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3022
3023         * Print "nick now appears as newnick" and update Irssi's nicklist
3024           when you change your nick to "nick". Closes #62
3025
3026         * Never format your own nick. Closes #63
3027
3028 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3029
3030         * SILC_UMODE_GONE changes are now propagated correctly to the
3031           Irssi client. Closes #54
3032
3033 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3034
3035         * Fixed example in /HELP KEY
3036
3037         * Added expando $j which expands to current SILC Client version
3038
3039 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3040
3041         * Fixed public key decoding in crypto library.
3042
3043         * Added better error printing to SKE library.
3044
3045 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3046
3047         * Fixed NICK command to not crash if nickname was not sent.
3048
3049 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3050
3051         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
3052           Deprecated the old Encrypt-And-MAC order.  Updated protocol
3053           specs and implemented.
3054
3055         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
3056           generation.  Updated specs and implemented.
3057
3058 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3059
3060         * Added support for rekey before 2^32 sequence number wraps.
3061           Affected files in server and client library.
3062
3063         * Padding must be at least 8 bytes now.  Implemented and updated
3064           protocol specs.
3065
3066         * Compute maximum padding for authentication packets to make
3067           passphrase approximation attacks impossible.  Affected files
3068           in client library and in server.
3069
3070         * Fixed PING command sending in client library and handling in
3071           server.  The server ID must be ID Payload, not raw ID data.
3072           Affected files in server and client library.
3073
3074         * Defined that all public keys sent in commands and notify
3075           payloads are actually Public Key Payloads not raw public key
3076           data.  Updated protocol specs and implemented.
3077
3078         * Updated protocol version to 1.2.  Updated specs and code.
3079
3080         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
3081           status types.  Updated specs and the code.
3082
3083         * Added support for normal client to kill its own entries from
3084           the network.  Updated protocol specs and the code.
3085
3086         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
3087           and added initial implementation.
3088
3089         * Added MAC field to the Private Message Payload to protect
3090           against chosen ciphertext attacks.  Updated the protocol specs
3091           and implemented.
3092
3093         * Added idle and signon fields to the ATTRIBUTE_SERVICE
3094           attribute to indicate the user's current idle and signon time
3095           of a service.  Updated protocol specs and implemented.
3096
3097 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3098
3099         * Added "do_not_bind" argument to silc_client_file_send what
3100           can be used to not bind locally but assume the file receiver
3101           provides the point of connect.  Usefull when sender is behind
3102           NAT device.  Affected file lib/silcclient/silcclient.h and
3103           client_ftp.c.
3104
3105         * Added -no-listener option to FILE SEND command in Irssi SILC
3106           client.  Affected file irssi/src/silc/core/silc-servers.c.
3107           Renamed FILE RECEIVE to FILE ACCEPT.
3108
3109         * Confirm passphrase for private key encryption in
3110           silc_create_key_pair and silc_change_private_key_passphrase.
3111           Affected files are lib/silcutil/silcapputil.c.
3112
3113 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3114
3115         * Move silc_client_packet_send back to internal, added
3116           silc_client_send_packet, a bit simpler function for application.
3117           Affected files lib/silcclient/silcclient.h, client.c and
3118           client_internal.h.
3119
3120         * Moved the SilcClientEntry, SilcChannelEntry and
3121           SilcServerEntry to silcclient.h to be public and documented
3122           them for application.  Affected files are
3123           lib/silcclient/silcclient.h and idlist.h.
3124
3125 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3126
3127         * Fixed manual page installation patch by Ville Räsänen.
3128           USERS help page fix patch by Ville Räsänen
3129
3130         * Changed the silc_client_command_call interface to make
3131           the command call simpler for the application.  The library
3132           now handles the command line parsing, command finding and
3133           execution.  Application only needs to call the function
3134           with the command line.  Affected files are
3135           lib/silcclient/silcclient.h, command.[ch].
3136
3137         * Fixed silc_get_input to NULL-terminate the returned input.
3138           Affected file lib/silcutil/silcutil.c.
3139
3140         * Resolve the client's public key in JOIN command if the
3141           founder auth data is being requested but we don't know the
3142           client's public key.  Affected file silcd/command.c.
3143           Bug #53.
3144
3145 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3146
3147         * Print notify for server opers when backup router comes
3148           online.  Affected file silcd/server.c.
3149
3150         * Fixed the INVITE command to send the invite list in
3151           command reply.  Affected file silcd/command_reply.c.
3152
3153         * Fixed MOTD command reply sending.  Affected file
3154           silcd/command.c.
3155
3156         * UTF-8 decode the topic in TOPIC command reply and LIST
3157           command reply in Irssi SILC client.  Affected file is
3158           irssi/src/silc/core/client_ops.c.
3159
3160 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3161
3162         * Fixed the INVITE command to not crash Irssi SILC client
3163           when given without nickname argument.  AFfected file
3164           irssi/src/silc/core/client_ops.c.
3165
3166         * Fixed double free in WHOIS query on normal server when
3167           forwarding query to router.  Affected file is
3168           silcd/server_query.c.
3169
3170         * Fixed WATCH command reply handling on normal server which
3171           was missing altogether.  Affected file silcd/command_reply.c.
3172           Bug #44.
3173
3174 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
3175
3176         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
3177           Included yodl sources for each of these. Also modified
3178           Makefile.am prototype to install these files to proper
3179           locations. Updated CREDITS. Affected file Makefile.am.pre,
3180           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
3181           doc/silcd.8.
3182
3183 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3184
3185         * Added support for encrypted private key files.  Now
3186           passphrase must be provided when new key pair is created
3187           (can be empty though), and prompted when loading the
3188           private key.  Added support for loading the old-style
3189           non-encrypted private keys as well.  Affected files
3190           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
3191           SILC Server.
3192
3193         * Fixed silc_get_input to accept input on all terminals.
3194           Affected file lib/silcutil/silcutil.c.
3195
3196         * Moved the Irssi SILC client key loading and other stuff
3197           to be called after the arguments and UI is initialized.
3198           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
3199
3200         * Added -P option to Irssi SILC client which can be used
3201           to change the passphrase of the private key.  Affected
3202           file irssi/src/silc/core/silc-core.c.
3203
3204         * Added silc_change_private_key_passphrase apputil routine
3205           to lib/silcutil/silcapputil.[ch].
3206
3207 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3208
3209         * Fixed connection closing in client library to not crash.
3210           Moved the connection freeing totally to function
3211           silc_clinet_del_connection.  Affected file
3212           lib/silcclinet/client.c.
3213
3214 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3215
3216         * Changed includes/silcincludes.h to silcincludes.h.in to
3217           include configuration specific information.  The silcdefs.h
3218           is not included in to installation anymore (it's only
3219           compilation time header).
3220
3221 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3222
3223         * Moved the SilcClient and SilcClientConnection from client.h
3224           to the public lib/silcclient/silcclient.h.  Changed the
3225           structures a bit.
3226
3227 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3228
3229         * If version string in silc_clinet_alloc is NULL the library
3230           puts it automatically.  Affected file lib/silcclient/client.c.
3231
3232         * Changed the version strings from variables to #define's
3233           in includes/silcversion.h.
3234
3235 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3236
3237         * Added shared library complation support.
3238
3239 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3240
3241         * Added lib/silcutil/silcapputil.[ch] for application
3242           utility functions.  It includes routines for applications'
3243           convenience.  Added silc_create_key_pair, silc_show_public_key
3244           and silc_load_key_pair functions.
3245
3246 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3247
3248         * Send RESUME_CLIENT packet from router to backup routers
3249           to in resuming.  Affected file silcd/packet_receive.c.
3250
3251 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3252
3253         * In IDENTIFY command parsing, send all other IDs except
3254           Client IDs explicitly to router for resolving on normal
3255           server.  Also check that ID received in WHOIS command is
3256           always Client ID, others are not allowed.  Affected file
3257           silcd/server_query.c.
3258
3259         * Merged latest changes from irssi.org CVS.
3260
3261 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3262
3263         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
3264           Affected files irssi/src/silc/core/silc-core, silc-server.c.
3265
3266         * Fixed the heartbeat sending in Irssi SILC client.  Moved
3267           the silc_client_packet_send to silcclient.h for application
3268           usage.  Affected files lib/silcclient/client_internal.h
3269           lib/silcclient/silcclient.h.
3270
3271         * Fixed a bug in query resolving in server.  Used wrong
3272           variable in a for loop and crashed.  Affected file is
3273           silcd/server_query.c.
3274
3275         * Server constructs requested attributes only to locally
3276           connected clients.  Affected file silcd/server_query.c.
3277           Bug #36.
3278
3279         * Fixed a bug when sending resolving from router to server
3280           with requested attributes.  The constructed WHOIS command
3281           was incorrect.  Affected file silcd/server_query.c.
3282           Bug #38.
3283
3284         * Fixed Requested Attributes saving in WHOIS command reply.
3285           The length of the data buffer must be saved too.  Affected
3286           file silcd/command_reply.c.
3287
3288         * Update the client entry's servername after detaching is
3289           over.  Affected file silcd/packet_receive.c.  Bug #37.
3290
3291         * Resolve incomplete client entrys in CUMODE_CHANGE and
3292           CMODE_CHANGE notifys.  Affected file is
3293           lib/silcclient/client_notify.c.  Bug #42.
3294
3295 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3296
3297         * Fixed channel key packet processing bug on backup router
3298           during backup resuming protocol.  Affected file is
3299           silcd/packet_receive.c.
3300
3301         * Fixed memory leaks in server.  Affected files are
3302           silcd/server.c and silcd/packet_receive.c.
3303
3304         * Fixed packet decryption problem when backup router encrypted
3305           channel message with wrong key during backup resuming
3306           protocol.  Affected file silcd/packet_send.c.
3307
3308         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
3309           Toni Willberg (toniw@iki.fi)
3310
3311         * Changed the SilcCipher context to be private.  Changed the
3312           silc_cipher_get_iv to just return pointer to the IV.  Added
3313           silc_cipher_get_name to return the name of the cipher.
3314           Fixed code all around to support these changes.  Affected
3315           files are lib/silccrypt/silccipher.[ch], client library and
3316           server.
3317
3318 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3319
3320         * Fixed unaligned access in lib/silccore/silcattrs.c.
3321
3322         * Fixed libtool linking in lib/silcsim/Makefile.am.
3323
3324         * Fixed services attribute printing.  Affected files is
3325           irssi/src/silc/core/silc-queries.c.
3326
3327 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3328
3329         * Fixed a crashbug in incoming server accepting.  Affected
3330           file silcd/server.c.
3331
3332 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3333
3334         * Added automatically generated index to Toolkit Reference
3335           Manual.
3336
3337         * Added support for Postscript Toolkit Reference Manual.
3338
3339 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3340
3341         * Merged DISCONNECT fix, and autoconn port fix from Irssi
3342           CVS.
3343
3344 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3345
3346         * Added 'send_events' boolean argument to the function
3347           silc_schedule_set_listen_fd which sends the set events to
3348           the application explicitly if set to TRUE.  Default action
3349           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
3350           lib/silcclient/client_internal.h and silcd/server_internal.h.
3351
3352         * Added silc_compare_timeval to determine which time values
3353           is smaller.  Affected file lib/silcutil/silcutil.[ch].
3354
3355         * Added sort-of "Quality of Service" (QoS) support to
3356           SilcSocketConnection.  Data reception can be controlled with
3357           rate limit per second and/or read data length limit.
3358           Added silc_socket_set_qos.  Affected files are
3359           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
3360
3361         * Added the QoS configuration to SILC Server configuration
3362           file.  Affected files are silcd/serverconfig.[ch] and
3363           server.c.
3364
3365 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3366
3367         * Merged with irssi.org CVS.
3368
3369         * Failed OPER and SILCOPER authentications are now logged.
3370           Affected file silcd/command.c.  Bugs #25.
3371
3372 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3373
3374         * ROBODoc documented lib/silcutil/silcbuffer.h and
3375           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
3376           <ville.rasanen@iki.fi>.
3377
3378 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3379
3380         * Added support for auto-passphrase authentication from the
3381           config file during connecting which was not implemented
3382           yet.  Affected file irssi/src/silc/core/client_ops.c.
3383
3384         * Fixed a bug in authentication protocol failure handling which
3385           was processing wrong callback context.  Affected files
3386           are lib/silcclient/client.c and protocol.c.
3387
3388         * Fixed the /ATTR allow off to actually work.  Affected file
3389           is irssi/src/silc/core/silc-queries.c.
3390
3391         * Fixed the /ATTR -del to work.  Affected file is
3392           irssi/src/silc/core/silc-queries.c.
3393
3394 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3395
3396         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
3397
3398         * Fixed mask attribute adding in Irssi SILC client.  Affected
3399           file irssi/src/silc/core/silc-queries.c.
3400
3401 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3402
3403         * Added support for saving the requested attributes in
3404           WHOIS to directory.  Affected file is
3405           irssi/src/silc/core/silc-queries.c.
3406
3407 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3408
3409         * Added support for parsing VCard fields that do not have
3410           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
3411
3412         * Fixed a double free bug in hash table foreach function
3413           if the entry was deleted in the foreach callback.  Affected
3414           file lib/silcutil/silchashtable.c.
3415
3416 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3417
3418         * Added silc_attribute_get_verify_data to return the signature
3419           verification data for either user digital signature or
3420           server digital signature in Requested Attributes.  Affected
3421           files are lib/silccore/silcattrs.[ch].
3422
3423         * Added silc_vcard_alloc which is used to allocated dynamic
3424           SilcVCard context.  The silc_vcard_free now checks whether
3425           the context is dynamically allocated or not.  Affected files
3426           are lib/silcutil/silcvcard.[ch].
3427
3428 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3429
3430         * Periodically remove the NOATTR status from client entry
3431           so that the client may take the attributes in use even after
3432           server has resolved them unsuccessfully earlier.  Affected
3433           file silcd/server_query.c and idlist.h.
3434
3435         * Moved sha1hash and md5hash from client->internal to
3436           SilcClient for application usage.  Affected files are
3437           lib/silcclient/client.h and client_internal.h.
3438
3439         * Fixed attribute encoding and decoding bugs.  Affected
3440           files lib/silccore/silcattrs.[ch].
3441
3442         * Added ATTR command to Irssi SILC Client which is used to
3443           manage user's Requested Attributes sending and values for
3444           WHOIS command.  Affected files around Irssi SILC client.
3445
3446 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3447
3448         * Added silc_buffer_strformat which can be used to format
3449           strings into a buffer which size is automatically increased.
3450           Affected file lib/silcutil/silcbuffmt.[ch].
3451
3452         * Added implementation of VCard (RFC 2426) which can be used
3453           as part of Requested Attributes in WHOIS command.  Affected
3454           file lib/silcutil/silcvcard.[ch].
3455
3456 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3457
3458         * Some strncat -> silc_strncat changes our the core and
3459           client library.
3460
3461         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
3462           errors.  Added better error printing to SKE library.
3463           Affected files lib/silcske/silcske.c, silcske_status.h and
3464           payload.c.
3465
3466         * Save the PKCS key length even if only private key is set to
3467           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
3468
3469         * Fixed the usage of silc_pkcs_get_key_len since it returns the
3470           length in bits not in bytes.  Affected files are
3471           lib/silcske/silcske.c, lib/silccore/silcauth.c and
3472           silcd/server_query.c.
3473
3474 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3475
3476         * Added silc_attribute_payload_encode_data to directly encode
3477           the data into the attributes buffer.  Renamed function
3478           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
3479           Affected files are lib/silccore/silcattrs.[ch].
3480
3481         * silc_hash_table_find_foreach calls the foreach function now
3482           once even if the nothing was found with context set to NULL.
3483           Affected file lib/silcutil/silchashtable.[ch].
3484
3485         * Remove the RESOLVING flag from client entry after received
3486           the Requested Attributes from the client.  Fixed memory leak
3487           in client entry freeing.  Affected files silcd/server_query.c
3488           and idlist.c.
3489
3490         * Added Requested Attributes support into SILC Client Library.
3491           It is not able to send requested attributes in WHOIS command,
3492           and also receive and process requested attributes.  Added
3493           silc_client_attribute_[add|del] and silc_client_attributes_get
3494           functions.  Added also `ignore_requested_attributes' to the
3495           SilcClientParams to not use attributes in client.  Affected
3496           files are lib/silcclient/command.c, client_attrs.[ch],
3497           silcclient.h, client_internal and client.[ch].
3498
3499         * Changed the silc_client_get_client_by_id to support Requested
3500           Attributes, it takes them as argument now.  Affected file
3501           is lib/silcclient/silcclient.h, and idlist.c.
3502
3503         * Added -details option to WHOIS command in Irssi SILC Client
3504           to support the requested attributes.  By default it requests
3505           all attributes.  Affected file lib/silcclient/command.c and
3506           irssi/doc/help/in/whois.in.
3507
3508 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3509
3510         * Add also SERVICE attribute for server-constructed attribute
3511           data.  Also digitally sign the attributes and add
3512           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
3513           silcd/server_query.c.
3514
3515 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3516
3517         * Changed the silc_attribute_payload_encode to support list
3518           of attributes (function may be called several times to add
3519           a new attribute).  Removed the silc_attribute_payload_encode_list
3520           function.  The encoding function now also automatically encodes
3521           the data, so the caller does not need to do that.  Affected
3522           files lib/silccore/silcattrs.[ch].
3523
3524         * Added support for replying on behalf of the user to the
3525           Requested Attributes in WHOIS command in the server.  Affected
3526           file silcd/server_query.c.
3527
3528         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
3529           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
3530
3531 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3532
3533         * Don't swtich to become primary router if we are backup if
3534           decryption error has occurred.  Affected file silcd/server.c.
3535
3536         * Fixed a bug in backup router IP address comparison in
3537           silc_server_backup_get.
3538
3539           Save now also the port of the server/router and use that
3540           in comparison as well.  Affected file silcd/server_backup.c.
3541
3542         * Normal server now reconnects to backup router automatically
3543           if connection is lost to it.  Affected file silcd/server.c.
3544
3545 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3546
3547         * If packet processing fails (like integrity check fails)
3548           the connection is closed now.  Affected files are
3549           lib/silccore/silcpacket.c and silcd/server.c.
3550
3551 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3552
3553         * Fixed double free in RSA public key set function
3554           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
3555           Bug #29.
3556
3557 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3558
3559         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
3560           Added server_query.[ch] which provides one interface for
3561           querying information using all three commands.
3562
3563         * Changed all "typedef unsigned char" in core library to
3564           "typedef SilcUInt8".
3565
3566 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3567
3568         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
3569
3570         * Renamed silc_server_get_client_resolve to
3571           silc_server_query_resolve and moved to server_query.[ch].
3572
3573 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3574
3575         * Resumed client packet handling from server put the resumed
3576           client on wrong list on router and caused the client not
3577           be present on the network anymore.  Now fixed to put the
3578           client to correct list.  Affected file silcd/packet_receive.c.
3579
3580 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3581
3582         * Various cleanup in error message output in config parsing code
3583           and in server init code.  Fixed error log files containing
3584           too many newlines ('\n') in some situations.  Affected files are
3585           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
3586
3587 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3588
3589         * Use the reverse lookupped hostname in client internals
3590           instead of one user provided us as remote server name.
3591           Affected file lib/silcclient/client.c.
3592
3593 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3594
3595         * Added 'app_context' to silc_schedule_init.  It is an
3596           application specific context that is delivered to application
3597           in task callback functions.  Affected files are
3598           lib/silcutil/silcutil.[ch].
3599
3600         * The hb_context in SilcSocketConnection is not freed
3601           automatically anymore (application must free it).  Freeing
3602           it automatic is inconsistent.  Affected files are
3603           lib/silcutil/silcsockconn.[ch].
3604
3605 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3606
3607         * Added support for removing explicitly added client connections
3608           in rehash and closing the client connections if they were
3609           unconfigured in the rehash.  Affected file silcd/server.c.
3610
3611         * Added support for aborting automatically pending commands
3612           that never receives the reply (to avoid memory leaks).
3613           Added also silc_server_command_pending_timed to set the
3614           specific timeout for pending command.  Affected files are
3615           silcd/command[_reply].[ch].
3616
3617         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
3618           specs and lib/silccore/silcstatus.h.
3619
3620 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3621
3622         * Changed the silc_get_time to accept time value as argument
3623           or if zero is sent return current local time.  Affected
3624           file lib/silcutil/silcutil.[ch].
3625
3626         * Added STATS command to client library and Irssi SILC client.
3627           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
3628
3629 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3630
3631         * Assure that channel key is set before sending it.  May
3632           crash server otherwise.  Affected file silcd/packet_send.c.
3633
3634 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3635
3636         * Assure that endless loop cannot happen with detached client
3637           resolving on normal server.  Added idlist status
3638           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
3639           silcd/idlist.h and silcd/packet_receive.c.
3640
3641 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3642
3643         * Incoming file transfer request cannot use same session as
3644           the sending session.  This can happen when sending file to
3645           yourself.  Crashed the client on quit.  Affected file
3646           lib/silcclient/client_ftp.c.  Bug #24.
3647
3648 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3649
3650         * Implemented the draft-riikonen-precense-attrs draft and
3651           the Attribute Payload into the lib/silccore/silcattrs.[ch].
3652
3653 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3654
3655         * Distribute the SERVER_SIGNOFF notify also to local backup
3656           routers from the primary router.  The backup router may not
3657           have the signing of local server directly connected and need
3658           to know about the signoff.  Affected file silcd/server_util.c.
3659
3660         * Use the primary router as the origin of the locally connected
3661           server when it is disconnecting from the backup router since
3662           that's where it really is coming from.  Now the clients from
3663           the disconnecting server are removed correctly and "shadow"
3664           clients are not left to the backup router.  Affected file
3665           silcd/server.c.
3666
3667 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3668
3669         * If normal server is standalone and found existing but disabled
3670           channel, do not re-create the channel since it creates
3671           duplicate same channels.  Affected file silcd/server.c.
3672
3673         * Added anonymous client connections support to server.  New
3674           "anonymous" configuration option to ConnectionParams section
3675           added.  If set to true, the username and hostname information
3676           of the client will be scrambled and anonymous user mode is
3677           set automatically to the user.  Affected files are
3678           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3679
3680 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3681
3682         * In JOIN notify handling, mark that the cache entry of the
3683           client cannot be expired.  Can cause crashes on normal
3684           server (asserts client->channels).  Affected file is
3685           silcd/packet_receive.c.
3686
3687         * From now on distribution versions are used as protocol versions
3688           instead of by default using the Toolkit base version as protocol
3689           version.  Affected file prepare.
3690
3691         * Do not set the locally resolved hostname for local client
3692           entry but take what server sends.  This way the real hostname
3693           is showed in WHOIS for yourself.  Affected file is
3694           lib/silcclient/idlist.c and lib/silcclient/client.c.
3695
3696         * Resolve local info with IDENTIFY when connecting to server.y
3697
3698 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3699
3700         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3701           for implied search (not needed on platforms which has native
3702           pthreads library).  Use --without-pthreads to disable threads.
3703           Affected file is configure.in.pre
3704
3705         * Fixed --with-iconv on platforms which need to bypass (broken)
3706           native iconv().  Affected file is configure.in.pre
3707
3708 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3709
3710         * Moved -C option parsing in Irssi SILC client at same time
3711           as other options.  The UI was initialized earlier and caused
3712           problems on command line.  Bug #16.  Affected file is
3713           irssi/src/silc/core/silc-core.c.
3714
3715 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3716
3717         * Added global variable silc_log_timestamp that tells silclog
3718           wether to print or not the timestamp in the logging files.
3719           Affected file lib/silcutil/silclog.[ch].
3720
3721         * Added silcd configuration option Timestamp in the Logging
3722           section.  Affected file silcd/serverconfig.[ch],
3723           doc/example_silcd.conf.in.
3724
3725 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3726
3727         * Fixed fingerprint checking to check for entirely empty
3728           fingerprint instead of two first bytes when determining
3729           if it is set.  Bug #18.  Affected file silcd/command.c.
3730
3731         * Fixed duplicate PKCS name registering to not allow it.
3732           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3733
3734 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3735
3736         * Conditionalize non-gcc compiler optimizations for various
3737           platforms, enable those commented out.  Cleanups.
3738           Affected file lib/silcmath/mpi/configure.in
3739
3740 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3741
3742         * silc_rng_exec_command() left zombie processes if command
3743           didn't generate any output.  Affected file
3744           lib/silccrypt/silcrng.c
3745
3746 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3747
3748         * Rewrote iconv checking, introduce --with-iconv for systems
3749           which rely on libiconv.  Check if iconv() provided by libc
3750           is good enough, otherwise demand libiconv.  Affected file
3751           configure.in.pre
3752
3753 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3754
3755         * Search for ldopen() also in libc.  This enables SIM support
3756           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3757           file configure.in.pre
3758
3759 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3760
3761         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3762           This fixes prepare on *BSD systems.  Affected file
3763           configure.in.pre
3764
3765 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3766
3767         * More fixed for not having purge timeout for global clients
3768           that are on channel.  Affected files silcd/command_reply.c
3769           and server_util.c.
3770
3771         * Fixed the rekey protocol to work with backup router connections.
3772           Rekey packets are now allowed on disabled connections as
3773           well.  Affected files silcd/packet_send.c and server.c.
3774
3775         * Do not switch to be as backup router when shutting down and
3776           closing the primary connection.  Affected file silcd/server.c.
3777
3778         * Fixed memory leaks in backup router deleting.  Added
3779           silc_server_backup_free to free all data during shutdown of
3780           server.  Affected files silcd/server_backup.[ch].
3781
3782 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3783
3784         * Do not process commands if the sock->user_data is NULL.
3785           Affected file silcd/command.c.
3786
3787 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3788
3789         * Fixed buffer overflow and security problems (loosing bits
3790           in CFB encryption) in SILC RNG.  Problems reported by
3791           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3792
3793 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3794
3795         * Added yet more checks that client is not expired on global
3796           list if it is on channels.  Affected file is
3797           silcd/command_reply.c.
3798
3799 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3800
3801         * Merged c0ffee's MIME signal patch which adds support for
3802           sending also MIME messages in Irssi SILC Client, and handling
3803           received MIME messages in a signal (and perhaps doing something
3804           to non-textual MIME messages).
3805
3806 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3807
3808         * Fixed pending command deletion in server and client library
3809           to check the whole list instead of breaking after first found.
3810           The affected files are silcd/command.[ch] and
3811           lib/silcclient/command.[ch].
3812
3813 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3814
3815         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3816           secret or private, otherwise it's possible to find out
3817           whether a secret channel exists or not.  Affected file
3818           silcd/command.c.
3819
3820         * If CMODE change fails during the mode setting, assure that
3821           the old mode mask is set for the channel back.  Affected
3822           file silcd/command.c.
3823
3824         * Fixed passphrase saving on +a channel on normal server
3825           after successful JOIN command.  Affected file silcd/command.c.
3826
3827 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3828
3829         * Remove server/router operator privileges in DETACH command,
3830           since it's possible to resume to server where these
3831           privileges would not be allowed for the client.  Affected
3832           file silcd/command.c.
3833
3834         * Do not set to wait for backup in rehash of the server.
3835           Affected file silcd/server.c.
3836
3837         * Do not check listener sockets when counting how many
3838           socket connections we have.  Affected file is
3839           silcd/server_util.c.
3840
3841         * Do not announce disconnected clients that are remaining
3842           in history (for WHOWAS).  This is because SIGNOFF notify
3843           for these has been sent earlier already.  Affected file
3844           silcd/server.c.
3845
3846 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3847
3848         * Buffer overflow with CUMODE command's mode->mode character
3849           conversion.  Reported by Ville Räsänen.  Affected file
3850           lib/silcutil/silcutil.c.
3851
3852 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3853
3854         * Allow heartbeat packets to go disabled connections anyway.
3855           Affected files silcd/server.c and silcd/packet_send.c.
3856
3857         * Do not broadcast New Channel packets with List flag set
3858           in the packet to backup routers.  The router must check
3859           for the correctness of the packets before sending them.
3860           It is possible that router will have enforce Channel ID
3861           change and this would cause desync in the backup router.
3862           Affected file silcd/packet_receive.c.
3863
3864         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3865           are handled in list parsing.  They are not list packets
3866           anymore.  Affected file silcd/packet_receive.c.
3867
3868 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3869
3870         * Stop waiting for backup router through the timeout, not
3871           directly after backup router has arrived.  Affected file
3872           silcd/server.c.
3873
3874         * Do not re-create channel keys and send them when removing
3875           clients in server shutdown.  Affected files are
3876           silcd/server_internal.h and silcd/server_util.c.
3877
3878         * Notify distribution to backup routers was missing from
3879           the silc_server_send_notify_dest function which caused
3880           desyncing problems with backup router.  Affected file is
3881           silcd/packet_send.c.
3882
3883         * The client's channel removing was working wrong on
3884           backup router.  It assumed that it doesn't know global
3885           information but backup router does know.  For this reason
3886           it could remove channel when it wasn't supposed to do that.
3887           Affected file silcd/server.c and silcd/server_util.c.
3888
3889 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3890
3891         * Stop for a couple seconds after badkup router has become
3892           primary router.  Affected file silcd/server.c.
3893
3894         * Added silc_server_remove_servers_by_server, which is used
3895           to remove servers originated from some other server.  Also
3896           clients of those servers can be removed too.  Affected file
3897           silcd/server_util.[ch].
3898
3899         * When removing clients after a server has signed of remove
3900           also all servers behind that server (unless they are known
3901           to be available locally), and send SERVER_SIGNOFF for each
3902           of the server separately.  Also the signed off clients are
3903           sent now separately per signed off server.  The affected files
3904           are silcd/server.c and silcd/server_util.[ch].
3905
3906         * All servers added with silc_idlist_add_server must always
3907           have both "router" and "connection" pointers set.  Otherwise,
3908           bad server entries may be left around in the cache.
3909           Affected file silcd/command_reply.c.
3910
3911         * Do not create the channel key in NEW_CHANNEL packet
3912           processing if the channel is empty.  Affected file
3913           silcd/packet_receive.c.
3914
3915         * Completed backup router support for standalone routers.
3916           Supports also servers in the cell that do not use the backup
3917           at all.
3918
3919 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3920
3921         * Fixed a bug in silc_string_regexify which did not add '^'
3922           at the start of each string, and thus the matching was
3923           not explicit.  For example ban list iikone@*!*@* would
3924           match also "priikone", which is wrong, it would have to be
3925           *iikone@*!*@* to match also "priikone".  Affected
3926           file lib/silcutil/unix/silcunixutil.c.
3927
3928 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3929
3930         * Enable all local server connections before updating client
3931           caches when we've become backup router.  Otherwise, signoff
3932           packets may not reach the clients.  Affected files are
3933           silcd/server.c and silcd/server_util.[ch].
3934
3935         * Fixed a bug in version string parsing which could crash
3936           the program with specially formatted version string.
3937           Bug reported and patch provided by Ville Räsänen.  Affected
3938           file lib/silcutil/silcutil.c.
3939
3940         * Handle the disconnection immediately when DISCONNECT
3941           packet is received in server.  Affected file silcd/server.c.
3942
3943         * Primary router now waits a short time (10 seconds) for
3944           backup router connection before accepting any other
3945           connection (except local).  Affected file silcd/server.c,
3946           serverconfig.[ch].
3947
3948         * Fixed a crash in client libary in NICK_CHANGE notify when
3949           NICK_CHANGE arrived for client entry we are resolving
3950           currently.  Affected file lib/silcclient/client_notify.c.
3951
3952         * Call the sconn->callback completion even if error had
3953           occurred.  Start reconnecting always if connection to
3954           primary router fails during backup router protocol.
3955           Affected files silcd/server.c and server_backup.c.
3956
3957 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3958
3959         * Added functions silc_server_send_opers and
3960           silc_server_send_opers_notify to send packets stricly
3961           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
3962           to send variable argument notify to operators.
3963           Affected files silcd/packet_send.[ch] and silcd/server.h.
3964
3965         * Removed UMODE rights checking with UMODE_CHANGE notify.
3966           Affected file silcd/packet_receive.c.
3967
3968         * Server/router operator now receives notify when network
3969           switches to backup router and when it resumes the use of
3970           primary router.  Affected file silcd/server.c and
3971           silcd/server_backup.c.
3972
3973         * Fixed the updating of client information after backup
3974           resuming protocol is over; update all except local clients
3975           to the new primary router.  The affected file is
3976           silcd/server_util.c.
3977
3978         * Added support for closing active connections in rehash
3979           that were unconfigured by the user.  Supports currently
3980           closing server and router connections.  Affected file
3981           silcd/server.c.
3982
3983         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
3984
3985 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3986
3987         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
3988           is NULL since seems that on some platforms NULL is allowed
3989           and on some it's not.  Fallback encoding is used instead.
3990           Affected file lib/silcutil/silcstrutil.c.
3991
3992         * Fixed statistics updating for incoming server connection
3993           which could cause problems when re-connecting.  Affected
3994           file silcd/server.c.
3995
3996         * Preliminary backup router support for standalone router
3997           added.  Affected files in silcd/.
3998
3999         * Mark server connections in backup router disabled before
4000           and after backup protocol.  Affected file is
4001           silcd/server_backup.c.
4002
4003         * Added support for reconnecting to remote server connection
4004           even if the protocol fails, and if the configuration wants
4005           us to keep trying to connect anyway.
4006
4007           Server connection is not allowed to backup router if
4008           backup router does not have connection to primary router yet.
4009
4010           Affected file is silcd/server.c.
4011
4012 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4013
4014         * Added silc_client_udpate_server function to update changed
4015           server info.  Affected file lib/silcclient/idlist.[ch].
4016
4017         * Added check for server entries that are being resolved when
4018           notify is received.  If being resolved, handle the received
4019           notify only after it's resolved so that all notifys are
4020           handled in same order as received from the server.
4021
4022           Added similar resolver check to channel entries.  Every
4023           notify that cause resolving of any information that affects
4024           channel entry marks the channel entry in waiting state.
4025           After whatever resolving is over the waiters are signalled
4026           and only then the notifys are handled in the same order
4027           as delivered from the server.
4028
4029           Affected files are lib/silcclient/idlist.[ch], and
4030           client_notify.c.
4031
4032         * Fixed KILLED notify handling in normal server.  Affected
4033           file silcd/packet_receive.c.
4034
4035         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
4036           is locally connected, or was locally connected (but may
4037           be detached and connection is not active).  Added also
4038           SILC_IS_LOCAL for checking this status.  Affected files
4039           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
4040           silcd/server.c and silcd/server_internal.h.
4041
4042 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4043
4044         * Don't send or handle TOPIC_SET if topic is already set and
4045           is same as being set.  Affected files silcd/command.c and
4046           silcd/packet_receive.c.
4047
4048         * Fixed CMODE change rights checking to work correctly when
4049           removing modes by operator.  Affected file is
4050           silcd/server_util.c.
4051
4052         * Fixed some handling with New Channel packet in router and
4053           fixed some CMODE_CHANGE notify handling in server and router.
4054           Affected file is silcd/packet_receive.c.
4055
4056         * Changed "disconnect" client operation to include the
4057           reason of the disconnection and optional disconnection
4058           message.  Affected file lib/silcclient/silcclient.h.
4059
4060         * Made the compilation of lib/contrib/ stuff conditional.
4061           Affected files configure.in.pre, lib/contrib/Makefile.am.
4062
4063 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4064
4065         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
4066           to the sender of the notify too, to avoid situation where two
4067           notifys are in the network at the same time going to oppsite
4068           directions.  Affected file silcd/packet_receice.c.
4069
4070 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4071
4072         * Delete the client from channel even if the cilent->id is
4073           NULL.  It was possible that client was deleted without
4074           removing from channels (theoretically at least).  Affected
4075           file silcd/server.c and silcd/server_util.c.
4076
4077         * Free the client data too when resuming is not successful.
4078           Affected file silcd/packet_receive.c.
4079
4080         * Merged some code from c0ffee's silc-plugin.  Affected files
4081           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
4082
4083         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
4084           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
4085           to the primary router connection, the other one returns
4086           TRUE if packet must be broadcasted to network.
4087
4088         * All notifys that are destined to primary router (to network)
4089           are now automatically sent to backup routers even if the
4090           router is standalone (and has backup router).  Affected files
4091           in silcd/.
4092
4093         * Added --without-irssi and --without-silcd configuration
4094           options for disabling the compilation of these applications.
4095           Affected file configure.in.pre and prepare.
4096
4097 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4098
4099         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
4100           UTF-8 encoding and decoding.  Added also new encodings
4101           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
4102
4103           Added also SILC_STRING_LANGUAGE which is language and charset
4104           specific encoder and decoer for those platforms that support
4105           iconv().  It can convert the UTF-8 to and from the locale
4106           specific character set.
4107
4108           Affected file lib/silcutil/silcstrutil.[ch].
4109
4110         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
4111
4112         * Added function silc_get_command_name to the file
4113           lib/silcutil/silcutil.[ch].
4114
4115         * Improved the server debug output a bit.  Affected files are
4116           in silcd/.
4117
4118 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4119
4120         * Save the channel passphrase when received succesful JOIN
4121           command reply from router, on normal server.  Otherwise
4122           joinig +a channels from normal server is not possible.
4123           Affected file silcd/command.c.
4124
4125         * Fixed a bug in TOPIC_SET notify handling.  The notifier
4126           may be other than client too, like server or channel.
4127           It expected it to always be only client and ignored the
4128           notify.  Affected file silcd/packet_recieve.c.
4129
4130         * Removed some (unnecessary) debug printing from
4131           lib/silccore/silcid.c and lib/silccore/silcargument.c.
4132
4133         * Do not force CMODE_CHANGE when server is announcing new
4134           channel.
4135
4136           Router announces stuff only after server reannounces channel
4137           after CHANNEL_CHANGE notify.
4138
4139           These fixes optimizes the announcing procedure, and perhaps
4140           fixes some problems too.  Affected file silcd/packet_receive.c.
4141
4142         * Fixed SERVER_SIGNOFF sending to local clients.  It was
4143           totally broken and sent the notify to all local clients,
4144           instead of only to those that was on same channel as the
4145           signing off clients.  Affected file silcd/server_util.c.
4146
4147         * Added -D option to server.  It can be used to give debug
4148           level.  The levels are from 0 - 99, and are predefined for
4149           smooth server debugging.  (see silcd.c for the predefined
4150           levels).  Affected file silcd/server.c.
4151
4152 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4153
4154         * Fixed a bug in Irssi SILC client to close the connection
4155           properly when disconnecting from server.  Affected file
4156           irssi/src/silc/core/client_ops.c.
4157
4158 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4159
4160         * When authenticating as founder during JOIN command, check
4161           that the one authenticating becomes the only founder on the
4162           channel.  Affected file silcd/command.c.
4163
4164         * Better checking for founder mode setting when CUMODE_CHANGE
4165           notify is received.  Affected file silcd/packet_receive.c.
4166
4167         * Close all connections when shutting down the server by sending
4168           DISCONNECT packet.  Close all listeners too when shutting
4169           down the server.  Affected file silcd/server.c.
4170
4171         * Handle DISCONNECT packet correctly in client library by
4172           calling the "disconnect" client operation.  Affected file
4173           lib/silcclient/client.c.
4174
4175         * Handle local errors correctly during resuming.  Affected
4176           file lib/silcclient/client.c.
4177
4178 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4179
4180         * The log file is not dupped internally anymore in
4181           lib/silcutil/silclog.c.  Fixed memory leaks too.
4182
4183         * The scheduler now dispatches all pending timeout tasks
4184           when it is uninitialized with silc_schedule_uninit.
4185           Affected file lib/silcutil/silcschedule.c.
4186
4187 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4188
4189         * Added --enable-stack-trace option to configure.  Added
4190           memory allocation stack trace support.  Added files
4191           lib/silcutil/stacktrace.[ch].  Affected files are
4192           lib/silcutil/silcmemory.[ch].
4193
4194         * Fixed memory leaks from libraries and server.  Affected
4195           files around the tree.
4196
4197         * Reverted back a fix made to CUMODE which broke it.
4198           Affected file silcd/command.c.
4199
4200 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4201
4202         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
4203           core library, and implemented it.  All textual messages SHOULD
4204           use this flag and the message MUST be UTF-8 encoded.
4205           All text messages sent by Irssi SILC client are now UTF-8
4206           encoded (regardless whether the terminal supports UTF-8 or not).
4207           Affected files are lib/silccore/silcchannel.h,
4208           irssi/src/silc/core/silc-servers.c, silc-channels.c and
4209           client_ops.c.
4210
4211 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4212
4213         * Added lots of new statistics updating that was missing from
4214           the server and router code.  Affected files in silcd/.
4215
4216         * Sending SIGUSR1 signal to server now dumps the current
4217           server statistics into /tmp directory.  Affected file is
4218           silcd/silcd.c.
4219
4220         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
4221           the SILC Hash Interface also.  Added new functions
4222           silc_hash_get_name, silc_hash_init, silc_hash_update and
4223           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
4224
4225 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4226
4227         * Added some better info printing for client during connecting.
4228           Affected file silcd/server_util.c.
4229
4230         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
4231           to silence a user on a channel.  Affected files are
4232           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
4233           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
4234           and silcd/packet_receive.c.
4235
4236         * Fixed a fatal bug in handling of malformed command payload.
4237           Affected file silcd/command.c.
4238
4239         * Fixed a double free when announcing channel users to router.
4240           Affected file silcd/server.c.
4241
4242         * After successful authentication to channel founder mode, check
4243           that there isn't anyone else with founder mode on the channel.
4244           The one that authenticated will become founder and anyone
4245           else is demoted.  Affected file silcd/command.c.
4246
4247         * Added error printing of any error that has occurred during
4248           any command in client library.  Affected file is
4249           irssi/src/silc/core/client_ops.c.
4250
4251         * Removed some error printing from the client library and left
4252           it for the application to worry (from the error status it
4253           receives in 'command' client operation.  Affected file is
4254           lib/silcclient/command.c.
4255
4256 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4257
4258         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
4259           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
4260           Starting key agreement with itself is denied.  Affected file
4261           is lib/silcclient/client_keyagr.c.
4262
4263         * Fixed some error checkings from the SFTP library which caused
4264           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
4265           and lib/silcsftp/sftp_util.c.
4266
4267         * Added new "debug" and "debug_string" settings to Irssi SILC
4268           client which can be used to print runtime debugging on the
4269           Irssi's screen.  Available when compiled with --enable-debug
4270           option.  Affected file irssi/src/silc/core/silc-core.c.
4271
4272 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
4273
4274         * Fixed a missing variadic parameter in a function call that
4275           caused server crash when a non-allowed connection arrived.
4276           Reported by Richard Becker.  Affected file silcd/server.c.
4277
4278 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4279
4280         * Added WATCH list sending to backup routers from router.
4281           The WATCH command is sent by the router to the backup
4282           router.  Affected file silcd/command.c.
4283
4284         * Mark the backup_router flag for RouterConnection entry
4285           if the backup router stuff is defined in the config file.
4286           Affected file silcd/serverconfig.c.
4287
4288         * Fixed some backup data sending around the code to work better
4289           if the router is standalone router.  Not all places were fixed.
4290           Affected file silcd/packet_receive.c, silcd/packet_send.c,
4291           silcd/server.c.
4292
4293         * Fixed the router connecting when connecting to multiple
4294           routers.  It ignored every other router except the first
4295           one.  Affected file silcd/server.c.
4296
4297 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4298
4299         * Made the private key generation after expiration optional.
4300           If not created after expiration the old key will re-expire
4301           at a later time (and thus key pair is not necessary to
4302           change).  Affected file irssi/src/silc/core/clientutil.c.
4303
4304 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4305
4306         * The length arguments in bind() and connect() were wrong
4307           and fixed now to used SIZEOF_SOCKADDR in the
4308           lib/silcutil/unix/silcunixutil.c.
4309
4310 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4311
4312         * Fixed detach timeout handling to use Client ID and not
4313           the actual client entry which may be freed in the callback.
4314           Affected file silcd/command.c.
4315
4316 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4317
4318         * Merged c0ffee's multiple interface support patch.
4319           Affected files in silcd/.
4320
4321 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4322
4323         * Cleanup keys properly.  Affected file is
4324           irssi/src/silc/core/clientutil.c.
4325
4326 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4327
4328         * Display the user mode on the status bar.  Affected file
4329           irssi/src/silc/core/silc-expandos.c.
4330
4331 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4332
4333         * If private message key is not set, but the flag is set in
4334           the packet, ignore the packet since it cannot be decrypted.
4335           Affected file lib/silcclient/client_prvmsg.c.
4336
4337 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4338
4339         * When resuming client, remove the old client entry from
4340           the watcher list too.  Affected file silcd/packet_receive.c.
4341
4342         * Do not allow normal server to force founder mode away
4343           from router if the founder mode is already set.  Affected
4344           file silcd/packet_receive.c.
4345
4346         * Remove the client entry with watch notify types with short
4347           timeout, and not directly, so that other notifys can be
4348           retrieved too.  Affected file lib/silcclient/client_notify.c.
4349
4350         * Display notification about data messages that cannot be
4351           displayed.  Affected files irssi/src/silc/core/client_ops.c,
4352           irssi/src/fe-common/silc/module-formats.[ch].
4353
4354 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4355
4356         * Fixed the CHANNEL_CHANGE notify handling in client libary
4357           to not use freed memory.  Affected file is
4358           lib/silcclient/client_notify.c.
4359
4360         * Fixed CUMODE_CHANGE notify handling in server.  Affected
4361           file silcd/packet_receive.c.
4362
4363         * Fixed USERS command to support empty channels.  Affected
4364           file silcd/command.c.
4365
4366 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4367
4368         * Allow multiple identical pending commands to be registered
4369           in client library.  Affected file is lib/silcclient/command.c.
4370
4371         * Call the completion for resolving client information only
4372           after all resolvers has finished.  This fixes a crash in
4373           the client.  Added support for checking when the resolvers
4374           are finished.  Affected file is lib/silcclient/idlist.c.
4375
4376         * Wait by default 3 seconds before reconnecting to the server
4377           after being disconnected.  Makes the /detach command a bit
4378           more usable.
4379
4380 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4381
4382         * Check the watcher list before sending signoff notifys
4383           when closing client connection.  Affected file is
4384           silcd/server.c.
4385
4386         * Added better CMODE command rights checking.  Affected file
4387           silcd/server_util.c.
4388
4389 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4390
4391         * Fixed watcher list checking during server signoff.  It
4392           crashed the server.  Affected file silcd/server_util.c.
4393
4394         * The JOIN command reply returns now the founder's public
4395           key.  Affected file is silcd/command.c.
4396
4397         * Announce the channel mode, and the mode properties with
4398           CMODE_CHANGE notify.  Affected file silcd/server.c.
4399
4400         * Mark new channels by default disabled, untill at least
4401           one user joins the channel.  Affected file is
4402           silcd/packet_receive.c.
4403
4404 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4405
4406         * The nickname argument to watch notify can be optional.
4407           Fixes a crash in server.  Affected file silcd/packet_send.c.
4408
4409         * Remove the client entry from cache if the WATCH notify type
4410           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
4411           lib/silcclient/client_notify.c.
4412
4413         * Check the watcher list before and after changing nickname
4414           when the NICK_CHANGE notify is received.  Affected file is
4415           silcd/idlist.c.
4416
4417         * Fixed a crash in OPER and SILCOPER command sending.  Empty
4418           passphrase caused the crash.  Affected file is
4419           lib/silcclient/command.c.
4420
4421 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4422
4423         * Merged with Irssi CVS for Irssi SILC client.
4424
4425 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4426
4427         * Completed the protocol specifications.
4428
4429 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4430
4431         * Merged with Irssi CVS for Irssi SILC client.
4432
4433 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4434
4435         * Added the founder's public key delivery to the
4436           CUMODE_CHANGE notify type as well.  Updated the protocol
4437           specs and the code.  Affected files are silcd/packet_send.[ch],
4438           silcd/packet_receive.c and silcd/command.c.
4439
4440 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4441
4442         * Added silc_pkcs_public_key_copy function into the
4443           lib/silccrypt/silcpkcs.[ch].
4444
4445         * Remove the `iv' from the SilcChannelEntry since we can
4446           live without it.  Affected files are silcd/idlist.h and
4447           silcd/packet_receive.c.
4448
4449         * Added support for sending the founder's public key in
4450           the CMODE_CHANGE notify packet in the server.  Affected
4451           files are silcd/packet_send.[ch], silcd/packet_receive.c,
4452           silcd/command.c and silcd/server.c.
4453
4454         * Changed the FOUNDER_AUTH authentication to use only
4455           public key authentication as defined by new protocol
4456           specs.  Passphrase authentication with that mode cannot
4457           be used anymore.  It is now possible to reclaim founder
4458           mode from any server in the network.  Affected files are
4459           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
4460
4461         * Added permanent channels support by making the channel
4462           permanent when FOUNDER_AUTH mode is set on the channel.
4463           The channel will not be destroyed even if channel is empty
4464           when that mode is set.  Protocol TODO #17.  Affected
4465           files are silcd/server.[ch], server_util.[ch],
4466           silcd/command.c, silcd/packet_receive.c and
4467           lib/silcclient/command.c.
4468
4469 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4470
4471         * Added reference counter to the command reply context in
4472           the client library.  Affected files are
4473           lib/silcclient/command_reply.[ch].
4474
4475 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4476
4477         * Fixed rekey protocol with PFS in the client library.
4478           Affected file is lib/silcclient/protocol.c.
4479
4480         * Added support for list of errors in client library
4481           command reply handling.  Affected file is
4482           lib/silcclient/command_reply.c.
4483
4484         * Defined that the WHOIS and IDENTIFY commands can send
4485           list of errors.  Updated the protocol specs.  Protocol
4486           TODO #2.
4487
4488         * Added support for sending list of errors to WHOIS and
4489           IDENTIFY commands in server.  Added support for receiving
4490           list of errors in server.  Affected files are
4491           silcd/command.c and silcd/command_reply.c.
4492
4493         * Fixed client info resolving on LEAVE command in client
4494           library to not crash.  Affected file is
4495           lib/silcclient/client_notify.c.
4496
4497 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4498
4499         * Defined that the NICK command replies with thew changed
4500           nickname too, to make the nickname changing simpler at
4501           the client's end.  Updated protocol specs and the code
4502           in client and server.  Affected files are
4503           silcd/command.c, lib/silcclient/command_reply.c and
4504           lib/silcclient/command.c.
4505
4506 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4507
4508         * Added `Compressed' packet flag to indicate that the packet
4509           payload is compressed by the sender.  Updated the protocol
4510           specs and the core library.  The compression still is not
4511           implemented in the sources.  Affected file is
4512           lib/silccore/silcpacket.h.
4513
4514 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4515
4516         * Remove pending command callbacks also if the connection
4517           to the server is destroyed.  Affected file is
4518           lib/silcclient/client.c.
4519
4520 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4521
4522         * Added new QUIET channel user mode that can be used to
4523           quiet a user in a channel.  Updated the protocol specs but
4524           it wasn't implemented yet.  Protocol TODO #27.  Affected
4525           file is lib/silccore/silcmode.h.
4526
4527 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4528
4529         * Added BLOCK_INVITE user mode to be able to block incoming
4530           invite notifications.  Protoocol TODO #26.  Affected files
4531           are lib/silccore/silcmode.h, lib/silcclient/command.c and
4532           silcd/command.c.
4533
4534         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
4535           the protocol specs and the code.  Affected file is
4536           lib/silccrypt/silcpkcs.c.
4537
4538 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4539
4540         * Disconnect Payload includes now the status type.  Updated
4541           the protocol specs and the code.  Protocol TODO #25.
4542           Affected files are silcd/server.c, lib/silcclient/client.c.
4543
4544         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
4545           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
4546           Moved the silc_client_command_status_messages table to the
4547           lib/silcutil/silcutil.c and added new funtion
4548           silc_get_status_message, which deprecates function
4549           silc_client_status_message.  Affected files are
4550           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
4551           lib/silcutil/silcutil.[ch].
4552
4553 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4554
4555         * Defined that the nickname hash in Client ID MUST be from
4556           lowercase nickname.  This effectively changes nicknames in
4557           SILC to case-insensitive.  Updated the protocol specs and
4558           the code.  Affected files are lib/silcutil/silcutil.[ch],
4559           silcd/serverid.c, and silcd/idlist.c.
4560
4561         * Added new channel user modes BLOCK_MESSAGES_USERS and
4562           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
4563           code.  Affected files are lib/silccore/silcmode.h,
4564           lib/silcclient/command.c, and silcd/packet_send.c.
4565
4566         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
4567           specs and code.  Affected file lib/silccore/silcstatus.h.
4568
4569         * Added support for watch list.  It is possible to add nicknames
4570           to be watched, and when they come to network, leave network
4571           or user mode changes the watcher will be notified of this
4572           change.  Added SILC_COMMAND_WATCH command, added new
4573           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
4574           notifications.  Updated the protocol specs and implemented
4575           this to library, client and server.  Protocol TODO #21.
4576           Affected files are lib/silccore/silccomand.h,
4577           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
4578           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
4579           silcd/packet_send.[ch], silcd/packet_receive.c, and
4580           irssi/src/silc/core/client_ops.c.
4581
4582         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
4583           somebody watching you.  Updated the protocol specs and the
4584           code.  Affected files are lib/silccore/silcmode.h, and
4585           lib/silcclient/command.c.
4586
4587 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4588
4589         * Added service support to SILC protocol.  Added new command
4590           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
4591           core library.  Services are not implemented in server or
4592           client for now.  Protocol TODO #20.  Affected files are
4593           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
4594
4595         * Added SilcStatus argument to `command' client operation
4596           to return the error status when command sending fails
4597           locally.  Changed all command in client library to return
4598           correct command status.  Affected files are
4599           lib/silcclient/command.c, lib/silcclient/silcclient.h and
4600           irssi/src/silc/core/client_ops.c.
4601
4602 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4603
4604         * Added silc_mime_parse function to parse MIME headers.
4605           Affected files are lib/silcutil/silcstruti.[ch].
4606
4607         * Added MIME header parsing in Irssi SILC Client.  It displays
4608           all textual MIME objects, others it ignores.  Affected file
4609           is irssi/src/silc/core/clien_ops.c.
4610
4611 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4612
4613         * Fixed a bug in the pid writing function, which couldn't be
4614           written in a root-owned directory.
4615
4616 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4617
4618         * Defined that channel message to unknown Channel ID must
4619           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
4620           Updated the protocol specs and the code in server.  The
4621           affected file is silcd/packet_receive.c.
4622
4623 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4624
4625         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
4626           that it is used to send error notifys if error occurs during
4627           some SILC packet processing, except commands.  The error
4628           types are same as for command reply types.  Defined that
4629           if private message is sent to unknown Client ID the error
4630           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
4631           Updated the protocol specs and code.  Affected files are
4632           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
4633           lib/silcclient/client_notify.c, silcd/packet_receive.c,
4634           and irssi/src/silc/core/client_ops.c.  Renamed the
4635           SilcCommandStatus to SilcStatus.
4636
4637         * Defined the use of extra WHOIS attributes in WHOIS command.
4638           The <Requested Attributes> (defined in a separate document)
4639           can be used to request additional information about user
4640           not returned by standard WHOIS command.  Defined that server
4641           can send WHOIS command directly to client.  Client provides
4642           the requested attributes to the server.  Updated the protocol
4643           specs.  Protocol TODO #4.  Implementation is not done yet
4644           (Protocol TODO #24).
4645
4646         * Renamed function silc_client_command_status_message to
4647           silc_client_status_message.  Affected files are
4648           lib/silcclient/command_reply.[ch].
4649
4650 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4651
4652         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
4653           32 bit integers.  Updated the protcol specs and the code.
4654           Affected files are silcd/command.c and
4655           lib/silcclient/command.c.
4656
4657 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4658
4659         * Fixed a bug in library where sending a bogus authentication
4660           payload would lead to a crash.  Affected file is
4661           lib/silccore/silcauth.c.
4662
4663 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4664
4665         * Added detach_disabled and detach_timeout server config
4666           options to the server.  Affected files silcd/serverconfig.[ch],
4667           silcd/command.c and silcd/packet_receive.c.
4668
4669 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4670
4671         * Added resolve_cmd_ident field to the SilcClientEntry structure
4672           too so that if the entry is for example being resolved so
4673           another command may attach to the same pending command reply
4674           without requiring to resolve the same entry again.  Added
4675           support for adding multiple pending commands for one
4676           command idenfier.  Affected files lib/silcclient/command.[ch],
4677           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4678
4679 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4680
4681         * Defined that server receives WHOIS command reply for private
4682           and secret channels too.  Updated protocol specs and the
4683           code in server.  Affected file silcd/command.c.
4684
4685         * Defined <channel user mode list> argument to WHOIS command
4686           reply for returning user modes on the channels.  The
4687           channel list now doesn't include the user mode anymore but the
4688           actual channel mode.  Updated protocol specs and the code in
4689           client and server.  Affected files are silcd/command_reply.c,
4690           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4691           and lib/silcclient/command_reply.c.
4692
4693         * Save the channels list in WHOIS command reply in normal server
4694           so that WHOIS always shows joined channels also in normal
4695           server and not just on router.  Affected file is
4696           silcd/command_reply.c.
4697
4698 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4699
4700         * Defined that server receives USERS command reply for private
4701           and secret channels too.  Updated protocol specs and the
4702           code in server.  Affected file silcd/command.c.
4703
4704 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4705
4706         * Changed the UMODE's mode mask argument to be optional.  If
4707           not provided then the command merely returns the current mode
4708           mask to the client.  Updated protocol specs and the server.
4709           Affected file is silcd/command.c.
4710
4711         * Added SILC session detachment/resuming support.  It is possible
4712           to detach by closing the network connection and then re-connect
4713           and resume to the old client session.  Added DETACHED user
4714           mode that server will set for detached client.  Added new
4715           packet RESUME_CLIENT which is used to perform the resuming
4716           process.  Added DETACH command.  Updated the protocol specs,
4717           core library, client and server.  Protocol TODO #22.  Very
4718           many affected files around the tree.
4719
4720 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4721
4722         * Changed the CMODE's mode mask argument to be optional.  If
4723           not provided then the command merely returns the current mode
4724           mask to the client.  Updated protocol specs and the server.
4725           Affected file is silcd/command.c.
4726
4727         * Changed the Killer's Client ID in KILLED notify to be just
4728           any ID payload since router server is allowed to kill as well.
4729           Updated protocol specs, client libary and server.  Affected
4730           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4731           and irssi/src/silc/core/client_ops.c.
4732
4733 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4734
4735         * Added new user modes ANONYMOUS for special anonymous servers
4736           that may set the mode for client, and BLOCK_PRIVMSG which
4737           client may set to block incoming private messages unless the
4738           Private Message Key flag is set (using private keys to protect
4739           private messages).  Updated protocol specs and code in client
4740           and server and core library.  Protocol TODO #23.  Affected
4741           files are lib/silccore/silcmode.h, silcd/server.[ch],
4742           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4743           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4744
4745         * Added new channel user mode BLOCK_MESSAGES which the client
4746           may set to itself to tell server not send channel messages.
4747           Other packets such as channel key packets are still sent.
4748           Protocol TODO #23.  Updated the protocol specs, client and
4749           server.  Affected files are lib/silccore/silcmode.h,
4750           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4751           lib/silcutil/silcutil.c, silcd/command.c, and
4752           silcd/packet_send.c.
4753
4754 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4755
4756         * Redefined the Status Payload to include now two 8 bit fields,
4757           instead of one 16 bit field.  This now makes it possible to
4758           send list of errors.  Updated the protocol specs and the code
4759           in core library, client library and server.  Protocol TODO #1.
4760           Affected files are lib/silccore/silccommand.[ch],
4761           lib/silcclient/command_reply.[ch], silcd/command.c,
4762           silcd/command_reply.c and silcd/packet_receive.[ch].
4763
4764 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4765
4766         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4767           must be handled by the application and should tell the application
4768           that an error message was already printed, and it should print the
4769           config coords (line, filename, ...).  Affected files are
4770           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4771
4772         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4773           server config parsing code more readable.
4774
4775           Fixed a bug in the fetch_logging() config callback.
4776
4777           Affected files is silcd/serverconfig.c.
4778
4779         * Drop root privileges when started in foreground.  Don't drop them
4780           if debugging also.  Affected file is silcd/silcd.c.
4781
4782 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4783
4784         * Added more IM-like features by introducing new user modes
4785           for setting various presence information.  Added new modes:
4786           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4787           specs and code.  Protocol TODO #19. Affected files are
4788           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4789           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4790
4791 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4792
4793         * Added STATS command to the protocol after all, to return
4794           various statistical information about the network.  It can
4795           be used by clients to retrieve statistical information, and
4796           servers may use it to to fetch cell and network wide
4797           statistics from router.  Updated the protocol specs and
4798           implemented it to the server.  Protocol TODO #16.
4799           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4800           silcd/command_reply.[ch].
4801
4802 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4803
4804         * The LIST command reply in client libary now adds new channel
4805           entry if the returned channel doesn't exist yet in cache,
4806           and returns the channel entry to the application in the
4807           command_reply client operation.  Affected file is
4808           lib/silcclient/command_reply.c.
4809
4810         * Changed the channel message payload's MAC generation to
4811           include the IV in the MAC as well.  This way all relevant
4812           parts of the channel message payload are authenticated also
4813           with the channel message MAC (and not only by packet MAC).
4814           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4815           Affected file is lib/silccore/silcchannel.c.
4816
4817         * Fixed the SKE to save the remote version, since the
4818           silc_ske_parse_version mistakenly checked wrong version,
4819           after it replaced the start payload.  Affected files are
4820           lib/silcske/silcske.[ch].
4821
4822 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4823
4824         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4825           string utility functions.  Added there also new functions
4826           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4827           Affected files lib/silcutil/silcstrutil.[ch].
4828
4829         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4830           files are lib/silcutil/silcstrutil.[ch].
4831
4832         * Defined that the security property fields in SKE SHOULD be
4833           UTF-8 encoded, defined that version string MUST be US-ASCII
4834           encoded, defined that passphrases sent in connection
4835           authentication protocol MUST be UTF-8 encoded.  Implemented
4836           these to the client and server.  Defined also that other
4837           passphrases sent in the protocol MUST be UTF-8 encoded.
4838           Affected files are lib/silcske/silcske.c,
4839           lib/silcclient/protocol.c, silcd/protocol.c,
4840           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4841
4842         * Changed the silc_client_close_connection interface to not
4843           need the SilcSocketConnection which should not be visible
4844           to application.  Affected files are lib/silcclient/client.c
4845           and lib/silcclient/silcclient.h.
4846
4847         * Rewrote the text for Private Message Key Payload in the
4848           protocol specification.  Protocol TODO #11.
4849
4850 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4851
4852         * Upgraded the protocol version to 1.1, updated protocol specs
4853           and software.
4854
4855         * Added the nickname as new argument to NICK_CHANGE notify and
4856           added it to protocol specs and implemented it to client and
4857           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4858           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4859           lib/silcclient/client_notify.c.
4860
4861         * Added the killer's client ID to the KILLED notify and added
4862           it to protocol specs and implemented it to client and server.
4863           Protocol TODO #13.  Affected files are silcd/command.c,
4864           silcd/packet_receive.c, packet_send.[ch],
4865           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4866           The killer's client entry is now returned to application in
4867           the `notify' client operation.
4868
4869         * Fixed the Max Argument fields that had too large value set
4870           in the protocol specs.  Protocol TODO #14.
4871
4872         * Added the LEAVE command reply to return the ID of parted
4873           channel.  Updated protocol specs and implemented it to the
4874           client and server.  Protocol TODO #15.  Affected files are
4875           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4876           entry is now returned to application in the `command_reply'
4877           client operation.
4878
4879         * Rewrote the version SKE version checking in client libary
4880           and in server to use the silc_parse_version_string.  Affected
4881           files are lib/silcclient/protocol.c, silcd/protocol.c.
4882
4883         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4884           commands that was missing it, and updated protocol specs and
4885           the server implementation.  Protocol TODO #10.  The affected
4886           file is silcd/command.c.
4887
4888         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4889           generic reply to a generic request (REQUEST flag), and
4890           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4891           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4892           to define the payload for DATA flag.  Added the flags to
4893           the implementation.  Protocol TODO #9.  Affected file is
4894           lib/silccore/silcchannel.h.
4895
4896           Changed the client library to return the message length
4897           to application as well in the channel_message and private_message
4898           client operations.  Affected files are
4899           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4900           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4901           and lib/silcclient/client_ops_example.c.
4902
4903         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4904           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4905           the channel.  Updated protocol specs and impelemented this
4906           to client and server.  Protocol TODO #6.  Affected files are
4907           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4908           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4909
4910           Added new options m and M to CMODE command in Irssi SILC
4911           client to set these modes.
4912
4913         * Deprecated all administrative commands from SILC protocol
4914           since they are highly implementation specific commands.
4915           Updated protocol specs.  Moved the old commands in
4916           implementations to private range of command types.  Affected
4917           files are silcd/command.c, lib/silcclient/command.c and
4918           lib/silcclient/command_reply.c.  Protocol TODO #8.
4919
4920         * Fixed a bug in server where sending unknown command crashes
4921           the server.  Affected file silcd/command.c.
4922
4923 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4924
4925         * Added SILC_PROTOCOLVERSION macro to check protocol version
4926           of a socket connection.  The affected file is
4927           lib/silcutil/silcsockconn.h.
4928
4929         * Added better error logging in rekey protocol.  Affected file
4930           silcd/protocol.c.
4931
4932         * Do not check public key types in SKE during rekey.  Affected
4933           file lib/silcske/payload.c.
4934
4935         * Fixed the rekey protocol with PFS, which was totally broken.
4936           Affected file silcd/protocol.c.
4937
4938 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4939
4940         * Some client implementations quit network by doing first LEAVE
4941           and then immediately SIGNOFF (like Bombyx).  We now do check
4942           after a short time after LEAVE notify and check whether the
4943           client is still valid after LEAVE, and if not we remove it from
4944           cache.  Affected file is lib/silcclient/client_notify.c.
4945
4946 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4947
4948         * Merged version 1.1.4 of zlib. Even if it not currently in use,
4949           it's good not to have security holes here.
4950
4951         * Fixed a negative refcount situtuation for the config context.
4952           Affected file is silcd/serverconfig.c.
4953
4954 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4955
4956         * ROBOdoc documented lib/silcutil/silcutil.h.
4957
4958 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4959
4960         * Optimized even more the SilcPacketContext structure.  Now
4961           totally saved 16 bytes of memory per context after optimization.
4962           Affected files are lib/silccore/silcpacket.[ch].
4963
4964         * Made strict checks for valid SILC IDs.  Affected file is
4965           lib/silccore/silcid.c.
4966
4967 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4968
4969         * Changed the object argument for silc_cipher_register,
4970           silc_hash_register, silc_hmac_register and silc_pkcs_register
4971           to const.  Affected files are lib/silccrypt/silccipher.[ch],
4972           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
4973
4974         * Changed the silc_get_username and silc_get_real_name to
4975           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
4976
4977         * Fixed the Irssi SILC Client to use the silc_get_username and
4978           silc_get_real_name insted of glib routines since the glib
4979           routines only corrupt stack.  Fixes the Irssi SILC to work in
4980           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
4981
4982         * Fixed the Irssi to not use g_get_home_dir since it crashes
4983           or returns garbage on cygwin and corrupts stack.  Added function
4984           get_home_dir to Irssi routines.  Affected files are
4985           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
4986
4987 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4988
4989         * Made some structure optimizations.  SFTP memory FS MemFSEntry
4990           entry structure.  Optimized SilcTask structure.  Optimized
4991           SilcPacketContext structure.
4992
4993           Affected files lib/silcsftp/sftp_fs_memory.c,
4994           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
4995
4996 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4997
4998         * And yet again reverted back the config thing since Johnny
4999           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
5000           and silcd.c.
5001
5002         * Fixed memory leaks from config object.  Affected files are
5003           silcd/serverconfig.[ch].
5004
5005         * Added support for adding new connections to the server in rehash.
5006           After rehash they take effect.
5007
5008           Added support for changing the maximum allowed connections in
5009           rehash.  The number can grow but going smaller is not supported.
5010
5011           Added function silc_server_num_sockets_by_remote to the
5012           silcd/server_util.[ch].
5013
5014           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
5015
5016 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
5017
5018         * Added preliminary checking during config parsing for a valid
5019           public/private key and removed further checks in the code.
5020           Affected files are silcd/serverconfig.[ch], server.c.
5021
5022         * Moved functions silc_server_drop() and silc_server_daemonise()
5023           from server.c to silcd.c since they are stricly related to
5024           the application activity.
5025
5026         * Reverted a small part of the automatic ref/unref since
5027           it caused a double unref in some situations.  Affected
5028           files are silcd/silcd.[ch], server.c, serverconfig.c.
5029
5030         * Added some .cvsignore files in the lib directory.
5031
5032 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5033
5034         * Fixed silc_net_gethostbyaddr to correctly resolve by
5035           address.  Affected file lib/silcutil/silcnet.c.
5036
5037         * Fixed the notify relaying to client.  The HMAC to be used
5038           with relayed packets ws wrong and caused decryption failure
5039           at the client end.  Affected file is silcd/packet_receive.c.
5040
5041 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5042
5043         * Created new branch silc_protocol_1_0_branch.
5044
5045         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
5046
5047         * Changed the silc_server_config_* routines to be SilcServer
5048           independent.  They are now officially application specific code
5049           and not part of generic server implementation.  Affected files
5050           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
5051
5052 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5053
5054         * Added automatic referencing of config context in the
5055           silc_server_config_alloc, and automatic unreferencing in the
5056           silc_server_config_destroy.  Affected files are
5057           silcd/serverconfig.[ch], silcd/silcd.c.
5058
5059         * Fixed the silc_log_quick handling in the logging routines.
5060           It didn't log quickly when it was TRUE.  Affected file is
5061           lib/silcutil/silclog.c.  Also the flush delay was set even
5062           if it was 0 in config file.  Affected file is
5063           silcd/serverconfig.c.
5064
5065         * Added support for changing key pair of the server in rehash.
5066           Affected file silcd/server.c.
5067
5068 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5069
5070         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
5071           too early, before getting the channel entry.  Affected file
5072           is silcd/packet_receive.c.
5073
5074 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5075
5076         * Added functions silc_server_config_[ref/unref], these are used
5077           to prevent that the config object is destroyed.
5078
5079           No longer directly affect global variables silc_log_quick and
5080           silc_log_delay, they are first cached inside the config object
5081           and then applied with silc_server_config_setlogfiles().
5082
5083           silc_server_config_set_defaults() is now internal to
5084           serverconfig.c, there are no reasons to show this internal stuff
5085           to the server.
5086
5087           Affected files are silcd/serverconfig.[ch].
5088
5089         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
5090           fprintf's to stderr, since some code may be executed again after
5091           the server went into the background.  Affected files are
5092           silcd/server.[ch].
5093
5094         * Added rehash support. Added function silc_server_rehash() that
5095           will perform all the basic tasks of the rehashing procedure.
5096
5097         * Added command line option `-x, --hexdump'. This will enable the
5098           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
5099           The option `--hexdump' implies `--debug'.
5100
5101         * Fixed a bad bug in the logging APIs (silcutil library) where
5102           the application would crash after calling silc_log_reset_all().
5103
5104 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5105
5106         * Fixed the KICKED notify handling in client library to
5107           correctly remove the channel and all entries from the
5108           channel when I was kicked.  This bug crashed the client.
5109
5110           Fixed yet another but in KICKED notify handling to remove
5111           the kicked client correctly from the channel.
5112
5113           Affected file is lib/silcclient/client_notify.c.
5114
5115         * Fixed a minor bug in looking up correct client entry
5116           in KICKED notify in server.  Affected file is
5117           silcd/packet_receive.c.
5118
5119         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
5120           sources correctly to distribution.  Fixes --with-gmp option.
5121
5122         * Removed the manual rehashing from ID Cache, and changed it
5123           to use the SILC Hash Table's auto rehash feature.  Affected
5124           file is lib/silccore/silcidcache.c.
5125
5126 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5127
5128         * Fixed a bug in the silc_client_nickname_format function that
5129           handles the multiple same nickname formatting.  Two clients
5130           with same nickname caused problems after the first one left
5131           and rejoined.  It didn't format the nickname correctly.
5132           Affected file is lib/silcclient/idlist.c.
5133
5134 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5135
5136         * Don't change the topic if olod topic is same as new one.
5137           Affected file is silcd/packet_receive.c.
5138
5139 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5140
5141         * Added cross-reference support to the SILC Documentation
5142           generator.  All types across all HTML files are now cross-
5143           referenced.  Affected files util/robodoc/generator.c and
5144           scripts/silcdoc/silcdoc.
5145
5146         * Added file lib/silcutil/silctypes.h to include all the
5147           arithmetic type definitions and some macros.  Removed
5148           includes/bitmove.h and moved macros to silctypes.h.
5149
5150 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5151
5152         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
5153
5154 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5155
5156         * Added `type' argument to silc_id_payload_parse_id function which
5157           now returns the type of the ID to the sent pointer.  Affected
5158           file is lib/silccore/silcid.[ch].
5159
5160         * Added check for CMODE_CHANGE notify type that mode change is
5161           allowed by the sender.  Affected file silcd/packet_receive.c.
5162
5163         * Added check for CUMODE_CHANGE notify type that mode change is
5164           allowed by the sender.  Affected file silcd/packet_receive.c.
5165           Added the ID type as CUMODE_CHANGE notify type as argument
5166           to the `notify' client operation.  Affected files are
5167           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
5168
5169         * Added function silc_client_add_server to the client library.
5170           Added support for resolving also channel and server info when
5171           received unknown entity in notify packet.  Affected files are
5172           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
5173
5174         * Added function silc_command_get_status to return the command
5175           status from the command reply's argument payload.  Affected files
5176           are lib/silccore/silccommand.[ch].
5177
5178         * Added check for KICKED notify type that the kicking is
5179           allowed by the client.  Affected file silcd/packet_receive.c.
5180
5181         * Created function silc_get_input which can be used to get input
5182           (echo on or off) from user on command line.  Affected files are
5183           lib/silcutil/silcutil.[ch].
5184
5185 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5186
5187         * Optimized silc_server_packet_relay_to_channel function.
5188           Added new function silc_channel_message_payload_encrypt which
5189           can be called directly if channel message payload needs to
5190           be encrypted and is already encoded (no need to call _encode
5191           function).  Packet relaying is now done by router without any
5192           extra memory allocations.  Affected files are
5193           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
5194           silcd/packet_send.c.
5195
5196         * Fixed the INVITE notify handling.  It took wrong arguments
5197           as invite list and invite delete.  Affected file is
5198           silcd/packet_receive.c.
5199
5200         * Added check for TOPIC_SET notify type that the topic change is
5201           allowed by the client.  Affected file silcd/packet_receive.c.
5202
5203         * Added check for INVITE notify type that inviting is allowed by
5204           the client.  Affected file silcd/packet_receive.c.
5205
5206         * Changed the silc_server_client_on_channel to return the
5207           SilcChannelClientEntry as well.  Moved the function
5208           silc_server_check_cmode_rights to server_util.[ch].
5209           Affected files are silcd/server_util.[ch], silcd/command.c.
5210
5211         * Added function silc_server_check_umode_rights to check whether
5212           changing client's user mode is allowed.  Added check for
5213           UMODE_CHANGE notify type that the umode change is allowed
5214           by the client.  Affected files are silcd/server_util.[ch],
5215           silcd/packet_receive.c and silcd/command.c.
5216
5217 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5218
5219         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
5220           ID length.  It ignored that ID can be IPv6 based as well.
5221           Affected file lib/silccore/silcpacket.h.
5222
5223         * Fixed the silc_id_id2str and silc_id_str2id to take the
5224           IPv6 address offset's into consideration.  Affecte file is
5225           lib/silccore/silcid.c.
5226
5227 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5228
5229         * Fixed the internal Unix scheduler functions to check for
5230           NULL context they may receive.  The affected file is
5231           lib/silcutil/unix/silcunixschedule.c.
5232
5233 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
5234
5235         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
5236           can specify different directory with --home command line
5237           parameter. Affected files irssi/src/silc/core/client_ops.c,
5238           clientutil.c
5239
5240         * SILC-specific commands aren't now executed if the active server
5241           isn't of SILC-type, so there won't be problems with having
5242           IRC and SILC protocol support in same client. Affected files
5243           irssi/src/silc/core/silc-channels.c, silc-servers.c,
5244           silc-commands.h
5245
5246 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5247
5248         * Improved the signal support in SILC Schedule.  Added new
5249           function silc_schedule_signal_call which is used by application
5250           to mark a signal to be called.  It is now safe to perform
5251           any kind of tasks in signal callbacks since it is guaranteed
5252           that the application specified signal callback is called
5253           after the signal is over.  Affected files are
5254           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
5255
5256 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5257
5258         * Added `name' field to SilcChannelPrivateKey to represent
5259           application given name for the key.  Moved also the context from
5260           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
5261           Added the `name' argument also to the function
5262           silc_client_add_channel_private_key.
5263
5264           Added function silc_client_current_channel_private_key to set the
5265           current channel private key in use.
5266
5267           Added "change" command to KEY command which can be used to change
5268           the current channel private key.  Bound the command also to
5269           alt+K (Alt+Shift+k).
5270
5271           Also affected files lib/silcclient/client_channel.c,
5272           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
5273
5274 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5275
5276         * Added silc_rng_get_byte_fast function in to the
5277           lib/silccrypt/silcrng.[ch].
5278
5279         * Changed the interface of silc_packet_assemble and the
5280           silc_packet_send_prepare.  If silc_packet_assmble is now
5281           called the application does not call silc_packet_send_prepare
5282           because the library will call it automatically.  These
5283           interfaces now also return a reference to the outgoing buffer
5284           which includes the assembled packet, which the application can
5285           use to encrypt the packet.
5286
5287           Affected files are lib/silccore/silcpacket.[ch],
5288           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
5289           silcd/packet_send.c, server_backup.c and packet_receive.c.
5290
5291         * Fixed a packet sending bug on very high load, where outgoing
5292           packet queue wasn't handled correctly and packets got corrupted.
5293           Affected files are lib/silcutil/*/silc*sockconn.c,
5294           lib/silcclient/client.c and silcd/server.c.
5295
5296 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5297
5298         * Added macro SILC_PACKET_DATALEN which can be used during
5299           packet assembling to check whether the data to be added to
5300           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
5301           len is truncated until it fits it.
5302
5303           Added checks for maximum length of channel message payload and
5304           private message payload also.
5305
5306           Added checks for maximum packet length in server and in
5307           client library.
5308
5309           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
5310           lib/silcclient/client.c, lib/silccore/silcchannel.c and
5311           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
5312           lib/silcclient/client_prvmsg.c.
5313
5314 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5315
5316         * Added silc_server_packet_queue_purge call to the
5317           silc_server_disconnect_remote to assure that all data in the
5318           queue before disconnecting is sent to the network.  Affected
5319           file silcd/server.c.
5320
5321 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5322
5323         * Added the deleting of server's own ID cache entry to the
5324           silc_server_free function.  Free also everything else that
5325           has been allocated in silc_server_init.  The affected file
5326           is silcd/server.c.
5327
5328 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5329
5330         * Added functions silc_parse_version_string, silc_version_to_num,
5331           and silc_ske_parse_version to parse SILC protocol style version
5332           strings.  Affected files lib/silcutil/silcutil.[ch] and
5333           lib/silcske/silcske.[ch].
5334
5335         * Added new configuration params: version_protocol, version_software
5336           and version_software_vendor to specify what version the remote
5337           host must at least be to be able to connect to server.  The vendor
5338           string can be regex matched too.  Added new function
5339           silc_server_connection_allowed to check maximum number of allowed
5340           connections, and allowed versions for incoming connections.
5341           Affected files are silcd/server.c, server_util.[ch] and
5342           serverconfig.[ch].
5343
5344 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5345
5346         * Added preliminary support for signals in scheduler.  The
5347           signals we care about are now blocked always when the scheduler
5348           is locked.  This way we can synchronise the use of signal with
5349           scheduler.  It is guaranteed that when signal occurs the scheduler
5350           is not locked, and thus new tasks can be safely added to the
5351           scheduler.
5352
5353           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
5354           to silc_schedule_internal_init and silc_schedule_internal_uninit.
5355           Added new platform specific routines
5356           silc_schedule_internal_signals_[un]block and
5357           silc_schedule_internal_signal_[un]register.
5358
5359           Added new functions to SILC Schedule API:
5360           silc_schedule_signal_[un]register.  Each signal that application
5361           is going to use should be registered to the scheduler.
5362
5363           Affected files are lib/silcutil/silcschedule.[ch],
5364           lib/silcutil/*/silc*schedule.c.
5365
5366 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5367
5368         * Check for unauthenticated client and server in the
5369           silc_server_new_client and silc_server_new_server functions.
5370           Affected file silcd/packet_receive.c.
5371
5372         * Added function silc_string_is_ascii to check whether given
5373           string is 7-bit ASCII string.  Affected files are
5374           lib/silcutil/silcutil.[ch].
5375
5376         * Added function silc_id_is_valid_server_id into the
5377           silcd/serverid.c and added checking for valid Server ID's in
5378           silc_server_new_server.  The Server ID must always be based
5379           on the server's public IP address.
5380
5381         * Added logging of DISCONNECT packet message in the server.
5382           Affected file silcd/server.c.
5383
5384 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5385
5386         * Changed all library interfaces that use Global RNG to also
5387           accept SilcRng as argument.  Affected files are
5388           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
5389           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
5390           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
5391           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
5392           lib/silccrypt/rsa.c.
5393
5394         * Added function silc_pkcs_generate_key to the
5395           lib/silccrypt/silcpkcs.[ch] for applications so that they
5396           don't need to do pkcs->pkcs->init calls anymore.
5397
5398         * Remove SilcSocketConnection from the SFTP API since it really
5399           wasn't needed there.  The application has the information
5400           saved in its contexts anyway and the SFTP layer doesn't need
5401           know about it.  Affected files lib/silcsft/silcsftp.h and
5402           lib/silcsftp/sftp_[server/client].c.
5403
5404         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
5405           The SilcSimContext is not SilcSim.
5406
5407         * Fixed possible buffer overflows in silc_id_render in the
5408           lib/silcutil/silcutil.c.
5409
5410         * On EPOC the global crypto module lists are not used at all
5411           in the crypto library.  Added support for using the constant
5412           algorithm list on EPOC.  Affected files are
5413           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
5414           silcpkcs.c.
5415
5416         * Fixed the handling of third parameter of KICKED notify, since
5417           it was mistakenly updated to SILC Protocol 1.0 even though it
5418           is to be included in 1.1.  Since it is not in 1.0 it is not
5419           mandatory, and this fix now handles it only if it is provided,
5420           and it is not error if it is not provided.  Affected file
5421           lib/silcclient/client_notify.c.
5422
5423 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5424
5425         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
5426           client.  Affected file irssi/src/silc/core/client_ops.c.
5427
5428         * Merged with Irssi 0.8.4 from irssi.org CVS.
5429
5430 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5431
5432         * Check for valid socket connection in client entries before
5433           sending any messages.  Fixes a crash, but doesn't fix some
5434           other underlaying bug that is lurking there.  Affected
5435           file silcd/packet_send.c.
5436
5437 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
5438
5439         * $usermode, $cumode and $cumode_space expandos shouldn't do
5440           anything with non-SILC server records. Affected file
5441           irssi/src/silc/core/silc-expandos.c
5442
5443 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5444
5445         * Fixed the silc_net_check_[host/local]_by_sock to support
5446           IPv6 bound sockets as well.  Now they can return IPv6 addresses
5447           as well.  Affected file lib/silcutil/silcnet.c.
5448
5449         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
5450           Affected lib/silcutil/unix/silcunixnet.c.
5451
5452         * Fixed ID rendering (at least on some platforms, not NetBSD)
5453           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
5454
5455 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5456
5457         * Added silc_hash_public_key and silc_hash_public_key_compare
5458           functions to be used with SilcHashTable.  They can be used to
5459           hash public keys and compare public keys in hash table.  Affected
5460           file lib/silcutil/silcutil.[ch].
5461
5462         * Added support for specifying multiple public keys for Client
5463           connection section in server configuration file.  This makes it
5464           possible to accept multiple public keys from same host, or to
5465           make a section that accepts any incoming host, and have the
5466           accepted public keys listed in the section.
5467
5468           Added functions silc_sever_[find/get]_public_key,  added the
5469           support for this actually to all connection sections but only
5470           the Client section is currently allowed to specify multiple
5471           public keys.
5472
5473           Affected files are silcd/server.c, server_internal.h,
5474           command.c, protocol.c, server_util.[ch], packet_receive.c.
5475
5476 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5477
5478         * Merged Irssi 0.8.2 from irssi.org CVS.
5479
5480 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5481
5482         * If silc_debug is TRUE, also output standard logging messages
5483           to stderr with the debug output.
5484
5485           Made silc_log_reset_all() flushing all channels before returning.
5486           Also fixed some documentation typos.
5487
5488           Affected files are lib/silcutil/silclog.[ch].
5489
5490 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5491
5492         * Fixed the server to check correctly the amount of connections
5493           from single host, by checking also the type of the connection.
5494           Fixed also the comparison of number of connections and number
5495           of allowed connections.  Affected files are silcd/server.c,
5496           server_util.[ch].
5497
5498 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5499
5500         * Fixed the USERS command reply to save the user's mode on the
5501           channel as well.  Fixed JOIN command reply to check whether a
5502           client is on channel already and not join it twice.  Affected
5503           file lib/silcclient/command_reply.c.
5504
5505         * Added new file silc-expandos.c into irssi/silc/core/ to return
5506           various stuff for various signal for the statusbar etc. updating.
5507           Now Irssi SILC client prints channel user modes etc. on the
5508           statusbar.
5509
5510         * The user mode (like server/router operator changes) is now shown
5511           on the Irssi SILC client's statusbar.  The affected files are
5512           irssi/src/silc/core/client_ops.c, silc-expandos.c.
5513
5514 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5515
5516         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
5517           to SILC_SCHEDULE_[UN]LOCK macros.
5518
5519         * Added more error printing to logs in server code.  Affected
5520           files silcd/server.c and silcd/protocol.c.
5521
5522         * Fixed -S option parsing in Irssi SILC Client.  Affected file
5523           irssi/src/silc/core/silc-core.c.
5524
5525         * Added silc_buffer_alloc_size function.  Affected file is
5526           lib/silcutil/silcbuffer.h.
5527
5528 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5529
5530         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
5531           constants.  Affected files in
5532           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
5533           silccipher.[ch].
5534
5535         * Changed the internal SFTP Memory FS table to const.  Affected
5536           file lib/silcsftp/sftp_fs_memory.c.
5537
5538 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5539
5540         * Fixed the buffer formatting and unformatting routines to
5541           check the size of 64 bits types with sizeof().  Affected
5542           file is lib/silcutil/silcbuffmt.c.
5543
5544 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5545
5546         * Removed 0.6.x backwards support.
5547
5548 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5549
5550         * Changed all integer type names:
5551           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
5552           to avoid collisions with other libraries using same type names
5553           as we did.
5554
5555 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5556
5557         * Added `prefer_ipv6' argument to the functions
5558           silc_net_gethostbyname[_async].  If it is TRUE it will return
5559           IPv6 address over IPv4.  If FALSE IPv4 address is returned
5560           even if IPv6 address was found.  Affected files
5561           lib/silcutil/silcnet.[ch].
5562
5563         * Added support silc_net_create_connection[_async] to fallback
5564           to IPv4 address if IPv6 address could not be used (like if
5565           it doesn't work on a specific system).  Affected file in
5566           lib/silcutil/unix/silcunixnet.c.
5567
5568 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5569
5570         * Added silc_schedule_reinit function to do the enlarging
5571           of the max tasks handling capabilities of the scheduler.
5572           Affected files lib/silcutil/silcschedule.[ch].
5573
5574 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5575
5576         * Added automatic extern "C" { ... } for C++ compilers so the
5577           application does not need to define them.  Affected file
5578           includes/silcincludes.h.
5579
5580         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
5581           old name went against naming convention.  Applications now
5582           include "silcclient.h" instead of "clientlibincludes.h".
5583           Removed includes/clientlibincludes.h, it is redundant now.
5584
5585         * Renamed includes/version.h to silcversion.h.
5586
5587         * Added really preliminary support for OS/2 into the util
5588           library.  Only thread & mutex API is implemented, others
5589           are still to be implemented.  Created the lib/silcutil/os2/
5590           directory.  Created also file includes/silcos2.h.
5591
5592 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5593
5594         * Added preliminary BeOS support into the util library.
5595           Created lib/silcutil/beos/, and implemented all the needed
5596           functions to support SILC on BeOS.  Created also file
5597           includes/silcbeos.h.
5598
5599 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
5600
5601         * Added proper initializations to silc's irssi code, so it's
5602           now possible to load it as module.  Affected files
5603           irssi/src/silc/core/silc-core.c,
5604           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
5605
5606 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5607
5608         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
5609           the SILC tree.
5610
5611         * Fixed the silcdoc document generator to correct generate
5612           docs from all kinds of filenames.  Affected files are
5613           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
5614
5615         * ROBOdoc documented lib/silcutil/silcmemory.h.
5616           Added also new function silc_memdup.
5617
5618         * Removed lib/silcutil/silcbufutil.h and moved those routines
5619           to the lib/silcutil/silcbuffer.h.
5620
5621 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5622
5623         * Added `user_count' to the SilcChannelEntry which now tells the
5624           number of users on the channel.  The user count is now saved
5625           in normal server of global channels as well.  Affected files
5626           silcd/server.c, idlist.h, packet_receive.c and command.c.
5627
5628         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
5629           include file utility functions.
5630
5631         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
5632           instead of calling directly OS routines.
5633
5634         * Fixed NICK change printing in Irssi SILC Client. Fixed
5635           KICKED notify printing in Irssi SILC Client.  Affected file
5636           irssi/src/silc/core/client_ops.c.
5637
5638         * Fixed a NICK change bug in client library, to not recreate the
5639           client_entry->channels hash table everytime nick is changed.
5640           Affected file lib/silcclient/client.c.
5641
5642 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5643
5644         * ROBOdoc documented the lib/silcske/silcske.h, and improved
5645           the SKE interface a bit.
5646
5647         * Fixed padding problem in PKCS#1. The padding was not actually
5648           random since the random number generator was used incorrectly.
5649           This security bug affects only when encrypting with PKCS#1, and
5650           it is not currently used at all in SILC. SILC only use signing
5651           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
5652
5653 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5654
5655         * Rewrote the notify handling in Irssi SILC client to not call
5656           the events as signals.  Fixes problems with Perl support.
5657           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5658
5659         * Send the auto-nicking NICK command in client library with
5660           little timeout after connecting.  The affected file is
5661           lib/silcclient/client.c.
5662
5663         * Added following new config file settings:
5664           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5665           key_exchange_timeout, conn_auth_timeout, connections_max,
5666           links_max.
5667
5668           Implemented all the new config settings handling in the server.
5669
5670           Optimized the use of SKE Mutual flag usage.  Use it only
5671           if connection authentication protocol is not based in public
5672           key authentication.
5673
5674           Renamed all SilcServerConfigSection* to SilcServerConfig*
5675           to have a bit shorter names.
5676
5677           Affected files silcd/serverconfig.[ch], server.[ch], and
5678           protocol.[ch].
5679
5680 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5681
5682         * Cleaned up the listening sockets code, preparing for the rehash
5683           support.  Affected file is silcd/server.c.
5684
5685         * Fixed some output messages.  Affected files are silcd/silcd.c,
5686           and silcd/server.c.
5687
5688 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5689
5690         * Create lib/doc/silcrng_intro.html document as introduction
5691           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5692
5693 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5694
5695         * Fixes to the silcd config template.  Affected file is
5696           doc/example_silcd.conf.in.
5697
5698         * Removed type casts from silc_calloc(), conforming to the
5699           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5700
5701         * Removed param_name member from client, server, and router
5702           section structs, now identifying the param directly.
5703
5704           Added CONFIG_FREE_AUTH macro in config file parsing.
5705
5706           Affected files are silcd/serverconfig.[ch].
5707
5708 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5709
5710         * Fixed command line parameter handling. All SILC initialization
5711           is now done in silc_core_init() which also fixes autoconnecting
5712           to servers.
5713
5714           Affected files irssi/src/silc/core/silc-core.c,
5715           irssi/src/fe-text/silc.c.
5716
5717 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5718
5719         * Added new configuration options and blocks:
5720           keepalive_secs, reconnect_count, reconnect_interval,
5721           reconnect_interval_max, reconnect_keep_trying and
5722           require_reverser_lookup.  Added ConnectionParam block, and
5723           implemented the connection parameters when connecting as
5724           initiator and when accepting connections as responder.
5725
5726           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5727           whether given configuration value has been given already.
5728
5729           Affected files silcd/serverconfig.[c], server.[c].
5730
5731         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5732           algorithm parts and created new file silcalgs.conf, that
5733           is now included from the example_silcd.conf.in.
5734
5735         * Optimized the silc_server_connect_to_router_second to take
5736           the connection configuration object from the SilcServerConnection
5737           object instead of finding it during the connecting phase.
5738           Added the configuration object to SilcServerConnection struct.
5739           Affected files silcd/server_internal.h, server.c.
5740
5741 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5742
5743         * Add the client on channel after it was resolved at the
5744           channel message receiving, and it was not already on the
5745           channel.  Affected file lib/silcclient/client_channel.c.
5746
5747 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5748
5749         * Fixed the public key authentication to allocate always the
5750           destination signature buffer instead of using static buffer.
5751           Affected file silcd/protocol.c.
5752
5753 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5754
5755         * Unified the serverconfig.[ch]'s helper function interface.
5756           Affected file silcd/serverconfig.[ch].
5757
5758         * Removed doc/example_silc.conf.in since it is redundant.
5759           The make install will now install irssi/silc.conf file.
5760
5761         * Added new Passphrase and Publickey authentication methods to
5762           config file, allowing both public key and passphrase based
5763           authentication to be set at the same time.
5764
5765           Added `prefer_passphrase_auth' setting in config file which
5766           can be used to set to prefer passwd auth if both passwd and
5767           public key is set.  If not set, public key is preferred.
5768           This has effect only when being initiator (responder will try
5769           both anyway).
5770
5771           Added support for authentication with passphrase and public key
5772           at the same time.  The passphrase is tried first always since
5773           it is faster to check.
5774
5775           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5776
5777 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5778
5779         * Merged the new SILC Config library, with the server parsing
5780           support.  Read the header file silcconfig.h or the toolkit
5781           documentation for the news.  Affected files are
5782           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5783           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5784           silcd/protocol.c silcd/server.c silcd/server_backup.c
5785           silcd/serverconfig.[ch] silcd/silcd.c.
5786
5787         * Fixed some silclog documentation.  Affected file is
5788           lib/silcutil/silclog.h.
5789
5790 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5791
5792         * The silc_cipher_register, silc_hash_register and
5793           silc_hmac_register now checks if the object to be registered
5794           is registered already.  Affected files are
5795           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5796
5797 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5798
5799         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5800
5801 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5802
5803         * Allow zero length channel messages inside the Channel Message
5804           Payload.  Affected file lib/silccore/silcchannel.c.
5805
5806         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5807           as header filenames.
5808
5809         * Removed lib/silcclient/README and created HTML file
5810           lib/silcclient/silcclient_using.html, which is now included
5811           as part of Toolkit documentation.
5812
5813 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5814
5815         * Fixed CUMODE_CHANGE notify handling to change the mode of
5816           correct client.  Affected file lib/silcclient/client_notify.c.
5817
5818         * Make silc_rng_alloc fail if it cannot allocate the sha1
5819           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5820
5821 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5822
5823         * Fixed the file transfer's key agreement payload to include
5824           zero port also if the hostname is NULL because it could not
5825           be bound.
5826
5827           Call file transfer monitor callback now also if error occurs
5828           during key agreement protocol.
5829
5830           Changed the silc_client_file_send interface to return the
5831           SilcClientFileError instead of session id.  The session ID
5832           is returned into pointer provided as argument.
5833
5834           Check that the file exists locally before sending the
5835           file transfer request at all.
5836
5837           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5838
5839         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5840           error than can occur while key agreement protocol.  Affected
5841           file lib/silcclient/silcapi.h.
5842
5843         * Fixed the event_mode CMODE handler to not crash when mode
5844           is changed and +k mode is set in the channel.  Affected file
5845           irssi/src/silc/core/silc-channels.c.
5846
5847         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5848           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5849           file lib/silcutil/silclog.c.
5850
5851         * Fixed the channel message payload decryption in the function
5852           silc_channel_message_payload_decrypt to not modify the original
5853           buffer before it is verified that the message decrypted
5854           correctly.  Otherwise, next time it is called with correct
5855           channel key it won't encrypt since the payload is corrupted.
5856           Affected file lib/silccore/silcchannel.c.
5857
5858 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5859
5860         * Do not constantly resize the window.  A fix patch by cras.
5861           Affected file irssi/src/fe-text/screen.c.
5862
5863 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5864
5865         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5866           Affected file lib/silcutil/silcnet.c.
5867
5868 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5869
5870         * Fixed a bug in hash table internal routine for traversing
5871           the table with foreach callback.  The current entry may
5872           become invalid in the callback but it was referenced after
5873           the callback returned.
5874
5875           Do not allow auto rehashing of hash table during the
5876           silc_hash_table_foreach operation, for same reasons as it is
5877           not allowed for SilcHashTableList.  Affected files are
5878           lib/silcutil/silchashtable.[ch].
5879
5880 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5881
5882         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5883           Win32 DLL.  extern's in header files are now declared with
5884           DLLAPI.
5885
5886 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5887
5888         * Fixed private message handling.  It used some old code that
5889           caused the client to crash.  Affecte file is
5890           lib/silcclient/client_prvmsg.c.
5891
5892 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5893
5894         * Added function silc_client_add_channel,
5895           silc_client_replace_channel_id, and removed functions
5896           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5897           from client library.
5898
5899         * Added cross reference of the joined channels to the
5900           SilcClientEntry, and changed the SilcChannelEntry's
5901           users list to SilcHashTable.  The affected files are
5902           lib/silcclient/idlist.[ch].
5903
5904         * Fixed a bug in hash table tarversing.  While the hash table
5905           is traversed with SilcHashTableList the table must not be
5906           rehashed.  It is now guaranteed that auto rehashable tables
5907           are not rehashed while tarversing the list.  Also defined that
5908           silc_hash_table_rehash must not be called while tarversing
5909           the table.  Added function silc_hash_table_list_reset that must
5910           be called after the tarversing is over.  The affected files are
5911           lib/silcutil/silchashtable.[ch].
5912
5913         * Changed all hash table traversing to call the new
5914           silc_hash_table_list_reset in server and in client library.
5915
5916         * Added function silc_client_on_channel to return the
5917           SilcChannelUser entry if the specified client entry is joined
5918           on the specified channel.  This is exported to application as
5919           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5920
5921 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5922
5923         * Fixed founder regaining problem with JOIN command on normal
5924           server.  The notify for mode change must be sent always and
5925           not only if !cmd->pending.  Affected file silcd/command.c.
5926
5927         * Fixed the WHOWAS command's reply sending to support the
5928           lists correctly.  Affected file silcd/command.c.
5929
5930 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5931
5932         * When sending JOIN command to router for processing the
5933           sender's old command identifier was not saved back to the
5934           sender's command context, fixed now.  The affected file is
5935           silcd/command.c.
5936
5937         * Create the key in JOIN command of the router did not return
5938           the channel key, added check for this.  Affected file is
5939           silcd/command.c.
5940
5941         * Fixed a channel ID update bug in JOIN command reply.  Do
5942           not directly upgrade the ID but call the function
5943           silc_idlist_replace_channel_id if the ID was changed.
5944           Affected file silcd/command_reply.c.
5945
5946         * Fixed memory leaks from command calling if it would fail.
5947           Affected file silcd/command.c.
5948
5949 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5950
5951         * Applied patches from cras:
5952
5953           Memory leak fixes around libaries, irssi window resize fix,
5954           new silclist.h and silcdlist.h, all extern inline changed to
5955           static inline.
5956
5957         * Removed dotconf from lib/dotconf, not needed anymore.
5958
5959         * Removed TRQ from lib/trq, not needed anymore.
5960
5961         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
5962           with server connections.  Later this will be configurable
5963           in config file after new config file is done.  Affected file
5964           silcd/server.c.
5965
5966 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5967
5968         * Fixed a crash in server related to channel announcements.
5969           Affected file silcd/server.c.
5970
5971 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5972
5973         * Fixed memory leaks in silc_server_create_new_channel*
5974           functions.  Affected file silcd/server.c.
5975
5976         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
5977           which ID was changed.  This way the router will send the
5978           user list for the channel again, and server won't be in
5979           desync in some rare circumstances.  Affected file is
5980           silcd/packet_receive.c.
5981
5982 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5983
5984         * Check for NULL socket pointer in the function
5985           silc_server_packet_send_to_channel_real.  Affected file
5986           silcd/packet_send.c.
5987
5988         * Fixed the BAN notify handling to correctly remove ban
5989           list.  Affected file silcd/packet_receive.c.
5990
5991 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5992
5993         * Fixed some header addition to Toolkit distribution in
5994           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
5995
5996         * Added lib/silcclient/client_ops_example.h as an template
5997           file for application programmers to quickly start using
5998           the SilcClientOperation functions in their application.
5999           Updated the lib/silcclient/README as well to tell about this
6000           nice file made available.
6001
6002 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6003
6004         * Call silc_server_remove_from_channels when removing client
6005           entry when NO_SUCH_CLIENT_ID was received.  Affected file
6006           is silcd/command_reply.c.
6007
6008 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6009
6010         * Added server & router operator statistics updating.  Affected
6011           file silcd/packet_receive.c and silcd/command.c.
6012
6013         * Fixed the SERVER_SIGNOFF notify handling on normal server
6014           not to save the history information for clients.  Same was
6015           fixed earlier in remove_clients_by_server function, but not
6016           here.  Affected file silcd/packet_receive.c.
6017
6018         * Raised the default connection-retry count from 4 to 7 in
6019           server.  Affected file silcd/server.h.
6020
6021         * Cancel any possible reconnect timeouts when we start the
6022           key exchange.  Affected file silcd/server.c.
6023
6024         * Do not reconnect on connection failure when SCONNECT was
6025           given.  Affected files silcd/server.[ch].
6026
6027 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6028
6029         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
6030
6031         * Fixed the NICK command to always give the unformatted
6032           nickname to the one giving the NICK command.  If unformatted
6033           nickname is cached already it will be formatted and the
6034           local entry will always get the unformatted nickname.
6035           Affected file lib/silcclient/idlist.c.
6036
6037         * Fixed some double frees from client library commands.
6038           Affected file is lib/silcclient/command.c.
6039
6040         * Fixed CUMODE command in server to assure that no one can
6041           change founder's mode than the founder itself, there was a
6042           little bug.  Affected file silcd/command.c.
6043
6044 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6045
6046         * Removed the SilcClientCommandDestructor from the client
6047           libary, it is not needed anymore.  Affected files are
6048           lib/silcclient/silcapi.h, command[_reply].[ch],
6049           client_notify, idlist.c.
6050
6051         * Fixed GETKEY command to first resolve client, and then
6052           resolve the server only if the client was not found, instead
6053           of resolving both at the same time.  Affected file is
6054           lib/silcclient/command.c.
6055
6056         * Added silc_client_start_key_exchange_cb and lookup the
6057           remote hostname and IP address before starting the key
6058           exchange with server.  The affected file is
6059           lib/silcclient/client.c.
6060
6061         * The server's public key is now saved using the IP address
6062           of the server and not the servername for the filename.
6063           The hostname public key filename is checked as an fall back
6064           method if the IP address based filename is not found.
6065
6066           Fixed the GETKEY command to save the fetched server key
6067           in correct filename.
6068
6069           Print the remote server's hostname now when new key is
6070           received during connection process.  Affected file is
6071           irssi/src/silc/core/client_ops.c.
6072
6073         * Return always our own public key to the client if it asks
6074           for it with GETKEY command.  Affected file silcd/command.c.
6075
6076         * Removed the use_auto_addr variable from default config
6077           file since it was in wrong section.  Affected file is
6078           irssi/src/config.
6079
6080         * Fixed TOPIC_CHANGE notification to not route it when it
6081           was sent using silc_server_send_notify_to_channel function.
6082           Affected file silcd/command.c.
6083
6084         * Fixed silc_server_send_notify_kicked to send the kicker's
6085           Client ID also, it was missing.  Affected files are
6086           silcd/command.c, silcd/packet_send.[ch].
6087
6088 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6089
6090         * Do not save client history information in SERVER_SIGNOFF.
6091           Fixes the bug in normal server that it does not detect
6092           the client becoming valid after the server becomes back
6093           online.  Affected file silcd/server_util.c.
6094
6095         * Added `sock_error' field  into the SilcSocketConnection
6096           context.  When error occurs during socket operation (read
6097           or write) the error is saved.  Added also new function
6098           silc_socket_get_error to return human readable socket error
6099           message.  Affected files are lib/silcutil/silcsockconn.[ch],
6100           lib/silcutil/unix/silcunixsockconn.c, and
6101           lib/silcutil/win32/silcwin32sockconn.c.
6102
6103         * The server now prints the socket error message in the
6104           signoff for client.  Affected file silcd/server.c.
6105
6106         * Fixed the `created' channel information sending from router
6107           to server in JOIN command.  Checks now whether the channel
6108           really was created or not and set it according that.
6109
6110           Fixed the JOIN command to use the client entry's current
6111           ID during the joining procedure instead of the one it sent
6112           in the command (it is checked though), since it can change
6113           between the packet processing and command processing, and
6114           would just case unnecessary pain in the client end.  Affected
6115           file silcd/command.c.
6116
6117         * Fixed a channel key payload sending to use correct channel
6118           ID when the server was forced to change the channel's ID by
6119           router.  Router sent the key payload with the old Channel ID.
6120           Affected file silcd/packet_receive.c.
6121
6122 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6123
6124         * Call silc_server_save_channel_key only if the key payload
6125           was provided in the JOIN command's command reply.  Affected
6126           file silcd/command_reply.c.
6127
6128 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6129
6130         * Fixed silc_mp_sizeinbase to return the value correctly with
6131           MPI.  Affected file lib/silcmath/mp_mpi.c.
6132
6133         * Fixed the stop_server signal to correctly stop the scheduler
6134           and gracefully stop the server when SIGTERM or SIGINT signals
6135           are received.  Affected file silcd/silcd.c.
6136
6137 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
6138
6139         * Simple handling of TERM and HUP signals. Also added some log
6140           flushing call around.  Affected file is
6141           silcd/silcd.c.
6142
6143         * Fixed small bugs in silclog.c. Now buffering output will take
6144           effect after 10 seconds since startup: This will ensure that
6145           no important startup messages are lost. Also output redirection
6146           will preserve original format ([Date] [Type] message).
6147           Affected file is lib/silcutil/silclog.c.
6148
6149         * Added two options to the config file, in the logging section:
6150           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
6151           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
6152
6153 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6154
6155         * Do not print the warning about log files not being initialized
6156           more than once to avoid excess logging.  Affected file is
6157           lib/silcutil/silclog.c.
6158
6159         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
6160           the SIM copying in make install in Makefile.am.pre.
6161
6162 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6163
6164         * Rewritten silclog APIs. Globally interesting changes follows:
6165           silc_log_set_files() changed to silc_log_set_file().
6166           silc_log_set_callbacks() changed to silc_log_set_callback().
6167           ROBOdoc documented silclog header file.
6168           SilcLogCb now returns bool to wether inihibit the default
6169           handler or not (to keep the old behaviour return always TRUE).
6170           The new APIs should also fix the problem of the
6171           silcd_error.log file that was written in the current directory.
6172
6173           New features:
6174           Log files streams will remain opened after silc_log_set_file()
6175           call, means less CPU usage notably on high traffic servers.
6176           File streams are now full buffered, and flushed to the disk
6177           every 5 minutes, lesses HD activity and CPU usage.
6178           Messages can be redirected, allowing admins to configure
6179           one single logfile for all server messages.
6180           the silc_log_quick global variable to activate fast-logging.
6181           Affected files lib/silcutil/silclog.[ch]
6182
6183         * Changed some code to conform new silclog APIs. Affected
6184           files are doc/example_silcd.conf.in, silcd/server.c
6185           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
6186           silcd/silcd.c.
6187
6188         * Fixed a memory leak that could occur in some situations.
6189           Affected file silcd/serverconfig.c.
6190
6191 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6192
6193         * Added the silc_client_del_client to remove the client from
6194           all channels as well.  Affected file lib/silcclient/idlist.c.
6195
6196         * Fixed the client library to correctly remove the client
6197           from all channels when the client entry is being destroyed.
6198           Affected file lib/silcclient/client_notify.c, command.c.
6199
6200         * Added auto-nicking support to the client library.  If the
6201           applicatio now sets client->nickname it will be sent to the
6202           server after connecting by the library.  This way for example
6203           SILCNICK (or IRCNICK) environment variables will have effect
6204           and always change the nickname automatically to whatever
6205           it is wanted.  Affected file lib/silcclient/client.[ch].
6206
6207         * Renamed silc_server_command_bad_chars to the
6208           silc_server_name_bad_chars and moved it to the
6209           silcd/server_util.[ch].  Added also new function
6210           silc_server_name_modify_bad to return nickname that
6211           includes bad characters as new nickname without those
6212           bad characters.  This check and modify is now used in
6213           silc_server_new_client when the username is initially set
6214           as nickname, so it must be checked to be valid nickname.
6215           Affected file silcd/packet_receive.c.
6216
6217         * The nickname length is now taken from the packet for real
6218           and not trusted to strlen() since it clearly can return
6219           wrong length for nickname including bad characters.  This
6220           also applies to channel names.  Affected file silcd/command.c.
6221
6222         * Removed the lib/silcsilm/modules directory.  Modules are now
6223           compiled into the lib/silcsim.  Fixed the copying of the
6224           modules to follow symbolic links in Makefile.am.pre.
6225
6226 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6227
6228         * Fixed silc_string_regexify list creation.  Fixes bugs with
6229           BAN and INVITE commands in server.  The affected file is
6230           lib/silcutil/unix/silcunixutil.c.
6231
6232 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6233
6234         * Removed the command destructor entirely from the server's
6235           command and command reply routines.  It is not needed, and
6236           its usage was buggy and caused crashes.  Affected files are
6237           silcd/command[_reply].[ch].
6238
6239 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6240
6241         * Cancel protocol and NULL sock->protocol if timeout
6242           occurred during protocol.  Affected file silcd/server.c.
6243
6244         * Cancel protocol timeouts always before calling the final
6245           callback, to assure that after final callback is called
6246           no other state will be called for the protocol anymore.
6247           Affected file silcd/protocol.c.
6248
6249         * Print error log if incoming connection configuration could
6250           not be found.  Affected file silcd/server.c.
6251
6252         * Fixed JOIN command to correctly save the founder mode
6253           to the client on normal SILC server, when the channel
6254           was created by the router.  Affected file silcd/command.c.
6255
6256         * Fixed LIST command (hopefully) to send correct reply
6257           packets.  Affected file silcd/command.c.
6258
6259 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6260
6261         * The silc_packet_receive_process now returns FALSE if the
6262           read data was invalid packet, and TRUE if it was ok.
6263
6264           The server now checks that if unauthenticated connection
6265           sends data and its processing fails the server will close
6266           the connection since it could be a malicious flooder.
6267
6268           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
6269
6270 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6271
6272         * Make sure the warning about error opening a log file is
6273           printed only once and not everytime it fails (produces
6274           too much useless log).  Affected file lib/silcutil/silclog.c.
6275
6276 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6277
6278         * Made the silc_server_daemonise() function more readable.
6279           Affected file silcd/server.c.
6280
6281         * Pid file is now optional, the user may comment it out from
6282           the config file. Removed define SILC_SERVER_PID_FILE, we
6283           don't need a default any longer.  Affected file
6284           configure.in.pre, lib/Makefile.am.pre.
6285
6286         * Make some use of the pid file. The server now dies at startup
6287           if it detects a valid pid file on his path. The server would
6288           die anyway in this circumstance, because of the bind() failure.
6289           Affected file silcd/silcd.c.
6290
6291         * No longer compiling lib/dotconf.
6292
6293 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6294
6295         * Fixed JOIN command parsing not to crash.  Affected file
6296           lib/silcclient/command.c.
6297
6298         * Fied the NICK_CHANGE notify to add the new client entry
6299           even it is resolved.  This removes an <[unknown]> nick
6300           thingy bug in the client.  Affected file is
6301           lib/silcclient/client_notify.c.
6302
6303         * Do not try to allocate 0 bytes (efence does not like it)
6304           in lib/silccore/silccomand.c when encoding payload.
6305
6306         * Do not take IRCNICK as nickname in Irssi SILC client since
6307           it is not possible to set nickname before hand connecting
6308           the server (TODO has an entry about adding auto-nicking
6309           support).
6310
6311         * Changed the silc_server_command_pending to check whether
6312           there already exists an pending entry with the specified
6313           command, command identifier and pending callback.  This is
6314           to fix IDENTIFY and WHOIS related crashes that may register
6315           multiple pending commands with same identifier.  Affected
6316           file silcd/command.c.
6317
6318         * Fixed the server to reconnect to the router even if it
6319           was already reconnecting and EOF was received.  This to
6320           fix a possibility that the server wouldn't ever try to
6321           auto-reconnect to the router.  Affected file silcd/server.c.
6322
6323 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6324
6325         * Fixed the server's password authentication to use the
6326           length of the locally saved password, and not the one
6327           sent in the packet.  Affected file silcd/protocol.c.
6328
6329         * Fixed same password authentication problem in the
6330           Authentication Payload handling routines in
6331           lib/silccore/silcauth.c.
6332
6333         * Yet another password authentication problem fixed with
6334           channel password handling in silcd/command.c.
6335
6336 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6337
6338         * If first character of string in silc_parse_userfqdn is '@'
6339           then do not parse it.  Affected file is
6340           lib/silcutil/silcutil.c.
6341
6342 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6343
6344         * Fixed minor bug in IDENTIFY command reply sending, which
6345           caused various weird problems during JOIN when it was
6346           resolving names for users.  Affected file silcd/command.c.
6347
6348 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6349
6350         * Fixed the IDENTIFY command reply sending to chech better valid
6351           clients.  It was possible to send incomplete list of replies.
6352           Affected file silcd/command.c.
6353
6354 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6355
6356         * Added silc_client_command[s]_[un]register functions now to
6357           dynamically register the commands in client library.  Removed
6358           the static table of commands.  This allows the client library
6359           to call commands without causing the application to know about
6360           what commands library has called.
6361
6362           Removed the INFO command reply kludge to detect when the command
6363           was called by library.  Now library use its own command reply
6364           function for INFO command.
6365
6366           Added function silc_client_command_call to call a command.
6367           Application can use it to call command, not access the structure
6368           directly.
6369
6370           Now all commands that are sent by the client library (not
6371           explicitly sent by application) use own command reply functions.
6372
6373           Affected files around lib/silcclient/ and in
6374           irssi/src/silc/core/.
6375
6376         * Fixed the WHOIS command reply sending to chech better valid
6377           clients.  It was possible to send incomplete list of replies.
6378
6379           Fixed the WHOIS and IDENTIFY to send the request to router
6380           if normal server did not do it and did not find any results.
6381
6382           Affected file silcd/command.c.
6383
6384 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6385
6386         * Moved the internal data from SilcClient context into its
6387           own file, not accesible to application.  Affected files
6388           lib/silcclient/client.h and lib/silcclient/client_internal.h,
6389           and other files in client library.
6390
6391 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6392
6393         * Added doc/examples installation target in Makefile.am.pre.
6394           A patch by salo.
6395
6396 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6397
6398         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
6399           commands the found client entry will be removed from the
6400           cache, after notifying application about the error.  Affected
6401           file lib/silcclient/command_reply.c.
6402
6403         * Changed the /MSG to check for exact nickname user gave, and
6404           not let `nick' match `nick@host' if it is only one found.  Now,
6405           user must type the exact nickname (like nick@host2) even if
6406           there are no more than one same nicks found.  This is to avoid
6407           a possibility of sending nickname to wrong nickname since
6408           `nick' could match `nick@host'.  Affected file is
6409           irssi/src/core/silc-servers.c.
6410
6411 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6412
6413         * Do not print "you are now server operator" or similar when
6414           giving /away command.  Affected files are
6415           irssi/src/silc/core/client_ops.c, silc-servers.h.
6416
6417         * Made the silc_server_command_pending_error_check to send
6418           the same command reply payload it received back to the
6419           original sender of the command.  This way all arguments
6420           that was received by the server will be received by the
6421           client too.  Affected file silcd/command.c.
6422
6423         * Added the silc_idcache_add to return the created cache entry
6424           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
6425
6426         * Add global clients to expire if they are not on any channel.
6427           This is because normal server will never know if they signoff
6428           if they are not on any channel.  The cache expiry will take
6429           case of these entries.  This is done by normal servers only.
6430           The affected files are silcd/command_reply.c,
6431           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
6432
6433         * If server receives invalid ID notification for WHOIS or
6434           IDENTIFY and the ID exists in the lists, it is removed.
6435           Affected file silcd/command_reply.c.
6436
6437         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
6438           in client then client entry that it matches is searched and
6439           the nickname is printed on the screen for user.  Affected
6440           file irssi/src/silc/core/client_ops.c.
6441
6442 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6443
6444         * Use cache entry expire time in the LIST command reply to
6445           purge old entries from the cache after the LIST command
6446           reply has been received.  This way we don't have non-existent
6447           entries in the cache for too long.  Affected file is
6448           silcd/command_reply.c.
6449
6450 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6451
6452         * If we are normal server, and we've not resolved client info
6453           in WHOIS or IDENTIFY from router, and it is global client,
6454           we'll check whether it is on some channel.  If it is not
6455           then we cannot be sure about its validity and will resolve it
6456           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
6457           file silcd/command.c.
6458
6459         * Search channel by name (if possible) rather than by ID
6460           in IDENTIFY command's command reply.  Affected file is
6461           silcd/command_reply.c.
6462
6463 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6464
6465         * Distribute to the channel passphrase in CMODE_CHANGE notify.
6466           Updated specs and implemented it.  Affected file silcd/command.c,
6467           silcd/packet_send.c and silcd/packet_receive.c.
6468
6469         * Implemented the <founder auth> payload handling in the JOIN
6470           command.  If provided all conditions for channel joining
6471           except requirement to provide correct passphrase can be
6472           overrided by the channel founder.  Updated the protocol specs.
6473           Affected file silcd/command.c.
6474
6475           Added support for founder auth in JOIN command in client
6476           library.  Fixed the parsing of the JOIN command now to support
6477           all options as they should be.  The affected file is
6478           lib/silcclient/command.c.
6479
6480         * Optimized the WHOIS and IDENTIFY commands to send the request
6481           to router only if it includes nicknames or other names.  If
6482           they include only IDs then check the local cache first before
6483           routing.  Affected file is silcd/command.c.
6484
6485         * Added channels topic announcements.  Affected file is
6486           silcd/packet_receive.c and silcd/server.c.
6487
6488         * Fixed the silc_server_send_notify_topic_set to really destine
6489           the packet to channel.  Affected file silcd/packet_send.c.
6490
6491         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
6492           library.  Affected file lib/silcclient/client_notify.c.
6493
6494         * Added UMODE announcements.  Affected file silcd/server.c.
6495
6496 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6497
6498         * Memory leak fixes in:
6499
6500           lib/silcutil/silcsockconn.c
6501           lib/silcske/silcske.c
6502           lib/silcske/groups.c
6503           lib/silccrypt/rsa.c
6504           lib/silccrypt/silcpkcs.c
6505           lib/silccore/silccommand.c
6506           lib/silccore/silcidcache.c
6507           silcd/idlist.c
6508           silcd/packet_send.c
6509           silcd/command.c
6510
6511         * ROBOdoc documented the lib/silcske/groups.h file and a
6512           bit changed the interface for better.
6513
6514 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6515
6516         * Update the client entry context in the ID cache after
6517           nick change.  Affected file lib/silcclient/command.c.
6518           Fixes the CUMODE command when regaining founder privileges,
6519           and a little WHOIS problem.
6520
6521         * Fixed silc_net_gethostbyname to correctly call the
6522           inet_ntop.  Affected file lib/silcutil/silcnet.c.
6523
6524 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6525
6526         * Added IPv6 support checking to the configure.in.pre, added
6527           also --enable-ipv6 option to override the check.  Affected
6528           file configure.in.pre.
6529
6530         * The silc_thread_create now calls the start function
6531           directly if threads support is not compiled in.  Removes
6532           ugly #ifdef's from generic code.  Affected files are
6533           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
6534
6535         * Added silc_net_gethostby[name/addr]_async to asynchronously
6536           resolve.  Affected files are lib/silcutil/silcnet.[ch].
6537
6538         * Added support for rendering IPv6 based server, client and
6539           channel IDs.  Affected file lib/silcutil/silcutil.c.
6540
6541         * Added support for creating IPv6 based server IDs.  Affected
6542           file is silcd/serverid.c.
6543
6544 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6545
6546         * Added silc_net_gethostby[addr/name] into the
6547           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
6548           routines.  Added silc_net_is_ip[4/6].  Affected file is
6549           lib/silcutil/unix/silcunixnet.c.  All routines that take
6550           address as argument now supports both IPv4 and IPv6 addresses.
6551
6552 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6553
6554         * Fixed LIST command reply sending in server.  Affected file
6555           silcd/command.c.
6556
6557         * Server now sends the kicker's client ID in the KICK notify
6558           to the kicked client.  Affected file silcd/command.c.
6559
6560         * The client library now parses the kickers client ID and
6561           UI displays it.  Affected files lib/silcclient/client_notify.c
6562           and irssi/src/silc/core/silc-channels.c, module-formats.c.
6563
6564         * Made all payload parsing function prototypes consistent.
6565           They all take now const unsigned char * and uint32 pair as
6566           the payload data instead of SilcBuffer.  Changes all around
6567           the source tree.  Other unsigned char* -> const unsigned char*
6568           changes around the tree as well.
6569
6570         * Optimized SFTP client and server packet sending not to
6571           allocate new buffer for each packet but to recycle the
6572           first allocated buffer.  Affected files are
6573           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
6574
6575         * Optimized the SFTP client to use SilcList instead of
6576           SilcDList for requests, because it is faster.  Affected file
6577           is lib/silcsftp/sftp_client.c.
6578
6579         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
6580           into lib/silccore/silcid.[ch].
6581
6582           Renamed silcpayload.[ch] into silcargument.[ch].
6583
6584 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6585
6586         * If client entry is deleted with active key agreement
6587           session, abort the session.
6588
6589           The silc_client_abort_key_agreement now calls the completion
6590           callback with new SILC_KEY_AGREEMENT_ABORTED status.
6591
6592           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
6593           idlist.c.
6594
6595 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6596
6597         * Don't use __restrict in older GCC's.  Affected file is
6598           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
6599
6600         * silc_net_localhost now attempts to reverse lookup the
6601           IP/hostname.  Affected file lib/silcutil/silcnet.c.
6602
6603         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
6604           command.  It can be used to gain founder privileges at
6605           the same time when joining the channel.
6606
6607           Defined that the SILC_NOTIFY_TYPE_KICKED send the
6608           kicker's client ID as well.  Updated protocol specs.
6609
6610           Defined that the server must send SILC_COMMAND_IDENTIFY
6611           command reply with error status to client who sent
6612           private message with invalid client ID.
6613
6614           Updated the protocol specification.
6615
6616         * Added silc_server_send_command_reply to send any
6617           command reply.  Affected file silcd/packet_send.[ch].
6618
6619         * Added silc_id_payload_encode_data to encode ID payload
6620           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
6621
6622         * The server now send IDENTIFY command reply with error
6623           status if client ID in private message is invalid.  Affected
6624           file silcd/packet_receive.c.
6625
6626         * Save the server key file with server's IP address in
6627           the filename instead of hostname.  The affected file is
6628           irssi/src/silc/core/client_ops.c.
6629
6630 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6631
6632         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
6633           A patch by Sunfall.
6634
6635         * Added libtool support for compiling shared objects in
6636           lib/silcsim.  Affected file configure.in.pre and
6637           lib/silcsim/Makefile.am.  Original patch by cras.
6638
6639 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6640
6641         * Pid file configuration, and server's config file fixes
6642           patch by toma.  Updated CREDITS file.
6643
6644 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6645
6646         * Fixed silc_client_channel_message to not try to decrypt
6647           the message twice if it resolved the destination client
6648           information.  This could cause of dropping one channel
6649           message.  Affected file lib/silcclient/client_channel.c.
6650
6651 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6652
6653         * Added silc_client_run_one into lib/silcclient/silcapi.h and
6654           lib/silcclient/client.c. This function is used when the SILC
6655           Client is run under some other scheduler, or event loop or
6656           main loop.  On GUI applications, for example this may be
6657           desired to used to run the client under the GUI application's
6658           main loop.  Typically the GUI application would register an
6659           idle task that calls this function multiple times in a second
6660           to quickly process the SILC specific data.
6661
6662 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6663
6664         * Fixed silc_server_drop() for dropping the supplementary
6665           groups as well, this could cause a security hole on some
6666           systems.
6667
6668 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6669
6670         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6671           johnny.
6672
6673         * Write PID file after dropping privileges.  Added -F option
6674           to run server on foreground.  A patch by debolaz.
6675           Affected files silcd/server.c, silcd/silcd.c.
6676
6677         * Fixed MOTD to return the MOTD file server name.  Affected
6678           file silcd/command.c.
6679
6680         * Added INFO command reply handling to the Irssi SILC Client.
6681           Affected file irssi/src/silc/core/client_ops.c.
6682
6683 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6684
6685         * Fixed the silc_idcache_list_* routines to really support
6686           the dynamic list.  Fixes a crash.  Affected file is
6687           lib/silccore/silcidcache.c.
6688
6689         * Fixed the LIST command reply to really call LIST command's
6690           pending callbacks.  Affected file silcd/command_reply.c.
6691
6692 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6693
6694         * Update conn->local_entry->nickname after giving NICK
6695           command.  Affected file lib/silcclient/command.c.
6696
6697 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6698
6699         * Added the [pid] option to the silcd configuration file
6700
6701           Affected files: serverconfig.[ch] and silcd.c
6702
6703 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6704
6705         * Save fingerprint in WHOIS command reply in server.
6706           Affected file silcd/command_reply.c.
6707
6708         * Fixed NICK commands pending callback registration.
6709           Affected file lib/silcclient/command.c.
6710
6711 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6712
6713         * Use ++server->cmd_ident when sending commands in server,
6714           instead of random number.  Affected file silcd/command.c.
6715
6716         * Fixed GETKEY command reply to call actually GETKEY pending
6717           command callbacks.  Affected file silcd/command_reply.c.
6718
6719         * A bit stricter check for nicknames.  Check for same nickname
6720           in NICK command also.  Affected file silcd/command.c.
6721
6722         * Do not call INFO command everytime client ID changes, only
6723           during first connecting.  Affected file lib/silcclient/client.c.
6724
6725         * Set the new nickname only after successful command reply for
6726           NICK command is returned by server.  Affected file
6727           lib/silcclient/command.c.
6728
6729         * Remove nicknames from nicklist during server_signoff notify.
6730           Should fix /NAMES bit more.  The affected file is
6731           irssi/src/silc/core/silc-channels.c.
6732
6733         * Added `fingerprint' field to the SilcIDListData in the
6734           silcd/idlist.h to hold the fingerprint of the client's
6735           public key.
6736
6737           Send the fingerprint of the client's public key in WHOIS
6738           command reply.
6739
6740           Affected files silcd/command.c, and silcd/idlist.[ch].
6741
6742         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6743           create fingerprint from given data.
6744
6745         * Show the fingerprint of the client's public key in WHOIS.
6746           Affected files irssi/src/module-formats.[ch] and
6747           irssi/src/silc/core/client_ops.c.
6748
6749         * Format the multiple same nicknames also during JOIN and
6750           NICK_CHANGE notifys.  Affected file is
6751           lib/silcclient/client_notify.c.
6752
6753         * Do not print error on screen for invalid private message
6754           payload since it can come if someone is sending private
6755           messages with wrong key.  Affected file
6756           lib/silccore/silcprivate.c.
6757
6758         * Fixed multiple concurrent /PING crash.  Affected file
6759           lib/silcclient/command.c.
6760
6761         * Changed the wrong ID encoding.  All IP addresses must be
6762           in MSB first order in encoded format.  They were encoded
6763           wrong and was in LSB format.  Affected files are
6764           silcd/serverid.c, lib/silcutil/silcutil.c.
6765
6766         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6767
6768         * Call the `connect' client operation through the scheduler
6769           in case of error.  Affected file lib/silcclient/client.c.
6770
6771         * Call the `failure' client operation even if the error
6772           occurred locally during a protocol.  Affected file is
6773           lib/silcclient/protocol.c.
6774
6775         * Added support of sending LIST command to router from normal
6776           server.  This way normal server can get list of all channels
6777           in the network too.  Fixed the channel list sending in the
6778           server too.  Affected files are silcd/command.c, and
6779           silcd/command_reply.[ch].
6780
6781         * Added silc_server_update_channels_by_server and
6782           silc_server_remove_channels_by_server.  They are used during
6783           disconnection of primary router and in backup router protocol.
6784           Affected file silcd/server_util.[ch], silcd/server.c and
6785           silcd/server_backup.c.
6786
6787         * Fixed channel adding to global list in IDENTIFY command
6788           reply in server.  Affected file silcd/command_reply.c.
6789
6790 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6791
6792         * If the incoming packet type is REKEY or REKEY_DONE process
6793           that packet always synchronously.  Fixes yet another MAC
6794           failed error on slow (dialup) connections.  Affected file
6795           lib/silcclient/client.c and silcd/server.c.
6796
6797 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6798
6799         * Call check_version SKE callback for initiator too.  Affected
6800           file lib/silcske/silcske.c.
6801
6802         * Implemented fix for security hole found in the SKE that was
6803           fixed in the specification few days back; the initiator's
6804           public key is now added to the HASH value computation.
6805           Added backwards support for the old way of doing it too, for
6806           old clients and old servers.  Affected file is
6807           lib/silcske/silcske.c.
6808
6809         * Enabled mutual authentication by default in SKE.  If initiator
6810           is not providing mutual authentication the responder will
6811           force it.  This will provide the proof of posession of the
6812           private key for responder.  The affected files are
6813           lib/silcclient/protocol.c and silcd/protocol.c.
6814
6815         * Do not cache anymore the server's public key during SKE.
6816           We do mutual authentication so the proof of posession of
6817           private key is done, and if the server is authenticated in
6818           conn auth protocol with public key we must have the public
6819           key already.  Affected file silcd/protocol.c.
6820
6821         * Added new global debug variable: silc_debug_hexdump.  If
6822           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6823           file lib/silcutil/silclog.[ch].
6824
6825         * Fixed compilation warning due to char * -> const char *.
6826           Affected files lib/silcutil/silcnet.h, and
6827           lib/silccore/silcauth.[ch].
6828
6829 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6830
6831         * Fixed CMODE command when new channel key was created.  If
6832           the creation failed the old key was removed.  Next time giving
6833           same command would crash the server since the old key was
6834           freed already.  Affected file silcd/command.c.
6835
6836         * Fixed the silc_server_announce_get_channels to not crash
6837           on reconnect.  Affected file silcd/server.c.
6838
6839 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6840
6841         * Added silc_log_set_debug_string function to set a regex
6842           string to match for debug output.  Only the function names,
6843           or filenames matching the given debug string is actually
6844           printed.  This way it is possible to filter out those debug
6845           strings that user is not interested in.
6846
6847           Fixed a bug in silc_string_regexify.
6848
6849           Affected files lib/silcutil/silclog.[ch], and
6850           lib/silcutil/unix/silcunixutil.c.
6851
6852         * Changed the -d options in both server and Irssi SILC client
6853           to take the debug string as argument.  Affected files
6854           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6855
6856 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6857
6858         * Added silc_hash_babbleprint to create a Bubble Babble
6859           Encoded fingerprint.  The encoding is developed by Antti
6860           Huima (draft-huima-babble-01.txt), and it creates human
6861           readable strings out of binary data.  Affected file
6862           lib/silccrypt/silchash.[ch].
6863
6864         * Print the babble print now in addition of fingerprint as well
6865           in Irssi SILC client.  Affected files are
6866           irssi/src/fe-common/silc/module-formats.[ch],
6867           irssi/src/fe-common/silc/core/client_ops.c.
6868
6869 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6870
6871         * Fixed a security problem found in SKE.  The initiator's
6872           public key too is now added to the HASH hash value creation
6873           which is signed by the responder to create the SIGN value.
6874           This will prevent anyone in the middle to lie to the responder
6875           about the initiator's public key.  If this is done now, the
6876           man in the middle will get caught.  Updated the protocol
6877           specification.
6878
6879 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6880
6881         * Better installation directory handling.  Configure module
6882           paths and other paths automatically to example_silc* files
6883           in doc/.  A patch by toma.
6884
6885         * Fixed compiler warning from MPI library, and from SILC RNG.
6886           A patch by johnny.
6887
6888         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6889           It can be configured with ./configure.  A patch by toma.
6890
6891 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6892
6893         * Find correct make to use in prepare-clean.  A patch by
6894           toma.  Affected file prepare-clean.
6895
6896 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6897
6898         * Added irssi variables use_auto_addr, auto_bind_ip,
6899           auto_bind_port and auto_public_ip.
6900
6901         * Changed the interface for silc_client_send_key_agreement
6902           in lib/silcclient/silcapi.h
6903
6904         Affected files:
6905
6906          irssi/src/silc/core/silc-core.c
6907          irssi/config
6908          lib/silcclient/silcapi.h
6909          irssi/src/silc/core/silc-channels.c
6910          lib/silcclient/client_keyagr.c
6911          irssi/docs/help/key
6912
6913 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6914
6915         * Added silc_pkcs_public_key_compare to compare two
6916           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6917
6918         * Check that the client who set the founder mode on the
6919           channel is the same client that is giving the founder
6920           mode to itself.  It is done by comparing the saved public
6921           key (it is saved even in the authentication is passphrase).
6922           Affected file silcd/command.c.
6923
6924 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6925
6926         * Do not process packet for disconnected socket connection.
6927           Affected file lib/silccore/silcpacket.c.
6928
6929         * Process the DISCONNECT packet through scheduler in the
6930           client library.  Affected file lib/silcclient/client.c.
6931
6932         * Fixed the silc_client_packet_parse to not to increase
6933           the packet sequence number if the conn->sock and the
6934           current socket connection is not same.  This can happen
6935           for example during key agreement when the conn includes
6936           multiple socket connections (listeners).  Affected file
6937           lib/silcclient/client.c.
6938
6939         * The sender of the file transfer request now provides also
6940           the pointer (listener) for the key exchange protocol.  If
6941           the listener cannot be created then it sends empty key
6942           agreement and lets the receiver provide the listener.
6943
6944           Added `local_ip' and `local_port' arguments to the
6945           silc_client_file_send.  If they are provided they are used,
6946           if not then it will attempt to find local IP address, if
6947           not found or bind fails then the remote client will provide
6948           the listener.
6949
6950           Affected files are lib/silcclient/client_ftp.c and
6951           lib/silcclient/silcapi.h.
6952
6953         * Extended the FILE SEND command to support defining the
6954           local IP and port for key exchange listener.  They are
6955           optional.  Affected file irssi/src/silc/core/silc-servers.c.
6956
6957 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6958
6959         * Defined to WHOIS command reply the sending of fingerprint
6960           of the client's public key (if the proof of posession of the
6961           corresponding private key is verified by the server).
6962           Updated to the protocol specification.
6963
6964         * Added support of receiving the client's public key's
6965           fingerprint in command reply in client library.  Affected
6966           file is lib/silcclient/command_reply.c, and
6967           lib/silcclient/idlist.[ch].
6968
6969 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6970
6971         * Do not send over 128 chars long nickname to the server
6972           in NICK command.  Affected file lib/silcclient/command.c.
6973
6974         * Do not send over 256 chars long channel names to the server
6975           in JOIN command.  Affected file lib/silcclient/command.c.
6976
6977 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6978
6979         * Assure that silc_server_close_connection cannot be called
6980           twice for same socket context.  Affected file is
6981           silcd/server.c.
6982
6983 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6984
6985         * Send error message to application if opening file for
6986           writing during file transfer fails.  Affected file is
6987           lib/silcclient/client_ftp.c.
6988
6989           Remove all file transfer sessions for a client that we're
6990           removing from ID cache.
6991
6992           Affected file is lib/silcclient/client_ftp.c.
6993
6994         * Fixed silc_net_addr2bin to return correct address.  Affected
6995           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6996
6997         * Fixed file transfer session removing on signoff notify.
6998           Affected file irssi/src/silc/core/silc-servers.c.
6999
7000         * Added the SilcClientFileError to be returned in the monitor
7001           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
7002           Affected file lib/silcclient/silcapi.h.
7003
7004 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7005
7006         * Fixed a crash in silc_client_ftp_free_sessions and
7007           silc_client_ftp_session_free_client.  Affected file
7008           lib/silcclient/client_ftp.c.
7009
7010         * Added `disabled' field in the SilcChannelEntry in the server
7011           to indicate if the server entry is disabled.  Affected file
7012           silcd/idlist.h, silcd/command[_reply].c.
7013
7014         * SILC server adds now /var/run/silcd.pid everytime it is
7015           started.  Affected file silcd/silcd.c.
7016
7017         * Added silc_server_packet_send_clients to send a packet to
7018           the provided table of client entries.  Affected file
7019           silcd/packet_send.[ch].
7020
7021         * Fixed a crash in client resolving in client_prvmsg.c in
7022           client library.  Affected file lib/silcclient/client_prvmsg.c.
7023
7024         * Do not actually remove the client directly from ID cache
7025           during SERVER_SIGNOFF, but invalidate it.  This way we
7026           preserve the WHOWAS info for the client.  Affected file
7027           silcd/server_util.c.
7028
7029         * Fixed SERVER_SIGNOFF notify handling in the server.  The
7030           server is now able to process incoming SERVER_SIGNOFF notify
7031           for a server that it doesn't even know about.  It will remove
7032           the clients provided in the notify.  Affected file
7033           silcd/packet_receive.c.
7034
7035         * Check for partial packet in data queue after every packet that
7036           was found from the queue.  Return and wait for more data if
7037           there is partial data in queue.  Affected file is
7038           lib/silccore/silcpacket.c.
7039
7040 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7041
7042         * Added SilcClietFileError enum to indicate error in
7043           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
7044           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
7045           Affected files lib/silcclient/silcapi.h and
7046           lib/silcclient/client_ftp.c.
7047
7048         * Check that newsize in silc_buffer_realloc is larger than
7049           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
7050
7051         * Added better monitor of file transfers.  It now monitors
7052           key agreement protocol during the file transfer too.  Added
7053           error reporting too.  Affected files
7054           irssi/src/silc/core/silc-servers.c,
7055           irssi/src/fe-common/silc/module-formats.[ch].
7056
7057         * Wrote a help file for FILE command.
7058
7059         * Added silc_rng_global_get_byte_fast to get not-so-secure
7060           random data as fast as possible.  Random data is read from
7061           /dev/urandom if available and from the SILC RNG if not
7062           available.  It is used in padding generation.  Affected file
7063           lib/silccrypt/silcrng.[ch].
7064
7065         * All packets in client library are now processed synchronously.
7066           Optimized packet processing a lot.  Affected file
7067           lib/silcclient/client.c.
7068
7069         * All server connection packets are processing synchronously
7070           now in server, to optimize packet processing.  Affected file
7071           silcd/server.c.
7072
7073         * Include files are installed now only in Toolkit distribution
7074           if make install is given.  Affected files: all Makefile.am's.
7075
7076 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7077
7078         * Assure that silc_client_notify_by_server_resolve does not
7079           resolve the client information multiple times.  If it cannot
7080           be found by the first it cannot be found at all.  Affected
7081           file lib/silcclient/client_notify.c.
7082
7083         * Fixed WHOWAS command reply calling.  Affected file
7084           lib/silcclient/command_reply.c.
7085
7086         * Removed all references to silc_idlist_get_client from the
7087           Irssi SILC client since that call is internal call used by
7088           the library.  The Irssi SILC client will use now client
7089           retrieval functions found in silcapi.h.
7090
7091         * Fixed a bug in resolving nickname info before sending
7092           private message.  It used freed memory.  Affected file
7093           irssi/src/silc/core/silc-servers.c.
7094
7095 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7096
7097         * Assure my_channels statistics cannot go negative in server.
7098           Affected files silcd/server.c, silcd/server_util.c.
7099
7100 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7101
7102         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
7103
7104 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7105
7106         * Win32 Toolkit changes.  Affected files
7107           win32/silc.dsw, win32/libsilc/libsilc.def,
7108           win32/libsilcclient/libsilc.def,
7109           lib/silcutil/silcutil.c, and
7110           lib/sftp/sftp_fs_memory.c.
7111
7112 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7113
7114         * Added silc_net_localip to return local host's IP address.
7115           Affected file lib/silcutil/silcnet.[ch].
7116
7117         * If key exchange or rekey protocol is active for a connection
7118           parse all packets syncronously since there might be packets
7119           in packet queue that we are not able to process without first
7120           processing packets before them.  Affected file silcd/server,
7121           lib/silcclient/client.c.
7122
7123         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
7124           whether library should continue processing the packet.
7125           Affected file lib/silccore/silcpacket.h.
7126
7127         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
7128           SilcSFTPMonitorData to SFTP server to monitor various
7129           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
7130           lib/silcsftp/sftp_server.c.
7131
7132         * Added silc_file_size to return file size.  Affected file
7133           lib/silcutil/silcutil.[ch].
7134
7135         * Implemented the file transfer support for the client library.
7136           Added preliminary support for simple client to client one-file
7137           transmission.  Affected file lib/silcclient/client_ftp.c,
7138           lib/silccilent/client.[ch].
7139
7140         * Added new local command FILE to the Irssi SILC Client.
7141           It is used to perform the file transfer.  It has subcommands
7142           SEND, RECEIVE, SHOW and CLOSE.  Affected files
7143           irssi/src/silc/core/client_ops.c,
7144           irssi/src/silc/core/silc-server.[ch].
7145
7146 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7147
7148         * Relay the SILC_PACKET_FTP in the server.  Affected files
7149           silcd/server.c and silcd/packet_receive.c.
7150
7151 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7152
7153         * Renamed silc_file_read and silc_file_write to functions
7154           silc_file_readfile and silc_file_writefile.  Added function
7155           silc_file_open and silc_file_close.  Affected files
7156           lib/silcutil/silcutil.[ch].
7157
7158 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7159
7160         * Resolve the client info when received private message or
7161           channel message for a client which nickname we don't know.
7162           Affected files lib/silcclient/client_prvmsg.c and
7163           lib/silcclient/client_channel.c.
7164
7165         * Do not crash in /KEY if client is not connected.  Affected
7166           file irssi/src/silc/core/silc-channels.c.
7167
7168         * Added SilcClientStatus field to the SilcClientEntry in the
7169           lib/silcclient/idlist.h.
7170
7171           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
7172           is incomplete and is being resolved, it won't be resolved
7173           twice.
7174
7175           Make sure also that USERS command reply does not resolve
7176           twice information.  Affected file is
7177           lib/silcclient/command_reply.c.
7178
7179           Make sure that silc_client_get_clients_by_list does not
7180           resolve twice same information.
7181
7182         * Check for valid client->id in the silc_server_free_client_data.
7183           Affected file silcd/server.c.
7184
7185         * Fixed /GETKEY nick@server not to crash if the server entry
7186           is not found.  Affected file lib/silcclient/command.c.
7187
7188         * Fixed the silc_server_check_cmode_rights to check the
7189           requested modes correctly.  Affected file silcd/command.c.
7190
7191 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7192
7193         * Better checks for non-printable chars in nick added.
7194           Affected file silcd/command.c.
7195
7196 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7197
7198         * Call the silc_server_udpate_servers_by_server in the
7199           primary router that comes back online in the backup resuming
7200           protocol.  Otherwise it routes packets wrong.  Affected file
7201           silcd/server_util.[ch], silcd/server_backup.c.
7202
7203 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7204
7205         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
7206           lib/silcutil/silcbuffmt.[ch].
7207
7208         * Redefined the SILC packet header to include the padding
7209           length.  Affected file lib/silccore/silcpacket.[ch].
7210
7211         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
7212           length for maximum padding up to 128 bytes).  Affected
7213           file lib/silccore/silcpacket.h.
7214
7215         * Removed all backwards support for old 0.5.x MAC thingies.
7216           The SILC packet header change makes it impossible to be
7217           backwards compatible.
7218
7219         * Send the ENDING packet with timeout in the backup resuming
7220           protocol.  This is to assure that all routers has connected
7221           to the primary router.  Affected file silcd/server_backup.c.
7222
7223         * Changed the RNG to take the first IV from random data.  It
7224           used to take it from zero actually.  Changed the RNG also
7225           to use /dev/urandom during session.  /dev/random is used
7226           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
7227
7228 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7229
7230         * Changed the SILC packet header to have the first two bytes
7231           (the packet length) encrypted.  Affected files aroung the
7232           code tree, lib/silccore/silcpacket.[ch].  Removed the
7233           SilcPacketCheckDecrypt callback.  It is not needed anymore
7234           since the silc_packet_receive_process will determine now
7235           whether the packet is normal or special.
7236
7237         * Implemented the unidirectional MAC keys.  Affected files
7238           lib/silcske/silcske.c, silcd/protocol.c and
7239           lib/silcclient/protocol.c.
7240
7241         * Implemented the packet sequence number to the MAC computation.
7242           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
7243           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
7244           lib/silcclient/protocol.c.
7245
7246 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7247
7248         * Allow backup router to announce servers.  All servers
7249           announced by backup router are added to the global list
7250           automatically.  Update hte server's socket to our primary
7251           router also when backup router announces a server.
7252           Affected file silcd/packet_receive.c.
7253
7254         * Do not update the client->router in the function
7255           silc_server_udpate_clients_by_server if the client is on
7256           global list.  We might fail to find any specific server
7257           for locally connected clients and local cell clients.  They
7258           should still use the `from' and not `to' as client->router.
7259           This fixes backup router resuming protocol.  Affected file
7260           silcd/server_util.c.
7261
7262         * Decrease channel statistics count only if the channel
7263           deletion worked.  Affected files are silcd/server.c and
7264           silcd/server_util.c.
7265
7266         * Added silc_server_update_servers_by_server to update origin
7267           of all server entries.  Used during backup router protocol.
7268           Affected files silcd/server_util.[ch], silcd/server.c. and
7269           silcd/backup_router.c.
7270
7271         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
7272           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
7273           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
7274           lib/silccrypt/silchmac.c.
7275
7276 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7277
7278         * Assure that router cannot reroute the same channel message
7279           to the sender.  Affected file silcd/packet_receive.c.
7280
7281 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7282
7283         * Made better checks that the channel message is not sent
7284           to the router it came from.  Affected file is
7285           silcd/packet_send.c.  Fixed memory leak too.
7286
7287         * Announce informations for incoming router connection, but
7288           only after checking if it is replaced by backup router.
7289           Affected file silcd/packet_receive.c.
7290
7291 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7292
7293         * Fixed the backup resuming protocol to work in multiple
7294           router environment.  Affected file silcd/server_backup.c.
7295
7296         * Route packet only to one router in the function
7297           silc_server_packet_send_to_channel.  Affected file is
7298           silcd/packet_send.c.
7299
7300         * Fixed silc_server_send_notify_dest to set the broadcast
7301           flag.  Fixed the silc_server_send_notify_topic to actually
7302           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
7303           Affected file silcd/packet_send.c.
7304
7305         * Changed the SFTP Filesystem interface.  Changed the
7306           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
7307           the filesystem operation function.  The SilcSFTPFilesystem
7308           is now a context that is allocated by all filesystem allocation
7309           functions and it already includes the operations structure
7310           and filesystem specific context.  It is given as argument
7311           now to the silc_sftp_server_start.  This made the interface
7312           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
7313           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
7314
7315 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7316
7317         * Changed the backup router adding and getting interfaces
7318           in the server.  The router that will be replaced by the
7319           specified backup router is now sent as argument.  Affected
7320           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
7321           silcd/server.c.
7322
7323         * Added silc_net_addr2bin_ne to return the binary form of
7324           the IP address in network byte order.  Affected files
7325           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
7326
7327 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7328
7329         * Check for existing server ID in silc_server_new_server
7330           and in silc_server_connect_to_router_final and remove the
7331           old entry if it exists.  Affected file silcd/packet_receive.c,
7332           silcd/server.c.
7333
7334         * Send the channel message always to only one router, either
7335           in upstream or downstream.  Affected file is
7336           silcd/packet_send.c.
7337
7338 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7339
7340         * Wrote the definition of the backup resuming protocol to the
7341           protocol specification.
7342
7343         * Removed one redundant channel key generation from normal
7344           server during joining procedure.  Removed one redundant
7345           channel key sending from server to router during joining
7346           procedure.  Affected file silcd/command.c.
7347
7348         * Made minor bugfixes to the backup router resuming protocol.
7349           Affected file silcd/server_backup.c, server.c.
7350
7351 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7352
7353         * Added --disable-asm configuration option.  Affected files
7354           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
7355           by salo.
7356
7357         * Implemented the backup resuming protocol that is used to
7358           resume the primary router position in the cell after the
7359           primary router comes back online.  Affected files
7360           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
7361           and silcd/server_util.[ch].
7362
7363 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7364
7365         * Sleep two (2) seconds after sending QUIT command to server.
7366           Affected file lib/silcclient/command.c.
7367
7368         * Assure that if outgoing data buffer is pending do not force
7369           send any data.  Affected file silcd/packet_send.c.
7370
7371         * Assure that if outgoing data buffer is pending do not force
7372           send any data.  Affected file lib/silcclient/client.c.
7373
7374         * Implemented the backup router support when the primary router
7375           goes down.  The servers and routers can now use the backup
7376           router as new primary router without loosing connectivity.
7377
7378 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7379
7380         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
7381           in the server to indicate disabled entry.  All data read
7382           from the connection will be ignored and no data is sent
7383           for entry that is disabled.  Affected files are
7384           silcd/idlist.h, silcd/server.c.
7385
7386 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7387
7388         * Created SFTP client and server test programs in the
7389           lib/silcsftp/tests directory.
7390
7391 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7392
7393         * Implemented memory filesystem (virtual filesystem) for
7394           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
7395           sftp_fs_memory.c.
7396
7397 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7398
7399         * Implemented the SFTP (SSH File Transfer Protocol) to the
7400           lib/silcsftp.  It includes SFTP client and SFTP server
7401           implementations.
7402
7403 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7404
7405         * Moved lib/silccore/silcprotocol.[ch] to the
7406           lib/silcutil library.
7407
7408         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
7409           take variable argument list pointer as argument.  Affected
7410           file lib/silcutil/silcbuffmt.[ch].
7411
7412         * Added silc_buffer_set function that is used to set data
7413           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
7414           Affected file lib/silcutil/silcbuffer.h.
7415
7416         * Changed various routines in the core library to use the new
7417           silc_buffer_set instead of allocating new buffer only for
7418           temporary purposes.
7419
7420         * Added 64-bit value formatting and unformatting support to the
7421           silc_buffer_[un]format routines.  Affected file is
7422           lib/silcutil/silcbuffmt.[ch].
7423
7424           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
7425           to includes/bitmove.h.
7426
7427 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7428
7429         * Fixed channel user mode saving in client library.  Affected
7430           file lib/silcclient/command[_reply].c.
7431
7432 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7433
7434         * Defined the file transfer to the SILC Protocol.  Added
7435           new packet type SILC_PACKET_FTP and defined File Transfer
7436           Payload.  The mandatory file transfer protocol is SFTP
7437           (SSH File Transfer Protocol).  Affected file in addition
7438           of the internet draft is lib/silccore/silcpacket.h.
7439
7440         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
7441           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
7442           is used as part of backup router protocol when the primary
7443           router of the cell is back online and wishes to resume
7444           the position as primary router.
7445
7446         * Redefined the MAC generation keys in the protocol.  The
7447           same key is not used anymore in both direction.  Both
7448           direction will now use different keys for sending and
7449           receiving.  This fixes a potential security flaw.  This
7450           change causes incompatibilities in the protocol.
7451
7452         * Redefined also the MAC computation from the packet.
7453           An packet sequence number is now added to the MAC
7454           computation.  This prevents possible replay attacks against
7455           the protocol.  This change too causes incompatibilities
7456           in the protocol.
7457
7458           Added `sequence' field to the SilcPacketContext to hold
7459           the current sequence number for the packet.
7460
7461 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7462
7463         * Added `created' field to the SilcIDListData in the file
7464           silcd/idlist.h to indicate the time when the entry was
7465           created.
7466
7467         * Added `created' field to the SilcChannelEntry too.  Affected
7468           file silcd/idlist.h.
7469
7470         * Added `creation_time' aguments to all the announcement functions
7471           in the server.  If it is provided then only the entries that
7472           was created after the provided time frame are actually
7473           announced.  Affected file silcd/server.[ch].
7474
7475         * The protocol says that the Channel ID's IP address must be
7476           based on the router's IP address.  Added check for this in
7477           the silc_server_new_channel when processing incoming New Channel
7478           Payload.  Affected file silcd/packet_receive.c.
7479
7480         * Print out the correct version with --version in SILC client.
7481           Affected file irssi/src/silc/core/silc-core.c.
7482
7483 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7484
7485         * Fixed WHOWAS command to check for completnes of the client
7486           entry always, not just when the command is coming from client.
7487           Affected file silcd/command.c.
7488
7489         * Added new function silc_server_packet_queue_purge to purge the
7490           outgoing data queue to the network.  After the function returns
7491           it is guaranteed that the outgoing packet queue is empty.
7492           Affected file silcd/packet_send.[ch].
7493
7494         * Purge the outgoing packet queue in the rekey protocol's final
7495           callback to assure that all rekey packets go to the network
7496           before quitting the protocol.  Affected file silcd/server.c.
7497
7498         * Added silc_client_packet_queue_parse as similar function as
7499           in server to the client library.  The affected file is
7500           lib/silcclient/client.c.
7501
7502 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7503
7504         * Splitted silcd/server.c and created silcd/server_util.[ch]
7505           for utility functions.
7506
7507         * Added new socket flag SILC_SF_DISABLED to indicate that the
7508           connection is open but nothing can be sent to or received from
7509           the connection.  Affected file lib/silcutil/silsockconn.[ch].
7510           The checking for disabled socket is checked in the low level
7511           silc_socket_write and silc_socket_read functions.
7512
7513 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7514
7515         * Allow only nicknames and channel names that fits into the
7516           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
7517
7518 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7519
7520         * When processing JOIN command reply in server check that if
7521           the channel exists in our global list we'll move it the local
7522           list.  Affected file silcd/command_reply.c.
7523
7524         * Fixed the check whether client is joined on the channel already
7525           in JOIN command.  Affected file lib/silcclient/command.c.
7526
7527         * Fixed the JOIN command reply to check whether the channel
7528           already exists.  Affected file lib/silcclient/command_reply.c.
7529
7530 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7531
7532         * Added silc_ske_status_string to map the SKE error numbers
7533           to readable strings.  The affected files are
7534           lib/silcske/silcske[_status].[ch].
7535
7536 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7537
7538         * Do not show the private channels on the WHOIS channel list
7539           as it is not allowed by the protocol.  The affected file is
7540           silcd/server.c.
7541
7542 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7543
7544         * Assure that the packet length digged from the actual packet
7545           is something sensible in the silc_packet_decrypt_rest_special
7546           in lib/silccrypt/silcpacket.c.
7547
7548         * Free and NULL the allocated pointer in silc_hmac_alloc if
7549           the HMAC allocation fails.  The affected file is
7550           lib/silccrypt/silchmac.c.
7551
7552         * Print the selected security properties to the log files in
7553           the server.  Affected file silcd/protocol.c.
7554
7555         * Add SKE's reference counter even if calling the completion
7556           callback manually.  Otherwise it goes negative, although it
7557           does not cause any problems.  The affected file is
7558           lib/silcske/silcske.c.
7559
7560         * Remove the client entry with short timeout after giving the
7561           KILL command.  Affected file lib/silcclient/command.c.
7562
7563         * Fixed to send error reply in WHOIS and IDENTIFY commands in
7564           case all found clients are already disconnected (WHOWAS would
7565           found them) in the server.  Affected file silcd/command.c.
7566
7567         * Update the last_receive (time of last data received) to be
7568           updated only when received private or channel message so that
7569           the idle time showed in WHOIS makes more sense.
7570
7571         * Added boolean field `valid' in to the SilcClientEntry in the
7572           client library to indicate whether the entry is valid or not.
7573           This fixes the nickname change bug on channel when changing
7574           the nickname to be same than the old (like nick to Nick) the
7575           nickname formatter doesn't set the new nick anymore to Nick@host.
7576           Affected file lib/silcclient/idlist.[ch].
7577
7578         * Now actually fixed the nickname changing on disconnection.
7579           Added new function silc_change_nick to the Irssi SILC Client.
7580           Affected file irssi/src/silc/core/client_ops.c,
7581           irssi/src/silc/core/silc-nicklist.[ch].
7582
7583 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7584
7585         * Check that the public key exists in the GETKEY command before
7586           trying to encode it.  Affected file silcd/command.c.
7587
7588         * Print some notifications on received public keys with GETKEY
7589           command in the Irssi SILC Client.  Affected files are
7590           irssi/src/fe-common/silc/module-formats.[ch],
7591           irssi/src/silc/core/client_ops.c.
7592
7593         * Use IDENTIFY command to resolve the server information in the
7594           GETKEY command instead of INFO command.  Affected file
7595           lib/silcclient/command.c.
7596
7597         * All command reply functions in the client library now calls
7598           the pending command reply callbacks even if an error has
7599           occurred.  The server has done this a long time and now it was
7600           time to move the client library to this as well.  Now all
7601           errors can be delivered back to the pending command reply
7602           callbacks if necessary.  Affected files are
7603           lib/silcclient/command[_reply].[ch].
7604
7605         * Change the nickname on disconnection back to the username
7606           because in reconnect the server will enforce it to it anyway.
7607           Affected file irssi/src/silc/core/silc-servers.c.
7608
7609         * Fixed a config file parsing bug in the Irssi SILC client.
7610           Affected file irssi/src/silc/core/clientconfig.c.
7611
7612 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7613
7614         * When printing the channel mode on JOIN, verify that the
7615           channel key and channel's HMAC are valid.  Affected file
7616           irssi/src/silc/core/client_ops.c.
7617
7618 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7619
7620         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
7621           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
7622           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
7623
7624         * Removed channel key rekey task deleting from the function
7625           silc_server_save_channel_key.  Affected file silcd/server.c.
7626           Added explicit timeout task context instead that is used to
7627           delete the task if we are registering a new task before the
7628           new task has elapsed.
7629
7630         * When channel key rekey occurs the client library now saves
7631           the old channel key for a short period of time (10 seconds) and
7632           is able to use it in case some is still sending channel
7633           messages encrypted with the old key after the rekey.  Affected
7634           file lib/silcclient/[idlist.h|client_channel.c].
7635
7636 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7637
7638         * Added check to the silc_server_new_id_real to not accept
7639           new ID if it is the sender's own ID.  Affected file is
7640           silcd/packet_receive.c.
7641
7642         * Assure that we do not announce ourself or the one we've
7643           sending our announcements when we're router and are announcing
7644           servers to our primary router.  Affected file silcd/server.c.
7645
7646         * Fixed silc_server_command_identify_check_client to assemble
7647           correct WHOIS packet.  It send corrupted WHOIS packet and
7648           caused problem with router to router connections.  Affected
7649           file silcd/command.c.
7650
7651           Fixed also silc_server_command_whois_check the same way
7652           as for the IDENTIFY command.
7653
7654         * Added new SilcIDListStatus to the server in the SilcIDListData
7655           structure.   The status now includes the current status of
7656           the entry (like registered, resolved etc.).  Affected file
7657           silcd/idlist.[ch].  Defined a bunch of different status types
7658           as well.  This replaced the old boolean registered field as well.
7659
7660           Added resolve_cmd_ident field to the SilcClientEntry structure
7661           too so that if the entry is for example being resolved so
7662           another command may attach to the same pending command reply
7663           without requiring to resolve the same entry again.  This concept
7664           should optimize the WHOIS and the IDENTIFY resolving under
7665           heavy load by taking away unnecessary resolving for entries
7666           that are being resolved already.
7667
7668           Added support for adding multiple pending commands for one
7669           command idenfier.  Affected file silcd/command[_reply].[ch].
7670
7671         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7672           before deleting the data.  Otherwise the hash table will have
7673           freed data in comparison functions.  Affected file is
7674           silcd/command_reply.c.
7675
7676         * Fixed silc_idlist_replace_client_id to add the new entry to
7677           the cache with NULL nickname.  Otherwise there will be invalid
7678           memory as the nickname after the nickname is freed.  Affected
7679           file silcd/packet_receive.c.
7680
7681         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7682           saved into wrong slots because the previous number of entries
7683           was not taken into account.  Affected file silcd/idlist.c.
7684           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7685
7686         * If we are router and we receive JOIN notify to a channel that
7687           does not have any users then notified client is marked as the
7688           channel founder, as it is it.  The affected file is
7689           silcd/packet_receive.c
7690
7691         * Added to the extended hash table API's table_del_*ext functions
7692           the destructor as argument too, so that the caller can decide
7693           which destructor to use or whether to use destructor at all.
7694           Affected file lib/silcutil/silchashtable.[ch].
7695
7696         * Fixed ID Cache purging.  It actually deleted the entries from
7697           the hash table after the data was freed.  The hash table ended
7698           up comparing freed memory.  The affected file is
7699           lib/silccore/silcidcache.c.
7700
7701 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7702
7703         * Fixed Irssi SILC client's KILL command's HELP syntax.
7704
7705         * The USERS command now resolves the detailed user information
7706           if the userinfo field is missing.  Affected file is
7707           lib/silcclient/command_reply.c.
7708
7709         * Do not print error in silc_file_read if the read file does
7710           not exist.  Just silently return NULL.  Affected file is
7711           lib/silcutil/silcutil.c.
7712
7713         * Fixed the silc_log_output to not wine about NULL filename
7714           and to not create some bogus " " filename.  Affected file is
7715           lib/silcutil/silclog.c.
7716
7717 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7718
7719         * Fixed various printing bugs on the user interface in the
7720           Irssi SILC Client.  Minor changes that were forgotten from
7721           the release.
7722
7723 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7724
7725         * Fixed the configure.in.pre and the compilation and distribution
7726           environment to support the new autoconf 2.52.  That version is
7727           now required to compile the CVS trunk.
7728
7729 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7730
7731         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7732           to generally parse user@fqdn format strings.  Affected file
7733           lib/silcutil/silcutil.c.
7734
7735         * Added nickname_format and nickname_force_format fields to the
7736           SilcClientParams structure.  The first one defines the format
7737           for the nicknames that the library will enforce if the receives
7738           multiple same nicknames.  The second one is boolean value and
7739           can be used to force the library to always enforce the format
7740           to the nicknames regardles whether there are multiple nicknames
7741           or not.  This configurable formatting was employed to flexibly
7742           support accessing multiple nicknames from the user interface.
7743           The userinterface can now set the nicknames to what ever format
7744           they prefer.  Affected file lib/silcclient/silcapi.h.
7745
7746           Added function silc_client_nickname_format to the file
7747           lib/silcclient/idlist.c.  It performs the nickname formatting.
7748
7749           Added new field `hostname´ to the SilcClientEntry context.
7750           It holds the hostname of the client.  Affected file is
7751           lib/silcclient/idlist.h.
7752
7753         * Irssi SILC Client sets the nicknames in nick@hostn format.
7754           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7755           irssi/src/silc/core/silc-core.c.
7756
7757           The WHOIS printing now also shows both the real nickname and
7758           the formatted nickname so that user knows how to access the
7759           user if there are multiple same nicknames cached.  Affected
7760           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7761           printing formatting too to take the hostname now as a separate
7762           argument.  The Affected file is
7763           irssi/src/fe-common/silc/modules-formats.[ch].
7764
7765         * Changed the silc_client_get_clients_local to accept the formatted
7766           nickname as argument.  It accepts the real nickname too but the
7767           formatted nickname can be used to find the true entry from
7768           multiple entries.  Affected file lib/silcclient/silcapi.h and
7769           lib/silcclient/idlist.c.
7770
7771         * Added nickname_format_parse field to the SilcClientParams.
7772           It is a callback function provided by the application to parse
7773           the nickname out of the formatted nickname string. The library
7774           calls it to get the nickname from the formatted string. Since
7775           the application generally knows better the format of the nickname
7776           string it parses it instead of the library, even though library
7777           encodes the formatted string.  If the callback function is not
7778           provided then the library will use the string as is.  The
7779           affected file is lib/silcclient/silcapi.h.
7780
7781         * All the nickname strings passed to the client library in
7782           commands are now expected to be formatted nickname strings.
7783           If the command does not support the formatted nickname string
7784           it will assume that the sent string is the actual nickname.
7785           Affected file lib/silcclient/command.c.
7786
7787 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7788
7789         * Added public key authentication support to OPER and SILCOPER
7790           commands in the client library.  Affected file is
7791           lib/silcclient/command.c.
7792
7793 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7794
7795         * Changed the get_auth_methdod client operation to be asynchronous.
7796           It can be async if the application resolves the authentication
7797           method from the server during the negotiation.  Added new
7798           SilcGetAuthMeth completion callback that the application will
7799           call after resolving the authentication method.
7800
7801           Added function silc_client_request_authentication_method that
7802           the application can use to resolve the authentication method
7803           from the server.  Added also SilcConnectionAuthRequest callback
7804           that the library will call after the server has replied.  The
7805           application can call this function if it does not know the
7806           current authentication method.
7807
7808           Affected files are lib/silcclient/client.c and
7809           lib/silcclient/silcapi.h.
7810
7811         * The Irssi SILC client now automatically resolves the authentication
7812           method incase any configuration information is not present (and
7813           currently there never is).  The affected file is
7814           irssi/src/silc/core/client_ops.c.
7815
7816         * Fixed public key authentication from the client library.
7817           Affected file lib/silcclient/protocol.c.  Changed also the
7818           protocol specification about the public key authentication in
7819           the connection authentication protocol.  The actual data to be
7820           signed is now computed with a hash function before signing.
7821
7822         * Fixed the public key authentication from the server as well.
7823           Affected file silcd/protocol.c.
7824
7825         * Removed the mlock()'s from the memory allocation routines.
7826           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7827           not check anymore for the mlock().  Affected file is
7828           configure.in.pre.
7829
7830         * Fixed USERS command in server to allow the execution of the
7831           command for private and secret channels if the client sending
7832           the command is on the channel.  Affected file silcd/command.c.
7833
7834         * Fixed silc_client_get_clients_local to return the clients
7835           count correctly.  It could return wrong value.  Affected file
7836           lib/silcclient/idlist.c.
7837
7838 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7839
7840         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7841           types.  The assembler optimizations seemed not to like 64-bit
7842           data types.  The assmebler optimizations thus are now enabled
7843           also for BSD systems as opposed to only enable them for Linux.
7844
7845         * Do not check for threads at all on BSD systems.  Affected
7846           file configure.in.pre.
7847
7848         * Removed -n and -h options from the Irssi SILC Client since
7849           they are not used in silc.
7850
7851         * Fixed the prime generation to assure that the first digit
7852           of the generated random number is not zero since our conversion
7853           routines does not like number strings that starts with zero
7854           digit.  If zero digit is seen the random number is regenerated.
7855           This caused some corrupted RSA keys when the zero first digit
7856           was met.  Affected file lib/silcmath/silcprimegen.c.
7857
7858 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7859
7860         * Fixed WIN32 configuration in the ./configure script.
7861           Fixed to include xti.h on environments that has it.
7862           Patches by Carsten Ilchmann and andrew.
7863
7864 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7865
7866         * Changed the silc_id_create_client_id to be collision
7867           resistant.  It is now assured that there cannot be created
7868           two same client ID's.  I suspect that some weird bugs in
7869           the server were actually caused by duplicate Client IDs.
7870           Affected file silcd/serverid.[ch].  A router receiving
7871           new ID now also assures and informs the sending server
7872           if the ID caused collision.
7873
7874         * Changed the silc_id_create_channel_id to also assure that
7875           there are no collisions.
7876
7877 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7878
7879         * Statement about ignoring the Mutual Authentication flag when
7880           performing rekey with PFS was a bit misleading.  It is ignored
7881           if it was set in the initial negotiation, it cannot be even
7882           set in the rekey.  Fixed in the ke-auth draft.  Started the
7883           new versions of the protocol drafts in the doc/.
7884
7885 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7886
7887         * Fixed a bug in silc_client_command_identify_save when saving
7888           new channel information.  The channel name was no duplicated
7889           and caused crash on exit.  Affected file is
7890           lib/silcclient/command_reply.c.
7891
7892 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7893
7894         * Fixed the getkey command handling in the server.  Send just
7895           empty OK reply to the sender if the key could not be fetched
7896           (but everything else was ok, like the key just was not available).
7897           Changed the public key parameter to optional in the protocol
7898           specs so that empty OK reply can be sent.  Affected file
7899           silcd/command.c.
7900
7901           Added a message to Irssi SILC client to tell to user if the
7902           server did not return a public key.
7903
7904 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7905
7906         * Fixed a channel key regeneration bug.  It registered new
7907           timeout tasks exponentially until all system resources were
7908           used.  Affected file silcd/server.c.
7909
7910 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7911
7912         * Added the SILC Document generator to the scripts/silcdoc.
7913           It can be used to generate the Toolkit Reference Manual out
7914           of the source tree.  Internally it will also use the RoboDoc
7915           generator now imported in util/robodoc.
7916
7917 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7918
7919         * Added couple of return's in rekey protocol if error orccurred
7920           during the protocol.  The execution must be terminated.
7921           Affected file silcd/protocol.c.  Also, terminate the protocol
7922           always with timeout.
7923
7924 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7925
7926         * The client's Client ID was created initally from the wrong
7927           nickname (it could have been in format nick@host) in the
7928           silc_server_new_client.  Affected file silcd/packet_receive.c
7929
7930 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7931
7932         * Added some SILC_LOG_ERROR's to various error conditions
7933           if client could not be added to ID cache.  Affected files
7934           silcd/packet_receive.c and silcd/server.c.
7935
7936         * When client's sock->user_data is freed, NULL also the
7937           client->router and client->connection pointers.  Added check
7938           for these pointers being NULL to various places around the
7939           code.  Affected file silcd/server.c.
7940
7941         * Added client->data.registered == TRUE checks to various
7942           places around the code to assure that unregistered client's
7943           are not handled when it is not allowed.  Affected file
7944           silcd/server.c.
7945
7946         * Added `bool registered' fields to all
7947           silc_idlist_[server|client]_get_* routines to indicate whether
7948           the fetched client needs to be registered or not.  Affected
7949           file silcd/idlist.[ch].
7950
7951         * Add your own entry as registered to the ID cache in the
7952           server.  Affected file server.c.
7953
7954         * Fixed a bug in silc_server_new_server.  The SilcServer was
7955           set as the new server's context instead of SilcServerEntry.
7956           This naturally caused some weird bugs.
7957
7958         * Added "updated" field the SilcChannelEntry which indicates
7959           the time since the channel entry was last accessed.  This
7960           can be used to determine whether it is necessary to
7961           announce the channel after backup resuming protocol.
7962           Affected files silcd/idlist.[ch].
7963
7964 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7965
7966         * Do not delete the channel rekey task when adding it
7967           for in silc_server_create_channel_key.
7968
7969         * Changed the silc_server_create_channel_key to return
7970           TRUE or FALSE to indicate the success of the channel key
7971           creation.
7972
7973 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7974
7975         * Fixed MSVC++ project files and added missing files to
7976           Makefiles under win32/.
7977
7978 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7979
7980         * Do not add TCP_NODELAY flag if the operating system
7981           does not have it defined.  Affected files are
7982           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7983
7984         * Fixed buffer overflow from Irssi SILC Client.  Affected
7985           file irssi/src/fe-common/core/themes.c.
7986
7987         * Fixed double free in client library in the file
7988           lib/silcclient/client.c when disconnecting from server.
7989
7990         * Applied double free patch from cras to Irssi SILC client.
7991           Affected files irssi/src/core/[modules/expandos].c
7992
7993         * Fixed the disconnection handling to Irssi SILC Client.
7994           The application must call silc_client_close_connection
7995           in ops->connect client operation in case of failure of
7996           the connection.  Affected file is
7997           irssi/src/silc/core/client_ops.c.
7998
7999         * Do not set sock->protocol to NULL in the function
8000           silc_client_close_connection after executing the protocol's
8001           final callback since the sock might not be valid anymore.
8002           Affected file lib/silcclient/client.c.
8003
8004 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8005
8006         * Do not enable SILC_THREADS if the linking with libpthread
8007           did not happen.  Affected file configure.in.pre.
8008
8009         * Added notion to protocol specification that server must
8010           verify the sent authentication payload with CMODE when
8011           setting the channel founder key.  Implemented it to the
8012           server.  Affected file silcd/command.c.
8013
8014 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8015
8016         * Added _EXTRA_DIST SILC distribution variable to the
8017           distributions file.  It is used to conditionally add extra
8018           files or directories to the specific distribution.  Affected
8019           files ./prepare, Makefile.am.pre and distributions.
8020
8021           Removed the `_' from the start of the distribution names.
8022           It is redundant.
8023
8024         * Added README.WIN32 for instructions to compile the Toolkit
8025           under WIN32.
8026
8027 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8028
8029         * Fixed a double free in disconnection in the server.  Affected
8030           file is silcd/server.c.
8031
8032         * Fixed the lib/silcske/groups.c to work now also with GMP
8033           MP library.  The string conversion did not work when using
8034           specific base and the base is indicated in the string as well.
8035
8036         * Created win32/ directory which now includes MSVC++ specific
8037           stuff so that toolkit (DLLs) may be compiled with MSVC++.
8038           It will appear only in the toolkit distribution
8039
8040 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8041
8042         * Changed the key material distribution function in case when
8043           the hash output is too short.  The data is now concatenated
8044           a bit differently than it used to.  Made the change to the
8045           SKE protocol specification.
8046
8047         * Added better GMP detection to configure.in.pre.  A patch
8048           by salo.
8049
8050 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8051
8052         * Fixed a minor bug in SKE that might cause some problem on
8053           some platforms.  Affected file lib/silcske/silcske.c.
8054
8055         * Added the cookie checking for initiator in the SKE.  It checks
8056           that the responder returns the sent cookie unmodified.  The
8057           affected file is lib/silcske/silcske.c.  Added new SKE
8058           error type INVALID_COOKIE that can be sent during the
8059           negotiation.  Fixed some memory leaks as well.
8060
8061         * Added the "invalid cookie" error message to Irssi SILC client's
8062           message formats.
8063
8064 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8065
8066         * Added `task_max' field to the SilcClientParams to indicate
8067           the maximum tasks the scheduler can handle.  If set to zero,
8068           default values are used.  Affected file lib/silcclient/silcapi.h.
8069
8070         * Fixed memory leaks in silc_client_close_connection.  Affected
8071           file lib/silcclient/client.c.
8072
8073         * Added silc_client_del_client_entry to client library to free
8074           all memory of given client entry.  Affected file is
8075           lib/silcclient/idlist.[ch].
8076
8077         * Added new functions silc_client_del_channel and
8078           silc_client_del_server to delete channel and server entries.
8079           Affected file lib/silcclient/[silcapi.h/idlist.c].
8080
8081         * Removed silc_client_del_client_by_id from silcapi.h.
8082
8083         * Fixed the INFO command to return the server's own info
8084           correctly when querying by Server ID.  Affected file is
8085           silcd/command.c.
8086
8087 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8088
8089         * Removed the non-blocking settings in WIN32 code in the
8090           silc_sock_[read/write] and added SleepEx instead.  Affected
8091           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
8092           of input data is now checked with FIONREAD and ioctlsocket.
8093
8094 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8095
8096         * Call silc_schedule_task_del_by_context in the
8097           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
8098           Affected file lib/silccore/silcprotocol.c.
8099
8100         * Call silc_protocol_cancel for active protocols in the
8101           silc_server_close_connection if the funtion
8102           silc_server_free_sock_user_data has not been called.
8103           Affected file silcd/server.c.
8104
8105         * Generic tasks cannot be deleted using the del_by_fd
8106           task deleting function since generic tasks does not match
8107           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
8108
8109         * Added a notion to SILCOPER help file that the SILCOPER works
8110           only on router server, not on normal server.
8111
8112 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8113
8114         * Added for WIN32 support for the new scheduler as well.
8115           Affected file lib/silcutil/win32/silcwin32schedule.c.
8116
8117         * Fixed the SHA1 implementation to work on various platforms.
8118
8119 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8120
8121         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
8122           API.  It is part of the scheduler now.  Everything else is
8123           as previously but some functions has changed their names.
8124           Checkout the lib/silcutil/silcschedule.h for the interface.
8125           Updated all applications to use the new interface.  Affected
8126           files are lib/silcutil/silcschedule.[ch].
8127
8128 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8129
8130         * Found a bug in the SKE implementation.  The HASH value,
8131           specified by the protocol, was not computed correctly.  The
8132           public key of the responder was not added to the computation
8133           even though it is mandatory.  Affected file lib/silcske/silcske.c.
8134           This unfortunately causes incompatibilities with older
8135           clients and servers.
8136
8137         * Added WIN32 specific network init and uninit functions:
8138           silc_net_win32_init and silc_net_win32_uninit to init and uninit
8139           the Winsock2.  Affected file lib/silcutil/silcnet.h and
8140           lib/silcutil/win32/silcwin32net.c.
8141
8142         * Set the socket always to nonblocking mode on WIN32 after
8143           reading data or writing data.  Affected file is
8144           lib/silcutil/win32/silcwin32sockconn.c.
8145
8146 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8147
8148         * Fixed various compilation problems under WIN32.  Affected
8149           files lib/silcutil/win32/silcwin32thread.c and
8150           lib/silcutil/win32/silcwin32schedule.c.
8151
8152         * Removed all _internal.h #includes from public header
8153           files.  Internal headers must never be included from
8154           public headers.
8155
8156           Removed also the lib/silcske/payload_internal.h file.
8157
8158         * All include files that may be needed (public and some others
8159           included by the public headers) by application developers are
8160           now copied to the ./includes directory.  It does not copy any
8161           internal headers.  Affected file Makefile.defines.pre and all
8162           Makefile.am's under lib/ and subdirs.
8163
8164 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8165
8166         * Do not change the ~/.silc directory's permissions automatically.
8167           Affected file irssi/src/silc/core/clientutil.c.
8168
8169 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8170
8171         * Do not cancel the protocol in silc_server_close_connection
8172           it might cause recursion.  Now cancelled in the function
8173           silc_server_free_sock_user_data.  Affected file silcd/server.c.
8174
8175         * Fixed the silc_server_remove_clients_by_server to regenerate
8176           the channel keys correctly finally.  Added also new function
8177           silc_server_remove_clients_channels to actually do it.
8178           Affected file silcd/server.c.
8179
8180         * Fixed the silc_server_new_channel to not crash by giving
8181           wrong router to the new channel.  Affected file is
8182           silcd/packet_receive.c.
8183
8184 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8185
8186         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
8187           which is given as argument to the silc_client_alloc now.
8188           It can be used to configure the client and set various parameters
8189           that affect the function of the client.
8190
8191         * The USERS command in server did not check whether the channel
8192           is private or secret.  Affected file silcd/command.c.
8193
8194         * Added new argument to the USERS command in protocol specification.
8195           The USERS command now can take the channel name as argument
8196           as well.  Added support for this in client and server and
8197           updated the protocol specs.
8198
8199         * Completed the GETKEY command in client. It can be now used
8200           to fetch also servers public key not only some clients.
8201           Affected files lib/silcclient/command[_reply].c.
8202
8203         * Added silc_client_get_server to return server entry by the
8204           server name.  Affected files lib/silcclient/silcapi.h and
8205           idlist.c.
8206
8207         * Redefined the IDENTIFY command in protocol specification to be
8208           more generic.  It now can be used to query information about
8209           any entity in the SILC Network, including clients, servers and
8210           channels.  The query may be based either the entity's name
8211           or the ID.  Added support for this in both client and server.
8212
8213           Affected files silcd/command.c and lib/silcclient/command.c
8214           and command_reply.c.
8215
8216         * Optimized the WHOIS and WHOWAS commands in the server. Removed
8217           the _from_client and _from_server functions.  Affected file
8218           silcd/command.c.
8219
8220         * Added silc_client_get_channel_by_id_resolve to the file
8221           lib/silcclient/silcapi.h to resolve channel information by
8222           its ID.  Added also silc_client_get_channel_by_id that
8223           does not resolve it from the server.
8224
8225 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8226
8227         * Added SilcServerEntry context into the client library
8228           to represent one server.  The INFO command now allocates
8229           these to save the resolved server info.  For now on the
8230           client library will also keep information about servers,
8231           connected and resolved with INFO.
8232
8233           The INFO command now allocates the SilcServerEntry context
8234           and saves the server info there.  The COMMAND_REPLY in
8235           the INFO now returns the parameters to application in
8236           same order as defined in the protocol specification.
8237
8238           The entries are cached in the client->server_cache.
8239
8240         * The INFO command is now issued after received the Client ID
8241           from the server.  Affected file lib/silcclient/client.c.
8242
8243         * The CMODE_CHANGE notify may now return also an SilcServerEntry
8244           to the application as the mode changer might be server.
8245           It is guaranteed that NULL is not returned anymore to the
8246           application.  Affected file lib/silcclient/client_notify.c.
8247
8248           The ID Type is now also passed to the application so that
8249           it can check whether the returned entry is SilcClientEntry
8250           or SilcServerEntry.
8251
8252           Added new function silc_client_get_server_by_id to return
8253           the server entry by ID.  Affected files are the
8254           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
8255
8256         * Do not create the channel in the Irssi SILC Client when issuing
8257           the JOIN command but when received the sucessful JOIN command
8258           reply.  Otherwise the channel might get created even though we
8259           could not join it.  The Affected file is
8260           irssi/src/silc/core/[silc-channels.c/client_ops.c].
8261
8262         * Fixed a channel joining bug in router.  The router must also
8263           check the channel modes, invite and ban lists etc. when serving
8264           the JOIN command sent by normal server.  Affected file is
8265           silcd/command.c.  The router now resolves the client's
8266           information from the server who sent the JOIN command if it
8267           does not know it, and processes the JOIN command only after
8268           that.
8269
8270         * Changed the SilcCommandCb to take new argument; void *context2.
8271           Affected file lib/silccore/silccommand.h
8272
8273           The second argument in the command callbacks in the server now
8274           includes the SilcServerCommandReplyContext if the command was
8275           called as pending command callback from the command reply.
8276           Otherwise it is NULL. When called as pending the status of the
8277           command reply will be checked and if it was erronous the
8278           error will be sent to the original sender of the command.
8279           This way the client always receives the error messages even
8280           though the server was actually the one who received the error
8281           when it resent the command to router, for example.  Affected
8282           files silcd/command[_reply].[ch].
8283
8284         * Fixed sending WHOWAS command's error message to client if
8285           the requested client could not be found.  It was missing.
8286           silcd/command.c.
8287
8288         * Changed the CMODE and CUMODE commands reply arguments in the
8289           protocol specification.  The Channel ID is now sent in both
8290           of the commands to identify the channel.  Implemented this
8291           new feature to the client and server.  Affected files
8292           lib/silcclient/command_reply.c and silcd/command.c.
8293
8294         * Made better checks for invite and ban lists in the JOIN
8295           command in server.  Affected file silcd/command.c.
8296
8297 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8298
8299         * The server now performs the incoming host IP/DNS lookup
8300           using the silc_socket_host_lookup and thus does not block
8301           the server anymore.  Affected file silcd/server.c.
8302
8303         * Completed the multi-thread support for SILC Scheduler in
8304           the lib/silcutil/silcschedule.c.
8305
8306         * Fixed the configure.in.pre to detect the pthread correctly
8307           on various systems.
8308
8309         * Fixed a deadlock in silc_task_queue_wakeup in the file
8310           lib/silcutil/silctask.c.
8311
8312 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8313
8314         * Added new function silc_schedule_wakeup that is used in
8315           multi-threaded environment to wakeup the main thread's
8316           schduler. It needs to be used when a thread adds a new task
8317           or removes a task from task queues. After waking up, the
8318           scheduler will detect the task queue changes. If threads
8319           support is not compiled in this function has no effect.
8320           Implemented the wakeup mechanism to both Unix and WIN32
8321           systems.  Affected files are lib/silcutil/silcschedule.[ch],
8322           lib/silcutil/unix/silcunixschedule.c and the
8323           lib/silcutil/win32/silcwin32schedule.c.
8324
8325         * Added new function silc_task_queue_wakeup to wakeup the
8326           scheduler by the specified task queue.  Affected file
8327           lib/silcutil/silctask.[ch].
8328
8329         * The silc_socket_host_lookup_start now wakes up the scheduler
8330           after adding the timeout task.  Affected file is
8331           lib/silcutil/silcsockconn.c.
8332
8333         * The silc_socket_host_lookup is synchronous now if the threads
8334           support is not compiled in.  However, the callback is still
8335           called asyncronously through the scheduler, anyway.  Affected
8336           file lib/silcutil/silcsockconn.c.
8337
8338 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8339
8340         * Added new function silc_socket_host_lookup to perform
8341           asynchronous IP and FQDN lookups for the socket connection.
8342           Affected files lib/silcutil/silcsockconn.[ch].
8343
8344 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8345
8346         * Added SILC_MUTEX_DEFINE to define the mutex on environments
8347           that may or may not compile the mutex support in.
8348
8349           Changed the silc_mutex_alloc interface. It allocates the
8350           mutex now to the sent pointer and returns TRUE or FALSE.
8351
8352           Affected file lib/silcutil/silcmutex.h.
8353
8354         * Wrote the SILC Task Queue interface to support multi-threads.
8355           Affected file lib/silcutil/silctask.[ch].
8356
8357         * Wrote the SILC Scheduler to support multi-threads.  Affected
8358           file lib/silcutil/silcschedule.c.
8359
8360 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8361
8362         * Implemented the SILC Mutex API and SILC Thread API for WIN32
8363           in lib/silcutil/win32/.
8364
8365 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8366
8367         * Defined SILC Mutex API and SILC Thread API and implemented
8368           them for Unix.  Affected files are
8369           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
8370           lib/silcutil/unix/silcunixmutex.c and
8371           lib/silcutil/unix/silcunixthread.c.
8372
8373 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8374
8375         * Fixed the silc_server_remove_clients_by_server's channel
8376           key re-generation.  The hash table handling was incorrect
8377           and would not work with many channels.  Affected file is
8378           silcd/server.c.
8379
8380         * Fixed some memory leaks around the server code.
8381
8382         * Rewrote the silc_server_get_users_on_channel to support IPv6
8383           based Client ID's.  Affected file silcd/server.c.
8384
8385         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
8386           specification.  However, a separate document must be written
8387           to define the detailed signing procedure and the payload
8388           associated with the flag.  Defined the flag to the
8389           lib/silccore/silcchannel.h as well.
8390
8391 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8392
8393         * Changed the dynamic tables to static size tables in the
8394           lib/silccrypt/silchmac.c.
8395
8396         * Removed GCC dependencies from the code.  A patch by cras.
8397
8398 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8399
8400         * Do not show the error "Error receiving packet bla bla"
8401           in server if it really was not an error (-2 means that reading
8402           is pending).  Affected file silcd/server.c.
8403
8404 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8405
8406         * Fixed a possible crash in silc_server_remove_clients_by_server
8407           in silcd/server.c.  Fixed there also some memory leaks.
8408
8409         * Fixed the silc_idlist_replace_client_id.  It could replace
8410           wrong key in the hash table.  Affected file silcd/idlist.c.
8411
8412         * Do not check whether there are global users on the channel
8413           if the channel->global_users is FALSE.  Affected functions
8414           silc_server_remove_from_one_channel and
8415           silc_server_remove_from_channels in silcd/server.c.  Also,
8416           do not check if the removed client is local as we can be
8417           sure that global client was not removed from the channel
8418           and checking for global users is not needed.
8419
8420         * The silc_server_remove_clients_by_server now re-generates
8421           the channel keys correctly for those channels that had
8422           clients removed from them.  Affected file silcd/server.c.
8423
8424 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8425
8426         * Found the reason of random crashes in the server.  We weren't
8427           ignoring the SIGPIPE signal (which can be sent in write())
8428           and it crashed the server.  Affected file silcd/silcd.c.
8429
8430 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8431
8432         * Assure that sock->user_data is not NULL in the function
8433           silc_server_packet_send in silcd/packet_send.c.
8434
8435         * Disconnect the remote connection if it could not be added
8436           to any ID lists in the server.  The affected file is
8437           silcd/server.c.
8438
8439         * Check in silc_server_packet_send[_real/dest] that the
8440           socket is not disconnecting and ignore the data if it is.
8441           Affected file silcd/packet_send.c.
8442
8443         * Define inline to __inline on native WIN32 compilation.
8444           Affected file includes/silcwin32.h.
8445
8446         * Added some explicit type casts for inline code since MSVC
8447           require them.  Affected files lib/silcutil/silcbuffer.h,
8448           lib/trq/silcdlist.h and lib/trq/silclist.h.
8449
8450         * Print warning in log files from now on if the packet
8451           decryption fails.  Affected file silcd/server.c.
8452
8453 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8454
8455         * Changed the `say' client operation's interface to accept
8456           new `type' argument to indicate the type of the message sent
8457           by the library.  The application may filter the library's
8458           messages according the type.  The affected file is the
8459           lib/silcclient/silcapi.h.
8460
8461         * Added two new functions to lib/silcclient/silcapi.h:
8462           silc_client_del_client and silc_client_del_client_by_id.
8463           Affected file lib/silcclient/idlist.c.
8464
8465         * Moved the clientincludes.h from includes/ to silc/ and
8466           serverincludes.h from includes/ to silcd/.
8467
8468         * The modes for the CMODE and CUMODE are now passed as
8469           uint32 for application with COMMAND_REPLY.  The affected
8470           file is lib/silcclient/command_reply.c.
8471
8472 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8473
8474         * /WHOIS without arguments shows client's own information.
8475           Affected file lib/silcclient/command.c.
8476
8477         * Changed PING to not accept any arguments.  The specs
8478           says that client can ping only the connected server so
8479           requiring an argument is not needed.  Affected file is
8480           lib/silcclient/command.c.
8481
8482 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8483
8484         * Fixed a fatal bug in private message sending and reception
8485           encryption and decryption when using private message keys.
8486           The implementation was incorrect and did not follow the
8487           specification.  It causd that some of the message were
8488           lost since it did not use the sending and receiving keys
8489           as the protocol suggests.  This has been fixed and will cause
8490           incompatibilities with older clients when sending private
8491           message encrypted with private message keys.  Affected files
8492           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
8493           and various other in Irssi SILC Client.
8494
8495           Added `responder' boolean argument to the functions
8496           silc_client_add_private_message_key[_ske] to indicate when
8497           the key is added as responder or initiator of the key
8498           negotiation.
8499
8500 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8501
8502         * Removed the silc_ske_check_version function and created
8503           a SilcSKECheckVersion callback.  Added also a function
8504           silc_ske_set_callbacks that is now used to set all SKE
8505           callbacks.  The callback functions are not given to
8506           the SKE functions anymore, but this function is used to
8507           set the callbacks.
8508
8509         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
8510
8511         * Added `silc_version' argument to the silc_client_alloc
8512           to define the version of the application for the library.
8513           The library will use the version string to compare it
8514           against the remote host's (usually a server) version
8515           string.  Affected file lib/silcclient/silcapi.h
8516
8517         * Added the KE protocol context to Key Agreement context
8518           in client library so that we can abort the SKE if it
8519           is in process when we get timeout.  Affected file is
8520           lib/silcclient/client_keyagr.c.
8521
8522         * Do not resolve the client ID forever if it returns in the
8523           first time that such client does not exist.  This was done
8524           for example with private message.  Affected file is
8525           lib/silcclient/client_prvmsg.c.
8526
8527 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8528
8529         * Do not add regex.h for WIN32.  The affected file
8530           includes/silcincludes.h.
8531
8532         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
8533           not work yet 100%.  It generates the DLL's automatically
8534           when compiling with --with-win32 under cygwin.
8535
8536 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8537
8538         * lib/contrib/regex.c is not compiled on WIN32.
8539
8540         * Added silc_net_get_socket_opt function to the
8541           lib/silcutil/silcnet.h.
8542
8543         * Added includes/silcwin32.h for WIN32 specific includes
8544           and definitions.
8545
8546         * Do not use ptime structure or any of the posix process
8547           functions on WIN32 in lib/silccrypt/silrng.c.
8548
8549         * Added silc_gettimeofday to provide generic function
8550           for struct timeval on all platforms.  Added the function
8551           to lib/silcutil/silcutil.h.
8552
8553 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8554
8555         * Moved the lib/silccore/silcsockconn.[ch] to the utility
8556           library as they clearly belong there.  As a plus side we
8557           can make the actual socket connection routines platform
8558           specific.
8559
8560           Added also new generic function silc_socket_read and
8561           silc_socket_write (that used to be silc_packet_[read/write].
8562           The implementation of these are platform specific.
8563
8564         * Added WIN32 specific routines of silc_socket_[read/write]
8565           to lib/silcutil/win32/silcwin32sockconn.c.
8566
8567 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8568
8569         * Added preliminary support for native WIN32 compilation under
8570           cygwin (using the -mno-cygwin option for GCC) to the
8571           ./configure.in.pre.  The --with-win32 now prepares the
8572           compilation for native WIN32.
8573
8574         * Rewrote the SILC Scheduler interface in the file
8575           lib/silcutil/silcschedule.h.  The scheduler is now context
8576           based and does not have anymore any global static scheduler.
8577           Moved the Unix scheduler to the lib/silcutil/unix/ directory
8578           and created lib/silcutil/win32 directory for WIN32 based
8579           scheduler.
8580
8581         * Added Unix specific network routines to the
8582           lib/silcutil/unix/silcunixnet.c and the old
8583           lib/silcutil/silcnet.c includes now only generic routines.
8584
8585           Added WIN32 specific network routines to the
8586           lib/silcutil/win32/silcwin32net.c.
8587
8588         * Added Unix specific utility functions from the
8589           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
8590
8591         * Added WIN32 SILC Scheduler to the file
8592           lib/silcutil/win32/silcwin32schedule.c. The code is of course
8593           untested.
8594
8595 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8596
8597         * Do not handle JOIN notify in the server if the target client
8598           is not registered (idata->registered == FALSE).  The affected
8599           file is silcd/packet_receive.c.
8600
8601         * Update the nickrec->founder in event_cumode in the Irssi SILC
8602           client.  Affected file irssi/src/silc/core/silc-channels.c.
8603
8604         * Fixed the CUMODE_CHANGE notify handling in the server when
8605           server and router are announcing their clients on channels.
8606           Now the mode changes are saved and notified correctly.  The
8607           affected file is /silcd/packet_receive.c.
8608
8609         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
8610           They really did not replace the cache entry in the ID Cache.
8611           Now they do that.  Affected file silcd/idlist.c.
8612
8613         * Fixed the KICK notify handling in the Irssi SILC client to
8614           update the channel records so that the kicked client does not
8615           appear to be on the channel.  The affected file is
8616           irssi/src/silc/core/silc-channels.c.
8617
8618         * Always update the conn->current_channel when executing command
8619           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
8620
8621         * Fixed the KILL notify handling in Irssi SILC client to remove
8622           the killed client on all channels.
8623
8624 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8625
8626         * Fixed the silc_parse_command_line to remove extra spaces
8627           from the start and end of the arguments.  Affected file is
8628           lib/silcutil/silcutil.c.
8629
8630         * Cancel and free any active protocol in the function
8631           silc_server_close_connection.  Affected file silcd/server.c.
8632
8633         * Cancel and free any active protocol in the function
8634           silc_client_close_connction.  Affected file is
8635           lib/silcclient/client.c.
8636
8637         * Do not execute the KILL command for clients that are in
8638           history (ie. they are not in the network).  Affected file is
8639           silcd/command.c.
8640
8641         * Fixed KILL notify handling, client does not crash anymore.
8642           Affected file irssi/src/silc/core/silc-channels.c.
8643
8644         * Reduced the default packet buffer size from 2048 to 1024 in
8645           lib/silccore/silcpacket.c.
8646
8647         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
8648           counter to the SKE context that is incresed when the SKE library
8649           performs async operation outside the library.  If the outside
8650           process frees the SKE context and FREED status will be set
8651           and the library will detect after the sync operation that the
8652           libary is freed.  The affected files are
8653           lib/silcske/silcske[_status].[ch].
8654
8655         * Resolve the client entry information in the function
8656           silc_client_channel_message to assure that NULL pointer is not
8657           passed as client entry to the application. */
8658
8659         * Fixed the task timeout calculation to assure that there is
8660           never negative timeouts.  The affected file is
8661           lib/silcutil/silcschedule.c.
8662
8663         * Fixed the channel user mode notification sending in server.
8664           It was sent point-to-point to the router (or to server by router)
8665           but it needs to be destined to a channel.  The routines now
8666           supports sending the channel user mode notifys to the channels
8667           when announcing clients and channels.  Affected files are
8668           silcd/server.c and silcd/packet_receive.c.
8669
8670         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8671           It did not actually replace the old channel entry in the cache.
8672           Affected file lib/silcclient/client_notify.c.
8673
8674 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8675
8676         * Fixed a possible crash in silc_packet_send_prepare.  It now
8677           assures always that there is enough space in the buffer and
8678           at the tail area of the buffer (for MAC).
8679
8680           Fixed the inbound buffer reallocation in silc_packet_read.
8681           It was old code and did not handle the reallocation correctly.
8682           Affected
8683
8684           The affected file is lib/silccore/silcpacket.c.
8685
8686         * Fixed buffer overflow in silc_parse_nickname in the file
8687           lib/silcutil/silcutil.c.
8688
8689 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8690
8691         * make install generates new server keys only if there is not
8692           keys already.
8693
8694 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8695
8696         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8697           Added check that if the NOREPLY is set then we will not send
8698           the away message.  This avoids infinite loop of away messages
8699           if both clients are away.  The affected file is
8700           lib/silcclient/client_prvmsg.c.
8701
8702         * Fixed client crash if /NICK was given without arguments.
8703           Affected file lib/silcclient/command.c.
8704
8705         * Server does not send the invite list in INVITE command back
8706           to the client if the list was not altered.  Added this notion
8707           to the protocol spec as well.  Affected file silcd/command.c.
8708
8709           Fixed possible crash in INVITE command by checking the
8710           value of silc_server_get_client_route command.
8711
8712         * Fixed the INVITE notify type handling.  The arguments are now
8713           taken in correct order and client does not crash.  The affected
8714           file is irssi/src/silc/core/silc-channels.c.
8715
8716           Removed the "Inviting xxx to channel" message from the
8717           client library away and let the application handle it.
8718           Affected file lib/silcclient/command.c.  Added that message
8719           to Irssi SILC client's message formats.
8720
8721         * Fixed CMODE command crash in client.  It now checks the
8722           amount of arguments correctly and does not crash.  The affected
8723           file is lib/silcclient/command.c.
8724
8725         * Do not create new channel automatically in silc_channels_join
8726           but check whether the channel by that name already exists.
8727           Affected file irssi/silc/core/silc-channels.c.
8728
8729         * Do not send the SERVER_SIGNOFF to router if the disconnected
8730           entity was the router.  Affected file silcd/server.c.
8731
8732         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8733           SILC client as it was missing from there.
8734
8735           Added the handling of the KICK notify to the Irssi SILC client
8736           as it was missing.  Added "you have been kicked" message to
8737           Irssi SILC client's message modules formats.
8738
8739           Added the handing of the KILL notify to the Irssi SILC client
8740           as it was missing.  Added the kill message module formats
8741           as well.
8742
8743           The affected file is irssi/src/silc/core/silc-channels.c.
8744
8745         * The router did not save the channel mode the server announced.
8746           Affected file silcd/packet_receive.c.
8747
8748         * Fixed a possible crash in INFO command in server.  If the
8749           server did not provide the server info it crashed.  Affected
8750           file silcd/command.c.
8751
8752 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8753
8754         * Fixed the GETKEY command in the server to check also the
8755           global list.  Otherwise the GETKEY would not work correctly
8756           in normal SILC server.  Affected file silcd/command.c.
8757
8758 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8759
8760         * Fixed GETKEY crash, it crashed if the command did not succseed.
8761
8762 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8763
8764         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8765           is now real and not just an macro interface to GMP.
8766
8767           Removed the entire GMP from the source tree and imported new
8768           NSS MPI library instead.  Reason for removing GMP is that it is
8769           extremely large and compiles extremely slow.  The NSS MPI
8770           is only a few files and compiles in less than 10 seconds.
8771           The speed is also about the same as GMP.  The MPI is imported
8772           to lib/silcmath/mpi.
8773
8774           If the system has GMP installed we will still use the GMP.
8775           If it is not then the NSS MPI will be compiled.
8776
8777 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8778
8779         * Merged a long nickname (127 characters long) crash bugfix from
8780           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8781
8782         * Merged a freed memory reference bugfix from Irssi CVS tree.
8783           Affected file irssi/src/core/commands.c.
8784
8785 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8786
8787         * Added the server's public key sving and verification to the
8788           server when performing the SKE.  This was missing and the
8789           remote server's (or router's) public key was accepted without
8790           checking whether we have it previously or trust it at all.
8791           Affected file silcd/protocol.c.
8792
8793 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8794
8795         * Check in the silc_server_timeout_remote if protocol is active
8796           and make sure that the protocol's final callback is called so
8797           that all memory if freed.  Affected file silcd/server.c.
8798
8799 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8800
8801         * silc_server_whois_send_reply crashed the server if the nickname
8802           was 127 characters long.  Affected file silcd/command.c.
8803
8804 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8805
8806         * Added sanity check to the silc_server_new_client. If the hostname
8807           is provided inside username then check that the provided hostname
8808           really is the same as the resolved one.  If the hostname was not
8809           resolved then check it from the public key.  Affected file is
8810           silcd/packet_receive.c.
8811
8812         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8813           if the server disconnected us and the connection is not valid
8814           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8815
8816         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8817           the library to the lib/silcutil/silcutil.[ch].
8818
8819 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8820
8821         * Close log file after open.  Affected file
8822           lib/silcutil/silclog.c.
8823
8824         * Check whether sock == NULL in silc_client_send_packet and return
8825           if it is.  Affected file lib/silcclient/silcclient.c.
8826
8827         * Check rec->entry == NULL in the Irssi SILC Client before
8828           sending the channel message.  Affecte file is
8829           irssi/src/silc/core/silc-servers.c.
8830
8831 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8832
8833         * Merged a splitted window bugfix from Irssi CVS tree.  The
8834           affected file is irssi/src/fe-text/textbuffer-view.c.
8835
8836         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8837           It did not print nickname.
8838
8839         * Improved the distributions system a bit.
8840
8841 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8842
8843         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8844           irssi/src/fe-text/gui-window.c.
8845
8846         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8847           to in-active server.  The affected file is
8848           irssi/src/silc/core/client_ops.c.
8849
8850         * Resolve the client in USERS command reply if the entry does
8851           not have username resolved.  The affected file is
8852           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8853           command to WHOIS command to really resolve stuff.  The USERS
8854           is not used any more in any critical section so WHOIS can
8855           be used even though it might be slower than IDENTIFY.
8856
8857         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8858           format.
8859
8860 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8861
8862         * Changed the protocol API a bit more consistent in the
8863           lib/silccore/silcprotocol.[ch].
8864
8865         * Changed the following headers to ROBODoc format:
8866
8867                 lib/silccore/silcpayload.h
8868                 lib/silccore/silcprotocol.h
8869                 lib/silccore/silcsockconn.h
8870
8871           All core library headers are now formatted.
8872
8873 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8874
8875         * Fixed a bug in Irssi SILC client; do not show that you are
8876           server/router operator if you really are not.  Affected file is
8877           irssi/src/silc/core/client_ops.c.
8878
8879         * Renamed silc_command_free_payload to silc_command_payload_free.
8880           Affected file lib/silccore/silccommand.h
8881
8882         * Added silcmath.h to include the prototoypes of various routines
8883           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8884           silcprimegen.h.
8885
8886         * Changed the following headers to ROBODoc format:
8887
8888                 lib/silccore/silcchannel.h
8889                 lib/silccore/silccommand.h
8890                 lib/silccore/silcid.h
8891                 lib/silccore/silcidcache.h
8892                 lib/silccore/silcmode.h
8893                 lib/silccore/silcnotify.h
8894                 lib/silccore/silcpacket.h
8895                 lib/silcmath/silcmath.h
8896
8897 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8898
8899         * Added checking to the server code not to start the server if
8900           ciphers and stuff are not configured properly.  Affected files
8901           silcd/serverconfig.[h] and silcd/server.c.
8902
8903         * Changed the layout of the header files of the public interfaces
8904           in the SILC libraries.  The new layout supports ROBODoc
8905           documentation tool (and some others) so that it is easy to create
8906           a library reference manual.  All the other headers and source
8907           code must still follow the CodingStyle document.  Also source
8908           code must not include these ROBODoc stuffs, only the headers.
8909           Furthermore, all public interface headers must now be named
8910           by using `silc' prefix, example: silcapi.h, silccipher.h.
8911           Some files were renamed due to this.  All the other headers
8912           must not be used as public interfaces.  I will update the
8913           CodingStyle document later.  Changed following headers, so far:
8914
8915                 lib/silcclient/silcapi.h
8916                 lib/silccore/silcauth.h
8917                 lib/silccore/silcprivate.h
8918                 lib/silccrypt/silcdh.h
8919
8920 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8921
8922         * Updated TODO.
8923
8924         * Removed silc_client_packet_send_flush from the client library
8925           as it is not needed.  Affected file lib/silcclient/client.[ch].
8926
8927         * Added printing of message of unresolved authentication method
8928           to the Irssi SILC client.  Added it to the module formats.
8929           Removed the same message from the client library.
8930
8931 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8932
8933         * Added new distribution feature, DISTLABEL.  Every distribution
8934           can define own preprocessor label that can be used in the
8935           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8936           file distributions, acconfig.h.pre and prepare.
8937
8938 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8939
8940         * Added Makefile.defines_int to include the actual definitions
8941           for Makefile.defines.in.  Tested the new distribution system,
8942           created distributions and tested installation.
8943
8944         * Added AWAY message printing to the Irssi SILC client.  Added
8945           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
8946
8947         * Added SCONNECT command to call the SILC's CONNECT command.
8948           Cannot use CONNECT directly since Irssi uses that internally.
8949           Affected file irssi/src/silc/core/silc-servers.c.
8950
8951           Added ACTION local command.  It is same as ME command but takes
8952           the channel as mandatory argument.
8953
8954           Rewrote some of the Irssi's help files to suite for SILC
8955           protocol.
8956
8957 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8958
8959         * Added Makefile.defines[.in] that should for now on be included
8960           in all Makefile.am file in the source tree.  That file includes
8961           all common compilation definitions for SILC source tree.
8962
8963 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8964
8965         * Minor changes to the ./prepare script to change the package
8966           name according the distribution name to the configure.in.
8967
8968 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8969
8970         * Created new distribution system.  Added file `distributions'
8971           that defines all the distributions that can be created out of
8972           the SILC source tree.  The ./prepare script now reads that
8973           file to determine how to prepare the distributions.  The
8974           first argument to the ./prepare is the name of the distribution
8975           and second is the version of the distribution.  If given
8976           without arguments it creates the default (toolkit) distribution
8977           with the default version (defined in ./prepare).
8978
8979           All Makefile.am files that are subject to the distributions
8980           are now named as Makefile.am.pre.  These are ./Makefile.am
8981           and lib/Makefile.am.  Others may be changed later.
8982
8983 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8984
8985         * Added invite list, ban list, some key management and connection
8986           error message printing to module formats in the Irssi SILC client.
8987
8988         * Added new silc_client_set_away_message to set the away message
8989           that is back to the person who sent private message.  The
8990           affected file lib/silcclient/silcapi.h and the
8991           lib/silcclient/client_prvmsg.c.
8992
8993 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8994
8995         * Fixed the private message sending in the Irssi SILC client,
8996           added local command KEY to the Irssi SILC client.
8997
8998           Added key management and key agreement message formats to the
8999           irssi/src/fe-common/silc/module-formats.[ch].
9000
9001           Added USERS (alias WHO) printing, server/router operator
9002           indication and LIST command printing to the module formats.
9003
9004 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9005
9006         * Fixed channel joining notify handling, cumode notify handling
9007           from Irssi SILC client.
9008
9009         * Added SILC specific module-formats to the Irssi SILC client so
9010           that SILC specific message hilighting, colors etc is possible.
9011           Affected file irssi/src/fe-common/silc/module-formats.[ch].
9012
9013           Added channel mode, channel user mode, actions, notices,
9014           whois and whowas printing to the the module-formats.c.
9015
9016         * Fixed a bug in channel deletion in the server.  The channel
9017           is not left to the cache even if the channel founder auth mode
9018           is set when there are no users anymore on the channel.  Affected
9019           file silcd/server.c.
9020
9021         * The silc_net_localhost now resolves the entire hostname including
9022           the domain name.  Affected file lib/silcutil/silcnet.c.
9023
9024 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9025
9026         * Changed the ask_passphrase client operation to be ascynchronous.
9027           It has now a completion callback and a context that the
9028           application must call after it has got the passphrase from
9029           the user.  Affected files lib/silcclient/silcapi.h,
9030           lib/silcclient/protocol.c, lib/silcclient/command.c and
9031           silc/client_ops.c.
9032
9033           Added SilcAskPassphrase callback that the application calls
9034           to deliver the passphrase to the library.
9035
9036         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
9037           The public key verification and especially a certificate
9038           verification is asynchronous procedure.
9039
9040           Added new SILC_SKE_STATUS_PENDING status to indicate the
9041           request is pending and a callback will be called to finalize
9042           the request.
9043
9044           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
9045           indicate that remote end did not send its public key (or
9046           certificate), even though we require it.  Added check for this
9047           condition in the SKE.  This was a security bug, now fixed.
9048
9049           Defined new SilcSKEVerifyCbCompletion callback that is called
9050           when the verification process is completed.
9051
9052           The affected files lib/silcske/silcske_status.h and
9053           lib/silcske/silcske.[ch].
9054
9055         * Changed the verify_public_key client operation to be async
9056           as well.  Defined SilcVerifyPublicKey callback that is used to
9057           indicate the success of the public key verification process.
9058
9059           Changed the server and client to use the new async client
9060           operations.
9061
9062         * Changed the Irssi SILC client's internal scheduler to be called
9063           twice as many times as it used to be.  As a result the client
9064           should be a bit faster now.  Affected file is
9065           irssi/src/silc/core/silc-core.c.
9066
9067         * Added support to Irssi SILC client of asynchronous public key
9068           verification and passphrase inquiry.  Affected file is
9069           irssi/src/silc/core/silc-core.c.
9070
9071 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9072
9073         * Do not say "You have left channel %s" in client library.
9074           Moved it to the application.  Affected files are
9075           lib/silcclient/command.c and silc/client_ops.c.
9076
9077         * Fixed silc_client_get_clients.  Command context was not
9078           duplicated and was freed memory in the callback.  Affected
9079           file lib/silcclient/idlist.c.
9080
9081         * Do not say "you are now talking..." on JOIN command in the
9082           client library.  The appliation must handle it.
9083
9084         * Do not say ".. changed topic to" in command reply in the
9085           client libary.  The application must handle it.
9086
9087         * Fixed TOPIC command sending in the client library.
9088
9089         * Fixed a memory leak in silc_client_command_free in the file
9090           lib/silcclient/command.c.
9091
9092 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9093
9094         * Imported a modified version of Irssi client to the source tree.
9095           The Irssi will be used to create a new client called
9096           Irssi SILC.  Imported to irssi/.
9097
9098           Added silc_core_init_finish function to the Irssi.  Affected
9099           file irssi/configure.in.
9100
9101           A lot changes in the Makefile.ams around the irssi tree.
9102
9103 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9104
9105         * Do not rehash if the new size is same as the old size of the
9106           hash table, in the silc_hash_table_rehash*.  The affected file
9107           lib/silcutil/silchashtable.c.
9108
9109         * Replaced hash_table_del_by_context calls from the server
9110           (when channel->user_list and client->channels) to the
9111           hash_table_del as it is sufficient and faster.
9112
9113 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9114
9115         * Added silc_hash_table_list, silc_hash_table_get and the
9116           SilcHashTableList structure to provide an alternative way to
9117           traverse the hash table.  The affected files are
9118           lib/silcutil/silchashtable.[ch].
9119
9120         * Changed the server's idlist routines to use the hash table
9121           routines to optimize the code.
9122
9123 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9124
9125         * Replaced the client entry's `channel' list and channel entry's
9126           `user_list' list to hash tables for optimized lookup.  Changed
9127           the code to use the hash table interface around the code.
9128           Affected file lib/silcd/idlist.[ch].
9129
9130         * Added `auto_rehash' boolean argument to the function
9131           silc_hash_table_alloc to indicate whether the hash table should
9132           auto-rehash when it thinks is appropriate time.  It will
9133           increase the hash table size if the there is twice as much
9134           entries in the table than the size of the table, and will
9135           decrease the size if there are twice as less entries than
9136           the size of the table.
9137
9138 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9139
9140         * Fixed silc_xxx_get_supported to not crash at some circumstances.
9141
9142 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9143
9144         * silc_idcache_purge_by_context deletes the entry now by context
9145           as it is supposed to do.  Affected file lib/silccore/idcache.c.
9146
9147         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
9148           client is not anymore valid (WHOWAS givens the info) and not
9149           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
9150
9151 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9152
9153         * Removed the `data' and `data_len' arguments from the ID Cache
9154           interfaces and added `name' argument.  ID Cache does not handle
9155           anymore the binary data only a names associated with given ID.
9156
9157         * When hashing a Client ID with silc_hash_id the entire ID is
9158           not hashed anymore, instead only the hash of the Client ID is
9159           hashed.  This way we can access the Client ID from the cache
9160           with Client ID but with the hash of the ID (which is a hash of
9161           the nickname) as well without any difference in performance.
9162
9163           Added also silc_idcache_find_by_id_one_ext to do one on one
9164           searching when we have the actual ID.  Added also function
9165           silc_hash_client_id_compare.  The affected files are
9166           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
9167
9168         * When hashing the name associated with a ID it is always done
9169           in lowercase.  This way we can access the cache without worrying
9170           about case-sensitivity, even though, for example nicknames are
9171           case sensitive.
9172
9173         * Fixed a bug in server with channel message sending.  It put
9174           wrong ID type as destination ID.  The affected file
9175           silcd/packet_send.c.
9176
9177         * silc_idcache_del_by_context now deletes from all hash tables
9178           by context.  Affected file lib/silccore/idcache.c.
9179
9180 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9181
9182         * Changed the client library to use the new ID Cache interface.
9183           Changes around the source tree.
9184
9185         * Added silc_hash_table_rehash_ext to rehash with specific
9186           hash function.  Affected file lib/silcutil/silchashtable.[ch].
9187
9188         * Added silc_hash_string_compare to compare two strings in the
9189           hash table.  Affected file lib/silcutil/silcutil.[ch].
9190
9191 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9192
9193         * Added new function silc_idcache_del_by_context into the
9194           lib/silccore/idcache.[ch].
9195
9196         * Changed the server's ID list routines to use the new ID Cache
9197           interface.  Changes around the source tree.
9198
9199 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9200
9201         * Added silc_hash_table_del[_by_context]_ext functions in to the
9202           lib/silcutil/silchashtable.[ch].
9203
9204           Removed silc_hash_table_find_all* routines and added new
9205           silc_hash_table_find_foreach to replace them.
9206
9207           Added silc_hash_table_replace_ext function as extended
9208           replacing function.  Separated the simple hash table interface
9209           from the extended hash table interface in the file
9210           lib/silcutil/silchashtable.h.
9211
9212         * Fixed minor bugs and changed it to use some of the new
9213           hash table functions in lib/silccore/idcache.c
9214
9215 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9216
9217         * Added new function silc_hash_table_find_all to return all keys
9218           in the hash table by the specified key.  As the hash table is
9219           collision resistant it also makes it possible to have several
9220           duplicate keys in the hash table.  This function may be used to
9221           find all of the keys from the hash.
9222
9223           Added user_context arguments to the SilcHashFunction,
9224           SilcHashCompare and SilcHashDestructor to deliver user specified
9225           context.
9226
9227           Added new fuctions silc_hash_table_find[_all]_ext to do
9228           extended lookup with specified hash and compare functions and
9229           specified user contexts.
9230
9231           Added new function silc_hash_table_add_ext to add the key
9232           with specified hash function and user context.
9233
9234           Added new function silc_hash_table_foreach to traverse all
9235           entrys in the hash table.  Added SilcHashForeach callback
9236           function.
9237
9238           Added new function silc_hash_table_del_by_context to delete
9239           the entry only if the context associated with the key matches.
9240
9241           Affected files are lib/silcutil/silchashtable.[ch].
9242
9243         * Removed silc_hash_[server/client/channel]_id and added just
9244           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
9245           silc_hash_id_compare to compare two ID's using as the hash table
9246           comparison function.  Added also silc_hash_data to hash
9247           binary data and silc_hash_data_compare to compare it.
9248
9249         * Removed silc_idlist_find_client_by_hash as it is not needed
9250           anymore.  Affected file silcd/idlist.[ch].
9251
9252         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
9253           to use internally the SilcHashTable.  The new ID Cache is a lot
9254           faster than the old one.  Some of the ID Cache interface was also
9255           rewritten and obsolete and stupid functions were removed.
9256
9257 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9258
9259         * Added entry_count field to the SilcHashTable to keep the number
9260           of the entries in the table.  Implemented the function
9261           silc_hash_table_rehash.  Added new function
9262           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
9263
9264           Fixed a minor bug in silc_hash_table_free.
9265
9266         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
9267           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
9268           into the lib/silcutil/silcutil.[ch].
9269
9270 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9271
9272         * Implemented a collision resistant hash table into the
9273           lib/silcutil/silchashtable[ch].  See the header and the source
9274           for the SilcHashTable API.
9275
9276 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9277
9278         * Merged dotconf version 1.0.2 into lib/dotconf.
9279
9280 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9281
9282         * Do not compile anything in lib/silcsim/* if the SIM support
9283           is not enabled.  The tree should now compile without problems
9284           under cygwin.
9285
9286 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9287
9288         * Compiled the SILC under cygwin.  Compiled and tested briefly
9289           without problems.  More tests needed.  The SIMs didn't compile
9290           though.
9291
9292         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
9293
9294         * Fixed possible crash in silc_get_username in the
9295           lib/silcutil/silcutil.c.
9296
9297 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9298
9299         * Fixed a va_arg in silc/client_ops.c.
9300
9301         * Oops, RC5 routines were named AES and caused some problems
9302           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
9303
9304 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9305
9306         * Added new SilcIDIP structure into the lib/silccore/id.h and
9307           replaced the old `ip' fields from all SILC ID's to that type.
9308           This is a step towards IPv6 support.
9309
9310           The silc_id_get_len takes now the ID as an extra argument.
9311           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
9312           both IPv4 and IPv6 based ID's.
9313
9314           The affected files are lib/silccore/id.[ch] and other files
9315           around the tree using these routines.
9316
9317         * Removed the ID length arguments in server from various
9318           silc_server_send_notify_* routines -> they are not needed
9319           anymore.
9320
9321 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9322
9323         * Fixed memory leak in silc_encode_pem_file in the file
9324           lib/silcutil/silcutil.c.
9325
9326 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9327
9328         * Check minor version as well in the SKE.  Affected files are
9329           silcd/protocol.c and lib/silcclient/protocol.c.
9330
9331         * Added --identifier option to the server so that an identifier
9332           can be when creating the public key for the server.  Affected
9333           file is silcd/silcd.c.
9334
9335         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
9336           lib/silccrypt/silcpkcs.c.
9337
9338 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9339
9340         * Register default ciphers and stuff when using -C option with
9341           the server.  Affected file sildc/silcd.c.
9342
9343         * Put back the servers public key filename format, it is better
9344           than the new one.  For now, the client keys are saved with the
9345           new filename format.  The affected file silc/client_ops.c.
9346
9347         * Implemented the Cipher API for the rest of the ciphers that
9348           did not implement it or implemented it the wrong way.
9349
9350 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9351
9352         * Register default ciphers and stuff when using the -S option
9353           in the client.  Affected file silc/silc.c.  Same also when
9354           creating new key pair with -C option.
9355
9356 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9357
9358         * Fixed the silc_verify_public_key client operation function to
9359           save the public keys differently.  The fingerprint is now
9360           used as filename and not the hostname.  This way also the
9361           client keys are saved uniquely and not with hostnames.  The
9362           affected file is silc/client_ops.c.
9363
9364         * Trimmed the silc_hash_fingerprint function to remove extra
9365           whitespaces from the end of the fingerprint.  The affected
9366           file is lib/silccrypt/silchash.c.
9367
9368         * Updated TODO.
9369
9370         * Added silc_cipher_register_default function to register all
9371           default ciphers.  It can be used when configuration files
9372           does not exist and the application does not want any specific
9373           ciphers in any specific order.
9374
9375           The SilcDList is now used as silc_cipher_list dynamically
9376           allocated cipher list.  Removed the static list all together
9377           and now all ciphers must be allocated to the dynamic list.
9378           The silc_cipher_alloc routine was changed to check only the
9379           dynamic list.
9380
9381           All silc_cipher_* routines that used to return int returns
9382           now bool.
9383
9384           The affected files lib/silccrypt/silccrypt.[ch].
9385
9386         * The same thing was done to silc_hash_* as for silc_cipher_*
9387           routines.  Affected files lib/silccrypt/silchash.[ch].
9388
9389         * The same thing was done to silc_pkcs_* as for silc_cipher_*
9390           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
9391           Added also silc_pkcs_[un]register[_default] functions.
9392           Removed the data_context from the PKCS API.
9393
9394         * Added silc_hmac_register_default function to register default
9395           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
9396           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
9397           to unregister all hmacs at once.
9398
9399         * Register the default ciphers, hash functions, PKCSs and HMACs
9400           if client's configuration file does not exist.  The affected
9401           file silc/silc.c.
9402
9403         * The client did not load the hash functions from the SIM
9404           modules at all.  Added support for this.  Affected file is
9405           silc/clientconfig.c.
9406
9407         * When decoding public key with silc_pkcs_public_key_decode, check
9408           the supported algorithm only if PKCS are registered.  Affected
9409           file lib/silccrypt/silcpkcs.c.  The same was done with the
9410           silc_pkcs_private_key_decode.
9411
9412         * Fixed the SILC List routines to keep the list always in order.
9413           It used to change the list's order when traversing the list but
9414           not it preserves the order.  Affected file lib/trq/silclist.h.
9415
9416 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9417
9418         * Added the client library to use the SilcSocketConnection's
9419           reference counter (by silc_socket_dup) to prevent the bug that
9420           the socket object may be freed underneath async operation.
9421
9422         * The name resolv library checking fixes in the configure.in.pre.
9423           The patch by salo.
9424
9425         * Created new version of the protocol drafts for future
9426           development. The -03 drafts are the ones that will be changed
9427           in the trunk now and the -02 will remain as they are.
9428
9429         * Send list of CUMODE notifys to the router when announcing
9430           the channel users to the router.  Affected file silcd/server.c.
9431           If the router receiving channel founder CUMODE for a channel
9432           that already has channel founder it will send CUMODE notify
9433           to the sender to remove the channel founder rights from the
9434           announced client.  Affected file silcd/packet_receive.c.
9435
9436         * The CUMODE notify may now use Server ID as well as the entity
9437           who changes the mode.  Updated protocool specs.
9438
9439         * Updated INSTALL and README files.
9440
9441 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9442
9443         * New web pages in the http://silc.pspt.fi.  The pages was
9444           designed by salo.
9445
9446         * Updated CREDITS.
9447
9448 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9449
9450         * Implemented the [DenyConnectin] config section in the server.
9451           Added silc_server_config_denied_conn to check whether incoming
9452           connection is denied.  Affected file silcd/serverconfig.[ch].
9453
9454         * Do not check the ports when checking the incoming configuration
9455           data if the port is 0, meaning any.  Affected file is
9456           silcd/serverconfig.c.
9457
9458 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9459
9460         * Fixed buffer overflow in silc_string_compare in the file
9461           lib/silcutil/silcutil.c.
9462
9463         * Fixed double free in silc_server_command_leave in the file
9464           silcd/command.c.
9465
9466 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9467
9468         * Fixed the version checking in the server.  Affected file is
9469           silcd/protocol.c.
9470
9471 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9472
9473         * Fixed the configuration data fetching when accepting new
9474           connections in the server.  Affected file silcd/server.c.
9475
9476 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9477
9478         * Added `sender_entry' argument to the function
9479           silc_server_packet_relay_to_channel so that we can check
9480           whether some destination actually belongs to the same route
9481           the sender belongs (ie, we must not resend the packet to the
9482           sender).  Affected file silcd/packet_send.[ch].
9483
9484         * Added `servername' field to the SilcClientEntry in the server
9485           to hold the name of the server where client is from.  Affected
9486           file is silcd/idlist.h.
9487
9488 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9489
9490         * Moved the channel message encrypting in the router betwen
9491           router connections from silc_server_channel_message to the
9492           silc_server_packet_relay_to_channel since we want to check
9493           whether we have anybody channel before encrypting anything.
9494           Affected files silcd/packet_[receive/send].c.
9495
9496 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9497
9498         * Fixed the [AdminConnection] server config section to support
9499           multiple entries.  Affected file silcd/serverconfig.c.
9500
9501         * Added support into the server to check the validity of the
9502           incoming connection before executing any KE or authentication
9503           protocols.
9504
9505         * The connection configuration is now saved to the KE and
9506           connection auth protocol contexts and not fetched anymore in
9507           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
9508
9509         * The local hosts listenning address and port is also resolved
9510           now when starting the server.  We want to have the socket object
9511           to include the real address and port for the listener.  Added
9512           new function silc_net_check_local_by_sock into the files
9513           lib/silcutil/silcnet.[ch].
9514
9515         * Fixed a broadcast bug in server -> do not broadcast if we
9516           are standalone.
9517
9518         * Fixed a routing bug.  Do not route broadcast packets ever.
9519           Broadcast packets must be processed always and not routed since
9520           they may be destined to some other host than yourself and thus
9521           would get routed without no good reason.  Affected file is
9522           silcd/server.c.
9523
9524         * Added function silc_server_config_is_primary_route to check
9525           whether primary router connection has been configured (a router
9526           configuration that we are initiating).  If there is not, we
9527           will assume that there is only two routers in the SILC network
9528           and we will use the incoming router connection as our primary
9529           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
9530
9531         * Changed the order of the broadcasting.  Broadcast _after_ the
9532           packet has been processed not before.  Affected file is
9533           silcd/server.c.
9534
9535         * Fixed a [ClientConnection] parsing bug.  The port was never
9536           parsed correctly thus resulting to port 0.  Affected file
9537           silcd/serverconfig.c.
9538
9539         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
9540           argument and did not set the broadcast packet flag.  Affected
9541           file silcd/packet_send.c.  Fixed same bug in the function
9542           silc_server_send_notify as well.
9543
9544         * If we receive NEW_ID packet for our own ID in the server, ignore
9545           the packet.
9546
9547 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9548
9549         * Updated TODO.
9550
9551         * Removed the nickname from the Private Message Payload.
9552           Updated the code and the protocol specs.
9553
9554         * Updated protocol specs for submitting to the IETF.
9555
9556         * Tweaked the Random Number Generator a bit.  Affected file
9557           lib/silccrypt/silcrng.c.  Exported a new function
9558           silc_rng_[global]_add_noise which can be used to add more
9559           noise to the RNG.
9560
9561 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9562
9563         * Do not parse packets with different timeout when protocol
9564           is active -> may cause problem with rekey.  Affected file
9565           silcd/server.c.
9566
9567         * When server receives signoff notify it must not create
9568           new channel key if the client is on any channels since the
9569           sender of the signoff notify will create it.
9570
9571 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9572
9573         * Added printing of error messages during SKE protocol from the
9574           failure packet sent by server during SKE.  Affected file
9575           silc/client_ops.c.
9576
9577         * Removed the client's failure_callback handling with timeout
9578           and handle it immediately when received.
9579
9580         * The SKE library returned wrong type in SUCCESS and FAILURE
9581           packets.  They must be 32 bit MSB not 16 bit MSB.
9582
9583 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9584
9585         * Ok, rewrote the logic of the re-key and now it seems to work.
9586           I tested it on high traffic with frequent re-keys without
9587           problems.  Added hmac_receive (and renamed hmac to hmac_send)
9588           in SilcClientConnection in lib/silcclient/client.h and
9589           in SilcIDListData in silcd/idlist.h.  Also, removed the
9590           SilcPacketParserContext's cipher and hmac fields as they are
9591           not needed anymore and actually caused some problems when
9592           the ciphers and hmac's changed underneath the packet parser.
9593
9594 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9595
9596         * If re-key protocol is active then process the incoming packets
9597           synchronously since we must assure that icoming packets encrypted
9598           with the old key is processed before the new keys is set to
9599           use.  This is true other packets than for REKEY packets.
9600           Affected file silcd/server.c.  The same was done to client library
9601           as well, affected file lib/silcclient/client.c.
9602
9603 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9604
9605         * Fixed bug in client and server to accept the force send if
9606           the packet is send from silc_[server/client]_packet_process
9607           function.  Otherwise the packets are never delivered, oops.
9608
9609 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9610
9611         * Disable force sending of packets when REKEY protocol is active.
9612           We must assure that no packet is sent directly when rekey is
9613           performed.  All packets must be sent through packet queue.
9614           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
9615           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
9616           function is silc_[server/client]_packet_send_real to check
9617           the situation.
9618
9619         * Replaced the SIM paths from example config files to
9620           /usr/local/modules.  Also, make install creates now
9621           /usr/local/silc/logs directory to hold all the SILC server
9622           logs.
9623
9624 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9625
9626         * Made the configure.in.pre work on Solaris.  Patch by salo.
9627
9628         * Made all ciphers compatible with non-x86 machines.  Defined
9629           CBC mode macros into lib/silccrypt/ciphers_def.h.
9630
9631 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9632
9633         * Fixed the make install.
9634
9635 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9636
9637         * When MAC computation fails the silc_packet_decrypt returned 0
9638           even though it was supposed to return -1.  Fixed this.  The
9639           affected file is lib/silccore/silcpacket.c.
9640
9641         * Do not replace the config files in /etc/silc (in make install)
9642           if they already exist.  Affected file ./Makefile.am.
9643
9644         * Do not send re-key packets immediately but through packet queue.
9645           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
9646
9647         * Changed silc_net_check_host_by_sock to return FALSE if the
9648           IP/DNS could not be resolved.  Though, it returns the IP address
9649           now even if it could not resolve it (but returns also FALSE).
9650           Affected file lib/silcutil/silcnet.[ch].
9651
9652 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9653
9654         * Added silc_pkcs_decode_identifier to decode the public key's
9655           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
9656           Added also silc_pkcs_free_identifier.  Added also new context
9657           SilcPublicKeyIdentifier.
9658
9659         * Added -S option to the silc client.  It is used to dump the
9660           contents of the specified public key file.
9661
9662         * Changed the PKCS api to return the public key length when
9663           setting the public key.
9664
9665         * Fixed a fatal bug in the public and private key file loading.
9666           Affected file lib/silccrypt/silcpkcs.c.
9667
9668         * Execute the packet parsing for client with zero (0) timeout
9669           if the protocol is active.  Affected file silcd/server.c.
9670
9671 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9672
9673         * Made the key generation options to the silcd program.  Added
9674           -C option, equivalent to client's option.
9675
9676         * Added new [ServerKeys] config section to the server.  It
9677           configures the server's public and private key.
9678
9679         * Defined generic Public Key Payload into the protocol
9680           specification to send specific type of public keys and
9681           certificates.
9682
9683         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9684           public key or certificate.
9685
9686         * Implemented the GETKEY command to the server and to the
9687           client library and on user interface.
9688
9689 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9690
9691         * Made preliminary `make install' work.
9692
9693 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9694
9695         * Added SilcServerRekey context into silcd/idlist.h.
9696
9697         * Added the PFS support as defined in the specification to the
9698           SKE protocol.  Affected files lib/silcske/*.c.
9699
9700         * Added `ske_group' field to the SilcServerRekey context to hold
9701           the number of the SKE group that is used with PFS in re-key.
9702           Affected file silcd/idlist.h.
9703
9704         * Added PFS re-key support to the server.  Affected file is
9705           silcd/protocol.c.
9706
9707         * Added silc_protocol_cancel to cancel execution of the next
9708           state of the protocol.  Affected file is
9709           lib/silccore/silcprotocol.[ch].
9710
9711         * Added the re-key support with and without PFS to the client
9712           library.  Re-key is performed once in an hour, by default.
9713
9714           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9715           Added silc_client_rekey_callback and silc_client_rekey_final.
9716           Affected files are lib/silcclient/protocol.[ch] and
9717           lib/silcclient/client.[ch].
9718
9719         * Removed the `hmac_key' and `hmac_key_len' fields from the
9720           SilcClientConnection structure; not needed.  Affected file is
9721           lib/silcclient/client.h.
9722
9723         * Updated TODO.
9724
9725 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9726
9727         * Do not ask whether user wants to use the negotiated private key
9728           for private messages, just use it.  Affected file is
9729           silc/local_command.c.
9730
9731         * Added `send_enc_key' and `enc_key_len' fields to the
9732           SilcIDListData structure since they are needed in the re-key
9733           phase.  Affected file is silcd/idlist.[ch].
9734
9735         * Implemented the simple re-key protocol into the server.
9736           Affected files silcd/server.c and silcd/protocol.[ch].  The
9737           re-key will be performed once in an hour, by default.
9738
9739           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9740           Added silc_server_rekey, silc_server_rekey_callback and
9741           silc_server_rekey_final.
9742
9743         * Removed Tunneled flag from the protocol.  Updated the code
9744           and the specifications.
9745
9746         * Adde `pfs' field to the SilcIDListData to indicate whether
9747           the PFS is to be performed in the re-key.  Affected file is
9748           silcd/idlist.h.
9749
9750 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9751
9752         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9753           int64 of at least the xintXX size.  If void * is less that 4
9754           bytes uint32 * will be used.  Defined bool as boolean.
9755
9756         * Changed _ALL_ unsigned long and unsigned int to uint32,
9757           unsgined short to uint16 in the source tree.
9758
9759         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9760           not handle clients that has entry->data.registered == FALSE.
9761           They are not in the network anymore.  Affected file is
9762           silcd/server.c.
9763
9764 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9765
9766         * Implemented the sending of the SERVER_SIGNOFF notify in the
9767           server.  Affected file is silcd/server.c.
9768
9769         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9770           Added also silc_notify_payload_encode_args into the
9771           lib/silccore/silcnotify.[ch].
9772
9773         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9774           Affected file silcd/packet_receive.c.
9775
9776         * Implemented the SERVER_SIGNOFF notify handling in the client
9777           library.  Affected file lib/silcclient/client_notify.c.  Also,
9778           implemnted the printing of the SERVER_SIGNOFF info to the
9779           application.  Affected file silc/client_ops.c.
9780
9781         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9782           if the deleting was successful.  Affected file silcd/idlist.[ch].
9783
9784         * Added support for public key authentication in the connection
9785           authentication protocol in the client library.  Affected file
9786           lib/silcclient/protocol.c.
9787
9788         * Changed the server's silc_idlist_get_clients_by_* interface
9789           to support already allocated array so that new entries may be
9790           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9791           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9792           and command replies.
9793
9794         * All command reply functions in the server now calls the
9795           pending command callback even if error occured.  This way the
9796           error will be delivered to the client as well.  Affected files
9797           silcd/command.c and silcd/command_reply.c.
9798
9799         * Fixed INFO command to return local server's info if no server
9800           was provided.  Affected file lib/silcclient/command.c.
9801
9802         * Removed RESTART command for good.  Updated the code and the
9803           protocol specs.
9804
9805         * Rewrote parts of the task system.  It is a bit simpler now.
9806           Removed unsued task priorities. The affected files are
9807           lib/silcutil/silctask.[ch].
9808
9809 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9810
9811         * Moved the USERS printing from the library to the application.
9812           Affected files lib/silcclient/command.c and silc/client_ops.c.
9813
9814 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9815
9816         * Updated TODO.
9817
9818         * Added channel key re-key support.  The re-key is perfomed
9819           only by the router and is done once in an hour.  Added `rekey'
9820           field to the SilcChannelEntry in the server.  Affected files
9821           silcd/server.c and silcd/idlist.h.
9822
9823         * Added silc_task_unregister_by_context into the file
9824           lib/silcutil/silctask.[ch].
9825
9826 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9827
9828         * Added SILC_UMODE_GONE mode to indicate when the client is not
9829           present in the SILC network.  Added also support to the local
9830           command AWAY that will set this mode.  Added support of showing
9831           "xxx is gone" in WHOIS command.  The USERS command shows the
9832           gone status as well.
9833
9834         * Fixed setting server and router operator privileges in the
9835           server's UMODE command.  Affected file silcd/command.c.
9836
9837         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9838           new KE payload is equivalent to the old KE2 payload.
9839
9840           Cleaned up the SKE Start Payload parsing.  It now uses the
9841           simple buffer unformatting to do the parsing.  A lot faster
9842           now.
9843
9844           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9845           to the SKE that is used to indicate whether both of the SKE
9846           parties should perform authentication.  By default only the
9847           responder performs authentication.  By setting this flag also
9848           the initiator must do authentication.  By default it is unset
9849           since in normal SKE case, client to server connection, only
9850           the responder should do authentication.  When doing SKE between
9851           two clients both should perform authentication.  Updated the
9852           code and the protocol specs.
9853
9854         * A little fix to IDENTIFY command in the server.  Search the
9855           client first by hash not nickname.  Affected file is
9856           silcd/command.c.
9857
9858         * Fixed the silc_client_close_connection to support closing
9859           the client to client connections wihtout deleting too much
9860           data.  Affected file lib/silcclient/client.c.
9861
9862         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9863           are received if protocol used to be active but is not anymore
9864           the application would crash due to NULL pointer dereference.
9865           Affected files silcd/server.c and lib/silcclient/client.c.
9866
9867         * Added `hash' field to the SilcClientConnection to include
9868           the hash function negotiated in the SKE protocol.
9869
9870         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9871           to set the channel founder authentication data.  A client can
9872           claim the founder rights later by providing the authentication
9873           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9874           This way the channel founder can regain the channel founder
9875           privileges even it is left the channel.  This works only on
9876           local server and the client must be connected to the same
9877           server to be able to regain the founder rights.  Updated the
9878           protocol specs accordingly.
9879
9880           Added support to the CMODE command in the client to set the
9881           founder auth data.  Read the README to see how to set it.
9882
9883           Added support to the CUMODE command to claim the founder
9884           rights.  Read the README to see how to do it.
9885
9886           Added support for the founder authentication to the Channel
9887           Entry in the server.  Affected file silcd/idlist.h.
9888
9889           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9890           server's CMODE command.  Affected file silcd/command.c.
9891
9892         * Added the following new functions into lib/silccore/silcauth.[ch]:
9893           silc_auth_get_method and silc_auth_get_data.
9894
9895         * The server now saves the remote hosts public key to the
9896           SilcIDListData pointer.  Affected file silcd/protocol.c.
9897
9898         * The normal server now does not remove the channel entry from
9899           the cache if the founder authentication data is set.  It used
9900           to remove it if the founder was the last one on the channel on
9901           the server and left the channel.  The auth data is saved and
9902           if the channel is re-joined later the old entry is used with
9903           the old auth data.  Affected files silcd/command_reply.c and
9904           silcd/server.c.
9905
9906         * Removed the `pkcs' field from the SilcIDListData structure
9907           in the server; it is not used.  Affected file silcd/idlist.h.
9908
9909 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9910
9911         * Fixed packet processing on slow links.  Partial packets were
9912           never re-processed because the incoming data buffer was cleared
9913           by the application.  Application must not directly clear the
9914           sock->inbuf, the packet processing routines handle it.  Fixed
9915           this in client library and in server.
9916
9917 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9918
9919         * Fixed the WHOIS and IDENTIFY send reply function to really
9920           check whether to send list or just one entry.  Affected file
9921           silcd/command.c.
9922
9923         * Cleaned up the LEAVE command's channel key distribution.  The
9924           affected file silcd/command.c.
9925
9926         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9927           can enforce the channel mode as well.  In that case the ID
9928           includes the ID of the server.  The code now enforces the
9929           mode change if the router have different mode than the server.
9930
9931         * The notify client operation with CMODE_CHANGE notify can now
9932           return NULL client_entry pointer if the CMODE was not changed
9933           by client.  Application must check for this.
9934
9935         * Added <Server ID> argument to INFO command to support server
9936           info fetching by Server ID.
9937
9938         * Added silc_server_announce_get_channel_users to get assembled
9939           packets of channel users of the specified channel.  Affected
9940           file silcd/server.[ch].
9941
9942         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9943           was freed underneath the ID Cache.
9944
9945         * Re-announce clients when the server received CHANNEL_CHANGE
9946           notify from the router.  Affected file silcd/packet_send.c.
9947
9948 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9949
9950         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
9951           crashed since it did not handle the fact that there is no cipher
9952           called "3" and didn't check the error condition.  Now fixed.
9953
9954         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
9955           flag.  It can be used to send message requests.
9956
9957 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9958
9959         * Implemented the RESTART command in the client.
9960
9961         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
9962           notice type messages.  Added notice printing to the user
9963           interface.
9964
9965         * The channel keys are not re-generated if the channel's mode
9966           is PRIVKEY, ie private key on the channel exists.  Affected
9967           files silcd/server.c and silcd/command.c.
9968
9969         * Fixed a little bug in channel message delivery when channel
9970           private keys are set in the server.  Affected file is
9971           silcd/packet_send.c.
9972
9973         * Changed the setting on channel->on_channel = TRUE from the
9974           silc_client_save_channel_key to the JOIN command reply.  The
9975           key payload is not received if the private channel key is set.
9976           Affected file lib/silcclient/command_reply.c and the
9977           lib/silcclient/client_channel.c.
9978
9979         * When the CMODE_CHANGE notify is sent and the channel private
9980           key mode is removed the channel key must be re-generated in
9981           other cells as well.  Added this support for the router in the
9982           silcd/packet_receive.c.
9983
9984         * Added new local command NOTICE to send notice message on
9985           channel.  Affected file silc/local_command.[ch].
9986
9987 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9988
9989         * Added new local command ME to the client.  It is used to send
9990           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
9991           some action.  Affected file silc/local_command.[ch].
9992
9993         * Changed channel_message and private_message client operations
9994           to deliver the message flags to the application.  Added also
9995           the `flags' arguments to the silc_client_send_channel_message
9996           and silc_client_send_private_message functions.  Affected file
9997           silcapi.h.
9998
9999 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10000
10001         * Redefined the Private Message Payload to support private message
10002           keys and to support the new private message flags.  Updated
10003           the protocol specs.  Flags makes it possible to have for example
10004           CTCP style messages.
10005
10006         * Added new type SilcPrivateMessagePayload and defined an API
10007           for it in the lib/silcclient/silcprivate.[ch].
10008
10009         * Tested private message private keys successfully.  Tested the
10010           private message key set, unset and list commands with the new
10011           KEY command.
10012
10013         * Redefined the Channel Message Payload to include the channel
10014           message flags (equal with private message flags) to support
10015           for example CTCP style messages.
10016
10017         * Defined some of the message (for channel and private message)
10018           flags.  Updated the protocol specs and added the flags to the
10019           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
10020
10021 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10022
10023         * Added SilcKeyAgreementStatus type to the key agreement routines
10024           to indicate the current status and error if one occured.
10025           The status types are defined in the lib/silcclient/silcapi.h.
10026
10027         * Added new local command KEY that is used to set and unset private
10028           keys for channels, set and unset private keys for private messages
10029           with remote clients and to send key agreement requests and
10030           negotiate the key agreement protocol with remote client.  The
10031           key agreement is supported only to negotiate private message keys,
10032           it currently cannot be used to negotiate private keys for channels,
10033           as it is not convenient for that purpose.
10034
10035         * Fixed a minor pending callback setting bug in the function
10036           silc_client_get_client_by_id_resolve, now the function works.
10037           Affected file lib/silcclient/idlist.c.
10038
10039         * Added function silc_net_get_local_port to get local bound
10040           port by socket.  Added to lib/silcutil/silcnet.[ch].
10041
10042         * Added `sockets' and `sockets_count' fields to the SilcClient
10043           object.  They hold the sockets of the listenning sockets in
10044           the client.  Listenning sockets may be for example the key
10045           agreement server.  Affected file lib/silcclient/client.[ch].
10046           Added functions the silc_client_add_socket and the
10047           silc_client_del_socket.  They are exported to the application
10048           as well.
10049
10050         * Added ~./silc/clientkeys to support other client's public keys.
10051
10052         * Renamed verify_server_key client operation to verify_public_key
10053           and added one argument to indicate the type of the connection
10054           (server, client etc.).
10055
10056 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10057
10058         * Added silc_server_connection_auth_request to handle the
10059           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
10060           silcd/packet_receive.[ch].
10061
10062         * Added silc_server_send_connection_auth_request into the
10063           silcd/packet_send.c to send the connection auth request packet.
10064
10065         * Cleaned up the silcd/protocol.c a bit and fixed some memory
10066           leaks.
10067
10068         * Fixed the public key authentication in responder side in the
10069           server.  The `auth_data' pointer includes the SilcPublicKey
10070           not the path to the public key.  Affected file silcd/protocol.c.
10071
10072         * Implemented the public key authentication in the initiator side
10073           in the server.  Affected file silcd/protocol.c.
10074
10075         * Removed the [RedirectClient] config section from the server
10076           configuration.  Is not needed and I don't want to implement it.
10077
10078 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10079
10080         * Cleaned up the CMODE command in the server.  It now works
10081           correctly and supports all the modes defined in the protocol.
10082           Affected file is silcd/command.c.
10083
10084         * Added `hmac_name' field to the SilcChannelEntry in the server
10085           to hold the default HMAC of the channel.  It can be set when
10086           creating the channel (with JOIN command).  Affected files
10087           silcd/idlist.[ch].
10088
10089         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
10090           type to indicate the change of the current cipher and hmac
10091           on the channel.  Client can safely ignore the <cipher> argument
10092           (if it chooses to do so) since the CHANNEL_KEY packet will
10093           force the channel key change anyway.  The <hmac> argument is
10094           important since the client is responsible of setting the new
10095           HMAC and the hmac key into use.
10096
10097         * Fixed the CMODE command in the client library as well.
10098
10099         * Tested CMODE command in router environment successfully.
10100
10101 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10102
10103         * Show the version of the remote client (or server) when connecting
10104           to the server.  It is logged to the log file.  Affected file
10105           is silcd/protocol.c.
10106
10107         * Fixed the KILLED notify handling in the client library.  The
10108           client must be removed from all channels when receiving the
10109           KILLED notify.
10110
10111           Also, do not remove the client entry when giving the KILL
10112           command but when the KILLED notify is received.
10113
10114         * Removed silc_idlist_find_client_by_nickname from the server.
10115           Not needed anymore.  Affected files silcd/idlist.[ch].
10116
10117         * Implemented the CHANNEL_CHANGE notify type handling to the
10118           server.  Affected file silcd/server.c.
10119
10120         * Updated TODO.
10121
10122 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10123
10124         * Added silc_server_send_notify_invite to send the INVITE
10125           notify between routers.
10126
10127         * Implemented the INVITE command correctly to the server.
10128
10129         * Implemented the INVITE notify type handling in the server.
10130
10131         * Implemented the INVITE command to the client library and on the
10132           user interface.
10133
10134 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10135
10136         * Added function silc_server_get_client_resolve to find the
10137           client entry by ID from all ID lists and then resolve it
10138           (using WHOIS) if it cannot be found.  Affected file is
10139           silcd/server.[ch].
10140
10141 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10142
10143         * Implemented the BAN command to the client library.
10144
10145         * The JOIN command in the server now checks the invite list
10146           and the ban list.
10147
10148         * Changed the silc_command_reply_payload_encode_va and the
10149           silc_command_payload_encode_va to support that if argument is
10150           NULL it ignores and checks the next argument.  Affected file
10151           lib/silccore/silccommand.c.
10152
10153         * Added silc_server_send_notify_ban to send the BAN notify
10154           type between routers.
10155
10156         * Chaned the silc_notify_payload_encode to support that if
10157           argument is NULL it ignores and checks the next argument.
10158           Affected file lib/silccore/silcnotify.c.
10159
10160         * Tested ban lists in router environment successfully.
10161
10162 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10163
10164         * Implemented BAN command to the server, in silcd/command.[ch].
10165
10166         * Removed the BAN and INVITE_LIST modes from the CMODE command
10167           in the server code.
10168
10169         * Added function silc_string_match to regex match two strings.
10170           Affected files lib/silcutil/silcutil.[ch].
10171
10172 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10173
10174         * Redefined parts of the SilcChannelEntry in the server to support
10175           the new ban and invite lists.
10176
10177 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10178
10179         * Redefined the INVITE command.  The same command can be used to
10180           invite individuals to the channel but also to manage the invite
10181           list of the channel (to add to and remove from the invite list).
10182           Updated the protocol specs.
10183
10184         * Added new command SILC_COMMAND_BAN that can be used to manage
10185           the ban list of the channel.  Updated the protocol specs.
10186
10187         * Removed the channel modes: the SILC_CMODE_BAN and the
10188           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
10189           in the CMODE command.  The equivalent features are now available
10190           using INVITE and BAN commands.  Updated the protocol specs.
10191
10192         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
10193           in the network about change in the current ban list.  The notify
10194           type is not used by the client.
10195
10196         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
10197           support the invite lists.
10198
10199 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10200
10201         * Added new function silc_string_regexify that converts string
10202           including wildcard characters into regex string that can
10203           be used by the GNU regex library.  Added into the file
10204           lib/silcutil/silcutil.[ch].
10205
10206           Added silc_string_regex_combine to combine to regex strings
10207           into one so that they can be used as one regex string by
10208           the GNU regex library.  Added into the file
10209           lib/silcutil/silcutil.[ch].
10210
10211           Added silc_string_regex_match to match two strings.  It returns
10212           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
10213
10214 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10215
10216         * Imported GNU regex to the soruce tree into lib/contrib.
10217           Fixed some compiler warning from the regex.c.
10218
10219 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10220
10221         * Fixed MOTD command in the server to work in router environment.
10222
10223         * Fixed the MOTD command in the client library to support
10224           the server argument in the command.
10225
10226         * Added `nickname_len' argument to the silc_idlist_add_client
10227           in the server, as the `nickname' argument may be binary data
10228           (it may be hash).
10229
10230         * Added silc_idlist_get_channels to return all channels from
10231           the ID list.
10232
10233         * Implemented LIST command to the server.  Affected file is
10234           silcd/command.c.
10235
10236         * Implemented the LIST command to the client library and on the
10237           user interface.
10238
10239         * Added [<user count>] argument to the LIST command reply.
10240           With private channels the user count is not shown.
10241
10242         * Updated TODO and README.
10243
10244 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10245
10246         * The client entry's data.registered must be TRUE even with
10247           global client entry on global client list.  The data.registered
10248           is used to check whether the client is anymore in the network,
10249           for example with WHOWAS command so it must be valid.
10250
10251         * Fixed the WHOWAS command in the server.  It now actually works
10252           in router environment.  Added function into silcd/command_reply.c
10253           silc_server_command_reply_whowas_save.
10254
10255         * Added silc_idlist_purge function to the silcd/idlist.c
10256           to periodically purge the ID Cache.
10257
10258         * Fixed INFO command in the server.  It works now in router
10259           environment.  Added <server name> argument to the INFO command
10260           reply.  Updated the protocol specs.
10261
10262         * Fixed minor bug in silc_idcache_purge to not purge if the
10263           expire value is zero.
10264
10265         * Fixed various bugs in WHOIS and IDENTIFY command handling as
10266           they were buggy because of the WHOWAS information.
10267
10268         * Fixed local command MSG to handle the async resolving of
10269           the remote client properly.  It used to fail the first MSG.
10270           Affected file silc/local_command.c.
10271
10272         * Added `data_len' field to SilcIDCache context.
10273
10274 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10275
10276         * Update TODO.  Todo in commands in the server.
10277
10278 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10279
10280         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
10281           used by routers as broadcast packet to inform other routers
10282           about the changed user mode.
10283
10284           Implemented the notify handling in the server.  Affected file is
10285           silcd/packet_receive.c.  Added the function
10286           silc_server_send_notify_umode to the silcd/packet_send.[ch].
10287
10288         * Added new generic Channel Payload and deprecated the New Channel
10289           Payload.  The New Channel Payload is now the generic Channel
10290           Payload.
10291
10292         * Added new argument `mode' to the silc_server_send_new_channel
10293           as it is required in the Channel Payload now.
10294
10295         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
10296           and created a new and real SilChannelPayload to represent the
10297           new generic Channel Payload.  Implemented the encode/decode
10298           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
10299
10300         * Added silc_server_get_client_channel_list to return the list
10301           of channels the client has joined for WHOIS command reply.
10302           Affected file silcd/server.[ch].
10303
10304         * Implemented the channel list sending in the WHOIS command reply
10305           in server and in the client.
10306
10307           Implemented the channel list displaying on the user interface
10308           as well.  Affected file silc/client_ops.c.
10309
10310         * Added silc_channel_payload_parse_list to parse list of Channel
10311           Payloads.  It returns SilcDList list of SilcChannelPayloads.
10312           Client for example can use this function to parse the list of
10313           channels it receives in the WHOIS command reply.  The caller
10314           must free the list by calling silc_channel_payload_list_free.
10315           Affected files lib/silccore/silcchannel.[ch].
10316
10317 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10318
10319         * Added one new argument <user mode> to the WHOIS command reply
10320           to return the mode of the user in SILC.  Updated the protocol
10321           specs.
10322
10323           Implemented it to the server and client.
10324
10325 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10326
10327         * Fixed the mode printing on the user interface on joining.
10328           Affected file silc/client_ops.c.
10329
10330         * Implemented the UMODE command and user modes in general to the
10331           client library and to the user interface.
10332
10333         * Implemented the UMODE command to the server.
10334
10335         * The server now sends UNKNOWN_COMMAND error status if client sends
10336           unknown command.  Affected file silcd/command.c.
10337
10338         * All server commands now handle the command identifier the right
10339           way when sending the command reply to the client.  The client can
10340           use to identify the command replies with the identifier.
10341
10342 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10343
10344         * Added silc_server_get_client_route to resolve the route to
10345           the client indicated by the client ID.  Affected file is
10346           silcd/server.[ch].
10347
10348         * Added silc_server_relay_packet as general function to relay
10349           packet to arbitrary destination.  This deprecates functions
10350           like _send_private_message_key, _relay_notify etc.  Affected
10351           file is silcd/packet_send.[ch].
10352
10353           Removed silc_server_send_key_agreement,
10354           silc_server_send_private_message_key and
10355           silc_server_packet_relay_notify functions from the file
10356           silcd/packet_send.[ch].
10357
10358         * Updated TODO.
10359
10360         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
10361           server.  Affected file silcd/packet_receive.[ch].
10362
10363         * Implemented the KILL command to the client.  Implemented the
10364           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
10365           Affected files lib/silcclient/command[_reply].c and
10366           lib/silcclient/client_notify.c.  Implemented the KILL notify
10367           printing in the user inteface.
10368
10369         * Fixed a lot silc_parse_nick memory leaks from the client
10370           library in the file lib/silcclient/command.c.
10371
10372         * Changed the silc_server_send_notify_on_channels's `sender'
10373           argument from SilcSocketConnection to SilcClientEntry to
10374           check the sender as entry and not as connection object and not
10375           to send to the client provided as argument.  The affected file
10376           is silcd/packet_send.[ch].
10377
10378         * The notify packets that are destined directly to the client used
10379           to not to be processed by the server.  Now changed that and the
10380           server processes all notify packets.  After relaying the packet
10381           to the client the notify packet is processed in the server.
10382
10383         * The silc_server_free_client_data now checks whether there is
10384           pending outgoing traffic for the client and purges the data to
10385           the network before removing the client entry.
10386
10387 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10388
10389         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
10390           an client is killed from the SILC Network.  Updated the protocol
10391           specs accordingly.
10392
10393           Added new function silc_server_send_notify_killed to the
10394           silcd/packet_send.[ch].
10395
10396         * Added function silc_server_packet_relay_notify to relay notify
10397           packets that are destined directly to a client.  In this case
10398           the server does not process the notify packets but merely relays
10399           it to the client.  Affected file silcd/packet_send.[ch].
10400
10401           Added also silc_server_packet_process_relay_notify to check
10402           whereto relay the notify.  Affected file is
10403           silcd/packet_receive.[ch].
10404
10405         * Implemented the KILL command to the server.
10406
10407         * Updated TODO.
10408
10409         * Added the backup schema desgined last fall to the protocol
10410           specs for everyone to see.  The specification is in the
10411           *-spec-xx.txt draft and the packet type definitions for the
10412           backup routers is in *-pp-xx.txt draft.  Thusly, added also
10413           new packet type SILC_PACKET_CELL_ROUTERS.
10414
10415         * A big security problem in the implementation discovered.  The
10416           signoff of an client did not cause new channel key generation
10417           which it of course should've done.  The channel keys must be
10418           always re-generated when client leaves (or signoffs) the channel.
10419           The silc_server_remove_from_channels funtion now handles
10420           the channel key re-generation.
10421
10422         * Added `sender' argument to the silc_server_send_notify_on_channels
10423           to not to send the client provided as argument.  Affected file
10424           silcd/packet_send.[ch].
10425
10426 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10427
10428         * Implemented OPER and SILCOPER commands into the server and
10429           the client library.
10430
10431         * Added silc_auth_verify and silc_auth_verify_data to verify
10432           the authentication directly from the authentication payload.
10433           It supports verifying both passphrase and public key based
10434           authentication.  Affected file lib/silccore/silcauth.[ch].
10435
10436         * Added `hash' field to the SilcIDListData structure.  It is the
10437           hash negotiated in the SKE protocol.  Affected file is
10438           silcd/idlist.[ch].
10439
10440         * Slight redesigning of the SilcAuthPayload handling routines.
10441           Do not send SilcPKCS but SilcPublicKey as argument.
10442
10443         * Implemented the public key authentication support to the
10444           serverconfig.  The public key is loaded from the provided path
10445           and saved as authentication data to void * pointer.  Thus,
10446           changed the unsigned char *auth_data to void *auth_data;
10447
10448         * Fixed SHUTDOWN command to send the reply before the server
10449           is shutdown. :)  Affected file silcd/command.c.
10450
10451         * Fixed fatal bug in CONNECT command.  The hostname was invalid
10452           memory and server crashed.  Affected file silcd/command.c.
10453
10454         * Fixed fatal bug in CLOSE command.  The server_entry became
10455           invalid but was referenced later in the command.  Affected file
10456           silcd/command.c.
10457
10458 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10459
10460         * Fixed fatal bug in failure packet handling.  Server ignored
10461           the failure and thus crashed when it came.
10462
10463         * Updated TODO.
10464
10465 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10466
10467         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
10468           that the command may be executed only once in (about) 2 seconds.
10469           The old SILC_CF_LAG flag is same but allows command bursts up
10470           to five before limiting.
10471
10472           Added the support for CF_LAG and CF_LAG_STRICT flags to the
10473           server code.  Various commands now includes the CF_LAG_STRICT
10474           flag to disallow any kind of miss-use of the command.
10475
10476         * Fixed the silc_buffer_unformat to not to allocate any data
10477           if the length of the data is zero.  It used to allocate the
10478           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
10479
10480 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10481
10482         * Changed the format of AdminConnection configuration section
10483           in the server.  Added username of the admin to the format.
10484           Affected files silcd/serverconfig.[ch].
10485
10486           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
10487           to return admin configuration data by host, username and/or
10488           nickname.
10489
10490 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10491
10492         * Implemented WHOWAS command to the server.  Added the functions:
10493
10494           silc_server_command_whowas_parse,
10495           silc_server_command_whowas_send_reply,
10496           silc_server_command_whowas_from_client and
10497           silc_server_command_whowas_from_server
10498
10499         * Added <Client ID> argument to the WHOWAS command reply.  Updated
10500           the protocol specs accordingly.
10501
10502         * Implemented WHOWAS command and command_reply to the client
10503           library.
10504
10505           Implemented the WHOWAS printing on the user interface.
10506
10507 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10508
10509         * Added new argument to the WHOWAS command reply, the real name.
10510           It is an optional argument.  Updated the protocol specs.
10511
10512         * Added SilcIDCacheDestructor callback that is registered when
10513           the SilcIDCache is allocated.  The callback is called when
10514           an cache entry in the ID Cache expires, or is purged from the
10515           cache.  Added into lib/silccore/idcache.[ch].
10516
10517           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
10518           to destruct the client entries when the cache entry expires.
10519           Other ID Cache's in server and in the client library ignores
10520           the destructor.
10521
10522         * If the ID Cache entry's `expire' field is zero then the entry
10523           never expires.  Added boolean `expire' argument to the
10524           silc_idcache_add function in the lib/silccore/idcache.[ch].
10525           If it is TRUE the default expiry value is used.
10526
10527         * Added silc_server_free_client_data_timeout that is registered
10528           when client disconnects.  By default for 5 minutes we preserve
10529           the client entry for history - for WHOWAS command.
10530
10531 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10532
10533         * Added support to the server to enforce that commands are not
10534           executed more than once in 2 seconds.  If server receives
10535           commands from client more frequently, timeout is registered
10536           to process the commands.  Affected file silcd/command.c.
10537           Added new function silc_server_command_process_timeout.
10538
10539         * Changed NICK_NOTIFY handling in client library to check that
10540           if the client's nickname was changed, so there is no need to
10541           resolve anything from the server.
10542
10543         * Removed error printing from the WHOIS and IDENTIFY commands.
10544           If error occurs then it is ignored silently in the client library.
10545           The application, however, may map the received error to
10546           human readable error string.  The application currently maps
10547           the NO_SUCH_NICKNAME error to string.
10548
10549         * Made the command status message public to the application.  Moved
10550           them from lib/silcclient/command_reply.c to
10551           lib/silcclient/command_reply.h.  The application can map the
10552           received command status to the string with the
10553           silc_client_command_status_message function.
10554
10555         * Added check to the server to check that client's ID is same
10556           as the Source ID in the packet the client sent.  They must
10557           match.
10558
10559 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10560
10561         * Added dist-bzip hook to the Makefile.am to make bzip2
10562           compressed distributions.
10563
10564 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10565
10566         * Server now enforces the maximum length for the nickname and
10567           the channel as protocol specification dictates.  128 bytes for
10568           nickname and 256 bytes for channel name.
10569
10570         * Moved the WHOIS printing to the application.  The client libary
10571           does not print out the WHOIS information anymore, the application
10572           must do it.  Renamed silc_client_command_reply_whois_print to
10573           the silc_client_command_reply_whois_save.
10574
10575           The client's idle time is also sent to the application now, and
10576           the idle is shown on screen.
10577
10578         * Added silc_client_command_reply_identify_save to save the
10579           received IDENTIFY entries.
10580
10581         * Do not check for channel private keys in message sending and
10582           reception if the channel does not have the PRIVKEY mode set.
10583           Affected file lib/silclient/client_channel.c.
10584
10585 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10586
10587         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
10588           just surfaced after chaning the JOIN procedure.
10589
10590 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10591
10592         * Added silc_client_get_clients_by_list to get client entries
10593           from Client ID list, that is returned for example by JOIN
10594           and USERS command replies.  The application should use this
10595           function for example when JOIN command reply is received to
10596           resolve the clients already on the channel (library does not
10597           do that anymore as USERS command reply is not used in the JOIN
10598           procedure anymore).  Affected files lib/silcclient/silcapi.h and
10599           lib/silcclient/idlist.c.
10600
10601         * JOIN command reply and USERS command reply returns now SilcBuffer
10602           pointers instead of unsigned char pointers when returning
10603           the client list and mode list.
10604
10605         * Added <Client ID> argument to the JOIN command reply, mainly
10606           for the server to identify for which client the command was
10607           originally sent.  Updated protocol specs accordingly.
10608
10609         * Added SilcDlist private_key pointer to the SilcChannelEntry
10610           in the client to support the channel private keys.  Affected
10611           file is lib/silcclient/idlist.h.
10612
10613         * Added SilcChannelPrivateKey argument to the function
10614           silc_client_send_channel_message so that application can choose
10615           to use specific private ke if it wants to.  If it is not provided,
10616           the normal channel key is used, unless private keys are set.
10617           In this case the first (key that was added first) is used
10618           as the encryption key.
10619
10620         * Implemented the support for channel private key handling.
10621           Implemented the following functions:
10622
10623           silc_client_add_channel_private_key,
10624           silc_client_del_channel_private_keys,
10625           silc_client_del_channel_private_key,
10626           silc_client_list_channel_private_keys and
10627           silc_client_free_channel_private_keys
10628
10629           Affected file lib/silcclient/client_channel.c.
10630
10631         * Added the support for the private keys in the channel message
10632           sending and encryption and in the message reception and
10633           decryption.  Affected funtions are
10634           silc_client_send_channel_message and silc_client_channel_message.
10635
10636 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10637
10638         * Added SKE's key verify callback to the client library's
10639           KE protocol context. Affected files lib/silcclient/protocol.[ch].
10640
10641         * Removed the statement that server (or router) must send USERS
10642           command reply when joining to the channel so that the client
10643           knows who are on the channel.  Instead, the client list and
10644           client's mode list is now sent in the JOIN command reply to the
10645           client who joined channel.  This is better solution.
10646
10647         * Added function silc_server_get_users_on_channel and function
10648           silc_server_save_users_on_channel to the silcd/server.[ch].
10649
10650         * Removed function silc_server_command_send_users from the
10651           silcd/command.c.
10652
10653         * Do not show topic on the client library anymore.  The topic is
10654           sent in the command reply notify to the application and the
10655           application must show the topic now.
10656
10657 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10658
10659         * Added client searching by nickname hash into the IDENTIFY and
10660           WHOIS commands in the server as they were clearly missing from
10661           them.  Affected file is silcd/command.c.
10662
10663         * Fixed a bug in private message receiving in the client library.
10664           The remote ID was freed and it wasn't supposed, now it is
10665           duplicated.
10666
10667 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10668
10669         * Minor fix to the channel payload; allocate the data area, as it
10670           needs to be of specific length.
10671
10672         * If the key agreement port is zero then the operating
10673           system will define the bound port.  Affected files are
10674           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10675
10676         * Added new function silc_channel_payload_decrypt into the file
10677           lib/silccore/silcchannel.[ch].
10678
10679         * Moved the channel message etc, check from silc_packet_decrypt
10680           to applications.  The library calls now a generic
10681           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10682           when the packet is either normal or special.  This was done to
10683           allow more wide range of checking that was not allowed when
10684           the code was in library.  Now applications can do virtually any
10685           checks to the packet and return to the library the decision how
10686           the packet should be processed.  Affected files are
10687           lib/silccore/silcpacket.[ch].
10688
10689           Added silc_server_packet_decrypt_check to the server and
10690           silc_client_packet_decrypt_check to the client library.
10691
10692         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10693           to send with specified source and destination information.
10694
10695         * Channel message delivery between routers was broken after the
10696           channel key distribution was fixed earlier.  The channel key
10697           was used be to distributed to other routers as well which is not
10698           allowed by the protocol.  Now this is fixed and channel keys
10699           really are cell specific and the channel message delivery between
10700           routers comply with the protocol specification.
10701
10702         * Fixed various commands in server to check also the global list
10703           for the channel entry and not just the local list.  The affected
10704           file silcd/command.c.
10705
10706 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10707
10708         * Added assert()s to buffer formatting and unformatting routines
10709           to assert (if --enable-debug) when error occurs.  Affected
10710           file: lib/silcutil/silcbuffmt.c.
10711
10712         * Changed to auto-reconnect to check whether the remote host is
10713           router and register the re-connect timeout if it is.  It used
10714           to check that whether we are normal server, but router must do
10715           auto-reconnect with another router as well.  Affected file
10716           silcd/server.c.
10717
10718         * Removed the [<key len>] option from CMODE command as the cipher
10719           name decides the key length, nowadays.  See the defined ciphers
10720           from the protocol specification.
10721
10722         * Added [<hmac>] option to the CMODE command to define the HMAC
10723           for the channel.  Added SILC_CMODE_HMAC channel mode.
10724
10725         * Added [<hmac>] option for the JOIN command so that user can
10726           select which HMAC is used to compute the MACs of the channel
10727           messages.
10728
10729         * Added Hmac field to the Channel Message Payload.  The integrity
10730           of plaintext channel messages are now protected by computing
10731           MAC of the message and attaching the MAC to the payload.  The
10732           MAC is encrypted.  Now, it is clear that this causes some
10733           overhead to the size of the packet but rationale for this is that
10734           now the receiver can verify whether the channel message decrypted
10735           correctly and also when private keys are set for the channel the
10736           receiver can decrypt the packet with several keys and check from
10737           the MAC which key decrypted the message correctly.
10738
10739         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10740           lib/silccrypt/silccipher.[ch].
10741
10742         * Added silc_hash_len to return the digest length into the
10743           lib/silcrypt/silchash.[ch].
10744
10745         * Rewrote parts of Silc Channel Payload interface in the
10746           lib/silccore/silcchannel.[ch].  The encode function now also
10747           encrypts the packet and parse function decrypts it.
10748
10749 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10750
10751         * Fixed a minor formatting bug in the SKE's key material processing.
10752           It actually might have processed the keys wrong way resulting
10753           into wrong keys.
10754
10755         * Redefined the mandatory HMAC algorithms and added new algorithms.
10756           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10757           and hmac-md5 truncated to 96 bits.  The mandatory is now
10758           hmac-sha1-96.  Rest are optional (including the one that used
10759           to be mandatory).  Rationale for this is that the truncated HMAC
10760           length is sufficient from security point of view and can actually
10761           make the attack against the HMAC harder.  Also, the truncated
10762           HMAC causes less overhead to the packets.  See the RFC2104 for
10763           more information.
10764
10765         * Added new [hmac] configuration section.  The SKE used to use
10766           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10767           is of course wrong.  The official names that must be proposed in
10768           the SKE are the ones defined in the protocol specification
10769           (hmac-sha1-96 for example).  The user can configure any hmac
10770           using any hash function configured in the [hash] section.  At
10771           least, the mandatory must be configured.
10772
10773           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10774
10775         * Added HMAC list to the SKE proposal list.  It has now both
10776           hash algorithm list and HMAC list.  This makes the protocol
10777           incompatible with previous versions.  The SKE now seems to work
10778           the way it is supposed to work, for the first time actually.
10779
10780         * Defined plain Hash algorithms to the protocol specification.
10781           Added sha1 and md5.
10782
10783 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10784
10785         * Implemented support for key agreement packets into the server.
10786           Added functions silc_server_key_agreement and
10787           silc_server_send_key_agreement.  Other than these functions,
10788           server has nothing to do with this packet.
10789
10790         * Added support for private message key packets into the server.
10791           Added functions silc_server_private_message_key and
10792           silc_server_send_private_message_key.
10793
10794         * Updated TODO.
10795
10796         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10797           called in the protocol's final callback instead in the END
10798           protocol state.  This makes a little more sense and in the same
10799           time in client we can use the same protocol routines for normal
10800           key exchange and to key agreement packet handling as well.
10801
10802         * Added to both client's and server's KE protocol context the
10803           SilcSKEKeyMaterial pointer to save the key material.  We will
10804           bring the key material to the protocol's final callback by doing
10805           this.  The final callback must free the key material.
10806
10807         * Added SKE's packet_send callback into client's KE protocol
10808           context so that the caller can choose what packet sending function
10809           is used.  This way we can use different packet sending when
10810           doing normal SKE when doing key agreement packet handling (in
10811           the key agreement packet handling we do not want to encrypt
10812           the packets).
10813
10814         * Implemented the responder side of the key agreement routines
10815           in the client.  The client can now bind to specified port and
10816           accept incoming key negotiation.  The key material is passed
10817           to the application after the protocol is over.
10818
10819         * Implemented the processing of incoming Key Agreement packet
10820           in the client.  Added function silc_client_key_agreement to
10821           process the packet.
10822
10823         * Implemented the intiator side of the key agreement routines
10824           in the client.  The client can now initiate key agreement with
10825           another remote client.  The key material is passed to the
10826           application after the protocol is over.
10827
10828         * Created client_keyagr.c to include all the key agreement
10829           routines.
10830
10831         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10832           SILC_TASK_CALLBACK except that it is not static.
10833
10834         * Created client_notify.c and moved the Notify packet handling
10835           from the client.[ch] into that file.
10836
10837         * Created client_prvmsg.c and moved all private message and
10838           private message key routines from the client.[ch] into that file.
10839
10840         * Create client_channel.c and moved all channel message and
10841           channel private key routines from the client.[ch] into that file.
10842
10843         * Changed silc_client_get_client_by_id_resolve to resolve with
10844           WHOIS command instead of IDENTIFY command, in the file
10845           lib/silclient/idlist.c.
10846
10847 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10848
10849         * Implemented the SKE's responder side to the Client library.
10850
10851         * When FAILURE is received to the protocol do not trust it
10852           blindly.  Register a timeout to wait whether the remote closes
10853           the connection as it should do it, only after that process the
10854           actual failure.  This was changed to both client and server.
10855
10856         * Added client_internal.h to include some of the structures
10857           there instead of client.h in lib/silcclient/.
10858
10859         * Added function silc_task_unregister_by_callback to unregister
10860           timeouts by the callback function.
10861
10862 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10863
10864         * Some "Incomplete WHOIS info" errors has been appearing on the
10865           log files.  Took away the entry->userinfo check from WHOIS
10866           reply sending.  The entry->userinfo is now " " if client did not
10867           provide one.  I thought this was fixed earlier but something
10868           is wrong still.  Let's see if the error still appears.
10869
10870 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10871
10872         * Fixed a minor bug in the login when the channel key is
10873           re-generated in the server.  It used to generate the key in
10874           wrong order and thus caused problems in the channel traffic.
10875
10876         * Fixed a minor bug in channel key distsribution after
10877           KICK command.  The key was not sent to the router even though
10878           it should've been.
10879
10880 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10881
10882         * Added silc_ske_process_key_material_data as generic routine
10883           to process any key material as the SILC protocol dictates.  The
10884           function is used by the actual SKE library but can be used by
10885           applications as well.  This relates to the private message keys
10886           and the channel private keys since they must be processed the
10887           same way the normal SILC session keys.  The protocol dictates
10888           this.  Affected files: lib/silcske/silcske.[ch].
10889
10890           Added also silc_ske_free_key_material to free the
10891           SilcSKEKeyMaterial structure.
10892
10893         * Defined silc_cipher_set_key function to set the key for
10894           cipher without using the object's method function.  The affected
10895           files: lib/silccrypt/silccipher.[ch].
10896
10897         * Implemented silc silc_client_add_private_message_key,
10898           silc_client_add_private_message_key_ske,
10899           silc_client_del_private_message_key,
10900           silc_client_list_private_message_keys and
10901           silc_client_free_private_message_keys functions in the
10902           client library.
10903
10904           Added functions silc_client_send_private_message_key to send
10905           the Private Message Key payload and silc_client_private_message_key
10906           to handle incoming Private Message Key payload.
10907
10908         * Added Cipher field to the Private Message Key payload to set
10909           the cipher to be used.  If ignored, the default cipher defined
10910           in the SILC protocol (aes-256-cbc) is used.
10911
10912 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10913
10914         * Removed lib/silcclient/ops.h file.
10915
10916           Redefined parts of the SILC Client Library API. Created new
10917           file silcapi.h that deprecates the ops.h file and defines the
10918           published Client Library API.  Defined also private message key
10919           API and channel private key API into the file.
10920
10921           This is the file that the application must include from the
10922           SILC Client Library.  Other files need not be included by
10923           the application anymore.
10924
10925         * Added new key_agreement client operation callback and also
10926           defined the Key Agreement library API for the application.
10927
10928 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10929
10930         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10931           is used by clients to request key negotiation  between another
10932           client in the SILC network.  If the negotiation is started it
10933           is performed using the SKE protocol.  The result of the
10934           negotiation, the secret key material, can be used for example
10935           as private message key.
10936
10937           Implemented the Key Agreement payload into the files
10938           lib/silccore/silauth.[ch].
10939
10940 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10941
10942         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10943           and defined the key lengths for the algorithms.  Changed the
10944           code accordingly.  The default key length is now 256 bits.
10945
10946         * Fixed SKE key distribution function silc_ske_process_key_material
10947           when the key length is more than 128 bits.  The default key
10948           length in SILC is now 256 bits.
10949
10950         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
10951           to indicate unsupported algorithm.
10952
10953         * Renamed rijndael.c to aes.c and all functions as well.
10954
10955         * Fixed a long standing channel key setting bug in client library.
10956           Weird that it has never surfaced before.
10957
10958         * Fixed bug in channel deletion.  If the entire channel is removed
10959           then it must also delete the references of the channel entry
10960           from the client's channel list as the client's channel entry and
10961           the channel's client entry share same memory.
10962
10963 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10964
10965         * Implemented CONNECT and SHUTDOWN commands in the client.
10966
10967         * Implemented CLOSE command to the client.
10968
10969         * Added the function silc_idlist_find_server_by_name into the
10970           files silcd/idlist.[ch].
10971
10972           Added the function silc_idlist_find_server_by_conn into the
10973           files silcd/idlist.[ch].
10974
10975 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10976
10977         * DIE command was renamed to SHUTDOWN.  Updated the both code
10978           and protocol specs.
10979
10980         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
10981           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
10982
10983         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
10984           side.
10985
10986         * Added function silc_server_create_connection function to create
10987           connection to remote router.  My server implementation actually
10988           does not allow router to connect to normal server (it expects
10989           that normal server always initiates the connection to the router)
10990           so the CONNECT command is only good for connecting to another
10991           router.
10992
10993 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10994
10995         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
10996           or some other client was kicked from the channel.
10997
10998           Implemented the handling of the notify type to both client
10999           and server.
11000
11001           Implemented silc_server_send_notify_kicked to send the KICKED
11002           notify.  It is used to send it to the server's primary router.
11003
11004         * Implemented the KICK command into server and client.
11005
11006         * Added `query' argument to the silc_idlist_get_client function
11007           to indicate whether to query the client from server or not if
11008           it was not found.
11009
11010         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
11011           to indicate that the client is not channel founder.
11012
11013         * Updated TODO.
11014
11015 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11016
11017         * Removed the rng context from SilcPacketContext structure and
11018           changed that the packet routine uses the Global RNG API.
11019
11020 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11021
11022         * Added support for quit message that client can "leave" on the
11023           channel when it quits the SILC.  It is ditributed inside the
11024           SILC_NOTIFY_TYPE_SIGNOFF notify type.
11025
11026           Added silc_server_free_client_data that will take the
11027           signoff message as argument.
11028
11029         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
11030
11031 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11032
11033         * Updated parts of the protocol specification to keep it up
11034           to date.
11035
11036 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11037
11038         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
11039           payloads in one packet.
11040
11041         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
11042           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
11043           use now the new List flag.
11044
11045         * Also deprecated the following packet types: REPLACE_ID,
11046           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
11047
11048         * Added list support for Notify packet in server.
11049
11050         * Added silc_server_send_notify_channel_change to send the
11051           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
11052           the silc_server_send_replace_id.
11053
11054         * Added silc_server_send_notify_nick_change to send the
11055           NICK_CHANGE notify type.  Deprecates the function
11056           silc_server_send_replace_id.
11057
11058         * Added silc_server_send_notify_join to send the JOIN notify type.
11059           Deprecates the function silc_server_send_new_channel_user.
11060
11061         * Added silc_server_send_notify_leave to send LEAVE notify type.
11062           Deprecates the function silc_server_send_remove_channel_user.
11063
11064         * Added silc_server_send_notify_cmode and
11065           silc_server_send_notify_cumode to send CMODE and CUMODE notify
11066           types.  Deprecates the silc_server_send_set_mode function.
11067
11068         * Added SERVER_SIGNOFF notify type to indicate that server has
11069           quit.  This means that all clients on the channel from that
11070           server will drop.  This can be also used when netsplit happens.
11071
11072           Deprecated REMOVE_ID packet type since it is not needed anymore
11073           even from server.
11074
11075           Added silc_server_send_notify_server_signoff to send the
11076           SERVER_SIGNOFF notify type.  Deprecates the function
11077           silc_server_send_remove_id.
11078
11079           Added also silc_server_send_notify_signoff to send the
11080           SIGNOFF notify type.
11081
11082         * Employed the PKCS #1. It is the mandatory way to do RSA in the
11083           SILC protocol from this day on.  Changed the protocol
11084           specification as well.
11085
11086         * Added silc_server_send_notify_topic_set to send TOPIC_SET
11087           notify type.  It is used between routers to notify about
11088           topic changes on a channel.
11089
11090         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
11091           ID data.
11092
11093         * Partly updated the protocol specification to comply with the
11094           changes now made.  It is still though a bit outdated.
11095
11096         * The JOIN notify type now takes one extra argument <Channel ID>.
11097           The packet used to be destined to the channel but now the
11098           JOIN type may be sent as list thus it is impossible to
11099           destine it to any specific channel.  By adding this argument
11100           it is again possible.
11101
11102 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11103
11104         * Added CREDITS file.  The CHANGES and CREDITS file will appear
11105           in the distribution as well.
11106
11107 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11108
11109         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
11110           types in the server's silcd/packet_receive.c.
11111
11112         * Implemented CMODE and CUMODE to work in router environment.
11113
11114         * Fixed minor encoding and decoding buglet from the
11115           lib/silccore/silcmode.c.
11116
11117         * Fixed buffer overflow from lib/silcclient/command.c in USERS
11118           command parsing.
11119
11120 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
11121
11122         * Changed all SilcConfigServer* and silc_config_server* to
11123           SilcServerConfig* and silc_server_config*, respectively.
11124           Patch by Bostik.
11125
11126 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11127
11128         * Associated the ID (client or server ID) to the Authentication
11129           Payload to avoid any possibility of forging.  Updated the
11130           protocol specification and the code accordingly.
11131
11132 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11133
11134         * The RSA key length is now save to the RsaKey context in the
11135           key generation process in lib/silccrypt/rsa.c.  The key length
11136           is now used to figure out the maximum size of the block allowed
11137           to be encrypted/signed.
11138
11139         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
11140           is equivalent to the silc_mp_mp2bin but does not allocate any
11141           memory.
11142
11143         * Changed silc_mp_mp2bin API to take length argument.  If it is
11144           non-zero then the buffer is allocated that large.  If zero, then
11145           the size is approximated using silc_mp_sizeinbase, which however
11146           is not relieable.
11147
11148         * Created Global RNG API which is global RNG that application can
11149           initialize.  After initializing, any routine anywhere in the
11150           code (including library) can use RNG without allocating a new
11151           RNG object.  This was done to allow this sort of use of the
11152           RNG in code that has no chance to allocate RNG object.  All
11153           applications currently allocate this and many routines in the
11154           library use this.  Affected file lib/silccrypt/silcrng.[ch].
11155
11156         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
11157           it to use the Global RNG API.
11158
11159         * Defined Authentication Payload into protocol specification that
11160           is used during SILC session to authenticate entities.  It is
11161           used for example by client to authenticate itself to the server
11162           to obtain server operator privileges.
11163
11164           Implemented this payload into the lib/silccore/silcauth.[ch].
11165           Implemented also routines for public key based authentication
11166           as the new protocol specification dictates.
11167
11168           Moved definitions of different authentication methods from
11169           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
11170
11171         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
11172           silc_pkcs_verify and silc_pkcs_sign_with_hash and
11173           silc_pkcs_verify_with_hash functions into the file
11174           lib/silccrypt/silcpkcs.[ch].
11175
11176 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11177
11178         * The client entry's userinfo pointer must be always valid.
11179           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
11180           will fail since it requires the userinfo.  Now, the userinfo
11181           is allocated as "" if actual userinfo does not exist.  Actually,
11182           it must exist and it is totally Ok to drop client connections
11183           that does not announce the userinfo.  However, we will make
11184           this workaround for now.
11185
11186         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
11187           to return the remote port by socket.
11188
11189 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11190
11191         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
11192           SILC_SERVER_PENDING_EXEC and added an new macro
11193           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
11194           data or when error occurs while processing the pending command.
11195
11196           Added new argument `destructor' into silc_server_command_pending
11197           and to the SilcServerCommandPending object.  This destructor is
11198           now called after calling the pending callback or if error occurs
11199           immediately.  If error occurs the actual pending callback won't
11200           be called at all - only the destructor.  The destructor may be
11201           NULL if destructor is not needed.
11202
11203           All this applies for client library code as well.  Similar
11204           changes were made there as well for the pending commands.
11205
11206           In the client, the application must now allocate the
11207           SilcClientCommandContext with the silc_client_command_alloc
11208           function.
11209
11210         * Added reference counter to the SilcServerCommandContext.  Added
11211           function silc_server_command_alloc and silc_server_command_dup
11212           functions.
11213
11214           Same type of functions added to the client library for the same
11215           purpose as well.
11216
11217         * Removed the cmd_ident from IDListData away since it is now
11218           global for all connections.  It is the command identifier used
11219           in command sending and with pending commands.  The affected file
11220           is silcd/idlist.h.
11221
11222         * Added reference counter to the SilcSocketConnection objecet to
11223           indicate the usage count of the object.  The object won't be
11224           freed untill the reference counter hits zero.  Currently only
11225           server uses this, and client ignores it.  The client must be
11226           set to use this too later.  The affected files are
11227           lib/silccore/silcsockconn.[ch].  Added also the function
11228           silc_socket_dup to increase the reference counter.
11229
11230           This was mainly added because it is possible that the socket
11231           is removed underneath of pending command or other async
11232           operation.  Now it won't be free'd and proper DISCONNECTING
11233           flags, etc. can be set to avoid sending data to connection that
11234           is not valid anymore.
11235
11236         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
11237           the connection.  After that it sets SILC_SET_DISCONNECTED.
11238           It is, however, possible that the socket data is not still freed.
11239           The silc_server_packet_process now checks that data is not
11240           read or written to connection that is DISCONNECTED.  The socket
11241           get's freed when the reference counter hits zero.
11242
11243 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11244
11245         * Changed the client operation API: channel_message operation's
11246           `sender' is now the client entry of the sender, not the nickname
11247           and the `channel' is the channel entry, not the channel name.
11248
11249           In the private_message operation the `sender' is now also the
11250           client entry of the sender not the nickname.
11251
11252           Affected file is lib/silcclient/ops.h and all applications
11253           using the client operations.
11254
11255 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11256
11257         * Moved the calling of ops->connect() from connect_to_server_final
11258           into receive_new_id functin since that is the point when the
11259           client is actually allowed to send traffic to network.  The
11260           affected file is lib/silcclient/client.c.
11261
11262 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11263
11264         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
11265           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
11266           (if needs broadcasting) instead of broadcasting the packets one
11267           by one which would make a burst in the network traffic.
11268
11269         * Added `broadcast' argument to the functions in silcd/server.[ch]
11270           silc_server_create_new_channel[_with_id] to indicate whether
11271           to send New Channel packet to primary router.
11272
11273 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11274
11275         * Added new function into the silcd/server.[ch] files:
11276           silc_server_create_new_channel_with_id to create new channel with
11277           already existing Channel ID.
11278
11279         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
11280           lib/silccore/silcpacket.h.  This packet is used t send list of
11281           Set Mode payloads inside one packet.  Server uses this to set
11282           the modes for the channels and clients on those channels, that it
11283           announced to the router when it connected to it.  The protocol
11284           specification has been updated accordingly.
11285
11286         * The silc_server_new_channel did not handle the packet coming
11287           from normal server as it normally does not send that.  However,
11288           when it announces its channels it does send it.  Implemented
11289           the support for that.
11290
11291         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
11292           into the file lib/silccore/id.h.
11293
11294 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11295
11296         * Fixed memory leaks in the functions silc_idlist_del_client,
11297           silc_idlist_del_channel and silc_idlist_del_server in the file
11298           silcd/idlist.c.  All of those leaked like a sieve.
11299
11300         * Fixed some small memory leaks in the client's function
11301           silc_client_notify_by_server.
11302
11303         * Added functions into silcd/server.c: silc_server_announce_clients,
11304           silc_server_announce_channels and silc_server_announce_server.
11305           These functions are used by normal and router server to announce
11306           to its primary router about clients, channels and servers (when
11307           router) that we own.  This is done after we've connected to the
11308           router.
11309
11310           These functions effectively implements the following packet types:
11311           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
11312           and SILC_PACKET_NEW_ID_LIST.
11313
11314         * Added new functions into the silcd/packet_receive.[ch]:
11315           silc_server_new_id_list, silc_server_new_channel_list and
11316           silc_server_new_channel_user_list to handle the incoming
11317           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
11318
11319         * Added support of changing Channel ID in the function
11320           silc_server_replace_id.  If the server that announces a channel
11321           to the router already exists in the router (with same name but
11322           with different Channel ID), router is responsible to send
11323           Replace ID packet to the server and force the server to change
11324           the Channel ID to the one router has.
11325
11326         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
11327           client that the Channel ID has been changed by the router.  The
11328           normal server sends this to the client.  Client must start using
11329           the new Channel ID as the channel's ID.
11330
11331           Implemented handling of this new type into lib/silcclient/client.c
11332           into the function silc_client_notify_by_server.
11333
11334         * Added new function silc_idlist_replace_channel_id into the files
11335           silcd/idlist.[ch] to replace the Channel ID.
11336
11337 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11338
11339         * Call silc_server_command_identify_check always when processing
11340           the IDENTIFY command in silcd/command.c
11341
11342 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11343
11344         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
11345           send keepalive packets.  The packet can be sent by clients,
11346           servers and routers.
11347
11348           Added function silc_socket_set_heartbeat into the file
11349           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
11350           If not set, the heartbeat is not performed.  The actual
11351           heartbeat is implemented in the low level socket connection
11352           library.  However, application is responsible of actually
11353           sending the packet.
11354
11355           Added silc_server_send_heartbeat to send the actual heartbeat
11356           packet into silcd/packet_send.[ch].  Server now performs
11357           keepalive with all connections.
11358
11359         * Added silc_task_get_first function into lib/silcutil/silctask.c
11360           to return the timeout task with shortest timeout.  There was a bug
11361           in task unregistration that caused problems.  TODO has been
11362           updated to include that task system must be rewritten.
11363
11364         * The client library will now resolve the client information when
11365           receiving JOIN notify from server for client that we know but
11366           have incomplete information.
11367
11368         * Rewrote parts of silc_server_remove_from_channels and
11369           silc_server_remove_from_one_channel as they did not remove the
11370           channel in some circumstances even though they should've.
11371
11372         * Encryption problem encountered in server:
11373
11374           The LEAVE command used to send the Channel Key packet to the
11375           router immediately after generating it.  However, the code
11376           had earlier sent Remove Channel user packet but not immediately,
11377           ie. it was put to queue.  The order of packets in the router
11378           was that Channel Key packet was first and Remove Channel User
11379           packet was second, even though they were encrypted in the
11380           reverse order.  For this reason, MAC check failed.  Now, this
11381           is fixed by not sending the Channel Key packet immediately but
11382           putting it to queue.  However, this is more fundamental problem:
11383           packets that are in queue should actually not be encrypted
11384           because packets that are sent immediately gets encrypted
11385           actually with wrong IV (and thus MAC check fails).  So, packets
11386           that are in queue should be encrypted when they are sent to
11387           the wire and not when they put to the queue.
11388
11389           However, the problem is that the current system has not been
11390           designed to work that way.  Instead, the packet is encrypted
11391           as soon as possible and left to the queue.  The queue is then
11392           just purged into wire.  There won't be any fixes for this
11393           any time soon.  So, the current semantic for packet sending
11394           is as follows:
11395
11396           o If you send packet to remote host and do not force the send
11397           (the packet will be in queue) then all subsequent packets to the
11398           same remote host must also be put to the queue.  Only after the
11399           queue has been purged is it safe again to force the packet
11400           send immediately.
11401
11402           o If you send all packets immediately then it safe to send
11403           any of subsequent packets through the queue, however, after
11404           the first packet is put to queue then any subsequent packets
11405           must also be put to the queue.
11406
11407           Follow these rules and everything works fine.
11408
11409 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11410
11411         * Added new function silc_server_remove_clients_by_server to
11412           remove all client entries from ID list when the server connection
11413           is lost.  In this case it is also important to invalidate all
11414           client entires as they hold the invalid server entry.  This
11415           fixes fatal bug when server has lost connection and will reconnect
11416           again.
11417
11418 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11419
11420         * Made some sanity checks to silc_server_daemonise like to check
11421           whether the requested user and group actually exists.
11422
11423         * Added sanity check to SKE's silc_ske_responder_finish to check
11424           that the public and private key actually is valid.
11425
11426         * Invalidate the client's nickname when receiving Replace ID
11427           packet and the Client ID is being replaced.  This means that the
11428           server will query the nickname if someone needs it (client)
11429           a bit later.
11430
11431         * Sort the ID Cache in client library when the ID Cache data
11432           has changed (needs sorting).
11433
11434         * Do not allow for SILC client to create several connections to
11435           several servers.  The client does not support windows right now
11436           and generating multiple connections causes weird behaviour.
11437
11438           Irssi-silc client does support windows and can handle several
11439           connections without problems, see: www.irssi.org and SILC plugin.
11440
11441         * Fixed some places where client was added to the IDList.  The
11442           rule of thumb is following (in order to get everything right):
11443           If the client is directly connected local client then the
11444           `connection' argument must be set and `router' argument must be
11445           NULL to silc_idlist_add_client function.  If the client is not
11446           directly connected client then the `router' argument must
11447           bet set and the `connection' argument must be NULL to the
11448           silc_idlist_add_client function.
11449
11450         * The funtion silc_server_packet_send_local_channel actually did
11451           not check whether the client was locally connected or not.  It
11452           does that now.  Fixed a bug related to LEAVE command.
11453
11454         * Fixed Remove Channel User payload parsing bug in server's
11455           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
11456
11457         * The server's silc_server_save_channel_key now checks also the
11458           global ID list for the channel as it might not be in the local
11459           list.  Fixed a bug related to LEAVE command.
11460
11461         * Is this the end of the [<unknown>] buglet that has been lurking
11462           around for a long time?  A little for loop fix in server's
11463           silc_server_command_whois_parse that is used by both IDENTIFY
11464           and WHOIS command.  At least, this was a clear bug and a cause
11465           of one type of [<unknown>] buglet.
11466
11467         * WHOIS and IDENTIFY commands call the function
11468           silc_server_command_[whois/identify]_check function even if
11469           we are not router server.
11470
11471 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11472
11473         * Added --with-gmp configuration option.  If set the GMP
11474           is always compiled in the SILC source tree.  If not set then
11475           it is checked whether the system has the GMP3 installed.  If
11476           it has then the GMP won't be compiled (the system's headers
11477           and library is used), if it doesn't have it then the GMP is
11478           compiled in the SILC source tree.
11479
11480 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11481
11482         * Changed RSA private exponent generation to what PKCS #1
11483           suggests.  We try to find the smallest possible d by doing
11484           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
11485           not security fix but optimization.
11486
11487 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11488
11489         * Added new config entry [Identity] to fork the server and run
11490           it as specific user and group.  A patch from Bostik.
11491
11492         * Imported Dotconf configuration library into lib/dotconf.
11493           This will be used to create the SILC configuration files later.
11494           It will appear in the distsribution after this commit.
11495
11496 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11497
11498         * A big code auditing weekend happening.  Auditing code for
11499           obvious mistakes, bugs and errors.  Also, removing any code
11500           that is obsolete.
11501
11502           Removed files for being obsolete:
11503
11504           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
11505           inline in the file lib/silcutil/silcbuffer.h)
11506
11507           o lib/silcutil/silcbufutil.c (the header has inline versions)
11508
11509           Changed code to fix possible error conditions:
11510
11511           o The buffer formatting routines now check that the destination
11512           buffer really has enough space to add the data.  This applies for
11513           both buffer formatting and unformatting
11514           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
11515           unformatting was changed to accomodate following rules:
11516           XXX_*STRING_ALLOC will allocate space for the data into the pointer
11517           sent to the function while XXX_*STRING will not allocate or copy
11518           the data into the buffer.  Instead it sets the pointer from the
11519           buffer into the pointer sent as argument (XXX_*STRING used to
11520           require that the pointer must be allocated already).  This change
11521           makes this whole thing a bit more consistent and more optimized
11522           (note that the data returned in the unformatting with XXX_*STRING
11523           must not be freed now).  The routines return now -1 on error.
11524
11525           o Tried to find all code that use buffer_format and buffer_unformat
11526           and added return value checking to prevent formatting and
11527           especially unformatting errors and possible subsequent fatal
11528           errors.
11529
11530           o Changed ske->x and ske->KEY to mallocated pointers in
11531           lib/silcske/silcske.h.  Fixed possible data and memory leak.
11532
11533           o Added return value checking to all *_parse* functions.  Fixed
11534           many memory leaks as well.
11535
11536           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
11537           so that buffer overflows would not happen.  All code now also
11538           checks the return value as it can fail.
11539
11540 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11541
11542         * Added reconnection support to server if the normal server looses
11543           its connection to the router (for example if router is rebooted).
11544           The server performs normal reconnection strategy implemented
11545           to the server.  Affected file silcd/server.c.
11546
11547 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11548
11549         * Added new packet type SILC_PACKET_SET_MODE that is used to
11550           distribute the information about changed modes (for clients,
11551           channels and clients channel modes) to all routers in the
11552           network.  Updated the protocol specification accordingly.
11553
11554           Added functions into silcd/packet_send.c and
11555           silcd/packet_receive.c: silc_server_send_set_mode,
11556           silc_server_set_mode.
11557
11558           Added new files silcmode.[ch] into lib/silccore that implements
11559           the encoding and decoding of Set Mode Payload.  Added new type
11560           SilcSetModePayload.  Moved the definitions of different modes
11561           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
11562
11563 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11564
11565         * Oops, a little mistake in server's connection authentication
11566           protocol.  The protocol is not ended with FAILURE but with
11567           SUCCESS if the authentication is Ok. :)  Affected file is
11568           silcd/protocol.c.
11569
11570         * Implemented NICK_CHANGE notify handling in server in the file
11571           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
11572           the local clients on the channel.  After the changing nickname
11573           in router environment snhould work and the [<unknown>] nickname
11574           should appear no more.
11575
11576           The silc_server_replace_id function that receives the Replace ID
11577           payload now sends the NICK_CHANGE notify type also in the file
11578           silcd/packet_receive.c
11579
11580         * Changed WHOIS and IDENTIFY command to support the maximum amount
11581           of arguments defined in protocol specs (3328 arguments).  This
11582           fixed a bug that caused problems when there were more than three
11583           users on a channel.
11584
11585 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11586
11587         * Added extra parameter, command identifier, to the
11588           silc_client_send_command so that explicit command identifier
11589           can be defined.
11590
11591           Changed that ID list routines uses specific command identifier
11592           when sending WHOIS/IDENTIFY requests to the server so that they
11593           can be identified when the reply comes back.
11594
11595           Affected files lib/silcclient/command.[ch],
11596           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
11597
11598         * Added `sender' argument to silc_server_packet_send_to_channel
11599           to indicaet the sender who originally sent the packet to us
11600           that we are now re-sending.  Ignored if NULL.  Affected file
11601           silcd/packet_send.[ch].
11602
11603         * Added some server statistics support in silcd/server_internal.h
11604           SilcServerStatistics structure and around the server code.  Also
11605           send some nice statistics information when client is connecting
11606           to the client.
11607
11608 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11609
11610         * Fixed channel ID decoding in server's JOIN command reply in
11611           silcd/command_reply.c
11612
11613         * Fixed braodcasting of replace ID payload to not to send it if
11614           we are standalone server in silcd/packet_receive.c.
11615
11616         * Fixed all channel message sending routines to not to send
11617           packets to clients that has router set, since they are routed
11618           separately in the same function earlier.  Affects file
11619           silcd/packet_send.c and all channel packet sending functions.
11620
11621         * In USERS reply, res_argv[i] are not allocated, the table
11622           is allocated.  Thus changed that free the table, not its
11623           internals.
11624
11625         * In server's whois_check and identify_check if the client is
11626           locally connected do not send any WHOIS commands - they are not
11627           needed.
11628
11629 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11630
11631         * Fixed some minor bugs in client when sending WHOIS command.  The
11632           arguments was in wrong order.
11633
11634         * Removed statis function add_to_channel from server in
11635           silcd/command.c that was previously used with the joining but
11636           is obsolete now.
11637
11638         * Tested USERS command in router environment successfully with two
11639           routers, two servers and two clients.
11640
11641 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11642
11643         * Reorganized the USERS command and command reply in client library
11644           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
11645           When the command is given by user we register a pending command
11646           callback that will reprocess the command after the reply has been
11647           received from the server.  When reprocessing the packet we then
11648           display the information.  Thus, the USERS information is displayed
11649           now in the command callback instead of in the command reply
11650           callback.  The processing of the command is same as previously
11651           when server has sent the command reply in the JOINing process.
11652
11653         * Added to USERS command in silcd/command_reply.c to join the client,
11654           we didn't use to know about, to the channel after we've created
11655           a client entry for it.  Also, for clienet we did know already still
11656           check whether it is on the channel or not and add it if not.
11657
11658         * Removed silc_server_command_join_notify as the function and its
11659           use was obsolete.
11660
11661 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11662
11663         * Changed the client's pending command handling to the same as the
11664           server's pending command handling.  It is also now possible to
11665           execute command reply functions from other command reply
11666           function as the function callbacks for commands and command
11667           replies are one and same.  The pending commands are not static
11668           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11669           in client connection context.  Thus, pending commands are server
11670           connection specific as it is convenient.
11671
11672           Changed the function silc_client_command_pending and
11673           silc_client_command_pending_del and added new function
11674           silc_client_command_pending_check.  Removed the
11675           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11676           macros.
11677
11678         * Added cmd_ident, current command identifier, to the client
11679           connection context in lib/silcclient/client.h to keep track on
11680           command identifiers used in command sending.  Client's command reply
11681           function handling now supports the mandatory command identifiers.
11682
11683         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11684           funtions in client to fully support pending command callbacks.
11685
11686         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11687           as one of the arguments to the application in the command reply
11688           client operation.
11689
11690         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11691           before first releasing SILC but came back.  Now it is removed again
11692           and should come back nomore.  The FORWARDED flag was used only
11693           by the JOINing procedure by forwarding the command packet to router.
11694           Now, the JOINing procedure has been changed to more generic (due
11695           to various router environment issues) and FORWARDED is not needed
11696           anymore for anything.  The protocol specification is yet to be
11697           updated.
11698
11699           Now, removed silc_server_packet_forward from server and the flag
11700           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11701
11702 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11703
11704         * Renamed NAMES command to USERS command.  The NAMES was named that
11705           due to historical reasons.  Now it is renamed.  Also, rewrote
11706           parts of the USERS command.  The nickname list is not sent anymore
11707           by the server.  Only Client ID and mode lists are sent in the USERS
11708           command.  Changed this also to the protocol specification.
11709
11710           The client now resolves the names and stuff after it receives
11711           the USERS list from the server when joining to the channel.
11712
11713         * WHOIS and IDENTIFY commands has been changed to support multiple
11714           Client ID's per command.  One can now search for multiple users
11715           in the network by sending only one WHOIS or IDENTIFY command.
11716           Changed the code and the protocol specifications.
11717
11718         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11719           uses silc_server_command_whois_parse to parse the request. */
11720
11721         * If normal server, do not parse the WHOIS and IDENTIFY requests
11722           before sending it to the router.  Saves some time.
11723
11724 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11725
11726         * Fixed JOIN command on client library.  Wrong number of arguments
11727           used to crash the client.
11728
11729         * Added silc_server_channel_has_global function to check whether
11730           channel has global users or not.
11731
11732         * Added silc_server_channel_has_local function to check whether channel
11733           has locally connected clients on the channel.
11734
11735         * The silc_server_remove_from_one_channel now checks whether the
11736           channel has global users or not after given client was removed from
11737           the channel.  It also checks whether the channel has local clients
11738           on the channel anymore.  If it does not have then the channel entry
11739           is removed as it is not needed anymore.
11740
11741         * The silc_server_notify now checks on JOIN notify whether the joining
11742           client is one of locally connected or global.  If it is global then
11743           the channel has now global users on the channel and that is marked
11744           to the channel entry.  Also, it now saves the global client to
11745           global list who is joining and JOINs it to the channel.  This is
11746           for normal server, that is.
11747
11748           Changed silc_server_send_notify_on_channel,
11749           silc_server_packet_relay_to_channel and
11750           silc_server_packet_send_to_channel check if we are normal server
11751           and client has router set (ie. global client) do not send the
11752           message to that client, as it is already routed to our router.
11753
11754         * Implemented LEAVE notify type handling in silc_server_notify
11755           function.
11756
11757         * Tested LEAVE command in router environment successfully.  Tested
11758           with two routers, two servers and two clients.
11759
11760         * Updated TODO.
11761
11762         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11763
11764         * Implemented SIGNOFF notify type handling in silc_server_notify
11765           function.
11766
11767         * silc_server_remove_id now removes the client entry from all channels
11768           it has joined and thusly sends SIGNOFF notify type.
11769
11770         * Rewrote the NAMES list generation in server by removing two excess
11771           loops.  The lists are created now inside one loop.
11772
11773 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11774
11775         * silc_server_remove_channel_user checks now also global list
11776           for channel and client.
11777
11778         * silc_server_new_channel_user checks now both local and global
11779           list for channel and client.  Fixed a bug in client id decoding.
11780           Used to decode wrong buffer.
11781
11782         * silc_server_channel_message checks now both local and global
11783           list for channel entry.
11784
11785         * Tested channel joining (hence JOIN) in router environment
11786           successfully.  Tested with two routers, two servers and two
11787           clients.
11788
11789         * Tested channel message sending in router environment successfully.
11790
11791 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11792
11793         * Added silc_server_save_channel_key into server.[ch] to save the
11794           received channel key in Channel Key payload processing. It is
11795           also used in JOIN command reply handling.
11796
11797           Equivalent function silc_client_save_channel_key added into
11798           client.[ch] into client library.
11799
11800         * Changed JOIN command reply to send information whether the channel
11801           was created or not (is existing already) and the channel key
11802           payload.  Changed protocol specs accordingly.
11803
11804         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11805           the request was sent by ID and not by nickname.  Crashed on
11806           NULL dereference.
11807
11808 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11809
11810         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11811           now correctly save the received data.
11812
11813         * silc_server_free_sock_user_data now notifies routers in the
11814           network about entities leaving the network.
11815
11816           At the same time implemented functions silc_server_remove_id
11817           and silc_server_send_remove_id to receive and send REMOVE_ID
11818           packets.  The packet is used to notify routers in the network
11819           about leaving entities.  The ID removed will become invalid in
11820           the network.
11821
11822         * Added function silc_idlist_del_server into server. Removes and
11823           free's server entry from ID list.
11824
11825         * silc_server_private_message function now checks, if we are router,
11826           that the destination ID really is valid ID, naturally.
11827
11828         * In router when NEW_ID packet is received (for new client) the
11829           hash of the Client ID is saved in the ID Cache but the
11830           client->nickname is set to NULL, instead of putting the hash
11831           to it as well.
11832
11833           IDENTIFY command now also checks that client->nickname must be
11834           valid. If it is not if will request the data from the server who
11835           owns the client.  Added new function
11836           silc_server_command_identify_check.
11837
11838         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11839           to set the command to already allocated Command Payload.
11840
11841         * Tested private message sending in router environment with two
11842           routers, two servers and two clients.  Fixed minor bugs and now
11843           it works fine.
11844
11845         * Fixed segfault from client's NAMES command. Used to crash if
11846           not on any channel.
11847
11848         * Forwarded packets must not be routed even if it is not destined
11849           to the receiver.  Changed server code comply with this.
11850
11851 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11852
11853         * Added `require_reverse_mapping' boolean value to ServerParams
11854           structure. If TRUE (not default) the server will require that
11855           the connecting host has fully qualified domain name.
11856
11857           If the reverse mapping is not required and hostname could not be
11858           found the IP address is used as hostname.
11859
11860 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11861
11862         * Implemented version string checking to both client and server.
11863           The check is incomplete currently due to the abnormal version
11864           strings used in development version of SILC.
11865
11866         * Changed all command functions in server to use the new
11867           CHECK_ARGS macro.
11868
11869 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11870
11871         * Changed char *data to unsigned char *data in ID Cache system to
11872           support binary data as ID Cache data. Changed code to support
11873           binary data in lib/silccore/idcache.c.
11874
11875         * Renamed silc_server_packet_relay_command_reply to
11876           silc_server_command_reply as it is normal packet receiving
11877           function. Rewrote the function to accept command replys for
11878           servers and not only for clients.
11879
11880         * Mark remote router always as registered server if we are connecting
11881           to it.  Otherwise, commands sent by the router to us are ignored.
11882
11883         * All ID List find routines now returns the ID Cache Entry pointer
11884           as well if requested.
11885
11886         * WHOIS command works now in router environment, tested with two
11887           routers, two servers and two clients.
11888
11889         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11890           in router environment (as it is almost equivalent to WHOIS) but
11891           hasn't been tested thoroughly.  Added new functions:
11892
11893           silc_server_command_identify_parse
11894           silc_server_command_identify_send_reply
11895           silc_server_command_identify_from_client
11896           silc_server_command_identify_from_server
11897
11898         * Disabled route cache adding because adding two different ID's with
11899           same IP replaces the old cache entry thus giving wrong route.
11900           The entry->router->connection is always the fastest route anyway
11901           so route cache may not be needed.  Of course, new routes maybe
11902           established after receiving the ID when the entry->router->connection
11903           might not be anymore the most optimal.
11904
11905 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11906
11907         * Add route cache for received ID for fast routing.
11908
11909         * Added silc_server_packet_route to route received packet on router
11910           that is not destined to us.
11911
11912         * Renamed silc_server_get_route to silc_server_route_get.
11913
11914         * Added id_string and id_string_len fields into SilcServer to
11915           include encoded ServerID for fast comparing without excess
11916           encoding of the ID's.
11917
11918         * Cleaned up WHOIS command on server side. Added following static
11919           functions:
11920
11921           silc_server_command_whois_parse
11922           silc_server_command_whois_check
11923           silc_server_command_whois_send_reply
11924           silc_server_command_whois_from_client
11925           silc_server_command_whois_from_server
11926
11927         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11928           arguments in command replies. All command functions should be
11929           updated to use this macro.
11930
11931 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11932
11933         * Minor typo fixes on command reply handling on server.
11934
11935 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11936
11937         * Added silc_server_command_add_to_channel internal routine to add
11938           the client to the channel after router has created the channel and
11939           sent command reply to the server.
11940
11941         * Added generic silc_server_send_command to send any command from
11942           server.
11943
11944         * Use static buffer with ID rendering instead of duplicating data.
11945
11946 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11947
11948         * Fixed a channel user mode bug when joining to a channel server gave
11949           everybody channel founder rights, oops.
11950
11951         * We mark ourselves as the router of the incoming server connection
11952           if we are router ourselves.  This way we can check in some packet
11953           sending functions whether it is locally connected server.  For
11954           incoming router connections we put NULL.
11955
11956         * For router sending packets locally means now always sending the
11957           packet cell wide; to local clients and local servers.  For normal
11958           server sending packet locally means sending it to only local
11959           clients.
11960
11961         * Fixed the JOIN command to really work in router environment.  If the
11962           channel is created it is always created by the router.  Router is
11963           also responsible of making the initial joining to the channel,
11964           sending JOIN notify to the sending server and distributing
11965           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
11966           does not exist server doesn't do anything else but forward the
11967           command to the router which performs everything.
11968
11969         * Added silc_server_send_channel_key function to send the Channel Key
11970           payload.
11971
11972         * Added silc_server_create_channel_key to create new channel key.  The
11973           channel key is now re-generated everytime someone joins or leaves
11974           a channel, as protocol dictates.  Note: channel->key_len is the
11975           key length in bits.
11976
11977 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11978
11979         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
11980           packet_receive.[ch] to separate packet sending and receiving
11981           routines.  The server.[ch] now includes everything else including
11982           actual packet processing (writing and reading data) and other
11983           server issues.
11984
11985           Renamed silc_server_private_message_send_internal to
11986           silc_server_send_private_message.  The routine is still though
11987           used only to relay private messages as server does not send
11988           private messages itself.
11989
11990           Renamed silc_server_new_channel to silc_server_create_new_channel
11991           and added new function sicl_server_new_channel that handles the
11992           incoming New Channel packet.  Added also new sending function
11993           silc_server_send_new_channel to send New Channel Payload.
11994
11995         * Added new function silc_server_notify to process incoming notify
11996           packet to the server/router. Server may then relay the notify
11997           to clients if needed.
11998
11999         * Added new function silc_server_new_channel_user to process incoming
12000           New Channel User packet.  Router will redistribute the packet and
12001           send JOIN notify to its local clients and locally connected servers
12002           if needed.  Normal server will send JOIN notify to its local client
12003           on same channel when received this packet.  Added also corresponding
12004           sending function silc_server_send_new_channel_user to sent the
12005           payload.
12006
12007         * Added boolean route argument to send_notif_to_channel and
12008           packet_send_to_channel functions to attempt to route the packet
12009           if it is TRUE and send only locally if it is FALSE.
12010
12011 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12012
12013         * silc_server_replace_id now broadcasts the received replace ID
12014           packet if it is not broadcast packet already. The router must
12015           broadcast to inform other routers about changed ID.
12016
12017         * Added backpointer to server's router into SilcServer context in
12018           silcd/server_internal.h.
12019
12020         * Fixed silc_server_packet_broadcast to send correct broadcast
12021           packets.
12022
12023         * The channel key is now distributed to the local client as soon
12024           as it is received from the router (in router environment) so that
12025           no other packet may be sent for the channel until client has
12026           received the key.
12027
12028         * silc_server_remove_channel_user now broadcasts the received
12029           Remove Channel User packet if it is not broadcast packet already.
12030           The router must broadcast to inform other routers about removed
12031           channel user.
12032
12033         * Added users field into SilcPacketContext that is a reference count
12034           of the context.  One can increase the reference count by calling
12035           silc_packet_context_dup which is now changed to just increase the
12036           reference count instead of duplicating the data.  The reference
12037           count is decresed by calling silc_packet_context_free that will
12038           free the data after the reference count hits zero.
12039
12040           For now on the packet context and everything allocated into it
12041           (including the raw packet from network) must be freed by calling
12042           the new silc_packet_context_free function.  Added also new function
12043           silc_packet_context_alloc that must be used now to allocate the
12044           context.  This also means that if a routine is asynchronous from
12045           silc_[client/server]_packet_parse_type the packet context must
12046           be duplicated by calling silc_packet_context_dup.  Otherwise it
12047           gets free'd after silc_[client/server]_packet_parse_type returns.
12048           Also, one must remember that if packet is duplicated then its
12049           reference count must be decresed by calling the free function as
12050           many times as it was duplicated.
12051
12052         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
12053           from both client and server.
12054
12055 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12056
12057         * Made joining to a channel working in router environment.
12058
12059         * Cleaned up JOIN command on server side and create function
12060           silc_server_command_join_channel internal routine to make the
12061           joining happen.
12062
12063 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12064
12065         * Changed silc_command_pending list to SilcDList.  Also, added
12066           `ident' field to SilcServerCommandPending structure to identify
12067           the reply and to call correct callback.
12068
12069           Added silc_server_command_pending_check function to replace the
12070           corresnponding macro.  The silc_command_pending list is not
12071           extern anymore.
12072
12073         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
12074           to set identifier to previously allocated Command Payload.  It
12075           is used to set identifier for command when resending Command
12076           Payload.
12077
12078         * Added silc_command_payload_encode_payload to encode Command
12079           Payload buffer from SilcCommandPayload structure.
12080
12081         * Added silc_argument_payload_encode_payload to encode Argument
12082           payload buffer from SilcArgumentPayload structure.
12083
12084 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12085
12086         * Changed WHOIS command to support router connection on server side.
12087           The whois request is always sent to router unless the server is
12088           standalone server.  After server has received the reply from the
12089           router will it send the reply to the client.
12090
12091         * Added silc_server_packet_broadcast into silcd/server.[ch] to
12092           broadcast received broadcast packet.  The function is used only
12093           by router.  The broadcast packet is always sent to the router's
12094           primary route.
12095
12096         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
12097           render given ID to printable string, for log files for example.
12098
12099 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12100
12101         * Made basic router to router connections working.  At least they
12102           can now connect to each other but nothing really works the way
12103           they are supposed - yet.
12104
12105         * Added new initiator token to RouterConnection configuration
12106           file in silcd/serverconfig.[ch].  It is used to tell whether we
12107           are the initiator to the remote router or whether we'll expect
12108           the other end to connect.
12109
12110         * Moved registering of listener task to silc_server_init, hence
12111           the server starts listenning as soon as it is run, even if it
12112           does not have connections to other routers.  Let's see how well
12113           this will work.
12114
12115         * Changed default connection retry timeouts for more suitable in
12116           silcd/server.h.
12117
12118         * Removed cipher and such arguments from silc_idlist_add_client
12119           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
12120           Added new function silc_idlist_add_data to add the keys and stuff
12121           to any ID entry.
12122
12123         * Added SilcIDListData structure and added it to SilcClientEntry
12124           and SilcServerEntry as their first field in the structure.  This
12125           way we can explicitly cast the ID entries to the SilcIDListData
12126           structure and get common data for the entries.  In past, we had
12127           to first check what type of connection it is and then cast it to
12128           correct ID entry type.  Now, we can directly cast the opaque
12129           pointer to the SilcIDListData (no matter what ID entry it actually
12130           is) and get the data needed.
12131
12132 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12133
12134         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
12135           in some circumstances even if threre were timeout tasks, though not
12136           IO tasks, but tasks anyway.  Now fixed.
12137
12138         * Defined SilcServerConnection structure to hold connection specific
12139           stuff about directly connected servers and routers.  The definition
12140           is currently in silcd/server_internal.h.  I thought about having
12141           a bit more important role fro this struct but for now it is used
12142           only when connecting to other server (or router actually).
12143
12144         * Added connecting retry support in server when connecting to
12145           router(s).  The retry feature implement exponential backoff
12146           algorithm.  Also, added SilcServerParams structure to hold default
12147           parameters for server.  For now, it include these retry settings
12148           and are hard coded.  After server is moded to be as Silc Server
12149           Library this structure will be more important.
12150
12151 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12152
12153         * Changed client librarys channel->clients table to SilcList and
12154           changed code accordingly.
12155
12156 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12157
12158         * Changed client's channel table to SilcList and changed code
12159           accordingly.  Also changed SilcChannelClientEntry to include back-
12160           pointer to the channel so that client entry can use that structure
12161           as list as well and we have fast cross-reference to the channel.
12162           This change dramatically decreased the complexity of channel
12163           handling with client entry and vice versa (removed one extra
12164           loop when searching for channel entry from many functions).
12165
12166         * Changed server->sim from table to SilcDList and changed code
12167           accordingly.
12168
12169         * NAMES command can now be used from user interface.  It will show
12170           the user list on the channel, neatly.
12171
12172         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
12173           Code now saves realname of the user if it becomes available.
12174
12175         * Renamed configure.in to configure.in.pre and made ./prepare
12176           script to automatically add correct version string to
12177           configure.in which it creates from configure.in.pre.
12178
12179 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12180
12181         * NAMES command reply now shows users mode with the nickname when
12182           joining to channel.
12183
12184         * Moved silc_client_ch[u]mode[_char] functions from
12185           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
12186           place sucks, they are utility functions and should be in some
12187           other file.
12188
12189         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
12190
12191         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
12192           cras.
12193
12194 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12195
12196         * Updated README.
12197
12198         * Added TRQ (efficient deque and list library) into lib/trq.  This is
12199           a very good list library that is currently used in the SILC.  Defined
12200           SilcList API over the library because I didn't like the API very
12201           much.  See lib/trq/silclist.h for the API and examples of how to
12202           use the API.  Fixed various places in the code to use the new
12203           SilcList API. The SilcList is meant for lists that has a structure
12204           already defined as a list.  It is not suitable to add just some
12205           context to the list (in TRQ, the context is the list actually).
12206
12207           So, I defined SilcDList that can be used for the purpose where
12208           predefined list structure does not exit.  This can be used as
12209           such list.  Now some context just can be added to the SilcDList.
12210           Currently this list is not used in the SILC just yet, though there
12211           are a lot places where this can replace dynamically allocated
12212           tables and I will fix these places, later, to use SilcDList.
12213           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
12214           and use TRQ internally).
12215
12216           Also fixed some annoying warning messages that the original TRQ
12217           code generated.  Also minor changes to TRQ's Makefile.in.
12218
12219         * Added support for querying by Client ID to both WHOIS and
12220           IDENTIFY commands into server, as required by the protocol.
12221
12222         * Removed method function pointers from SilcBuffer structure. They
12223           weren't used to anything and just increased the context size for
12224           no good reason.  This change also made silc_buffer_alloc and
12225           silc_buffer_free functions inline functions.
12226
12227         * Disabled command flooding detection support until it's fixed so
12228           that it accepts commands in but does not execute them more than once
12229           in two seconds.
12230
12231         * Added silc_net_localhost(), to return local hostname, into
12232           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
12233           that must be initialized before calling silc_client_init.
12234
12235         * Added new function: silc_server_send_notify_on_channels to send
12236           notify messages to all channels client has joined.  It is assured
12237           that the message is sent only once per client.
12238
12239         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
12240           lib/silcutil/silcutil.[ch] as silc_format function.  The new
12241           function is generic and is used by server as well, not only by
12242           the logging routines.
12243
12244         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
12245           the provided version string was not acceptable.  Added new function:
12246           silc_ske_check_version into lib/silcske/silcske.h.  The function
12247           must be implemented by the application (client or server) and it
12248           does not reside in the SKE library.  The function checks the version
12249           string remote end sent.
12250
12251         * Added back pointers (to opaque context and to SilcSocketConnection)
12252           into SilcPacketContext structure into lib/silccore/silcpacket.h.
12253
12254         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
12255           duplicate packet context structure.
12256
12257         * Changed `notify' client operation to send same arguments as client
12258           receives from server except for ID's.  ID's are mapped to correct
12259           ID entry and that is returned.  Also, if channel entry is not sent
12260           by server but the notify is for channel the channel entry is sent
12261           to application (otherwise application doesn't know that it is for
12262           channel (library gets it from packet's Destination ID)).
12263
12264         * Added silc_client_remove_from_channels into client library to
12265           remove a client from all channels it has joined to.  Used when
12266           received SIGNOFF notify from server.  Added also new function
12267           silc_client_replace_from_channels to replace old ID entry with
12268           new ID entry on all channels.  Used when received NICK_CHANGE
12269           notify from server.
12270
12271         * Fixed ID Cache list handling in silc_idlist_get_client in
12272           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
12273           to get (or query) client by ID.
12274
12275         * Updated TODO list.
12276
12277         * Added connection authentication status message defined by the
12278           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
12279           support for these into the code in client and server side.
12280
12281         * Added generic function silc_client_send_command to send any command
12282           with variable argument list.  Application should use this function
12283           to send commands if the command functions provided by the library
12284           does not suite for the application's user interface needs.
12285
12286         * Added new `failure' client operation.  Application is notified about
12287           received failure packet if client is executing a protocol.  In this
12288           case the protocol's execution has failed.
12289
12290         * Added SKE's end notify to send the SKE_SUCCESS notify message that
12291           is required by the protocol.
12292
12293         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
12294           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
12295           error at our end.
12296
12297         * Added status flag to SilcSKE object to indicate realtime status
12298           of the SKE protocol.
12299
12300         * Application receives now exactly same command reply arguments as
12301           the library receives from server.  However, if ID is received the
12302           corresponding ID entry is returned to the application (eg. Client
12303           ID is mapped to correct SilcClientEntry entry and that is returned).
12304           Changed command_reply client operation due to this change.
12305
12306         * Changed all ID's in commands and in command replys as ID Payloads.
12307           Change affected both client and server side codes.
12308
12309           All ID's sent in SILC network (with execption of ID's in SILC
12310           Packet header) are sent in ID Payload to support variable length
12311           ID's.
12312
12313         * Server now notifies nick changes and notifies all clients on
12314           the channels about the new nickname (about the new Client ID,
12315           actually).
12316
12317         * Implemented CMODE command to change channel modes. Supports all
12318           channel modes defined by the protocol specs except ban and invite
12319           lists. (Also, private channel key mode is supported but support for
12320           setting private channel key in client is missing, thus, this mode
12321           has no effect on client side (except that server requires that the
12322           client uses private channel key and normal channel traffic does not
12323           work anymore)).
12324
12325           Also, invite mode works per se, but INVITE command does not work
12326           yet correctly, so you can set channel as invite only channel but
12327           inviting clients to the channel does not work (it is yet to be
12328           thought what's the best way to do it).
12329
12330         * Added new command SILC_COMMAND_CUMODE to change user mode on the
12331           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
12332           Implemented CUMODE command to change user's mode on the channel.
12333           Supports all modes defined by the protocol specs.
12334
12335         * Added NAMES command reply to return users modes on the channel.
12336
12337         * Removed unnecessary and slow ciphers from lib/silccrypt.
12338
12339         * Set SO_KEEPALIVE option to connection sockets by default.
12340
12341         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
12342
12343         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
12344           redefined the Notify Payload into protocol specs.
12345
12346         * Added silc_id_payload_parse_id to get ID directly from raw
12347           ID payload data.
12348
12349 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12350
12351         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
12352           accept searching by Client ID as well.
12353
12354         * Added support for LEAVE and SIGNOFF notify types in client library.
12355
12356         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
12357           to parse ID Payload from raw data.
12358
12359 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12360
12361         * Added flags parameter into silc_ske_assemble_security_properties
12362           function in lib/silcske/silcske.[ch].
12363
12364         * Changed notify client operation to fit better for notify messages
12365           sent by server.  The notify payload received from server is now
12366           passed to the application (after parsing it to SilcNotifyPayload).
12367           It is application's responsibility to retrieve the arguments
12368           from the payload and show the message the way it wants.  The message
12369           sent by server is implementation specific.
12370
12371         * Changed public keys to comply with the protocol specification.
12372           Old public keys are not supported anymore and are not compatible.
12373
12374         * Removed nickname from Channel Payload as the latest draft removed
12375           it.  The client must resolve the nickname from the NAMES command
12376           reply received when it joined the channel.
12377
12378           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
12379
12380 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12381
12382         * Fixed some errors in protocol specification drafts.
12383
12384         * Created lib/silccore/silcnotify.c to implement Notify Payload
12385           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
12386           generic payloads described by protocol specifications.  The file
12387           includes implementations for ID Payload and Argument Payload.
12388
12389         * Changed Command Payload implementation to use the new Argument
12390           Payload.  Changed command_xxxx_payload to command_payload_xxxx
12391           to comply with SILC coding conventions.
12392
12393         * Added suppport for Argument Payload handling in Notify Payload
12394           implementation as protocol requires it.  Added the new support
12395           into server and client lib as well.
12396
12397 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12398
12399         * Added support for multiple nicknames on same channel.  [n] is
12400           added locally to the nickname if there are more than one same
12401           nicknames on the channel.
12402
12403         * Server now sends all nicknames that matched WHOIS request.
12404           Client also shows the list received from server.
12405
12406         * Added TOPIC command to client side.  User can now set and show
12407           current topic on channel.
12408
12409         * Added MOTD command to client and server.  Also, server sends the
12410           motd when client connects to the server.
12411
12412         * Changed version strings to comply ISO 8601.
12413
12414 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12415
12416         * Fixed protocol error handling in client library.  It should now
12417           cope even if the SKE fails for some reason.
12418
12419         * Made new protocol specification drafts for submitting to IETF.
12420
12421         * Implemented TOPIC command to server in silcd/command.c.
12422
12423         * Added two new notify types into lib/silccore/silcnotify.h:
12424           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
12425           notify nickname change and topic setting/change on a channel.
12426
12427         * API change of command_reply operation in client library.  The
12428           application gets now the status type received from server as well.
12429
12430 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12431
12432         * Removed the function just added to lib/silcutil/silcschedule.[ch].
12433
12434         * Cras fixed and optimized the packet handling even further and
12435           it should work now.  Minor change to the prototype of function
12436           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
12437
12438 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12439
12440         * Added new function into lib/silcutil/silcschedule.[ch]:
12441           silc_schedule_with_fd to select() a specified fd.  The function
12442           returns after timeout expires or data arrives or goes.  The
12443           function is used by packet routines to wait that all data is
12444           received from network.
12445
12446         * Fixed data reading from network in lib/silccore/silcpacket.c.
12447           The code now assures that all data is read from the fd and then
12448           continues packet processing.  This was a bug fix since the code
12449           used to drop some data in some circumstances.
12450
12451         * Added new function into lib/silcclient/client.[ch]:
12452           silc_client_start_key_exchange to start key exchange after
12453           connection has been established to server.  The code internally
12454           now uses this funtion but its main purpose was to provide it
12455           for applications that perform their own connecting.  After
12456           application has created a connection it merely calls this
12457           function to start the key exchange between client and server.
12458           The library takes care of everything else after that.
12459
12460           Updated also lib/silcclient/README to explain the usage of
12461           this new function.
12462
12463         * Do not send to application information that connection has
12464           been established.  Application gets notified it by connect
12465           operation anyway.
12466
12467 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12468
12469         * Applied cras's patch to add silc_schedule_one function.  The
12470           function runs scheduler once and returns.
12471
12472         * Fixed the scheduler after cras messed it up.  The timeout
12473           handling works now as it's supposed to work.
12474
12475         * Added into lib/silccore/ silcnotify.h to include notify
12476           message types support.  Changed silc_server_send_notify*
12477           functions, in server.[ch], to support those new notify types.
12478           Added the support for the notify types into client library,
12479           as well.  Added new notify client operation into ops.h in
12480           lib/silcclient/.
12481
12482         * Changed silc_server_packet_send_to_channel to send normal
12483           packets instead of just channel message packets.  The function
12484           is now used to send the notify packets to channels.  It is not
12485           used to send channel message packets anymore, as server never
12486           sends them anymore.
12487
12488         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
12489           va_arg()s as it seems to require it nowadays.  I guess, if SILC
12490           is compiled with older va_arg() the new code should work anyway.
12491
12492 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12493
12494         * Splitted core library.  Core library (lib/silccore) includes
12495           now only SILC protocol specific core (and common) components.
12496           Created new utility library (lib/silcutil) that includes more
12497           generic purpose stuff.  The stuff for util library was taken
12498           from the old core library.  This was minor and easy split.
12499
12500         * Created SILC Client Library (lib/silcclient) that includes
12501           implementation of the SILC client without user interface.  This
12502           was major move from silc/ directory.  The code has been changed
12503           so that it is transparent towards the user interface.  The
12504           silc/ directory includes now the same user interface as before
12505           and it uses the new client library.  Read lib/silcclient/README.
12506           Basicly, the client library performs everything else related
12507           to SILC except user interface handling.  Also, configuration
12508           files are considered to be part of user interface and library
12509           does not handle them.
12510
12511           This change also changed a lot of structures, function naming etc.
12512           Most important change was that SilcClientWindow object was
12513           renamed to SilcClientConnection in the client library.  Created
12514           also new file lib/silcclient/ops.h.  Also added new files
12515           silc/local_command.[ch] and silc/client_ops.[ch].
12516
12517           All these changes were made to make it easier for user interface
12518           designers to create what ever user interface for the SILC client
12519           they want.
12520
12521           It is also expected that the server will be moved to lib
12522           directory as well and SILC Server Library will be created;
12523           sometimes in the future.
12524
12525         * Removed Local commands from lib/silccore/silccommand.h as
12526           they are application specific and new client library does not
12527           handle any of those anymore.
12528
12529         * Several functions moved to lib/silcutil/silcutilc.[ch] from
12530           old client implementation in silc/.
12531
12532         * Added support for callback functions in SILC_LOG_* macros.
12533           Application can now set its own callbacks that will be called
12534           instead of using the default functions that will always print
12535           the debug messages to stderr (or stdout).  Also, debugging can
12536           now be disabled by setting silc_debug to FALSE and re-enabled by
12537           setting it to TRUE.  Note, that logging will still work even
12538           if debugging is disabled.
12539
12540           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
12541           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
12542           silc_log_reset_debug_callbacks.
12543
12544         * To enable debugging in silc client one must give now -d
12545           option on command line.
12546
12547         * Changed silc_schedule_init to automatically allocate task queues
12548           if they are not allocated before calling it.
12549
12550 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12551
12552         * Added GMP 3.1 into math library.
12553
12554 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12555
12556         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
12557           a channel in SILC network.  The packet is used by servers and
12558           routers to notify other routers that user has left a channel.
12559           This little feature was missing until now.  Added the feature
12560           to protocol specification as well.
12561
12562           Added functions: silc_server_send_remove_channel_user and
12563           silc_server_remove_channel_user into server.[ch].
12564
12565         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
12566           lib/silccore/silcpacket.h.  However, they are not implemented
12567           yet.
12568
12569 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12570
12571         * Fixed joining to a channel and sending channel messages
12572           between server and router.  The channel message sending should
12573           now work inside a cell.
12574
12575 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12576
12577         * Fixed the private message sending between server and router.
12578           The private message sending should now work inside a cell.
12579
12580         * Added silc_server_replace_id into server.[ch] to replace
12581           existing ID in the SILC network.
12582
12583         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
12584           and silc_idlist_replace_server_id into idlist.[ch] in server.
12585
12586 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12587
12588         * Fixed the server to server connections.  Server can again now
12589           connect to router.  Router to router connections probably does
12590           not work just yet.
12591
12592 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12593
12594         * Added dynamic protocol registering support.  Now protocols can
12595           registered and unregistered on the fly.  Patch by cras.
12596
12597 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12598
12599         * Added lib/contrib directory to hold routines that some platforms
12600           don't have but are needed by SILC.
12601
12602         * Added getopt.c, getopt1.c and getopt.h from GNU C library
12603           into lin/contrib to provide getopt() and getopt_long() for
12604           those who don't have it.
12605
12606 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12607
12608         * Added AWAY command to client.  When away message is set and
12609           client receives a private message packet the client automatically
12610           replies to the sender with the away message.
12611
12612         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
12613           bug seemed to be the cause of recent problems when compiling
12614           with gcc-2.95.
12615
12616         * Added version detection support to SKE protocol specification
12617           and added the new changes to the SKE implementation as well.
12618           There were other minor changes in the SKE protocol as well.
12619
12620           Many changes in lib/silcske/silcske.[ch] and in
12621           lib/silcske/payload.[ch].
12622
12623         * Added ^U functionality, clear input line.  Patch from cras.
12624
12625 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12626
12627         * Mainly small bugfixes on core library.  Fixed some debugging
12628           logging and buffer overflow in silclog.c.
12629
12630         * Updated config.sub and config.guess on the distribution tree.
12631
12632 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12633
12634         * Added command lagging support in server. Client may execute
12635           commands now only once in two seconds.
12636
12637 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12638
12639         * Optimized packet reception. MAC computation and checking is now
12640           also more optimized.  A lot previously duplicated code is now
12641           used as generic by both client and server.
12642
12643         * Fixed key pair generation in clientutil.c
12644
12645 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12646
12647         * Added into lib/silccore/silcbufutil.[ch] new function;
12648           silc_buffer_realloc.
12649
12650         * Moved generic packet sending/encryption functions to
12651           lib/silccore/silcpacket.[ch] from client and server.  Some
12652           rewriting of the functions.
12653
12654         * Moved all generic packet reception/decryption functions to
12655           lib/silccore/silcpacket.[ch] from client and server.  The
12656           packet processing is now much cleaner in both client and server.
12657           These were major changes in both client and server.
12658
12659         * Created many common functions in server to do packet sending.
12660           Previously code were duplicated a lot, this has been removed
12661           with these changes.
12662
12663 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12664
12665         * Rewrote major parts of the ID cache system.  Don't know
12666           whether it is better now or not but at least the API is more
12667           cleaner now.
12668
12669         * Major rewrite on ID cache stuff on client because of the ID
12670           cache API changes.  Added idlist.c to client.
12671
12672         * Also major rewrite on ID cache stuff on server as well.
12673           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12674           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12675           in hand, instead they are all put into the ID cache system now.
12676           All server_idlist_* routines uses ID cache now instead of
12677           traversing its own lists (those lists does not exist anymore).
12678           SilcIDList though still exists.  Also, SilcXXXEntry's are
12679           now pointers.
12680
12681 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12682
12683         * Finally made the SKE implementation compliant to the protocol
12684           specification.  All mp integers are now binary encoded as
12685           opposed being HEX encoded.
12686
12687         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12688           from binary data.
12689
12690         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12691           functions: silc_[encode/decode]_pem.  Also added function
12692           silc_encode_pem_file to PEM encode with newlines ('\n') for
12693           saving into a file.
12694
12695         * SILC public keys are now encoded either PEM or binary.  Same
12696           option is for private keys as well.  By default private keys
12697           are binary encoded and public keys PEM encoded.  Silly HEX
12698           encoding were removed.
12699
12700         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12701           function to create fingerprints.
12702
12703         * Fixed a bug in SHA1; does not change the original data anymore.
12704
12705         * Partly implemented INFO command on client and server side.
12706           Fixed CLEAR command.  Changes to SERVER command; show current
12707           server(s) when giving command without arguments.  Added
12708           VERSION command to client.
12709
12710         * Added check to server that unregistered connections cannot
12711           execute commands (unless it is specificly allowed).
12712
12713 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12714
12715         * Fixed screen refresh.
12716
12717         * Fixed channel joining bug from client.  On some circumstances
12718           client tried to join to a channel it had already joined.
12719
12720         * Added public key verification process into client's protocol.c.
12721           The client now verifies the public key from user and saves
12722           it into ~./silc/serverkeys/ directory.
12723
12724           Added into: clientutil.[ch]: silc_client_verify_server_key.
12725
12726         * Changed SKE protocol's silc_ske_initiator_finish function
12727           to accept callback function that verifies the received public
12728           key.  Removed old silc_ske_verify_public_key function.
12729
12730 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12731
12732         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12733           silc_pkcs_private_key[_data]_set.
12734
12735         * Made the password and public authentication more cleaner in
12736           server's protocol.c.
12737
12738         * Removed historic and obsolete protocol `channel_auth' from
12739           both client and server.
12740
12741         * Removed wrong way of sending command status messages from
12742           server to client in server's command.c.  The old way violated
12743           protocol specification.
12744
12745           Changes to silccore/silccommand.[ch]: removed
12746           silc_command_encode_status_payload -> not needed anymore,
12747           changed silc_command_encode_payload_va to accept extra
12748           argument on variable argument list.  The argument type must
12749           now be provided to the function.  Also, added new function:
12750           silc_command_encode_reply_payload_va which is same as
12751           normal command_encode_payload_va except command status type
12752           is provided as extra argument.
12753
12754 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12755
12756         * Added ~./silc directory handling.  The directory includes the
12757           public and private keys for the client.
12758
12759           Added silc_client_check_silc_dir, silc_client_create_identifier
12760           and silc_client_load_keys.
12761
12762         * Implemented SILC protocol compliant public key.  Added public
12763           and private key saving to and loading from files.
12764
12765           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12766           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12767           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12768           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12769           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12770
12771           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12772           silc_pkcs_load_[public/private]_key.
12773
12774 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12775
12776         * Added silc_server_get_route (route.[ch]) to get connection
12777           data for the fastest route for given ID.
12778
12779         * Implemented INVITE command on client and server.  The command
12780           were re-defined in the SILC Protocol Specification and the
12781           implementation now complies with the specification.
12782
12783         * Implemented PING command on client and server.
12784
12785         * Implemented NAMES command on client and server.  The server side
12786           supports currently only normal server not router server yet.
12787           Some changes to NAMES definition in SILC protocol specification.
12788
12789 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12790
12791         * Implemented LEAVE command on client and server.
12792
12793         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12794           again.  This change was made to the protocol as well.  Server
12795           should not violate the protocol specification anymore.
12796
12797 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12798
12799         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12800           was tested.  SOCKS4 was not but should work anyway.