updates.
[silc.git] / CHANGES
1 Sun Nov 11 11:22:35 EET 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Fixed connection authentication with public keys to use
4           correct public key as responder.  Affected file is
5           lib/silcske/silcconnauth.c.
6
7         * Fixed public key authentication in server.  Affected file is
8           apps/silcd/serverconfig.c.
9
10         * Fixed OPER and SILCOPER public key authentication.  Affected
11           file is apps/silcd/server.c.
12
13         * Fixed prefer_passphrase_auth flag in server.  Fixed
14           disconnection of unauthenticated connection.  Affected file is
15           apps/silcd/server.c.
16
17         * Fixed client resuming in server.  Affected file is
18           apps/silcd/packet_receive.c.
19
20         * Fixed IDENTIFY and WHOWAS command reply to correctly update
21           client entries (fixes a crash).  Affected file is
22           apps/silcd/command_reply.c.
23
24 Tue Nov  6 16:39:20 EET 2007  Pekka Riikonen <priikone@silcnet.org>
25
26         * SILC Client 1.1.3.
27
28 Mon Nov  5 23:07:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
29
30         * Zero tail of CTR mode IV in IV Included mode.  Change does
31           not cause compatibility issues.  Affected file is
32           lib/silcske/silcske.c.
33
34 Mon Nov  5 22:24:25 EET 2007  Pekka Riikonen <priikone@silcnet.org>
35
36         * SILC Toolkit 1.1.4.
37
38         * Fixed CTR mode rekey.  Affected file is lib/silcske/silcske.c.
39
40         * Rewrote the IV Included CTR mode encryption/decryption in
41           packet engine.  Affected file is lib/silccore/silcpacket.c.
42
43 Sun Nov  4 15:20:25 EET 2007  Pekka Riikonen <priikone@silcnet.org>
44
45         * Removed module_path and module options from the server
46           config file format.  Affected file is apps/silcd/serverconfig.c.
47
48         * Fixed non-IPv6 compilation error.  Affected file is
49           lib/silcutil/unix/silcunixnet.c.
50
51 Sat Nov  3 23:23:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
52
53         * Do not free packet engine before uninitializing scheduler.
54           Do not disconnct already disconnected streams.  Affected
55           files are in apps/silcd/.
56
57         * Fixed setting correct ID for re-encrypted channel messages
58           in router-to-router connections.  Affected file is
59           apps/silcd/packet_send.c.
60
61 Sun Sep 30 15:16:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
62
63         * Fixed channel private key deleting when deleting the channel.
64           Affected file is lib/silcclient/client_channel.c.
65
66 Sun Sep  9 17:52:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
67
68         * SILC Toolkit 1.1.3.
69
70         * Fixed possible buffer overflows from SILC Config code.
71           Patch from Jérémy Bobbio.  Affected file is
72           lib/silcutil/silcconfig.c.
73
74 Sun Aug 26 12:28:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
75
76         * Fixed TIMEOUT handling in user info resolving during JOINing,
77           fixes crash.  Affected file is lib/silcclient/client_notify.c.
78
79         * Fixed mandatory UN and HN SILC public key identifier checking
80           (both must be present).  Affected file is
81           lib/silccrypt/silcpk.c.
82
83 Tue Aug  7 20:56:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
84
85         * Fixed alignment issues with 64-bit CPUs.  Affected files
86           are lib/silcutil/silcschedule.c and unix/silcunixschedule.c.
87
88         * Added "There are now xx nick's" to "are xx nicks".  Affected
89           file is apps/irssi/src/fe-common/silc/module-formats.c.
90
91 Sat Aug 4 18:37:22 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
92
93         * Fixed USERS command user mode handling (integer overflow).
94           Affected file is lib/silcclient/command_reply.c.
95
96 Thu Jul 19 21:08:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
97
98         * Fixed big-endian issues from aes implementation.  Affected
99           files are lib/silccrypt/aes.c.
100
101         * Fixed lib/silcutil/silcatomic.h compilation on IA64.  Patch
102           from Jérémy Bobbio.
103
104         * Fixed public key identifier parsing to check lengths
105           correctly.  Affected file is lib/silccrypt/silcpk.c.
106
107 Wed Jul  4 08:06:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
108
109         * SILC Toolkit 1.1.2.
110
111         * SILC Client 1.1.2.
112
113 Mon Jul  2 17:28:47 CEST 2007  Pekka Riikonen <priikone@silcnet.org>
114
115         * In silc_client_free check that scheduler is allocated before
116           trying to free it.  Affected file is lib/silcclient/client.c.
117
118         * Fixed buffer overflow in NICK_CHANGE notify.  The destination
119           buffer for old nickname was too small.  Affected file is
120           lib/silclient/client_notify.c.
121
122 Sun Jul  1 19:15:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
123
124         * SILC Server 1.1 Beta1.
125
126 Sun Jul  1 12:40:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
127
128         * Added support for rekey with PFS when using CTR mode
129           encryption.  Affected file is lib/silcske/silcske.c.
130
131         * Added silc_idcache_move that can be used to move entries
132           between caches.  Affected files are
133           lib/silcapputil/silcidcache.[ch].
134
135         * Added better checks for invalid argument and notify payloads.
136           Affected files are lib/silccore/silcnotify.c and
137           silcargument.c.
138
139         * Fixed SILC_PACKET_FLAG_LONG_PAD bitmask value.  Affected
140           file lib/silccore/silcpacket.h.
141
142 Sat Jun 30 21:48:08 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
143
144         * Set the destination ID to packet stream as SKE responder
145           if ID was present in key exchange packet.  Affected file
146           is lib/silcske/silcske.[ch].
147
148         * Handle also zero timeouts in the scheduler notify callback
149           to avoid problems with SILC Plugin.  Affected file is
150           apps/irssi/src/silc/core/silc-core.c.
151
152 Thu Jun 28 19:19:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
153
154         * SILC Client 1.1.1.
155
156 Sun Jun 24 18:47:55 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
157
158         * SILC Toolkit 1.1.1.
159
160         * Compile sources with _GNU_SOURCE on Linux systems.  Affected
161           file is configure.ad.
162
163 Sun Jun 24 16:33:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
164
165         * Fixed Unix signal task dispatching to not lock the signals
166           when dispatching the callback to avoid deadlocks.  Affected
167           file is lib/silcutil/unix/silcunixschedule.c.
168
169 Sun Jun 24 14:43:21 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
170
171         * Fix configure output for with-plugin.  Affected file is
172           apps/irssi/configure.ad
173
174 Tue Jun 19 17:05:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
175
176         * Added SILC_VERSION macro for checking package versions at
177           compile time.  Affected files are configure.ad,
178           includes/silc.h.in and includes/silcversion.h.in.
179
180 Mon Jun 18 23:47:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
181
182         * Use SILC_VERIFY to assert that silc_rwlock_wrlock can be
183           called only once per thread on Unix.  Affected file is
184           lib/silcutil/unix/silcunixthread.c.  Added same for mutex
185           as well.   Documented same on the API in
186           lib/silcutil/silcmutex.h.
187
188         * Fixed USERS command reply write-lock unlocking.  Affected file
189           is lib/silcclient/command_reply.c.
190
191 Mon Jun 18 08:14:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
192
193         * Fixed silc_create_key_pair to check for valid identifier.
194           Affected file is lib/silcapputil/silcapputil.c.
195
196 Sun Jun 17 20:08:26 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
197
198         * Rewrite signed public message handling, adopting the new
199           hilight interface.  Affected file is
200           apps/irssi/src/fe-common/silc/fe-silc-messages.c
201
202 Thu Jun 14 21:15:31 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
203
204         * Fix off by one error when loading modules.  Affected file is
205           apps/irssi/src/core/modules-load.c
206
207         * Don't delete hilight entry (because it's just a pointer, not a
208           copy).  Affected file is
209           apps/irssi/src/fe-common/silc/fe-silc-messages.c
210
211 Mon Jun 11 22:10:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
212
213         * Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution
214           which can be used to check for Toolkit version in third-party
215           software.  Affected file is configure.ad, includes/silc.h.in.
216
217 Sun Jun 10 17:32:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
218
219         * Added support for channel@server channel name strings to
220           client library (SILC protocol version 1.3 change).  Affected
221           files are lib/silcclient/silcclient_entry.h, client_entry.c.
222
223         * Added full_nicknames and full_channel_names settings to
224           SilcClientParams that can be used to specify whether client
225           library returns full nickname and channel name strings.
226           Full strings are nick@server and channel@server.  Affected
227           file is lib/silcclient/client_entry.c and command.c.
228
229 Sat Jun  9 19:43:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
230
231         * Fixed unix connecting failure to return error code correctly.
232           Affected file is lib/silcutil/unix/silcunixnet.c.
233
234 Fri Jun  8 23:32:33 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
235
236         * Fixed SKE timeout double free crash.  Affected file is
237           lib/silcske/silcske.c.
238
239         * Fixed MIME multipart decoding buffer overflow.  Affected file
240           is lib/silcutil/silcmime.c.  Thanks to Matt Miller for patch.
241
242 Fri Jun  8 18:39:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
243
244         * Fixed connection auth protocol timeout crash.  Affected
245           file is lib/silcske/silconnauth.c.
246
247         * Fixed FSM machine finishing to check for existing threads
248           at the final free callback to allow time for the threads to
249           finish.  Affected file lib/silcutil/silcfsm.c.
250
251 Thu Jun  7 21:25:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
252
253         * Fixed silc_client_get_clients_local to check the nick's
254           server also if nick@server nickname string is given to the
255           function.  Affected file is lib/silcclient/client_entry.c.
256
257 Wed Jun  6 18:33:05 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
258
259         * Added notify callback to silc_schedule_init which can be used to
260           set a notify callback for scheduler which is called when task is
261           added to scheduler or deleted from scheduler.  Affected file
262           is lib/silcutil/silcschedule.[ch].
263
264         * Dispatch timeout tasks after dispatching FD tasks if the timeout
265           was very short.  Affected file is lib/silcutil/silcschedule.c.
266
267         * Rewrote the SILC scheduler handling in SILC Client to not poll
268           every few msecs but to use the new notify callback.  Affected
269           file is apps/irssi/src/silc/core/silc-core.c.
270
271         * Fixed SFTP client library read buffer size which was too small.
272           Affected file is lib/silcsftp/sftp_client.c.
273
274         * Fixed file transfer crash bug in /QUIT in SILC Client.  Close
275           the FTP sessions before quitting the client.  Affected file
276           is apps/irssi/src/silc/core/silc-servers.c.
277
278 Tue Jun  5 20:48:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
279
280         * Fixed silc_packet_get_ids to decode the IDs correctly.
281           Affected file is lib/silccore/silcpacket.c.
282
283         * Fixed silc_client_get_clients_local to parse correctly nickname
284           string that may have server name in it (nick@server) regardless
285           whether it was formatted nickname or not.  Affected file is
286           lib/silcclient/client_entry.c.
287
288 Mon Jun  4 22:02:53 CEST 2007  Jochen Eisinger <jochen@penguin-breeder.org>
289
290         * Only destroy sendbuffers, if they still exist (they cease to
291           exist during /upgrade).  Affected file is
292           apps/irssi/src/silc/core/silc-servers.c
293
294 Mon Jun  4 21:24:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
295
296         * Removed --enable-silc-plugin.  Added --with-silc-plugin.
297           Affected files are configure.ad, lib/configure.ad,
298           apps/irssi/configure.ad, apps/irssi/configure.in,
299           apps/irssi/scripts/Makefile.am,
300           apps/irssi/scripts/examples/Makefile.am,
301           apps/irssi/src/silc/core/silc/Makefile.am,
302           apps/irssi/src/fe-common/silc/Makefile.am.
303
304 Mon Jun  4 08:35:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
305
306         * SILC Client 1.1.
307
308 Sun Jun  3 14:00:09 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
309
310         * Fixed DESTDIR handling in make install.
311
312 Sat Jun  2 21:04:32 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
313
314         * SIM modules are not delivered to SILC CLient distribution
315           anymore.
316
317         * Changed default installation path from /usr/local/silc to
318           /usr/local for all distributions.
319
320         * Removed --with-etcdir and --with-docdir.  The etcdir is now
321           the system's default.  The Docdir is system's default.
322
323 Sat Jun  2 00:51:57 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
324
325         * If public key/private key loading fails set the return
326           pointer to NULL.  Affected file is lib/silccrypt/silcpkcs.c.
327
328         * If private key loading fails in silc_load_key_pair free the
329           loaded public key.  Affected file is
330           lib/silcapputil/silcapputil.c.
331
332         * Fixed key pair loading crash with SILC Plugin if key pair
333           loading fails.  Affected file is
334           apps/irssi/src/silc/core/silc-core.c.
335
336         * Fixed SILC Client help and script file installation path
337           to go to prefix/share/silc.  Affected files are
338           apps/irssi/src/scripts/Makefile.am and
339           apps/irssi/docs/help/Makefile.am.gen.
340
341 Thu May 31 16:49:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
342
343         * Fixed UTC offset minutes to be actually minutes.  Affected
344           file is lib/silcutil/silctime.c.
345
346 Thu May 31 09:40:56 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
347
348         * SILC Toolkit 1.1.
349
350         * Added support for checking for timezone and tm_gmtoff.
351           Affected files are configure.ad and lib/silcutil/silctime.c.
352
353 Wed May 30 18:46:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
354
355         * Added silc-toolkit.spec.in RPM spec file.
356
357 Mon May 28 23:21:39 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
358
359         * Fixed nickname formatting crash when updating existing
360           client entry.  Affected file is lib/silcclient/client_entry.c.
361
362         * Fixed MIME object encoding in attribute payload encoding.
363           Affected file is lib/silccore/silcattrs.c.
364
365 Mon May 28 09:02:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
366
367         * SILC Client 1.1 Beta6
368
369 Sun May 27 20:38:30 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
370
371         * Copy SILC Plugin's libfe_common_silc.so to libfe_silc.so so
372           that user's don't have to do it manually.  Affected file
373           is apps/irssi/src/fe-common/silc/core/Makefile.am.
374
375 Thu May 24 15:30:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
376
377         * SILC Toolkit 1.1 Beta4.
378
379         * Fixed channel and server entry freeing in client library.
380           Affected file is lib/silcclient/client_entry.c.
381
382         * Do not allow stopping client before it has been started.
383           Affected file is lib/silcclient/client.c.
384
385 Wed May 23 23:21:03 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
386
387         * Fixed formatted nickname renaming to rename also irssi's
388           nicklist (/NAMES etc).  Affected file is
389           apps/irssi/src/silc/core/client_ops.c.
390
391         * Fixed SILC Plugin crash when stopping client library before
392           it has been started.  Affected file is
393           apps/irssi/src/silc/core/silc-core.c.
394
395 Tue May 22 17:18:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
396
397         * For SILC Client and SILC Server check for 1.1 Toolkit
398           in configure.  Affected file is configure.ad.
399
400         * Added better library linking flags and orders for SILC Client.
401           Affected file is configure.ad, Makefile.defines_int.in and
402           apps/irssi/src/fe-text/Makefile.am
403
404 Mon May 21 08:26:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
405
406         * SILC Client 1.1 Beta5.
407
408 Sun May 20 18:34:22 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
409
410         * Add hooks for Irssi 0.8.11 module functions.  Affected file
411           is apps/irssi/src/fe-common/silc/fe-common-silc.c
412
413 Sat May 19 14:46:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
414
415         * Fixed passphrase authentication with server.  Affected file
416           is lib/silcclient/client_connect.c.
417
418         * Fixed passphrase authentication as responder.  Affected file is
419           lib/silcske/silcconnauth.c.
420
421         * Changed SilcAskPassphrase and SilcGetAuthMeth callbacks to
422           return data as const.  Affected file is
423           lib/silcclient/silcclient.h.
424
425         * Fixed timeout calculation in Symbian scheduler.  Affected
426           file is lib/silcutil/symbian/silcsymbianscheduler.c.
427
428 Fri May 18 21:10:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
429
430         * Do not uninitialize u.m.threads atomic int in finish but in
431           free.  Fixes crash on any platform using atomic operations
432           using mutexes (like Symbian).  Affected file is
433           lib/silcutil/silcfsm.c.
434
435         * Fixes Symbian scheduler wakeup synchronization.  Affected file
436           is lib/silcutil/symbian/silcsymbianscheduler.c.
437
438 Fri May 18 18:10:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
439
440         * Fixed nickname formatting to handle already formatted nicknames
441           better.  Affected file is lib/silccilent/client_entry.c.
442
443         * Added "foo#2 appears as foo" support to SILC Client when user
444           leaves or quits and one formatted nickname remain.  Affected file
445           is apps/irssi/src/silc/core/client_ops.c.
446
447         * Send SilcChannelEntry to application in SILC_NOTIFY_TYPE_SIGNOFF.
448           Affected file is lib/silcclient/client_notify.c.
449
450 Thu May 17 18:05:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
451
452         * Fixed silc_show_public_key to not free public key in case of
453           failure.  Affected file is lib/silcapputil/silcapputil.c.
454
455 Thu May 17 17:09:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
456
457         * SILC Toolkit 1.1 Beta3.
458
459         * Porting Toolkit to Symbian.  It should work while some sporadic
460           odd crashes remain.  However I was able to run mybot on SILCNet.
461           Basically tested scheduler, net routines, socket  routines,
462           threads and some other utility routines.  Affected files are
463           in lib/silcutil/symbian/.
464
465 Thu May 17 11:57:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
466
467         * Show realname and email address from public key when verifying
468           cached public keys with GETKEY.  Affected files are
469           apps/irssi/src/fe-common/module-formats.[ch] and
470           apps/irssi/src/silc/core/client_ops.c.
471
472 Wed May 16 20:41:04 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
473
474         * Include SILC Plugin theme.  Affected file is apps/irssi/plugin.theme
475
476         * Include SILC Plugin /silc command help.  Affected file is
477           apps/irssi/docs/help/silc
478
479         * Create channels before joining them.  Affected file is
480           apps/irssi/src/silc/core/client_ops.c
481
482 Wed May 16 18:59:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
483
484         * Fixed channel private key listing with /key.  Affected file
485           is apps/irssi/src/silc/core/silc-channels.c.
486
487         * Fixed the public headers from anonymous structures.  Affected
488           files are lib/.
489
490         * Changed silc_buffer_*len macros to inline functions.  Affected
491           file is lib/silcutil/silcbuffer.h.
492
493 Wed May 16 10:21:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
494
495         * Fixed nickname format parsing in JOIN notify handling and
496           in WHOIS command reply.  Affected file is
497           apps/irssi/src/silc/core/client_ops.c.
498
499 Wed May 16 09:34:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
500
501         * SILC Client 1.1 Beta4.
502
503 Tue May 15 23:55:41 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
504
505         * Added SILC_VERIFY macro which is equivalent to SILC_ASSERT
506           but is compiled always in.  Affected file is
507           lib/silcutil/silclog.h.
508
509         * Use SILC_VERIFY in FSM macros instead of SILC_ASSERT which is
510           not there in release builds.  Affected file is
511           lib/silcutil/silcfsm.h.
512
513 Tue May 15 21:19:09 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
514
515         * SILC Client 1.1-beta3
516
517 Mon May 14 23:20:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
518
519         * Added silc_utf8_c2w and silc_utf8_w2c to do UTF-8 to widechar
520           and widechar to UTF-8 conversions.  Affected files are
521           lib/silcutil/silcutf8.[ch].
522
523 Mon May 14 19:45:14 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
524
525         * Include a README for the SILC Plugin
526
527 Sun May 13 22:08:59 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
528
529         * Adopt perl Makefiles for SILC Plugin.
530
531 Sun May 13 18:27:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
532
533         * Fixed client library initialization when the running callback
534           is not given to silc_client_init.  Affected file is
535           lib/silcclient/client.c.
536
537         * Fixed Symbian compilation problems around the tree.  Added
538           new Carbide.c++ project files to symbian/ directory.
539
540         * Fixed SilcLog API to work on Symbian.  On Symbian it doesn't
541           use any globals.  Affected files are lib/silcutil/silclog.c
542           and silclog_i.h.
543
544 Sun May 13 16:54:35 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
545
546         * Fix several warnings in Irssi's Makefiles.
547
548 Sun May 13 12:16:30 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
549
550         * Disable ASM if --with-pic was given.  Affected file is
551           lib/silccrypt/configure.ad
552
553 Fri May 11 19:10:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
554
555         * Wakeup scheduler in silc_fsm_continue and silc_fsm_next_later
556           in case they are called from a thread.  Affected file is
557           lib/silcutil/silcfsm.c.
558
559         * Fixed WIN32 thread creation to handle the Tls correctly.
560           Affected file is lib/silcutil/win32/silcwin32thread.c.
561
562 Thu May 10 18:29:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
563
564         * SILC Toolkit 1.1-beta2.
565
566 Thu May 10 18:21:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
567
568         * Fixed silc_net_tcp_connect crash on Unix and Win32.  Handle
569           the socket async operation correctly.  Changed that DNS lookup
570           is now done during connecting.  Affected files are
571           lib/silcutil/[unix|win32]/silc[unix|win32]net.c.
572
573         * Changed also silc_net_tcp_connect on Symbian to do DNS lookup.
574           Affected file is lib/silcutil/symbian/silcsymbiannet.c.
575
576         * Optimize silc_net_gethostbyname to check if the name is already
577           IP address.  Affected file is lib/silcutil/silcnet.c.
578
579 Wed May  9 19:51:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
580
581         * Print filename instead of empty function name in debug output
582           on WIN32.  Affected files are lib/silcutil/silclog_i.h and
583           silclog.c.
584
585         * Rewrote WIN32 SILC Scheduler.  It now handles non-blocking file
586           descriptors and sockets better.  Though, room for optimization
587           remains.  Affected file is lib/silcutil/win32/silcwin32schedule.c.
588
589         * Removed silc_net_win32_[init|uninit].  They are called now
590           automatically when SILC Scheduler is allocated.  Wrote IPv4
591           address parser because inet_addr seemed not to work on my WIN32.
592           Affected file is lib/silcutil/win32/silcwin32net.c.
593
594         * Improved socketstream.h and stream.h documentation.
595
596 Tue May  8 18:13:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
597
598         * Changed private message waiting API in client library to make
599           it work better with multiple waiting threads.  The waiting is
600           not always per client entry instead of per connection.  Affected
601           files are lib/silcclient/client_prvmsg.c, client.h and
602           silcclient.h.
603
604         * Changed silc_packet_wait_init function to accept the the expected
605           Source ID of the packet as argument.  If specified only packets
606           with the specified types and Source ID are delivered.  Affected
607           files are lib/silccore/silcpacket.[ch].
608
609         * Fixed file transfer disconnection crash when closing the session
610           directly in the monitor callback after disconnection.  Affected
611           file is lib/silcclient/client_ftp.c.
612
613         * Make Toolkit compile on WIN32.  Affected files in win32/
614           and in lib/silcutil/win32/.
615
616         * Changed silc_compare_timeval to return negative, zero or
617           positive instead of just TRUE or FALSE.  This fixes 0 timeout
618           task dispatching on Windows.  Affected files are
619           lib/silcutil/silctime.[ch] and silcschedule.c.
620
621 Mon May  7 18:18:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
622
623         * Fixed CMODE channel auth public key retrieval.  Affected
624           file is lib/silcclient/command.c.
625
626         * Fixed CMODE command reply to return channel public keys
627           correctly.  Affected files are lib/silcclient/command_reply.c
628           and client_channel.c.
629
630 Sun May  6 12:43:19 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
631
632         * Added current channel key cipher name and HMAC name to
633           SilcChannelEntry.  Fixed channel private key creation.
634           Affected files are lib/silcclient/client_channel.c,
635           client_entry and silcclient_entry.h.
636
637         * Allow formatted nicknames as input to silc_client_get_clients
638           and silc_client_get_clients_whois.  Affected file is
639           lib/silcclient/client_entry.c.
640
641         * Fixed silc_message_payload_free crash.  Affected file is
642           lib/silccore/silcmessage.c.
643
644         * Added SILC_STATUS_ERR_NO_SUCH_PUBLIC_KEY to
645           lib/silccore/silcstatus.h.
646
647 Thu May  3 18:07:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
648
649         * Imported libtommath 0.41.  Renamed all mp_* functions to
650           tma_mp_* functions to avoid rare linking problems on systems
651           with mp_* functions.  Affected files are in lib/silcmath/.
652
653 Wed May  2 17:46:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
654
655         * SILC Toolkit 1.1 Beta1.
656
657 Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
658
659         * Set the server and router operator modes to local entry after
660           successful OPER or SILCOPER commands.  Affected file is
661           lib/silcclient/command_reply.c.
662
663 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
664
665         * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
666           and other smaller APIs to WIN32.  Affected files are in
667           lib/silcutil/win32/.
668
669         * Changed the various regex APIs as generic code in util library.
670           Affected files are lib/silcutil/silcstrutil.[ch].
671
672 Sat Apr 28 13:47:47 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
673
674         * Ported SILC Server to the new Toolkit API, working towards
675           SILC Server 1.1.  Affected files are in apps/silcd/.
676
677         * Added silc_skr_del_public_key, silc_skr_[ref|unref]_public_key
678           to lib/silcskr/silcskr.[ch].
679
680         * Fixed SILC public key copying to copy the identifier also.
681           Affected file is lib/silccrypt/silcpk.c.
682
683         * Added silc_packet_error_string to lib/silccore/silcpacket.[ch].
684
685         * Fixed OPER and SILCOPER passphrase asking in Client library.
686           Affected file is lib/silcclient/command.c.
687
688 Tue Apr 24 17:55:24 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
689
690         * Fixed command queue enabling after connecting to server.
691           The comparisons was from after changing to silc_utf8_strcasecmp.
692           Affected file is apps/irssi/src/silc/core/silc-servers.c.
693
694         * Fixed nickname setting with own client entry with 1.3 protocol
695           version server.  Affected file lib/silcclient/client_register.c.
696
697         * Ignore error notify for local client entry.  Affected file is
698           lib/silcclient/client_notify.c.
699
700         * Implemented responder rekey to SKE library.  Affected files are
701           lib/silcske/silcske.[ch].
702
703         * Fixed connection auth protocol completion sending.  Affected
704           file lib/silcske/silcconnauth.c.
705
706 Mon Apr 23 17:20:01 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
707
708         * Do not call TCP network listener callback with any error
709           status, as documented.  Affected file is
710           lib/silcutil/unix/silcunixnet.c.
711
712 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
713
714         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
715
716         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
717           Changed silc_skr_find to have SilcSchedule argument and removed
718           it from silc_skr_[alloc|init].  Affected files are
719           lib/silcskr/silcskr.[ch].
720
721         * Allow NULL id for silc_idcache_add.  Affected file is
722           lib/silcapputil/silcidcache.c.
723
724         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
725           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
726           Fixed also channel message encryption with router-to-router
727           packets.
728
729         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
730
731         * Added silc_net_get_error_string, silc_net_listener_get_ip and
732           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
733
734 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
735
736         * Add option --enable-silc-plugin.  Affected files are
737           apps/irssi/configure.{ad,in}
738
739         * Only compile the SILC Plugin if required.  Affected files are
740           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
741
742         * Conditionally build the SILC Plugin.  Affected files are
743           apps/irssi/src/silc/core/Makefile.am,
744           apps/irssi/src/fe-common/silc/Makefile.am
745
746         * Backout delayed protocol exit and replace with a lame busy
747           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
748           apps/irssi/src/silc/core/silc-core.c
749
750         * Fix key generation for SILC Plugin.  Affected file
751           apps/irssi/src/silc/core/clientutil.c
752
753 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
754
755         * Only pass -rpath to libtool when building shared libraries.
756           Affected file lib/Makefile.ad
757
758         * Removing the stray "s" in configure.ad
759
760 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
761
762         * Redraw the screen after creating a new key.  Affected file
763           apps/irssi/src/silc/core/clientutil.c
764
765 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
766
767         * Added SILC Client setting /set nickname_format that specifies
768           the nickname format string.  Changed default nickname format
769           string to "%n#%a".  Affected file is
770           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
771
772         * Fixed nickname parsing with WHOIS command to accept formatted
773           nicknames.  Changed the silc_client_get_clients_local to allow
774           the searched nickname to be formatted nickname.  Removed %s and
775           %S nickname formatters.  Affected files are in lib/silcclient/.
776
777         * Added silc_client_nickname_parse to Client library API.  Affected
778           file is lib/silcclient/silcclient.h.
779
780         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
781           commands.  Affected file are
782           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
783
784 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
785
786         * Incorporate SILC Plugin patches.  Affected files are
787           apps/irssi/src/fe-common/silc/module-formats.{c,h},
788           apps/irssi/src/silc/core/clientutil.{c,h},
789           apps/irssi/src/silc/core/silc-core.c,
790           apps/irssi/src/silc/core/silc-chatnets.{c,h},
791           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
792           apps/irssi/src/fe-common/silc/module.h
793
794 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
795
796         * In notify handling resolve user entries many times if the
797           resolving timedout.  Affected file lib/silcclient/client_notify.c.
798
799         * silc_client_get_clients_local do not return any invalid entries.
800           Affected file is lib/silcclient/client_entry.c.
801
802         * Do not print "there are now xx user on this channel" for users
803           that actually aren't anymore on the channel.  Affected file
804           is apps/irssi/src/client_ops.c.
805
806 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
807
808         * When joining channels with a password given in the config file,
809           use it.  Also use it when cycling (it would be better to get
810           the password from the server, but this isn't possible in SILC).
811           Affected files apps/irssi/src/silc/core/silc-servers.c,
812           apps/irssi/src/silc/core/silc-channels.c
813
814 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
815
816         * Import perl script for sign_messages from silc-plugin.  Affected
817           file apps/irssi/scripts/silc.pl
818
819 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
820
821         * Only wait for a nick on connecting, when it differs
822           (not counting case) from the username.  Affected file
823           is apps/irssi/src/silc/core/silc-servers.c
824
825 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
826
827         * Use time settings for lag settings.  Affected file is
828           apps/irssi/src/silc/core/silc-lag.c
829
830 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
831
832         * Added silc_thread_yield.  Affected file is
833           lib/silcutil/silcmutex.h.
834
835 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
836
837         * Fixed WHOIS command and requested attributes handling in
838           client library.  Affected files are lib/silcclient/command.c
839           and lib/silcclient/client_attrs.c.
840
841         * Fixed silc_time_value to actually work.  Added new function
842           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
843
844 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
845
846         * SILC Client 1.1 beta2.
847
848 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
849
850         * Fixed client to properly abort TCP stream creation when
851           giving /QUIT.  Affected file
852           apps/irssi/src/silc/core/silc-servers.c.
853
854         * Fixed several connecting aborting crashes from the client
855           library, packet engine and socket stream.  Affected files
856           are in lib/silclient/, lib/silccore/silcpacket.c and
857           lib/silcutil/unix/silcunixsocketstream.c.
858
859         * Fixed private key export double free crash in key generation.
860           Affected file is lib/silccrypt/silcpk.c.
861
862         * Fixed FSM event waiting when there are multiple signallers
863           and the waiter goes away after the first signal.  Affected
864           file in lib/silcutil/silcfsm.c.
865
866 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
867
868         * Fixed FSM event signalling to check if the waiter has gone
869           away already.  Affected file is lib/silcutil/silcfsm.c.
870
871         * Fixed counter mode encryption/decryption to handle non-padded
872           SILC packets correctly.  The silc_cipher_set_iv now
873           in counter mode resets for a new block.  Affected files are
874           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
875
876 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
877
878         * SILC Client 1.1 beta1.
879
880         * Memory leak fixes around the libraries.
881
882 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
883
884         * Added better check for epoll() in configure.  Affected file
885           is lib/configure.ad.
886
887 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
888
889         * Fixed per scheduler data input buffer in packet engine.  Use
890           list of inbufs instead of just one so that multiple streams
891           can do partial reads to different buffers.  Affected file is
892           lib/silccore/silcpacket.c.
893
894         * Fixed WATCH notify handling in client library.  Affected file
895           is lib/silcclient/client_notify.c.
896
897 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
898
899         * Fixed packet wrapper stream API to support encoder/decoder
900           for packets, and to handle partial reading correctly.  Fixed
901           also inbuf size checking in reading to have enough space before
902           reading.  Affected files are lib/silccore/silcpacket.[ch].
903
904         * Rewrote file transfer in client library.  Affected files are
905           in lib/silcclient/.
906
907         * Added TCP/UDP listener (internal) API to client library to have
908           generic way of dealing with listeners.  Fixed Key Agreement and
909           file transfer to use it.  Affected files are in lib/silcclient/.
910
911         * Fixed SKE to process SUCCESS packets synchronously and to call
912           completion synchronously.  Affected file is lib/silcske/silske.c.
913
914         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
915
916         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
917           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
918
919 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
920
921         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
922           to client library.  Affected file is
923           lib/silcclient/client_register.c.
924
925         * Serialize NICK and JOIN commands to avoid problems locally
926           with changing ID while joining to channel.  Affected file is
927           lib/silcclient/command.c.
928
929         * Fixed entry resolving while handling incoming JOIN notify.
930           Handle properly cases, in re-processing of notify packets, where
931           the IDs may become invalid while resolving the entry (like nick
932           change).  Entry is invalid if it doesn't have nickname, and such
933           entries are not delivered to application anymore.  These fixes
934           problems of not seeing JOINs when remote user changes nickname
935           at the same time.  Affected files are in lib/silcclient/.
936
937 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
938
939         * Added support for computing message payload MAC in new way
940           (SILC Protocol version 1.3).  Bakcwards support for old way
941           remains.  Affected files are lib/silccore/silcmessage.[ch].
942
943 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
944
945         * Added SilcRwLock API, a read/write lock.  Affected files are
946           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
947
948 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
949
950         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
951
952 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
953
954         * The silc_schedule_set_listen_fd now returns boolean value.
955           Fixed FD task adding to check correctly for already added
956           FD tasks.  Added stricter error checking for FD scheduling
957           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
958           and lib/silcutil/unix/silcunixschedule.c.
959
960         * The silc_stream_set_notifier now returns boolean value.  Changed
961           all streams to support and check for the error condition.
962           Affected files are in lib/silcutil/.
963
964         * Fixed SKE library session aborting and deletion.  Affected
965           file are lib/silcske/silcske.c.
966
967 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
968
969         * Implemented PKCS #1 with appendix with hash OID in the
970           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
971           lib/silccrypt/silchash.[ch] and
972           lib/silcasn1/silcasn1[_encode|decode].[ch].
973
974 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
975
976         * Added support for Version (V) SILC public key identifier.
977           Affected files are lib/silccrypt/silcpk.[ch].
978
979 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
980
981         * Rewrote connection auth request in client library.  It is now
982           done automatically by the library and the resolved method given
983           as a hint to get_auth_method client operation.  Affected files
984           are lib/silcclient/.
985
986 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
987
988         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
989           It can be used to wrap SilcPacketStream into SilcStream.
990
991         * Fixed %p formatting from silc_snprintf.  Affected file is
992           lib/silcutil/silcsnprintf.c.
993
994         * Ported SFTP library to new utility library.  Ported also
995           the SFTP testers.  Affected files in lib/silcsftp/.
996
997 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
998
999         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
1000           of silc_snprintf, silc_vsnprintf, silc_asprintf and
1001           silc_vasprintf.
1002
1003 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1004
1005         * Added preliminary Symbian support.  Changes around the source
1006           tree.  The symbian/ directory now includes Carbide.c++ project
1007           files to compile the sources.
1008
1009         * Added silc_snprintf.  Affected files are
1010           lib/silcutil/silcstrutil.[ch].
1011
1012 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1013
1014         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
1015           macros.  SILC_FSM_CONTINUE macro now immediately calls the
1016           next state instead of first returning back to FSM.  Helps
1017           in debugging crashes etc.
1018
1019           Removed FSM Semaphores.  Introduced FSM Event which is
1020           asynchronous event.   Affected files are in lib/.
1021
1022         * Added epoll(7) support to SILC Scheduler.  It is used by default
1023           if it is available.  Affected files are
1024           lib/silcutil/silcschedule.[ch],
1025           lib/silcutil/unix/silcunixschedule.c.
1026
1027 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1028
1029         * Added CTR mode to AES.  Simplified cipher implementation API
1030           more.  Affected files are in lib/silccrypt/.
1031
1032 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1033
1034         * Removed `detach' client operation.  The detachment data is
1035           now delivered in SILC_COMMAND_DETACH command reply to
1036           application.  Affected file in lib/silcclient/.
1037
1038         * Rewrote resuming/detaching in client library.
1039
1040         * Added boolean encryption indicator for silc_cipher_set_key.
1041           Affected files lib/silccrypt/silccipher.[ch].
1042
1043 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1044
1045         * Added silc_likely and silc_unlikely macros for GCC branch
1046           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
1047
1048         * Added assembler AES optimization.  Cleaned up the SILC Cipher
1049           implementation API.  Affected files are in lib/silccrypt/.
1050
1051 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1052
1053         * Changed back the SILC_FSM_THREAD_WAIT operation to not
1054           continue to next state if thread is finished already.  That
1055           check is not done anymore.  Affected files are
1056           lib/silcutil/silcfsm.[ch].
1057
1058 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1059
1060         * Removed silc_packet_[get|set]_ciphers and
1061           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
1062           handle REKEY_DONE packet sending in rekey.  Affected files
1063           are lib/silccore/silcpacket.[ch].
1064
1065         * Added silc_fsm_is_started.  Affected files are
1066           lib/silcutil/silcfsm.[ch].
1067
1068         * Added settings sign_channel_message, sign_private_message
1069           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
1070           support for key agreement in /KEY command. Affected files
1071           in apps/irssi/src/silc/core/.
1072
1073         * During SILC Client initialization forward log messages to
1074           stderr.   Affected files in apps/irssi/src/silc/core/.
1075
1076 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1077
1078         * Added silc_ske_get_key_material.  Affected files are
1079           lib/silcske/silcske.[ch].
1080
1081         * Added silc_packet_stream_is_udp.  Affected files are
1082           lib/silccore/silcpacket.[ch].
1083
1084         * Added SKE packet retransmission support with UDP transport.
1085           Affected file is lib/silcske/silcske.c.
1086
1087 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1088
1089         * Added silc_socket_stream_is_udp.  Affected file is
1090           lib/silcutil/silcsocketstream.[ch].
1091
1092         * Added UDP transport support to packet engine.  Affected file
1093           is lib/silccore/silcpacket.c.
1094
1095         * Added silc_socket_stream_is_udp.  Affected file is
1096           lib/silcutil/silcsocketstream.[ch].
1097
1098 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1099
1100         * Added silc_packet_send_va[_ext] to send variable argument
1101           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
1102
1103         * Timeout freelist garbage collection added to scheduler.
1104           Affected file lib/silcutil/silcschedule.c.
1105
1106 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1107
1108         * Added silc_show_public_key_file to
1109           lib/silcapputil/silcapputil.[ch].
1110
1111         * Added SILC_STR_ADVANCE support for buffer unformatting.
1112           Affected file lib/silcutil/silcbuffmt.c.
1113
1114 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
1115
1116         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
1117
1118         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
1119
1120         * silc_fsm_continue[_sync] now cancels erlier timeout set with
1121           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
1122
1123 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
1124
1125         * Added SILC_STR_FUNC to buffer format API.  Affected files
1126           are lib/silcutil/silcbuffmt.[ch].
1127
1128         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
1129
1130         * No more memory allocation for message payload parsing.
1131           Pre-allocated buffer can be used with message payload encoding.
1132           Affected files lib/silccore/silcmessage.[ch].
1133
1134 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1135
1136         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
1137           to silcutil/silcbuffmt.[ch].
1138
1139 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1140
1141         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
1142           Affected file lib/silcutil/silcbuffmt.[ch].
1143
1144         * Removed silc_schedule_signal_[un]register and
1145           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
1146           to add signal task.  Only one callback per signal may be
1147           added.  The signals are now automatically called back to
1148           caller.  Affected files lib/silcutil/silcschedule.[ch] and
1149           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
1150
1151         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
1152
1153         * Added SilcSKEParams for SKE parameters and simplied even more
1154           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
1155           Added support for IV included and session port handling with
1156           UDP/IP connections.
1157
1158         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
1159           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
1160           which is called after every rekey when IV Included flag is used.
1161           See SILC specifications for details.
1162
1163 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1164
1165         * Added lib/silcapputil and moved SILC application specific
1166           utility routines from the generic util library lib/silcutil
1167           to the new library.  Removed lib/silcidcache and moved that
1168           to lib/silcapputil as well.
1169
1170 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1171
1172         * Added SILC_STR_ADVANCE.  Affected file is
1173           lib/silcutil/silcbuffmt.[ch].
1174
1175         * The silc_buffer_strformat preserves buffer locations now.
1176
1177         * Added lib/silcutil/silcatomic.h for atomic operations.
1178
1179 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1180
1181         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
1182           server.
1183
1184         * Fixed MIME deocing when data portion is not present.
1185           Affected file lib/silcutil/silcmime.c.
1186
1187 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1188
1189         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
1190
1191         * Added IV Included support to packet routines, to allow
1192           packet sending and receiving on UDP/IP.  Affected files are
1193           lib/silccore/silcpacket.[ch].
1194
1195         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
1196
1197 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1198
1199         * Added UDP support to network and socket stream library.
1200
1201 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1202
1203         * Added conditional variables.  New files are
1204           lib/silcutil/silcondvar.h and platform specific implementations.
1205
1206 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
1207
1208         * make sure session->hostname and session->port are valid before the
1209           application callback is done, since things will go wrong if the
1210           application immediately calls silc_client_file_receive. Affected
1211           file lib/silcclient/client_ftp.c.
1212           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
1213
1214 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1215
1216         * New SILC PKCS API enabling support for other public keys
1217           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
1218
1219         * Separated SILC Public Key Payload routines from the PKCS API
1220           to lib/silccore/silcpubkey.[ch].
1221
1222 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1223
1224         * Added SILC Key Repository library, lib/silcskr.
1225
1226         * Added SILC Server library, lib/silcserver.
1227
1228 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1229
1230         * MIME objects in attributes now use SilcMime.  Affected files
1231           are lib/silccore/silcattrs.[ch].
1232
1233 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1234
1235         * Synchronize semaphore posting for real threads in FSM.
1236           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
1237
1238 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1239
1240         * Added silc_file_set_nonblock.  Affected file is
1241           lib/silcutil/silcfileutil.h.
1242
1243         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
1244
1245 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1246
1247         * FSM based implementation of SILC SKE.  Simpler interface also.
1248           Affected files are in lib/silcske/.
1249
1250         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
1251
1252 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1253
1254         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
1255           silc_mime_parse is available but deprecated.
1256
1257         * Check that packet is valid when processing key exchange,
1258           authentication and rekey protocols.  Fixes a crashbug.
1259           Affected files are apps/silcd/protocol.c and
1260           lib/silcclient/protocol.c.
1261
1262         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
1263           all hash buffers to use that instead of fixed values.
1264
1265 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1266
1267         * Added SHA-256 to crypto library.  The SHA-256 takes now
1268           precedence over SHA-1.
1269
1270 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1271
1272         * Check for valid return value from regcomp.  Affected file
1273           lib/silcutil/unix/silcunixutil.c.
1274
1275 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1276
1277         * Fixed silc_hash_uint to work with integers.  Affected
1278           file lib/silcutil/silcutil.c.
1279
1280 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1281
1282         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
1283
1284 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1285
1286         * Fixed channel public key list saving on JOIN command reply
1287           on backup router.  Affected file apps/silcd/command_reply.c.
1288
1289 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1290
1291         * Added default limit how many channels client can join,
1292           default is 50.  Added 'channel_join_limit' configuration
1293           option to server too.  Affected files are apps/silcd/command.c
1294           and serverconfig.[ch].
1295
1296 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1297
1298         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
1299           On Toolkit the server and client are not compiled by default.
1300           Affected file configure.ad.
1301
1302 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1303
1304         * Added lib/contrib/getopt.[ch] for platforms that don't
1305           have it (it is not GPL implementation).
1306
1307         * Fixed compilation when pkg-config is used.
1308
1309 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1310
1311         * A comma in invite/ban string is invalid, check for it.
1312           Affected file apps/silcd/server_util.c.
1313
1314         * Added SERVICE command to the server.  It parses the command
1315           request but SILC Server does not support services for the
1316           time being.  Affected file apps/silcd/command.[ch].
1317
1318         * Added SERVICE command and command reply to client library.
1319           It is however incomplete.  Updated Toolkit documentation.
1320           Affected files are lib/silcclient/command[_reply].[ch].
1321
1322         * Fixed IDENTIFY/WHOWAS command reply to send the username
1323           correctly (uninitialized buffer).  Affected file is
1324           apps/silcd/server_query.c.
1325
1326 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1327
1328         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
1329           finalizes the major restructuring of the CVS tree.
1330
1331 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1332
1333         * Send empty MOTD reply if MOTD file cannot be read.
1334           Affected file silcd/command.c.
1335
1336 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1337
1338         * Optimized primer number generator to use simpler conversion
1339           routines.  Also assure that the prime number will have the
1340           highest bit set after modifying it.  Affected file is
1341           lib/silcmath/silcprimegen.c.
1342
1343         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
1344
1345         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
1346           for now only for testing purposes, it will not be delivered
1347           in any distribution for now.
1348
1349         * Removed NSS MPI from the source tree.  Due to upcoming
1350           license change for the SILC Toolkit, we cannot deliver the
1351           NSS MPI anymore.  I decided to replace it in all distributions
1352           with public domain library.
1353
1354         * Removed GNU regex from lib/contrib and introduced free
1355           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
1356           GNU regex compatible API to it (only partial).
1357
1358         * Removed getopt routines from lib/contrib.
1359
1360 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1361
1362         * Use silc_server_send_command_reply to send replies instead
1363           of encoding packet itself.  Affected file silcd/command.c.
1364
1365         * Added command sending and receiving statistics to server.
1366           Affected files in silcd/.
1367
1368         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
1369           with GCC, for it not to warn about pointer signedness.
1370
1371 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1372
1373         * Added context to the SilcIDCache destructor.  Affected
1374           files are lib/silccore/silcidcache.[ch],
1375           lib/silcclient/client.c and silcd/server.c.
1376
1377 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1378
1379         * Added pkg-config check to configure.
1380
1381         * The PublicKeyDir must not be used with Admin block in server
1382           config.  Affected file silcd/serverconfig.c.
1383
1384 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1385
1386         * Added Autodist.
1387
1388 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1389
1390         * Handle empty LIST command reply correcttly in server.  Affected
1391           file silcd/command_reply.c.
1392
1393         * Handle empty LIST command reply correctly in client library.
1394           The application will now receive one LIST command reply with
1395           all arguments set to NULL if there are no channels.  Updated
1396           Client Library documentation accordingly.  Affected file
1397           lib/silcclient/command_reply.c.
1398
1399 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1400
1401         * Added channel name string stringprep profile to the protocol
1402           and implementation to allow a little free'er channel name
1403           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
1404
1405         * Added silc_channel_name_[check|verify] to check and verify
1406           channel name strings.  Affected files are
1407           lib/silcutil/silcstrutil.[ch].
1408
1409         * Added support for the new channel name preparation in client
1410           library and server.  Affected files in lib/silcclient and
1411           silcd/.
1412
1413 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1414
1415         * Added the Autodist into the source tree.  It replaces the
1416           old ./prepare.  It can be used to create distributions as
1417           previously.  See README.CVS and README.DIST.  See
1418           distributions in distdir/.
1419
1420 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1421
1422         * Make sure query sends at least an error back if nothing
1423           more is sent.  Affected file silcd/server_query.c.
1424
1425 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1426
1427         * During query, check if the original command caller goes
1428           away.  If it does, stop the query.  Affected file
1429           silcd/server_query.c.
1430
1431         * Check for valid channel creation in JOIN command reply.
1432           Affected file lib/silcclient/command_reply.c.
1433
1434         * Handle the resolver counter in silc_client_get_users_by_channel
1435           callback correctly.  Fixed auto-join bug in Gaim.  Affected
1436           file lib/silcclient/idlist.c.
1437
1438 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1439
1440         * Added some better error messages.  Affected file
1441           silcd/command_reply.c and packet_receive.c.
1442
1443         * Handle error in WATCH command propely on backup router.
1444           Affected file silcd/command.c.
1445
1446         * Fixed freeing of unfreeable variable in WHOIS command reply.
1447           Affected file silcd/command_reply.c.
1448
1449 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
1450
1451         * Added pkg-config .pc file creation for silc core library
1452           and silcclient library.  A patch by c0ffee.
1453
1454         * Removed the need for GNU Libidn.  Added the simple stringprep
1455           from libidn into lib/contrib/.  It is now used also on Windows
1456           build.
1457
1458 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1459
1460         * Simplified the invite and ban string handling in the
1461           server.  Check for valid invite and ban arguments also.
1462           Affected file silcd/server_util.c.
1463
1464 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1465
1466         * Added WATCH list announcing in backup router protocol.
1467           Affected files are silcd/command.c, server.c, server_backup.c.
1468
1469         * Do not change users mode to founder on normal server/backup
1470           if the founder mode is set, and user is first one to join.
1471           Affected file silcd/pcaket_receive.c.
1472
1473         * Do not send CUMODE_CHANGE notify back to sender.  Affected
1474           file silcd/packet_receive.c.
1475
1476         * Added getrusage() to take noise in SILC RNG.  A patch by
1477           Mika Boström.  Affected files are configure.in.pre,
1478           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
1479
1480 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1481
1482         * Splitted the SILC libraries configuration into a configure
1483           fragment into lib/configure.ad.  It is now possible, once
1484           this feature is added, to specify whether to compile or not
1485           compile included SILC libraries.  Affected files are
1486           configure.in.pre, lib/silcmath/mpi/configure.ad,
1487           lib/configure.ad, Makefile.defines.pre and
1488           Makefile.defines_int.pre.
1489
1490         * Added --with-silc-includes and --with-silc-libs to configure.
1491           If specified the included libs are not compiled, but the
1492           specified libs are used.  Pkg-config is not yet supported.
1493           Affected file configure.in.pre.
1494
1495         * Fixed WATCH command handling on backup router.  Router does not
1496           send the watch command any more to backup if it originates from
1497           backup.  Affected file silcd/command.c.
1498
1499 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1500
1501         * Changed announcing to not announce unregistered clients.
1502           Affected file silcd/server.c.
1503
1504         * Fixed username handling in command reply.  Affected file
1505           silcd/command_reply.c.
1506
1507         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
1508
1509 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
1510
1511         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
1512           Affected file: includes/silcincludes.h.in
1513
1514         * bool is defined as _Bool on Mac OS X now.
1515           Affected file: lib/silcutil/silctypes.h
1516
1517 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1518
1519         * Added support for UTF-8 nicknames, channel names and
1520           server names in client library.  Affected files in
1521           lib/silcclient/.
1522
1523         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
1524           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
1525           software to check how Toolkit has been compiled.
1526
1527 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1528
1529         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
1530
1531         * Use silc_utf8_str[n]casecmp instead of strcmp routines
1532           in library and in SILC Client when dealing with nicknames
1533           and other identifier strings.  Affected file in client lib
1534           and irssi.
1535
1536         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
1537           irssi/src/silc/core/silc-servers.c.
1538
1539 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1540
1541         * Fixed idcache to work with the new identifier strings.
1542           Affected file lib/silccore/silcidcache.c.
1543
1544         * Added UTF-8 hash and compare function for SilcHashTable.
1545           Affected file lib/silcutil/silcutil.[ch].
1546
1547         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
1548           Affected file lib/silcutil/silcstringprep.[ch].
1549
1550         * Changed the identifier string handling to include the original
1551           format in client, server, channel entries and normalized
1552           format in cache.  Affected files in silcd/.
1553
1554 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1555
1556         * Added support for the new identifier strings and their
1557           validity checking.  Nicknames, channel names and usernames
1558           can now include practically any kind of letters and various
1559           other characters.  Affected files in silcd/ and in libraries.
1560
1561           NOTE: comparing these strings should now be done with memcmp()
1562           to check binary compatibility.  All these strings are normalized
1563           and casing is irrelevant.
1564
1565         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
1566           as easy function for applications to check whether identifier
1567           strings are valid.
1568
1569 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1570
1571         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
1572           file lib/silcutil/silcutf8.c.
1573
1574         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
1575
1576 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1577
1578         * Make public key in getkey reply mandatory.  Affected file
1579           lib/silcclient/command_reply.c
1580
1581 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
1582
1583         * Added Parameter dont_register_crypto_library to
1584           SilcClientParam. If set to TRUE, silcclient library will
1585           not initalize the Crypto Libraries and application
1586           will need to do it. Affected file lib/silcclient/silcclient.h,
1587           lib/silcclient/client.c.
1588
1589 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1590
1591         * Imported new silc_utf8_[encode|decode] routines from
1592           my internal SILC 1.1 source tree.  New encodings added:
1593           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
1594           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
1595           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
1596           SILC_STRING_LDAP_DN.
1597
1598         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
1599
1600         * Implemented stringprep (RFC 3454) API.  Internally we use
1601           GNU Libidn's stringprep, for now, so it is required now to
1602           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
1603
1604         * Added checking for GNU Libidn and --with-libidn to configure.
1605
1606 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1607
1608         * If the passphrases entered do not match while generating a new key,
1609           completly start over instead of going into an infinite loop asking
1610           the user to re-enter the passphrase correctly.  Affected file
1611           lib/silcutil/silcapputil.c
1612
1613 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
1614
1615         * Make sure server is removed from backup list when it is
1616           deleted.  Affected files silcd/command.c, server.c,
1617           server_util.c.
1618
1619         * Close socket when connecting to router fails.  Affected
1620           file silcd/server.c.
1621
1622 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1623
1624         * Adopt configuration toolchain to current auto-tools.
1625           Affected files prepare, irssi/configure.in
1626         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
1627           redo that.  Affected files irssi/src/silc/core/client_ops.c,
1628           irssi/src/fe-common/silc/fe-silc-channels.c
1629         * Take over command line options into silcclient data structure.
1630           Affected file irssi/src/silc/core/silc-core.c
1631
1632 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1633
1634         * Do not try to initiate backup resuming protocol forever.
1635           Affected file silcd/server_backup.c.
1636
1637 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1638
1639         * ID change in resuming has to be done before changing
1640           detached client's modes, since the ID change may fail and
1641           leave ghosts on the network.  Affected file is
1642           silcd/packet_receive.c.
1643
1644 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1645
1646         * Fixed Win32 scheduler to not stuck anymore.  A patch from
1647           Juha Räsänen.  Affected file is
1648           lib/silcutil/win32/silcwin32schedule.c.
1649
1650         * Fixed QoS parsing for connection blocks in server.  Affected
1651           file is silcd/serverconfig.c.
1652
1653         * Fixed server statistics increasing in server.  Affected file
1654           is silcd/server.c.
1655
1656         * The CLOSE command now marks backup router as self disconnected
1657           to avoid resuming problems.  Affected file silcd/command.c.
1658
1659 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
1660
1661         * When using silc_net_create_connection[_async], and your system can
1662           create IPv6 sockets, it will try to connect to the IPv6 host.
1663           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
1664           file lib/silcutil/unix/silcunixnet.c
1665
1666 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
1667
1668         * Check for valid route when receiving packet from router and
1669           when routing it to local server in the cell.  A patch from
1670           Matt Miller.  Affected files silcd/router.c and server.c.
1671
1672 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
1673
1674         * Couldn't detach and reattach twice, because of the previous
1675           commit. Affected file silcd/packet_receive.c
1676
1677 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
1678
1679         * Added check to ignore Port value if Initiator is FALSE.
1680           Remote router coudln't connect if Port was set. Affected file
1681           silcd/serverconfig.c
1682
1683         * If some client tries to resume more than once at the same time,
1684           server crashed. Router didn't crash, but showed odd behaviour
1685           (didn't allow clients to join anymore, ..). Affected files
1686           silcd/packet_receive.c silcd/idlist.h
1687
1688 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1689
1690         * Destroy the file transfer session in silc_client_file_close
1691           with timeout.  Affected file lib/silcclient/client_ftp.c.
1692
1693         * Call SFTP server monitor in READ and WRITE after the actual
1694           operations.  Affected file lib/silcsftp/sftp_server.c.
1695
1696 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1697
1698         * Create one configure script from configure fragments
1699           (configure.ad).  This is a first step towards new distribution
1700           system.  Affected files prepare, configure.in.pre,
1701           lib/silcmath/mpi/configure.ad.
1702
1703 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1704
1705         * Removed expiring of client key pair.  Affected file is
1706           irssi/src/silc/core/clientutil.c
1707
1708 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1709
1710         * Check the number of connections from real number of
1711           connections instead of socket number, when deciding if
1712           server is full.  Affected files are silcd/server.c,
1713           server_internal.h and silcd.c.
1714
1715         * Clarified the connections_max meaning in General section
1716           in doc/example_silcd.conf.in.
1717
1718         * The reconnect_keep_trying default value set to TRUE
1719           if it is not defined in the config file.  Affected file
1720           silcd/serverconfig.c.
1721
1722 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1723
1724         * Fixed crashbug in connection closing, after a protocol
1725           completion callback, which might have closed it already.
1726           Affected file silcd/server.c.
1727
1728         * Fixed rekey with PFS in backup router.  It did not allow
1729           rekeys with PFS, and when the rekey protocol timedout
1730           it crashed the backup router without the above fix.  Affected
1731           file silcd/packet_send.c and server.c.
1732
1733 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1734
1735         * The silc_client_add_channel_private_key now returns the
1736           private key context if pointer is given as argument.
1737           Affected files are lib/silcclient/silcclient.h and
1738           client_channel.c.
1739
1740         * Added support for using channel private keys in SILC
1741           Client Library even if the private key mode is not set
1742           on the channel.  Affected file lib/silcclient/client_channel.c.
1743
1744         * The channel private key used to decrypt message is now
1745           delivered to the application in the 'channel_messageÃ' client
1746           operation.  Affected files are lib/silcclient/silcclient.h
1747           and client_channel.c.
1748
1749         * Fixed wrong arg type for user limit in CMODE command reply.
1750           Affected file silcd/command.c.
1751
1752         * The user limit is now taken and saved to SilcClientEntry in
1753           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1754           Affected files lib/silcclient/silcclient.h, command_reply.c
1755           and client_notify.c.
1756
1757         * Added support to the new private message key indicator
1758           packet.  Added a new function to the client library:
1759           silc_client_send_private_message_key_request.  The sender
1760           indicates to be initiator, and receiver is responder.
1761           Added the indicator to the SilcClientEntry as 'prv_resp'
1762           boolean.  Affected files are lib/silcclient/silcclient.h
1763           client.[ch], and client_prvmsg.c.
1764
1765 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1766
1767         * Fixed the JOIN command calling when called with both
1768          -auth and -founder.  Affected file is lib/silcclien/command.c.
1769
1770 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1771
1772         * Check watcher list for resumed clients as well.  Affected
1773           file is silcd/packet_receive.c.
1774
1775 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1776
1777         * Implemented the user limit to the CMODE_CHANGE notify,
1778           CMODE command reply and JOIN command reply in server.
1779           Affected files are silcd/server.c, command.c, command_reply.c,
1780           packet_send.c and packet_receive.c.
1781
1782 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1783
1784         * Defined SILC_STRFMT_END that must be used now with
1785           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1786           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1787           lib/silcclient/silcvcard.c, silcd/server_util.c.
1788
1789         * Fixed the adding of public key to the WATCH list in server.
1790           Fixed the WATCH notify sending to client.  Affected files
1791           are silcd/packet_send.[ch], command.c, server_util.c.
1792
1793         * Implemented the watching by public key in the SILC Client
1794           Library and SILC Client.  Affected files are
1795           lib/silcclient/command.c and client_notify.c.
1796
1797 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1798
1799         * Added support for public key watching in server.  Affected
1800           files are silcd/server.c, server_internal.h, command.c,
1801           server_util.c.
1802
1803 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1804
1805         * Added public key to the SIlcClientEntry.  Affected files
1806           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1807
1808         * Fixed the get_clients_whois reply processing to return
1809           exactly same entries server returned.  Makes it possible
1810           to search using attributes.  Affected file is
1811           lib/silcclient/idlist.c.
1812
1813 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1814
1815         * Save founder key to SilcChannelEntry.  Affected files are
1816           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1817
1818 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1819
1820         * Call the monitor callback with _CLOSED status from the
1821           silc_client_file_close.  Affected files are
1822           lib/silcclient/client_fpt.c, silcclient.h
1823
1824         * Added silc_client_get_clients_whois which resolves using
1825           WHOIS, and supports requested attributes as well.
1826           Affected files are lib/silcclient/silcclient.h, idlist.c.
1827
1828 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1829
1830         * Added support for asking the destination filename where
1831           the downloaded file is saved in the file transfer.  Affected
1832           files are lib/silccilent/silcclient.h, client_ftp.c.
1833
1834 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1835
1836         * Fixed error handling in resuming data processing.  Affected
1837           files are lib/silcclient/client_resume.c and client.c.
1838
1839 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1840
1841         * Fixed silc_client_send_private_message to return TRUE correctly.
1842           Affected file lib/silcclient/client_prvmsg.c.
1843
1844         * Added topic to the SilcChannelEntry.  Affected files are
1845           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1846
1847 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1848
1849         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1850           file lib/silcclient/command.c
1851
1852 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1853
1854         * Convert all commands to UTF-8 before passing them to the
1855           client library.  Still need to convert replies from UTF-8 to
1856           the locale encoding.  Affected file
1857           irssi/src/silc/core/silc-cmdqueue.c
1858
1859 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1860
1861         * redirect all silc_client_command_calls through a queueing framework.
1862           This fixes /CYCLE and the annoying "nick change after auto-joining
1863           a channel".  Furthermore it defines one central point where
1864           command parameters can be UTF-8-ified.  Affected files
1865           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1866           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1867
1868 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1869
1870         * use asynchronous connect() to establish router connections.
1871           Fixes problem when the primary router goes down.  Affected files
1872           silcd/server.c, silcd/server_backup.c
1873
1874 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1875
1876         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1877           Fixed various compilation warnings when type casting ints
1878           to pointers or vice versa, of different size.  Updates around
1879           the source free.
1880
1881 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1882
1883         * Surrogates not allowed in UTF-8 strings, updated decoder.
1884           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1885           testers in lib/silcutil/tests/ directory.
1886
1887 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1888
1889         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1890           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1891           files are lib/silcclient/silcclient.h, client.c.
1892
1893 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1894
1895         * When resuming a session fails, notify the user that the session
1896           file needs to be removed eventually.  Affected files
1897           irssi/src/fe-common/silc/module-formats.[ch],
1898           irssi/src/silc/core/client_ops.c.
1899
1900 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1901
1902         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1903           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1904
1905         * Typofix in Irssi::Silc module.  Affected file
1906           irssi/src/perl/silc/Silc.xs.
1907
1908 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1909
1910         * Changed the way NOTICE flagged messages are treated. Added support
1911           for notices in queries and signing notices.  Affected files
1912           irssi/default.theme; irssi/docs/help/in/notice.in;
1913           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1914           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1915
1916         * Fixed typo in /ACTION help.  Affected file
1917           irssi/docs/help/in/action.in
1918
1919 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1920
1921         * Fixed typo in perl module.  Affected file
1922           irssi/src/perl/silc/Server.xs
1923
1924         * Changed the way ACTION flagged messages are treated. Added support
1925           for actions in queries and signing actions.  Affected files
1926           irssi/default.theme; irssi/docs/help/in/action.in;
1927           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1928           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1929           silc-servers.[ch]
1930
1931 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1932
1933         * Incorrectly reported error when client had to be resolved from
1934           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1935
1936 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1937
1938         * Fixed whois public key hash table deleting and adding in
1939           detached client case.  Affected file silcd/packet_receive.c.
1940
1941 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1942
1943         * Changed filenames of silc/fe module not to collide with filenames
1944           from core/fe.  Also seperated public messages printing from
1945           query messages printing.  Affected files are all in
1946           irssi/src/fe-common/silc.
1947
1948 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1949
1950         * Fixed the invite process handling during joining to use
1951           correct server name for the client that is matched against
1952           the invite string for the channel.  Wrong server name caused
1953           inability to join the channel.  Affected file is
1954           silcd/command.c.
1955
1956 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1957
1958         * Fixed the CUMODE channel founder authentication on normal
1959           server to not remove the founder rights on existing founder
1960           before checking that router accepts the mode change.  Affected
1961           files are silcd/command.c and silcd/packet_receive.c.
1962
1963         * Remove the server entry correctly when rekey timeouts and
1964           remote router connection on normal server is closed.  Fixes
1965           a crash where server uses the freed server entry.  Affected
1966           file silcd/server.c.
1967
1968 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1969
1970         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1971           networks.  This is the first step in solving the bug about
1972           /SERVER ADD -silcnet <silcnet>.  Affected files
1973           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1974           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1975           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1976
1977 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1978
1979         * /SMSG and /MMSG now correctly create new queries. Affected files
1980           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1981
1982         * Add basic support for SILC protocol specific variables in perl.
1983           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1984           irssi/src/perl/Makefile.am
1985
1986 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1987
1988         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1989           issue when the current key expires.  Affect file
1990           irssi/src/silc/core/clientutils.c
1991
1992         * Make the session data filename configurable.  This makes it
1993           possible to have different session files for different
1994           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1995           client_ops.[ch], silc-servers.c,
1996           irssi/src/silc/fe-common/silc/module-formats.[ch]
1997
1998         * Use the same set of libtool files for the MPI lib as for the
1999           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
2000           config.sub, configure.in, install-sh, missing, mkinstalldirs
2001
2002 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2003
2004         * Fixed server statistics decrementing error to not go to
2005           negative.  Affected file silcd/packet_receive.c.
2006
2007 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2008
2009         * Use silc_server_query_add_error to add error in public key
2010           search error.  Added support in send_reply to send errors
2011           without specific argument.  Affected file silcd/server_query.c.
2012
2013         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
2014           Client for NO_SUCH_NICK.  It was against the protocol specs.
2015           Affected file irssi/src/silc/core/client_ops.c.
2016
2017         * Added backwards support for the wrong NO_SUCH_NICK error sending
2018           in server.  To be removed in SILC Server 1.0.  Both old clients
2019           and clients with fixed error handling now works.  Affected file
2020           silcd/server_query.c.
2021
2022 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
2023
2024         * fixed a bug in the whois using attributes function where no
2025           error was sent if no nickname and client id but the attributes were
2026           given to whois. Affected file silcd/server_query.c
2027
2028 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
2029
2030         * remove public key from public key hashtable on detach. Affected
2031           file silcd/packet_receive.c
2032
2033         * free public key hashtable before removing clients on server
2034           shutdown. Affected file silcd/server.c
2035
2036         * remove public key prior deleting client-data on killing a client.
2037           Affected file silcd/server_util.c
2038
2039 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
2040
2041         * Getting the MOTD from other servers works now. Affected
2042           files are silcd/command.c and silcd/command_reply.c
2043
2044 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2045
2046         * Initialize the variable idletag, since it is tested in
2047           silc_core_deinit for its default value.  Affected file
2048           irssi/src/silc/core/silc-core.c
2049
2050 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
2051
2052         * Fixed signed channel messages across cells. Affected file
2053           silcd/packet_send.c
2054
2055 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2056
2057         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
2058           is not defined.  They can now be safely used in if-statements
2059           without braces.  Affected file lib/silcutil/silclog.h.
2060
2061         * Added the checks for backup closing connection due to error
2062           (local or remote) and thus not allow the resuming to occur
2063           in reconnect.  Affected files are silcd/packet_send.c
2064           and server.c.
2065
2066 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2067
2068         * Help file updates.  Affected files in irssi/src/docs/help/in/.
2069
2070 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
2071
2072         * Fixed channel messages across cells. Affected file
2073           silcd/packet_send.c
2074
2075 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2076
2077         * Fixed file transmission accepting in client library to not
2078           start the negotiation if user hasn't accepted the transfer,
2079           instead create new session for resent transfer.  Affected
2080           file lib/silcclient/client_ftp.c.
2081
2082         * Show the session ID in the file transmision list.  Remove
2083           session from list that failed to transfer.  Switch the current
2084           session automatically after transmission, and in errors, to new
2085           session if other sessions exists in the transfer list.  Affected
2086           files are irssi/src/silc/core/silc-servers.c,
2087           irssi/src/fe-common/silc/modfule-formats.c.
2088
2089 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2090
2091         * Fixed MIME header parsing for the hopefully last time.  Affected
2092           file lib/silcutil/silcstrutil.c
2093
2094 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2095
2096         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
2097
2098         * The SILC RNG is now gauranteed to return non-zero random
2099           values.  Affected files are lib/silccrypt/silcrng.[ch].
2100
2101 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2102
2103         * Fixed nickname formatting when changing only case of the
2104           nickname.  Affected file lib/silcclient/idlist.c.
2105
2106 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2107
2108         * Fixed a memory leak and incorrect printing of the "appears as"
2109           message.  Affected file irssi/src/silc/core/client_ops.c
2110
2111 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2112
2113         * Added CRT (Chinese Remainder Theorem) supported RSA
2114           private keys and private key operations.  This significantly
2115           increases private key operation efficiency.  No compatibility
2116           issues with new or old private keys.  Affected files are
2117           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
2118
2119 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2120
2121         * Fixed GCC-3.3.2 related compilation warnings from the
2122           source tree.
2123
2124 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2125
2126         * Removed RC6 from distributions.
2127
2128 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2129
2130         * Added some better comments to lib/silccrypt/silcpkcs.h,
2131           optimized some routines in lib/silccrypt/silcpkcs.c.
2132           Added test_silcpkcs into lib/silccrypt/tests/.
2133
2134         * Fixed silc_rng_global_init to actually init the global RNG
2135           if RNG wasn't provided for it.  Affected file is
2136           lib/silccrypt/silrng.c.
2137
2138 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2139
2140         * Added silc_hash_table_find_by_context_ext.  Affected files
2141           lib/silcutil/silchashtable.[ch].
2142
2143         * Save the public key on normal server in WHOIS command reply
2144           from attributes, if present, and add it to public key hash
2145           table.  Fixes WHOIS resolving by public key on normal server.
2146
2147           Optimized the attributes resolving on normal server to not
2148           resolve if we resolved them already from router.
2149
2150           Affected files are silcd/server_query.c, command_reply.c.
2151
2152 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
2153
2154         * Added support for whois using attributes.
2155           Affected files silcd/command_reply.c, silcd/packet_receive.c,
2156           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
2157           silcd/server_util.c
2158
2159         * Added support for whois using public key attribute to /WHOIS i
2160           client command. Affected files irssi/docs/help/in/whois.in,
2161           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
2162
2163 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2164
2165         * Fixed UMODE setting in server when the client has anonymous
2166           mode set.  The mode setting was not working.  Affected file
2167           silcd/command.c.
2168
2169 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2170
2171         * Fixed some bugs and typos related to sending split messages.
2172           Print notification when sending messages with /MMSG.  Affected
2173           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
2174
2175 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2176
2177         * Optimized the socket referencing in packet routines, client
2178           library and server.  Affected files are lib/silccore/silcpacket.c,
2179           lib/silcclient/client.c and silcd/server.c.
2180
2181         * If silc_socket_set_qos is given with NULL arguments the QoS is
2182           reset from the socket.  Affected files are
2183           lib/silcutil/silcsockconn.[ch].
2184
2185 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2186
2187         * Add a /LISTKEYS command which lists the locally cached
2188           client and server keys.  Affected files
2189           irssi/src/fe-common/module-formats.[ch],
2190           irssi/src/silc/core/silc-{channels,servers}.c
2191           irssi/docs/help/in/listkeys.in
2192
2193 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2194
2195         * Check that packet queue purging was successful.  Affected
2196           files lib/silcclient/client.c and silcd/packet_send.c.  Related
2197           to MAC failed errors.
2198
2199         * Do not clear the inbuf even if it is empty if QoS was applied
2200           to it.  Otherwise the QoS data is cleared and MAC failed error
2201           will occur.  Affected file lib/silccore/silcpacket.c.
2202
2203         * Use the rekey period time as rekey protocol timeout value.
2204           If the rekey does not succeed during the rekey period there's
2205           something very wrong, and we most likely end up with wrong keys,
2206           do graceful reconnect then.   Affected file silcd/server.c.
2207
2208         * Take reference of the socket in the parser context, as it's
2209           possible to have the parsers in queue after the socket is
2210           disconnected and this may cause crash.  Affected files are
2211           lib/silccore/silcpacket.c, lib/silcclient/client.c and
2212           silcd/server.c.
2213
2214 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2215
2216         * Fixed KICK command reply sending, it sent to replies.
2217           Affected file silcd/command.c.
2218
2219 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2220
2221         * Finish the silc-mime.pl script. It now supports MIME type
2222           guessing using magic files, signing data messages, executing
2223           MIME handlers in background. Affected files
2224           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
2225
2226         * Changed MIME signal handler to make things easier for the perl
2227           script. Affected files irssi/src/silc/core/client_ops.c,
2228           silc-servers.c, and irssi/docs/signals.txt
2229
2230         * Cleaned up the silc_mime_parse function and fixed detection
2231           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
2232
2233 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2234
2235         * Resolve the IP for file transfer listener from the connection
2236           socket.  Affected file lib/silcclient/client_ftp.c.
2237
2238         * Accept NULL hostname parameter in the functions
2239           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
2240           if hostname is not wanted.
2241
2242 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2243
2244         * Fixed race condition between silc_client_init and
2245           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
2246
2247 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2248
2249         * Fixed file transfer connection closing when SIGNOFF for
2250           the client is received from server.  Affected file is
2251           lib/silcclient/client_ftp.c.
2252
2253 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2254
2255         * Check for disconnected socket in QUIT callback.  Affected
2256           file silcd/command.c.
2257
2258 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2259
2260         * Modified the MIME parsing to allow \n and \r\n as delimiters.
2261           Affected files lib/silcutil/silcstrutil.c
2262
2263         * Cleaned up the escape/unescape functions for correctness and
2264           speed. Affected file irssi/src/silc/core/client_ops.c
2265
2266         * Removed handling for data messages with Content-Type: text/*,
2267           moved parsing of MIME headers to the signal handler, added
2268           support for signing and verifying data messages. Affected
2269           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
2270           irssi/src/silc/core/silc-{servers,channels}.c
2271
2272         * Added a perl script for handling data messages based on
2273           information read from Mailcap files. New file
2274           irssi/scripts/silc-mime.pl
2275
2276 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2277
2278         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
2279           acknowledge recepetion of a message to the sender.  Updated
2280           protocol specs.
2281
2282 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2283
2284         * Unregister channel key saving callback when deleting channel.
2285           Affected file lib/silcclient/idlist.c.
2286
2287         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
2288           before calling notify client operation.  Affected file is
2289           lib/silcclient/client_notify.c.
2290
2291         * Unregister QoS tasks when deleting the socket connection.
2292           Affected files lib/silcutil/silcsockconn.[ch],
2293           unix/silcunixsockconn.c.
2294
2295         * Implemented latest presence-attrs draft changes.  Affected
2296           files lib/silccore/silcattrs.h and
2297           irssi/src/silc/core/silc-queries.c.
2298
2299 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2300
2301         * Save old channel keys in list to allow more rapid change
2302           of channel keys if server for some reason does that.  This
2303           avoids loosing so many channel messages due to not having
2304           key to decrypt.  Affected file lib/silcclient/silcclient.h,
2305           idlist.c and client_channel.c.
2306
2307 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2308
2309         * Continued backup router tests and fixes.  Affected files
2310           silcd/server_backup, server_util.c, server.c.  See TODO.
2311
2312 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2313
2314         * Fixed SERVER_SIGNOFF handling in servers.  The client
2315           was removed from wrong list thus not removing the client
2316           at all.  Affected file silcd/packet_receive.c.
2317
2318         * Do not execute rekey protocol for disabled connections as
2319           it would never go through.  Affected file silcd/server.c.
2320
2321         * Added timeout for rekey protocol to catch if the protocol
2322           never executes successfully.  Affected files silcd/server.c
2323           and protocol.h.
2324
2325 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2326
2327         * Abandon packet processing for disconnected sockets.  Check
2328           this always after calling packet processing callback.
2329           Affected file lib/silccore/silcpacket.c.
2330
2331         * Fixed double registration disconnection code in server.
2332           Closed wrong connection.  Affected file silcd/packet_receive.c.
2333
2334 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2335
2336         * On normal server reconnect to primary during resuming 4
2337           times, then give up.  Affected file silcd/server_backup.c.
2338
2339         * If during reconnecting to routers we notice we have router
2340           connection but no primary router set, the server is in desync.
2341           Reconnect to primary to restore network.  Affected file
2342           silcd/server.c.
2343
2344         * Assure that only one protocol is exeucting at the same time.
2345           Added checks for all protocols.  Affected files are
2346           silcd/server.c and server_backup.c.
2347
2348 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2349
2350         * Check that a string is not already part on invite/ban
2351           string when processing it.  Affected file silcd/server_util.c.
2352
2353 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2354
2355         * Fixed the CUMODE_CHANGE for founder mode changes to comply
2356           with 1.2 version of the protocol.  Affected file is
2357           silcd/packet_receive.c.
2358
2359 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2360
2361         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
2362           where the passphrase was given.  Affected file is
2363           silcd/command.c.
2364
2365 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2366
2367         * INVITE and BAN notifys are now delivered from routers to
2368           servers (but not clients) on the channel.  Updated specs and
2369           code.  Affected files silcd/packet_[send|receive].[ch],
2370           command.c, server.c and server_util.c.
2371
2372         * Implemented INVITE and BAN announcing.  Affected files are
2373           silcd/server.[ch], server_util.c.
2374
2375         * Implemented SilcStatus error type argument returning in
2376           command reply error in server.  Affected file silcd/command.c.
2377
2378         * Implemented SilcStatus argument returning in comand reply
2379           in client library.  The command_reply client operation now
2380           returns error specific arguments as well.  Affected files
2381           are lib/silcclient/command_reply.[ch], client_resume.c,
2382           lib/silccore/silcstatus.[ch].
2383
2384 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2385
2386         * Backup router protocol version 1.2 implemented.  Testing still
2387           required.  Affected files in silcd/server_backup.[ch], server.c,
2388           packet_receive.c and server_internal.h.
2389
2390 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2391
2392         * silc_client_send_[channel|private]_message now return TRUE
2393           or FALSE.  Affected file lib/silcclien/client_channel.c and
2394           client_prvmsg.c.
2395
2396 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2397
2398         * Check for explicit nickname in INVITE and BAN processing
2399           during join as well (and don't expect only wildcards in
2400           invite/ban strings).  Affected file silcd/command.c.
2401
2402         * Fixed the INVITE and BAN by public key.  The public key saved
2403           is the PK payload (as specified) not the raw data.  Affected
2404           file silcd/server_util.c.
2405
2406 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2407
2408         * UTF-8 text message support for actions and notices in SILC
2409           Client.  Affected file irssi/src/silc/core/client_ops.c.
2410
2411         * silc_get_username and silc_get_real_name now returns sensible
2412           data on Win32.  Patch by Toni Willberg.  Affected file is
2413           lib/silcutil/win32/silcwin32util.c.
2414
2415 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2416
2417         * Provide a signal handler to send MIME encoded messages and emit
2418           a signal when a MIME encoded message is received. Also document
2419           the signals for usage with the perl interface.
2420
2421           A sample perl script will be supplied at a later point.
2422
2423           Affected files are irssi/docs/signals.txt,
2424           irssi/src/silc/core/client_ops.[ch],
2425           irssi/src/silc/core/silc-{channels,servers}.c
2426
2427 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2428
2429         * Use SILC_COMMAND_PING to estimate the round-trip time to the
2430           server. Use this time to display a lag and disconnect when it
2431           exceeds a specified limit.
2432
2433           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
2434
2435 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2436
2437         * Remove the channel auth list in normal server if router
2438           encofrces its list during connecting.  Send notify to channel
2439           to remove the mode to remove the list.  Affected files are
2440           silcd/server_util.c and silcd/packet_receive.c.
2441
2442 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2443
2444         * Added support for channel public keys.  Updated protocol specs
2445           and implemented it.  Affected files are
2446           silcd/command.c, command_reply.c, lib/silcclient/command.c,
2447           lib/silcclient/command_reply.c.
2448
2449 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2450
2451         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
2452           terminate the process on Linux.  Affected file silcd/silcd.c.
2453
2454 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2455
2456         * Check for NULL buffer in silc_buffer_clear.  Affected file
2457           is lib/silcutil/silcbuffer.h.
2458
2459         * Simplified the backup router protocol by removing the _GLOBAL
2460           types.  Updated protocol specs and the code.  Affected files
2461           are silcd/server_backup.[ch].
2462
2463 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2464
2465         * Deny '@' and '!' from nicknames since they are reserved
2466           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
2467           Updated protocol specs and the code.
2468
2469           Affected files are silcd/server_util.[ch].
2470
2471 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2472
2473         * Fixed stack overflow in Irssi SILC client.  Affected
2474           file irssi/src/silc/core/client_ops.c.
2475
2476         * Check that Host is set in ServerConnection and RouterConnection
2477           in silcd.conf.  Affected file silcd/serverconfig.c.
2478
2479         * Fixed crash in server with protocol completion callbacks,
2480           namely rekey and backup resuming protocols.  Affected files
2481           are silcd/server_backup.c and silcd/server.c.
2482
2483         * Fixed rekey protocol to not restart if it is started already.
2484           Affected files are lib/silcclient/client.c and
2485           silcd/server.c.c
2486
2487 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2488
2489         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
2490
2491         * Fixed EOF handling in SILC Config, affected file
2492           lib/silcutil/silcconfig.c.
2493
2494         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
2495
2496         * Fixed RESOLVING flag handling in JOIN notify and other
2497           notifys to handle the resolvings correctly in client library.
2498           Affected file lib/silcclient/client_notify.c.
2499
2500         * Do not send full INVITE and BAN lists in INVITE and BAN
2501           notifys, only the changed information.  Affected file
2502           silcd/command.c.
2503
2504         * Fixed INVITE notify sending in INVITE command, send it
2505           only when needed.  Affected file silcd/command.c.
2506
2507         * Handle the founder key change properly in CMODE_CHANGE
2508           notify.  Bug #122.  Affected file silcd/packet_receive.c.
2509
2510 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2511
2512         * Remove the mark for output (mark it only for input) after
2513           purging outgoing queue.  Prevents the "Error in select()"
2514           floods.  Affected file silcd/packet_send.c.
2515
2516         * Fixed incorrect connection deletion from client library
2517           after calling "connect" client operation.  Could cause
2518           crashes for example during reconnect timeouts.  Affected
2519           files are lib/silcclient/client.c and
2520           irssi/src/silc/core/client_ops.c.
2521
2522         * Check server private key file permissions before starting
2523           the server.  Affected file silcd/serverconfig.c.
2524
2525 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2526
2527         * NULL terminate allocated string in silc_buffer_strformat.
2528           Affected file lib/silcutil/silcbuffmt.c.
2529
2530         * Rewrote the invite/ban list string handling in server to
2531           use SilcBuffer instead.  Affected files are silcd/command.c
2532           and silcd/server_util.c.
2533
2534 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2535
2536         * Fixed double free in CMODE command when setting new HMAC
2537           for channel.  Affected file silcd/command.c.
2538
2539         * Added couple of missing memset's to zero sensitive memory.
2540           Affected files silcd/command.c, lib/silcclient/command.c.
2541
2542 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2543
2544         * Fixed a double free in INVITE command error handling in
2545           server.  Affected file silcd/command.c.
2546
2547         * Added macros SILC_SWAB_[16|32] to swab byte order of
2548           16-bit and 32-bit unsigned integers.  Affected file
2549           lib/silcutil/silctypes.h.
2550
2551         * Use the SILC_SWAB_16 instead of htons() in server when
2552           handling ports since the ports in structures are always
2553           in little-endian order (regardless of platform).  Affected
2554           file silcd/serverid.c and silcd/server_backup.c.
2555
2556 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2557
2558         * Send DISCONNECT in close admin command in server.  Affected
2559           file silcd/command.c.
2560
2561         * Check whether we are already connecting to a remote router
2562           (in addition of checking whether we are already connected)
2563           before creating new connection.  Affected file silcd/server.c.
2564
2565 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2566
2567         * Added better compiler and compiler flags checking in
2568           configure.
2569
2570         * Check that socket is valid after QoS is applied to data.
2571           Affected file lib/silcutil/unix/silcunixsockconn.c.
2572
2573         * Make sure the socket connecetion is not closed to early
2574           when closing connection in server.  Also make sure the
2575           connection is always closed after error in a protocol.
2576           Affected file silcd/server.c.
2577
2578 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2579
2580         * Removed --session and --dummy options from Irssi SILC Client.
2581           -d option is available only if --enable-debug was given.
2582           Affected files are irssi/src/silc/core/silc-core,
2583           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
2584
2585 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2586
2587         * Added silc_buffer_steal to steal the data from the buffer.
2588           Affected file lib/silcutil/silcbuffer.h.
2589
2590 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
2591
2592         * Fixed server crash with double Primary block in config file.
2593
2594           Fixed also various memory leaks around the config file
2595           parser.  Affected files lib/silcutil/silcconfig.c,
2596           silcd/serverconfig.c.
2597
2598         * Changed my nickname (Johnny Mnemonic) to my real name, this
2599           means that bugs introduced by him were actually introduced
2600           by me!
2601
2602 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2603
2604         * Don't display "foo appears as foo\nYou're now known as foo"
2605           messages.  Affected file irssi/src/silc/core/client_ops.c
2606
2607 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2608
2609         * Fixed error handling of invalid client entry when calling
2610           commands in server.  Fixes a crash.  Affected file
2611           silcd/command.c.
2612
2613 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2614
2615         * Added some sanity checks in server for correctness of the
2616           server configuration.  Affected file silcd/serverconfig.c.
2617
2618 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2619
2620         * Prevent endless resolving of user informations in USERS
2621           command by checking the command reply status correctly.
2622           Affected file lib/silcclient/command_reply.c.
2623
2624 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2625
2626         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
2627           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
2628           Aldous <Matthew@Aldous.com>.
2629
2630         * Added better implementation using CriticalSection of
2631           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
2632           <mikko.lahteenmaki@pikabaana.net>.
2633
2634         * Added some Winsock WIN32 compatiblity defines into
2635           includes/silcwin32.h.
2636
2637 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2638
2639         * Fixed double free in async host lookup code.  Affected file
2640           lib/silcutil/silcsockconn.c.
2641
2642         * On backup router handle now the SERVER_SIGNOFF from router
2643           for local connected servers too, and close the connections.
2644
2645           Do not process them as normally signing off servers when they
2646           really signoff by sending EOF fe, but always assume that
2647           router sends the SERVER_SIGNOFF.
2648
2649           Affected files silcd/server.c and silcd/packet_receive.c.
2650
2651         * Fixed socket unsetting when closing connections.  Affected
2652           files silcd/server.c and silcd/packet_send.c.
2653
2654         * Do not print the nickname in SERVER_SIGNOFF if we do not
2655           have it.  Prevents asserts in Irssi core.  It is possible we
2656           don't have the nick if it was just being resolved when server
2657           signoff.  Affected file irssi/src/silc/core/client_ops.c.
2658
2659 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2660
2661         * Fixed autonick crashbug in client library.  Affected file
2662           lib/silcclient/client.c.
2663
2664         * Fixed Unix implementation of SilcMutex to really assert if
2665           the mutex is locked/unlcoked already.  Affected file
2666           lib/silcutil/unix/silcunixmutex.c.
2667
2668         * Fixed locking in silc_schedule_uninit.  It didn't lock
2669           when dispatching timeout tasks.  Affected file is
2670           lib/silcutil/silcschedule.c.
2671
2672         * Changed Win32 implementation of SilcThread to use modern
2673           Win32 interface.  Affected file is
2674           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
2675
2676 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2677
2678         * Don't print signed messages when sending failed.  Affected files
2679           irssi/src/silc/core/silc-[servers.c/commands.h]
2680
2681         * Send adquate signal when founding a channel by joing it.  Affect
2682           file irssi/src/silc/core/client_ops.c
2683
2684 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2685
2686         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
2687           irssi/src/fe-common/core/themes.c
2688
2689 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2690
2691         * Fixed close command to use the port correctly when closing
2692           server connections.  Affected file silcd/idlist.c.
2693
2694         * Check for NULL outbuf in silc_socket_write.  It is possible
2695           that it is NULL is some odd case.  Affected files are
2696           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
2697
2698         * Do not call final protocol callback for backup router
2699           resuming protocol when closing connection.  It is closed
2700           by timeout in case of error.  Affected file silcd/server.c.
2701
2702         * Backup reconnect to router if backup resuming protocol
2703           failed.  Affected file silcd/server_backup.c.
2704
2705 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
2706
2707         * Fixed double free in SKE library error hadling when signature
2708           error occurred.  Affected file lib/silcske/silcske.c.
2709
2710         * Save the fingerprint to new SilcClientEntry after changing
2711           nickname.  Affected file lib/silcclient/client_notify.c.
2712
2713         * Print SIGNOFF in Irssi SILC client only if the nickname is
2714           known.  Prevents asserts in Irssi core.  It is possible we
2715           don't have the nick if it was just being resolved when it
2716           quit.  Affected file irssi/src/silc/core/client_ops.c.
2717
2718 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2719
2720         * Fixed double free in invite list adding code when adding
2721           invite strings.  Affected file silcd/server_util.c.
2722
2723 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2724
2725         * More log printing during backup router protocol.  Affected
2726           file silcd/server_backup.c.
2727
2728         * Removed backwards support for old private key file format.
2729           Affected file lib/silccrypt/silcpkcs.c.
2730
2731         * Removed backwards support for not-so-strict decryption length
2732           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2733
2734         * GETKEY to update the client entrys fingerprint too.
2735           Affected file lib/silcclient/command_reply.c.
2736
2737         * Added --without-libtoolfix for package builders using weird
2738           wrappers around libtool (BSD at least).
2739
2740 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2741
2742         * Fixed backup router bugs:  When backup resumes router and
2743           receives a CHANNEL_MESSAGE packet the backup must not act
2744           as router since the packet header decryption would be
2745           different.  Also, when relaying packets to channel, do
2746           not re-encrypt packets on backup that came from the primary
2747           since the connection isn't really router-router connection.
2748           Affected files silcd/server.c, silcd/packet_send.c.
2749
2750         * Added checks in encryption/decryption that encryption/decryption
2751           length sent as argument really is multiple by block size.  Helps
2752           catching really weird bugs like the above backup router bugs
2753           when packets are being decrypted in wrong way.  Affected files
2754           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2755
2756         * Fixed padding generation in private key file encryption.
2757           Affected file lib/silccrypt/silcpkcs.c.
2758
2759 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2760
2761         * Added ignore_message_signatures setting which can be used
2762           to ignore signatures in messages.  Affected files are
2763           irssi/src/silc/core/client_ops.c, silc-core.c.
2764
2765         * Fixed the libtoolfix to use command line options instead of
2766           environment variables.  They didn't work as expected.  Now,
2767           the libtool is fully run-time configurable.
2768
2769 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2770
2771         * Verify signature payload for signed messages. Affected files
2772           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2773           irssi/src/silc/core/silc-core.h
2774
2775         * Display signature verification result in public and private
2776           messages using theme abstracts. See irssi/default.theme for
2777           examples on their usage. Affected files
2778           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2779           irssi/src/fe-common/silc/module-formats.[ch],
2780           irssi/src/fe-common/silc/fe-common-silc.c,
2781           irssi/src/fe-common/silc/Makefile.am
2782           irssi/src/fe-common/core/fe-messages.[ch]
2783
2784         * Fixed bugs in Irssi's theme parsing. Affected files
2785           irssi/src/fe-common/core/themes.c
2786
2787 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2788
2789         * Calculate the correct length for signed messages before
2790           encrypting, it must be multiple by block size.  Affected
2791           file lib/silccore/silcmessage.c.
2792
2793         * silc_message_signed_get_public_key returns now both
2794           decoded and encoded public key.  Affected files are
2795           lib/silccore/silcmessage.[ch].
2796
2797         * Added libtoolfix script that makes the libtool more generic
2798           and configurable in run-time.  Now we can specify in run-time
2799           if what kind of libraries we want to create, regardless of
2800           configuration.  SIMs are now creates even if --disable-shared
2801           was explicitly given.
2802
2803 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2804
2805         * Fixed founder key sending in CMODE command in client.
2806           Affected file lib/silcclient/command.c.
2807
2808         * Fixed CUMODE founder authentication in server to not check
2809           for client's public key since it's not supposed to do that.
2810           Affected file silcd/command.c.
2811
2812 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2813
2814         * Set realname and hostname in NICK_REC records. Affected file
2815           irssi/src/silc/core/silc-nicklist.c
2816
2817 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2818
2819         * Remove 1.0 protocol backwards compat code from client
2820           library.
2821
2822         * Added more reliable check for whether nickname did change
2823           or not, or whether only Client ID changed in NICK_CHANGE
2824           notify.  Affected file lib/silcclient/client_notify.c.
2825           Fixes bug in '@' character handling in a nickname.
2826
2827         * Added support for automatically parsing signature from
2828           the message payload.  Added new function
2829           silc_message_get_signature to return the payload to
2830           application.  Affected files lib/silccore/silcmessage.[ch].
2831
2832         * Changed the private_message and channel_message client
2833           operations to deliver the SilcMessagePayload to the
2834           application too.  Application can use it fe. to get the
2835           signature from the message for verification.  Affected
2836           file lib/silcclient/silcclient.h, client_channel.c and
2837           client_prvmsg.c.
2838
2839         * Redefined the signed payload for message payloads.
2840           Updated protocol specs and implemented.
2841
2842 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2843
2844         * Fixed wrong invite and ban list handling in server command
2845           reply.  Affected files are silcd/command_reply.c,
2846           silcd/server_util.[ch].
2847
2848 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2849
2850         * Fixed CMODE setting in server when founder mode was set.
2851           Affected file silcd/command.c.  Bug #95.
2852
2853         * Added support to setting specific public key in CMODE in
2854           Irssi SILC client.  Affected file lib/silcclient/command.c.
2855
2856         * Added support to use specific public key in CUMODE in
2857           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2858
2859         * Added support for inviting and banning by public key in
2860           Irssi SILC client.  Affected file lib/silcclient/command.c.
2861
2862         * Fixed fingerprint/babbleprint showing in invite and ban
2863           list command replys.  Affected file is
2864           irssi/src/silc/core/client_ops.c.
2865
2866 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2867
2868         * Format CMODE +c and +h to display both the mode and the argument
2869
2870 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2871
2872         * Added test vectors and test programs for SHA-1, MD5,
2873           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2874           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2875           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2876
2877         * Changed the channel private key and private message key
2878           generation (with static keys) to use SHA1 instead of MD5,
2879           as SHA1 is the mandatory hash function in SILC.  Affected
2880           file lib/silcclient/client_[channel/prvmsg].c.
2881
2882         * Changed the private key file encryption to use SHA1 instead
2883           of MD5.  Added support for the old generation and added
2884           automatic change of the key (to be removed later).  Affected
2885           files lib/silccrypt/silcpkcs.c.
2886
2887 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2888
2889         * Load only files with .pub suffix in PublicKeyDir.  Affected
2890           file silcd/serverconfig.c.
2891
2892 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2893
2894         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2895           channels.  Affected files silcd/silcd.c, silcd/server.h.
2896
2897         * Added the config directive PublicKeyDir for the client block.
2898           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2899
2900 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2901
2902         * Merged Toni's irssi/silc.conf patch.
2903
2904         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2905
2906         * Max alloc tests in allocation routines.  Affected file
2907           lib/silcutil/silcmemory.c.
2908
2909 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2910
2911         * Fixed a typo in resuming code that fixed detach/resume code
2912           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2913
2914 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2915
2916         * Do reverse lookups for server when /connecting. Affected files
2917           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2918           irssi/src/core/net-nonblock.*
2919
2920 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2921
2922         * Added library versioning for shared libraries.  Affected
2923           files configure.in.pre and lib/Makefile.am.pre.
2924
2925 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2926
2927         * Display INVITE and BAN lists as specified by SILC 1.2
2928
2929 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2930
2931         * Do not send invite list back unless asked (when sending
2932           no arguments) or when list was modified.  Affected file
2933           silcd/command.c.
2934
2935         * Remove client from invite list in KILLED notify and in
2936           KILL command.  Affected file silcd/command.c and
2937           silcd/server.[ch].
2938
2939         * Fixed bugs in invite list handling in INVITE command.
2940           Affected files silcd/command.c and silcd/server_util.c.
2941
2942         * Merged with Irssi 0.8.6.
2943
2944         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2945           Affected file irssi/src/fe-text/silc.c.
2946
2947 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2948
2949         * The silc_argument_get_[first/next] now return the argument
2950           type to caller.  Added silc_argument_payload_encode_one.
2951
2952           Affected files are lib/silccore/silcargument.[ch].
2953
2954         * Added support for the SILC 1.2 INVITE command and new
2955           invite lists to server.  Affected files are silcd/command.c,
2956           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2957
2958         * Added support for the SILC 1.2 BAN command and new
2959           ban lists to server.  Affected files are silcd/command.c,
2960           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2961
2962         * Added support to client sending new INVITE command.  Affected
2963           file is lib/silcclient/command.c.
2964
2965         * Added support to client sending new BAN command.  Affected
2966           file is lib/silcclient/command.c.
2967
2968         * Added support for removing client from invite list when kicked
2969           from channel, as SILC 1.2 dictates.  Affected files are
2970           silcd/packet_receive.c and silcd/command.c.
2971
2972 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2973
2974         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2975           automatically the cipher's internal IV.  Affected files
2976           lib/silccrypt/silccipher.[ch].
2977
2978         * Assure the RESUME_CLIENT packet is not sent to twice to
2979           backup router if the detached client was originated from
2980           the backup.  Affected file silcd/server.c.  Bug #76.
2981
2982         * Changed silc_sim_symname to not allocate memory.  Affected
2983           file lib/silcsim/silcsimutil.c.
2984
2985         * Fixed memory leaks with SIMs in server.  Affected files
2986           silcd/serverconfig.c, silcd/server.c.
2987
2988         * Fixed channel key distribution after resuming detached
2989           client.  Affected files silcd/packet_receive.c.
2990
2991         * Fixed channel's global_user boolean checking after detaching.
2992           Check it after changing the owner of the client not before.
2993           Affected file silcd/packet_receive.c.
2994
2995         * Fixed few double frees from client library.  Fixes at least
2996           Bug #81, possibly others too.
2997
2998         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2999           notifys in Irssi SILC Client.  Affected file is
3000           irssi/src/silc/core/client_ops.c.  Bug #82.
3001
3002         * Applied Ville Räsänen's manual page and --mandir bugfix
3003           patch.  Affected files are configure.in.pre and Makefile.am.pre.
3004           Bug #88.
3005
3006 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3007
3008         * Added support to backup router protocol for backup to tell
3009           normal server that it cannot use the backup router as primary
3010           because the primary isn't really down.  Updated protocol
3011           specs.
3012
3013         * Added support for primary router to tell backup router that
3014           resuming is not possible because the backup really isn't primary
3015           in the cell.  For example if backup disconnected itself the
3016           resuming is not allowed since the primary really did not
3017           go down.  Updated protocol specs.
3018
3019         * Removed MARS from crypto library.
3020
3021         * Defined the CTR mode and Randomized CBC mode in SILC.  The
3022           CTR mode is RECOMMENDED now in specification.  Defined also
3023           Serpent cipher as optional cipher.  Updated the protocol specs.
3024
3025 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3026
3027         * Added support for inviting/banning by IP/MASK, public key,
3028           and explicit Client ID.  Redefined the command and notify
3029           types to allow easier forwards support for other methods
3030           of inviting/banning.  Updated protocol specs.
3031
3032         * Remove the client from channel's invite lists if the client
3033           is kicked or killed.  Updated protocol specs.
3034
3035         * Unified the Channel Message Payload and Private Message
3036           into one Message Payload.  Updated protocol specs and
3037           implemented.
3038
3039 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3040
3041         * Don't wait for EOF after socket error has occurred, but
3042           close the connection.  Affected file is silcd/server.c.
3043
3044 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3045
3046         * Added support for setting FOUNDER mode on channel with
3047           specific public key which can be set with CMODE command.
3048           Updated protocol specs and implemented in client and server.
3049
3050         * Fixed the Irssi SILC client to correctly shutdown the client
3051           library to avoid memory leaks.  Affected files are
3052           irssi/src/silc/core/silc-core.c and silc-servers.c.
3053
3054         * Deprecated the No Reply flag in SKE protocol and introduced
3055           "IV Included" flag which can be used to indicate that the IV
3056           is included in the ciphertext.  This makes it possible to use
3057           SILC on unreliable transport, such as UDP which may cause
3058           packet reordering and losses.  Updated protocol specs, did
3059           not implement yet.
3060
3061 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3062
3063         * Fixed the MPI implementation of silc_mp_sizeinbase to return
3064           < 32 bit values in correct size.  Affected file is
3065           lib/silcmath/mp_mpi.c.
3066
3067 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3068
3069         * Fixed the KE Start Payload parsing to check that mandatory
3070           fields are present.  Affected file lib/silcske/payload.c.
3071
3072         * Fixed compilation warnigs in Irssi SILC Client.  Affected
3073           files are irssi/src/silc/core/silc-query.c. client_ops.c.
3074
3075 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3076
3077         * Print "nick now appears as newnick" and update Irssi's nicklist
3078           when you change your nick to "nick". Closes #62
3079
3080         * Never format your own nick. Closes #63
3081
3082 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3083
3084         * SILC_UMODE_GONE changes are now propagated correctly to the
3085           Irssi client. Closes #54
3086
3087 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3088
3089         * Fixed example in /HELP KEY
3090
3091         * Added expando $j which expands to current SILC Client version
3092
3093 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3094
3095         * Fixed public key decoding in crypto library.
3096
3097         * Added better error printing to SKE library.
3098
3099 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3100
3101         * Fixed NICK command to not crash if nickname was not sent.
3102
3103 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3104
3105         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
3106           Deprecated the old Encrypt-And-MAC order.  Updated protocol
3107           specs and implemented.
3108
3109         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
3110           generation.  Updated specs and implemented.
3111
3112 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3113
3114         * Added support for rekey before 2^32 sequence number wraps.
3115           Affected files in server and client library.
3116
3117         * Padding must be at least 8 bytes now.  Implemented and updated
3118           protocol specs.
3119
3120         * Compute maximum padding for authentication packets to make
3121           passphrase approximation attacks impossible.  Affected files
3122           in client library and in server.
3123
3124         * Fixed PING command sending in client library and handling in
3125           server.  The server ID must be ID Payload, not raw ID data.
3126           Affected files in server and client library.
3127
3128         * Defined that all public keys sent in commands and notify
3129           payloads are actually Public Key Payloads not raw public key
3130           data.  Updated protocol specs and implemented.
3131
3132         * Updated protocol version to 1.2.  Updated specs and code.
3133
3134         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
3135           status types.  Updated specs and the code.
3136
3137         * Added support for normal client to kill its own entries from
3138           the network.  Updated protocol specs and the code.
3139
3140         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
3141           and added initial implementation.
3142
3143         * Added MAC field to the Private Message Payload to protect
3144           against chosen ciphertext attacks.  Updated the protocol specs
3145           and implemented.
3146
3147         * Added idle and signon fields to the ATTRIBUTE_SERVICE
3148           attribute to indicate the user's current idle and signon time
3149           of a service.  Updated protocol specs and implemented.
3150
3151 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3152
3153         * Added "do_not_bind" argument to silc_client_file_send what
3154           can be used to not bind locally but assume the file receiver
3155           provides the point of connect.  Usefull when sender is behind
3156           NAT device.  Affected file lib/silcclient/silcclient.h and
3157           client_ftp.c.
3158
3159         * Added -no-listener option to FILE SEND command in Irssi SILC
3160           client.  Affected file irssi/src/silc/core/silc-servers.c.
3161           Renamed FILE RECEIVE to FILE ACCEPT.
3162
3163         * Confirm passphrase for private key encryption in
3164           silc_create_key_pair and silc_change_private_key_passphrase.
3165           Affected files are lib/silcutil/silcapputil.c.
3166
3167 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3168
3169         * Move silc_client_packet_send back to internal, added
3170           silc_client_send_packet, a bit simpler function for application.
3171           Affected files lib/silcclient/silcclient.h, client.c and
3172           client_internal.h.
3173
3174         * Moved the SilcClientEntry, SilcChannelEntry and
3175           SilcServerEntry to silcclient.h to be public and documented
3176           them for application.  Affected files are
3177           lib/silcclient/silcclient.h and idlist.h.
3178
3179 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3180
3181         * Fixed manual page installation patch by Ville Räsänen.
3182           USERS help page fix patch by Ville Räsänen
3183
3184         * Changed the silc_client_command_call interface to make
3185           the command call simpler for the application.  The library
3186           now handles the command line parsing, command finding and
3187           execution.  Application only needs to call the function
3188           with the command line.  Affected files are
3189           lib/silcclient/silcclient.h, command.[ch].
3190
3191         * Fixed silc_get_input to NULL-terminate the returned input.
3192           Affected file lib/silcutil/silcutil.c.
3193
3194         * Resolve the client's public key in JOIN command if the
3195           founder auth data is being requested but we don't know the
3196           client's public key.  Affected file silcd/command.c.
3197           Bug #53.
3198
3199 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3200
3201         * Print notify for server opers when backup router comes
3202           online.  Affected file silcd/server.c.
3203
3204         * Fixed the INVITE command to send the invite list in
3205           command reply.  Affected file silcd/command_reply.c.
3206
3207         * Fixed MOTD command reply sending.  Affected file
3208           silcd/command.c.
3209
3210         * UTF-8 decode the topic in TOPIC command reply and LIST
3211           command reply in Irssi SILC client.  Affected file is
3212           irssi/src/silc/core/client_ops.c.
3213
3214 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3215
3216         * Fixed the INVITE command to not crash Irssi SILC client
3217           when given without nickname argument.  AFfected file
3218           irssi/src/silc/core/client_ops.c.
3219
3220         * Fixed double free in WHOIS query on normal server when
3221           forwarding query to router.  Affected file is
3222           silcd/server_query.c.
3223
3224         * Fixed WATCH command reply handling on normal server which
3225           was missing altogether.  Affected file silcd/command_reply.c.
3226           Bug #44.
3227
3228 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
3229
3230         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
3231           Included yodl sources for each of these. Also modified
3232           Makefile.am prototype to install these files to proper
3233           locations. Updated CREDITS. Affected file Makefile.am.pre,
3234           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
3235           doc/silcd.8.
3236
3237 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3238
3239         * Added support for encrypted private key files.  Now
3240           passphrase must be provided when new key pair is created
3241           (can be empty though), and prompted when loading the
3242           private key.  Added support for loading the old-style
3243           non-encrypted private keys as well.  Affected files
3244           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
3245           SILC Server.
3246
3247         * Fixed silc_get_input to accept input on all terminals.
3248           Affected file lib/silcutil/silcutil.c.
3249
3250         * Moved the Irssi SILC client key loading and other stuff
3251           to be called after the arguments and UI is initialized.
3252           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
3253
3254         * Added -P option to Irssi SILC client which can be used
3255           to change the passphrase of the private key.  Affected
3256           file irssi/src/silc/core/silc-core.c.
3257
3258         * Added silc_change_private_key_passphrase apputil routine
3259           to lib/silcutil/silcapputil.[ch].
3260
3261 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3262
3263         * Fixed connection closing in client library to not crash.
3264           Moved the connection freeing totally to function
3265           silc_clinet_del_connection.  Affected file
3266           lib/silcclinet/client.c.
3267
3268 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3269
3270         * Changed includes/silcincludes.h to silcincludes.h.in to
3271           include configuration specific information.  The silcdefs.h
3272           is not included in to installation anymore (it's only
3273           compilation time header).
3274
3275 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3276
3277         * Moved the SilcClient and SilcClientConnection from client.h
3278           to the public lib/silcclient/silcclient.h.  Changed the
3279           structures a bit.
3280
3281 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3282
3283         * If version string in silc_clinet_alloc is NULL the library
3284           puts it automatically.  Affected file lib/silcclient/client.c.
3285
3286         * Changed the version strings from variables to #define's
3287           in includes/silcversion.h.
3288
3289 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3290
3291         * Added shared library complation support.
3292
3293 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3294
3295         * Added lib/silcutil/silcapputil.[ch] for application
3296           utility functions.  It includes routines for applications'
3297           convenience.  Added silc_create_key_pair, silc_show_public_key
3298           and silc_load_key_pair functions.
3299
3300 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3301
3302         * Send RESUME_CLIENT packet from router to backup routers
3303           to in resuming.  Affected file silcd/packet_receive.c.
3304
3305 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3306
3307         * In IDENTIFY command parsing, send all other IDs except
3308           Client IDs explicitly to router for resolving on normal
3309           server.  Also check that ID received in WHOIS command is
3310           always Client ID, others are not allowed.  Affected file
3311           silcd/server_query.c.
3312
3313         * Merged latest changes from irssi.org CVS.
3314
3315 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3316
3317         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
3318           Affected files irssi/src/silc/core/silc-core, silc-server.c.
3319
3320         * Fixed the heartbeat sending in Irssi SILC client.  Moved
3321           the silc_client_packet_send to silcclient.h for application
3322           usage.  Affected files lib/silcclient/client_internal.h
3323           lib/silcclient/silcclient.h.
3324
3325         * Fixed a bug in query resolving in server.  Used wrong
3326           variable in a for loop and crashed.  Affected file is
3327           silcd/server_query.c.
3328
3329         * Server constructs requested attributes only to locally
3330           connected clients.  Affected file silcd/server_query.c.
3331           Bug #36.
3332
3333         * Fixed a bug when sending resolving from router to server
3334           with requested attributes.  The constructed WHOIS command
3335           was incorrect.  Affected file silcd/server_query.c.
3336           Bug #38.
3337
3338         * Fixed Requested Attributes saving in WHOIS command reply.
3339           The length of the data buffer must be saved too.  Affected
3340           file silcd/command_reply.c.
3341
3342         * Update the client entry's servername after detaching is
3343           over.  Affected file silcd/packet_receive.c.  Bug #37.
3344
3345         * Resolve incomplete client entrys in CUMODE_CHANGE and
3346           CMODE_CHANGE notifys.  Affected file is
3347           lib/silcclient/client_notify.c.  Bug #42.
3348
3349 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3350
3351         * Fixed channel key packet processing bug on backup router
3352           during backup resuming protocol.  Affected file is
3353           silcd/packet_receive.c.
3354
3355         * Fixed memory leaks in server.  Affected files are
3356           silcd/server.c and silcd/packet_receive.c.
3357
3358         * Fixed packet decryption problem when backup router encrypted
3359           channel message with wrong key during backup resuming
3360           protocol.  Affected file silcd/packet_send.c.
3361
3362         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
3363           Toni Willberg (toniw@iki.fi)
3364
3365         * Changed the SilcCipher context to be private.  Changed the
3366           silc_cipher_get_iv to just return pointer to the IV.  Added
3367           silc_cipher_get_name to return the name of the cipher.
3368           Fixed code all around to support these changes.  Affected
3369           files are lib/silccrypt/silccipher.[ch], client library and
3370           server.
3371
3372 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3373
3374         * Fixed unaligned access in lib/silccore/silcattrs.c.
3375
3376         * Fixed libtool linking in lib/silcsim/Makefile.am.
3377
3378         * Fixed services attribute printing.  Affected files is
3379           irssi/src/silc/core/silc-queries.c.
3380
3381 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3382
3383         * Fixed a crashbug in incoming server accepting.  Affected
3384           file silcd/server.c.
3385
3386 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3387
3388         * Added automatically generated index to Toolkit Reference
3389           Manual.
3390
3391         * Added support for Postscript Toolkit Reference Manual.
3392
3393 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3394
3395         * Merged DISCONNECT fix, and autoconn port fix from Irssi
3396           CVS.
3397
3398 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3399
3400         * Added 'send_events' boolean argument to the function
3401           silc_schedule_set_listen_fd which sends the set events to
3402           the application explicitly if set to TRUE.  Default action
3403           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
3404           lib/silcclient/client_internal.h and silcd/server_internal.h.
3405
3406         * Added silc_compare_timeval to determine which time values
3407           is smaller.  Affected file lib/silcutil/silcutil.[ch].
3408
3409         * Added sort-of "Quality of Service" (QoS) support to
3410           SilcSocketConnection.  Data reception can be controlled with
3411           rate limit per second and/or read data length limit.
3412           Added silc_socket_set_qos.  Affected files are
3413           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
3414
3415         * Added the QoS configuration to SILC Server configuration
3416           file.  Affected files are silcd/serverconfig.[ch] and
3417           server.c.
3418
3419 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3420
3421         * Merged with irssi.org CVS.
3422
3423         * Failed OPER and SILCOPER authentications are now logged.
3424           Affected file silcd/command.c.  Bugs #25.
3425
3426 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3427
3428         * ROBODoc documented lib/silcutil/silcbuffer.h and
3429           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
3430           <ville.rasanen@iki.fi>.
3431
3432 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3433
3434         * Added support for auto-passphrase authentication from the
3435           config file during connecting which was not implemented
3436           yet.  Affected file irssi/src/silc/core/client_ops.c.
3437
3438         * Fixed a bug in authentication protocol failure handling which
3439           was processing wrong callback context.  Affected files
3440           are lib/silcclient/client.c and protocol.c.
3441
3442         * Fixed the /ATTR allow off to actually work.  Affected file
3443           is irssi/src/silc/core/silc-queries.c.
3444
3445         * Fixed the /ATTR -del to work.  Affected file is
3446           irssi/src/silc/core/silc-queries.c.
3447
3448 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3449
3450         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
3451
3452         * Fixed mask attribute adding in Irssi SILC client.  Affected
3453           file irssi/src/silc/core/silc-queries.c.
3454
3455 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3456
3457         * Added support for saving the requested attributes in
3458           WHOIS to directory.  Affected file is
3459           irssi/src/silc/core/silc-queries.c.
3460
3461 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3462
3463         * Added support for parsing VCard fields that do not have
3464           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
3465
3466         * Fixed a double free bug in hash table foreach function
3467           if the entry was deleted in the foreach callback.  Affected
3468           file lib/silcutil/silchashtable.c.
3469
3470 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3471
3472         * Added silc_attribute_get_verify_data to return the signature
3473           verification data for either user digital signature or
3474           server digital signature in Requested Attributes.  Affected
3475           files are lib/silccore/silcattrs.[ch].
3476
3477         * Added silc_vcard_alloc which is used to allocated dynamic
3478           SilcVCard context.  The silc_vcard_free now checks whether
3479           the context is dynamically allocated or not.  Affected files
3480           are lib/silcutil/silcvcard.[ch].
3481
3482 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3483
3484         * Periodically remove the NOATTR status from client entry
3485           so that the client may take the attributes in use even after
3486           server has resolved them unsuccessfully earlier.  Affected
3487           file silcd/server_query.c and idlist.h.
3488
3489         * Moved sha1hash and md5hash from client->internal to
3490           SilcClient for application usage.  Affected files are
3491           lib/silcclient/client.h and client_internal.h.
3492
3493         * Fixed attribute encoding and decoding bugs.  Affected
3494           files lib/silccore/silcattrs.[ch].
3495
3496         * Added ATTR command to Irssi SILC Client which is used to
3497           manage user's Requested Attributes sending and values for
3498           WHOIS command.  Affected files around Irssi SILC client.
3499
3500 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3501
3502         * Added silc_buffer_strformat which can be used to format
3503           strings into a buffer which size is automatically increased.
3504           Affected file lib/silcutil/silcbuffmt.[ch].
3505
3506         * Added implementation of VCard (RFC 2426) which can be used
3507           as part of Requested Attributes in WHOIS command.  Affected
3508           file lib/silcutil/silcvcard.[ch].
3509
3510 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3511
3512         * Some strncat -> silc_strncat changes our the core and
3513           client library.
3514
3515         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
3516           errors.  Added better error printing to SKE library.
3517           Affected files lib/silcske/silcske.c, silcske_status.h and
3518           payload.c.
3519
3520         * Save the PKCS key length even if only private key is set to
3521           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
3522
3523         * Fixed the usage of silc_pkcs_get_key_len since it returns the
3524           length in bits not in bytes.  Affected files are
3525           lib/silcske/silcske.c, lib/silccore/silcauth.c and
3526           silcd/server_query.c.
3527
3528 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3529
3530         * Added silc_attribute_payload_encode_data to directly encode
3531           the data into the attributes buffer.  Renamed function
3532           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
3533           Affected files are lib/silccore/silcattrs.[ch].
3534
3535         * silc_hash_table_find_foreach calls the foreach function now
3536           once even if the nothing was found with context set to NULL.
3537           Affected file lib/silcutil/silchashtable.[ch].
3538
3539         * Remove the RESOLVING flag from client entry after received
3540           the Requested Attributes from the client.  Fixed memory leak
3541           in client entry freeing.  Affected files silcd/server_query.c
3542           and idlist.c.
3543
3544         * Added Requested Attributes support into SILC Client Library.
3545           It is not able to send requested attributes in WHOIS command,
3546           and also receive and process requested attributes.  Added
3547           silc_client_attribute_[add|del] and silc_client_attributes_get
3548           functions.  Added also `ignore_requested_attributes' to the
3549           SilcClientParams to not use attributes in client.  Affected
3550           files are lib/silcclient/command.c, client_attrs.[ch],
3551           silcclient.h, client_internal and client.[ch].
3552
3553         * Changed the silc_client_get_client_by_id to support Requested
3554           Attributes, it takes them as argument now.  Affected file
3555           is lib/silcclient/silcclient.h, and idlist.c.
3556
3557         * Added -details option to WHOIS command in Irssi SILC Client
3558           to support the requested attributes.  By default it requests
3559           all attributes.  Affected file lib/silcclient/command.c and
3560           irssi/doc/help/in/whois.in.
3561
3562 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3563
3564         * Add also SERVICE attribute for server-constructed attribute
3565           data.  Also digitally sign the attributes and add
3566           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
3567           silcd/server_query.c.
3568
3569 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3570
3571         * Changed the silc_attribute_payload_encode to support list
3572           of attributes (function may be called several times to add
3573           a new attribute).  Removed the silc_attribute_payload_encode_list
3574           function.  The encoding function now also automatically encodes
3575           the data, so the caller does not need to do that.  Affected
3576           files lib/silccore/silcattrs.[ch].
3577
3578         * Added support for replying on behalf of the user to the
3579           Requested Attributes in WHOIS command in the server.  Affected
3580           file silcd/server_query.c.
3581
3582         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
3583           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
3584
3585 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3586
3587         * Don't swtich to become primary router if we are backup if
3588           decryption error has occurred.  Affected file silcd/server.c.
3589
3590         * Fixed a bug in backup router IP address comparison in
3591           silc_server_backup_get.
3592
3593           Save now also the port of the server/router and use that
3594           in comparison as well.  Affected file silcd/server_backup.c.
3595
3596         * Normal server now reconnects to backup router automatically
3597           if connection is lost to it.  Affected file silcd/server.c.
3598
3599 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3600
3601         * If packet processing fails (like integrity check fails)
3602           the connection is closed now.  Affected files are
3603           lib/silccore/silcpacket.c and silcd/server.c.
3604
3605 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3606
3607         * Fixed double free in RSA public key set function
3608           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
3609           Bug #29.
3610
3611 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3612
3613         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
3614           Added server_query.[ch] which provides one interface for
3615           querying information using all three commands.
3616
3617         * Changed all "typedef unsigned char" in core library to
3618           "typedef SilcUInt8".
3619
3620 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3621
3622         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
3623
3624         * Renamed silc_server_get_client_resolve to
3625           silc_server_query_resolve and moved to server_query.[ch].
3626
3627 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3628
3629         * Resumed client packet handling from server put the resumed
3630           client on wrong list on router and caused the client not
3631           be present on the network anymore.  Now fixed to put the
3632           client to correct list.  Affected file silcd/packet_receive.c.
3633
3634 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3635
3636         * Various cleanup in error message output in config parsing code
3637           and in server init code.  Fixed error log files containing
3638           too many newlines ('\n') in some situations.  Affected files are
3639           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
3640
3641 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3642
3643         * Use the reverse lookupped hostname in client internals
3644           instead of one user provided us as remote server name.
3645           Affected file lib/silcclient/client.c.
3646
3647 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3648
3649         * Added 'app_context' to silc_schedule_init.  It is an
3650           application specific context that is delivered to application
3651           in task callback functions.  Affected files are
3652           lib/silcutil/silcutil.[ch].
3653
3654         * The hb_context in SilcSocketConnection is not freed
3655           automatically anymore (application must free it).  Freeing
3656           it automatic is inconsistent.  Affected files are
3657           lib/silcutil/silcsockconn.[ch].
3658
3659 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3660
3661         * Added support for removing explicitly added client connections
3662           in rehash and closing the client connections if they were
3663           unconfigured in the rehash.  Affected file silcd/server.c.
3664
3665         * Added support for aborting automatically pending commands
3666           that never receives the reply (to avoid memory leaks).
3667           Added also silc_server_command_pending_timed to set the
3668           specific timeout for pending command.  Affected files are
3669           silcd/command[_reply].[ch].
3670
3671         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
3672           specs and lib/silccore/silcstatus.h.
3673
3674 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3675
3676         * Changed the silc_get_time to accept time value as argument
3677           or if zero is sent return current local time.  Affected
3678           file lib/silcutil/silcutil.[ch].
3679
3680         * Added STATS command to client library and Irssi SILC client.
3681           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
3682
3683 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3684
3685         * Assure that channel key is set before sending it.  May
3686           crash server otherwise.  Affected file silcd/packet_send.c.
3687
3688 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3689
3690         * Assure that endless loop cannot happen with detached client
3691           resolving on normal server.  Added idlist status
3692           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
3693           silcd/idlist.h and silcd/packet_receive.c.
3694
3695 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3696
3697         * Incoming file transfer request cannot use same session as
3698           the sending session.  This can happen when sending file to
3699           yourself.  Crashed the client on quit.  Affected file
3700           lib/silcclient/client_ftp.c.  Bug #24.
3701
3702 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3703
3704         * Implemented the draft-riikonen-precense-attrs draft and
3705           the Attribute Payload into the lib/silccore/silcattrs.[ch].
3706
3707 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3708
3709         * Distribute the SERVER_SIGNOFF notify also to local backup
3710           routers from the primary router.  The backup router may not
3711           have the signing of local server directly connected and need
3712           to know about the signoff.  Affected file silcd/server_util.c.
3713
3714         * Use the primary router as the origin of the locally connected
3715           server when it is disconnecting from the backup router since
3716           that's where it really is coming from.  Now the clients from
3717           the disconnecting server are removed correctly and "shadow"
3718           clients are not left to the backup router.  Affected file
3719           silcd/server.c.
3720
3721 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3722
3723         * If normal server is standalone and found existing but disabled
3724           channel, do not re-create the channel since it creates
3725           duplicate same channels.  Affected file silcd/server.c.
3726
3727         * Added anonymous client connections support to server.  New
3728           "anonymous" configuration option to ConnectionParams section
3729           added.  If set to true, the username and hostname information
3730           of the client will be scrambled and anonymous user mode is
3731           set automatically to the user.  Affected files are
3732           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3733
3734 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3735
3736         * In JOIN notify handling, mark that the cache entry of the
3737           client cannot be expired.  Can cause crashes on normal
3738           server (asserts client->channels).  Affected file is
3739           silcd/packet_receive.c.
3740
3741         * From now on distribution versions are used as protocol versions
3742           instead of by default using the Toolkit base version as protocol
3743           version.  Affected file prepare.
3744
3745         * Do not set the locally resolved hostname for local client
3746           entry but take what server sends.  This way the real hostname
3747           is showed in WHOIS for yourself.  Affected file is
3748           lib/silcclient/idlist.c and lib/silcclient/client.c.
3749
3750         * Resolve local info with IDENTIFY when connecting to server.y
3751
3752 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3753
3754         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3755           for implied search (not needed on platforms which has native
3756           pthreads library).  Use --without-pthreads to disable threads.
3757           Affected file is configure.in.pre
3758
3759         * Fixed --with-iconv on platforms which need to bypass (broken)
3760           native iconv().  Affected file is configure.in.pre
3761
3762 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3763
3764         * Moved -C option parsing in Irssi SILC client at same time
3765           as other options.  The UI was initialized earlier and caused
3766           problems on command line.  Bug #16.  Affected file is
3767           irssi/src/silc/core/silc-core.c.
3768
3769 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3770
3771         * Added global variable silc_log_timestamp that tells silclog
3772           wether to print or not the timestamp in the logging files.
3773           Affected file lib/silcutil/silclog.[ch].
3774
3775         * Added silcd configuration option Timestamp in the Logging
3776           section.  Affected file silcd/serverconfig.[ch],
3777           doc/example_silcd.conf.in.
3778
3779 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3780
3781         * Fixed fingerprint checking to check for entirely empty
3782           fingerprint instead of two first bytes when determining
3783           if it is set.  Bug #18.  Affected file silcd/command.c.
3784
3785         * Fixed duplicate PKCS name registering to not allow it.
3786           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3787
3788 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3789
3790         * Conditionalize non-gcc compiler optimizations for various
3791           platforms, enable those commented out.  Cleanups.
3792           Affected file lib/silcmath/mpi/configure.in
3793
3794 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3795
3796         * silc_rng_exec_command() left zombie processes if command
3797           didn't generate any output.  Affected file
3798           lib/silccrypt/silcrng.c
3799
3800 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3801
3802         * Rewrote iconv checking, introduce --with-iconv for systems
3803           which rely on libiconv.  Check if iconv() provided by libc
3804           is good enough, otherwise demand libiconv.  Affected file
3805           configure.in.pre
3806
3807 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3808
3809         * Search for ldopen() also in libc.  This enables SIM support
3810           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3811           file configure.in.pre
3812
3813 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3814
3815         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3816           This fixes prepare on *BSD systems.  Affected file
3817           configure.in.pre
3818
3819 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3820
3821         * More fixed for not having purge timeout for global clients
3822           that are on channel.  Affected files silcd/command_reply.c
3823           and server_util.c.
3824
3825         * Fixed the rekey protocol to work with backup router connections.
3826           Rekey packets are now allowed on disabled connections as
3827           well.  Affected files silcd/packet_send.c and server.c.
3828
3829         * Do not switch to be as backup router when shutting down and
3830           closing the primary connection.  Affected file silcd/server.c.
3831
3832         * Fixed memory leaks in backup router deleting.  Added
3833           silc_server_backup_free to free all data during shutdown of
3834           server.  Affected files silcd/server_backup.[ch].
3835
3836 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3837
3838         * Do not process commands if the sock->user_data is NULL.
3839           Affected file silcd/command.c.
3840
3841 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3842
3843         * Fixed buffer overflow and security problems (loosing bits
3844           in CFB encryption) in SILC RNG.  Problems reported by
3845           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3846
3847 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3848
3849         * Added yet more checks that client is not expired on global
3850           list if it is on channels.  Affected file is
3851           silcd/command_reply.c.
3852
3853 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3854
3855         * Merged c0ffee's MIME signal patch which adds support for
3856           sending also MIME messages in Irssi SILC Client, and handling
3857           received MIME messages in a signal (and perhaps doing something
3858           to non-textual MIME messages).
3859
3860 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3861
3862         * Fixed pending command deletion in server and client library
3863           to check the whole list instead of breaking after first found.
3864           The affected files are silcd/command.[ch] and
3865           lib/silcclient/command.[ch].
3866
3867 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3868
3869         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3870           secret or private, otherwise it's possible to find out
3871           whether a secret channel exists or not.  Affected file
3872           silcd/command.c.
3873
3874         * If CMODE change fails during the mode setting, assure that
3875           the old mode mask is set for the channel back.  Affected
3876           file silcd/command.c.
3877
3878         * Fixed passphrase saving on +a channel on normal server
3879           after successful JOIN command.  Affected file silcd/command.c.
3880
3881 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3882
3883         * Remove server/router operator privileges in DETACH command,
3884           since it's possible to resume to server where these
3885           privileges would not be allowed for the client.  Affected
3886           file silcd/command.c.
3887
3888         * Do not set to wait for backup in rehash of the server.
3889           Affected file silcd/server.c.
3890
3891         * Do not check listener sockets when counting how many
3892           socket connections we have.  Affected file is
3893           silcd/server_util.c.
3894
3895         * Do not announce disconnected clients that are remaining
3896           in history (for WHOWAS).  This is because SIGNOFF notify
3897           for these has been sent earlier already.  Affected file
3898           silcd/server.c.
3899
3900 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3901
3902         * Buffer overflow with CUMODE command's mode->mode character
3903           conversion.  Reported by Ville Räsänen.  Affected file
3904           lib/silcutil/silcutil.c.
3905
3906 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3907
3908         * Allow heartbeat packets to go disabled connections anyway.
3909           Affected files silcd/server.c and silcd/packet_send.c.
3910
3911         * Do not broadcast New Channel packets with List flag set
3912           in the packet to backup routers.  The router must check
3913           for the correctness of the packets before sending them.
3914           It is possible that router will have enforce Channel ID
3915           change and this would cause desync in the backup router.
3916           Affected file silcd/packet_receive.c.
3917
3918         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3919           are handled in list parsing.  They are not list packets
3920           anymore.  Affected file silcd/packet_receive.c.
3921
3922 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3923
3924         * Stop waiting for backup router through the timeout, not
3925           directly after backup router has arrived.  Affected file
3926           silcd/server.c.
3927
3928         * Do not re-create channel keys and send them when removing
3929           clients in server shutdown.  Affected files are
3930           silcd/server_internal.h and silcd/server_util.c.
3931
3932         * Notify distribution to backup routers was missing from
3933           the silc_server_send_notify_dest function which caused
3934           desyncing problems with backup router.  Affected file is
3935           silcd/packet_send.c.
3936
3937         * The client's channel removing was working wrong on
3938           backup router.  It assumed that it doesn't know global
3939           information but backup router does know.  For this reason
3940           it could remove channel when it wasn't supposed to do that.
3941           Affected file silcd/server.c and silcd/server_util.c.
3942
3943 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3944
3945         * Stop for a couple seconds after badkup router has become
3946           primary router.  Affected file silcd/server.c.
3947
3948         * Added silc_server_remove_servers_by_server, which is used
3949           to remove servers originated from some other server.  Also
3950           clients of those servers can be removed too.  Affected file
3951           silcd/server_util.[ch].
3952
3953         * When removing clients after a server has signed of remove
3954           also all servers behind that server (unless they are known
3955           to be available locally), and send SERVER_SIGNOFF for each
3956           of the server separately.  Also the signed off clients are
3957           sent now separately per signed off server.  The affected files
3958           are silcd/server.c and silcd/server_util.[ch].
3959
3960         * All servers added with silc_idlist_add_server must always
3961           have both "router" and "connection" pointers set.  Otherwise,
3962           bad server entries may be left around in the cache.
3963           Affected file silcd/command_reply.c.
3964
3965         * Do not create the channel key in NEW_CHANNEL packet
3966           processing if the channel is empty.  Affected file
3967           silcd/packet_receive.c.
3968
3969         * Completed backup router support for standalone routers.
3970           Supports also servers in the cell that do not use the backup
3971           at all.
3972
3973 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3974
3975         * Fixed a bug in silc_string_regexify which did not add '^'
3976           at the start of each string, and thus the matching was
3977           not explicit.  For example ban list iikone@*!*@* would
3978           match also "priikone", which is wrong, it would have to be
3979           *iikone@*!*@* to match also "priikone".  Affected
3980           file lib/silcutil/unix/silcunixutil.c.
3981
3982 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3983
3984         * Enable all local server connections before updating client
3985           caches when we've become backup router.  Otherwise, signoff
3986           packets may not reach the clients.  Affected files are
3987           silcd/server.c and silcd/server_util.[ch].
3988
3989         * Fixed a bug in version string parsing which could crash
3990           the program with specially formatted version string.
3991           Bug reported and patch provided by Ville Räsänen.  Affected
3992           file lib/silcutil/silcutil.c.
3993
3994         * Handle the disconnection immediately when DISCONNECT
3995           packet is received in server.  Affected file silcd/server.c.
3996
3997         * Primary router now waits a short time (10 seconds) for
3998           backup router connection before accepting any other
3999           connection (except local).  Affected file silcd/server.c,
4000           serverconfig.[ch].
4001
4002         * Fixed a crash in client libary in NICK_CHANGE notify when
4003           NICK_CHANGE arrived for client entry we are resolving
4004           currently.  Affected file lib/silcclient/client_notify.c.
4005
4006         * Call the sconn->callback completion even if error had
4007           occurred.  Start reconnecting always if connection to
4008           primary router fails during backup router protocol.
4009           Affected files silcd/server.c and server_backup.c.
4010
4011 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4012
4013         * Added functions silc_server_send_opers and
4014           silc_server_send_opers_notify to send packets stricly
4015           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
4016           to send variable argument notify to operators.
4017           Affected files silcd/packet_send.[ch] and silcd/server.h.
4018
4019         * Removed UMODE rights checking with UMODE_CHANGE notify.
4020           Affected file silcd/packet_receive.c.
4021
4022         * Server/router operator now receives notify when network
4023           switches to backup router and when it resumes the use of
4024           primary router.  Affected file silcd/server.c and
4025           silcd/server_backup.c.
4026
4027         * Fixed the updating of client information after backup
4028           resuming protocol is over; update all except local clients
4029           to the new primary router.  The affected file is
4030           silcd/server_util.c.
4031
4032         * Added support for closing active connections in rehash
4033           that were unconfigured by the user.  Supports currently
4034           closing server and router connections.  Affected file
4035           silcd/server.c.
4036
4037         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
4038
4039 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4040
4041         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
4042           is NULL since seems that on some platforms NULL is allowed
4043           and on some it's not.  Fallback encoding is used instead.
4044           Affected file lib/silcutil/silcstrutil.c.
4045
4046         * Fixed statistics updating for incoming server connection
4047           which could cause problems when re-connecting.  Affected
4048           file silcd/server.c.
4049
4050         * Preliminary backup router support for standalone router
4051           added.  Affected files in silcd/.
4052
4053         * Mark server connections in backup router disabled before
4054           and after backup protocol.  Affected file is
4055           silcd/server_backup.c.
4056
4057         * Added support for reconnecting to remote server connection
4058           even if the protocol fails, and if the configuration wants
4059           us to keep trying to connect anyway.
4060
4061           Server connection is not allowed to backup router if
4062           backup router does not have connection to primary router yet.
4063
4064           Affected file is silcd/server.c.
4065
4066 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4067
4068         * Added silc_client_udpate_server function to update changed
4069           server info.  Affected file lib/silcclient/idlist.[ch].
4070
4071         * Added check for server entries that are being resolved when
4072           notify is received.  If being resolved, handle the received
4073           notify only after it's resolved so that all notifys are
4074           handled in same order as received from the server.
4075
4076           Added similar resolver check to channel entries.  Every
4077           notify that cause resolving of any information that affects
4078           channel entry marks the channel entry in waiting state.
4079           After whatever resolving is over the waiters are signalled
4080           and only then the notifys are handled in the same order
4081           as delivered from the server.
4082
4083           Affected files are lib/silcclient/idlist.[ch], and
4084           client_notify.c.
4085
4086         * Fixed KILLED notify handling in normal server.  Affected
4087           file silcd/packet_receive.c.
4088
4089         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
4090           is locally connected, or was locally connected (but may
4091           be detached and connection is not active).  Added also
4092           SILC_IS_LOCAL for checking this status.  Affected files
4093           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
4094           silcd/server.c and silcd/server_internal.h.
4095
4096 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4097
4098         * Don't send or handle TOPIC_SET if topic is already set and
4099           is same as being set.  Affected files silcd/command.c and
4100           silcd/packet_receive.c.
4101
4102         * Fixed CMODE change rights checking to work correctly when
4103           removing modes by operator.  Affected file is
4104           silcd/server_util.c.
4105
4106         * Fixed some handling with New Channel packet in router and
4107           fixed some CMODE_CHANGE notify handling in server and router.
4108           Affected file is silcd/packet_receive.c.
4109
4110         * Changed "disconnect" client operation to include the
4111           reason of the disconnection and optional disconnection
4112           message.  Affected file lib/silcclient/silcclient.h.
4113
4114         * Made the compilation of lib/contrib/ stuff conditional.
4115           Affected files configure.in.pre, lib/contrib/Makefile.am.
4116
4117 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4118
4119         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
4120           to the sender of the notify too, to avoid situation where two
4121           notifys are in the network at the same time going to oppsite
4122           directions.  Affected file silcd/packet_receice.c.
4123
4124 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4125
4126         * Delete the client from channel even if the cilent->id is
4127           NULL.  It was possible that client was deleted without
4128           removing from channels (theoretically at least).  Affected
4129           file silcd/server.c and silcd/server_util.c.
4130
4131         * Free the client data too when resuming is not successful.
4132           Affected file silcd/packet_receive.c.
4133
4134         * Merged some code from c0ffee's silc-plugin.  Affected files
4135           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
4136
4137         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
4138           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
4139           to the primary router connection, the other one returns
4140           TRUE if packet must be broadcasted to network.
4141
4142         * All notifys that are destined to primary router (to network)
4143           are now automatically sent to backup routers even if the
4144           router is standalone (and has backup router).  Affected files
4145           in silcd/.
4146
4147         * Added --without-irssi and --without-silcd configuration
4148           options for disabling the compilation of these applications.
4149           Affected file configure.in.pre and prepare.
4150
4151 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4152
4153         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
4154           UTF-8 encoding and decoding.  Added also new encodings
4155           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
4156
4157           Added also SILC_STRING_LANGUAGE which is language and charset
4158           specific encoder and decoer for those platforms that support
4159           iconv().  It can convert the UTF-8 to and from the locale
4160           specific character set.
4161
4162           Affected file lib/silcutil/silcstrutil.[ch].
4163
4164         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
4165
4166         * Added function silc_get_command_name to the file
4167           lib/silcutil/silcutil.[ch].
4168
4169         * Improved the server debug output a bit.  Affected files are
4170           in silcd/.
4171
4172 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4173
4174         * Save the channel passphrase when received succesful JOIN
4175           command reply from router, on normal server.  Otherwise
4176           joinig +a channels from normal server is not possible.
4177           Affected file silcd/command.c.
4178
4179         * Fixed a bug in TOPIC_SET notify handling.  The notifier
4180           may be other than client too, like server or channel.
4181           It expected it to always be only client and ignored the
4182           notify.  Affected file silcd/packet_recieve.c.
4183
4184         * Removed some (unnecessary) debug printing from
4185           lib/silccore/silcid.c and lib/silccore/silcargument.c.
4186
4187         * Do not force CMODE_CHANGE when server is announcing new
4188           channel.
4189
4190           Router announces stuff only after server reannounces channel
4191           after CHANNEL_CHANGE notify.
4192
4193           These fixes optimizes the announcing procedure, and perhaps
4194           fixes some problems too.  Affected file silcd/packet_receive.c.
4195
4196         * Fixed SERVER_SIGNOFF sending to local clients.  It was
4197           totally broken and sent the notify to all local clients,
4198           instead of only to those that was on same channel as the
4199           signing off clients.  Affected file silcd/server_util.c.
4200
4201         * Added -D option to server.  It can be used to give debug
4202           level.  The levels are from 0 - 99, and are predefined for
4203           smooth server debugging.  (see silcd.c for the predefined
4204           levels).  Affected file silcd/server.c.
4205
4206 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4207
4208         * Fixed a bug in Irssi SILC client to close the connection
4209           properly when disconnecting from server.  Affected file
4210           irssi/src/silc/core/client_ops.c.
4211
4212 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4213
4214         * When authenticating as founder during JOIN command, check
4215           that the one authenticating becomes the only founder on the
4216           channel.  Affected file silcd/command.c.
4217
4218         * Better checking for founder mode setting when CUMODE_CHANGE
4219           notify is received.  Affected file silcd/packet_receive.c.
4220
4221         * Close all connections when shutting down the server by sending
4222           DISCONNECT packet.  Close all listeners too when shutting
4223           down the server.  Affected file silcd/server.c.
4224
4225         * Handle DISCONNECT packet correctly in client library by
4226           calling the "disconnect" client operation.  Affected file
4227           lib/silcclient/client.c.
4228
4229         * Handle local errors correctly during resuming.  Affected
4230           file lib/silcclient/client.c.
4231
4232 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4233
4234         * The log file is not dupped internally anymore in
4235           lib/silcutil/silclog.c.  Fixed memory leaks too.
4236
4237         * The scheduler now dispatches all pending timeout tasks
4238           when it is uninitialized with silc_schedule_uninit.
4239           Affected file lib/silcutil/silcschedule.c.
4240
4241 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4242
4243         * Added --enable-stack-trace option to configure.  Added
4244           memory allocation stack trace support.  Added files
4245           lib/silcutil/stacktrace.[ch].  Affected files are
4246           lib/silcutil/silcmemory.[ch].
4247
4248         * Fixed memory leaks from libraries and server.  Affected
4249           files around the tree.
4250
4251         * Reverted back a fix made to CUMODE which broke it.
4252           Affected file silcd/command.c.
4253
4254 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4255
4256         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
4257           core library, and implemented it.  All textual messages SHOULD
4258           use this flag and the message MUST be UTF-8 encoded.
4259           All text messages sent by Irssi SILC client are now UTF-8
4260           encoded (regardless whether the terminal supports UTF-8 or not).
4261           Affected files are lib/silccore/silcchannel.h,
4262           irssi/src/silc/core/silc-servers.c, silc-channels.c and
4263           client_ops.c.
4264
4265 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4266
4267         * Added lots of new statistics updating that was missing from
4268           the server and router code.  Affected files in silcd/.
4269
4270         * Sending SIGUSR1 signal to server now dumps the current
4271           server statistics into /tmp directory.  Affected file is
4272           silcd/silcd.c.
4273
4274         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
4275           the SILC Hash Interface also.  Added new functions
4276           silc_hash_get_name, silc_hash_init, silc_hash_update and
4277           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
4278
4279 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4280
4281         * Added some better info printing for client during connecting.
4282           Affected file silcd/server_util.c.
4283
4284         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
4285           to silence a user on a channel.  Affected files are
4286           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
4287           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
4288           and silcd/packet_receive.c.
4289
4290         * Fixed a fatal bug in handling of malformed command payload.
4291           Affected file silcd/command.c.
4292
4293         * Fixed a double free when announcing channel users to router.
4294           Affected file silcd/server.c.
4295
4296         * After successful authentication to channel founder mode, check
4297           that there isn't anyone else with founder mode on the channel.
4298           The one that authenticated will become founder and anyone
4299           else is demoted.  Affected file silcd/command.c.
4300
4301         * Added error printing of any error that has occurred during
4302           any command in client library.  Affected file is
4303           irssi/src/silc/core/client_ops.c.
4304
4305         * Removed some error printing from the client library and left
4306           it for the application to worry (from the error status it
4307           receives in 'command' client operation.  Affected file is
4308           lib/silcclient/command.c.
4309
4310 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4311
4312         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
4313           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
4314           Starting key agreement with itself is denied.  Affected file
4315           is lib/silcclient/client_keyagr.c.
4316
4317         * Fixed some error checkings from the SFTP library which caused
4318           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
4319           and lib/silcsftp/sftp_util.c.
4320
4321         * Added new "debug" and "debug_string" settings to Irssi SILC
4322           client which can be used to print runtime debugging on the
4323           Irssi's screen.  Available when compiled with --enable-debug
4324           option.  Affected file irssi/src/silc/core/silc-core.c.
4325
4326 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
4327
4328         * Fixed a missing variadic parameter in a function call that
4329           caused server crash when a non-allowed connection arrived.
4330           Reported by Richard Becker.  Affected file silcd/server.c.
4331
4332 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4333
4334         * Added WATCH list sending to backup routers from router.
4335           The WATCH command is sent by the router to the backup
4336           router.  Affected file silcd/command.c.
4337
4338         * Mark the backup_router flag for RouterConnection entry
4339           if the backup router stuff is defined in the config file.
4340           Affected file silcd/serverconfig.c.
4341
4342         * Fixed some backup data sending around the code to work better
4343           if the router is standalone router.  Not all places were fixed.
4344           Affected file silcd/packet_receive.c, silcd/packet_send.c,
4345           silcd/server.c.
4346
4347         * Fixed the router connecting when connecting to multiple
4348           routers.  It ignored every other router except the first
4349           one.  Affected file silcd/server.c.
4350
4351 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4352
4353         * Made the private key generation after expiration optional.
4354           If not created after expiration the old key will re-expire
4355           at a later time (and thus key pair is not necessary to
4356           change).  Affected file irssi/src/silc/core/clientutil.c.
4357
4358 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4359
4360         * The length arguments in bind() and connect() were wrong
4361           and fixed now to used SIZEOF_SOCKADDR in the
4362           lib/silcutil/unix/silcunixutil.c.
4363
4364 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4365
4366         * Fixed detach timeout handling to use Client ID and not
4367           the actual client entry which may be freed in the callback.
4368           Affected file silcd/command.c.
4369
4370 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4371
4372         * Merged c0ffee's multiple interface support patch.
4373           Affected files in silcd/.
4374
4375 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4376
4377         * Cleanup keys properly.  Affected file is
4378           irssi/src/silc/core/clientutil.c.
4379
4380 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4381
4382         * Display the user mode on the status bar.  Affected file
4383           irssi/src/silc/core/silc-expandos.c.
4384
4385 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4386
4387         * If private message key is not set, but the flag is set in
4388           the packet, ignore the packet since it cannot be decrypted.
4389           Affected file lib/silcclient/client_prvmsg.c.
4390
4391 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4392
4393         * When resuming client, remove the old client entry from
4394           the watcher list too.  Affected file silcd/packet_receive.c.
4395
4396         * Do not allow normal server to force founder mode away
4397           from router if the founder mode is already set.  Affected
4398           file silcd/packet_receive.c.
4399
4400         * Remove the client entry with watch notify types with short
4401           timeout, and not directly, so that other notifys can be
4402           retrieved too.  Affected file lib/silcclient/client_notify.c.
4403
4404         * Display notification about data messages that cannot be
4405           displayed.  Affected files irssi/src/silc/core/client_ops.c,
4406           irssi/src/fe-common/silc/module-formats.[ch].
4407
4408 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4409
4410         * Fixed the CHANNEL_CHANGE notify handling in client libary
4411           to not use freed memory.  Affected file is
4412           lib/silcclient/client_notify.c.
4413
4414         * Fixed CUMODE_CHANGE notify handling in server.  Affected
4415           file silcd/packet_receive.c.
4416
4417         * Fixed USERS command to support empty channels.  Affected
4418           file silcd/command.c.
4419
4420 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4421
4422         * Allow multiple identical pending commands to be registered
4423           in client library.  Affected file is lib/silcclient/command.c.
4424
4425         * Call the completion for resolving client information only
4426           after all resolvers has finished.  This fixes a crash in
4427           the client.  Added support for checking when the resolvers
4428           are finished.  Affected file is lib/silcclient/idlist.c.
4429
4430         * Wait by default 3 seconds before reconnecting to the server
4431           after being disconnected.  Makes the /detach command a bit
4432           more usable.
4433
4434 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4435
4436         * Check the watcher list before sending signoff notifys
4437           when closing client connection.  Affected file is
4438           silcd/server.c.
4439
4440         * Added better CMODE command rights checking.  Affected file
4441           silcd/server_util.c.
4442
4443 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4444
4445         * Fixed watcher list checking during server signoff.  It
4446           crashed the server.  Affected file silcd/server_util.c.
4447
4448         * The JOIN command reply returns now the founder's public
4449           key.  Affected file is silcd/command.c.
4450
4451         * Announce the channel mode, and the mode properties with
4452           CMODE_CHANGE notify.  Affected file silcd/server.c.
4453
4454         * Mark new channels by default disabled, untill at least
4455           one user joins the channel.  Affected file is
4456           silcd/packet_receive.c.
4457
4458 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4459
4460         * The nickname argument to watch notify can be optional.
4461           Fixes a crash in server.  Affected file silcd/packet_send.c.
4462
4463         * Remove the client entry from cache if the WATCH notify type
4464           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
4465           lib/silcclient/client_notify.c.
4466
4467         * Check the watcher list before and after changing nickname
4468           when the NICK_CHANGE notify is received.  Affected file is
4469           silcd/idlist.c.
4470
4471         * Fixed a crash in OPER and SILCOPER command sending.  Empty
4472           passphrase caused the crash.  Affected file is
4473           lib/silcclient/command.c.
4474
4475 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4476
4477         * Merged with Irssi CVS for Irssi SILC client.
4478
4479 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4480
4481         * Completed the protocol specifications.
4482
4483 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4484
4485         * Merged with Irssi CVS for Irssi SILC client.
4486
4487 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4488
4489         * Added the founder's public key delivery to the
4490           CUMODE_CHANGE notify type as well.  Updated the protocol
4491           specs and the code.  Affected files are silcd/packet_send.[ch],
4492           silcd/packet_receive.c and silcd/command.c.
4493
4494 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4495
4496         * Added silc_pkcs_public_key_copy function into the
4497           lib/silccrypt/silcpkcs.[ch].
4498
4499         * Remove the `iv' from the SilcChannelEntry since we can
4500           live without it.  Affected files are silcd/idlist.h and
4501           silcd/packet_receive.c.
4502
4503         * Added support for sending the founder's public key in
4504           the CMODE_CHANGE notify packet in the server.  Affected
4505           files are silcd/packet_send.[ch], silcd/packet_receive.c,
4506           silcd/command.c and silcd/server.c.
4507
4508         * Changed the FOUNDER_AUTH authentication to use only
4509           public key authentication as defined by new protocol
4510           specs.  Passphrase authentication with that mode cannot
4511           be used anymore.  It is now possible to reclaim founder
4512           mode from any server in the network.  Affected files are
4513           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
4514
4515         * Added permanent channels support by making the channel
4516           permanent when FOUNDER_AUTH mode is set on the channel.
4517           The channel will not be destroyed even if channel is empty
4518           when that mode is set.  Protocol TODO #17.  Affected
4519           files are silcd/server.[ch], server_util.[ch],
4520           silcd/command.c, silcd/packet_receive.c and
4521           lib/silcclient/command.c.
4522
4523 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4524
4525         * Added reference counter to the command reply context in
4526           the client library.  Affected files are
4527           lib/silcclient/command_reply.[ch].
4528
4529 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4530
4531         * Fixed rekey protocol with PFS in the client library.
4532           Affected file is lib/silcclient/protocol.c.
4533
4534         * Added support for list of errors in client library
4535           command reply handling.  Affected file is
4536           lib/silcclient/command_reply.c.
4537
4538         * Defined that the WHOIS and IDENTIFY commands can send
4539           list of errors.  Updated the protocol specs.  Protocol
4540           TODO #2.
4541
4542         * Added support for sending list of errors to WHOIS and
4543           IDENTIFY commands in server.  Added support for receiving
4544           list of errors in server.  Affected files are
4545           silcd/command.c and silcd/command_reply.c.
4546
4547         * Fixed client info resolving on LEAVE command in client
4548           library to not crash.  Affected file is
4549           lib/silcclient/client_notify.c.
4550
4551 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4552
4553         * Defined that the NICK command replies with thew changed
4554           nickname too, to make the nickname changing simpler at
4555           the client's end.  Updated protocol specs and the code
4556           in client and server.  Affected files are
4557           silcd/command.c, lib/silcclient/command_reply.c and
4558           lib/silcclient/command.c.
4559
4560 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4561
4562         * Added `Compressed' packet flag to indicate that the packet
4563           payload is compressed by the sender.  Updated the protocol
4564           specs and the core library.  The compression still is not
4565           implemented in the sources.  Affected file is
4566           lib/silccore/silcpacket.h.
4567
4568 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4569
4570         * Remove pending command callbacks also if the connection
4571           to the server is destroyed.  Affected file is
4572           lib/silcclient/client.c.
4573
4574 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4575
4576         * Added new QUIET channel user mode that can be used to
4577           quiet a user in a channel.  Updated the protocol specs but
4578           it wasn't implemented yet.  Protocol TODO #27.  Affected
4579           file is lib/silccore/silcmode.h.
4580
4581 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4582
4583         * Added BLOCK_INVITE user mode to be able to block incoming
4584           invite notifications.  Protoocol TODO #26.  Affected files
4585           are lib/silccore/silcmode.h, lib/silcclient/command.c and
4586           silcd/command.c.
4587
4588         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
4589           the protocol specs and the code.  Affected file is
4590           lib/silccrypt/silcpkcs.c.
4591
4592 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4593
4594         * Disconnect Payload includes now the status type.  Updated
4595           the protocol specs and the code.  Protocol TODO #25.
4596           Affected files are silcd/server.c, lib/silcclient/client.c.
4597
4598         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
4599           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
4600           Moved the silc_client_command_status_messages table to the
4601           lib/silcutil/silcutil.c and added new funtion
4602           silc_get_status_message, which deprecates function
4603           silc_client_status_message.  Affected files are
4604           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
4605           lib/silcutil/silcutil.[ch].
4606
4607 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4608
4609         * Defined that the nickname hash in Client ID MUST be from
4610           lowercase nickname.  This effectively changes nicknames in
4611           SILC to case-insensitive.  Updated the protocol specs and
4612           the code.  Affected files are lib/silcutil/silcutil.[ch],
4613           silcd/serverid.c, and silcd/idlist.c.
4614
4615         * Added new channel user modes BLOCK_MESSAGES_USERS and
4616           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
4617           code.  Affected files are lib/silccore/silcmode.h,
4618           lib/silcclient/command.c, and silcd/packet_send.c.
4619
4620         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
4621           specs and code.  Affected file lib/silccore/silcstatus.h.
4622
4623         * Added support for watch list.  It is possible to add nicknames
4624           to be watched, and when they come to network, leave network
4625           or user mode changes the watcher will be notified of this
4626           change.  Added SILC_COMMAND_WATCH command, added new
4627           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
4628           notifications.  Updated the protocol specs and implemented
4629           this to library, client and server.  Protocol TODO #21.
4630           Affected files are lib/silccore/silccomand.h,
4631           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
4632           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
4633           silcd/packet_send.[ch], silcd/packet_receive.c, and
4634           irssi/src/silc/core/client_ops.c.
4635
4636         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
4637           somebody watching you.  Updated the protocol specs and the
4638           code.  Affected files are lib/silccore/silcmode.h, and
4639           lib/silcclient/command.c.
4640
4641 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4642
4643         * Added service support to SILC protocol.  Added new command
4644           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
4645           core library.  Services are not implemented in server or
4646           client for now.  Protocol TODO #20.  Affected files are
4647           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
4648
4649         * Added SilcStatus argument to `command' client operation
4650           to return the error status when command sending fails
4651           locally.  Changed all command in client library to return
4652           correct command status.  Affected files are
4653           lib/silcclient/command.c, lib/silcclient/silcclient.h and
4654           irssi/src/silc/core/client_ops.c.
4655
4656 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4657
4658         * Added silc_mime_parse function to parse MIME headers.
4659           Affected files are lib/silcutil/silcstruti.[ch].
4660
4661         * Added MIME header parsing in Irssi SILC Client.  It displays
4662           all textual MIME objects, others it ignores.  Affected file
4663           is irssi/src/silc/core/clien_ops.c.
4664
4665 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4666
4667         * Fixed a bug in the pid writing function, which couldn't be
4668           written in a root-owned directory.
4669
4670 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4671
4672         * Defined that channel message to unknown Channel ID must
4673           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
4674           Updated the protocol specs and the code in server.  The
4675           affected file is silcd/packet_receive.c.
4676
4677 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4678
4679         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
4680           that it is used to send error notifys if error occurs during
4681           some SILC packet processing, except commands.  The error
4682           types are same as for command reply types.  Defined that
4683           if private message is sent to unknown Client ID the error
4684           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
4685           Updated the protocol specs and code.  Affected files are
4686           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
4687           lib/silcclient/client_notify.c, silcd/packet_receive.c,
4688           and irssi/src/silc/core/client_ops.c.  Renamed the
4689           SilcCommandStatus to SilcStatus.
4690
4691         * Defined the use of extra WHOIS attributes in WHOIS command.
4692           The <Requested Attributes> (defined in a separate document)
4693           can be used to request additional information about user
4694           not returned by standard WHOIS command.  Defined that server
4695           can send WHOIS command directly to client.  Client provides
4696           the requested attributes to the server.  Updated the protocol
4697           specs.  Protocol TODO #4.  Implementation is not done yet
4698           (Protocol TODO #24).
4699
4700         * Renamed function silc_client_command_status_message to
4701           silc_client_status_message.  Affected files are
4702           lib/silcclient/command_reply.[ch].
4703
4704 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4705
4706         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
4707           32 bit integers.  Updated the protcol specs and the code.
4708           Affected files are silcd/command.c and
4709           lib/silcclient/command.c.
4710
4711 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4712
4713         * Fixed a bug in library where sending a bogus authentication
4714           payload would lead to a crash.  Affected file is
4715           lib/silccore/silcauth.c.
4716
4717 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4718
4719         * Added detach_disabled and detach_timeout server config
4720           options to the server.  Affected files silcd/serverconfig.[ch],
4721           silcd/command.c and silcd/packet_receive.c.
4722
4723 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4724
4725         * Added resolve_cmd_ident field to the SilcClientEntry structure
4726           too so that if the entry is for example being resolved so
4727           another command may attach to the same pending command reply
4728           without requiring to resolve the same entry again.  Added
4729           support for adding multiple pending commands for one
4730           command idenfier.  Affected files lib/silcclient/command.[ch],
4731           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4732
4733 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4734
4735         * Defined that server receives WHOIS command reply for private
4736           and secret channels too.  Updated protocol specs and the
4737           code in server.  Affected file silcd/command.c.
4738
4739         * Defined <channel user mode list> argument to WHOIS command
4740           reply for returning user modes on the channels.  The
4741           channel list now doesn't include the user mode anymore but the
4742           actual channel mode.  Updated protocol specs and the code in
4743           client and server.  Affected files are silcd/command_reply.c,
4744           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4745           and lib/silcclient/command_reply.c.
4746
4747         * Save the channels list in WHOIS command reply in normal server
4748           so that WHOIS always shows joined channels also in normal
4749           server and not just on router.  Affected file is
4750           silcd/command_reply.c.
4751
4752 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4753
4754         * Defined that server receives USERS command reply for private
4755           and secret channels too.  Updated protocol specs and the
4756           code in server.  Affected file silcd/command.c.
4757
4758 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4759
4760         * Changed the UMODE's mode mask argument to be optional.  If
4761           not provided then the command merely returns the current mode
4762           mask to the client.  Updated protocol specs and the server.
4763           Affected file is silcd/command.c.
4764
4765         * Added SILC session detachment/resuming support.  It is possible
4766           to detach by closing the network connection and then re-connect
4767           and resume to the old client session.  Added DETACHED user
4768           mode that server will set for detached client.  Added new
4769           packet RESUME_CLIENT which is used to perform the resuming
4770           process.  Added DETACH command.  Updated the protocol specs,
4771           core library, client and server.  Protocol TODO #22.  Very
4772           many affected files around the tree.
4773
4774 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4775
4776         * Changed the CMODE's mode mask argument to be optional.  If
4777           not provided then the command merely returns the current mode
4778           mask to the client.  Updated protocol specs and the server.
4779           Affected file is silcd/command.c.
4780
4781         * Changed the Killer's Client ID in KILLED notify to be just
4782           any ID payload since router server is allowed to kill as well.
4783           Updated protocol specs, client libary and server.  Affected
4784           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4785           and irssi/src/silc/core/client_ops.c.
4786
4787 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4788
4789         * Added new user modes ANONYMOUS for special anonymous servers
4790           that may set the mode for client, and BLOCK_PRIVMSG which
4791           client may set to block incoming private messages unless the
4792           Private Message Key flag is set (using private keys to protect
4793           private messages).  Updated protocol specs and code in client
4794           and server and core library.  Protocol TODO #23.  Affected
4795           files are lib/silccore/silcmode.h, silcd/server.[ch],
4796           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4797           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4798
4799         * Added new channel user mode BLOCK_MESSAGES which the client
4800           may set to itself to tell server not send channel messages.
4801           Other packets such as channel key packets are still sent.
4802           Protocol TODO #23.  Updated the protocol specs, client and
4803           server.  Affected files are lib/silccore/silcmode.h,
4804           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4805           lib/silcutil/silcutil.c, silcd/command.c, and
4806           silcd/packet_send.c.
4807
4808 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4809
4810         * Redefined the Status Payload to include now two 8 bit fields,
4811           instead of one 16 bit field.  This now makes it possible to
4812           send list of errors.  Updated the protocol specs and the code
4813           in core library, client library and server.  Protocol TODO #1.
4814           Affected files are lib/silccore/silccommand.[ch],
4815           lib/silcclient/command_reply.[ch], silcd/command.c,
4816           silcd/command_reply.c and silcd/packet_receive.[ch].
4817
4818 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4819
4820         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4821           must be handled by the application and should tell the application
4822           that an error message was already printed, and it should print the
4823           config coords (line, filename, ...).  Affected files are
4824           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4825
4826         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4827           server config parsing code more readable.
4828
4829           Fixed a bug in the fetch_logging() config callback.
4830
4831           Affected files is silcd/serverconfig.c.
4832
4833         * Drop root privileges when started in foreground.  Don't drop them
4834           if debugging also.  Affected file is silcd/silcd.c.
4835
4836 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4837
4838         * Added more IM-like features by introducing new user modes
4839           for setting various presence information.  Added new modes:
4840           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4841           specs and code.  Protocol TODO #19. Affected files are
4842           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4843           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4844
4845 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4846
4847         * Added STATS command to the protocol after all, to return
4848           various statistical information about the network.  It can
4849           be used by clients to retrieve statistical information, and
4850           servers may use it to to fetch cell and network wide
4851           statistics from router.  Updated the protocol specs and
4852           implemented it to the server.  Protocol TODO #16.
4853           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4854           silcd/command_reply.[ch].
4855
4856 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4857
4858         * The LIST command reply in client libary now adds new channel
4859           entry if the returned channel doesn't exist yet in cache,
4860           and returns the channel entry to the application in the
4861           command_reply client operation.  Affected file is
4862           lib/silcclient/command_reply.c.
4863
4864         * Changed the channel message payload's MAC generation to
4865           include the IV in the MAC as well.  This way all relevant
4866           parts of the channel message payload are authenticated also
4867           with the channel message MAC (and not only by packet MAC).
4868           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4869           Affected file is lib/silccore/silcchannel.c.
4870
4871         * Fixed the SKE to save the remote version, since the
4872           silc_ske_parse_version mistakenly checked wrong version,
4873           after it replaced the start payload.  Affected files are
4874           lib/silcske/silcske.[ch].
4875
4876 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4877
4878         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4879           string utility functions.  Added there also new functions
4880           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4881           Affected files lib/silcutil/silcstrutil.[ch].
4882
4883         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4884           files are lib/silcutil/silcstrutil.[ch].
4885
4886         * Defined that the security property fields in SKE SHOULD be
4887           UTF-8 encoded, defined that version string MUST be US-ASCII
4888           encoded, defined that passphrases sent in connection
4889           authentication protocol MUST be UTF-8 encoded.  Implemented
4890           these to the client and server.  Defined also that other
4891           passphrases sent in the protocol MUST be UTF-8 encoded.
4892           Affected files are lib/silcske/silcske.c,
4893           lib/silcclient/protocol.c, silcd/protocol.c,
4894           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4895
4896         * Changed the silc_client_close_connection interface to not
4897           need the SilcSocketConnection which should not be visible
4898           to application.  Affected files are lib/silcclient/client.c
4899           and lib/silcclient/silcclient.h.
4900
4901         * Rewrote the text for Private Message Key Payload in the
4902           protocol specification.  Protocol TODO #11.
4903
4904 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4905
4906         * Upgraded the protocol version to 1.1, updated protocol specs
4907           and software.
4908
4909         * Added the nickname as new argument to NICK_CHANGE notify and
4910           added it to protocol specs and implemented it to client and
4911           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4912           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4913           lib/silcclient/client_notify.c.
4914
4915         * Added the killer's client ID to the KILLED notify and added
4916           it to protocol specs and implemented it to client and server.
4917           Protocol TODO #13.  Affected files are silcd/command.c,
4918           silcd/packet_receive.c, packet_send.[ch],
4919           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4920           The killer's client entry is now returned to application in
4921           the `notify' client operation.
4922
4923         * Fixed the Max Argument fields that had too large value set
4924           in the protocol specs.  Protocol TODO #14.
4925
4926         * Added the LEAVE command reply to return the ID of parted
4927           channel.  Updated protocol specs and implemented it to the
4928           client and server.  Protocol TODO #15.  Affected files are
4929           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4930           entry is now returned to application in the `command_reply'
4931           client operation.
4932
4933         * Rewrote the version SKE version checking in client libary
4934           and in server to use the silc_parse_version_string.  Affected
4935           files are lib/silcclient/protocol.c, silcd/protocol.c.
4936
4937         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4938           commands that was missing it, and updated protocol specs and
4939           the server implementation.  Protocol TODO #10.  The affected
4940           file is silcd/command.c.
4941
4942         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4943           generic reply to a generic request (REQUEST flag), and
4944           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4945           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4946           to define the payload for DATA flag.  Added the flags to
4947           the implementation.  Protocol TODO #9.  Affected file is
4948           lib/silccore/silcchannel.h.
4949
4950           Changed the client library to return the message length
4951           to application as well in the channel_message and private_message
4952           client operations.  Affected files are
4953           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4954           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4955           and lib/silcclient/client_ops_example.c.
4956
4957         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4958           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4959           the channel.  Updated protocol specs and impelemented this
4960           to client and server.  Protocol TODO #6.  Affected files are
4961           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4962           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4963
4964           Added new options m and M to CMODE command in Irssi SILC
4965           client to set these modes.
4966
4967         * Deprecated all administrative commands from SILC protocol
4968           since they are highly implementation specific commands.
4969           Updated protocol specs.  Moved the old commands in
4970           implementations to private range of command types.  Affected
4971           files are silcd/command.c, lib/silcclient/command.c and
4972           lib/silcclient/command_reply.c.  Protocol TODO #8.
4973
4974         * Fixed a bug in server where sending unknown command crashes
4975           the server.  Affected file silcd/command.c.
4976
4977 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4978
4979         * Added SILC_PROTOCOLVERSION macro to check protocol version
4980           of a socket connection.  The affected file is
4981           lib/silcutil/silcsockconn.h.
4982
4983         * Added better error logging in rekey protocol.  Affected file
4984           silcd/protocol.c.
4985
4986         * Do not check public key types in SKE during rekey.  Affected
4987           file lib/silcske/payload.c.
4988
4989         * Fixed the rekey protocol with PFS, which was totally broken.
4990           Affected file silcd/protocol.c.
4991
4992 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4993
4994         * Some client implementations quit network by doing first LEAVE
4995           and then immediately SIGNOFF (like Bombyx).  We now do check
4996           after a short time after LEAVE notify and check whether the
4997           client is still valid after LEAVE, and if not we remove it from
4998           cache.  Affected file is lib/silcclient/client_notify.c.
4999
5000 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
5001
5002         * Merged version 1.1.4 of zlib. Even if it not currently in use,
5003           it's good not to have security holes here.
5004
5005         * Fixed a negative refcount situtuation for the config context.
5006           Affected file is silcd/serverconfig.c.
5007
5008 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
5009
5010         * ROBOdoc documented lib/silcutil/silcutil.h.
5011
5012 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5013
5014         * Optimized even more the SilcPacketContext structure.  Now
5015           totally saved 16 bytes of memory per context after optimization.
5016           Affected files are lib/silccore/silcpacket.[ch].
5017
5018         * Made strict checks for valid SILC IDs.  Affected file is
5019           lib/silccore/silcid.c.
5020
5021 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5022
5023         * Changed the object argument for silc_cipher_register,
5024           silc_hash_register, silc_hmac_register and silc_pkcs_register
5025           to const.  Affected files are lib/silccrypt/silccipher.[ch],
5026           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
5027
5028         * Changed the silc_get_username and silc_get_real_name to
5029           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
5030
5031         * Fixed the Irssi SILC Client to use the silc_get_username and
5032           silc_get_real_name insted of glib routines since the glib
5033           routines only corrupt stack.  Fixes the Irssi SILC to work in
5034           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
5035
5036         * Fixed the Irssi to not use g_get_home_dir since it crashes
5037           or returns garbage on cygwin and corrupts stack.  Added function
5038           get_home_dir to Irssi routines.  Affected files are
5039           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
5040
5041 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5042
5043         * Made some structure optimizations.  SFTP memory FS MemFSEntry
5044           entry structure.  Optimized SilcTask structure.  Optimized
5045           SilcPacketContext structure.
5046
5047           Affected files lib/silcsftp/sftp_fs_memory.c,
5048           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
5049
5050 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5051
5052         * And yet again reverted back the config thing since Johnny
5053           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
5054           and silcd.c.
5055
5056         * Fixed memory leaks from config object.  Affected files are
5057           silcd/serverconfig.[ch].
5058
5059         * Added support for adding new connections to the server in rehash.
5060           After rehash they take effect.
5061
5062           Added support for changing the maximum allowed connections in
5063           rehash.  The number can grow but going smaller is not supported.
5064
5065           Added function silc_server_num_sockets_by_remote to the
5066           silcd/server_util.[ch].
5067
5068           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
5069
5070 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
5071
5072         * Added preliminary checking during config parsing for a valid
5073           public/private key and removed further checks in the code.
5074           Affected files are silcd/serverconfig.[ch], server.c.
5075
5076         * Moved functions silc_server_drop() and silc_server_daemonise()
5077           from server.c to silcd.c since they are stricly related to
5078           the application activity.
5079
5080         * Reverted a small part of the automatic ref/unref since
5081           it caused a double unref in some situations.  Affected
5082           files are silcd/silcd.[ch], server.c, serverconfig.c.
5083
5084         * Added some .cvsignore files in the lib directory.
5085
5086 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5087
5088         * Fixed silc_net_gethostbyaddr to correctly resolve by
5089           address.  Affected file lib/silcutil/silcnet.c.
5090
5091         * Fixed the notify relaying to client.  The HMAC to be used
5092           with relayed packets ws wrong and caused decryption failure
5093           at the client end.  Affected file is silcd/packet_receive.c.
5094
5095 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5096
5097         * Created new branch silc_protocol_1_0_branch.
5098
5099         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
5100
5101         * Changed the silc_server_config_* routines to be SilcServer
5102           independent.  They are now officially application specific code
5103           and not part of generic server implementation.  Affected files
5104           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
5105
5106 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5107
5108         * Added automatic referencing of config context in the
5109           silc_server_config_alloc, and automatic unreferencing in the
5110           silc_server_config_destroy.  Affected files are
5111           silcd/serverconfig.[ch], silcd/silcd.c.
5112
5113         * Fixed the silc_log_quick handling in the logging routines.
5114           It didn't log quickly when it was TRUE.  Affected file is
5115           lib/silcutil/silclog.c.  Also the flush delay was set even
5116           if it was 0 in config file.  Affected file is
5117           silcd/serverconfig.c.
5118
5119         * Added support for changing key pair of the server in rehash.
5120           Affected file silcd/server.c.
5121
5122 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5123
5124         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
5125           too early, before getting the channel entry.  Affected file
5126           is silcd/packet_receive.c.
5127
5128 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5129
5130         * Added functions silc_server_config_[ref/unref], these are used
5131           to prevent that the config object is destroyed.
5132
5133           No longer directly affect global variables silc_log_quick and
5134           silc_log_delay, they are first cached inside the config object
5135           and then applied with silc_server_config_setlogfiles().
5136
5137           silc_server_config_set_defaults() is now internal to
5138           serverconfig.c, there are no reasons to show this internal stuff
5139           to the server.
5140
5141           Affected files are silcd/serverconfig.[ch].
5142
5143         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
5144           fprintf's to stderr, since some code may be executed again after
5145           the server went into the background.  Affected files are
5146           silcd/server.[ch].
5147
5148         * Added rehash support. Added function silc_server_rehash() that
5149           will perform all the basic tasks of the rehashing procedure.
5150
5151         * Added command line option `-x, --hexdump'. This will enable the
5152           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
5153           The option `--hexdump' implies `--debug'.
5154
5155         * Fixed a bad bug in the logging APIs (silcutil library) where
5156           the application would crash after calling silc_log_reset_all().
5157
5158 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5159
5160         * Fixed the KICKED notify handling in client library to
5161           correctly remove the channel and all entries from the
5162           channel when I was kicked.  This bug crashed the client.
5163
5164           Fixed yet another but in KICKED notify handling to remove
5165           the kicked client correctly from the channel.
5166
5167           Affected file is lib/silcclient/client_notify.c.
5168
5169         * Fixed a minor bug in looking up correct client entry
5170           in KICKED notify in server.  Affected file is
5171           silcd/packet_receive.c.
5172
5173         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
5174           sources correctly to distribution.  Fixes --with-gmp option.
5175
5176         * Removed the manual rehashing from ID Cache, and changed it
5177           to use the SILC Hash Table's auto rehash feature.  Affected
5178           file is lib/silccore/silcidcache.c.
5179
5180 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5181
5182         * Fixed a bug in the silc_client_nickname_format function that
5183           handles the multiple same nickname formatting.  Two clients
5184           with same nickname caused problems after the first one left
5185           and rejoined.  It didn't format the nickname correctly.
5186           Affected file is lib/silcclient/idlist.c.
5187
5188 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5189
5190         * Don't change the topic if olod topic is same as new one.
5191           Affected file is silcd/packet_receive.c.
5192
5193 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5194
5195         * Added cross-reference support to the SILC Documentation
5196           generator.  All types across all HTML files are now cross-
5197           referenced.  Affected files util/robodoc/generator.c and
5198           scripts/silcdoc/silcdoc.
5199
5200         * Added file lib/silcutil/silctypes.h to include all the
5201           arithmetic type definitions and some macros.  Removed
5202           includes/bitmove.h and moved macros to silctypes.h.
5203
5204 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5205
5206         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
5207
5208 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5209
5210         * Added `type' argument to silc_id_payload_parse_id function which
5211           now returns the type of the ID to the sent pointer.  Affected
5212           file is lib/silccore/silcid.[ch].
5213
5214         * Added check for CMODE_CHANGE notify type that mode change is
5215           allowed by the sender.  Affected file silcd/packet_receive.c.
5216
5217         * Added check for CUMODE_CHANGE notify type that mode change is
5218           allowed by the sender.  Affected file silcd/packet_receive.c.
5219           Added the ID type as CUMODE_CHANGE notify type as argument
5220           to the `notify' client operation.  Affected files are
5221           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
5222
5223         * Added function silc_client_add_server to the client library.
5224           Added support for resolving also channel and server info when
5225           received unknown entity in notify packet.  Affected files are
5226           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
5227
5228         * Added function silc_command_get_status to return the command
5229           status from the command reply's argument payload.  Affected files
5230           are lib/silccore/silccommand.[ch].
5231
5232         * Added check for KICKED notify type that the kicking is
5233           allowed by the client.  Affected file silcd/packet_receive.c.
5234
5235         * Created function silc_get_input which can be used to get input
5236           (echo on or off) from user on command line.  Affected files are
5237           lib/silcutil/silcutil.[ch].
5238
5239 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5240
5241         * Optimized silc_server_packet_relay_to_channel function.
5242           Added new function silc_channel_message_payload_encrypt which
5243           can be called directly if channel message payload needs to
5244           be encrypted and is already encoded (no need to call _encode
5245           function).  Packet relaying is now done by router without any
5246           extra memory allocations.  Affected files are
5247           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
5248           silcd/packet_send.c.
5249
5250         * Fixed the INVITE notify handling.  It took wrong arguments
5251           as invite list and invite delete.  Affected file is
5252           silcd/packet_receive.c.
5253
5254         * Added check for TOPIC_SET notify type that the topic change is
5255           allowed by the client.  Affected file silcd/packet_receive.c.
5256
5257         * Added check for INVITE notify type that inviting is allowed by
5258           the client.  Affected file silcd/packet_receive.c.
5259
5260         * Changed the silc_server_client_on_channel to return the
5261           SilcChannelClientEntry as well.  Moved the function
5262           silc_server_check_cmode_rights to server_util.[ch].
5263           Affected files are silcd/server_util.[ch], silcd/command.c.
5264
5265         * Added function silc_server_check_umode_rights to check whether
5266           changing client's user mode is allowed.  Added check for
5267           UMODE_CHANGE notify type that the umode change is allowed
5268           by the client.  Affected files are silcd/server_util.[ch],
5269           silcd/packet_receive.c and silcd/command.c.
5270
5271 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5272
5273         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
5274           ID length.  It ignored that ID can be IPv6 based as well.
5275           Affected file lib/silccore/silcpacket.h.
5276
5277         * Fixed the silc_id_id2str and silc_id_str2id to take the
5278           IPv6 address offset's into consideration.  Affecte file is
5279           lib/silccore/silcid.c.
5280
5281 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5282
5283         * Fixed the internal Unix scheduler functions to check for
5284           NULL context they may receive.  The affected file is
5285           lib/silcutil/unix/silcunixschedule.c.
5286
5287 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
5288
5289         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
5290           can specify different directory with --home command line
5291           parameter. Affected files irssi/src/silc/core/client_ops.c,
5292           clientutil.c
5293
5294         * SILC-specific commands aren't now executed if the active server
5295           isn't of SILC-type, so there won't be problems with having
5296           IRC and SILC protocol support in same client. Affected files
5297           irssi/src/silc/core/silc-channels.c, silc-servers.c,
5298           silc-commands.h
5299
5300 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5301
5302         * Improved the signal support in SILC Schedule.  Added new
5303           function silc_schedule_signal_call which is used by application
5304           to mark a signal to be called.  It is now safe to perform
5305           any kind of tasks in signal callbacks since it is guaranteed
5306           that the application specified signal callback is called
5307           after the signal is over.  Affected files are
5308           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
5309
5310 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5311
5312         * Added `name' field to SilcChannelPrivateKey to represent
5313           application given name for the key.  Moved also the context from
5314           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
5315           Added the `name' argument also to the function
5316           silc_client_add_channel_private_key.
5317
5318           Added function silc_client_current_channel_private_key to set the
5319           current channel private key in use.
5320
5321           Added "change" command to KEY command which can be used to change
5322           the current channel private key.  Bound the command also to
5323           alt+K (Alt+Shift+k).
5324
5325           Also affected files lib/silcclient/client_channel.c,
5326           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
5327
5328 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5329
5330         * Added silc_rng_get_byte_fast function in to the
5331           lib/silccrypt/silcrng.[ch].
5332
5333         * Changed the interface of silc_packet_assemble and the
5334           silc_packet_send_prepare.  If silc_packet_assmble is now
5335           called the application does not call silc_packet_send_prepare
5336           because the library will call it automatically.  These
5337           interfaces now also return a reference to the outgoing buffer
5338           which includes the assembled packet, which the application can
5339           use to encrypt the packet.
5340
5341           Affected files are lib/silccore/silcpacket.[ch],
5342           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
5343           silcd/packet_send.c, server_backup.c and packet_receive.c.
5344
5345         * Fixed a packet sending bug on very high load, where outgoing
5346           packet queue wasn't handled correctly and packets got corrupted.
5347           Affected files are lib/silcutil/*/silc*sockconn.c,
5348           lib/silcclient/client.c and silcd/server.c.
5349
5350 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5351
5352         * Added macro SILC_PACKET_DATALEN which can be used during
5353           packet assembling to check whether the data to be added to
5354           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
5355           len is truncated until it fits it.
5356
5357           Added checks for maximum length of channel message payload and
5358           private message payload also.
5359
5360           Added checks for maximum packet length in server and in
5361           client library.
5362
5363           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
5364           lib/silcclient/client.c, lib/silccore/silcchannel.c and
5365           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
5366           lib/silcclient/client_prvmsg.c.
5367
5368 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5369
5370         * Added silc_server_packet_queue_purge call to the
5371           silc_server_disconnect_remote to assure that all data in the
5372           queue before disconnecting is sent to the network.  Affected
5373           file silcd/server.c.
5374
5375 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5376
5377         * Added the deleting of server's own ID cache entry to the
5378           silc_server_free function.  Free also everything else that
5379           has been allocated in silc_server_init.  The affected file
5380           is silcd/server.c.
5381
5382 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5383
5384         * Added functions silc_parse_version_string, silc_version_to_num,
5385           and silc_ske_parse_version to parse SILC protocol style version
5386           strings.  Affected files lib/silcutil/silcutil.[ch] and
5387           lib/silcske/silcske.[ch].
5388
5389         * Added new configuration params: version_protocol, version_software
5390           and version_software_vendor to specify what version the remote
5391           host must at least be to be able to connect to server.  The vendor
5392           string can be regex matched too.  Added new function
5393           silc_server_connection_allowed to check maximum number of allowed
5394           connections, and allowed versions for incoming connections.
5395           Affected files are silcd/server.c, server_util.[ch] and
5396           serverconfig.[ch].
5397
5398 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5399
5400         * Added preliminary support for signals in scheduler.  The
5401           signals we care about are now blocked always when the scheduler
5402           is locked.  This way we can synchronise the use of signal with
5403           scheduler.  It is guaranteed that when signal occurs the scheduler
5404           is not locked, and thus new tasks can be safely added to the
5405           scheduler.
5406
5407           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
5408           to silc_schedule_internal_init and silc_schedule_internal_uninit.
5409           Added new platform specific routines
5410           silc_schedule_internal_signals_[un]block and
5411           silc_schedule_internal_signal_[un]register.
5412
5413           Added new functions to SILC Schedule API:
5414           silc_schedule_signal_[un]register.  Each signal that application
5415           is going to use should be registered to the scheduler.
5416
5417           Affected files are lib/silcutil/silcschedule.[ch],
5418           lib/silcutil/*/silc*schedule.c.
5419
5420 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5421
5422         * Check for unauthenticated client and server in the
5423           silc_server_new_client and silc_server_new_server functions.
5424           Affected file silcd/packet_receive.c.
5425
5426         * Added function silc_string_is_ascii to check whether given
5427           string is 7-bit ASCII string.  Affected files are
5428           lib/silcutil/silcutil.[ch].
5429
5430         * Added function silc_id_is_valid_server_id into the
5431           silcd/serverid.c and added checking for valid Server ID's in
5432           silc_server_new_server.  The Server ID must always be based
5433           on the server's public IP address.
5434
5435         * Added logging of DISCONNECT packet message in the server.
5436           Affected file silcd/server.c.
5437
5438 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5439
5440         * Changed all library interfaces that use Global RNG to also
5441           accept SilcRng as argument.  Affected files are
5442           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
5443           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
5444           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
5445           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
5446           lib/silccrypt/rsa.c.
5447
5448         * Added function silc_pkcs_generate_key to the
5449           lib/silccrypt/silcpkcs.[ch] for applications so that they
5450           don't need to do pkcs->pkcs->init calls anymore.
5451
5452         * Remove SilcSocketConnection from the SFTP API since it really
5453           wasn't needed there.  The application has the information
5454           saved in its contexts anyway and the SFTP layer doesn't need
5455           know about it.  Affected files lib/silcsft/silcsftp.h and
5456           lib/silcsftp/sftp_[server/client].c.
5457
5458         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
5459           The SilcSimContext is not SilcSim.
5460
5461         * Fixed possible buffer overflows in silc_id_render in the
5462           lib/silcutil/silcutil.c.
5463
5464         * On EPOC the global crypto module lists are not used at all
5465           in the crypto library.  Added support for using the constant
5466           algorithm list on EPOC.  Affected files are
5467           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
5468           silcpkcs.c.
5469
5470         * Fixed the handling of third parameter of KICKED notify, since
5471           it was mistakenly updated to SILC Protocol 1.0 even though it
5472           is to be included in 1.1.  Since it is not in 1.0 it is not
5473           mandatory, and this fix now handles it only if it is provided,
5474           and it is not error if it is not provided.  Affected file
5475           lib/silcclient/client_notify.c.
5476
5477 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5478
5479         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
5480           client.  Affected file irssi/src/silc/core/client_ops.c.
5481
5482         * Merged with Irssi 0.8.4 from irssi.org CVS.
5483
5484 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5485
5486         * Check for valid socket connection in client entries before
5487           sending any messages.  Fixes a crash, but doesn't fix some
5488           other underlaying bug that is lurking there.  Affected
5489           file silcd/packet_send.c.
5490
5491 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
5492
5493         * $usermode, $cumode and $cumode_space expandos shouldn't do
5494           anything with non-SILC server records. Affected file
5495           irssi/src/silc/core/silc-expandos.c
5496
5497 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5498
5499         * Fixed the silc_net_check_[host/local]_by_sock to support
5500           IPv6 bound sockets as well.  Now they can return IPv6 addresses
5501           as well.  Affected file lib/silcutil/silcnet.c.
5502
5503         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
5504           Affected lib/silcutil/unix/silcunixnet.c.
5505
5506         * Fixed ID rendering (at least on some platforms, not NetBSD)
5507           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
5508
5509 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5510
5511         * Added silc_hash_public_key and silc_hash_public_key_compare
5512           functions to be used with SilcHashTable.  They can be used to
5513           hash public keys and compare public keys in hash table.  Affected
5514           file lib/silcutil/silcutil.[ch].
5515
5516         * Added support for specifying multiple public keys for Client
5517           connection section in server configuration file.  This makes it
5518           possible to accept multiple public keys from same host, or to
5519           make a section that accepts any incoming host, and have the
5520           accepted public keys listed in the section.
5521
5522           Added functions silc_sever_[find/get]_public_key,  added the
5523           support for this actually to all connection sections but only
5524           the Client section is currently allowed to specify multiple
5525           public keys.
5526
5527           Affected files are silcd/server.c, server_internal.h,
5528           command.c, protocol.c, server_util.[ch], packet_receive.c.
5529
5530 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5531
5532         * Merged Irssi 0.8.2 from irssi.org CVS.
5533
5534 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5535
5536         * If silc_debug is TRUE, also output standard logging messages
5537           to stderr with the debug output.
5538
5539           Made silc_log_reset_all() flushing all channels before returning.
5540           Also fixed some documentation typos.
5541
5542           Affected files are lib/silcutil/silclog.[ch].
5543
5544 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5545
5546         * Fixed the server to check correctly the amount of connections
5547           from single host, by checking also the type of the connection.
5548           Fixed also the comparison of number of connections and number
5549           of allowed connections.  Affected files are silcd/server.c,
5550           server_util.[ch].
5551
5552 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5553
5554         * Fixed the USERS command reply to save the user's mode on the
5555           channel as well.  Fixed JOIN command reply to check whether a
5556           client is on channel already and not join it twice.  Affected
5557           file lib/silcclient/command_reply.c.
5558
5559         * Added new file silc-expandos.c into irssi/silc/core/ to return
5560           various stuff for various signal for the statusbar etc. updating.
5561           Now Irssi SILC client prints channel user modes etc. on the
5562           statusbar.
5563
5564         * The user mode (like server/router operator changes) is now shown
5565           on the Irssi SILC client's statusbar.  The affected files are
5566           irssi/src/silc/core/client_ops.c, silc-expandos.c.
5567
5568 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5569
5570         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
5571           to SILC_SCHEDULE_[UN]LOCK macros.
5572
5573         * Added more error printing to logs in server code.  Affected
5574           files silcd/server.c and silcd/protocol.c.
5575
5576         * Fixed -S option parsing in Irssi SILC Client.  Affected file
5577           irssi/src/silc/core/silc-core.c.
5578
5579         * Added silc_buffer_alloc_size function.  Affected file is
5580           lib/silcutil/silcbuffer.h.
5581
5582 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5583
5584         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
5585           constants.  Affected files in
5586           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
5587           silccipher.[ch].
5588
5589         * Changed the internal SFTP Memory FS table to const.  Affected
5590           file lib/silcsftp/sftp_fs_memory.c.
5591
5592 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5593
5594         * Fixed the buffer formatting and unformatting routines to
5595           check the size of 64 bits types with sizeof().  Affected
5596           file is lib/silcutil/silcbuffmt.c.
5597
5598 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5599
5600         * Removed 0.6.x backwards support.
5601
5602 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5603
5604         * Changed all integer type names:
5605           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
5606           to avoid collisions with other libraries using same type names
5607           as we did.
5608
5609 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5610
5611         * Added `prefer_ipv6' argument to the functions
5612           silc_net_gethostbyname[_async].  If it is TRUE it will return
5613           IPv6 address over IPv4.  If FALSE IPv4 address is returned
5614           even if IPv6 address was found.  Affected files
5615           lib/silcutil/silcnet.[ch].
5616
5617         * Added support silc_net_create_connection[_async] to fallback
5618           to IPv4 address if IPv6 address could not be used (like if
5619           it doesn't work on a specific system).  Affected file in
5620           lib/silcutil/unix/silcunixnet.c.
5621
5622 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5623
5624         * Added silc_schedule_reinit function to do the enlarging
5625           of the max tasks handling capabilities of the scheduler.
5626           Affected files lib/silcutil/silcschedule.[ch].
5627
5628 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5629
5630         * Added automatic extern "C" { ... } for C++ compilers so the
5631           application does not need to define them.  Affected file
5632           includes/silcincludes.h.
5633
5634         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
5635           old name went against naming convention.  Applications now
5636           include "silcclient.h" instead of "clientlibincludes.h".
5637           Removed includes/clientlibincludes.h, it is redundant now.
5638
5639         * Renamed includes/version.h to silcversion.h.
5640
5641         * Added really preliminary support for OS/2 into the util
5642           library.  Only thread & mutex API is implemented, others
5643           are still to be implemented.  Created the lib/silcutil/os2/
5644           directory.  Created also file includes/silcos2.h.
5645
5646 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5647
5648         * Added preliminary BeOS support into the util library.
5649           Created lib/silcutil/beos/, and implemented all the needed
5650           functions to support SILC on BeOS.  Created also file
5651           includes/silcbeos.h.
5652
5653 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
5654
5655         * Added proper initializations to silc's irssi code, so it's
5656           now possible to load it as module.  Affected files
5657           irssi/src/silc/core/silc-core.c,
5658           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
5659
5660 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5661
5662         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
5663           the SILC tree.
5664
5665         * Fixed the silcdoc document generator to correct generate
5666           docs from all kinds of filenames.  Affected files are
5667           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
5668
5669         * ROBOdoc documented lib/silcutil/silcmemory.h.
5670           Added also new function silc_memdup.
5671
5672         * Removed lib/silcutil/silcbufutil.h and moved those routines
5673           to the lib/silcutil/silcbuffer.h.
5674
5675 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5676
5677         * Added `user_count' to the SilcChannelEntry which now tells the
5678           number of users on the channel.  The user count is now saved
5679           in normal server of global channels as well.  Affected files
5680           silcd/server.c, idlist.h, packet_receive.c and command.c.
5681
5682         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
5683           include file utility functions.
5684
5685         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
5686           instead of calling directly OS routines.
5687
5688         * Fixed NICK change printing in Irssi SILC Client. Fixed
5689           KICKED notify printing in Irssi SILC Client.  Affected file
5690           irssi/src/silc/core/client_ops.c.
5691
5692         * Fixed a NICK change bug in client library, to not recreate the
5693           client_entry->channels hash table everytime nick is changed.
5694           Affected file lib/silcclient/client.c.
5695
5696 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5697
5698         * ROBOdoc documented the lib/silcske/silcske.h, and improved
5699           the SKE interface a bit.
5700
5701         * Fixed padding problem in PKCS#1. The padding was not actually
5702           random since the random number generator was used incorrectly.
5703           This security bug affects only when encrypting with PKCS#1, and
5704           it is not currently used at all in SILC. SILC only use signing
5705           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
5706
5707 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5708
5709         * Rewrote the notify handling in Irssi SILC client to not call
5710           the events as signals.  Fixes problems with Perl support.
5711           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5712
5713         * Send the auto-nicking NICK command in client library with
5714           little timeout after connecting.  The affected file is
5715           lib/silcclient/client.c.
5716
5717         * Added following new config file settings:
5718           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5719           key_exchange_timeout, conn_auth_timeout, connections_max,
5720           links_max.
5721
5722           Implemented all the new config settings handling in the server.
5723
5724           Optimized the use of SKE Mutual flag usage.  Use it only
5725           if connection authentication protocol is not based in public
5726           key authentication.
5727
5728           Renamed all SilcServerConfigSection* to SilcServerConfig*
5729           to have a bit shorter names.
5730
5731           Affected files silcd/serverconfig.[ch], server.[ch], and
5732           protocol.[ch].
5733
5734 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5735
5736         * Cleaned up the listening sockets code, preparing for the rehash
5737           support.  Affected file is silcd/server.c.
5738
5739         * Fixed some output messages.  Affected files are silcd/silcd.c,
5740           and silcd/server.c.
5741
5742 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5743
5744         * Create lib/doc/silcrng_intro.html document as introduction
5745           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5746
5747 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5748
5749         * Fixes to the silcd config template.  Affected file is
5750           doc/example_silcd.conf.in.
5751
5752         * Removed type casts from silc_calloc(), conforming to the
5753           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5754
5755         * Removed param_name member from client, server, and router
5756           section structs, now identifying the param directly.
5757
5758           Added CONFIG_FREE_AUTH macro in config file parsing.
5759
5760           Affected files are silcd/serverconfig.[ch].
5761
5762 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5763
5764         * Fixed command line parameter handling. All SILC initialization
5765           is now done in silc_core_init() which also fixes autoconnecting
5766           to servers.
5767
5768           Affected files irssi/src/silc/core/silc-core.c,
5769           irssi/src/fe-text/silc.c.
5770
5771 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5772
5773         * Added new configuration options and blocks:
5774           keepalive_secs, reconnect_count, reconnect_interval,
5775           reconnect_interval_max, reconnect_keep_trying and
5776           require_reverser_lookup.  Added ConnectionParam block, and
5777           implemented the connection parameters when connecting as
5778           initiator and when accepting connections as responder.
5779
5780           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5781           whether given configuration value has been given already.
5782
5783           Affected files silcd/serverconfig.[c], server.[c].
5784
5785         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5786           algorithm parts and created new file silcalgs.conf, that
5787           is now included from the example_silcd.conf.in.
5788
5789         * Optimized the silc_server_connect_to_router_second to take
5790           the connection configuration object from the SilcServerConnection
5791           object instead of finding it during the connecting phase.
5792           Added the configuration object to SilcServerConnection struct.
5793           Affected files silcd/server_internal.h, server.c.
5794
5795 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5796
5797         * Add the client on channel after it was resolved at the
5798           channel message receiving, and it was not already on the
5799           channel.  Affected file lib/silcclient/client_channel.c.
5800
5801 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5802
5803         * Fixed the public key authentication to allocate always the
5804           destination signature buffer instead of using static buffer.
5805           Affected file silcd/protocol.c.
5806
5807 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5808
5809         * Unified the serverconfig.[ch]'s helper function interface.
5810           Affected file silcd/serverconfig.[ch].
5811
5812         * Removed doc/example_silc.conf.in since it is redundant.
5813           The make install will now install irssi/silc.conf file.
5814
5815         * Added new Passphrase and Publickey authentication methods to
5816           config file, allowing both public key and passphrase based
5817           authentication to be set at the same time.
5818
5819           Added `prefer_passphrase_auth' setting in config file which
5820           can be used to set to prefer passwd auth if both passwd and
5821           public key is set.  If not set, public key is preferred.
5822           This has effect only when being initiator (responder will try
5823           both anyway).
5824
5825           Added support for authentication with passphrase and public key
5826           at the same time.  The passphrase is tried first always since
5827           it is faster to check.
5828
5829           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5830
5831 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5832
5833         * Merged the new SILC Config library, with the server parsing
5834           support.  Read the header file silcconfig.h or the toolkit
5835           documentation for the news.  Affected files are
5836           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5837           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5838           silcd/protocol.c silcd/server.c silcd/server_backup.c
5839           silcd/serverconfig.[ch] silcd/silcd.c.
5840
5841         * Fixed some silclog documentation.  Affected file is
5842           lib/silcutil/silclog.h.
5843
5844 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5845
5846         * The silc_cipher_register, silc_hash_register and
5847           silc_hmac_register now checks if the object to be registered
5848           is registered already.  Affected files are
5849           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5850
5851 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5852
5853         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5854
5855 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5856
5857         * Allow zero length channel messages inside the Channel Message
5858           Payload.  Affected file lib/silccore/silcchannel.c.
5859
5860         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5861           as header filenames.
5862
5863         * Removed lib/silcclient/README and created HTML file
5864           lib/silcclient/silcclient_using.html, which is now included
5865           as part of Toolkit documentation.
5866
5867 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5868
5869         * Fixed CUMODE_CHANGE notify handling to change the mode of
5870           correct client.  Affected file lib/silcclient/client_notify.c.
5871
5872         * Make silc_rng_alloc fail if it cannot allocate the sha1
5873           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5874
5875 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5876
5877         * Fixed the file transfer's key agreement payload to include
5878           zero port also if the hostname is NULL because it could not
5879           be bound.
5880
5881           Call file transfer monitor callback now also if error occurs
5882           during key agreement protocol.
5883
5884           Changed the silc_client_file_send interface to return the
5885           SilcClientFileError instead of session id.  The session ID
5886           is returned into pointer provided as argument.
5887
5888           Check that the file exists locally before sending the
5889           file transfer request at all.
5890
5891           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5892
5893         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5894           error than can occur while key agreement protocol.  Affected
5895           file lib/silcclient/silcapi.h.
5896
5897         * Fixed the event_mode CMODE handler to not crash when mode
5898           is changed and +k mode is set in the channel.  Affected file
5899           irssi/src/silc/core/silc-channels.c.
5900
5901         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5902           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5903           file lib/silcutil/silclog.c.
5904
5905         * Fixed the channel message payload decryption in the function
5906           silc_channel_message_payload_decrypt to not modify the original
5907           buffer before it is verified that the message decrypted
5908           correctly.  Otherwise, next time it is called with correct
5909           channel key it won't encrypt since the payload is corrupted.
5910           Affected file lib/silccore/silcchannel.c.
5911
5912 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5913
5914         * Do not constantly resize the window.  A fix patch by cras.
5915           Affected file irssi/src/fe-text/screen.c.
5916
5917 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5918
5919         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5920           Affected file lib/silcutil/silcnet.c.
5921
5922 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5923
5924         * Fixed a bug in hash table internal routine for traversing
5925           the table with foreach callback.  The current entry may
5926           become invalid in the callback but it was referenced after
5927           the callback returned.
5928
5929           Do not allow auto rehashing of hash table during the
5930           silc_hash_table_foreach operation, for same reasons as it is
5931           not allowed for SilcHashTableList.  Affected files are
5932           lib/silcutil/silchashtable.[ch].
5933
5934 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5935
5936         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5937           Win32 DLL.  extern's in header files are now declared with
5938           DLLAPI.
5939
5940 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5941
5942         * Fixed private message handling.  It used some old code that
5943           caused the client to crash.  Affecte file is
5944           lib/silcclient/client_prvmsg.c.
5945
5946 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5947
5948         * Added function silc_client_add_channel,
5949           silc_client_replace_channel_id, and removed functions
5950           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5951           from client library.
5952
5953         * Added cross reference of the joined channels to the
5954           SilcClientEntry, and changed the SilcChannelEntry's
5955           users list to SilcHashTable.  The affected files are
5956           lib/silcclient/idlist.[ch].
5957
5958         * Fixed a bug in hash table tarversing.  While the hash table
5959           is traversed with SilcHashTableList the table must not be
5960           rehashed.  It is now guaranteed that auto rehashable tables
5961           are not rehashed while tarversing the list.  Also defined that
5962           silc_hash_table_rehash must not be called while tarversing
5963           the table.  Added function silc_hash_table_list_reset that must
5964           be called after the tarversing is over.  The affected files are
5965           lib/silcutil/silchashtable.[ch].
5966
5967         * Changed all hash table traversing to call the new
5968           silc_hash_table_list_reset in server and in client library.
5969
5970         * Added function silc_client_on_channel to return the
5971           SilcChannelUser entry if the specified client entry is joined
5972           on the specified channel.  This is exported to application as
5973           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5974
5975 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5976
5977         * Fixed founder regaining problem with JOIN command on normal
5978           server.  The notify for mode change must be sent always and
5979           not only if !cmd->pending.  Affected file silcd/command.c.
5980
5981         * Fixed the WHOWAS command's reply sending to support the
5982           lists correctly.  Affected file silcd/command.c.
5983
5984 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5985
5986         * When sending JOIN command to router for processing the
5987           sender's old command identifier was not saved back to the
5988           sender's command context, fixed now.  The affected file is
5989           silcd/command.c.
5990
5991         * Create the key in JOIN command of the router did not return
5992           the channel key, added check for this.  Affected file is
5993           silcd/command.c.
5994
5995         * Fixed a channel ID update bug in JOIN command reply.  Do
5996           not directly upgrade the ID but call the function
5997           silc_idlist_replace_channel_id if the ID was changed.
5998           Affected file silcd/command_reply.c.
5999
6000         * Fixed memory leaks from command calling if it would fail.
6001           Affected file silcd/command.c.
6002
6003 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6004
6005         * Applied patches from cras:
6006
6007           Memory leak fixes around libaries, irssi window resize fix,
6008           new silclist.h and silcdlist.h, all extern inline changed to
6009           static inline.
6010
6011         * Removed dotconf from lib/dotconf, not needed anymore.
6012
6013         * Removed TRQ from lib/trq, not needed anymore.
6014
6015         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
6016           with server connections.  Later this will be configurable
6017           in config file after new config file is done.  Affected file
6018           silcd/server.c.
6019
6020 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
6021
6022         * Fixed a crash in server related to channel announcements.
6023           Affected file silcd/server.c.
6024
6025 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6026
6027         * Fixed memory leaks in silc_server_create_new_channel*
6028           functions.  Affected file silcd/server.c.
6029
6030         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
6031           which ID was changed.  This way the router will send the
6032           user list for the channel again, and server won't be in
6033           desync in some rare circumstances.  Affected file is
6034           silcd/packet_receive.c.
6035
6036 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6037
6038         * Check for NULL socket pointer in the function
6039           silc_server_packet_send_to_channel_real.  Affected file
6040           silcd/packet_send.c.
6041
6042         * Fixed the BAN notify handling to correctly remove ban
6043           list.  Affected file silcd/packet_receive.c.
6044
6045 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6046
6047         * Fixed some header addition to Toolkit distribution in
6048           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
6049
6050         * Added lib/silcclient/client_ops_example.h as an template
6051           file for application programmers to quickly start using
6052           the SilcClientOperation functions in their application.
6053           Updated the lib/silcclient/README as well to tell about this
6054           nice file made available.
6055
6056 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6057
6058         * Call silc_server_remove_from_channels when removing client
6059           entry when NO_SUCH_CLIENT_ID was received.  Affected file
6060           is silcd/command_reply.c.
6061
6062 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6063
6064         * Added server & router operator statistics updating.  Affected
6065           file silcd/packet_receive.c and silcd/command.c.
6066
6067         * Fixed the SERVER_SIGNOFF notify handling on normal server
6068           not to save the history information for clients.  Same was
6069           fixed earlier in remove_clients_by_server function, but not
6070           here.  Affected file silcd/packet_receive.c.
6071
6072         * Raised the default connection-retry count from 4 to 7 in
6073           server.  Affected file silcd/server.h.
6074
6075         * Cancel any possible reconnect timeouts when we start the
6076           key exchange.  Affected file silcd/server.c.
6077
6078         * Do not reconnect on connection failure when SCONNECT was
6079           given.  Affected files silcd/server.[ch].
6080
6081 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6082
6083         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
6084
6085         * Fixed the NICK command to always give the unformatted
6086           nickname to the one giving the NICK command.  If unformatted
6087           nickname is cached already it will be formatted and the
6088           local entry will always get the unformatted nickname.
6089           Affected file lib/silcclient/idlist.c.
6090
6091         * Fixed some double frees from client library commands.
6092           Affected file is lib/silcclient/command.c.
6093
6094         * Fixed CUMODE command in server to assure that no one can
6095           change founder's mode than the founder itself, there was a
6096           little bug.  Affected file silcd/command.c.
6097
6098 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6099
6100         * Removed the SilcClientCommandDestructor from the client
6101           libary, it is not needed anymore.  Affected files are
6102           lib/silcclient/silcapi.h, command[_reply].[ch],
6103           client_notify, idlist.c.
6104
6105         * Fixed GETKEY command to first resolve client, and then
6106           resolve the server only if the client was not found, instead
6107           of resolving both at the same time.  Affected file is
6108           lib/silcclient/command.c.
6109
6110         * Added silc_client_start_key_exchange_cb and lookup the
6111           remote hostname and IP address before starting the key
6112           exchange with server.  The affected file is
6113           lib/silcclient/client.c.
6114
6115         * The server's public key is now saved using the IP address
6116           of the server and not the servername for the filename.
6117           The hostname public key filename is checked as an fall back
6118           method if the IP address based filename is not found.
6119
6120           Fixed the GETKEY command to save the fetched server key
6121           in correct filename.
6122
6123           Print the remote server's hostname now when new key is
6124           received during connection process.  Affected file is
6125           irssi/src/silc/core/client_ops.c.
6126
6127         * Return always our own public key to the client if it asks
6128           for it with GETKEY command.  Affected file silcd/command.c.
6129
6130         * Removed the use_auto_addr variable from default config
6131           file since it was in wrong section.  Affected file is
6132           irssi/src/config.
6133
6134         * Fixed TOPIC_CHANGE notification to not route it when it
6135           was sent using silc_server_send_notify_to_channel function.
6136           Affected file silcd/command.c.
6137
6138         * Fixed silc_server_send_notify_kicked to send the kicker's
6139           Client ID also, it was missing.  Affected files are
6140           silcd/command.c, silcd/packet_send.[ch].
6141
6142 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6143
6144         * Do not save client history information in SERVER_SIGNOFF.
6145           Fixes the bug in normal server that it does not detect
6146           the client becoming valid after the server becomes back
6147           online.  Affected file silcd/server_util.c.
6148
6149         * Added `sock_error' field  into the SilcSocketConnection
6150           context.  When error occurs during socket operation (read
6151           or write) the error is saved.  Added also new function
6152           silc_socket_get_error to return human readable socket error
6153           message.  Affected files are lib/silcutil/silcsockconn.[ch],
6154           lib/silcutil/unix/silcunixsockconn.c, and
6155           lib/silcutil/win32/silcwin32sockconn.c.
6156
6157         * The server now prints the socket error message in the
6158           signoff for client.  Affected file silcd/server.c.
6159
6160         * Fixed the `created' channel information sending from router
6161           to server in JOIN command.  Checks now whether the channel
6162           really was created or not and set it according that.
6163
6164           Fixed the JOIN command to use the client entry's current
6165           ID during the joining procedure instead of the one it sent
6166           in the command (it is checked though), since it can change
6167           between the packet processing and command processing, and
6168           would just case unnecessary pain in the client end.  Affected
6169           file silcd/command.c.
6170
6171         * Fixed a channel key payload sending to use correct channel
6172           ID when the server was forced to change the channel's ID by
6173           router.  Router sent the key payload with the old Channel ID.
6174           Affected file silcd/packet_receive.c.
6175
6176 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6177
6178         * Call silc_server_save_channel_key only if the key payload
6179           was provided in the JOIN command's command reply.  Affected
6180           file silcd/command_reply.c.
6181
6182 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6183
6184         * Fixed silc_mp_sizeinbase to return the value correctly with
6185           MPI.  Affected file lib/silcmath/mp_mpi.c.
6186
6187         * Fixed the stop_server signal to correctly stop the scheduler
6188           and gracefully stop the server when SIGTERM or SIGINT signals
6189           are received.  Affected file silcd/silcd.c.
6190
6191 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
6192
6193         * Simple handling of TERM and HUP signals. Also added some log
6194           flushing call around.  Affected file is
6195           silcd/silcd.c.
6196
6197         * Fixed small bugs in silclog.c. Now buffering output will take
6198           effect after 10 seconds since startup: This will ensure that
6199           no important startup messages are lost. Also output redirection
6200           will preserve original format ([Date] [Type] message).
6201           Affected file is lib/silcutil/silclog.c.
6202
6203         * Added two options to the config file, in the logging section:
6204           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
6205           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
6206
6207 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6208
6209         * Do not print the warning about log files not being initialized
6210           more than once to avoid excess logging.  Affected file is
6211           lib/silcutil/silclog.c.
6212
6213         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
6214           the SIM copying in make install in Makefile.am.pre.
6215
6216 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6217
6218         * Rewritten silclog APIs. Globally interesting changes follows:
6219           silc_log_set_files() changed to silc_log_set_file().
6220           silc_log_set_callbacks() changed to silc_log_set_callback().
6221           ROBOdoc documented silclog header file.
6222           SilcLogCb now returns bool to wether inihibit the default
6223           handler or not (to keep the old behaviour return always TRUE).
6224           The new APIs should also fix the problem of the
6225           silcd_error.log file that was written in the current directory.
6226
6227           New features:
6228           Log files streams will remain opened after silc_log_set_file()
6229           call, means less CPU usage notably on high traffic servers.
6230           File streams are now full buffered, and flushed to the disk
6231           every 5 minutes, lesses HD activity and CPU usage.
6232           Messages can be redirected, allowing admins to configure
6233           one single logfile for all server messages.
6234           the silc_log_quick global variable to activate fast-logging.
6235           Affected files lib/silcutil/silclog.[ch]
6236
6237         * Changed some code to conform new silclog APIs. Affected
6238           files are doc/example_silcd.conf.in, silcd/server.c
6239           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
6240           silcd/silcd.c.
6241
6242         * Fixed a memory leak that could occur in some situations.
6243           Affected file silcd/serverconfig.c.
6244
6245 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6246
6247         * Added the silc_client_del_client to remove the client from
6248           all channels as well.  Affected file lib/silcclient/idlist.c.
6249
6250         * Fixed the client library to correctly remove the client
6251           from all channels when the client entry is being destroyed.
6252           Affected file lib/silcclient/client_notify.c, command.c.
6253
6254         * Added auto-nicking support to the client library.  If the
6255           applicatio now sets client->nickname it will be sent to the
6256           server after connecting by the library.  This way for example
6257           SILCNICK (or IRCNICK) environment variables will have effect
6258           and always change the nickname automatically to whatever
6259           it is wanted.  Affected file lib/silcclient/client.[ch].
6260
6261         * Renamed silc_server_command_bad_chars to the
6262           silc_server_name_bad_chars and moved it to the
6263           silcd/server_util.[ch].  Added also new function
6264           silc_server_name_modify_bad to return nickname that
6265           includes bad characters as new nickname without those
6266           bad characters.  This check and modify is now used in
6267           silc_server_new_client when the username is initially set
6268           as nickname, so it must be checked to be valid nickname.
6269           Affected file silcd/packet_receive.c.
6270
6271         * The nickname length is now taken from the packet for real
6272           and not trusted to strlen() since it clearly can return
6273           wrong length for nickname including bad characters.  This
6274           also applies to channel names.  Affected file silcd/command.c.
6275
6276         * Removed the lib/silcsilm/modules directory.  Modules are now
6277           compiled into the lib/silcsim.  Fixed the copying of the
6278           modules to follow symbolic links in Makefile.am.pre.
6279
6280 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6281
6282         * Fixed silc_string_regexify list creation.  Fixes bugs with
6283           BAN and INVITE commands in server.  The affected file is
6284           lib/silcutil/unix/silcunixutil.c.
6285
6286 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6287
6288         * Removed the command destructor entirely from the server's
6289           command and command reply routines.  It is not needed, and
6290           its usage was buggy and caused crashes.  Affected files are
6291           silcd/command[_reply].[ch].
6292
6293 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6294
6295         * Cancel protocol and NULL sock->protocol if timeout
6296           occurred during protocol.  Affected file silcd/server.c.
6297
6298         * Cancel protocol timeouts always before calling the final
6299           callback, to assure that after final callback is called
6300           no other state will be called for the protocol anymore.
6301           Affected file silcd/protocol.c.
6302
6303         * Print error log if incoming connection configuration could
6304           not be found.  Affected file silcd/server.c.
6305
6306         * Fixed JOIN command to correctly save the founder mode
6307           to the client on normal SILC server, when the channel
6308           was created by the router.  Affected file silcd/command.c.
6309
6310         * Fixed LIST command (hopefully) to send correct reply
6311           packets.  Affected file silcd/command.c.
6312
6313 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6314
6315         * The silc_packet_receive_process now returns FALSE if the
6316           read data was invalid packet, and TRUE if it was ok.
6317
6318           The server now checks that if unauthenticated connection
6319           sends data and its processing fails the server will close
6320           the connection since it could be a malicious flooder.
6321
6322           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
6323
6324 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6325
6326         * Make sure the warning about error opening a log file is
6327           printed only once and not everytime it fails (produces
6328           too much useless log).  Affected file lib/silcutil/silclog.c.
6329
6330 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6331
6332         * Made the silc_server_daemonise() function more readable.
6333           Affected file silcd/server.c.
6334
6335         * Pid file is now optional, the user may comment it out from
6336           the config file. Removed define SILC_SERVER_PID_FILE, we
6337           don't need a default any longer.  Affected file
6338           configure.in.pre, lib/Makefile.am.pre.
6339
6340         * Make some use of the pid file. The server now dies at startup
6341           if it detects a valid pid file on his path. The server would
6342           die anyway in this circumstance, because of the bind() failure.
6343           Affected file silcd/silcd.c.
6344
6345         * No longer compiling lib/dotconf.
6346
6347 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6348
6349         * Fixed JOIN command parsing not to crash.  Affected file
6350           lib/silcclient/command.c.
6351
6352         * Fied the NICK_CHANGE notify to add the new client entry
6353           even it is resolved.  This removes an <[unknown]> nick
6354           thingy bug in the client.  Affected file is
6355           lib/silcclient/client_notify.c.
6356
6357         * Do not try to allocate 0 bytes (efence does not like it)
6358           in lib/silccore/silccomand.c when encoding payload.
6359
6360         * Do not take IRCNICK as nickname in Irssi SILC client since
6361           it is not possible to set nickname before hand connecting
6362           the server (TODO has an entry about adding auto-nicking
6363           support).
6364
6365         * Changed the silc_server_command_pending to check whether
6366           there already exists an pending entry with the specified
6367           command, command identifier and pending callback.  This is
6368           to fix IDENTIFY and WHOIS related crashes that may register
6369           multiple pending commands with same identifier.  Affected
6370           file silcd/command.c.
6371
6372         * Fixed the server to reconnect to the router even if it
6373           was already reconnecting and EOF was received.  This to
6374           fix a possibility that the server wouldn't ever try to
6375           auto-reconnect to the router.  Affected file silcd/server.c.
6376
6377 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6378
6379         * Fixed the server's password authentication to use the
6380           length of the locally saved password, and not the one
6381           sent in the packet.  Affected file silcd/protocol.c.
6382
6383         * Fixed same password authentication problem in the
6384           Authentication Payload handling routines in
6385           lib/silccore/silcauth.c.
6386
6387         * Yet another password authentication problem fixed with
6388           channel password handling in silcd/command.c.
6389
6390 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6391
6392         * If first character of string in silc_parse_userfqdn is '@'
6393           then do not parse it.  Affected file is
6394           lib/silcutil/silcutil.c.
6395
6396 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6397
6398         * Fixed minor bug in IDENTIFY command reply sending, which
6399           caused various weird problems during JOIN when it was
6400           resolving names for users.  Affected file silcd/command.c.
6401
6402 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6403
6404         * Fixed the IDENTIFY command reply sending to chech better valid
6405           clients.  It was possible to send incomplete list of replies.
6406           Affected file silcd/command.c.
6407
6408 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6409
6410         * Added silc_client_command[s]_[un]register functions now to
6411           dynamically register the commands in client library.  Removed
6412           the static table of commands.  This allows the client library
6413           to call commands without causing the application to know about
6414           what commands library has called.
6415
6416           Removed the INFO command reply kludge to detect when the command
6417           was called by library.  Now library use its own command reply
6418           function for INFO command.
6419
6420           Added function silc_client_command_call to call a command.
6421           Application can use it to call command, not access the structure
6422           directly.
6423
6424           Now all commands that are sent by the client library (not
6425           explicitly sent by application) use own command reply functions.
6426
6427           Affected files around lib/silcclient/ and in
6428           irssi/src/silc/core/.
6429
6430         * Fixed the WHOIS command reply sending to chech better valid
6431           clients.  It was possible to send incomplete list of replies.
6432
6433           Fixed the WHOIS and IDENTIFY to send the request to router
6434           if normal server did not do it and did not find any results.
6435
6436           Affected file silcd/command.c.
6437
6438 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6439
6440         * Moved the internal data from SilcClient context into its
6441           own file, not accesible to application.  Affected files
6442           lib/silcclient/client.h and lib/silcclient/client_internal.h,
6443           and other files in client library.
6444
6445 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6446
6447         * Added doc/examples installation target in Makefile.am.pre.
6448           A patch by salo.
6449
6450 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6451
6452         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
6453           commands the found client entry will be removed from the
6454           cache, after notifying application about the error.  Affected
6455           file lib/silcclient/command_reply.c.
6456
6457         * Changed the /MSG to check for exact nickname user gave, and
6458           not let `nick' match `nick@host' if it is only one found.  Now,
6459           user must type the exact nickname (like nick@host2) even if
6460           there are no more than one same nicks found.  This is to avoid
6461           a possibility of sending nickname to wrong nickname since
6462           `nick' could match `nick@host'.  Affected file is
6463           irssi/src/core/silc-servers.c.
6464
6465 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6466
6467         * Do not print "you are now server operator" or similar when
6468           giving /away command.  Affected files are
6469           irssi/src/silc/core/client_ops.c, silc-servers.h.
6470
6471         * Made the silc_server_command_pending_error_check to send
6472           the same command reply payload it received back to the
6473           original sender of the command.  This way all arguments
6474           that was received by the server will be received by the
6475           client too.  Affected file silcd/command.c.
6476
6477         * Added the silc_idcache_add to return the created cache entry
6478           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
6479
6480         * Add global clients to expire if they are not on any channel.
6481           This is because normal server will never know if they signoff
6482           if they are not on any channel.  The cache expiry will take
6483           case of these entries.  This is done by normal servers only.
6484           The affected files are silcd/command_reply.c,
6485           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
6486
6487         * If server receives invalid ID notification for WHOIS or
6488           IDENTIFY and the ID exists in the lists, it is removed.
6489           Affected file silcd/command_reply.c.
6490
6491         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
6492           in client then client entry that it matches is searched and
6493           the nickname is printed on the screen for user.  Affected
6494           file irssi/src/silc/core/client_ops.c.
6495
6496 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6497
6498         * Use cache entry expire time in the LIST command reply to
6499           purge old entries from the cache after the LIST command
6500           reply has been received.  This way we don't have non-existent
6501           entries in the cache for too long.  Affected file is
6502           silcd/command_reply.c.
6503
6504 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6505
6506         * If we are normal server, and we've not resolved client info
6507           in WHOIS or IDENTIFY from router, and it is global client,
6508           we'll check whether it is on some channel.  If it is not
6509           then we cannot be sure about its validity and will resolve it
6510           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
6511           file silcd/command.c.
6512
6513         * Search channel by name (if possible) rather than by ID
6514           in IDENTIFY command's command reply.  Affected file is
6515           silcd/command_reply.c.
6516
6517 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6518
6519         * Distribute to the channel passphrase in CMODE_CHANGE notify.
6520           Updated specs and implemented it.  Affected file silcd/command.c,
6521           silcd/packet_send.c and silcd/packet_receive.c.
6522
6523         * Implemented the <founder auth> payload handling in the JOIN
6524           command.  If provided all conditions for channel joining
6525           except requirement to provide correct passphrase can be
6526           overrided by the channel founder.  Updated the protocol specs.
6527           Affected file silcd/command.c.
6528
6529           Added support for founder auth in JOIN command in client
6530           library.  Fixed the parsing of the JOIN command now to support
6531           all options as they should be.  The affected file is
6532           lib/silcclient/command.c.
6533
6534         * Optimized the WHOIS and IDENTIFY commands to send the request
6535           to router only if it includes nicknames or other names.  If
6536           they include only IDs then check the local cache first before
6537           routing.  Affected file is silcd/command.c.
6538
6539         * Added channels topic announcements.  Affected file is
6540           silcd/packet_receive.c and silcd/server.c.
6541
6542         * Fixed the silc_server_send_notify_topic_set to really destine
6543           the packet to channel.  Affected file silcd/packet_send.c.
6544
6545         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
6546           library.  Affected file lib/silcclient/client_notify.c.
6547
6548         * Added UMODE announcements.  Affected file silcd/server.c.
6549
6550 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6551
6552         * Memory leak fixes in:
6553
6554           lib/silcutil/silcsockconn.c
6555           lib/silcske/silcske.c
6556           lib/silcske/groups.c
6557           lib/silccrypt/rsa.c
6558           lib/silccrypt/silcpkcs.c
6559           lib/silccore/silccommand.c
6560           lib/silccore/silcidcache.c
6561           silcd/idlist.c
6562           silcd/packet_send.c
6563           silcd/command.c
6564
6565         * ROBOdoc documented the lib/silcske/groups.h file and a
6566           bit changed the interface for better.
6567
6568 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6569
6570         * Update the client entry context in the ID cache after
6571           nick change.  Affected file lib/silcclient/command.c.
6572           Fixes the CUMODE command when regaining founder privileges,
6573           and a little WHOIS problem.
6574
6575         * Fixed silc_net_gethostbyname to correctly call the
6576           inet_ntop.  Affected file lib/silcutil/silcnet.c.
6577
6578 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6579
6580         * Added IPv6 support checking to the configure.in.pre, added
6581           also --enable-ipv6 option to override the check.  Affected
6582           file configure.in.pre.
6583
6584         * The silc_thread_create now calls the start function
6585           directly if threads support is not compiled in.  Removes
6586           ugly #ifdef's from generic code.  Affected files are
6587           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
6588
6589         * Added silc_net_gethostby[name/addr]_async to asynchronously
6590           resolve.  Affected files are lib/silcutil/silcnet.[ch].
6591
6592         * Added support for rendering IPv6 based server, client and
6593           channel IDs.  Affected file lib/silcutil/silcutil.c.
6594
6595         * Added support for creating IPv6 based server IDs.  Affected
6596           file is silcd/serverid.c.
6597
6598 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6599
6600         * Added silc_net_gethostby[addr/name] into the
6601           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
6602           routines.  Added silc_net_is_ip[4/6].  Affected file is
6603           lib/silcutil/unix/silcunixnet.c.  All routines that take
6604           address as argument now supports both IPv4 and IPv6 addresses.
6605
6606 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6607
6608         * Fixed LIST command reply sending in server.  Affected file
6609           silcd/command.c.
6610
6611         * Server now sends the kicker's client ID in the KICK notify
6612           to the kicked client.  Affected file silcd/command.c.
6613
6614         * The client library now parses the kickers client ID and
6615           UI displays it.  Affected files lib/silcclient/client_notify.c
6616           and irssi/src/silc/core/silc-channels.c, module-formats.c.
6617
6618         * Made all payload parsing function prototypes consistent.
6619           They all take now const unsigned char * and uint32 pair as
6620           the payload data instead of SilcBuffer.  Changes all around
6621           the source tree.  Other unsigned char* -> const unsigned char*
6622           changes around the tree as well.
6623
6624         * Optimized SFTP client and server packet sending not to
6625           allocate new buffer for each packet but to recycle the
6626           first allocated buffer.  Affected files are
6627           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
6628
6629         * Optimized the SFTP client to use SilcList instead of
6630           SilcDList for requests, because it is faster.  Affected file
6631           is lib/silcsftp/sftp_client.c.
6632
6633         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
6634           into lib/silccore/silcid.[ch].
6635
6636           Renamed silcpayload.[ch] into silcargument.[ch].
6637
6638 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6639
6640         * If client entry is deleted with active key agreement
6641           session, abort the session.
6642
6643           The silc_client_abort_key_agreement now calls the completion
6644           callback with new SILC_KEY_AGREEMENT_ABORTED status.
6645
6646           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
6647           idlist.c.
6648
6649 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6650
6651         * Don't use __restrict in older GCC's.  Affected file is
6652           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
6653
6654         * silc_net_localhost now attempts to reverse lookup the
6655           IP/hostname.  Affected file lib/silcutil/silcnet.c.
6656
6657         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
6658           command.  It can be used to gain founder privileges at
6659           the same time when joining the channel.
6660
6661           Defined that the SILC_NOTIFY_TYPE_KICKED send the
6662           kicker's client ID as well.  Updated protocol specs.
6663
6664           Defined that the server must send SILC_COMMAND_IDENTIFY
6665           command reply with error status to client who sent
6666           private message with invalid client ID.
6667
6668           Updated the protocol specification.
6669
6670         * Added silc_server_send_command_reply to send any
6671           command reply.  Affected file silcd/packet_send.[ch].
6672
6673         * Added silc_id_payload_encode_data to encode ID payload
6674           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
6675
6676         * The server now send IDENTIFY command reply with error
6677           status if client ID in private message is invalid.  Affected
6678           file silcd/packet_receive.c.
6679
6680         * Save the server key file with server's IP address in
6681           the filename instead of hostname.  The affected file is
6682           irssi/src/silc/core/client_ops.c.
6683
6684 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6685
6686         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
6687           A patch by Sunfall.
6688
6689         * Added libtool support for compiling shared objects in
6690           lib/silcsim.  Affected file configure.in.pre and
6691           lib/silcsim/Makefile.am.  Original patch by cras.
6692
6693 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6694
6695         * Pid file configuration, and server's config file fixes
6696           patch by toma.  Updated CREDITS file.
6697
6698 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6699
6700         * Fixed silc_client_channel_message to not try to decrypt
6701           the message twice if it resolved the destination client
6702           information.  This could cause of dropping one channel
6703           message.  Affected file lib/silcclient/client_channel.c.
6704
6705 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6706
6707         * Added silc_client_run_one into lib/silcclient/silcapi.h and
6708           lib/silcclient/client.c. This function is used when the SILC
6709           Client is run under some other scheduler, or event loop or
6710           main loop.  On GUI applications, for example this may be
6711           desired to used to run the client under the GUI application's
6712           main loop.  Typically the GUI application would register an
6713           idle task that calls this function multiple times in a second
6714           to quickly process the SILC specific data.
6715
6716 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6717
6718         * Fixed silc_server_drop() for dropping the supplementary
6719           groups as well, this could cause a security hole on some
6720           systems.
6721
6722 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6723
6724         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6725           johnny.
6726
6727         * Write PID file after dropping privileges.  Added -F option
6728           to run server on foreground.  A patch by debolaz.
6729           Affected files silcd/server.c, silcd/silcd.c.
6730
6731         * Fixed MOTD to return the MOTD file server name.  Affected
6732           file silcd/command.c.
6733
6734         * Added INFO command reply handling to the Irssi SILC Client.
6735           Affected file irssi/src/silc/core/client_ops.c.
6736
6737 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6738
6739         * Fixed the silc_idcache_list_* routines to really support
6740           the dynamic list.  Fixes a crash.  Affected file is
6741           lib/silccore/silcidcache.c.
6742
6743         * Fixed the LIST command reply to really call LIST command's
6744           pending callbacks.  Affected file silcd/command_reply.c.
6745
6746 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6747
6748         * Update conn->local_entry->nickname after giving NICK
6749           command.  Affected file lib/silcclient/command.c.
6750
6751 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6752
6753         * Added the [pid] option to the silcd configuration file
6754
6755           Affected files: serverconfig.[ch] and silcd.c
6756
6757 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6758
6759         * Save fingerprint in WHOIS command reply in server.
6760           Affected file silcd/command_reply.c.
6761
6762         * Fixed NICK commands pending callback registration.
6763           Affected file lib/silcclient/command.c.
6764
6765 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6766
6767         * Use ++server->cmd_ident when sending commands in server,
6768           instead of random number.  Affected file silcd/command.c.
6769
6770         * Fixed GETKEY command reply to call actually GETKEY pending
6771           command callbacks.  Affected file silcd/command_reply.c.
6772
6773         * A bit stricter check for nicknames.  Check for same nickname
6774           in NICK command also.  Affected file silcd/command.c.
6775
6776         * Do not call INFO command everytime client ID changes, only
6777           during first connecting.  Affected file lib/silcclient/client.c.
6778
6779         * Set the new nickname only after successful command reply for
6780           NICK command is returned by server.  Affected file
6781           lib/silcclient/command.c.
6782
6783         * Remove nicknames from nicklist during server_signoff notify.
6784           Should fix /NAMES bit more.  The affected file is
6785           irssi/src/silc/core/silc-channels.c.
6786
6787         * Added `fingerprint' field to the SilcIDListData in the
6788           silcd/idlist.h to hold the fingerprint of the client's
6789           public key.
6790
6791           Send the fingerprint of the client's public key in WHOIS
6792           command reply.
6793
6794           Affected files silcd/command.c, and silcd/idlist.[ch].
6795
6796         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6797           create fingerprint from given data.
6798
6799         * Show the fingerprint of the client's public key in WHOIS.
6800           Affected files irssi/src/module-formats.[ch] and
6801           irssi/src/silc/core/client_ops.c.
6802
6803         * Format the multiple same nicknames also during JOIN and
6804           NICK_CHANGE notifys.  Affected file is
6805           lib/silcclient/client_notify.c.
6806
6807         * Do not print error on screen for invalid private message
6808           payload since it can come if someone is sending private
6809           messages with wrong key.  Affected file
6810           lib/silccore/silcprivate.c.
6811
6812         * Fixed multiple concurrent /PING crash.  Affected file
6813           lib/silcclient/command.c.
6814
6815         * Changed the wrong ID encoding.  All IP addresses must be
6816           in MSB first order in encoded format.  They were encoded
6817           wrong and was in LSB format.  Affected files are
6818           silcd/serverid.c, lib/silcutil/silcutil.c.
6819
6820         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6821
6822         * Call the `connect' client operation through the scheduler
6823           in case of error.  Affected file lib/silcclient/client.c.
6824
6825         * Call the `failure' client operation even if the error
6826           occurred locally during a protocol.  Affected file is
6827           lib/silcclient/protocol.c.
6828
6829         * Added support of sending LIST command to router from normal
6830           server.  This way normal server can get list of all channels
6831           in the network too.  Fixed the channel list sending in the
6832           server too.  Affected files are silcd/command.c, and
6833           silcd/command_reply.[ch].
6834
6835         * Added silc_server_update_channels_by_server and
6836           silc_server_remove_channels_by_server.  They are used during
6837           disconnection of primary router and in backup router protocol.
6838           Affected file silcd/server_util.[ch], silcd/server.c and
6839           silcd/server_backup.c.
6840
6841         * Fixed channel adding to global list in IDENTIFY command
6842           reply in server.  Affected file silcd/command_reply.c.
6843
6844 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6845
6846         * If the incoming packet type is REKEY or REKEY_DONE process
6847           that packet always synchronously.  Fixes yet another MAC
6848           failed error on slow (dialup) connections.  Affected file
6849           lib/silcclient/client.c and silcd/server.c.
6850
6851 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6852
6853         * Call check_version SKE callback for initiator too.  Affected
6854           file lib/silcske/silcske.c.
6855
6856         * Implemented fix for security hole found in the SKE that was
6857           fixed in the specification few days back; the initiator's
6858           public key is now added to the HASH value computation.
6859           Added backwards support for the old way of doing it too, for
6860           old clients and old servers.  Affected file is
6861           lib/silcske/silcske.c.
6862
6863         * Enabled mutual authentication by default in SKE.  If initiator
6864           is not providing mutual authentication the responder will
6865           force it.  This will provide the proof of posession of the
6866           private key for responder.  The affected files are
6867           lib/silcclient/protocol.c and silcd/protocol.c.
6868
6869         * Do not cache anymore the server's public key during SKE.
6870           We do mutual authentication so the proof of posession of
6871           private key is done, and if the server is authenticated in
6872           conn auth protocol with public key we must have the public
6873           key already.  Affected file silcd/protocol.c.
6874
6875         * Added new global debug variable: silc_debug_hexdump.  If
6876           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6877           file lib/silcutil/silclog.[ch].
6878
6879         * Fixed compilation warning due to char * -> const char *.
6880           Affected files lib/silcutil/silcnet.h, and
6881           lib/silccore/silcauth.[ch].
6882
6883 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6884
6885         * Fixed CMODE command when new channel key was created.  If
6886           the creation failed the old key was removed.  Next time giving
6887           same command would crash the server since the old key was
6888           freed already.  Affected file silcd/command.c.
6889
6890         * Fixed the silc_server_announce_get_channels to not crash
6891           on reconnect.  Affected file silcd/server.c.
6892
6893 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6894
6895         * Added silc_log_set_debug_string function to set a regex
6896           string to match for debug output.  Only the function names,
6897           or filenames matching the given debug string is actually
6898           printed.  This way it is possible to filter out those debug
6899           strings that user is not interested in.
6900
6901           Fixed a bug in silc_string_regexify.
6902
6903           Affected files lib/silcutil/silclog.[ch], and
6904           lib/silcutil/unix/silcunixutil.c.
6905
6906         * Changed the -d options in both server and Irssi SILC client
6907           to take the debug string as argument.  Affected files
6908           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6909
6910 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6911
6912         * Added silc_hash_babbleprint to create a Bubble Babble
6913           Encoded fingerprint.  The encoding is developed by Antti
6914           Huima (draft-huima-babble-01.txt), and it creates human
6915           readable strings out of binary data.  Affected file
6916           lib/silccrypt/silchash.[ch].
6917
6918         * Print the babble print now in addition of fingerprint as well
6919           in Irssi SILC client.  Affected files are
6920           irssi/src/fe-common/silc/module-formats.[ch],
6921           irssi/src/fe-common/silc/core/client_ops.c.
6922
6923 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6924
6925         * Fixed a security problem found in SKE.  The initiator's
6926           public key too is now added to the HASH hash value creation
6927           which is signed by the responder to create the SIGN value.
6928           This will prevent anyone in the middle to lie to the responder
6929           about the initiator's public key.  If this is done now, the
6930           man in the middle will get caught.  Updated the protocol
6931           specification.
6932
6933 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6934
6935         * Better installation directory handling.  Configure module
6936           paths and other paths automatically to example_silc* files
6937           in doc/.  A patch by toma.
6938
6939         * Fixed compiler warning from MPI library, and from SILC RNG.
6940           A patch by johnny.
6941
6942         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6943           It can be configured with ./configure.  A patch by toma.
6944
6945 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6946
6947         * Find correct make to use in prepare-clean.  A patch by
6948           toma.  Affected file prepare-clean.
6949
6950 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6951
6952         * Added irssi variables use_auto_addr, auto_bind_ip,
6953           auto_bind_port and auto_public_ip.
6954
6955         * Changed the interface for silc_client_send_key_agreement
6956           in lib/silcclient/silcapi.h
6957
6958         Affected files:
6959
6960          irssi/src/silc/core/silc-core.c
6961          irssi/config
6962          lib/silcclient/silcapi.h
6963          irssi/src/silc/core/silc-channels.c
6964          lib/silcclient/client_keyagr.c
6965          irssi/docs/help/key
6966
6967 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6968
6969         * Added silc_pkcs_public_key_compare to compare two
6970           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6971
6972         * Check that the client who set the founder mode on the
6973           channel is the same client that is giving the founder
6974           mode to itself.  It is done by comparing the saved public
6975           key (it is saved even in the authentication is passphrase).
6976           Affected file silcd/command.c.
6977
6978 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6979
6980         * Do not process packet for disconnected socket connection.
6981           Affected file lib/silccore/silcpacket.c.
6982
6983         * Process the DISCONNECT packet through scheduler in the
6984           client library.  Affected file lib/silcclient/client.c.
6985
6986         * Fixed the silc_client_packet_parse to not to increase
6987           the packet sequence number if the conn->sock and the
6988           current socket connection is not same.  This can happen
6989           for example during key agreement when the conn includes
6990           multiple socket connections (listeners).  Affected file
6991           lib/silcclient/client.c.
6992
6993         * The sender of the file transfer request now provides also
6994           the pointer (listener) for the key exchange protocol.  If
6995           the listener cannot be created then it sends empty key
6996           agreement and lets the receiver provide the listener.
6997
6998           Added `local_ip' and `local_port' arguments to the
6999           silc_client_file_send.  If they are provided they are used,
7000           if not then it will attempt to find local IP address, if
7001           not found or bind fails then the remote client will provide
7002           the listener.
7003
7004           Affected files are lib/silcclient/client_ftp.c and
7005           lib/silcclient/silcapi.h.
7006
7007         * Extended the FILE SEND command to support defining the
7008           local IP and port for key exchange listener.  They are
7009           optional.  Affected file irssi/src/silc/core/silc-servers.c.
7010
7011 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7012
7013         * Defined to WHOIS command reply the sending of fingerprint
7014           of the client's public key (if the proof of posession of the
7015           corresponding private key is verified by the server).
7016           Updated to the protocol specification.
7017
7018         * Added support of receiving the client's public key's
7019           fingerprint in command reply in client library.  Affected
7020           file is lib/silcclient/command_reply.c, and
7021           lib/silcclient/idlist.[ch].
7022
7023 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7024
7025         * Do not send over 128 chars long nickname to the server
7026           in NICK command.  Affected file lib/silcclient/command.c.
7027
7028         * Do not send over 256 chars long channel names to the server
7029           in JOIN command.  Affected file lib/silcclient/command.c.
7030
7031 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7032
7033         * Assure that silc_server_close_connection cannot be called
7034           twice for same socket context.  Affected file is
7035           silcd/server.c.
7036
7037 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7038
7039         * Send error message to application if opening file for
7040           writing during file transfer fails.  Affected file is
7041           lib/silcclient/client_ftp.c.
7042
7043           Remove all file transfer sessions for a client that we're
7044           removing from ID cache.
7045
7046           Affected file is lib/silcclient/client_ftp.c.
7047
7048         * Fixed silc_net_addr2bin to return correct address.  Affected
7049           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7050
7051         * Fixed file transfer session removing on signoff notify.
7052           Affected file irssi/src/silc/core/silc-servers.c.
7053
7054         * Added the SilcClientFileError to be returned in the monitor
7055           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
7056           Affected file lib/silcclient/silcapi.h.
7057
7058 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7059
7060         * Fixed a crash in silc_client_ftp_free_sessions and
7061           silc_client_ftp_session_free_client.  Affected file
7062           lib/silcclient/client_ftp.c.
7063
7064         * Added `disabled' field in the SilcChannelEntry in the server
7065           to indicate if the server entry is disabled.  Affected file
7066           silcd/idlist.h, silcd/command[_reply].c.
7067
7068         * SILC server adds now /var/run/silcd.pid everytime it is
7069           started.  Affected file silcd/silcd.c.
7070
7071         * Added silc_server_packet_send_clients to send a packet to
7072           the provided table of client entries.  Affected file
7073           silcd/packet_send.[ch].
7074
7075         * Fixed a crash in client resolving in client_prvmsg.c in
7076           client library.  Affected file lib/silcclient/client_prvmsg.c.
7077
7078         * Do not actually remove the client directly from ID cache
7079           during SERVER_SIGNOFF, but invalidate it.  This way we
7080           preserve the WHOWAS info for the client.  Affected file
7081           silcd/server_util.c.
7082
7083         * Fixed SERVER_SIGNOFF notify handling in the server.  The
7084           server is now able to process incoming SERVER_SIGNOFF notify
7085           for a server that it doesn't even know about.  It will remove
7086           the clients provided in the notify.  Affected file
7087           silcd/packet_receive.c.
7088
7089         * Check for partial packet in data queue after every packet that
7090           was found from the queue.  Return and wait for more data if
7091           there is partial data in queue.  Affected file is
7092           lib/silccore/silcpacket.c.
7093
7094 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7095
7096         * Added SilcClietFileError enum to indicate error in
7097           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
7098           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
7099           Affected files lib/silcclient/silcapi.h and
7100           lib/silcclient/client_ftp.c.
7101
7102         * Check that newsize in silc_buffer_realloc is larger than
7103           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
7104
7105         * Added better monitor of file transfers.  It now monitors
7106           key agreement protocol during the file transfer too.  Added
7107           error reporting too.  Affected files
7108           irssi/src/silc/core/silc-servers.c,
7109           irssi/src/fe-common/silc/module-formats.[ch].
7110
7111         * Wrote a help file for FILE command.
7112
7113         * Added silc_rng_global_get_byte_fast to get not-so-secure
7114           random data as fast as possible.  Random data is read from
7115           /dev/urandom if available and from the SILC RNG if not
7116           available.  It is used in padding generation.  Affected file
7117           lib/silccrypt/silcrng.[ch].
7118
7119         * All packets in client library are now processed synchronously.
7120           Optimized packet processing a lot.  Affected file
7121           lib/silcclient/client.c.
7122
7123         * All server connection packets are processing synchronously
7124           now in server, to optimize packet processing.  Affected file
7125           silcd/server.c.
7126
7127         * Include files are installed now only in Toolkit distribution
7128           if make install is given.  Affected files: all Makefile.am's.
7129
7130 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7131
7132         * Assure that silc_client_notify_by_server_resolve does not
7133           resolve the client information multiple times.  If it cannot
7134           be found by the first it cannot be found at all.  Affected
7135           file lib/silcclient/client_notify.c.
7136
7137         * Fixed WHOWAS command reply calling.  Affected file
7138           lib/silcclient/command_reply.c.
7139
7140         * Removed all references to silc_idlist_get_client from the
7141           Irssi SILC client since that call is internal call used by
7142           the library.  The Irssi SILC client will use now client
7143           retrieval functions found in silcapi.h.
7144
7145         * Fixed a bug in resolving nickname info before sending
7146           private message.  It used freed memory.  Affected file
7147           irssi/src/silc/core/silc-servers.c.
7148
7149 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7150
7151         * Assure my_channels statistics cannot go negative in server.
7152           Affected files silcd/server.c, silcd/server_util.c.
7153
7154 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7155
7156         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
7157
7158 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7159
7160         * Win32 Toolkit changes.  Affected files
7161           win32/silc.dsw, win32/libsilc/libsilc.def,
7162           win32/libsilcclient/libsilc.def,
7163           lib/silcutil/silcutil.c, and
7164           lib/sftp/sftp_fs_memory.c.
7165
7166 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7167
7168         * Added silc_net_localip to return local host's IP address.
7169           Affected file lib/silcutil/silcnet.[ch].
7170
7171         * If key exchange or rekey protocol is active for a connection
7172           parse all packets syncronously since there might be packets
7173           in packet queue that we are not able to process without first
7174           processing packets before them.  Affected file silcd/server,
7175           lib/silcclient/client.c.
7176
7177         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
7178           whether library should continue processing the packet.
7179           Affected file lib/silccore/silcpacket.h.
7180
7181         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
7182           SilcSFTPMonitorData to SFTP server to monitor various
7183           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
7184           lib/silcsftp/sftp_server.c.
7185
7186         * Added silc_file_size to return file size.  Affected file
7187           lib/silcutil/silcutil.[ch].
7188
7189         * Implemented the file transfer support for the client library.
7190           Added preliminary support for simple client to client one-file
7191           transmission.  Affected file lib/silcclient/client_ftp.c,
7192           lib/silccilent/client.[ch].
7193
7194         * Added new local command FILE to the Irssi SILC Client.
7195           It is used to perform the file transfer.  It has subcommands
7196           SEND, RECEIVE, SHOW and CLOSE.  Affected files
7197           irssi/src/silc/core/client_ops.c,
7198           irssi/src/silc/core/silc-server.[ch].
7199
7200 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7201
7202         * Relay the SILC_PACKET_FTP in the server.  Affected files
7203           silcd/server.c and silcd/packet_receive.c.
7204
7205 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7206
7207         * Renamed silc_file_read and silc_file_write to functions
7208           silc_file_readfile and silc_file_writefile.  Added function
7209           silc_file_open and silc_file_close.  Affected files
7210           lib/silcutil/silcutil.[ch].
7211
7212 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7213
7214         * Resolve the client info when received private message or
7215           channel message for a client which nickname we don't know.
7216           Affected files lib/silcclient/client_prvmsg.c and
7217           lib/silcclient/client_channel.c.
7218
7219         * Do not crash in /KEY if client is not connected.  Affected
7220           file irssi/src/silc/core/silc-channels.c.
7221
7222         * Added SilcClientStatus field to the SilcClientEntry in the
7223           lib/silcclient/idlist.h.
7224
7225           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
7226           is incomplete and is being resolved, it won't be resolved
7227           twice.
7228
7229           Make sure also that USERS command reply does not resolve
7230           twice information.  Affected file is
7231           lib/silcclient/command_reply.c.
7232
7233           Make sure that silc_client_get_clients_by_list does not
7234           resolve twice same information.
7235
7236         * Check for valid client->id in the silc_server_free_client_data.
7237           Affected file silcd/server.c.
7238
7239         * Fixed /GETKEY nick@server not to crash if the server entry
7240           is not found.  Affected file lib/silcclient/command.c.
7241
7242         * Fixed the silc_server_check_cmode_rights to check the
7243           requested modes correctly.  Affected file silcd/command.c.
7244
7245 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7246
7247         * Better checks for non-printable chars in nick added.
7248           Affected file silcd/command.c.
7249
7250 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7251
7252         * Call the silc_server_udpate_servers_by_server in the
7253           primary router that comes back online in the backup resuming
7254           protocol.  Otherwise it routes packets wrong.  Affected file
7255           silcd/server_util.[ch], silcd/server_backup.c.
7256
7257 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7258
7259         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
7260           lib/silcutil/silcbuffmt.[ch].
7261
7262         * Redefined the SILC packet header to include the padding
7263           length.  Affected file lib/silccore/silcpacket.[ch].
7264
7265         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
7266           length for maximum padding up to 128 bytes).  Affected
7267           file lib/silccore/silcpacket.h.
7268
7269         * Removed all backwards support for old 0.5.x MAC thingies.
7270           The SILC packet header change makes it impossible to be
7271           backwards compatible.
7272
7273         * Send the ENDING packet with timeout in the backup resuming
7274           protocol.  This is to assure that all routers has connected
7275           to the primary router.  Affected file silcd/server_backup.c.
7276
7277         * Changed the RNG to take the first IV from random data.  It
7278           used to take it from zero actually.  Changed the RNG also
7279           to use /dev/urandom during session.  /dev/random is used
7280           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
7281
7282 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7283
7284         * Changed the SILC packet header to have the first two bytes
7285           (the packet length) encrypted.  Affected files aroung the
7286           code tree, lib/silccore/silcpacket.[ch].  Removed the
7287           SilcPacketCheckDecrypt callback.  It is not needed anymore
7288           since the silc_packet_receive_process will determine now
7289           whether the packet is normal or special.
7290
7291         * Implemented the unidirectional MAC keys.  Affected files
7292           lib/silcske/silcske.c, silcd/protocol.c and
7293           lib/silcclient/protocol.c.
7294
7295         * Implemented the packet sequence number to the MAC computation.
7296           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
7297           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
7298           lib/silcclient/protocol.c.
7299
7300 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7301
7302         * Allow backup router to announce servers.  All servers
7303           announced by backup router are added to the global list
7304           automatically.  Update hte server's socket to our primary
7305           router also when backup router announces a server.
7306           Affected file silcd/packet_receive.c.
7307
7308         * Do not update the client->router in the function
7309           silc_server_udpate_clients_by_server if the client is on
7310           global list.  We might fail to find any specific server
7311           for locally connected clients and local cell clients.  They
7312           should still use the `from' and not `to' as client->router.
7313           This fixes backup router resuming protocol.  Affected file
7314           silcd/server_util.c.
7315
7316         * Decrease channel statistics count only if the channel
7317           deletion worked.  Affected files are silcd/server.c and
7318           silcd/server_util.c.
7319
7320         * Added silc_server_update_servers_by_server to update origin
7321           of all server entries.  Used during backup router protocol.
7322           Affected files silcd/server_util.[ch], silcd/server.c. and
7323           silcd/backup_router.c.
7324
7325         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
7326           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
7327           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
7328           lib/silccrypt/silchmac.c.
7329
7330 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7331
7332         * Assure that router cannot reroute the same channel message
7333           to the sender.  Affected file silcd/packet_receive.c.
7334
7335 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7336
7337         * Made better checks that the channel message is not sent
7338           to the router it came from.  Affected file is
7339           silcd/packet_send.c.  Fixed memory leak too.
7340
7341         * Announce informations for incoming router connection, but
7342           only after checking if it is replaced by backup router.
7343           Affected file silcd/packet_receive.c.
7344
7345 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7346
7347         * Fixed the backup resuming protocol to work in multiple
7348           router environment.  Affected file silcd/server_backup.c.
7349
7350         * Route packet only to one router in the function
7351           silc_server_packet_send_to_channel.  Affected file is
7352           silcd/packet_send.c.
7353
7354         * Fixed silc_server_send_notify_dest to set the broadcast
7355           flag.  Fixed the silc_server_send_notify_topic to actually
7356           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
7357           Affected file silcd/packet_send.c.
7358
7359         * Changed the SFTP Filesystem interface.  Changed the
7360           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
7361           the filesystem operation function.  The SilcSFTPFilesystem
7362           is now a context that is allocated by all filesystem allocation
7363           functions and it already includes the operations structure
7364           and filesystem specific context.  It is given as argument
7365           now to the silc_sftp_server_start.  This made the interface
7366           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
7367           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
7368
7369 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7370
7371         * Changed the backup router adding and getting interfaces
7372           in the server.  The router that will be replaced by the
7373           specified backup router is now sent as argument.  Affected
7374           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
7375           silcd/server.c.
7376
7377         * Added silc_net_addr2bin_ne to return the binary form of
7378           the IP address in network byte order.  Affected files
7379           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
7380
7381 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7382
7383         * Check for existing server ID in silc_server_new_server
7384           and in silc_server_connect_to_router_final and remove the
7385           old entry if it exists.  Affected file silcd/packet_receive.c,
7386           silcd/server.c.
7387
7388         * Send the channel message always to only one router, either
7389           in upstream or downstream.  Affected file is
7390           silcd/packet_send.c.
7391
7392 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7393
7394         * Wrote the definition of the backup resuming protocol to the
7395           protocol specification.
7396
7397         * Removed one redundant channel key generation from normal
7398           server during joining procedure.  Removed one redundant
7399           channel key sending from server to router during joining
7400           procedure.  Affected file silcd/command.c.
7401
7402         * Made minor bugfixes to the backup router resuming protocol.
7403           Affected file silcd/server_backup.c, server.c.
7404
7405 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7406
7407         * Added --disable-asm configuration option.  Affected files
7408           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
7409           by salo.
7410
7411         * Implemented the backup resuming protocol that is used to
7412           resume the primary router position in the cell after the
7413           primary router comes back online.  Affected files
7414           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
7415           and silcd/server_util.[ch].
7416
7417 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7418
7419         * Sleep two (2) seconds after sending QUIT command to server.
7420           Affected file lib/silcclient/command.c.
7421
7422         * Assure that if outgoing data buffer is pending do not force
7423           send any data.  Affected file silcd/packet_send.c.
7424
7425         * Assure that if outgoing data buffer is pending do not force
7426           send any data.  Affected file lib/silcclient/client.c.
7427
7428         * Implemented the backup router support when the primary router
7429           goes down.  The servers and routers can now use the backup
7430           router as new primary router without loosing connectivity.
7431
7432 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7433
7434         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
7435           in the server to indicate disabled entry.  All data read
7436           from the connection will be ignored and no data is sent
7437           for entry that is disabled.  Affected files are
7438           silcd/idlist.h, silcd/server.c.
7439
7440 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7441
7442         * Created SFTP client and server test programs in the
7443           lib/silcsftp/tests directory.
7444
7445 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7446
7447         * Implemented memory filesystem (virtual filesystem) for
7448           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
7449           sftp_fs_memory.c.
7450
7451 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7452
7453         * Implemented the SFTP (SSH File Transfer Protocol) to the
7454           lib/silcsftp.  It includes SFTP client and SFTP server
7455           implementations.
7456
7457 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7458
7459         * Moved lib/silccore/silcprotocol.[ch] to the
7460           lib/silcutil library.
7461
7462         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
7463           take variable argument list pointer as argument.  Affected
7464           file lib/silcutil/silcbuffmt.[ch].
7465
7466         * Added silc_buffer_set function that is used to set data
7467           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
7468           Affected file lib/silcutil/silcbuffer.h.
7469
7470         * Changed various routines in the core library to use the new
7471           silc_buffer_set instead of allocating new buffer only for
7472           temporary purposes.
7473
7474         * Added 64-bit value formatting and unformatting support to the
7475           silc_buffer_[un]format routines.  Affected file is
7476           lib/silcutil/silcbuffmt.[ch].
7477
7478           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
7479           to includes/bitmove.h.
7480
7481 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7482
7483         * Fixed channel user mode saving in client library.  Affected
7484           file lib/silcclient/command[_reply].c.
7485
7486 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7487
7488         * Defined the file transfer to the SILC Protocol.  Added
7489           new packet type SILC_PACKET_FTP and defined File Transfer
7490           Payload.  The mandatory file transfer protocol is SFTP
7491           (SSH File Transfer Protocol).  Affected file in addition
7492           of the internet draft is lib/silccore/silcpacket.h.
7493
7494         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
7495           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
7496           is used as part of backup router protocol when the primary
7497           router of the cell is back online and wishes to resume
7498           the position as primary router.
7499
7500         * Redefined the MAC generation keys in the protocol.  The
7501           same key is not used anymore in both direction.  Both
7502           direction will now use different keys for sending and
7503           receiving.  This fixes a potential security flaw.  This
7504           change causes incompatibilities in the protocol.
7505
7506         * Redefined also the MAC computation from the packet.
7507           An packet sequence number is now added to the MAC
7508           computation.  This prevents possible replay attacks against
7509           the protocol.  This change too causes incompatibilities
7510           in the protocol.
7511
7512           Added `sequence' field to the SilcPacketContext to hold
7513           the current sequence number for the packet.
7514
7515 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7516
7517         * Added `created' field to the SilcIDListData in the file
7518           silcd/idlist.h to indicate the time when the entry was
7519           created.
7520
7521         * Added `created' field to the SilcChannelEntry too.  Affected
7522           file silcd/idlist.h.
7523
7524         * Added `creation_time' aguments to all the announcement functions
7525           in the server.  If it is provided then only the entries that
7526           was created after the provided time frame are actually
7527           announced.  Affected file silcd/server.[ch].
7528
7529         * The protocol says that the Channel ID's IP address must be
7530           based on the router's IP address.  Added check for this in
7531           the silc_server_new_channel when processing incoming New Channel
7532           Payload.  Affected file silcd/packet_receive.c.
7533
7534         * Print out the correct version with --version in SILC client.
7535           Affected file irssi/src/silc/core/silc-core.c.
7536
7537 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7538
7539         * Fixed WHOWAS command to check for completnes of the client
7540           entry always, not just when the command is coming from client.
7541           Affected file silcd/command.c.
7542
7543         * Added new function silc_server_packet_queue_purge to purge the
7544           outgoing data queue to the network.  After the function returns
7545           it is guaranteed that the outgoing packet queue is empty.
7546           Affected file silcd/packet_send.[ch].
7547
7548         * Purge the outgoing packet queue in the rekey protocol's final
7549           callback to assure that all rekey packets go to the network
7550           before quitting the protocol.  Affected file silcd/server.c.
7551
7552         * Added silc_client_packet_queue_parse as similar function as
7553           in server to the client library.  The affected file is
7554           lib/silcclient/client.c.
7555
7556 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7557
7558         * Splitted silcd/server.c and created silcd/server_util.[ch]
7559           for utility functions.
7560
7561         * Added new socket flag SILC_SF_DISABLED to indicate that the
7562           connection is open but nothing can be sent to or received from
7563           the connection.  Affected file lib/silcutil/silsockconn.[ch].
7564           The checking for disabled socket is checked in the low level
7565           silc_socket_write and silc_socket_read functions.
7566
7567 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7568
7569         * Allow only nicknames and channel names that fits into the
7570           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
7571
7572 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7573
7574         * When processing JOIN command reply in server check that if
7575           the channel exists in our global list we'll move it the local
7576           list.  Affected file silcd/command_reply.c.
7577
7578         * Fixed the check whether client is joined on the channel already
7579           in JOIN command.  Affected file lib/silcclient/command.c.
7580
7581         * Fixed the JOIN command reply to check whether the channel
7582           already exists.  Affected file lib/silcclient/command_reply.c.
7583
7584 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7585
7586         * Added silc_ske_status_string to map the SKE error numbers
7587           to readable strings.  The affected files are
7588           lib/silcske/silcske[_status].[ch].
7589
7590 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7591
7592         * Do not show the private channels on the WHOIS channel list
7593           as it is not allowed by the protocol.  The affected file is
7594           silcd/server.c.
7595
7596 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7597
7598         * Assure that the packet length digged from the actual packet
7599           is something sensible in the silc_packet_decrypt_rest_special
7600           in lib/silccrypt/silcpacket.c.
7601
7602         * Free and NULL the allocated pointer in silc_hmac_alloc if
7603           the HMAC allocation fails.  The affected file is
7604           lib/silccrypt/silchmac.c.
7605
7606         * Print the selected security properties to the log files in
7607           the server.  Affected file silcd/protocol.c.
7608
7609         * Add SKE's reference counter even if calling the completion
7610           callback manually.  Otherwise it goes negative, although it
7611           does not cause any problems.  The affected file is
7612           lib/silcske/silcske.c.
7613
7614         * Remove the client entry with short timeout after giving the
7615           KILL command.  Affected file lib/silcclient/command.c.
7616
7617         * Fixed to send error reply in WHOIS and IDENTIFY commands in
7618           case all found clients are already disconnected (WHOWAS would
7619           found them) in the server.  Affected file silcd/command.c.
7620
7621         * Update the last_receive (time of last data received) to be
7622           updated only when received private or channel message so that
7623           the idle time showed in WHOIS makes more sense.
7624
7625         * Added boolean field `valid' in to the SilcClientEntry in the
7626           client library to indicate whether the entry is valid or not.
7627           This fixes the nickname change bug on channel when changing
7628           the nickname to be same than the old (like nick to Nick) the
7629           nickname formatter doesn't set the new nick anymore to Nick@host.
7630           Affected file lib/silcclient/idlist.[ch].
7631
7632         * Now actually fixed the nickname changing on disconnection.
7633           Added new function silc_change_nick to the Irssi SILC Client.
7634           Affected file irssi/src/silc/core/client_ops.c,
7635           irssi/src/silc/core/silc-nicklist.[ch].
7636
7637 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7638
7639         * Check that the public key exists in the GETKEY command before
7640           trying to encode it.  Affected file silcd/command.c.
7641
7642         * Print some notifications on received public keys with GETKEY
7643           command in the Irssi SILC Client.  Affected files are
7644           irssi/src/fe-common/silc/module-formats.[ch],
7645           irssi/src/silc/core/client_ops.c.
7646
7647         * Use IDENTIFY command to resolve the server information in the
7648           GETKEY command instead of INFO command.  Affected file
7649           lib/silcclient/command.c.
7650
7651         * All command reply functions in the client library now calls
7652           the pending command reply callbacks even if an error has
7653           occurred.  The server has done this a long time and now it was
7654           time to move the client library to this as well.  Now all
7655           errors can be delivered back to the pending command reply
7656           callbacks if necessary.  Affected files are
7657           lib/silcclient/command[_reply].[ch].
7658
7659         * Change the nickname on disconnection back to the username
7660           because in reconnect the server will enforce it to it anyway.
7661           Affected file irssi/src/silc/core/silc-servers.c.
7662
7663         * Fixed a config file parsing bug in the Irssi SILC client.
7664           Affected file irssi/src/silc/core/clientconfig.c.
7665
7666 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7667
7668         * When printing the channel mode on JOIN, verify that the
7669           channel key and channel's HMAC are valid.  Affected file
7670           irssi/src/silc/core/client_ops.c.
7671
7672 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7673
7674         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
7675           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
7676           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
7677
7678         * Removed channel key rekey task deleting from the function
7679           silc_server_save_channel_key.  Affected file silcd/server.c.
7680           Added explicit timeout task context instead that is used to
7681           delete the task if we are registering a new task before the
7682           new task has elapsed.
7683
7684         * When channel key rekey occurs the client library now saves
7685           the old channel key for a short period of time (10 seconds) and
7686           is able to use it in case some is still sending channel
7687           messages encrypted with the old key after the rekey.  Affected
7688           file lib/silcclient/[idlist.h|client_channel.c].
7689
7690 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7691
7692         * Added check to the silc_server_new_id_real to not accept
7693           new ID if it is the sender's own ID.  Affected file is
7694           silcd/packet_receive.c.
7695
7696         * Assure that we do not announce ourself or the one we've
7697           sending our announcements when we're router and are announcing
7698           servers to our primary router.  Affected file silcd/server.c.
7699
7700         * Fixed silc_server_command_identify_check_client to assemble
7701           correct WHOIS packet.  It send corrupted WHOIS packet and
7702           caused problem with router to router connections.  Affected
7703           file silcd/command.c.
7704
7705           Fixed also silc_server_command_whois_check the same way
7706           as for the IDENTIFY command.
7707
7708         * Added new SilcIDListStatus to the server in the SilcIDListData
7709           structure.   The status now includes the current status of
7710           the entry (like registered, resolved etc.).  Affected file
7711           silcd/idlist.[ch].  Defined a bunch of different status types
7712           as well.  This replaced the old boolean registered field as well.
7713
7714           Added resolve_cmd_ident field to the SilcClientEntry structure
7715           too so that if the entry is for example being resolved so
7716           another command may attach to the same pending command reply
7717           without requiring to resolve the same entry again.  This concept
7718           should optimize the WHOIS and the IDENTIFY resolving under
7719           heavy load by taking away unnecessary resolving for entries
7720           that are being resolved already.
7721
7722           Added support for adding multiple pending commands for one
7723           command idenfier.  Affected file silcd/command[_reply].[ch].
7724
7725         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7726           before deleting the data.  Otherwise the hash table will have
7727           freed data in comparison functions.  Affected file is
7728           silcd/command_reply.c.
7729
7730         * Fixed silc_idlist_replace_client_id to add the new entry to
7731           the cache with NULL nickname.  Otherwise there will be invalid
7732           memory as the nickname after the nickname is freed.  Affected
7733           file silcd/packet_receive.c.
7734
7735         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7736           saved into wrong slots because the previous number of entries
7737           was not taken into account.  Affected file silcd/idlist.c.
7738           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7739
7740         * If we are router and we receive JOIN notify to a channel that
7741           does not have any users then notified client is marked as the
7742           channel founder, as it is it.  The affected file is
7743           silcd/packet_receive.c
7744
7745         * Added to the extended hash table API's table_del_*ext functions
7746           the destructor as argument too, so that the caller can decide
7747           which destructor to use or whether to use destructor at all.
7748           Affected file lib/silcutil/silchashtable.[ch].
7749
7750         * Fixed ID Cache purging.  It actually deleted the entries from
7751           the hash table after the data was freed.  The hash table ended
7752           up comparing freed memory.  The affected file is
7753           lib/silccore/silcidcache.c.
7754
7755 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7756
7757         * Fixed Irssi SILC client's KILL command's HELP syntax.
7758
7759         * The USERS command now resolves the detailed user information
7760           if the userinfo field is missing.  Affected file is
7761           lib/silcclient/command_reply.c.
7762
7763         * Do not print error in silc_file_read if the read file does
7764           not exist.  Just silently return NULL.  Affected file is
7765           lib/silcutil/silcutil.c.
7766
7767         * Fixed the silc_log_output to not wine about NULL filename
7768           and to not create some bogus " " filename.  Affected file is
7769           lib/silcutil/silclog.c.
7770
7771 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7772
7773         * Fixed various printing bugs on the user interface in the
7774           Irssi SILC Client.  Minor changes that were forgotten from
7775           the release.
7776
7777 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7778
7779         * Fixed the configure.in.pre and the compilation and distribution
7780           environment to support the new autoconf 2.52.  That version is
7781           now required to compile the CVS trunk.
7782
7783 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7784
7785         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7786           to generally parse user@fqdn format strings.  Affected file
7787           lib/silcutil/silcutil.c.
7788
7789         * Added nickname_format and nickname_force_format fields to the
7790           SilcClientParams structure.  The first one defines the format
7791           for the nicknames that the library will enforce if the receives
7792           multiple same nicknames.  The second one is boolean value and
7793           can be used to force the library to always enforce the format
7794           to the nicknames regardles whether there are multiple nicknames
7795           or not.  This configurable formatting was employed to flexibly
7796           support accessing multiple nicknames from the user interface.
7797           The userinterface can now set the nicknames to what ever format
7798           they prefer.  Affected file lib/silcclient/silcapi.h.
7799
7800           Added function silc_client_nickname_format to the file
7801           lib/silcclient/idlist.c.  It performs the nickname formatting.
7802
7803           Added new field `hostname´ to the SilcClientEntry context.
7804           It holds the hostname of the client.  Affected file is
7805           lib/silcclient/idlist.h.
7806
7807         * Irssi SILC Client sets the nicknames in nick@hostn format.
7808           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7809           irssi/src/silc/core/silc-core.c.
7810
7811           The WHOIS printing now also shows both the real nickname and
7812           the formatted nickname so that user knows how to access the
7813           user if there are multiple same nicknames cached.  Affected
7814           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7815           printing formatting too to take the hostname now as a separate
7816           argument.  The Affected file is
7817           irssi/src/fe-common/silc/modules-formats.[ch].
7818
7819         * Changed the silc_client_get_clients_local to accept the formatted
7820           nickname as argument.  It accepts the real nickname too but the
7821           formatted nickname can be used to find the true entry from
7822           multiple entries.  Affected file lib/silcclient/silcapi.h and
7823           lib/silcclient/idlist.c.
7824
7825         * Added nickname_format_parse field to the SilcClientParams.
7826           It is a callback function provided by the application to parse
7827           the nickname out of the formatted nickname string. The library
7828           calls it to get the nickname from the formatted string. Since
7829           the application generally knows better the format of the nickname
7830           string it parses it instead of the library, even though library
7831           encodes the formatted string.  If the callback function is not
7832           provided then the library will use the string as is.  The
7833           affected file is lib/silcclient/silcapi.h.
7834
7835         * All the nickname strings passed to the client library in
7836           commands are now expected to be formatted nickname strings.
7837           If the command does not support the formatted nickname string
7838           it will assume that the sent string is the actual nickname.
7839           Affected file lib/silcclient/command.c.
7840
7841 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7842
7843         * Added public key authentication support to OPER and SILCOPER
7844           commands in the client library.  Affected file is
7845           lib/silcclient/command.c.
7846
7847 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7848
7849         * Changed the get_auth_methdod client operation to be asynchronous.
7850           It can be async if the application resolves the authentication
7851           method from the server during the negotiation.  Added new
7852           SilcGetAuthMeth completion callback that the application will
7853           call after resolving the authentication method.
7854
7855           Added function silc_client_request_authentication_method that
7856           the application can use to resolve the authentication method
7857           from the server.  Added also SilcConnectionAuthRequest callback
7858           that the library will call after the server has replied.  The
7859           application can call this function if it does not know the
7860           current authentication method.
7861
7862           Affected files are lib/silcclient/client.c and
7863           lib/silcclient/silcapi.h.
7864
7865         * The Irssi SILC client now automatically resolves the authentication
7866           method incase any configuration information is not present (and
7867           currently there never is).  The affected file is
7868           irssi/src/silc/core/client_ops.c.
7869
7870         * Fixed public key authentication from the client library.
7871           Affected file lib/silcclient/protocol.c.  Changed also the
7872           protocol specification about the public key authentication in
7873           the connection authentication protocol.  The actual data to be
7874           signed is now computed with a hash function before signing.
7875
7876         * Fixed the public key authentication from the server as well.
7877           Affected file silcd/protocol.c.
7878
7879         * Removed the mlock()'s from the memory allocation routines.
7880           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7881           not check anymore for the mlock().  Affected file is
7882           configure.in.pre.
7883
7884         * Fixed USERS command in server to allow the execution of the
7885           command for private and secret channels if the client sending
7886           the command is on the channel.  Affected file silcd/command.c.
7887
7888         * Fixed silc_client_get_clients_local to return the clients
7889           count correctly.  It could return wrong value.  Affected file
7890           lib/silcclient/idlist.c.
7891
7892 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7893
7894         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7895           types.  The assembler optimizations seemed not to like 64-bit
7896           data types.  The assmebler optimizations thus are now enabled
7897           also for BSD systems as opposed to only enable them for Linux.
7898
7899         * Do not check for threads at all on BSD systems.  Affected
7900           file configure.in.pre.
7901
7902         * Removed -n and -h options from the Irssi SILC Client since
7903           they are not used in silc.
7904
7905         * Fixed the prime generation to assure that the first digit
7906           of the generated random number is not zero since our conversion
7907           routines does not like number strings that starts with zero
7908           digit.  If zero digit is seen the random number is regenerated.
7909           This caused some corrupted RSA keys when the zero first digit
7910           was met.  Affected file lib/silcmath/silcprimegen.c.
7911
7912 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7913
7914         * Fixed WIN32 configuration in the ./configure script.
7915           Fixed to include xti.h on environments that has it.
7916           Patches by Carsten Ilchmann and andrew.
7917
7918 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7919
7920         * Changed the silc_id_create_client_id to be collision
7921           resistant.  It is now assured that there cannot be created
7922           two same client ID's.  I suspect that some weird bugs in
7923           the server were actually caused by duplicate Client IDs.
7924           Affected file silcd/serverid.[ch].  A router receiving
7925           new ID now also assures and informs the sending server
7926           if the ID caused collision.
7927
7928         * Changed the silc_id_create_channel_id to also assure that
7929           there are no collisions.
7930
7931 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7932
7933         * Statement about ignoring the Mutual Authentication flag when
7934           performing rekey with PFS was a bit misleading.  It is ignored
7935           if it was set in the initial negotiation, it cannot be even
7936           set in the rekey.  Fixed in the ke-auth draft.  Started the
7937           new versions of the protocol drafts in the doc/.
7938
7939 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7940
7941         * Fixed a bug in silc_client_command_identify_save when saving
7942           new channel information.  The channel name was no duplicated
7943           and caused crash on exit.  Affected file is
7944           lib/silcclient/command_reply.c.
7945
7946 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7947
7948         * Fixed the getkey command handling in the server.  Send just
7949           empty OK reply to the sender if the key could not be fetched
7950           (but everything else was ok, like the key just was not available).
7951           Changed the public key parameter to optional in the protocol
7952           specs so that empty OK reply can be sent.  Affected file
7953           silcd/command.c.
7954
7955           Added a message to Irssi SILC client to tell to user if the
7956           server did not return a public key.
7957
7958 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7959
7960         * Fixed a channel key regeneration bug.  It registered new
7961           timeout tasks exponentially until all system resources were
7962           used.  Affected file silcd/server.c.
7963
7964 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7965
7966         * Added the SILC Document generator to the scripts/silcdoc.
7967           It can be used to generate the Toolkit Reference Manual out
7968           of the source tree.  Internally it will also use the RoboDoc
7969           generator now imported in util/robodoc.
7970
7971 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7972
7973         * Added couple of return's in rekey protocol if error orccurred
7974           during the protocol.  The execution must be terminated.
7975           Affected file silcd/protocol.c.  Also, terminate the protocol
7976           always with timeout.
7977
7978 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7979
7980         * The client's Client ID was created initally from the wrong
7981           nickname (it could have been in format nick@host) in the
7982           silc_server_new_client.  Affected file silcd/packet_receive.c
7983
7984 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7985
7986         * Added some SILC_LOG_ERROR's to various error conditions
7987           if client could not be added to ID cache.  Affected files
7988           silcd/packet_receive.c and silcd/server.c.
7989
7990         * When client's sock->user_data is freed, NULL also the
7991           client->router and client->connection pointers.  Added check
7992           for these pointers being NULL to various places around the
7993           code.  Affected file silcd/server.c.
7994
7995         * Added client->data.registered == TRUE checks to various
7996           places around the code to assure that unregistered client's
7997           are not handled when it is not allowed.  Affected file
7998           silcd/server.c.
7999
8000         * Added `bool registered' fields to all
8001           silc_idlist_[server|client]_get_* routines to indicate whether
8002           the fetched client needs to be registered or not.  Affected
8003           file silcd/idlist.[ch].
8004
8005         * Add your own entry as registered to the ID cache in the
8006           server.  Affected file server.c.
8007
8008         * Fixed a bug in silc_server_new_server.  The SilcServer was
8009           set as the new server's context instead of SilcServerEntry.
8010           This naturally caused some weird bugs.
8011
8012         * Added "updated" field the SilcChannelEntry which indicates
8013           the time since the channel entry was last accessed.  This
8014           can be used to determine whether it is necessary to
8015           announce the channel after backup resuming protocol.
8016           Affected files silcd/idlist.[ch].
8017
8018 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8019
8020         * Do not delete the channel rekey task when adding it
8021           for in silc_server_create_channel_key.
8022
8023         * Changed the silc_server_create_channel_key to return
8024           TRUE or FALSE to indicate the success of the channel key
8025           creation.
8026
8027 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8028
8029         * Fixed MSVC++ project files and added missing files to
8030           Makefiles under win32/.
8031
8032 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8033
8034         * Do not add TCP_NODELAY flag if the operating system
8035           does not have it defined.  Affected files are
8036           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
8037
8038         * Fixed buffer overflow from Irssi SILC Client.  Affected
8039           file irssi/src/fe-common/core/themes.c.
8040
8041         * Fixed double free in client library in the file
8042           lib/silcclient/client.c when disconnecting from server.
8043
8044         * Applied double free patch from cras to Irssi SILC client.
8045           Affected files irssi/src/core/[modules/expandos].c
8046
8047         * Fixed the disconnection handling to Irssi SILC Client.
8048           The application must call silc_client_close_connection
8049           in ops->connect client operation in case of failure of
8050           the connection.  Affected file is
8051           irssi/src/silc/core/client_ops.c.
8052
8053         * Do not set sock->protocol to NULL in the function
8054           silc_client_close_connection after executing the protocol's
8055           final callback since the sock might not be valid anymore.
8056           Affected file lib/silcclient/client.c.
8057
8058 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8059
8060         * Do not enable SILC_THREADS if the linking with libpthread
8061           did not happen.  Affected file configure.in.pre.
8062
8063         * Added notion to protocol specification that server must
8064           verify the sent authentication payload with CMODE when
8065           setting the channel founder key.  Implemented it to the
8066           server.  Affected file silcd/command.c.
8067
8068 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8069
8070         * Added _EXTRA_DIST SILC distribution variable to the
8071           distributions file.  It is used to conditionally add extra
8072           files or directories to the specific distribution.  Affected
8073           files ./prepare, Makefile.am.pre and distributions.
8074
8075           Removed the `_' from the start of the distribution names.
8076           It is redundant.
8077
8078         * Added README.WIN32 for instructions to compile the Toolkit
8079           under WIN32.
8080
8081 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8082
8083         * Fixed a double free in disconnection in the server.  Affected
8084           file is silcd/server.c.
8085
8086         * Fixed the lib/silcske/groups.c to work now also with GMP
8087           MP library.  The string conversion did not work when using
8088           specific base and the base is indicated in the string as well.
8089
8090         * Created win32/ directory which now includes MSVC++ specific
8091           stuff so that toolkit (DLLs) may be compiled with MSVC++.
8092           It will appear only in the toolkit distribution
8093
8094 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8095
8096         * Changed the key material distribution function in case when
8097           the hash output is too short.  The data is now concatenated
8098           a bit differently than it used to.  Made the change to the
8099           SKE protocol specification.
8100
8101         * Added better GMP detection to configure.in.pre.  A patch
8102           by salo.
8103
8104 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8105
8106         * Fixed a minor bug in SKE that might cause some problem on
8107           some platforms.  Affected file lib/silcske/silcske.c.
8108
8109         * Added the cookie checking for initiator in the SKE.  It checks
8110           that the responder returns the sent cookie unmodified.  The
8111           affected file is lib/silcske/silcske.c.  Added new SKE
8112           error type INVALID_COOKIE that can be sent during the
8113           negotiation.  Fixed some memory leaks as well.
8114
8115         * Added the "invalid cookie" error message to Irssi SILC client's
8116           message formats.
8117
8118 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8119
8120         * Added `task_max' field to the SilcClientParams to indicate
8121           the maximum tasks the scheduler can handle.  If set to zero,
8122           default values are used.  Affected file lib/silcclient/silcapi.h.
8123
8124         * Fixed memory leaks in silc_client_close_connection.  Affected
8125           file lib/silcclient/client.c.
8126
8127         * Added silc_client_del_client_entry to client library to free
8128           all memory of given client entry.  Affected file is
8129           lib/silcclient/idlist.[ch].
8130
8131         * Added new functions silc_client_del_channel and
8132           silc_client_del_server to delete channel and server entries.
8133           Affected file lib/silcclient/[silcapi.h/idlist.c].
8134
8135         * Removed silc_client_del_client_by_id from silcapi.h.
8136
8137         * Fixed the INFO command to return the server's own info
8138           correctly when querying by Server ID.  Affected file is
8139           silcd/command.c.
8140
8141 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8142
8143         * Removed the non-blocking settings in WIN32 code in the
8144           silc_sock_[read/write] and added SleepEx instead.  Affected
8145           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
8146           of input data is now checked with FIONREAD and ioctlsocket.
8147
8148 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8149
8150         * Call silc_schedule_task_del_by_context in the
8151           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
8152           Affected file lib/silccore/silcprotocol.c.
8153
8154         * Call silc_protocol_cancel for active protocols in the
8155           silc_server_close_connection if the funtion
8156           silc_server_free_sock_user_data has not been called.
8157           Affected file silcd/server.c.
8158
8159         * Generic tasks cannot be deleted using the del_by_fd
8160           task deleting function since generic tasks does not match
8161           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
8162
8163         * Added a notion to SILCOPER help file that the SILCOPER works
8164           only on router server, not on normal server.
8165
8166 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8167
8168         * Added for WIN32 support for the new scheduler as well.
8169           Affected file lib/silcutil/win32/silcwin32schedule.c.
8170
8171         * Fixed the SHA1 implementation to work on various platforms.
8172
8173 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8174
8175         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
8176           API.  It is part of the scheduler now.  Everything else is
8177           as previously but some functions has changed their names.
8178           Checkout the lib/silcutil/silcschedule.h for the interface.
8179           Updated all applications to use the new interface.  Affected
8180           files are lib/silcutil/silcschedule.[ch].
8181
8182 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8183
8184         * Found a bug in the SKE implementation.  The HASH value,
8185           specified by the protocol, was not computed correctly.  The
8186           public key of the responder was not added to the computation
8187           even though it is mandatory.  Affected file lib/silcske/silcske.c.
8188           This unfortunately causes incompatibilities with older
8189           clients and servers.
8190
8191         * Added WIN32 specific network init and uninit functions:
8192           silc_net_win32_init and silc_net_win32_uninit to init and uninit
8193           the Winsock2.  Affected file lib/silcutil/silcnet.h and
8194           lib/silcutil/win32/silcwin32net.c.
8195
8196         * Set the socket always to nonblocking mode on WIN32 after
8197           reading data or writing data.  Affected file is
8198           lib/silcutil/win32/silcwin32sockconn.c.
8199
8200 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8201
8202         * Fixed various compilation problems under WIN32.  Affected
8203           files lib/silcutil/win32/silcwin32thread.c and
8204           lib/silcutil/win32/silcwin32schedule.c.
8205
8206         * Removed all _internal.h #includes from public header
8207           files.  Internal headers must never be included from
8208           public headers.
8209
8210           Removed also the lib/silcske/payload_internal.h file.
8211
8212         * All include files that may be needed (public and some others
8213           included by the public headers) by application developers are
8214           now copied to the ./includes directory.  It does not copy any
8215           internal headers.  Affected file Makefile.defines.pre and all
8216           Makefile.am's under lib/ and subdirs.
8217
8218 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8219
8220         * Do not change the ~/.silc directory's permissions automatically.
8221           Affected file irssi/src/silc/core/clientutil.c.
8222
8223 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8224
8225         * Do not cancel the protocol in silc_server_close_connection
8226           it might cause recursion.  Now cancelled in the function
8227           silc_server_free_sock_user_data.  Affected file silcd/server.c.
8228
8229         * Fixed the silc_server_remove_clients_by_server to regenerate
8230           the channel keys correctly finally.  Added also new function
8231           silc_server_remove_clients_channels to actually do it.
8232           Affected file silcd/server.c.
8233
8234         * Fixed the silc_server_new_channel to not crash by giving
8235           wrong router to the new channel.  Affected file is
8236           silcd/packet_receive.c.
8237
8238 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8239
8240         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
8241           which is given as argument to the silc_client_alloc now.
8242           It can be used to configure the client and set various parameters
8243           that affect the function of the client.
8244
8245         * The USERS command in server did not check whether the channel
8246           is private or secret.  Affected file silcd/command.c.
8247
8248         * Added new argument to the USERS command in protocol specification.
8249           The USERS command now can take the channel name as argument
8250           as well.  Added support for this in client and server and
8251           updated the protocol specs.
8252
8253         * Completed the GETKEY command in client. It can be now used
8254           to fetch also servers public key not only some clients.
8255           Affected files lib/silcclient/command[_reply].c.
8256
8257         * Added silc_client_get_server to return server entry by the
8258           server name.  Affected files lib/silcclient/silcapi.h and
8259           idlist.c.
8260
8261         * Redefined the IDENTIFY command in protocol specification to be
8262           more generic.  It now can be used to query information about
8263           any entity in the SILC Network, including clients, servers and
8264           channels.  The query may be based either the entity's name
8265           or the ID.  Added support for this in both client and server.
8266
8267           Affected files silcd/command.c and lib/silcclient/command.c
8268           and command_reply.c.
8269
8270         * Optimized the WHOIS and WHOWAS commands in the server. Removed
8271           the _from_client and _from_server functions.  Affected file
8272           silcd/command.c.
8273
8274         * Added silc_client_get_channel_by_id_resolve to the file
8275           lib/silcclient/silcapi.h to resolve channel information by
8276           its ID.  Added also silc_client_get_channel_by_id that
8277           does not resolve it from the server.
8278
8279 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8280
8281         * Added SilcServerEntry context into the client library
8282           to represent one server.  The INFO command now allocates
8283           these to save the resolved server info.  For now on the
8284           client library will also keep information about servers,
8285           connected and resolved with INFO.
8286
8287           The INFO command now allocates the SilcServerEntry context
8288           and saves the server info there.  The COMMAND_REPLY in
8289           the INFO now returns the parameters to application in
8290           same order as defined in the protocol specification.
8291
8292           The entries are cached in the client->server_cache.
8293
8294         * The INFO command is now issued after received the Client ID
8295           from the server.  Affected file lib/silcclient/client.c.
8296
8297         * The CMODE_CHANGE notify may now return also an SilcServerEntry
8298           to the application as the mode changer might be server.
8299           It is guaranteed that NULL is not returned anymore to the
8300           application.  Affected file lib/silcclient/client_notify.c.
8301
8302           The ID Type is now also passed to the application so that
8303           it can check whether the returned entry is SilcClientEntry
8304           or SilcServerEntry.
8305
8306           Added new function silc_client_get_server_by_id to return
8307           the server entry by ID.  Affected files are the
8308           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
8309
8310         * Do not create the channel in the Irssi SILC Client when issuing
8311           the JOIN command but when received the sucessful JOIN command
8312           reply.  Otherwise the channel might get created even though we
8313           could not join it.  The Affected file is
8314           irssi/src/silc/core/[silc-channels.c/client_ops.c].
8315
8316         * Fixed a channel joining bug in router.  The router must also
8317           check the channel modes, invite and ban lists etc. when serving
8318           the JOIN command sent by normal server.  Affected file is
8319           silcd/command.c.  The router now resolves the client's
8320           information from the server who sent the JOIN command if it
8321           does not know it, and processes the JOIN command only after
8322           that.
8323
8324         * Changed the SilcCommandCb to take new argument; void *context2.
8325           Affected file lib/silccore/silccommand.h
8326
8327           The second argument in the command callbacks in the server now
8328           includes the SilcServerCommandReplyContext if the command was
8329           called as pending command callback from the command reply.
8330           Otherwise it is NULL. When called as pending the status of the
8331           command reply will be checked and if it was erronous the
8332           error will be sent to the original sender of the command.
8333           This way the client always receives the error messages even
8334           though the server was actually the one who received the error
8335           when it resent the command to router, for example.  Affected
8336           files silcd/command[_reply].[ch].
8337
8338         * Fixed sending WHOWAS command's error message to client if
8339           the requested client could not be found.  It was missing.
8340           silcd/command.c.
8341
8342         * Changed the CMODE and CUMODE commands reply arguments in the
8343           protocol specification.  The Channel ID is now sent in both
8344           of the commands to identify the channel.  Implemented this
8345           new feature to the client and server.  Affected files
8346           lib/silcclient/command_reply.c and silcd/command.c.
8347
8348         * Made better checks for invite and ban lists in the JOIN
8349           command in server.  Affected file silcd/command.c.
8350
8351 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8352
8353         * The server now performs the incoming host IP/DNS lookup
8354           using the silc_socket_host_lookup and thus does not block
8355           the server anymore.  Affected file silcd/server.c.
8356
8357         * Completed the multi-thread support for SILC Scheduler in
8358           the lib/silcutil/silcschedule.c.
8359
8360         * Fixed the configure.in.pre to detect the pthread correctly
8361           on various systems.
8362
8363         * Fixed a deadlock in silc_task_queue_wakeup in the file
8364           lib/silcutil/silctask.c.
8365
8366 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8367
8368         * Added new function silc_schedule_wakeup that is used in
8369           multi-threaded environment to wakeup the main thread's
8370           schduler. It needs to be used when a thread adds a new task
8371           or removes a task from task queues. After waking up, the
8372           scheduler will detect the task queue changes. If threads
8373           support is not compiled in this function has no effect.
8374           Implemented the wakeup mechanism to both Unix and WIN32
8375           systems.  Affected files are lib/silcutil/silcschedule.[ch],
8376           lib/silcutil/unix/silcunixschedule.c and the
8377           lib/silcutil/win32/silcwin32schedule.c.
8378
8379         * Added new function silc_task_queue_wakeup to wakeup the
8380           scheduler by the specified task queue.  Affected file
8381           lib/silcutil/silctask.[ch].
8382
8383         * The silc_socket_host_lookup_start now wakes up the scheduler
8384           after adding the timeout task.  Affected file is
8385           lib/silcutil/silcsockconn.c.
8386
8387         * The silc_socket_host_lookup is synchronous now if the threads
8388           support is not compiled in.  However, the callback is still
8389           called asyncronously through the scheduler, anyway.  Affected
8390           file lib/silcutil/silcsockconn.c.
8391
8392 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8393
8394         * Added new function silc_socket_host_lookup to perform
8395           asynchronous IP and FQDN lookups for the socket connection.
8396           Affected files lib/silcutil/silcsockconn.[ch].
8397
8398 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8399
8400         * Added SILC_MUTEX_DEFINE to define the mutex on environments
8401           that may or may not compile the mutex support in.
8402
8403           Changed the silc_mutex_alloc interface. It allocates the
8404           mutex now to the sent pointer and returns TRUE or FALSE.
8405
8406           Affected file lib/silcutil/silcmutex.h.
8407
8408         * Wrote the SILC Task Queue interface to support multi-threads.
8409           Affected file lib/silcutil/silctask.[ch].
8410
8411         * Wrote the SILC Scheduler to support multi-threads.  Affected
8412           file lib/silcutil/silcschedule.c.
8413
8414 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8415
8416         * Implemented the SILC Mutex API and SILC Thread API for WIN32
8417           in lib/silcutil/win32/.
8418
8419 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8420
8421         * Defined SILC Mutex API and SILC Thread API and implemented
8422           them for Unix.  Affected files are
8423           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
8424           lib/silcutil/unix/silcunixmutex.c and
8425           lib/silcutil/unix/silcunixthread.c.
8426
8427 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8428
8429         * Fixed the silc_server_remove_clients_by_server's channel
8430           key re-generation.  The hash table handling was incorrect
8431           and would not work with many channels.  Affected file is
8432           silcd/server.c.
8433
8434         * Fixed some memory leaks around the server code.
8435
8436         * Rewrote the silc_server_get_users_on_channel to support IPv6
8437           based Client ID's.  Affected file silcd/server.c.
8438
8439         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
8440           specification.  However, a separate document must be written
8441           to define the detailed signing procedure and the payload
8442           associated with the flag.  Defined the flag to the
8443           lib/silccore/silcchannel.h as well.
8444
8445 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8446
8447         * Changed the dynamic tables to static size tables in the
8448           lib/silccrypt/silchmac.c.
8449
8450         * Removed GCC dependencies from the code.  A patch by cras.
8451
8452 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8453
8454         * Do not show the error "Error receiving packet bla bla"
8455           in server if it really was not an error (-2 means that reading
8456           is pending).  Affected file silcd/server.c.
8457
8458 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8459
8460         * Fixed a possible crash in silc_server_remove_clients_by_server
8461           in silcd/server.c.  Fixed there also some memory leaks.
8462
8463         * Fixed the silc_idlist_replace_client_id.  It could replace
8464           wrong key in the hash table.  Affected file silcd/idlist.c.
8465
8466         * Do not check whether there are global users on the channel
8467           if the channel->global_users is FALSE.  Affected functions
8468           silc_server_remove_from_one_channel and
8469           silc_server_remove_from_channels in silcd/server.c.  Also,
8470           do not check if the removed client is local as we can be
8471           sure that global client was not removed from the channel
8472           and checking for global users is not needed.
8473
8474         * The silc_server_remove_clients_by_server now re-generates
8475           the channel keys correctly for those channels that had
8476           clients removed from them.  Affected file silcd/server.c.
8477
8478 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8479
8480         * Found the reason of random crashes in the server.  We weren't
8481           ignoring the SIGPIPE signal (which can be sent in write())
8482           and it crashed the server.  Affected file silcd/silcd.c.
8483
8484 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8485
8486         * Assure that sock->user_data is not NULL in the function
8487           silc_server_packet_send in silcd/packet_send.c.
8488
8489         * Disconnect the remote connection if it could not be added
8490           to any ID lists in the server.  The affected file is
8491           silcd/server.c.
8492
8493         * Check in silc_server_packet_send[_real/dest] that the
8494           socket is not disconnecting and ignore the data if it is.
8495           Affected file silcd/packet_send.c.
8496
8497         * Define inline to __inline on native WIN32 compilation.
8498           Affected file includes/silcwin32.h.
8499
8500         * Added some explicit type casts for inline code since MSVC
8501           require them.  Affected files lib/silcutil/silcbuffer.h,
8502           lib/trq/silcdlist.h and lib/trq/silclist.h.
8503
8504         * Print warning in log files from now on if the packet
8505           decryption fails.  Affected file silcd/server.c.
8506
8507 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8508
8509         * Changed the `say' client operation's interface to accept
8510           new `type' argument to indicate the type of the message sent
8511           by the library.  The application may filter the library's
8512           messages according the type.  The affected file is the
8513           lib/silcclient/silcapi.h.
8514
8515         * Added two new functions to lib/silcclient/silcapi.h:
8516           silc_client_del_client and silc_client_del_client_by_id.
8517           Affected file lib/silcclient/idlist.c.
8518
8519         * Moved the clientincludes.h from includes/ to silc/ and
8520           serverincludes.h from includes/ to silcd/.
8521
8522         * The modes for the CMODE and CUMODE are now passed as
8523           uint32 for application with COMMAND_REPLY.  The affected
8524           file is lib/silcclient/command_reply.c.
8525
8526 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8527
8528         * /WHOIS without arguments shows client's own information.
8529           Affected file lib/silcclient/command.c.
8530
8531         * Changed PING to not accept any arguments.  The specs
8532           says that client can ping only the connected server so
8533           requiring an argument is not needed.  Affected file is
8534           lib/silcclient/command.c.
8535
8536 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8537
8538         * Fixed a fatal bug in private message sending and reception
8539           encryption and decryption when using private message keys.
8540           The implementation was incorrect and did not follow the
8541           specification.  It causd that some of the message were
8542           lost since it did not use the sending and receiving keys
8543           as the protocol suggests.  This has been fixed and will cause
8544           incompatibilities with older clients when sending private
8545           message encrypted with private message keys.  Affected files
8546           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
8547           and various other in Irssi SILC Client.
8548
8549           Added `responder' boolean argument to the functions
8550           silc_client_add_private_message_key[_ske] to indicate when
8551           the key is added as responder or initiator of the key
8552           negotiation.
8553
8554 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8555
8556         * Removed the silc_ske_check_version function and created
8557           a SilcSKECheckVersion callback.  Added also a function
8558           silc_ske_set_callbacks that is now used to set all SKE
8559           callbacks.  The callback functions are not given to
8560           the SKE functions anymore, but this function is used to
8561           set the callbacks.
8562
8563         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
8564
8565         * Added `silc_version' argument to the silc_client_alloc
8566           to define the version of the application for the library.
8567           The library will use the version string to compare it
8568           against the remote host's (usually a server) version
8569           string.  Affected file lib/silcclient/silcapi.h
8570
8571         * Added the KE protocol context to Key Agreement context
8572           in client library so that we can abort the SKE if it
8573           is in process when we get timeout.  Affected file is
8574           lib/silcclient/client_keyagr.c.
8575
8576         * Do not resolve the client ID forever if it returns in the
8577           first time that such client does not exist.  This was done
8578           for example with private message.  Affected file is
8579           lib/silcclient/client_prvmsg.c.
8580
8581 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8582
8583         * Do not add regex.h for WIN32.  The affected file
8584           includes/silcincludes.h.
8585
8586         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
8587           not work yet 100%.  It generates the DLL's automatically
8588           when compiling with --with-win32 under cygwin.
8589
8590 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8591
8592         * lib/contrib/regex.c is not compiled on WIN32.
8593
8594         * Added silc_net_get_socket_opt function to the
8595           lib/silcutil/silcnet.h.
8596
8597         * Added includes/silcwin32.h for WIN32 specific includes
8598           and definitions.
8599
8600         * Do not use ptime structure or any of the posix process
8601           functions on WIN32 in lib/silccrypt/silrng.c.
8602
8603         * Added silc_gettimeofday to provide generic function
8604           for struct timeval on all platforms.  Added the function
8605           to lib/silcutil/silcutil.h.
8606
8607 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8608
8609         * Moved the lib/silccore/silcsockconn.[ch] to the utility
8610           library as they clearly belong there.  As a plus side we
8611           can make the actual socket connection routines platform
8612           specific.
8613
8614           Added also new generic function silc_socket_read and
8615           silc_socket_write (that used to be silc_packet_[read/write].
8616           The implementation of these are platform specific.
8617
8618         * Added WIN32 specific routines of silc_socket_[read/write]
8619           to lib/silcutil/win32/silcwin32sockconn.c.
8620
8621 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8622
8623         * Added preliminary support for native WIN32 compilation under
8624           cygwin (using the -mno-cygwin option for GCC) to the
8625           ./configure.in.pre.  The --with-win32 now prepares the
8626           compilation for native WIN32.
8627
8628         * Rewrote the SILC Scheduler interface in the file
8629           lib/silcutil/silcschedule.h.  The scheduler is now context
8630           based and does not have anymore any global static scheduler.
8631           Moved the Unix scheduler to the lib/silcutil/unix/ directory
8632           and created lib/silcutil/win32 directory for WIN32 based
8633           scheduler.
8634
8635         * Added Unix specific network routines to the
8636           lib/silcutil/unix/silcunixnet.c and the old
8637           lib/silcutil/silcnet.c includes now only generic routines.
8638
8639           Added WIN32 specific network routines to the
8640           lib/silcutil/win32/silcwin32net.c.
8641
8642         * Added Unix specific utility functions from the
8643           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
8644
8645         * Added WIN32 SILC Scheduler to the file
8646           lib/silcutil/win32/silcwin32schedule.c. The code is of course
8647           untested.
8648
8649 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8650
8651         * Do not handle JOIN notify in the server if the target client
8652           is not registered (idata->registered == FALSE).  The affected
8653           file is silcd/packet_receive.c.
8654
8655         * Update the nickrec->founder in event_cumode in the Irssi SILC
8656           client.  Affected file irssi/src/silc/core/silc-channels.c.
8657
8658         * Fixed the CUMODE_CHANGE notify handling in the server when
8659           server and router are announcing their clients on channels.
8660           Now the mode changes are saved and notified correctly.  The
8661           affected file is /silcd/packet_receive.c.
8662
8663         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
8664           They really did not replace the cache entry in the ID Cache.
8665           Now they do that.  Affected file silcd/idlist.c.
8666
8667         * Fixed the KICK notify handling in the Irssi SILC client to
8668           update the channel records so that the kicked client does not
8669           appear to be on the channel.  The affected file is
8670           irssi/src/silc/core/silc-channels.c.
8671
8672         * Always update the conn->current_channel when executing command
8673           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
8674
8675         * Fixed the KILL notify handling in Irssi SILC client to remove
8676           the killed client on all channels.
8677
8678 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8679
8680         * Fixed the silc_parse_command_line to remove extra spaces
8681           from the start and end of the arguments.  Affected file is
8682           lib/silcutil/silcutil.c.
8683
8684         * Cancel and free any active protocol in the function
8685           silc_server_close_connection.  Affected file silcd/server.c.
8686
8687         * Cancel and free any active protocol in the function
8688           silc_client_close_connction.  Affected file is
8689           lib/silcclient/client.c.
8690
8691         * Do not execute the KILL command for clients that are in
8692           history (ie. they are not in the network).  Affected file is
8693           silcd/command.c.
8694
8695         * Fixed KILL notify handling, client does not crash anymore.
8696           Affected file irssi/src/silc/core/silc-channels.c.
8697
8698         * Reduced the default packet buffer size from 2048 to 1024 in
8699           lib/silccore/silcpacket.c.
8700
8701         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
8702           counter to the SKE context that is incresed when the SKE library
8703           performs async operation outside the library.  If the outside
8704           process frees the SKE context and FREED status will be set
8705           and the library will detect after the sync operation that the
8706           libary is freed.  The affected files are
8707           lib/silcske/silcske[_status].[ch].
8708
8709         * Resolve the client entry information in the function
8710           silc_client_channel_message to assure that NULL pointer is not
8711           passed as client entry to the application. */
8712
8713         * Fixed the task timeout calculation to assure that there is
8714           never negative timeouts.  The affected file is
8715           lib/silcutil/silcschedule.c.
8716
8717         * Fixed the channel user mode notification sending in server.
8718           It was sent point-to-point to the router (or to server by router)
8719           but it needs to be destined to a channel.  The routines now
8720           supports sending the channel user mode notifys to the channels
8721           when announcing clients and channels.  Affected files are
8722           silcd/server.c and silcd/packet_receive.c.
8723
8724         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8725           It did not actually replace the old channel entry in the cache.
8726           Affected file lib/silcclient/client_notify.c.
8727
8728 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8729
8730         * Fixed a possible crash in silc_packet_send_prepare.  It now
8731           assures always that there is enough space in the buffer and
8732           at the tail area of the buffer (for MAC).
8733
8734           Fixed the inbound buffer reallocation in silc_packet_read.
8735           It was old code and did not handle the reallocation correctly.
8736           Affected
8737
8738           The affected file is lib/silccore/silcpacket.c.
8739
8740         * Fixed buffer overflow in silc_parse_nickname in the file
8741           lib/silcutil/silcutil.c.
8742
8743 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8744
8745         * make install generates new server keys only if there is not
8746           keys already.
8747
8748 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8749
8750         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8751           Added check that if the NOREPLY is set then we will not send
8752           the away message.  This avoids infinite loop of away messages
8753           if both clients are away.  The affected file is
8754           lib/silcclient/client_prvmsg.c.
8755
8756         * Fixed client crash if /NICK was given without arguments.
8757           Affected file lib/silcclient/command.c.
8758
8759         * Server does not send the invite list in INVITE command back
8760           to the client if the list was not altered.  Added this notion
8761           to the protocol spec as well.  Affected file silcd/command.c.
8762
8763           Fixed possible crash in INVITE command by checking the
8764           value of silc_server_get_client_route command.
8765
8766         * Fixed the INVITE notify type handling.  The arguments are now
8767           taken in correct order and client does not crash.  The affected
8768           file is irssi/src/silc/core/silc-channels.c.
8769
8770           Removed the "Inviting xxx to channel" message from the
8771           client library away and let the application handle it.
8772           Affected file lib/silcclient/command.c.  Added that message
8773           to Irssi SILC client's message formats.
8774
8775         * Fixed CMODE command crash in client.  It now checks the
8776           amount of arguments correctly and does not crash.  The affected
8777           file is lib/silcclient/command.c.
8778
8779         * Do not create new channel automatically in silc_channels_join
8780           but check whether the channel by that name already exists.
8781           Affected file irssi/silc/core/silc-channels.c.
8782
8783         * Do not send the SERVER_SIGNOFF to router if the disconnected
8784           entity was the router.  Affected file silcd/server.c.
8785
8786         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8787           SILC client as it was missing from there.
8788
8789           Added the handling of the KICK notify to the Irssi SILC client
8790           as it was missing.  Added "you have been kicked" message to
8791           Irssi SILC client's message modules formats.
8792
8793           Added the handing of the KILL notify to the Irssi SILC client
8794           as it was missing.  Added the kill message module formats
8795           as well.
8796
8797           The affected file is irssi/src/silc/core/silc-channels.c.
8798
8799         * The router did not save the channel mode the server announced.
8800           Affected file silcd/packet_receive.c.
8801
8802         * Fixed a possible crash in INFO command in server.  If the
8803           server did not provide the server info it crashed.  Affected
8804           file silcd/command.c.
8805
8806 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8807
8808         * Fixed the GETKEY command in the server to check also the
8809           global list.  Otherwise the GETKEY would not work correctly
8810           in normal SILC server.  Affected file silcd/command.c.
8811
8812 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8813
8814         * Fixed GETKEY crash, it crashed if the command did not succseed.
8815
8816 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8817
8818         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8819           is now real and not just an macro interface to GMP.
8820
8821           Removed the entire GMP from the source tree and imported new
8822           NSS MPI library instead.  Reason for removing GMP is that it is
8823           extremely large and compiles extremely slow.  The NSS MPI
8824           is only a few files and compiles in less than 10 seconds.
8825           The speed is also about the same as GMP.  The MPI is imported
8826           to lib/silcmath/mpi.
8827
8828           If the system has GMP installed we will still use the GMP.
8829           If it is not then the NSS MPI will be compiled.
8830
8831 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8832
8833         * Merged a long nickname (127 characters long) crash bugfix from
8834           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8835
8836         * Merged a freed memory reference bugfix from Irssi CVS tree.
8837           Affected file irssi/src/core/commands.c.
8838
8839 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8840
8841         * Added the server's public key sving and verification to the
8842           server when performing the SKE.  This was missing and the
8843           remote server's (or router's) public key was accepted without
8844           checking whether we have it previously or trust it at all.
8845           Affected file silcd/protocol.c.
8846
8847 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8848
8849         * Check in the silc_server_timeout_remote if protocol is active
8850           and make sure that the protocol's final callback is called so
8851           that all memory if freed.  Affected file silcd/server.c.
8852
8853 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8854
8855         * silc_server_whois_send_reply crashed the server if the nickname
8856           was 127 characters long.  Affected file silcd/command.c.
8857
8858 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8859
8860         * Added sanity check to the silc_server_new_client. If the hostname
8861           is provided inside username then check that the provided hostname
8862           really is the same as the resolved one.  If the hostname was not
8863           resolved then check it from the public key.  Affected file is
8864           silcd/packet_receive.c.
8865
8866         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8867           if the server disconnected us and the connection is not valid
8868           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8869
8870         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8871           the library to the lib/silcutil/silcutil.[ch].
8872
8873 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8874
8875         * Close log file after open.  Affected file
8876           lib/silcutil/silclog.c.
8877
8878         * Check whether sock == NULL in silc_client_send_packet and return
8879           if it is.  Affected file lib/silcclient/silcclient.c.
8880
8881         * Check rec->entry == NULL in the Irssi SILC Client before
8882           sending the channel message.  Affecte file is
8883           irssi/src/silc/core/silc-servers.c.
8884
8885 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8886
8887         * Merged a splitted window bugfix from Irssi CVS tree.  The
8888           affected file is irssi/src/fe-text/textbuffer-view.c.
8889
8890         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8891           It did not print nickname.
8892
8893         * Improved the distributions system a bit.
8894
8895 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8896
8897         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8898           irssi/src/fe-text/gui-window.c.
8899
8900         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8901           to in-active server.  The affected file is
8902           irssi/src/silc/core/client_ops.c.
8903
8904         * Resolve the client in USERS command reply if the entry does
8905           not have username resolved.  The affected file is
8906           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8907           command to WHOIS command to really resolve stuff.  The USERS
8908           is not used any more in any critical section so WHOIS can
8909           be used even though it might be slower than IDENTIFY.
8910
8911         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8912           format.
8913
8914 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8915
8916         * Changed the protocol API a bit more consistent in the
8917           lib/silccore/silcprotocol.[ch].
8918
8919         * Changed the following headers to ROBODoc format:
8920
8921                 lib/silccore/silcpayload.h
8922                 lib/silccore/silcprotocol.h
8923                 lib/silccore/silcsockconn.h
8924
8925           All core library headers are now formatted.
8926
8927 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8928
8929         * Fixed a bug in Irssi SILC client; do not show that you are
8930           server/router operator if you really are not.  Affected file is
8931           irssi/src/silc/core/client_ops.c.
8932
8933         * Renamed silc_command_free_payload to silc_command_payload_free.
8934           Affected file lib/silccore/silccommand.h
8935
8936         * Added silcmath.h to include the prototoypes of various routines
8937           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8938           silcprimegen.h.
8939
8940         * Changed the following headers to ROBODoc format:
8941
8942                 lib/silccore/silcchannel.h
8943                 lib/silccore/silccommand.h
8944                 lib/silccore/silcid.h
8945                 lib/silccore/silcidcache.h
8946                 lib/silccore/silcmode.h
8947                 lib/silccore/silcnotify.h
8948                 lib/silccore/silcpacket.h
8949                 lib/silcmath/silcmath.h
8950
8951 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8952
8953         * Added checking to the server code not to start the server if
8954           ciphers and stuff are not configured properly.  Affected files
8955           silcd/serverconfig.[h] and silcd/server.c.
8956
8957         * Changed the layout of the header files of the public interfaces
8958           in the SILC libraries.  The new layout supports ROBODoc
8959           documentation tool (and some others) so that it is easy to create
8960           a library reference manual.  All the other headers and source
8961           code must still follow the CodingStyle document.  Also source
8962           code must not include these ROBODoc stuffs, only the headers.
8963           Furthermore, all public interface headers must now be named
8964           by using `silc' prefix, example: silcapi.h, silccipher.h.
8965           Some files were renamed due to this.  All the other headers
8966           must not be used as public interfaces.  I will update the
8967           CodingStyle document later.  Changed following headers, so far:
8968
8969                 lib/silcclient/silcapi.h
8970                 lib/silccore/silcauth.h
8971                 lib/silccore/silcprivate.h
8972                 lib/silccrypt/silcdh.h
8973
8974 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8975
8976         * Updated TODO.
8977
8978         * Removed silc_client_packet_send_flush from the client library
8979           as it is not needed.  Affected file lib/silcclient/client.[ch].
8980
8981         * Added printing of message of unresolved authentication method
8982           to the Irssi SILC client.  Added it to the module formats.
8983           Removed the same message from the client library.
8984
8985 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8986
8987         * Added new distribution feature, DISTLABEL.  Every distribution
8988           can define own preprocessor label that can be used in the
8989           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8990           file distributions, acconfig.h.pre and prepare.
8991
8992 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8993
8994         * Added Makefile.defines_int to include the actual definitions
8995           for Makefile.defines.in.  Tested the new distribution system,
8996           created distributions and tested installation.
8997
8998         * Added AWAY message printing to the Irssi SILC client.  Added
8999           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
9000
9001         * Added SCONNECT command to call the SILC's CONNECT command.
9002           Cannot use CONNECT directly since Irssi uses that internally.
9003           Affected file irssi/src/silc/core/silc-servers.c.
9004
9005           Added ACTION local command.  It is same as ME command but takes
9006           the channel as mandatory argument.
9007
9008           Rewrote some of the Irssi's help files to suite for SILC
9009           protocol.
9010
9011 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9012
9013         * Added Makefile.defines[.in] that should for now on be included
9014           in all Makefile.am file in the source tree.  That file includes
9015           all common compilation definitions for SILC source tree.
9016
9017 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9018
9019         * Minor changes to the ./prepare script to change the package
9020           name according the distribution name to the configure.in.
9021
9022 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9023
9024         * Created new distribution system.  Added file `distributions'
9025           that defines all the distributions that can be created out of
9026           the SILC source tree.  The ./prepare script now reads that
9027           file to determine how to prepare the distributions.  The
9028           first argument to the ./prepare is the name of the distribution
9029           and second is the version of the distribution.  If given
9030           without arguments it creates the default (toolkit) distribution
9031           with the default version (defined in ./prepare).
9032
9033           All Makefile.am files that are subject to the distributions
9034           are now named as Makefile.am.pre.  These are ./Makefile.am
9035           and lib/Makefile.am.  Others may be changed later.
9036
9037 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9038
9039         * Added invite list, ban list, some key management and connection
9040           error message printing to module formats in the Irssi SILC client.
9041
9042         * Added new silc_client_set_away_message to set the away message
9043           that is back to the person who sent private message.  The
9044           affected file lib/silcclient/silcapi.h and the
9045           lib/silcclient/client_prvmsg.c.
9046
9047 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9048
9049         * Fixed the private message sending in the Irssi SILC client,
9050           added local command KEY to the Irssi SILC client.
9051
9052           Added key management and key agreement message formats to the
9053           irssi/src/fe-common/silc/module-formats.[ch].
9054
9055           Added USERS (alias WHO) printing, server/router operator
9056           indication and LIST command printing to the module formats.
9057
9058 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9059
9060         * Fixed channel joining notify handling, cumode notify handling
9061           from Irssi SILC client.
9062
9063         * Added SILC specific module-formats to the Irssi SILC client so
9064           that SILC specific message hilighting, colors etc is possible.
9065           Affected file irssi/src/fe-common/silc/module-formats.[ch].
9066
9067           Added channel mode, channel user mode, actions, notices,
9068           whois and whowas printing to the the module-formats.c.
9069
9070         * Fixed a bug in channel deletion in the server.  The channel
9071           is not left to the cache even if the channel founder auth mode
9072           is set when there are no users anymore on the channel.  Affected
9073           file silcd/server.c.
9074
9075         * The silc_net_localhost now resolves the entire hostname including
9076           the domain name.  Affected file lib/silcutil/silcnet.c.
9077
9078 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9079
9080         * Changed the ask_passphrase client operation to be ascynchronous.
9081           It has now a completion callback and a context that the
9082           application must call after it has got the passphrase from
9083           the user.  Affected files lib/silcclient/silcapi.h,
9084           lib/silcclient/protocol.c, lib/silcclient/command.c and
9085           silc/client_ops.c.
9086
9087           Added SilcAskPassphrase callback that the application calls
9088           to deliver the passphrase to the library.
9089
9090         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
9091           The public key verification and especially a certificate
9092           verification is asynchronous procedure.
9093
9094           Added new SILC_SKE_STATUS_PENDING status to indicate the
9095           request is pending and a callback will be called to finalize
9096           the request.
9097
9098           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
9099           indicate that remote end did not send its public key (or
9100           certificate), even though we require it.  Added check for this
9101           condition in the SKE.  This was a security bug, now fixed.
9102
9103           Defined new SilcSKEVerifyCbCompletion callback that is called
9104           when the verification process is completed.
9105
9106           The affected files lib/silcske/silcske_status.h and
9107           lib/silcske/silcske.[ch].
9108
9109         * Changed the verify_public_key client operation to be async
9110           as well.  Defined SilcVerifyPublicKey callback that is used to
9111           indicate the success of the public key verification process.
9112
9113           Changed the server and client to use the new async client
9114           operations.
9115
9116         * Changed the Irssi SILC client's internal scheduler to be called
9117           twice as many times as it used to be.  As a result the client
9118           should be a bit faster now.  Affected file is
9119           irssi/src/silc/core/silc-core.c.
9120
9121         * Added support to Irssi SILC client of asynchronous public key
9122           verification and passphrase inquiry.  Affected file is
9123           irssi/src/silc/core/silc-core.c.
9124
9125 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9126
9127         * Do not say "You have left channel %s" in client library.
9128           Moved it to the application.  Affected files are
9129           lib/silcclient/command.c and silc/client_ops.c.
9130
9131         * Fixed silc_client_get_clients.  Command context was not
9132           duplicated and was freed memory in the callback.  Affected
9133           file lib/silcclient/idlist.c.
9134
9135         * Do not say "you are now talking..." on JOIN command in the
9136           client library.  The appliation must handle it.
9137
9138         * Do not say ".. changed topic to" in command reply in the
9139           client libary.  The application must handle it.
9140
9141         * Fixed TOPIC command sending in the client library.
9142
9143         * Fixed a memory leak in silc_client_command_free in the file
9144           lib/silcclient/command.c.
9145
9146 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9147
9148         * Imported a modified version of Irssi client to the source tree.
9149           The Irssi will be used to create a new client called
9150           Irssi SILC.  Imported to irssi/.
9151
9152           Added silc_core_init_finish function to the Irssi.  Affected
9153           file irssi/configure.in.
9154
9155           A lot changes in the Makefile.ams around the irssi tree.
9156
9157 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9158
9159         * Do not rehash if the new size is same as the old size of the
9160           hash table, in the silc_hash_table_rehash*.  The affected file
9161           lib/silcutil/silchashtable.c.
9162
9163         * Replaced hash_table_del_by_context calls from the server
9164           (when channel->user_list and client->channels) to the
9165           hash_table_del as it is sufficient and faster.
9166
9167 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9168
9169         * Added silc_hash_table_list, silc_hash_table_get and the
9170           SilcHashTableList structure to provide an alternative way to
9171           traverse the hash table.  The affected files are
9172           lib/silcutil/silchashtable.[ch].
9173
9174         * Changed the server's idlist routines to use the hash table
9175           routines to optimize the code.
9176
9177 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9178
9179         * Replaced the client entry's `channel' list and channel entry's
9180           `user_list' list to hash tables for optimized lookup.  Changed
9181           the code to use the hash table interface around the code.
9182           Affected file lib/silcd/idlist.[ch].
9183
9184         * Added `auto_rehash' boolean argument to the function
9185           silc_hash_table_alloc to indicate whether the hash table should
9186           auto-rehash when it thinks is appropriate time.  It will
9187           increase the hash table size if the there is twice as much
9188           entries in the table than the size of the table, and will
9189           decrease the size if there are twice as less entries than
9190           the size of the table.
9191
9192 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9193
9194         * Fixed silc_xxx_get_supported to not crash at some circumstances.
9195
9196 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9197
9198         * silc_idcache_purge_by_context deletes the entry now by context
9199           as it is supposed to do.  Affected file lib/silccore/idcache.c.
9200
9201         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
9202           client is not anymore valid (WHOWAS givens the info) and not
9203           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
9204
9205 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9206
9207         * Removed the `data' and `data_len' arguments from the ID Cache
9208           interfaces and added `name' argument.  ID Cache does not handle
9209           anymore the binary data only a names associated with given ID.
9210
9211         * When hashing a Client ID with silc_hash_id the entire ID is
9212           not hashed anymore, instead only the hash of the Client ID is
9213           hashed.  This way we can access the Client ID from the cache
9214           with Client ID but with the hash of the ID (which is a hash of
9215           the nickname) as well without any difference in performance.
9216
9217           Added also silc_idcache_find_by_id_one_ext to do one on one
9218           searching when we have the actual ID.  Added also function
9219           silc_hash_client_id_compare.  The affected files are
9220           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
9221
9222         * When hashing the name associated with a ID it is always done
9223           in lowercase.  This way we can access the cache without worrying
9224           about case-sensitivity, even though, for example nicknames are
9225           case sensitive.
9226
9227         * Fixed a bug in server with channel message sending.  It put
9228           wrong ID type as destination ID.  The affected file
9229           silcd/packet_send.c.
9230
9231         * silc_idcache_del_by_context now deletes from all hash tables
9232           by context.  Affected file lib/silccore/idcache.c.
9233
9234 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9235
9236         * Changed the client library to use the new ID Cache interface.
9237           Changes around the source tree.
9238
9239         * Added silc_hash_table_rehash_ext to rehash with specific
9240           hash function.  Affected file lib/silcutil/silchashtable.[ch].
9241
9242         * Added silc_hash_string_compare to compare two strings in the
9243           hash table.  Affected file lib/silcutil/silcutil.[ch].
9244
9245 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9246
9247         * Added new function silc_idcache_del_by_context into the
9248           lib/silccore/idcache.[ch].
9249
9250         * Changed the server's ID list routines to use the new ID Cache
9251           interface.  Changes around the source tree.
9252
9253 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9254
9255         * Added silc_hash_table_del[_by_context]_ext functions in to the
9256           lib/silcutil/silchashtable.[ch].
9257
9258           Removed silc_hash_table_find_all* routines and added new
9259           silc_hash_table_find_foreach to replace them.
9260
9261           Added silc_hash_table_replace_ext function as extended
9262           replacing function.  Separated the simple hash table interface
9263           from the extended hash table interface in the file
9264           lib/silcutil/silchashtable.h.
9265
9266         * Fixed minor bugs and changed it to use some of the new
9267           hash table functions in lib/silccore/idcache.c
9268
9269 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9270
9271         * Added new function silc_hash_table_find_all to return all keys
9272           in the hash table by the specified key.  As the hash table is
9273           collision resistant it also makes it possible to have several
9274           duplicate keys in the hash table.  This function may be used to
9275           find all of the keys from the hash.
9276
9277           Added user_context arguments to the SilcHashFunction,
9278           SilcHashCompare and SilcHashDestructor to deliver user specified
9279           context.
9280
9281           Added new fuctions silc_hash_table_find[_all]_ext to do
9282           extended lookup with specified hash and compare functions and
9283           specified user contexts.
9284
9285           Added new function silc_hash_table_add_ext to add the key
9286           with specified hash function and user context.
9287
9288           Added new function silc_hash_table_foreach to traverse all
9289           entrys in the hash table.  Added SilcHashForeach callback
9290           function.
9291
9292           Added new function silc_hash_table_del_by_context to delete
9293           the entry only if the context associated with the key matches.
9294
9295           Affected files are lib/silcutil/silchashtable.[ch].
9296
9297         * Removed silc_hash_[server/client/channel]_id and added just
9298           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
9299           silc_hash_id_compare to compare two ID's using as the hash table
9300           comparison function.  Added also silc_hash_data to hash
9301           binary data and silc_hash_data_compare to compare it.
9302
9303         * Removed silc_idlist_find_client_by_hash as it is not needed
9304           anymore.  Affected file silcd/idlist.[ch].
9305
9306         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
9307           to use internally the SilcHashTable.  The new ID Cache is a lot
9308           faster than the old one.  Some of the ID Cache interface was also
9309           rewritten and obsolete and stupid functions were removed.
9310
9311 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9312
9313         * Added entry_count field to the SilcHashTable to keep the number
9314           of the entries in the table.  Implemented the function
9315           silc_hash_table_rehash.  Added new function
9316           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
9317
9318           Fixed a minor bug in silc_hash_table_free.
9319
9320         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
9321           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
9322           into the lib/silcutil/silcutil.[ch].
9323
9324 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9325
9326         * Implemented a collision resistant hash table into the
9327           lib/silcutil/silchashtable[ch].  See the header and the source
9328           for the SilcHashTable API.
9329
9330 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9331
9332         * Merged dotconf version 1.0.2 into lib/dotconf.
9333
9334 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9335
9336         * Do not compile anything in lib/silcsim/* if the SIM support
9337           is not enabled.  The tree should now compile without problems
9338           under cygwin.
9339
9340 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9341
9342         * Compiled the SILC under cygwin.  Compiled and tested briefly
9343           without problems.  More tests needed.  The SIMs didn't compile
9344           though.
9345
9346         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
9347
9348         * Fixed possible crash in silc_get_username in the
9349           lib/silcutil/silcutil.c.
9350
9351 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9352
9353         * Fixed a va_arg in silc/client_ops.c.
9354
9355         * Oops, RC5 routines were named AES and caused some problems
9356           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
9357
9358 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9359
9360         * Added new SilcIDIP structure into the lib/silccore/id.h and
9361           replaced the old `ip' fields from all SILC ID's to that type.
9362           This is a step towards IPv6 support.
9363
9364           The silc_id_get_len takes now the ID as an extra argument.
9365           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
9366           both IPv4 and IPv6 based ID's.
9367
9368           The affected files are lib/silccore/id.[ch] and other files
9369           around the tree using these routines.
9370
9371         * Removed the ID length arguments in server from various
9372           silc_server_send_notify_* routines -> they are not needed
9373           anymore.
9374
9375 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9376
9377         * Fixed memory leak in silc_encode_pem_file in the file
9378           lib/silcutil/silcutil.c.
9379
9380 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9381
9382         * Check minor version as well in the SKE.  Affected files are
9383           silcd/protocol.c and lib/silcclient/protocol.c.
9384
9385         * Added --identifier option to the server so that an identifier
9386           can be when creating the public key for the server.  Affected
9387           file is silcd/silcd.c.
9388
9389         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
9390           lib/silccrypt/silcpkcs.c.
9391
9392 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9393
9394         * Register default ciphers and stuff when using -C option with
9395           the server.  Affected file sildc/silcd.c.
9396
9397         * Put back the servers public key filename format, it is better
9398           than the new one.  For now, the client keys are saved with the
9399           new filename format.  The affected file silc/client_ops.c.
9400
9401         * Implemented the Cipher API for the rest of the ciphers that
9402           did not implement it or implemented it the wrong way.
9403
9404 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9405
9406         * Register default ciphers and stuff when using the -S option
9407           in the client.  Affected file silc/silc.c.  Same also when
9408           creating new key pair with -C option.
9409
9410 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9411
9412         * Fixed the silc_verify_public_key client operation function to
9413           save the public keys differently.  The fingerprint is now
9414           used as filename and not the hostname.  This way also the
9415           client keys are saved uniquely and not with hostnames.  The
9416           affected file is silc/client_ops.c.
9417
9418         * Trimmed the silc_hash_fingerprint function to remove extra
9419           whitespaces from the end of the fingerprint.  The affected
9420           file is lib/silccrypt/silchash.c.
9421
9422         * Updated TODO.
9423
9424         * Added silc_cipher_register_default function to register all
9425           default ciphers.  It can be used when configuration files
9426           does not exist and the application does not want any specific
9427           ciphers in any specific order.
9428
9429           The SilcDList is now used as silc_cipher_list dynamically
9430           allocated cipher list.  Removed the static list all together
9431           and now all ciphers must be allocated to the dynamic list.
9432           The silc_cipher_alloc routine was changed to check only the
9433           dynamic list.
9434
9435           All silc_cipher_* routines that used to return int returns
9436           now bool.
9437
9438           The affected files lib/silccrypt/silccrypt.[ch].
9439
9440         * The same thing was done to silc_hash_* as for silc_cipher_*
9441           routines.  Affected files lib/silccrypt/silchash.[ch].
9442
9443         * The same thing was done to silc_pkcs_* as for silc_cipher_*
9444           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
9445           Added also silc_pkcs_[un]register[_default] functions.
9446           Removed the data_context from the PKCS API.
9447
9448         * Added silc_hmac_register_default function to register default
9449           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
9450           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
9451           to unregister all hmacs at once.
9452
9453         * Register the default ciphers, hash functions, PKCSs and HMACs
9454           if client's configuration file does not exist.  The affected
9455           file silc/silc.c.
9456
9457         * The client did not load the hash functions from the SIM
9458           modules at all.  Added support for this.  Affected file is
9459           silc/clientconfig.c.
9460
9461         * When decoding public key with silc_pkcs_public_key_decode, check
9462           the supported algorithm only if PKCS are registered.  Affected
9463           file lib/silccrypt/silcpkcs.c.  The same was done with the
9464           silc_pkcs_private_key_decode.
9465
9466         * Fixed the SILC List routines to keep the list always in order.
9467           It used to change the list's order when traversing the list but
9468           not it preserves the order.  Affected file lib/trq/silclist.h.
9469
9470 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9471
9472         * Added the client library to use the SilcSocketConnection's
9473           reference counter (by silc_socket_dup) to prevent the bug that
9474           the socket object may be freed underneath async operation.
9475
9476         * The name resolv library checking fixes in the configure.in.pre.
9477           The patch by salo.
9478
9479         * Created new version of the protocol drafts for future
9480           development. The -03 drafts are the ones that will be changed
9481           in the trunk now and the -02 will remain as they are.
9482
9483         * Send list of CUMODE notifys to the router when announcing
9484           the channel users to the router.  Affected file silcd/server.c.
9485           If the router receiving channel founder CUMODE for a channel
9486           that already has channel founder it will send CUMODE notify
9487           to the sender to remove the channel founder rights from the
9488           announced client.  Affected file silcd/packet_receive.c.
9489
9490         * The CUMODE notify may now use Server ID as well as the entity
9491           who changes the mode.  Updated protocool specs.
9492
9493         * Updated INSTALL and README files.
9494
9495 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9496
9497         * New web pages in the http://silc.pspt.fi.  The pages was
9498           designed by salo.
9499
9500         * Updated CREDITS.
9501
9502 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9503
9504         * Implemented the [DenyConnectin] config section in the server.
9505           Added silc_server_config_denied_conn to check whether incoming
9506           connection is denied.  Affected file silcd/serverconfig.[ch].
9507
9508         * Do not check the ports when checking the incoming configuration
9509           data if the port is 0, meaning any.  Affected file is
9510           silcd/serverconfig.c.
9511
9512 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9513
9514         * Fixed buffer overflow in silc_string_compare in the file
9515           lib/silcutil/silcutil.c.
9516
9517         * Fixed double free in silc_server_command_leave in the file
9518           silcd/command.c.
9519
9520 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9521
9522         * Fixed the version checking in the server.  Affected file is
9523           silcd/protocol.c.
9524
9525 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9526
9527         * Fixed the configuration data fetching when accepting new
9528           connections in the server.  Affected file silcd/server.c.
9529
9530 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9531
9532         * Added `sender_entry' argument to the function
9533           silc_server_packet_relay_to_channel so that we can check
9534           whether some destination actually belongs to the same route
9535           the sender belongs (ie, we must not resend the packet to the
9536           sender).  Affected file silcd/packet_send.[ch].
9537
9538         * Added `servername' field to the SilcClientEntry in the server
9539           to hold the name of the server where client is from.  Affected
9540           file is silcd/idlist.h.
9541
9542 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9543
9544         * Moved the channel message encrypting in the router betwen
9545           router connections from silc_server_channel_message to the
9546           silc_server_packet_relay_to_channel since we want to check
9547           whether we have anybody channel before encrypting anything.
9548           Affected files silcd/packet_[receive/send].c.
9549
9550 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9551
9552         * Fixed the [AdminConnection] server config section to support
9553           multiple entries.  Affected file silcd/serverconfig.c.
9554
9555         * Added support into the server to check the validity of the
9556           incoming connection before executing any KE or authentication
9557           protocols.
9558
9559         * The connection configuration is now saved to the KE and
9560           connection auth protocol contexts and not fetched anymore in
9561           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
9562
9563         * The local hosts listenning address and port is also resolved
9564           now when starting the server.  We want to have the socket object
9565           to include the real address and port for the listener.  Added
9566           new function silc_net_check_local_by_sock into the files
9567           lib/silcutil/silcnet.[ch].
9568
9569         * Fixed a broadcast bug in server -> do not broadcast if we
9570           are standalone.
9571
9572         * Fixed a routing bug.  Do not route broadcast packets ever.
9573           Broadcast packets must be processed always and not routed since
9574           they may be destined to some other host than yourself and thus
9575           would get routed without no good reason.  Affected file is
9576           silcd/server.c.
9577
9578         * Added function silc_server_config_is_primary_route to check
9579           whether primary router connection has been configured (a router
9580           configuration that we are initiating).  If there is not, we
9581           will assume that there is only two routers in the SILC network
9582           and we will use the incoming router connection as our primary
9583           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
9584
9585         * Changed the order of the broadcasting.  Broadcast _after_ the
9586           packet has been processed not before.  Affected file is
9587           silcd/server.c.
9588
9589         * Fixed a [ClientConnection] parsing bug.  The port was never
9590           parsed correctly thus resulting to port 0.  Affected file
9591           silcd/serverconfig.c.
9592
9593         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
9594           argument and did not set the broadcast packet flag.  Affected
9595           file silcd/packet_send.c.  Fixed same bug in the function
9596           silc_server_send_notify as well.
9597
9598         * If we receive NEW_ID packet for our own ID in the server, ignore
9599           the packet.
9600
9601 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9602
9603         * Updated TODO.
9604
9605         * Removed the nickname from the Private Message Payload.
9606           Updated the code and the protocol specs.
9607
9608         * Updated protocol specs for submitting to the IETF.
9609
9610         * Tweaked the Random Number Generator a bit.  Affected file
9611           lib/silccrypt/silcrng.c.  Exported a new function
9612           silc_rng_[global]_add_noise which can be used to add more
9613           noise to the RNG.
9614
9615 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9616
9617         * Do not parse packets with different timeout when protocol
9618           is active -> may cause problem with rekey.  Affected file
9619           silcd/server.c.
9620
9621         * When server receives signoff notify it must not create
9622           new channel key if the client is on any channels since the
9623           sender of the signoff notify will create it.
9624
9625 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9626
9627         * Added printing of error messages during SKE protocol from the
9628           failure packet sent by server during SKE.  Affected file
9629           silc/client_ops.c.
9630
9631         * Removed the client's failure_callback handling with timeout
9632           and handle it immediately when received.
9633
9634         * The SKE library returned wrong type in SUCCESS and FAILURE
9635           packets.  They must be 32 bit MSB not 16 bit MSB.
9636
9637 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9638
9639         * Ok, rewrote the logic of the re-key and now it seems to work.
9640           I tested it on high traffic with frequent re-keys without
9641           problems.  Added hmac_receive (and renamed hmac to hmac_send)
9642           in SilcClientConnection in lib/silcclient/client.h and
9643           in SilcIDListData in silcd/idlist.h.  Also, removed the
9644           SilcPacketParserContext's cipher and hmac fields as they are
9645           not needed anymore and actually caused some problems when
9646           the ciphers and hmac's changed underneath the packet parser.
9647
9648 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9649
9650         * If re-key protocol is active then process the incoming packets
9651           synchronously since we must assure that icoming packets encrypted
9652           with the old key is processed before the new keys is set to
9653           use.  This is true other packets than for REKEY packets.
9654           Affected file silcd/server.c.  The same was done to client library
9655           as well, affected file lib/silcclient/client.c.
9656
9657 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9658
9659         * Fixed bug in client and server to accept the force send if
9660           the packet is send from silc_[server/client]_packet_process
9661           function.  Otherwise the packets are never delivered, oops.
9662
9663 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9664
9665         * Disable force sending of packets when REKEY protocol is active.
9666           We must assure that no packet is sent directly when rekey is
9667           performed.  All packets must be sent through packet queue.
9668           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
9669           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
9670           function is silc_[server/client]_packet_send_real to check
9671           the situation.
9672
9673         * Replaced the SIM paths from example config files to
9674           /usr/local/modules.  Also, make install creates now
9675           /usr/local/silc/logs directory to hold all the SILC server
9676           logs.
9677
9678 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9679
9680         * Made the configure.in.pre work on Solaris.  Patch by salo.
9681
9682         * Made all ciphers compatible with non-x86 machines.  Defined
9683           CBC mode macros into lib/silccrypt/ciphers_def.h.
9684
9685 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9686
9687         * Fixed the make install.
9688
9689 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9690
9691         * When MAC computation fails the silc_packet_decrypt returned 0
9692           even though it was supposed to return -1.  Fixed this.  The
9693           affected file is lib/silccore/silcpacket.c.
9694
9695         * Do not replace the config files in /etc/silc (in make install)
9696           if they already exist.  Affected file ./Makefile.am.
9697
9698         * Do not send re-key packets immediately but through packet queue.
9699           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
9700
9701         * Changed silc_net_check_host_by_sock to return FALSE if the
9702           IP/DNS could not be resolved.  Though, it returns the IP address
9703           now even if it could not resolve it (but returns also FALSE).
9704           Affected file lib/silcutil/silcnet.[ch].
9705
9706 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9707
9708         * Added silc_pkcs_decode_identifier to decode the public key's
9709           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
9710           Added also silc_pkcs_free_identifier.  Added also new context
9711           SilcPublicKeyIdentifier.
9712
9713         * Added -S option to the silc client.  It is used to dump the
9714           contents of the specified public key file.
9715
9716         * Changed the PKCS api to return the public key length when
9717           setting the public key.
9718
9719         * Fixed a fatal bug in the public and private key file loading.
9720           Affected file lib/silccrypt/silcpkcs.c.
9721
9722         * Execute the packet parsing for client with zero (0) timeout
9723           if the protocol is active.  Affected file silcd/server.c.
9724
9725 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9726
9727         * Made the key generation options to the silcd program.  Added
9728           -C option, equivalent to client's option.
9729
9730         * Added new [ServerKeys] config section to the server.  It
9731           configures the server's public and private key.
9732
9733         * Defined generic Public Key Payload into the protocol
9734           specification to send specific type of public keys and
9735           certificates.
9736
9737         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9738           public key or certificate.
9739
9740         * Implemented the GETKEY command to the server and to the
9741           client library and on user interface.
9742
9743 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9744
9745         * Made preliminary `make install' work.
9746
9747 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9748
9749         * Added SilcServerRekey context into silcd/idlist.h.
9750
9751         * Added the PFS support as defined in the specification to the
9752           SKE protocol.  Affected files lib/silcske/*.c.
9753
9754         * Added `ske_group' field to the SilcServerRekey context to hold
9755           the number of the SKE group that is used with PFS in re-key.
9756           Affected file silcd/idlist.h.
9757
9758         * Added PFS re-key support to the server.  Affected file is
9759           silcd/protocol.c.
9760
9761         * Added silc_protocol_cancel to cancel execution of the next
9762           state of the protocol.  Affected file is
9763           lib/silccore/silcprotocol.[ch].
9764
9765         * Added the re-key support with and without PFS to the client
9766           library.  Re-key is performed once in an hour, by default.
9767
9768           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9769           Added silc_client_rekey_callback and silc_client_rekey_final.
9770           Affected files are lib/silcclient/protocol.[ch] and
9771           lib/silcclient/client.[ch].
9772
9773         * Removed the `hmac_key' and `hmac_key_len' fields from the
9774           SilcClientConnection structure; not needed.  Affected file is
9775           lib/silcclient/client.h.
9776
9777         * Updated TODO.
9778
9779 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9780
9781         * Do not ask whether user wants to use the negotiated private key
9782           for private messages, just use it.  Affected file is
9783           silc/local_command.c.
9784
9785         * Added `send_enc_key' and `enc_key_len' fields to the
9786           SilcIDListData structure since they are needed in the re-key
9787           phase.  Affected file is silcd/idlist.[ch].
9788
9789         * Implemented the simple re-key protocol into the server.
9790           Affected files silcd/server.c and silcd/protocol.[ch].  The
9791           re-key will be performed once in an hour, by default.
9792
9793           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9794           Added silc_server_rekey, silc_server_rekey_callback and
9795           silc_server_rekey_final.
9796
9797         * Removed Tunneled flag from the protocol.  Updated the code
9798           and the specifications.
9799
9800         * Adde `pfs' field to the SilcIDListData to indicate whether
9801           the PFS is to be performed in the re-key.  Affected file is
9802           silcd/idlist.h.
9803
9804 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9805
9806         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9807           int64 of at least the xintXX size.  If void * is less that 4
9808           bytes uint32 * will be used.  Defined bool as boolean.
9809
9810         * Changed _ALL_ unsigned long and unsigned int to uint32,
9811           unsgined short to uint16 in the source tree.
9812
9813         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9814           not handle clients that has entry->data.registered == FALSE.
9815           They are not in the network anymore.  Affected file is
9816           silcd/server.c.
9817
9818 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9819
9820         * Implemented the sending of the SERVER_SIGNOFF notify in the
9821           server.  Affected file is silcd/server.c.
9822
9823         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9824           Added also silc_notify_payload_encode_args into the
9825           lib/silccore/silcnotify.[ch].
9826
9827         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9828           Affected file silcd/packet_receive.c.
9829
9830         * Implemented the SERVER_SIGNOFF notify handling in the client
9831           library.  Affected file lib/silcclient/client_notify.c.  Also,
9832           implemnted the printing of the SERVER_SIGNOFF info to the
9833           application.  Affected file silc/client_ops.c.
9834
9835         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9836           if the deleting was successful.  Affected file silcd/idlist.[ch].
9837
9838         * Added support for public key authentication in the connection
9839           authentication protocol in the client library.  Affected file
9840           lib/silcclient/protocol.c.
9841
9842         * Changed the server's silc_idlist_get_clients_by_* interface
9843           to support already allocated array so that new entries may be
9844           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9845           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9846           and command replies.
9847
9848         * All command reply functions in the server now calls the
9849           pending command callback even if error occured.  This way the
9850           error will be delivered to the client as well.  Affected files
9851           silcd/command.c and silcd/command_reply.c.
9852
9853         * Fixed INFO command to return local server's info if no server
9854           was provided.  Affected file lib/silcclient/command.c.
9855
9856         * Removed RESTART command for good.  Updated the code and the
9857           protocol specs.
9858
9859         * Rewrote parts of the task system.  It is a bit simpler now.
9860           Removed unsued task priorities. The affected files are
9861           lib/silcutil/silctask.[ch].
9862
9863 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9864
9865         * Moved the USERS printing from the library to the application.
9866           Affected files lib/silcclient/command.c and silc/client_ops.c.
9867
9868 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9869
9870         * Updated TODO.
9871
9872         * Added channel key re-key support.  The re-key is perfomed
9873           only by the router and is done once in an hour.  Added `rekey'
9874           field to the SilcChannelEntry in the server.  Affected files
9875           silcd/server.c and silcd/idlist.h.
9876
9877         * Added silc_task_unregister_by_context into the file
9878           lib/silcutil/silctask.[ch].
9879
9880 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9881
9882         * Added SILC_UMODE_GONE mode to indicate when the client is not
9883           present in the SILC network.  Added also support to the local
9884           command AWAY that will set this mode.  Added support of showing
9885           "xxx is gone" in WHOIS command.  The USERS command shows the
9886           gone status as well.
9887
9888         * Fixed setting server and router operator privileges in the
9889           server's UMODE command.  Affected file silcd/command.c.
9890
9891         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9892           new KE payload is equivalent to the old KE2 payload.
9893
9894           Cleaned up the SKE Start Payload parsing.  It now uses the
9895           simple buffer unformatting to do the parsing.  A lot faster
9896           now.
9897
9898           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9899           to the SKE that is used to indicate whether both of the SKE
9900           parties should perform authentication.  By default only the
9901           responder performs authentication.  By setting this flag also
9902           the initiator must do authentication.  By default it is unset
9903           since in normal SKE case, client to server connection, only
9904           the responder should do authentication.  When doing SKE between
9905           two clients both should perform authentication.  Updated the
9906           code and the protocol specs.
9907
9908         * A little fix to IDENTIFY command in the server.  Search the
9909           client first by hash not nickname.  Affected file is
9910           silcd/command.c.
9911
9912         * Fixed the silc_client_close_connection to support closing
9913           the client to client connections wihtout deleting too much
9914           data.  Affected file lib/silcclient/client.c.
9915
9916         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9917           are received if protocol used to be active but is not anymore
9918           the application would crash due to NULL pointer dereference.
9919           Affected files silcd/server.c and lib/silcclient/client.c.
9920
9921         * Added `hash' field to the SilcClientConnection to include
9922           the hash function negotiated in the SKE protocol.
9923
9924         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9925           to set the channel founder authentication data.  A client can
9926           claim the founder rights later by providing the authentication
9927           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9928           This way the channel founder can regain the channel founder
9929           privileges even it is left the channel.  This works only on
9930           local server and the client must be connected to the same
9931           server to be able to regain the founder rights.  Updated the
9932           protocol specs accordingly.
9933
9934           Added support to the CMODE command in the client to set the
9935           founder auth data.  Read the README to see how to set it.
9936
9937           Added support to the CUMODE command to claim the founder
9938           rights.  Read the README to see how to do it.
9939
9940           Added support for the founder authentication to the Channel
9941           Entry in the server.  Affected file silcd/idlist.h.
9942
9943           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9944           server's CMODE command.  Affected file silcd/command.c.
9945
9946         * Added the following new functions into lib/silccore/silcauth.[ch]:
9947           silc_auth_get_method and silc_auth_get_data.
9948
9949         * The server now saves the remote hosts public key to the
9950           SilcIDListData pointer.  Affected file silcd/protocol.c.
9951
9952         * The normal server now does not remove the channel entry from
9953           the cache if the founder authentication data is set.  It used
9954           to remove it if the founder was the last one on the channel on
9955           the server and left the channel.  The auth data is saved and
9956           if the channel is re-joined later the old entry is used with
9957           the old auth data.  Affected files silcd/command_reply.c and
9958           silcd/server.c.
9959
9960         * Removed the `pkcs' field from the SilcIDListData structure
9961           in the server; it is not used.  Affected file silcd/idlist.h.
9962
9963 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9964
9965         * Fixed packet processing on slow links.  Partial packets were
9966           never re-processed because the incoming data buffer was cleared
9967           by the application.  Application must not directly clear the
9968           sock->inbuf, the packet processing routines handle it.  Fixed
9969           this in client library and in server.
9970
9971 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9972
9973         * Fixed the WHOIS and IDENTIFY send reply function to really
9974           check whether to send list or just one entry.  Affected file
9975           silcd/command.c.
9976
9977         * Cleaned up the LEAVE command's channel key distribution.  The
9978           affected file silcd/command.c.
9979
9980         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9981           can enforce the channel mode as well.  In that case the ID
9982           includes the ID of the server.  The code now enforces the
9983           mode change if the router have different mode than the server.
9984
9985         * The notify client operation with CMODE_CHANGE notify can now
9986           return NULL client_entry pointer if the CMODE was not changed
9987           by client.  Application must check for this.
9988
9989         * Added <Server ID> argument to INFO command to support server
9990           info fetching by Server ID.
9991
9992         * Added silc_server_announce_get_channel_users to get assembled
9993           packets of channel users of the specified channel.  Affected
9994           file silcd/server.[ch].
9995
9996         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9997           was freed underneath the ID Cache.
9998
9999         * Re-announce clients when the server received CHANNEL_CHANGE
10000           notify from the router.  Affected file silcd/packet_send.c.
10001
10002 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10003
10004         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
10005           crashed since it did not handle the fact that there is no cipher
10006           called "3" and didn't check the error condition.  Now fixed.
10007
10008         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
10009           flag.  It can be used to send message requests.
10010
10011 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10012
10013         * Implemented the RESTART command in the client.
10014
10015         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
10016           notice type messages.  Added notice printing to the user
10017           interface.
10018
10019         * The channel keys are not re-generated if the channel's mode
10020           is PRIVKEY, ie private key on the channel exists.  Affected
10021           files silcd/server.c and silcd/command.c.
10022
10023         * Fixed a little bug in channel message delivery when channel
10024           private keys are set in the server.  Affected file is
10025           silcd/packet_send.c.
10026
10027         * Changed the setting on channel->on_channel = TRUE from the
10028           silc_client_save_channel_key to the JOIN command reply.  The
10029           key payload is not received if the private channel key is set.
10030           Affected file lib/silcclient/command_reply.c and the
10031           lib/silcclient/client_channel.c.
10032
10033         * When the CMODE_CHANGE notify is sent and the channel private
10034           key mode is removed the channel key must be re-generated in
10035           other cells as well.  Added this support for the router in the
10036           silcd/packet_receive.c.
10037
10038         * Added new local command NOTICE to send notice message on
10039           channel.  Affected file silc/local_command.[ch].
10040
10041 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10042
10043         * Added new local command ME to the client.  It is used to send
10044           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
10045           some action.  Affected file silc/local_command.[ch].
10046
10047         * Changed channel_message and private_message client operations
10048           to deliver the message flags to the application.  Added also
10049           the `flags' arguments to the silc_client_send_channel_message
10050           and silc_client_send_private_message functions.  Affected file
10051           silcapi.h.
10052
10053 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10054
10055         * Redefined the Private Message Payload to support private message
10056           keys and to support the new private message flags.  Updated
10057           the protocol specs.  Flags makes it possible to have for example
10058           CTCP style messages.
10059
10060         * Added new type SilcPrivateMessagePayload and defined an API
10061           for it in the lib/silcclient/silcprivate.[ch].
10062
10063         * Tested private message private keys successfully.  Tested the
10064           private message key set, unset and list commands with the new
10065           KEY command.
10066
10067         * Redefined the Channel Message Payload to include the channel
10068           message flags (equal with private message flags) to support
10069           for example CTCP style messages.
10070
10071         * Defined some of the message (for channel and private message)
10072           flags.  Updated the protocol specs and added the flags to the
10073           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
10074
10075 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10076
10077         * Added SilcKeyAgreementStatus type to the key agreement routines
10078           to indicate the current status and error if one occured.
10079           The status types are defined in the lib/silcclient/silcapi.h.
10080
10081         * Added new local command KEY that is used to set and unset private
10082           keys for channels, set and unset private keys for private messages
10083           with remote clients and to send key agreement requests and
10084           negotiate the key agreement protocol with remote client.  The
10085           key agreement is supported only to negotiate private message keys,
10086           it currently cannot be used to negotiate private keys for channels,
10087           as it is not convenient for that purpose.
10088
10089         * Fixed a minor pending callback setting bug in the function
10090           silc_client_get_client_by_id_resolve, now the function works.
10091           Affected file lib/silcclient/idlist.c.
10092
10093         * Added function silc_net_get_local_port to get local bound
10094           port by socket.  Added to lib/silcutil/silcnet.[ch].
10095
10096         * Added `sockets' and `sockets_count' fields to the SilcClient
10097           object.  They hold the sockets of the listenning sockets in
10098           the client.  Listenning sockets may be for example the key
10099           agreement server.  Affected file lib/silcclient/client.[ch].
10100           Added functions the silc_client_add_socket and the
10101           silc_client_del_socket.  They are exported to the application
10102           as well.
10103
10104         * Added ~./silc/clientkeys to support other client's public keys.
10105
10106         * Renamed verify_server_key client operation to verify_public_key
10107           and added one argument to indicate the type of the connection
10108           (server, client etc.).
10109
10110 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10111
10112         * Added silc_server_connection_auth_request to handle the
10113           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
10114           silcd/packet_receive.[ch].
10115
10116         * Added silc_server_send_connection_auth_request into the
10117           silcd/packet_send.c to send the connection auth request packet.
10118
10119         * Cleaned up the silcd/protocol.c a bit and fixed some memory
10120           leaks.
10121
10122         * Fixed the public key authentication in responder side in the
10123           server.  The `auth_data' pointer includes the SilcPublicKey
10124           not the path to the public key.  Affected file silcd/protocol.c.
10125
10126         * Implemented the public key authentication in the initiator side
10127           in the server.  Affected file silcd/protocol.c.
10128
10129         * Removed the [RedirectClient] config section from the server
10130           configuration.  Is not needed and I don't want to implement it.
10131
10132 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10133
10134         * Cleaned up the CMODE command in the server.  It now works
10135           correctly and supports all the modes defined in the protocol.
10136           Affected file is silcd/command.c.
10137
10138         * Added `hmac_name' field to the SilcChannelEntry in the server
10139           to hold the default HMAC of the channel.  It can be set when
10140           creating the channel (with JOIN command).  Affected files
10141           silcd/idlist.[ch].
10142
10143         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
10144           type to indicate the change of the current cipher and hmac
10145           on the channel.  Client can safely ignore the <cipher> argument
10146           (if it chooses to do so) since the CHANNEL_KEY packet will
10147           force the channel key change anyway.  The <hmac> argument is
10148           important since the client is responsible of setting the new
10149           HMAC and the hmac key into use.
10150
10151         * Fixed the CMODE command in the client library as well.
10152
10153         * Tested CMODE command in router environment successfully.
10154
10155 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10156
10157         * Show the version of the remote client (or server) when connecting
10158           to the server.  It is logged to the log file.  Affected file
10159           is silcd/protocol.c.
10160
10161         * Fixed the KILLED notify handling in the client library.  The
10162           client must be removed from all channels when receiving the
10163           KILLED notify.
10164
10165           Also, do not remove the client entry when giving the KILL
10166           command but when the KILLED notify is received.
10167
10168         * Removed silc_idlist_find_client_by_nickname from the server.
10169           Not needed anymore.  Affected files silcd/idlist.[ch].
10170
10171         * Implemented the CHANNEL_CHANGE notify type handling to the
10172           server.  Affected file silcd/server.c.
10173
10174         * Updated TODO.
10175
10176 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10177
10178         * Added silc_server_send_notify_invite to send the INVITE
10179           notify between routers.
10180
10181         * Implemented the INVITE command correctly to the server.
10182
10183         * Implemented the INVITE notify type handling in the server.
10184
10185         * Implemented the INVITE command to the client library and on the
10186           user interface.
10187
10188 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10189
10190         * Added function silc_server_get_client_resolve to find the
10191           client entry by ID from all ID lists and then resolve it
10192           (using WHOIS) if it cannot be found.  Affected file is
10193           silcd/server.[ch].
10194
10195 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10196
10197         * Implemented the BAN command to the client library.
10198
10199         * The JOIN command in the server now checks the invite list
10200           and the ban list.
10201
10202         * Changed the silc_command_reply_payload_encode_va and the
10203           silc_command_payload_encode_va to support that if argument is
10204           NULL it ignores and checks the next argument.  Affected file
10205           lib/silccore/silccommand.c.
10206
10207         * Added silc_server_send_notify_ban to send the BAN notify
10208           type between routers.
10209
10210         * Chaned the silc_notify_payload_encode to support that if
10211           argument is NULL it ignores and checks the next argument.
10212           Affected file lib/silccore/silcnotify.c.
10213
10214         * Tested ban lists in router environment successfully.
10215
10216 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10217
10218         * Implemented BAN command to the server, in silcd/command.[ch].
10219
10220         * Removed the BAN and INVITE_LIST modes from the CMODE command
10221           in the server code.
10222
10223         * Added function silc_string_match to regex match two strings.
10224           Affected files lib/silcutil/silcutil.[ch].
10225
10226 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10227
10228         * Redefined parts of the SilcChannelEntry in the server to support
10229           the new ban and invite lists.
10230
10231 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10232
10233         * Redefined the INVITE command.  The same command can be used to
10234           invite individuals to the channel but also to manage the invite
10235           list of the channel (to add to and remove from the invite list).
10236           Updated the protocol specs.
10237
10238         * Added new command SILC_COMMAND_BAN that can be used to manage
10239           the ban list of the channel.  Updated the protocol specs.
10240
10241         * Removed the channel modes: the SILC_CMODE_BAN and the
10242           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
10243           in the CMODE command.  The equivalent features are now available
10244           using INVITE and BAN commands.  Updated the protocol specs.
10245
10246         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
10247           in the network about change in the current ban list.  The notify
10248           type is not used by the client.
10249
10250         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
10251           support the invite lists.
10252
10253 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10254
10255         * Added new function silc_string_regexify that converts string
10256           including wildcard characters into regex string that can
10257           be used by the GNU regex library.  Added into the file
10258           lib/silcutil/silcutil.[ch].
10259
10260           Added silc_string_regex_combine to combine to regex strings
10261           into one so that they can be used as one regex string by
10262           the GNU regex library.  Added into the file
10263           lib/silcutil/silcutil.[ch].
10264
10265           Added silc_string_regex_match to match two strings.  It returns
10266           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
10267
10268 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10269
10270         * Imported GNU regex to the soruce tree into lib/contrib.
10271           Fixed some compiler warning from the regex.c.
10272
10273 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10274
10275         * Fixed MOTD command in the server to work in router environment.
10276
10277         * Fixed the MOTD command in the client library to support
10278           the server argument in the command.
10279
10280         * Added `nickname_len' argument to the silc_idlist_add_client
10281           in the server, as the `nickname' argument may be binary data
10282           (it may be hash).
10283
10284         * Added silc_idlist_get_channels to return all channels from
10285           the ID list.
10286
10287         * Implemented LIST command to the server.  Affected file is
10288           silcd/command.c.
10289
10290         * Implemented the LIST command to the client library and on the
10291           user interface.
10292
10293         * Added [<user count>] argument to the LIST command reply.
10294           With private channels the user count is not shown.
10295
10296         * Updated TODO and README.
10297
10298 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10299
10300         * The client entry's data.registered must be TRUE even with
10301           global client entry on global client list.  The data.registered
10302           is used to check whether the client is anymore in the network,
10303           for example with WHOWAS command so it must be valid.
10304
10305         * Fixed the WHOWAS command in the server.  It now actually works
10306           in router environment.  Added function into silcd/command_reply.c
10307           silc_server_command_reply_whowas_save.
10308
10309         * Added silc_idlist_purge function to the silcd/idlist.c
10310           to periodically purge the ID Cache.
10311
10312         * Fixed INFO command in the server.  It works now in router
10313           environment.  Added <server name> argument to the INFO command
10314           reply.  Updated the protocol specs.
10315
10316         * Fixed minor bug in silc_idcache_purge to not purge if the
10317           expire value is zero.
10318
10319         * Fixed various bugs in WHOIS and IDENTIFY command handling as
10320           they were buggy because of the WHOWAS information.
10321
10322         * Fixed local command MSG to handle the async resolving of
10323           the remote client properly.  It used to fail the first MSG.
10324           Affected file silc/local_command.c.
10325
10326         * Added `data_len' field to SilcIDCache context.
10327
10328 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10329
10330         * Update TODO.  Todo in commands in the server.
10331
10332 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10333
10334         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
10335           used by routers as broadcast packet to inform other routers
10336           about the changed user mode.
10337
10338           Implemented the notify handling in the server.  Affected file is
10339           silcd/packet_receive.c.  Added the function
10340           silc_server_send_notify_umode to the silcd/packet_send.[ch].
10341
10342         * Added new generic Channel Payload and deprecated the New Channel
10343           Payload.  The New Channel Payload is now the generic Channel
10344           Payload.
10345
10346         * Added new argument `mode' to the silc_server_send_new_channel
10347           as it is required in the Channel Payload now.
10348
10349         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
10350           and created a new and real SilChannelPayload to represent the
10351           new generic Channel Payload.  Implemented the encode/decode
10352           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
10353
10354         * Added silc_server_get_client_channel_list to return the list
10355           of channels the client has joined for WHOIS command reply.
10356           Affected file silcd/server.[ch].
10357
10358         * Implemented the channel list sending in the WHOIS command reply
10359           in server and in the client.
10360
10361           Implemented the channel list displaying on the user interface
10362           as well.  Affected file silc/client_ops.c.
10363
10364         * Added silc_channel_payload_parse_list to parse list of Channel
10365           Payloads.  It returns SilcDList list of SilcChannelPayloads.
10366           Client for example can use this function to parse the list of
10367           channels it receives in the WHOIS command reply.  The caller
10368           must free the list by calling silc_channel_payload_list_free.
10369           Affected files lib/silccore/silcchannel.[ch].
10370
10371 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10372
10373         * Added one new argument <user mode> to the WHOIS command reply
10374           to return the mode of the user in SILC.  Updated the protocol
10375           specs.
10376
10377           Implemented it to the server and client.
10378
10379 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10380
10381         * Fixed the mode printing on the user interface on joining.
10382           Affected file silc/client_ops.c.
10383
10384         * Implemented the UMODE command and user modes in general to the
10385           client library and to the user interface.
10386
10387         * Implemented the UMODE command to the server.
10388
10389         * The server now sends UNKNOWN_COMMAND error status if client sends
10390           unknown command.  Affected file silcd/command.c.
10391
10392         * All server commands now handle the command identifier the right
10393           way when sending the command reply to the client.  The client can
10394           use to identify the command replies with the identifier.
10395
10396 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10397
10398         * Added silc_server_get_client_route to resolve the route to
10399           the client indicated by the client ID.  Affected file is
10400           silcd/server.[ch].
10401
10402         * Added silc_server_relay_packet as general function to relay
10403           packet to arbitrary destination.  This deprecates functions
10404           like _send_private_message_key, _relay_notify etc.  Affected
10405           file is silcd/packet_send.[ch].
10406
10407           Removed silc_server_send_key_agreement,
10408           silc_server_send_private_message_key and
10409           silc_server_packet_relay_notify functions from the file
10410           silcd/packet_send.[ch].
10411
10412         * Updated TODO.
10413
10414         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
10415           server.  Affected file silcd/packet_receive.[ch].
10416
10417         * Implemented the KILL command to the client.  Implemented the
10418           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
10419           Affected files lib/silcclient/command[_reply].c and
10420           lib/silcclient/client_notify.c.  Implemented the KILL notify
10421           printing in the user inteface.
10422
10423         * Fixed a lot silc_parse_nick memory leaks from the client
10424           library in the file lib/silcclient/command.c.
10425
10426         * Changed the silc_server_send_notify_on_channels's `sender'
10427           argument from SilcSocketConnection to SilcClientEntry to
10428           check the sender as entry and not as connection object and not
10429           to send to the client provided as argument.  The affected file
10430           is silcd/packet_send.[ch].
10431
10432         * The notify packets that are destined directly to the client used
10433           to not to be processed by the server.  Now changed that and the
10434           server processes all notify packets.  After relaying the packet
10435           to the client the notify packet is processed in the server.
10436
10437         * The silc_server_free_client_data now checks whether there is
10438           pending outgoing traffic for the client and purges the data to
10439           the network before removing the client entry.
10440
10441 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10442
10443         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
10444           an client is killed from the SILC Network.  Updated the protocol
10445           specs accordingly.
10446
10447           Added new function silc_server_send_notify_killed to the
10448           silcd/packet_send.[ch].
10449
10450         * Added function silc_server_packet_relay_notify to relay notify
10451           packets that are destined directly to a client.  In this case
10452           the server does not process the notify packets but merely relays
10453           it to the client.  Affected file silcd/packet_send.[ch].
10454
10455           Added also silc_server_packet_process_relay_notify to check
10456           whereto relay the notify.  Affected file is
10457           silcd/packet_receive.[ch].
10458
10459         * Implemented the KILL command to the server.
10460
10461         * Updated TODO.
10462
10463         * Added the backup schema desgined last fall to the protocol
10464           specs for everyone to see.  The specification is in the
10465           *-spec-xx.txt draft and the packet type definitions for the
10466           backup routers is in *-pp-xx.txt draft.  Thusly, added also
10467           new packet type SILC_PACKET_CELL_ROUTERS.
10468
10469         * A big security problem in the implementation discovered.  The
10470           signoff of an client did not cause new channel key generation
10471           which it of course should've done.  The channel keys must be
10472           always re-generated when client leaves (or signoffs) the channel.
10473           The silc_server_remove_from_channels funtion now handles
10474           the channel key re-generation.
10475
10476         * Added `sender' argument to the silc_server_send_notify_on_channels
10477           to not to send the client provided as argument.  Affected file
10478           silcd/packet_send.[ch].
10479
10480 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10481
10482         * Implemented OPER and SILCOPER commands into the server and
10483           the client library.
10484
10485         * Added silc_auth_verify and silc_auth_verify_data to verify
10486           the authentication directly from the authentication payload.
10487           It supports verifying both passphrase and public key based
10488           authentication.  Affected file lib/silccore/silcauth.[ch].
10489
10490         * Added `hash' field to the SilcIDListData structure.  It is the
10491           hash negotiated in the SKE protocol.  Affected file is
10492           silcd/idlist.[ch].
10493
10494         * Slight redesigning of the SilcAuthPayload handling routines.
10495           Do not send SilcPKCS but SilcPublicKey as argument.
10496
10497         * Implemented the public key authentication support to the
10498           serverconfig.  The public key is loaded from the provided path
10499           and saved as authentication data to void * pointer.  Thus,
10500           changed the unsigned char *auth_data to void *auth_data;
10501
10502         * Fixed SHUTDOWN command to send the reply before the server
10503           is shutdown. :)  Affected file silcd/command.c.
10504
10505         * Fixed fatal bug in CONNECT command.  The hostname was invalid
10506           memory and server crashed.  Affected file silcd/command.c.
10507
10508         * Fixed fatal bug in CLOSE command.  The server_entry became
10509           invalid but was referenced later in the command.  Affected file
10510           silcd/command.c.
10511
10512 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10513
10514         * Fixed fatal bug in failure packet handling.  Server ignored
10515           the failure and thus crashed when it came.
10516
10517         * Updated TODO.
10518
10519 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10520
10521         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
10522           that the command may be executed only once in (about) 2 seconds.
10523           The old SILC_CF_LAG flag is same but allows command bursts up
10524           to five before limiting.
10525
10526           Added the support for CF_LAG and CF_LAG_STRICT flags to the
10527           server code.  Various commands now includes the CF_LAG_STRICT
10528           flag to disallow any kind of miss-use of the command.
10529
10530         * Fixed the silc_buffer_unformat to not to allocate any data
10531           if the length of the data is zero.  It used to allocate the
10532           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
10533
10534 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10535
10536         * Changed the format of AdminConnection configuration section
10537           in the server.  Added username of the admin to the format.
10538           Affected files silcd/serverconfig.[ch].
10539
10540           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
10541           to return admin configuration data by host, username and/or
10542           nickname.
10543
10544 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10545
10546         * Implemented WHOWAS command to the server.  Added the functions:
10547
10548           silc_server_command_whowas_parse,
10549           silc_server_command_whowas_send_reply,
10550           silc_server_command_whowas_from_client and
10551           silc_server_command_whowas_from_server
10552
10553         * Added <Client ID> argument to the WHOWAS command reply.  Updated
10554           the protocol specs accordingly.
10555
10556         * Implemented WHOWAS command and command_reply to the client
10557           library.
10558
10559           Implemented the WHOWAS printing on the user interface.
10560
10561 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10562
10563         * Added new argument to the WHOWAS command reply, the real name.
10564           It is an optional argument.  Updated the protocol specs.
10565
10566         * Added SilcIDCacheDestructor callback that is registered when
10567           the SilcIDCache is allocated.  The callback is called when
10568           an cache entry in the ID Cache expires, or is purged from the
10569           cache.  Added into lib/silccore/idcache.[ch].
10570
10571           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
10572           to destruct the client entries when the cache entry expires.
10573           Other ID Cache's in server and in the client library ignores
10574           the destructor.
10575
10576         * If the ID Cache entry's `expire' field is zero then the entry
10577           never expires.  Added boolean `expire' argument to the
10578           silc_idcache_add function in the lib/silccore/idcache.[ch].
10579           If it is TRUE the default expiry value is used.
10580
10581         * Added silc_server_free_client_data_timeout that is registered
10582           when client disconnects.  By default for 5 minutes we preserve
10583           the client entry for history - for WHOWAS command.
10584
10585 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10586
10587         * Added support to the server to enforce that commands are not
10588           executed more than once in 2 seconds.  If server receives
10589           commands from client more frequently, timeout is registered
10590           to process the commands.  Affected file silcd/command.c.
10591           Added new function silc_server_command_process_timeout.
10592
10593         * Changed NICK_NOTIFY handling in client library to check that
10594           if the client's nickname was changed, so there is no need to
10595           resolve anything from the server.
10596
10597         * Removed error printing from the WHOIS and IDENTIFY commands.
10598           If error occurs then it is ignored silently in the client library.
10599           The application, however, may map the received error to
10600           human readable error string.  The application currently maps
10601           the NO_SUCH_NICKNAME error to string.
10602
10603         * Made the command status message public to the application.  Moved
10604           them from lib/silcclient/command_reply.c to
10605           lib/silcclient/command_reply.h.  The application can map the
10606           received command status to the string with the
10607           silc_client_command_status_message function.
10608
10609         * Added check to the server to check that client's ID is same
10610           as the Source ID in the packet the client sent.  They must
10611           match.
10612
10613 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10614
10615         * Added dist-bzip hook to the Makefile.am to make bzip2
10616           compressed distributions.
10617
10618 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10619
10620         * Server now enforces the maximum length for the nickname and
10621           the channel as protocol specification dictates.  128 bytes for
10622           nickname and 256 bytes for channel name.
10623
10624         * Moved the WHOIS printing to the application.  The client libary
10625           does not print out the WHOIS information anymore, the application
10626           must do it.  Renamed silc_client_command_reply_whois_print to
10627           the silc_client_command_reply_whois_save.
10628
10629           The client's idle time is also sent to the application now, and
10630           the idle is shown on screen.
10631
10632         * Added silc_client_command_reply_identify_save to save the
10633           received IDENTIFY entries.
10634
10635         * Do not check for channel private keys in message sending and
10636           reception if the channel does not have the PRIVKEY mode set.
10637           Affected file lib/silclient/client_channel.c.
10638
10639 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10640
10641         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
10642           just surfaced after chaning the JOIN procedure.
10643
10644 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10645
10646         * Added silc_client_get_clients_by_list to get client entries
10647           from Client ID list, that is returned for example by JOIN
10648           and USERS command replies.  The application should use this
10649           function for example when JOIN command reply is received to
10650           resolve the clients already on the channel (library does not
10651           do that anymore as USERS command reply is not used in the JOIN
10652           procedure anymore).  Affected files lib/silcclient/silcapi.h and
10653           lib/silcclient/idlist.c.
10654
10655         * JOIN command reply and USERS command reply returns now SilcBuffer
10656           pointers instead of unsigned char pointers when returning
10657           the client list and mode list.
10658
10659         * Added <Client ID> argument to the JOIN command reply, mainly
10660           for the server to identify for which client the command was
10661           originally sent.  Updated protocol specs accordingly.
10662
10663         * Added SilcDlist private_key pointer to the SilcChannelEntry
10664           in the client to support the channel private keys.  Affected
10665           file is lib/silcclient/idlist.h.
10666
10667         * Added SilcChannelPrivateKey argument to the function
10668           silc_client_send_channel_message so that application can choose
10669           to use specific private ke if it wants to.  If it is not provided,
10670           the normal channel key is used, unless private keys are set.
10671           In this case the first (key that was added first) is used
10672           as the encryption key.
10673
10674         * Implemented the support for channel private key handling.
10675           Implemented the following functions:
10676
10677           silc_client_add_channel_private_key,
10678           silc_client_del_channel_private_keys,
10679           silc_client_del_channel_private_key,
10680           silc_client_list_channel_private_keys and
10681           silc_client_free_channel_private_keys
10682
10683           Affected file lib/silcclient/client_channel.c.
10684
10685         * Added the support for the private keys in the channel message
10686           sending and encryption and in the message reception and
10687           decryption.  Affected funtions are
10688           silc_client_send_channel_message and silc_client_channel_message.
10689
10690 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10691
10692         * Added SKE's key verify callback to the client library's
10693           KE protocol context. Affected files lib/silcclient/protocol.[ch].
10694
10695         * Removed the statement that server (or router) must send USERS
10696           command reply when joining to the channel so that the client
10697           knows who are on the channel.  Instead, the client list and
10698           client's mode list is now sent in the JOIN command reply to the
10699           client who joined channel.  This is better solution.
10700
10701         * Added function silc_server_get_users_on_channel and function
10702           silc_server_save_users_on_channel to the silcd/server.[ch].
10703
10704         * Removed function silc_server_command_send_users from the
10705           silcd/command.c.
10706
10707         * Do not show topic on the client library anymore.  The topic is
10708           sent in the command reply notify to the application and the
10709           application must show the topic now.
10710
10711 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10712
10713         * Added client searching by nickname hash into the IDENTIFY and
10714           WHOIS commands in the server as they were clearly missing from
10715           them.  Affected file is silcd/command.c.
10716
10717         * Fixed a bug in private message receiving in the client library.
10718           The remote ID was freed and it wasn't supposed, now it is
10719           duplicated.
10720
10721 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10722
10723         * Minor fix to the channel payload; allocate the data area, as it
10724           needs to be of specific length.
10725
10726         * If the key agreement port is zero then the operating
10727           system will define the bound port.  Affected files are
10728           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10729
10730         * Added new function silc_channel_payload_decrypt into the file
10731           lib/silccore/silcchannel.[ch].
10732
10733         * Moved the channel message etc, check from silc_packet_decrypt
10734           to applications.  The library calls now a generic
10735           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10736           when the packet is either normal or special.  This was done to
10737           allow more wide range of checking that was not allowed when
10738           the code was in library.  Now applications can do virtually any
10739           checks to the packet and return to the library the decision how
10740           the packet should be processed.  Affected files are
10741           lib/silccore/silcpacket.[ch].
10742
10743           Added silc_server_packet_decrypt_check to the server and
10744           silc_client_packet_decrypt_check to the client library.
10745
10746         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10747           to send with specified source and destination information.
10748
10749         * Channel message delivery between routers was broken after the
10750           channel key distribution was fixed earlier.  The channel key
10751           was used be to distributed to other routers as well which is not
10752           allowed by the protocol.  Now this is fixed and channel keys
10753           really are cell specific and the channel message delivery between
10754           routers comply with the protocol specification.
10755
10756         * Fixed various commands in server to check also the global list
10757           for the channel entry and not just the local list.  The affected
10758           file silcd/command.c.
10759
10760 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10761
10762         * Added assert()s to buffer formatting and unformatting routines
10763           to assert (if --enable-debug) when error occurs.  Affected
10764           file: lib/silcutil/silcbuffmt.c.
10765
10766         * Changed to auto-reconnect to check whether the remote host is
10767           router and register the re-connect timeout if it is.  It used
10768           to check that whether we are normal server, but router must do
10769           auto-reconnect with another router as well.  Affected file
10770           silcd/server.c.
10771
10772         * Removed the [<key len>] option from CMODE command as the cipher
10773           name decides the key length, nowadays.  See the defined ciphers
10774           from the protocol specification.
10775
10776         * Added [<hmac>] option to the CMODE command to define the HMAC
10777           for the channel.  Added SILC_CMODE_HMAC channel mode.
10778
10779         * Added [<hmac>] option for the JOIN command so that user can
10780           select which HMAC is used to compute the MACs of the channel
10781           messages.
10782
10783         * Added Hmac field to the Channel Message Payload.  The integrity
10784           of plaintext channel messages are now protected by computing
10785           MAC of the message and attaching the MAC to the payload.  The
10786           MAC is encrypted.  Now, it is clear that this causes some
10787           overhead to the size of the packet but rationale for this is that
10788           now the receiver can verify whether the channel message decrypted
10789           correctly and also when private keys are set for the channel the
10790           receiver can decrypt the packet with several keys and check from
10791           the MAC which key decrypted the message correctly.
10792
10793         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10794           lib/silccrypt/silccipher.[ch].
10795
10796         * Added silc_hash_len to return the digest length into the
10797           lib/silcrypt/silchash.[ch].
10798
10799         * Rewrote parts of Silc Channel Payload interface in the
10800           lib/silccore/silcchannel.[ch].  The encode function now also
10801           encrypts the packet and parse function decrypts it.
10802
10803 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10804
10805         * Fixed a minor formatting bug in the SKE's key material processing.
10806           It actually might have processed the keys wrong way resulting
10807           into wrong keys.
10808
10809         * Redefined the mandatory HMAC algorithms and added new algorithms.
10810           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10811           and hmac-md5 truncated to 96 bits.  The mandatory is now
10812           hmac-sha1-96.  Rest are optional (including the one that used
10813           to be mandatory).  Rationale for this is that the truncated HMAC
10814           length is sufficient from security point of view and can actually
10815           make the attack against the HMAC harder.  Also, the truncated
10816           HMAC causes less overhead to the packets.  See the RFC2104 for
10817           more information.
10818
10819         * Added new [hmac] configuration section.  The SKE used to use
10820           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10821           is of course wrong.  The official names that must be proposed in
10822           the SKE are the ones defined in the protocol specification
10823           (hmac-sha1-96 for example).  The user can configure any hmac
10824           using any hash function configured in the [hash] section.  At
10825           least, the mandatory must be configured.
10826
10827           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10828
10829         * Added HMAC list to the SKE proposal list.  It has now both
10830           hash algorithm list and HMAC list.  This makes the protocol
10831           incompatible with previous versions.  The SKE now seems to work
10832           the way it is supposed to work, for the first time actually.
10833
10834         * Defined plain Hash algorithms to the protocol specification.
10835           Added sha1 and md5.
10836
10837 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10838
10839         * Implemented support for key agreement packets into the server.
10840           Added functions silc_server_key_agreement and
10841           silc_server_send_key_agreement.  Other than these functions,
10842           server has nothing to do with this packet.
10843
10844         * Added support for private message key packets into the server.
10845           Added functions silc_server_private_message_key and
10846           silc_server_send_private_message_key.
10847
10848         * Updated TODO.
10849
10850         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10851           called in the protocol's final callback instead in the END
10852           protocol state.  This makes a little more sense and in the same
10853           time in client we can use the same protocol routines for normal
10854           key exchange and to key agreement packet handling as well.
10855
10856         * Added to both client's and server's KE protocol context the
10857           SilcSKEKeyMaterial pointer to save the key material.  We will
10858           bring the key material to the protocol's final callback by doing
10859           this.  The final callback must free the key material.
10860
10861         * Added SKE's packet_send callback into client's KE protocol
10862           context so that the caller can choose what packet sending function
10863           is used.  This way we can use different packet sending when
10864           doing normal SKE when doing key agreement packet handling (in
10865           the key agreement packet handling we do not want to encrypt
10866           the packets).
10867
10868         * Implemented the responder side of the key agreement routines
10869           in the client.  The client can now bind to specified port and
10870           accept incoming key negotiation.  The key material is passed
10871           to the application after the protocol is over.
10872
10873         * Implemented the processing of incoming Key Agreement packet
10874           in the client.  Added function silc_client_key_agreement to
10875           process the packet.
10876
10877         * Implemented the intiator side of the key agreement routines
10878           in the client.  The client can now initiate key agreement with
10879           another remote client.  The key material is passed to the
10880           application after the protocol is over.
10881
10882         * Created client_keyagr.c to include all the key agreement
10883           routines.
10884
10885         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10886           SILC_TASK_CALLBACK except that it is not static.
10887
10888         * Created client_notify.c and moved the Notify packet handling
10889           from the client.[ch] into that file.
10890
10891         * Created client_prvmsg.c and moved all private message and
10892           private message key routines from the client.[ch] into that file.
10893
10894         * Create client_channel.c and moved all channel message and
10895           channel private key routines from the client.[ch] into that file.
10896
10897         * Changed silc_client_get_client_by_id_resolve to resolve with
10898           WHOIS command instead of IDENTIFY command, in the file
10899           lib/silclient/idlist.c.
10900
10901 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10902
10903         * Implemented the SKE's responder side to the Client library.
10904
10905         * When FAILURE is received to the protocol do not trust it
10906           blindly.  Register a timeout to wait whether the remote closes
10907           the connection as it should do it, only after that process the
10908           actual failure.  This was changed to both client and server.
10909
10910         * Added client_internal.h to include some of the structures
10911           there instead of client.h in lib/silcclient/.
10912
10913         * Added function silc_task_unregister_by_callback to unregister
10914           timeouts by the callback function.
10915
10916 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10917
10918         * Some "Incomplete WHOIS info" errors has been appearing on the
10919           log files.  Took away the entry->userinfo check from WHOIS
10920           reply sending.  The entry->userinfo is now " " if client did not
10921           provide one.  I thought this was fixed earlier but something
10922           is wrong still.  Let's see if the error still appears.
10923
10924 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10925
10926         * Fixed a minor bug in the login when the channel key is
10927           re-generated in the server.  It used to generate the key in
10928           wrong order and thus caused problems in the channel traffic.
10929
10930         * Fixed a minor bug in channel key distsribution after
10931           KICK command.  The key was not sent to the router even though
10932           it should've been.
10933
10934 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10935
10936         * Added silc_ske_process_key_material_data as generic routine
10937           to process any key material as the SILC protocol dictates.  The
10938           function is used by the actual SKE library but can be used by
10939           applications as well.  This relates to the private message keys
10940           and the channel private keys since they must be processed the
10941           same way the normal SILC session keys.  The protocol dictates
10942           this.  Affected files: lib/silcske/silcske.[ch].
10943
10944           Added also silc_ske_free_key_material to free the
10945           SilcSKEKeyMaterial structure.
10946
10947         * Defined silc_cipher_set_key function to set the key for
10948           cipher without using the object's method function.  The affected
10949           files: lib/silccrypt/silccipher.[ch].
10950
10951         * Implemented silc silc_client_add_private_message_key,
10952           silc_client_add_private_message_key_ske,
10953           silc_client_del_private_message_key,
10954           silc_client_list_private_message_keys and
10955           silc_client_free_private_message_keys functions in the
10956           client library.
10957
10958           Added functions silc_client_send_private_message_key to send
10959           the Private Message Key payload and silc_client_private_message_key
10960           to handle incoming Private Message Key payload.
10961
10962         * Added Cipher field to the Private Message Key payload to set
10963           the cipher to be used.  If ignored, the default cipher defined
10964           in the SILC protocol (aes-256-cbc) is used.
10965
10966 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10967
10968         * Removed lib/silcclient/ops.h file.
10969
10970           Redefined parts of the SILC Client Library API. Created new
10971           file silcapi.h that deprecates the ops.h file and defines the
10972           published Client Library API.  Defined also private message key
10973           API and channel private key API into the file.
10974
10975           This is the file that the application must include from the
10976           SILC Client Library.  Other files need not be included by
10977           the application anymore.
10978
10979         * Added new key_agreement client operation callback and also
10980           defined the Key Agreement library API for the application.
10981
10982 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10983
10984         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10985           is used by clients to request key negotiation  between another
10986           client in the SILC network.  If the negotiation is started it
10987           is performed using the SKE protocol.  The result of the
10988           negotiation, the secret key material, can be used for example
10989           as private message key.
10990
10991           Implemented the Key Agreement payload into the files
10992           lib/silccore/silauth.[ch].
10993
10994 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10995
10996         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10997           and defined the key lengths for the algorithms.  Changed the
10998           code accordingly.  The default key length is now 256 bits.
10999
11000         * Fixed SKE key distribution function silc_ske_process_key_material
11001           when the key length is more than 128 bits.  The default key
11002           length in SILC is now 256 bits.
11003
11004         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
11005           to indicate unsupported algorithm.
11006
11007         * Renamed rijndael.c to aes.c and all functions as well.
11008
11009         * Fixed a long standing channel key setting bug in client library.
11010           Weird that it has never surfaced before.
11011
11012         * Fixed bug in channel deletion.  If the entire channel is removed
11013           then it must also delete the references of the channel entry
11014           from the client's channel list as the client's channel entry and
11015           the channel's client entry share same memory.
11016
11017 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11018
11019         * Implemented CONNECT and SHUTDOWN commands in the client.
11020
11021         * Implemented CLOSE command to the client.
11022
11023         * Added the function silc_idlist_find_server_by_name into the
11024           files silcd/idlist.[ch].
11025
11026           Added the function silc_idlist_find_server_by_conn into the
11027           files silcd/idlist.[ch].
11028
11029 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11030
11031         * DIE command was renamed to SHUTDOWN.  Updated the both code
11032           and protocol specs.
11033
11034         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
11035           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
11036
11037         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
11038           side.
11039
11040         * Added function silc_server_create_connection function to create
11041           connection to remote router.  My server implementation actually
11042           does not allow router to connect to normal server (it expects
11043           that normal server always initiates the connection to the router)
11044           so the CONNECT command is only good for connecting to another
11045           router.
11046
11047 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11048
11049         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
11050           or some other client was kicked from the channel.
11051
11052           Implemented the handling of the notify type to both client
11053           and server.
11054
11055           Implemented silc_server_send_notify_kicked to send the KICKED
11056           notify.  It is used to send it to the server's primary router.
11057
11058         * Implemented the KICK command into server and client.
11059
11060         * Added `query' argument to the silc_idlist_get_client function
11061           to indicate whether to query the client from server or not if
11062           it was not found.
11063
11064         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
11065           to indicate that the client is not channel founder.
11066
11067         * Updated TODO.
11068
11069 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11070
11071         * Removed the rng context from SilcPacketContext structure and
11072           changed that the packet routine uses the Global RNG API.
11073
11074 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11075
11076         * Added support for quit message that client can "leave" on the
11077           channel when it quits the SILC.  It is ditributed inside the
11078           SILC_NOTIFY_TYPE_SIGNOFF notify type.
11079
11080           Added silc_server_free_client_data that will take the
11081           signoff message as argument.
11082
11083         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
11084
11085 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11086
11087         * Updated parts of the protocol specification to keep it up
11088           to date.
11089
11090 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11091
11092         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
11093           payloads in one packet.
11094
11095         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
11096           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
11097           use now the new List flag.
11098
11099         * Also deprecated the following packet types: REPLACE_ID,
11100           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
11101
11102         * Added list support for Notify packet in server.
11103
11104         * Added silc_server_send_notify_channel_change to send the
11105           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
11106           the silc_server_send_replace_id.
11107
11108         * Added silc_server_send_notify_nick_change to send the
11109           NICK_CHANGE notify type.  Deprecates the function
11110           silc_server_send_replace_id.
11111
11112         * Added silc_server_send_notify_join to send the JOIN notify type.
11113           Deprecates the function silc_server_send_new_channel_user.
11114
11115         * Added silc_server_send_notify_leave to send LEAVE notify type.
11116           Deprecates the function silc_server_send_remove_channel_user.
11117
11118         * Added silc_server_send_notify_cmode and
11119           silc_server_send_notify_cumode to send CMODE and CUMODE notify
11120           types.  Deprecates the silc_server_send_set_mode function.
11121
11122         * Added SERVER_SIGNOFF notify type to indicate that server has
11123           quit.  This means that all clients on the channel from that
11124           server will drop.  This can be also used when netsplit happens.
11125
11126           Deprecated REMOVE_ID packet type since it is not needed anymore
11127           even from server.
11128
11129           Added silc_server_send_notify_server_signoff to send the
11130           SERVER_SIGNOFF notify type.  Deprecates the function
11131           silc_server_send_remove_id.
11132
11133           Added also silc_server_send_notify_signoff to send the
11134           SIGNOFF notify type.
11135
11136         * Employed the PKCS #1. It is the mandatory way to do RSA in the
11137           SILC protocol from this day on.  Changed the protocol
11138           specification as well.
11139
11140         * Added silc_server_send_notify_topic_set to send TOPIC_SET
11141           notify type.  It is used between routers to notify about
11142           topic changes on a channel.
11143
11144         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
11145           ID data.
11146
11147         * Partly updated the protocol specification to comply with the
11148           changes now made.  It is still though a bit outdated.
11149
11150         * The JOIN notify type now takes one extra argument <Channel ID>.
11151           The packet used to be destined to the channel but now the
11152           JOIN type may be sent as list thus it is impossible to
11153           destine it to any specific channel.  By adding this argument
11154           it is again possible.
11155
11156 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11157
11158         * Added CREDITS file.  The CHANGES and CREDITS file will appear
11159           in the distribution as well.
11160
11161 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11162
11163         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
11164           types in the server's silcd/packet_receive.c.
11165
11166         * Implemented CMODE and CUMODE to work in router environment.
11167
11168         * Fixed minor encoding and decoding buglet from the
11169           lib/silccore/silcmode.c.
11170
11171         * Fixed buffer overflow from lib/silcclient/command.c in USERS
11172           command parsing.
11173
11174 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
11175
11176         * Changed all SilcConfigServer* and silc_config_server* to
11177           SilcServerConfig* and silc_server_config*, respectively.
11178           Patch by Bostik.
11179
11180 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11181
11182         * Associated the ID (client or server ID) to the Authentication
11183           Payload to avoid any possibility of forging.  Updated the
11184           protocol specification and the code accordingly.
11185
11186 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11187
11188         * The RSA key length is now save to the RsaKey context in the
11189           key generation process in lib/silccrypt/rsa.c.  The key length
11190           is now used to figure out the maximum size of the block allowed
11191           to be encrypted/signed.
11192
11193         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
11194           is equivalent to the silc_mp_mp2bin but does not allocate any
11195           memory.
11196
11197         * Changed silc_mp_mp2bin API to take length argument.  If it is
11198           non-zero then the buffer is allocated that large.  If zero, then
11199           the size is approximated using silc_mp_sizeinbase, which however
11200           is not relieable.
11201
11202         * Created Global RNG API which is global RNG that application can
11203           initialize.  After initializing, any routine anywhere in the
11204           code (including library) can use RNG without allocating a new
11205           RNG object.  This was done to allow this sort of use of the
11206           RNG in code that has no chance to allocate RNG object.  All
11207           applications currently allocate this and many routines in the
11208           library use this.  Affected file lib/silccrypt/silcrng.[ch].
11209
11210         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
11211           it to use the Global RNG API.
11212
11213         * Defined Authentication Payload into protocol specification that
11214           is used during SILC session to authenticate entities.  It is
11215           used for example by client to authenticate itself to the server
11216           to obtain server operator privileges.
11217
11218           Implemented this payload into the lib/silccore/silcauth.[ch].
11219           Implemented also routines for public key based authentication
11220           as the new protocol specification dictates.
11221
11222           Moved definitions of different authentication methods from
11223           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
11224
11225         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
11226           silc_pkcs_verify and silc_pkcs_sign_with_hash and
11227           silc_pkcs_verify_with_hash functions into the file
11228           lib/silccrypt/silcpkcs.[ch].
11229
11230 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11231
11232         * The client entry's userinfo pointer must be always valid.
11233           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
11234           will fail since it requires the userinfo.  Now, the userinfo
11235           is allocated as "" if actual userinfo does not exist.  Actually,
11236           it must exist and it is totally Ok to drop client connections
11237           that does not announce the userinfo.  However, we will make
11238           this workaround for now.
11239
11240         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
11241           to return the remote port by socket.
11242
11243 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11244
11245         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
11246           SILC_SERVER_PENDING_EXEC and added an new macro
11247           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
11248           data or when error occurs while processing the pending command.
11249
11250           Added new argument `destructor' into silc_server_command_pending
11251           and to the SilcServerCommandPending object.  This destructor is
11252           now called after calling the pending callback or if error occurs
11253           immediately.  If error occurs the actual pending callback won't
11254           be called at all - only the destructor.  The destructor may be
11255           NULL if destructor is not needed.
11256
11257           All this applies for client library code as well.  Similar
11258           changes were made there as well for the pending commands.
11259
11260           In the client, the application must now allocate the
11261           SilcClientCommandContext with the silc_client_command_alloc
11262           function.
11263
11264         * Added reference counter to the SilcServerCommandContext.  Added
11265           function silc_server_command_alloc and silc_server_command_dup
11266           functions.
11267
11268           Same type of functions added to the client library for the same
11269           purpose as well.
11270
11271         * Removed the cmd_ident from IDListData away since it is now
11272           global for all connections.  It is the command identifier used
11273           in command sending and with pending commands.  The affected file
11274           is silcd/idlist.h.
11275
11276         * Added reference counter to the SilcSocketConnection objecet to
11277           indicate the usage count of the object.  The object won't be
11278           freed untill the reference counter hits zero.  Currently only
11279           server uses this, and client ignores it.  The client must be
11280           set to use this too later.  The affected files are
11281           lib/silccore/silcsockconn.[ch].  Added also the function
11282           silc_socket_dup to increase the reference counter.
11283
11284           This was mainly added because it is possible that the socket
11285           is removed underneath of pending command or other async
11286           operation.  Now it won't be free'd and proper DISCONNECTING
11287           flags, etc. can be set to avoid sending data to connection that
11288           is not valid anymore.
11289
11290         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
11291           the connection.  After that it sets SILC_SET_DISCONNECTED.
11292           It is, however, possible that the socket data is not still freed.
11293           The silc_server_packet_process now checks that data is not
11294           read or written to connection that is DISCONNECTED.  The socket
11295           get's freed when the reference counter hits zero.
11296
11297 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11298
11299         * Changed the client operation API: channel_message operation's
11300           `sender' is now the client entry of the sender, not the nickname
11301           and the `channel' is the channel entry, not the channel name.
11302
11303           In the private_message operation the `sender' is now also the
11304           client entry of the sender not the nickname.
11305
11306           Affected file is lib/silcclient/ops.h and all applications
11307           using the client operations.
11308
11309 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11310
11311         * Moved the calling of ops->connect() from connect_to_server_final
11312           into receive_new_id functin since that is the point when the
11313           client is actually allowed to send traffic to network.  The
11314           affected file is lib/silcclient/client.c.
11315
11316 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11317
11318         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
11319           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
11320           (if needs broadcasting) instead of broadcasting the packets one
11321           by one which would make a burst in the network traffic.
11322
11323         * Added `broadcast' argument to the functions in silcd/server.[ch]
11324           silc_server_create_new_channel[_with_id] to indicate whether
11325           to send New Channel packet to primary router.
11326
11327 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11328
11329         * Added new function into the silcd/server.[ch] files:
11330           silc_server_create_new_channel_with_id to create new channel with
11331           already existing Channel ID.
11332
11333         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
11334           lib/silccore/silcpacket.h.  This packet is used t send list of
11335           Set Mode payloads inside one packet.  Server uses this to set
11336           the modes for the channels and clients on those channels, that it
11337           announced to the router when it connected to it.  The protocol
11338           specification has been updated accordingly.
11339
11340         * The silc_server_new_channel did not handle the packet coming
11341           from normal server as it normally does not send that.  However,
11342           when it announces its channels it does send it.  Implemented
11343           the support for that.
11344
11345         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
11346           into the file lib/silccore/id.h.
11347
11348 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11349
11350         * Fixed memory leaks in the functions silc_idlist_del_client,
11351           silc_idlist_del_channel and silc_idlist_del_server in the file
11352           silcd/idlist.c.  All of those leaked like a sieve.
11353
11354         * Fixed some small memory leaks in the client's function
11355           silc_client_notify_by_server.
11356
11357         * Added functions into silcd/server.c: silc_server_announce_clients,
11358           silc_server_announce_channels and silc_server_announce_server.
11359           These functions are used by normal and router server to announce
11360           to its primary router about clients, channels and servers (when
11361           router) that we own.  This is done after we've connected to the
11362           router.
11363
11364           These functions effectively implements the following packet types:
11365           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
11366           and SILC_PACKET_NEW_ID_LIST.
11367
11368         * Added new functions into the silcd/packet_receive.[ch]:
11369           silc_server_new_id_list, silc_server_new_channel_list and
11370           silc_server_new_channel_user_list to handle the incoming
11371           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
11372
11373         * Added support of changing Channel ID in the function
11374           silc_server_replace_id.  If the server that announces a channel
11375           to the router already exists in the router (with same name but
11376           with different Channel ID), router is responsible to send
11377           Replace ID packet to the server and force the server to change
11378           the Channel ID to the one router has.
11379
11380         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
11381           client that the Channel ID has been changed by the router.  The
11382           normal server sends this to the client.  Client must start using
11383           the new Channel ID as the channel's ID.
11384
11385           Implemented handling of this new type into lib/silcclient/client.c
11386           into the function silc_client_notify_by_server.
11387
11388         * Added new function silc_idlist_replace_channel_id into the files
11389           silcd/idlist.[ch] to replace the Channel ID.
11390
11391 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11392
11393         * Call silc_server_command_identify_check always when processing
11394           the IDENTIFY command in silcd/command.c
11395
11396 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11397
11398         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
11399           send keepalive packets.  The packet can be sent by clients,
11400           servers and routers.
11401
11402           Added function silc_socket_set_heartbeat into the file
11403           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
11404           If not set, the heartbeat is not performed.  The actual
11405           heartbeat is implemented in the low level socket connection
11406           library.  However, application is responsible of actually
11407           sending the packet.
11408
11409           Added silc_server_send_heartbeat to send the actual heartbeat
11410           packet into silcd/packet_send.[ch].  Server now performs
11411           keepalive with all connections.
11412
11413         * Added silc_task_get_first function into lib/silcutil/silctask.c
11414           to return the timeout task with shortest timeout.  There was a bug
11415           in task unregistration that caused problems.  TODO has been
11416           updated to include that task system must be rewritten.
11417
11418         * The client library will now resolve the client information when
11419           receiving JOIN notify from server for client that we know but
11420           have incomplete information.
11421
11422         * Rewrote parts of silc_server_remove_from_channels and
11423           silc_server_remove_from_one_channel as they did not remove the
11424           channel in some circumstances even though they should've.
11425
11426         * Encryption problem encountered in server:
11427
11428           The LEAVE command used to send the Channel Key packet to the
11429           router immediately after generating it.  However, the code
11430           had earlier sent Remove Channel user packet but not immediately,
11431           ie. it was put to queue.  The order of packets in the router
11432           was that Channel Key packet was first and Remove Channel User
11433           packet was second, even though they were encrypted in the
11434           reverse order.  For this reason, MAC check failed.  Now, this
11435           is fixed by not sending the Channel Key packet immediately but
11436           putting it to queue.  However, this is more fundamental problem:
11437           packets that are in queue should actually not be encrypted
11438           because packets that are sent immediately gets encrypted
11439           actually with wrong IV (and thus MAC check fails).  So, packets
11440           that are in queue should be encrypted when they are sent to
11441           the wire and not when they put to the queue.
11442
11443           However, the problem is that the current system has not been
11444           designed to work that way.  Instead, the packet is encrypted
11445           as soon as possible and left to the queue.  The queue is then
11446           just purged into wire.  There won't be any fixes for this
11447           any time soon.  So, the current semantic for packet sending
11448           is as follows:
11449
11450           o If you send packet to remote host and do not force the send
11451           (the packet will be in queue) then all subsequent packets to the
11452           same remote host must also be put to the queue.  Only after the
11453           queue has been purged is it safe again to force the packet
11454           send immediately.
11455
11456           o If you send all packets immediately then it safe to send
11457           any of subsequent packets through the queue, however, after
11458           the first packet is put to queue then any subsequent packets
11459           must also be put to the queue.
11460
11461           Follow these rules and everything works fine.
11462
11463 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11464
11465         * Added new function silc_server_remove_clients_by_server to
11466           remove all client entries from ID list when the server connection
11467           is lost.  In this case it is also important to invalidate all
11468           client entires as they hold the invalid server entry.  This
11469           fixes fatal bug when server has lost connection and will reconnect
11470           again.
11471
11472 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11473
11474         * Made some sanity checks to silc_server_daemonise like to check
11475           whether the requested user and group actually exists.
11476
11477         * Added sanity check to SKE's silc_ske_responder_finish to check
11478           that the public and private key actually is valid.
11479
11480         * Invalidate the client's nickname when receiving Replace ID
11481           packet and the Client ID is being replaced.  This means that the
11482           server will query the nickname if someone needs it (client)
11483           a bit later.
11484
11485         * Sort the ID Cache in client library when the ID Cache data
11486           has changed (needs sorting).
11487
11488         * Do not allow for SILC client to create several connections to
11489           several servers.  The client does not support windows right now
11490           and generating multiple connections causes weird behaviour.
11491
11492           Irssi-silc client does support windows and can handle several
11493           connections without problems, see: www.irssi.org and SILC plugin.
11494
11495         * Fixed some places where client was added to the IDList.  The
11496           rule of thumb is following (in order to get everything right):
11497           If the client is directly connected local client then the
11498           `connection' argument must be set and `router' argument must be
11499           NULL to silc_idlist_add_client function.  If the client is not
11500           directly connected client then the `router' argument must
11501           bet set and the `connection' argument must be NULL to the
11502           silc_idlist_add_client function.
11503
11504         * The funtion silc_server_packet_send_local_channel actually did
11505           not check whether the client was locally connected or not.  It
11506           does that now.  Fixed a bug related to LEAVE command.
11507
11508         * Fixed Remove Channel User payload parsing bug in server's
11509           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
11510
11511         * The server's silc_server_save_channel_key now checks also the
11512           global ID list for the channel as it might not be in the local
11513           list.  Fixed a bug related to LEAVE command.
11514
11515         * Is this the end of the [<unknown>] buglet that has been lurking
11516           around for a long time?  A little for loop fix in server's
11517           silc_server_command_whois_parse that is used by both IDENTIFY
11518           and WHOIS command.  At least, this was a clear bug and a cause
11519           of one type of [<unknown>] buglet.
11520
11521         * WHOIS and IDENTIFY commands call the function
11522           silc_server_command_[whois/identify]_check function even if
11523           we are not router server.
11524
11525 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11526
11527         * Added --with-gmp configuration option.  If set the GMP
11528           is always compiled in the SILC source tree.  If not set then
11529           it is checked whether the system has the GMP3 installed.  If
11530           it has then the GMP won't be compiled (the system's headers
11531           and library is used), if it doesn't have it then the GMP is
11532           compiled in the SILC source tree.
11533
11534 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11535
11536         * Changed RSA private exponent generation to what PKCS #1
11537           suggests.  We try to find the smallest possible d by doing
11538           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
11539           not security fix but optimization.
11540
11541 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11542
11543         * Added new config entry [Identity] to fork the server and run
11544           it as specific user and group.  A patch from Bostik.
11545
11546         * Imported Dotconf configuration library into lib/dotconf.
11547           This will be used to create the SILC configuration files later.
11548           It will appear in the distsribution after this commit.
11549
11550 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11551
11552         * A big code auditing weekend happening.  Auditing code for
11553           obvious mistakes, bugs and errors.  Also, removing any code
11554           that is obsolete.
11555
11556           Removed files for being obsolete:
11557
11558           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
11559           inline in the file lib/silcutil/silcbuffer.h)
11560
11561           o lib/silcutil/silcbufutil.c (the header has inline versions)
11562
11563           Changed code to fix possible error conditions:
11564
11565           o The buffer formatting routines now check that the destination
11566           buffer really has enough space to add the data.  This applies for
11567           both buffer formatting and unformatting
11568           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
11569           unformatting was changed to accomodate following rules:
11570           XXX_*STRING_ALLOC will allocate space for the data into the pointer
11571           sent to the function while XXX_*STRING will not allocate or copy
11572           the data into the buffer.  Instead it sets the pointer from the
11573           buffer into the pointer sent as argument (XXX_*STRING used to
11574           require that the pointer must be allocated already).  This change
11575           makes this whole thing a bit more consistent and more optimized
11576           (note that the data returned in the unformatting with XXX_*STRING
11577           must not be freed now).  The routines return now -1 on error.
11578
11579           o Tried to find all code that use buffer_format and buffer_unformat
11580           and added return value checking to prevent formatting and
11581           especially unformatting errors and possible subsequent fatal
11582           errors.
11583
11584           o Changed ske->x and ske->KEY to mallocated pointers in
11585           lib/silcske/silcske.h.  Fixed possible data and memory leak.
11586
11587           o Added return value checking to all *_parse* functions.  Fixed
11588           many memory leaks as well.
11589
11590           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
11591           so that buffer overflows would not happen.  All code now also
11592           checks the return value as it can fail.
11593
11594 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11595
11596         * Added reconnection support to server if the normal server looses
11597           its connection to the router (for example if router is rebooted).
11598           The server performs normal reconnection strategy implemented
11599           to the server.  Affected file silcd/server.c.
11600
11601 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11602
11603         * Added new packet type SILC_PACKET_SET_MODE that is used to
11604           distribute the information about changed modes (for clients,
11605           channels and clients channel modes) to all routers in the
11606           network.  Updated the protocol specification accordingly.
11607
11608           Added functions into silcd/packet_send.c and
11609           silcd/packet_receive.c: silc_server_send_set_mode,
11610           silc_server_set_mode.
11611
11612           Added new files silcmode.[ch] into lib/silccore that implements
11613           the encoding and decoding of Set Mode Payload.  Added new type
11614           SilcSetModePayload.  Moved the definitions of different modes
11615           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
11616
11617 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11618
11619         * Oops, a little mistake in server's connection authentication
11620           protocol.  The protocol is not ended with FAILURE but with
11621           SUCCESS if the authentication is Ok. :)  Affected file is
11622           silcd/protocol.c.
11623
11624         * Implemented NICK_CHANGE notify handling in server in the file
11625           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
11626           the local clients on the channel.  After the changing nickname
11627           in router environment snhould work and the [<unknown>] nickname
11628           should appear no more.
11629
11630           The silc_server_replace_id function that receives the Replace ID
11631           payload now sends the NICK_CHANGE notify type also in the file
11632           silcd/packet_receive.c
11633
11634         * Changed WHOIS and IDENTIFY command to support the maximum amount
11635           of arguments defined in protocol specs (3328 arguments).  This
11636           fixed a bug that caused problems when there were more than three
11637           users on a channel.
11638
11639 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11640
11641         * Added extra parameter, command identifier, to the
11642           silc_client_send_command so that explicit command identifier
11643           can be defined.
11644
11645           Changed that ID list routines uses specific command identifier
11646           when sending WHOIS/IDENTIFY requests to the server so that they
11647           can be identified when the reply comes back.
11648
11649           Affected files lib/silcclient/command.[ch],
11650           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
11651
11652         * Added `sender' argument to silc_server_packet_send_to_channel
11653           to indicaet the sender who originally sent the packet to us
11654           that we are now re-sending.  Ignored if NULL.  Affected file
11655           silcd/packet_send.[ch].
11656
11657         * Added some server statistics support in silcd/server_internal.h
11658           SilcServerStatistics structure and around the server code.  Also
11659           send some nice statistics information when client is connecting
11660           to the client.
11661
11662 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11663
11664         * Fixed channel ID decoding in server's JOIN command reply in
11665           silcd/command_reply.c
11666
11667         * Fixed braodcasting of replace ID payload to not to send it if
11668           we are standalone server in silcd/packet_receive.c.
11669
11670         * Fixed all channel message sending routines to not to send
11671           packets to clients that has router set, since they are routed
11672           separately in the same function earlier.  Affects file
11673           silcd/packet_send.c and all channel packet sending functions.
11674
11675         * In USERS reply, res_argv[i] are not allocated, the table
11676           is allocated.  Thus changed that free the table, not its
11677           internals.
11678
11679         * In server's whois_check and identify_check if the client is
11680           locally connected do not send any WHOIS commands - they are not
11681           needed.
11682
11683 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11684
11685         * Fixed some minor bugs in client when sending WHOIS command.  The
11686           arguments was in wrong order.
11687
11688         * Removed statis function add_to_channel from server in
11689           silcd/command.c that was previously used with the joining but
11690           is obsolete now.
11691
11692         * Tested USERS command in router environment successfully with two
11693           routers, two servers and two clients.
11694
11695 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11696
11697         * Reorganized the USERS command and command reply in client library
11698           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
11699           When the command is given by user we register a pending command
11700           callback that will reprocess the command after the reply has been
11701           received from the server.  When reprocessing the packet we then
11702           display the information.  Thus, the USERS information is displayed
11703           now in the command callback instead of in the command reply
11704           callback.  The processing of the command is same as previously
11705           when server has sent the command reply in the JOINing process.
11706
11707         * Added to USERS command in silcd/command_reply.c to join the client,
11708           we didn't use to know about, to the channel after we've created
11709           a client entry for it.  Also, for clienet we did know already still
11710           check whether it is on the channel or not and add it if not.
11711
11712         * Removed silc_server_command_join_notify as the function and its
11713           use was obsolete.
11714
11715 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11716
11717         * Changed the client's pending command handling to the same as the
11718           server's pending command handling.  It is also now possible to
11719           execute command reply functions from other command reply
11720           function as the function callbacks for commands and command
11721           replies are one and same.  The pending commands are not static
11722           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11723           in client connection context.  Thus, pending commands are server
11724           connection specific as it is convenient.
11725
11726           Changed the function silc_client_command_pending and
11727           silc_client_command_pending_del and added new function
11728           silc_client_command_pending_check.  Removed the
11729           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11730           macros.
11731
11732         * Added cmd_ident, current command identifier, to the client
11733           connection context in lib/silcclient/client.h to keep track on
11734           command identifiers used in command sending.  Client's command reply
11735           function handling now supports the mandatory command identifiers.
11736
11737         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11738           funtions in client to fully support pending command callbacks.
11739
11740         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11741           as one of the arguments to the application in the command reply
11742           client operation.
11743
11744         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11745           before first releasing SILC but came back.  Now it is removed again
11746           and should come back nomore.  The FORWARDED flag was used only
11747           by the JOINing procedure by forwarding the command packet to router.
11748           Now, the JOINing procedure has been changed to more generic (due
11749           to various router environment issues) and FORWARDED is not needed
11750           anymore for anything.  The protocol specification is yet to be
11751           updated.
11752
11753           Now, removed silc_server_packet_forward from server and the flag
11754           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11755
11756 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11757
11758         * Renamed NAMES command to USERS command.  The NAMES was named that
11759           due to historical reasons.  Now it is renamed.  Also, rewrote
11760           parts of the USERS command.  The nickname list is not sent anymore
11761           by the server.  Only Client ID and mode lists are sent in the USERS
11762           command.  Changed this also to the protocol specification.
11763
11764           The client now resolves the names and stuff after it receives
11765           the USERS list from the server when joining to the channel.
11766
11767         * WHOIS and IDENTIFY commands has been changed to support multiple
11768           Client ID's per command.  One can now search for multiple users
11769           in the network by sending only one WHOIS or IDENTIFY command.
11770           Changed the code and the protocol specifications.
11771
11772         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11773           uses silc_server_command_whois_parse to parse the request. */
11774
11775         * If normal server, do not parse the WHOIS and IDENTIFY requests
11776           before sending it to the router.  Saves some time.
11777
11778 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11779
11780         * Fixed JOIN command on client library.  Wrong number of arguments
11781           used to crash the client.
11782
11783         * Added silc_server_channel_has_global function to check whether
11784           channel has global users or not.
11785
11786         * Added silc_server_channel_has_local function to check whether channel
11787           has locally connected clients on the channel.
11788
11789         * The silc_server_remove_from_one_channel now checks whether the
11790           channel has global users or not after given client was removed from
11791           the channel.  It also checks whether the channel has local clients
11792           on the channel anymore.  If it does not have then the channel entry
11793           is removed as it is not needed anymore.
11794
11795         * The silc_server_notify now checks on JOIN notify whether the joining
11796           client is one of locally connected or global.  If it is global then
11797           the channel has now global users on the channel and that is marked
11798           to the channel entry.  Also, it now saves the global client to
11799           global list who is joining and JOINs it to the channel.  This is
11800           for normal server, that is.
11801
11802           Changed silc_server_send_notify_on_channel,
11803           silc_server_packet_relay_to_channel and
11804           silc_server_packet_send_to_channel check if we are normal server
11805           and client has router set (ie. global client) do not send the
11806           message to that client, as it is already routed to our router.
11807
11808         * Implemented LEAVE notify type handling in silc_server_notify
11809           function.
11810
11811         * Tested LEAVE command in router environment successfully.  Tested
11812           with two routers, two servers and two clients.
11813
11814         * Updated TODO.
11815
11816         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11817
11818         * Implemented SIGNOFF notify type handling in silc_server_notify
11819           function.
11820
11821         * silc_server_remove_id now removes the client entry from all channels
11822           it has joined and thusly sends SIGNOFF notify type.
11823
11824         * Rewrote the NAMES list generation in server by removing two excess
11825           loops.  The lists are created now inside one loop.
11826
11827 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11828
11829         * silc_server_remove_channel_user checks now also global list
11830           for channel and client.
11831
11832         * silc_server_new_channel_user checks now both local and global
11833           list for channel and client.  Fixed a bug in client id decoding.
11834           Used to decode wrong buffer.
11835
11836         * silc_server_channel_message checks now both local and global
11837           list for channel entry.
11838
11839         * Tested channel joining (hence JOIN) in router environment
11840           successfully.  Tested with two routers, two servers and two
11841           clients.
11842
11843         * Tested channel message sending in router environment successfully.
11844
11845 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11846
11847         * Added silc_server_save_channel_key into server.[ch] to save the
11848           received channel key in Channel Key payload processing. It is
11849           also used in JOIN command reply handling.
11850
11851           Equivalent function silc_client_save_channel_key added into
11852           client.[ch] into client library.
11853
11854         * Changed JOIN command reply to send information whether the channel
11855           was created or not (is existing already) and the channel key
11856           payload.  Changed protocol specs accordingly.
11857
11858         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11859           the request was sent by ID and not by nickname.  Crashed on
11860           NULL dereference.
11861
11862 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11863
11864         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11865           now correctly save the received data.
11866
11867         * silc_server_free_sock_user_data now notifies routers in the
11868           network about entities leaving the network.
11869
11870           At the same time implemented functions silc_server_remove_id
11871           and silc_server_send_remove_id to receive and send REMOVE_ID
11872           packets.  The packet is used to notify routers in the network
11873           about leaving entities.  The ID removed will become invalid in
11874           the network.
11875
11876         * Added function silc_idlist_del_server into server. Removes and
11877           free's server entry from ID list.
11878
11879         * silc_server_private_message function now checks, if we are router,
11880           that the destination ID really is valid ID, naturally.
11881
11882         * In router when NEW_ID packet is received (for new client) the
11883           hash of the Client ID is saved in the ID Cache but the
11884           client->nickname is set to NULL, instead of putting the hash
11885           to it as well.
11886
11887           IDENTIFY command now also checks that client->nickname must be
11888           valid. If it is not if will request the data from the server who
11889           owns the client.  Added new function
11890           silc_server_command_identify_check.
11891
11892         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11893           to set the command to already allocated Command Payload.
11894
11895         * Tested private message sending in router environment with two
11896           routers, two servers and two clients.  Fixed minor bugs and now
11897           it works fine.
11898
11899         * Fixed segfault from client's NAMES command. Used to crash if
11900           not on any channel.
11901
11902         * Forwarded packets must not be routed even if it is not destined
11903           to the receiver.  Changed server code comply with this.
11904
11905 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11906
11907         * Added `require_reverse_mapping' boolean value to ServerParams
11908           structure. If TRUE (not default) the server will require that
11909           the connecting host has fully qualified domain name.
11910
11911           If the reverse mapping is not required and hostname could not be
11912           found the IP address is used as hostname.
11913
11914 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11915
11916         * Implemented version string checking to both client and server.
11917           The check is incomplete currently due to the abnormal version
11918           strings used in development version of SILC.
11919
11920         * Changed all command functions in server to use the new
11921           CHECK_ARGS macro.
11922
11923 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11924
11925         * Changed char *data to unsigned char *data in ID Cache system to
11926           support binary data as ID Cache data. Changed code to support
11927           binary data in lib/silccore/idcache.c.
11928
11929         * Renamed silc_server_packet_relay_command_reply to
11930           silc_server_command_reply as it is normal packet receiving
11931           function. Rewrote the function to accept command replys for
11932           servers and not only for clients.
11933
11934         * Mark remote router always as registered server if we are connecting
11935           to it.  Otherwise, commands sent by the router to us are ignored.
11936
11937         * All ID List find routines now returns the ID Cache Entry pointer
11938           as well if requested.
11939
11940         * WHOIS command works now in router environment, tested with two
11941           routers, two servers and two clients.
11942
11943         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11944           in router environment (as it is almost equivalent to WHOIS) but
11945           hasn't been tested thoroughly.  Added new functions:
11946
11947           silc_server_command_identify_parse
11948           silc_server_command_identify_send_reply
11949           silc_server_command_identify_from_client
11950           silc_server_command_identify_from_server
11951
11952         * Disabled route cache adding because adding two different ID's with
11953           same IP replaces the old cache entry thus giving wrong route.
11954           The entry->router->connection is always the fastest route anyway
11955           so route cache may not be needed.  Of course, new routes maybe
11956           established after receiving the ID when the entry->router->connection
11957           might not be anymore the most optimal.
11958
11959 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11960
11961         * Add route cache for received ID for fast routing.
11962
11963         * Added silc_server_packet_route to route received packet on router
11964           that is not destined to us.
11965
11966         * Renamed silc_server_get_route to silc_server_route_get.
11967
11968         * Added id_string and id_string_len fields into SilcServer to
11969           include encoded ServerID for fast comparing without excess
11970           encoding of the ID's.
11971
11972         * Cleaned up WHOIS command on server side. Added following static
11973           functions:
11974
11975           silc_server_command_whois_parse
11976           silc_server_command_whois_check
11977           silc_server_command_whois_send_reply
11978           silc_server_command_whois_from_client
11979           silc_server_command_whois_from_server
11980
11981         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11982           arguments in command replies. All command functions should be
11983           updated to use this macro.
11984
11985 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11986
11987         * Minor typo fixes on command reply handling on server.
11988
11989 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11990
11991         * Added silc_server_command_add_to_channel internal routine to add
11992           the client to the channel after router has created the channel and
11993           sent command reply to the server.
11994
11995         * Added generic silc_server_send_command to send any command from
11996           server.
11997
11998         * Use static buffer with ID rendering instead of duplicating data.
11999
12000 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12001
12002         * Fixed a channel user mode bug when joining to a channel server gave
12003           everybody channel founder rights, oops.
12004
12005         * We mark ourselves as the router of the incoming server connection
12006           if we are router ourselves.  This way we can check in some packet
12007           sending functions whether it is locally connected server.  For
12008           incoming router connections we put NULL.
12009
12010         * For router sending packets locally means now always sending the
12011           packet cell wide; to local clients and local servers.  For normal
12012           server sending packet locally means sending it to only local
12013           clients.
12014
12015         * Fixed the JOIN command to really work in router environment.  If the
12016           channel is created it is always created by the router.  Router is
12017           also responsible of making the initial joining to the channel,
12018           sending JOIN notify to the sending server and distributing
12019           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
12020           does not exist server doesn't do anything else but forward the
12021           command to the router which performs everything.
12022
12023         * Added silc_server_send_channel_key function to send the Channel Key
12024           payload.
12025
12026         * Added silc_server_create_channel_key to create new channel key.  The
12027           channel key is now re-generated everytime someone joins or leaves
12028           a channel, as protocol dictates.  Note: channel->key_len is the
12029           key length in bits.
12030
12031 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12032
12033         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
12034           packet_receive.[ch] to separate packet sending and receiving
12035           routines.  The server.[ch] now includes everything else including
12036           actual packet processing (writing and reading data) and other
12037           server issues.
12038
12039           Renamed silc_server_private_message_send_internal to
12040           silc_server_send_private_message.  The routine is still though
12041           used only to relay private messages as server does not send
12042           private messages itself.
12043
12044           Renamed silc_server_new_channel to silc_server_create_new_channel
12045           and added new function sicl_server_new_channel that handles the
12046           incoming New Channel packet.  Added also new sending function
12047           silc_server_send_new_channel to send New Channel Payload.
12048
12049         * Added new function silc_server_notify to process incoming notify
12050           packet to the server/router. Server may then relay the notify
12051           to clients if needed.
12052
12053         * Added new function silc_server_new_channel_user to process incoming
12054           New Channel User packet.  Router will redistribute the packet and
12055           send JOIN notify to its local clients and locally connected servers
12056           if needed.  Normal server will send JOIN notify to its local client
12057           on same channel when received this packet.  Added also corresponding
12058           sending function silc_server_send_new_channel_user to sent the
12059           payload.
12060
12061         * Added boolean route argument to send_notif_to_channel and
12062           packet_send_to_channel functions to attempt to route the packet
12063           if it is TRUE and send only locally if it is FALSE.
12064
12065 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12066
12067         * silc_server_replace_id now broadcasts the received replace ID
12068           packet if it is not broadcast packet already. The router must
12069           broadcast to inform other routers about changed ID.
12070
12071         * Added backpointer to server's router into SilcServer context in
12072           silcd/server_internal.h.
12073
12074         * Fixed silc_server_packet_broadcast to send correct broadcast
12075           packets.
12076
12077         * The channel key is now distributed to the local client as soon
12078           as it is received from the router (in router environment) so that
12079           no other packet may be sent for the channel until client has
12080           received the key.
12081
12082         * silc_server_remove_channel_user now broadcasts the received
12083           Remove Channel User packet if it is not broadcast packet already.
12084           The router must broadcast to inform other routers about removed
12085           channel user.
12086
12087         * Added users field into SilcPacketContext that is a reference count
12088           of the context.  One can increase the reference count by calling
12089           silc_packet_context_dup which is now changed to just increase the
12090           reference count instead of duplicating the data.  The reference
12091           count is decresed by calling silc_packet_context_free that will
12092           free the data after the reference count hits zero.
12093
12094           For now on the packet context and everything allocated into it
12095           (including the raw packet from network) must be freed by calling
12096           the new silc_packet_context_free function.  Added also new function
12097           silc_packet_context_alloc that must be used now to allocate the
12098           context.  This also means that if a routine is asynchronous from
12099           silc_[client/server]_packet_parse_type the packet context must
12100           be duplicated by calling silc_packet_context_dup.  Otherwise it
12101           gets free'd after silc_[client/server]_packet_parse_type returns.
12102           Also, one must remember that if packet is duplicated then its
12103           reference count must be decresed by calling the free function as
12104           many times as it was duplicated.
12105
12106         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
12107           from both client and server.
12108
12109 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12110
12111         * Made joining to a channel working in router environment.
12112
12113         * Cleaned up JOIN command on server side and create function
12114           silc_server_command_join_channel internal routine to make the
12115           joining happen.
12116
12117 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12118
12119         * Changed silc_command_pending list to SilcDList.  Also, added
12120           `ident' field to SilcServerCommandPending structure to identify
12121           the reply and to call correct callback.
12122
12123           Added silc_server_command_pending_check function to replace the
12124           corresnponding macro.  The silc_command_pending list is not
12125           extern anymore.
12126
12127         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
12128           to set identifier to previously allocated Command Payload.  It
12129           is used to set identifier for command when resending Command
12130           Payload.
12131
12132         * Added silc_command_payload_encode_payload to encode Command
12133           Payload buffer from SilcCommandPayload structure.
12134
12135         * Added silc_argument_payload_encode_payload to encode Argument
12136           payload buffer from SilcArgumentPayload structure.
12137
12138 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12139
12140         * Changed WHOIS command to support router connection on server side.
12141           The whois request is always sent to router unless the server is
12142           standalone server.  After server has received the reply from the
12143           router will it send the reply to the client.
12144
12145         * Added silc_server_packet_broadcast into silcd/server.[ch] to
12146           broadcast received broadcast packet.  The function is used only
12147           by router.  The broadcast packet is always sent to the router's
12148           primary route.
12149
12150         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
12151           render given ID to printable string, for log files for example.
12152
12153 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12154
12155         * Made basic router to router connections working.  At least they
12156           can now connect to each other but nothing really works the way
12157           they are supposed - yet.
12158
12159         * Added new initiator token to RouterConnection configuration
12160           file in silcd/serverconfig.[ch].  It is used to tell whether we
12161           are the initiator to the remote router or whether we'll expect
12162           the other end to connect.
12163
12164         * Moved registering of listener task to silc_server_init, hence
12165           the server starts listenning as soon as it is run, even if it
12166           does not have connections to other routers.  Let's see how well
12167           this will work.
12168
12169         * Changed default connection retry timeouts for more suitable in
12170           silcd/server.h.
12171
12172         * Removed cipher and such arguments from silc_idlist_add_client
12173           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
12174           Added new function silc_idlist_add_data to add the keys and stuff
12175           to any ID entry.
12176
12177         * Added SilcIDListData structure and added it to SilcClientEntry
12178           and SilcServerEntry as their first field in the structure.  This
12179           way we can explicitly cast the ID entries to the SilcIDListData
12180           structure and get common data for the entries.  In past, we had
12181           to first check what type of connection it is and then cast it to
12182           correct ID entry type.  Now, we can directly cast the opaque
12183           pointer to the SilcIDListData (no matter what ID entry it actually
12184           is) and get the data needed.
12185
12186 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12187
12188         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
12189           in some circumstances even if threre were timeout tasks, though not
12190           IO tasks, but tasks anyway.  Now fixed.
12191
12192         * Defined SilcServerConnection structure to hold connection specific
12193           stuff about directly connected servers and routers.  The definition
12194           is currently in silcd/server_internal.h.  I thought about having
12195           a bit more important role fro this struct but for now it is used
12196           only when connecting to other server (or router actually).
12197
12198         * Added connecting retry support in server when connecting to
12199           router(s).  The retry feature implement exponential backoff
12200           algorithm.  Also, added SilcServerParams structure to hold default
12201           parameters for server.  For now, it include these retry settings
12202           and are hard coded.  After server is moded to be as Silc Server
12203           Library this structure will be more important.
12204
12205 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12206
12207         * Changed client librarys channel->clients table to SilcList and
12208           changed code accordingly.
12209
12210 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12211
12212         * Changed client's channel table to SilcList and changed code
12213           accordingly.  Also changed SilcChannelClientEntry to include back-
12214           pointer to the channel so that client entry can use that structure
12215           as list as well and we have fast cross-reference to the channel.
12216           This change dramatically decreased the complexity of channel
12217           handling with client entry and vice versa (removed one extra
12218           loop when searching for channel entry from many functions).
12219
12220         * Changed server->sim from table to SilcDList and changed code
12221           accordingly.
12222
12223         * NAMES command can now be used from user interface.  It will show
12224           the user list on the channel, neatly.
12225
12226         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
12227           Code now saves realname of the user if it becomes available.
12228
12229         * Renamed configure.in to configure.in.pre and made ./prepare
12230           script to automatically add correct version string to
12231           configure.in which it creates from configure.in.pre.
12232
12233 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12234
12235         * NAMES command reply now shows users mode with the nickname when
12236           joining to channel.
12237
12238         * Moved silc_client_ch[u]mode[_char] functions from
12239           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
12240           place sucks, they are utility functions and should be in some
12241           other file.
12242
12243         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
12244
12245         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
12246           cras.
12247
12248 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12249
12250         * Updated README.
12251
12252         * Added TRQ (efficient deque and list library) into lib/trq.  This is
12253           a very good list library that is currently used in the SILC.  Defined
12254           SilcList API over the library because I didn't like the API very
12255           much.  See lib/trq/silclist.h for the API and examples of how to
12256           use the API.  Fixed various places in the code to use the new
12257           SilcList API. The SilcList is meant for lists that has a structure
12258           already defined as a list.  It is not suitable to add just some
12259           context to the list (in TRQ, the context is the list actually).
12260
12261           So, I defined SilcDList that can be used for the purpose where
12262           predefined list structure does not exit.  This can be used as
12263           such list.  Now some context just can be added to the SilcDList.
12264           Currently this list is not used in the SILC just yet, though there
12265           are a lot places where this can replace dynamically allocated
12266           tables and I will fix these places, later, to use SilcDList.
12267           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
12268           and use TRQ internally).
12269
12270           Also fixed some annoying warning messages that the original TRQ
12271           code generated.  Also minor changes to TRQ's Makefile.in.
12272
12273         * Added support for querying by Client ID to both WHOIS and
12274           IDENTIFY commands into server, as required by the protocol.
12275
12276         * Removed method function pointers from SilcBuffer structure. They
12277           weren't used to anything and just increased the context size for
12278           no good reason.  This change also made silc_buffer_alloc and
12279           silc_buffer_free functions inline functions.
12280
12281         * Disabled command flooding detection support until it's fixed so
12282           that it accepts commands in but does not execute them more than once
12283           in two seconds.
12284
12285         * Added silc_net_localhost(), to return local hostname, into
12286           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
12287           that must be initialized before calling silc_client_init.
12288
12289         * Added new function: silc_server_send_notify_on_channels to send
12290           notify messages to all channels client has joined.  It is assured
12291           that the message is sent only once per client.
12292
12293         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
12294           lib/silcutil/silcutil.[ch] as silc_format function.  The new
12295           function is generic and is used by server as well, not only by
12296           the logging routines.
12297
12298         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
12299           the provided version string was not acceptable.  Added new function:
12300           silc_ske_check_version into lib/silcske/silcske.h.  The function
12301           must be implemented by the application (client or server) and it
12302           does not reside in the SKE library.  The function checks the version
12303           string remote end sent.
12304
12305         * Added back pointers (to opaque context and to SilcSocketConnection)
12306           into SilcPacketContext structure into lib/silccore/silcpacket.h.
12307
12308         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
12309           duplicate packet context structure.
12310
12311         * Changed `notify' client operation to send same arguments as client
12312           receives from server except for ID's.  ID's are mapped to correct
12313           ID entry and that is returned.  Also, if channel entry is not sent
12314           by server but the notify is for channel the channel entry is sent
12315           to application (otherwise application doesn't know that it is for
12316           channel (library gets it from packet's Destination ID)).
12317
12318         * Added silc_client_remove_from_channels into client library to
12319           remove a client from all channels it has joined to.  Used when
12320           received SIGNOFF notify from server.  Added also new function
12321           silc_client_replace_from_channels to replace old ID entry with
12322           new ID entry on all channels.  Used when received NICK_CHANGE
12323           notify from server.
12324
12325         * Fixed ID Cache list handling in silc_idlist_get_client in
12326           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
12327           to get (or query) client by ID.
12328
12329         * Updated TODO list.
12330
12331         * Added connection authentication status message defined by the
12332           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
12333           support for these into the code in client and server side.
12334
12335         * Added generic function silc_client_send_command to send any command
12336           with variable argument list.  Application should use this function
12337           to send commands if the command functions provided by the library
12338           does not suite for the application's user interface needs.
12339
12340         * Added new `failure' client operation.  Application is notified about
12341           received failure packet if client is executing a protocol.  In this
12342           case the protocol's execution has failed.
12343
12344         * Added SKE's end notify to send the SKE_SUCCESS notify message that
12345           is required by the protocol.
12346
12347         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
12348           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
12349           error at our end.
12350
12351         * Added status flag to SilcSKE object to indicate realtime status
12352           of the SKE protocol.
12353
12354         * Application receives now exactly same command reply arguments as
12355           the library receives from server.  However, if ID is received the
12356           corresponding ID entry is returned to the application (eg. Client
12357           ID is mapped to correct SilcClientEntry entry and that is returned).
12358           Changed command_reply client operation due to this change.
12359
12360         * Changed all ID's in commands and in command replys as ID Payloads.
12361           Change affected both client and server side codes.
12362
12363           All ID's sent in SILC network (with execption of ID's in SILC
12364           Packet header) are sent in ID Payload to support variable length
12365           ID's.
12366
12367         * Server now notifies nick changes and notifies all clients on
12368           the channels about the new nickname (about the new Client ID,
12369           actually).
12370
12371         * Implemented CMODE command to change channel modes. Supports all
12372           channel modes defined by the protocol specs except ban and invite
12373           lists. (Also, private channel key mode is supported but support for
12374           setting private channel key in client is missing, thus, this mode
12375           has no effect on client side (except that server requires that the
12376           client uses private channel key and normal channel traffic does not
12377           work anymore)).
12378
12379           Also, invite mode works per se, but INVITE command does not work
12380           yet correctly, so you can set channel as invite only channel but
12381           inviting clients to the channel does not work (it is yet to be
12382           thought what's the best way to do it).
12383
12384         * Added new command SILC_COMMAND_CUMODE to change user mode on the
12385           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
12386           Implemented CUMODE command to change user's mode on the channel.
12387           Supports all modes defined by the protocol specs.
12388
12389         * Added NAMES command reply to return users modes on the channel.
12390
12391         * Removed unnecessary and slow ciphers from lib/silccrypt.
12392
12393         * Set SO_KEEPALIVE option to connection sockets by default.
12394
12395         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
12396
12397         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
12398           redefined the Notify Payload into protocol specs.
12399
12400         * Added silc_id_payload_parse_id to get ID directly from raw
12401           ID payload data.
12402
12403 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12404
12405         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
12406           accept searching by Client ID as well.
12407
12408         * Added support for LEAVE and SIGNOFF notify types in client library.
12409
12410         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
12411           to parse ID Payload from raw data.
12412
12413 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12414
12415         * Added flags parameter into silc_ske_assemble_security_properties
12416           function in lib/silcske/silcske.[ch].
12417
12418         * Changed notify client operation to fit better for notify messages
12419           sent by server.  The notify payload received from server is now
12420           passed to the application (after parsing it to SilcNotifyPayload).
12421           It is application's responsibility to retrieve the arguments
12422           from the payload and show the message the way it wants.  The message
12423           sent by server is implementation specific.
12424
12425         * Changed public keys to comply with the protocol specification.
12426           Old public keys are not supported anymore and are not compatible.
12427
12428         * Removed nickname from Channel Payload as the latest draft removed
12429           it.  The client must resolve the nickname from the NAMES command
12430           reply received when it joined the channel.
12431
12432           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
12433
12434 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12435
12436         * Fixed some errors in protocol specification drafts.
12437
12438         * Created lib/silccore/silcnotify.c to implement Notify Payload
12439           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
12440           generic payloads described by protocol specifications.  The file
12441           includes implementations for ID Payload and Argument Payload.
12442
12443         * Changed Command Payload implementation to use the new Argument
12444           Payload.  Changed command_xxxx_payload to command_payload_xxxx
12445           to comply with SILC coding conventions.
12446
12447         * Added suppport for Argument Payload handling in Notify Payload
12448           implementation as protocol requires it.  Added the new support
12449           into server and client lib as well.
12450
12451 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12452
12453         * Added support for multiple nicknames on same channel.  [n] is
12454           added locally to the nickname if there are more than one same
12455           nicknames on the channel.
12456
12457         * Server now sends all nicknames that matched WHOIS request.
12458           Client also shows the list received from server.
12459
12460         * Added TOPIC command to client side.  User can now set and show
12461           current topic on channel.
12462
12463         * Added MOTD command to client and server.  Also, server sends the
12464           motd when client connects to the server.
12465
12466         * Changed version strings to comply ISO 8601.
12467
12468 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12469
12470         * Fixed protocol error handling in client library.  It should now
12471           cope even if the SKE fails for some reason.
12472
12473         * Made new protocol specification drafts for submitting to IETF.
12474
12475         * Implemented TOPIC command to server in silcd/command.c.
12476
12477         * Added two new notify types into lib/silccore/silcnotify.h:
12478           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
12479           notify nickname change and topic setting/change on a channel.
12480
12481         * API change of command_reply operation in client library.  The
12482           application gets now the status type received from server as well.
12483
12484 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12485
12486         * Removed the function just added to lib/silcutil/silcschedule.[ch].
12487
12488         * Cras fixed and optimized the packet handling even further and
12489           it should work now.  Minor change to the prototype of function
12490           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
12491
12492 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12493
12494         * Added new function into lib/silcutil/silcschedule.[ch]:
12495           silc_schedule_with_fd to select() a specified fd.  The function
12496           returns after timeout expires or data arrives or goes.  The
12497           function is used by packet routines to wait that all data is
12498           received from network.
12499
12500         * Fixed data reading from network in lib/silccore/silcpacket.c.
12501           The code now assures that all data is read from the fd and then
12502           continues packet processing.  This was a bug fix since the code
12503           used to drop some data in some circumstances.
12504
12505         * Added new function into lib/silcclient/client.[ch]:
12506           silc_client_start_key_exchange to start key exchange after
12507           connection has been established to server.  The code internally
12508           now uses this funtion but its main purpose was to provide it
12509           for applications that perform their own connecting.  After
12510           application has created a connection it merely calls this
12511           function to start the key exchange between client and server.
12512           The library takes care of everything else after that.
12513
12514           Updated also lib/silcclient/README to explain the usage of
12515           this new function.
12516
12517         * Do not send to application information that connection has
12518           been established.  Application gets notified it by connect
12519           operation anyway.
12520
12521 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12522
12523         * Applied cras's patch to add silc_schedule_one function.  The
12524           function runs scheduler once and returns.
12525
12526         * Fixed the scheduler after cras messed it up.  The timeout
12527           handling works now as it's supposed to work.
12528
12529         * Added into lib/silccore/ silcnotify.h to include notify
12530           message types support.  Changed silc_server_send_notify*
12531           functions, in server.[ch], to support those new notify types.
12532           Added the support for the notify types into client library,
12533           as well.  Added new notify client operation into ops.h in
12534           lib/silcclient/.
12535
12536         * Changed silc_server_packet_send_to_channel to send normal
12537           packets instead of just channel message packets.  The function
12538           is now used to send the notify packets to channels.  It is not
12539           used to send channel message packets anymore, as server never
12540           sends them anymore.
12541
12542         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
12543           va_arg()s as it seems to require it nowadays.  I guess, if SILC
12544           is compiled with older va_arg() the new code should work anyway.
12545
12546 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12547
12548         * Splitted core library.  Core library (lib/silccore) includes
12549           now only SILC protocol specific core (and common) components.
12550           Created new utility library (lib/silcutil) that includes more
12551           generic purpose stuff.  The stuff for util library was taken
12552           from the old core library.  This was minor and easy split.
12553
12554         * Created SILC Client Library (lib/silcclient) that includes
12555           implementation of the SILC client without user interface.  This
12556           was major move from silc/ directory.  The code has been changed
12557           so that it is transparent towards the user interface.  The
12558           silc/ directory includes now the same user interface as before
12559           and it uses the new client library.  Read lib/silcclient/README.
12560           Basicly, the client library performs everything else related
12561           to SILC except user interface handling.  Also, configuration
12562           files are considered to be part of user interface and library
12563           does not handle them.
12564
12565           This change also changed a lot of structures, function naming etc.
12566           Most important change was that SilcClientWindow object was
12567           renamed to SilcClientConnection in the client library.  Created
12568           also new file lib/silcclient/ops.h.  Also added new files
12569           silc/local_command.[ch] and silc/client_ops.[ch].
12570
12571           All these changes were made to make it easier for user interface
12572           designers to create what ever user interface for the SILC client
12573           they want.
12574
12575           It is also expected that the server will be moved to lib
12576           directory as well and SILC Server Library will be created;
12577           sometimes in the future.
12578
12579         * Removed Local commands from lib/silccore/silccommand.h as
12580           they are application specific and new client library does not
12581           handle any of those anymore.
12582
12583         * Several functions moved to lib/silcutil/silcutilc.[ch] from
12584           old client implementation in silc/.
12585
12586         * Added support for callback functions in SILC_LOG_* macros.
12587           Application can now set its own callbacks that will be called
12588           instead of using the default functions that will always print
12589           the debug messages to stderr (or stdout).  Also, debugging can
12590           now be disabled by setting silc_debug to FALSE and re-enabled by
12591           setting it to TRUE.  Note, that logging will still work even
12592           if debugging is disabled.
12593
12594           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
12595           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
12596           silc_log_reset_debug_callbacks.
12597
12598         * To enable debugging in silc client one must give now -d
12599           option on command line.
12600
12601         * Changed silc_schedule_init to automatically allocate task queues
12602           if they are not allocated before calling it.
12603
12604 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12605
12606         * Added GMP 3.1 into math library.
12607
12608 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12609
12610         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
12611           a channel in SILC network.  The packet is used by servers and
12612           routers to notify other routers that user has left a channel.
12613           This little feature was missing until now.  Added the feature
12614           to protocol specification as well.
12615
12616           Added functions: silc_server_send_remove_channel_user and
12617           silc_server_remove_channel_user into server.[ch].
12618
12619         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
12620           lib/silccore/silcpacket.h.  However, they are not implemented
12621           yet.
12622
12623 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12624
12625         * Fixed joining to a channel and sending channel messages
12626           between server and router.  The channel message sending should
12627           now work inside a cell.
12628
12629 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12630
12631         * Fixed the private message sending between server and router.
12632           The private message sending should now work inside a cell.
12633
12634         * Added silc_server_replace_id into server.[ch] to replace
12635           existing ID in the SILC network.
12636
12637         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
12638           and silc_idlist_replace_server_id into idlist.[ch] in server.
12639
12640 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12641
12642         * Fixed the server to server connections.  Server can again now
12643           connect to router.  Router to router connections probably does
12644           not work just yet.
12645
12646 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12647
12648         * Added dynamic protocol registering support.  Now protocols can
12649           registered and unregistered on the fly.  Patch by cras.
12650
12651 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12652
12653         * Added lib/contrib directory to hold routines that some platforms
12654           don't have but are needed by SILC.
12655
12656         * Added getopt.c, getopt1.c and getopt.h from GNU C library
12657           into lin/contrib to provide getopt() and getopt_long() for
12658           those who don't have it.
12659
12660 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12661
12662         * Added AWAY command to client.  When away message is set and
12663           client receives a private message packet the client automatically
12664           replies to the sender with the away message.
12665
12666         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
12667           bug seemed to be the cause of recent problems when compiling
12668           with gcc-2.95.
12669
12670         * Added version detection support to SKE protocol specification
12671           and added the new changes to the SKE implementation as well.
12672           There were other minor changes in the SKE protocol as well.
12673
12674           Many changes in lib/silcske/silcske.[ch] and in
12675           lib/silcske/payload.[ch].
12676
12677         * Added ^U functionality, clear input line.  Patch from cras.
12678
12679 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12680
12681         * Mainly small bugfixes on core library.  Fixed some debugging
12682           logging and buffer overflow in silclog.c.
12683
12684         * Updated config.sub and config.guess on the distribution tree.
12685
12686 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12687
12688         * Added command lagging support in server. Client may execute
12689           commands now only once in two seconds.
12690
12691 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12692
12693         * Optimized packet reception. MAC computation and checking is now
12694           also more optimized.  A lot previously duplicated code is now
12695           used as generic by both client and server.
12696
12697         * Fixed key pair generation in clientutil.c
12698
12699 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12700
12701         * Added into lib/silccore/silcbufutil.[ch] new function;
12702           silc_buffer_realloc.
12703
12704         * Moved generic packet sending/encryption functions to
12705           lib/silccore/silcpacket.[ch] from client and server.  Some
12706           rewriting of the functions.
12707
12708         * Moved all generic packet reception/decryption functions to
12709           lib/silccore/silcpacket.[ch] from client and server.  The
12710           packet processing is now much cleaner in both client and server.
12711           These were major changes in both client and server.
12712
12713         * Created many common functions in server to do packet sending.
12714           Previously code were duplicated a lot, this has been removed
12715           with these changes.
12716
12717 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12718
12719         * Rewrote major parts of the ID cache system.  Don't know
12720           whether it is better now or not but at least the API is more
12721           cleaner now.
12722
12723         * Major rewrite on ID cache stuff on client because of the ID
12724           cache API changes.  Added idlist.c to client.
12725
12726         * Also major rewrite on ID cache stuff on server as well.
12727           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12728           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12729           in hand, instead they are all put into the ID cache system now.
12730           All server_idlist_* routines uses ID cache now instead of
12731           traversing its own lists (those lists does not exist anymore).
12732           SilcIDList though still exists.  Also, SilcXXXEntry's are
12733           now pointers.
12734
12735 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12736
12737         * Finally made the SKE implementation compliant to the protocol
12738           specification.  All mp integers are now binary encoded as
12739           opposed being HEX encoded.
12740
12741         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12742           from binary data.
12743
12744         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12745           functions: silc_[encode/decode]_pem.  Also added function
12746           silc_encode_pem_file to PEM encode with newlines ('\n') for
12747           saving into a file.
12748
12749         * SILC public keys are now encoded either PEM or binary.  Same
12750           option is for private keys as well.  By default private keys
12751           are binary encoded and public keys PEM encoded.  Silly HEX
12752           encoding were removed.
12753
12754         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12755           function to create fingerprints.
12756
12757         * Fixed a bug in SHA1; does not change the original data anymore.
12758
12759         * Partly implemented INFO command on client and server side.
12760           Fixed CLEAR command.  Changes to SERVER command; show current
12761           server(s) when giving command without arguments.  Added
12762           VERSION command to client.
12763
12764         * Added check to server that unregistered connections cannot
12765           execute commands (unless it is specificly allowed).
12766
12767 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12768
12769         * Fixed screen refresh.
12770
12771         * Fixed channel joining bug from client.  On some circumstances
12772           client tried to join to a channel it had already joined.
12773
12774         * Added public key verification process into client's protocol.c.
12775           The client now verifies the public key from user and saves
12776           it into ~./silc/serverkeys/ directory.
12777
12778           Added into: clientutil.[ch]: silc_client_verify_server_key.
12779
12780         * Changed SKE protocol's silc_ske_initiator_finish function
12781           to accept callback function that verifies the received public
12782           key.  Removed old silc_ske_verify_public_key function.
12783
12784 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12785
12786         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12787           silc_pkcs_private_key[_data]_set.
12788
12789         * Made the password and public authentication more cleaner in
12790           server's protocol.c.
12791
12792         * Removed historic and obsolete protocol `channel_auth' from
12793           both client and server.
12794
12795         * Removed wrong way of sending command status messages from
12796           server to client in server's command.c.  The old way violated
12797           protocol specification.
12798
12799           Changes to silccore/silccommand.[ch]: removed
12800           silc_command_encode_status_payload -> not needed anymore,
12801           changed silc_command_encode_payload_va to accept extra
12802           argument on variable argument list.  The argument type must
12803           now be provided to the function.  Also, added new function:
12804           silc_command_encode_reply_payload_va which is same as
12805           normal command_encode_payload_va except command status type
12806           is provided as extra argument.
12807
12808 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12809
12810         * Added ~./silc directory handling.  The directory includes the
12811           public and private keys for the client.
12812
12813           Added silc_client_check_silc_dir, silc_client_create_identifier
12814           and silc_client_load_keys.
12815
12816         * Implemented SILC protocol compliant public key.  Added public
12817           and private key saving to and loading from files.
12818
12819           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12820           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12821           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12822           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12823           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12824
12825           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12826           silc_pkcs_load_[public/private]_key.
12827
12828 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12829
12830         * Added silc_server_get_route (route.[ch]) to get connection
12831           data for the fastest route for given ID.
12832
12833         * Implemented INVITE command on client and server.  The command
12834           were re-defined in the SILC Protocol Specification and the
12835           implementation now complies with the specification.
12836
12837         * Implemented PING command on client and server.
12838
12839         * Implemented NAMES command on client and server.  The server side
12840           supports currently only normal server not router server yet.
12841           Some changes to NAMES definition in SILC protocol specification.
12842
12843 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12844
12845         * Implemented LEAVE command on client and server.
12846
12847         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12848           again.  This change was made to the protocol as well.  Server
12849           should not violate the protocol specification anymore.
12850
12851 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12852
12853         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12854           was tested.  SOCKS4 was not but should work anyway.