Fixed server/backup router reconnecting
[silc.git] / CHANGES
1 Thu Mar 13 13:31:35 EET 2008  Pekka Riikonen <priikone@silcnet.org>
2
3         * Fixed silcd crash in NEW_CLIENT packet handling when nickname
4           is not present in the packet.  Affected files are
5           apps/silcd/packet_receive.c.
6
7 Fri Feb 22 16:12:27 EET 2008  Pekka Riikonen <priikone@silcnet.org>
8
9         * Fixed partial encryption in CTR mode in AES.  Change does not
10           affect interoperability in SILC due to the way CTR is used in
11           SILC.  But, fixed anyway.  Affected files are
12           lib/silccrypt/aes.c and rijndael_internal.h.
13
14 Tue Jan  8 09:41:57 EET 2008  Pekka Riikonen <priikone@silcnet.org>
15
16         * Fixed printable fingerprint bufferoverlfow, RedHat bug 372021.
17           Affected file is lib/silcutil/silcutil.c.
18
19 Sun Dec 30 14:00:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
20
21         * Fixed unix signal delivery in SILC scheduler.  Affected file
22           is lib/silcutil/unix/silcunixschedule.c.
23
24 Sun Nov 18 16:43:04 CET 2007  Jochen Eisinger <coffee@silcnet.org>
25
26         * Add -avoid-version and -rpath flags when compiling the plugin.
27           Affected file is apps/irssi/src/fe-common/silc/Makefile.in
28
29 Thu Nov 15 18:03:53 EET 2007  Pekka Riikonen <priikone@silcnet.org>
30
31         * Reprocess JOIN command synchronously after resolving channel
32           user list.  Affected file is lib/silcclient/command_reply.c.
33
34         * In JOIN command reply check if the channel key is already
35           saved.  If it is we have received new key from server while
36           resolving user and must not save the old key.  Affected file
37           is lib/silcclient/command_reply.c.
38
39         * Remove all channel keys and hmacs after giving LEAVE command.
40           Affected file is lib/silcclient/command_reply.c.
41
42 Tue Nov 13 18:24:56 EET 2007  Pekka Riikonen <priikone@silcnet.org>
43
44         * Added missing channel unreferencing in CMODE, CUMODE,
45           TOPIC, INVITE, BAN and KICK command replies.  Affected
46           file is lib/silcclient/command_reply.c.
47
48 Sun Nov 11 23:04:54 EET 2007 Pekka Riikonen <priikone@silcnet.org>
49
50         * Free stream data and abort ongoing protocols correctly
51           for primary router connections receiving end of stream.
52           Affected file is apps/silcd/server.c.
53
54 Sun Nov 11 16:02:12 EET 2007 Pekka Riikonen <priikone@silcnet.org>
55
56         * SILC Server 1.1 Beta4.
57
58 Sun Nov 11 14:15:48 EET 2007  Pekka Riikonen <priikone@silcnet.org>
59
60         * SILC Toolkit 1.1.5.
61         
62 Sun Nov 11 11:22:35 EET 2007  Pekka Riikonen <priikone@silcnet.org>
63
64         * Fixed connection authentication with public keys to use
65           correct public key as responder.  Affected file is
66           lib/silcske/silcconnauth.c.
67
68         * Fixed public key authentication in server.  Affected file is
69           apps/silcd/serverconfig.c.
70
71         * Fixed OPER and SILCOPER public key authentication.  Affected
72           file is apps/silcd/server.c.
73
74         * Fixed prefer_passphrase_auth flag in server.  Fixed
75           disconnection of unauthenticated connection.  Affected file is
76           apps/silcd/server.c.
77
78         * Fixed client resuming in server.  Affected file is
79           apps/silcd/packet_receive.c.
80
81         * Fixed IDENTIFY and WHOWAS command reply to correctly update
82           client entries (fixes a crash).  Affected file is
83           apps/silcd/command_reply.c.
84
85 Tue Nov  6 16:39:20 EET 2007  Pekka Riikonen <priikone@silcnet.org>
86
87         * SILC Client 1.1.3.
88
89 Mon Nov  5 23:07:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
90
91         * Zero tail of CTR mode IV in IV Included mode.  Change does
92           not cause compatibility issues.  Affected file is
93           lib/silcske/silcske.c.
94
95 Mon Nov  5 22:24:25 EET 2007  Pekka Riikonen <priikone@silcnet.org>
96
97         * SILC Toolkit 1.1.4.
98
99         * Fixed CTR mode rekey.  Affected file is lib/silcske/silcske.c.
100
101         * Rewrote the IV Included CTR mode encryption/decryption in
102           packet engine.  Affected file is lib/silccore/silcpacket.c.
103
104 Sun Nov  4 15:20:25 EET 2007  Pekka Riikonen <priikone@silcnet.org>
105
106         * Removed module_path and module options from the server
107           config file format.  Affected file is apps/silcd/serverconfig.c.
108
109         * Fixed non-IPv6 compilation error.  Affected file is
110           lib/silcutil/unix/silcunixnet.c.
111
112 Sat Nov  3 23:23:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
113
114         * Do not free packet engine before uninitializing scheduler.
115           Do not disconnct already disconnected streams.  Affected
116           files are in apps/silcd/.
117
118         * Fixed setting correct ID for re-encrypted channel messages
119           in router-to-router connections.  Affected file is
120           apps/silcd/packet_send.c.
121
122 Sun Sep 30 15:16:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
123
124         * Fixed channel private key deleting when deleting the channel.
125           Affected file is lib/silcclient/client_channel.c.
126
127 Sun Sep  9 17:52:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
128
129         * SILC Toolkit 1.1.3.
130
131         * Fixed possible buffer overflows from SILC Config code.
132           Patch from Jérémy Bobbio.  Affected file is
133           lib/silcutil/silcconfig.c.
134
135 Sun Aug 26 12:28:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
136
137         * Fixed TIMEOUT handling in user info resolving during JOINing,
138           fixes crash.  Affected file is lib/silcclient/client_notify.c.
139
140         * Fixed mandatory UN and HN SILC public key identifier checking
141           (both must be present).  Affected file is
142           lib/silccrypt/silcpk.c.
143
144 Tue Aug  7 20:56:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
145
146         * Fixed alignment issues with 64-bit CPUs.  Affected files
147           are lib/silcutil/silcschedule.c and unix/silcunixschedule.c.
148
149         * Added "There are now xx nick's" to "are xx nicks".  Affected
150           file is apps/irssi/src/fe-common/silc/module-formats.c.
151
152 Sat Aug 4 18:37:22 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
153
154         * Fixed USERS command user mode handling (integer overflow).
155           Affected file is lib/silcclient/command_reply.c.
156
157 Thu Jul 19 21:08:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
158
159         * Fixed big-endian issues from aes implementation.  Affected
160           files are lib/silccrypt/aes.c.
161
162         * Fixed lib/silcutil/silcatomic.h compilation on IA64.  Patch
163           from Jérémy Bobbio.
164
165         * Fixed public key identifier parsing to check lengths
166           correctly.  Affected file is lib/silccrypt/silcpk.c.
167
168 Wed Jul  4 08:06:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
169
170         * SILC Toolkit 1.1.2.
171
172         * SILC Client 1.1.2.
173
174 Mon Jul  2 17:28:47 CEST 2007  Pekka Riikonen <priikone@silcnet.org>
175
176         * In silc_client_free check that scheduler is allocated before
177           trying to free it.  Affected file is lib/silcclient/client.c.
178
179         * Fixed buffer overflow in NICK_CHANGE notify.  The destination
180           buffer for old nickname was too small.  Affected file is
181           lib/silclient/client_notify.c.
182
183 Sun Jul  1 19:15:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
184
185         * SILC Server 1.1 Beta1.
186
187 Sun Jul  1 12:40:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
188
189         * Added support for rekey with PFS when using CTR mode
190           encryption.  Affected file is lib/silcske/silcske.c.
191
192         * Added silc_idcache_move that can be used to move entries
193           between caches.  Affected files are
194           lib/silcapputil/silcidcache.[ch].
195
196         * Added better checks for invalid argument and notify payloads.
197           Affected files are lib/silccore/silcnotify.c and
198           silcargument.c.
199
200         * Fixed SILC_PACKET_FLAG_LONG_PAD bitmask value.  Affected
201           file lib/silccore/silcpacket.h.
202
203 Sat Jun 30 21:48:08 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
204
205         * Set the destination ID to packet stream as SKE responder
206           if ID was present in key exchange packet.  Affected file
207           is lib/silcske/silcske.[ch].
208
209         * Handle also zero timeouts in the scheduler notify callback
210           to avoid problems with SILC Plugin.  Affected file is
211           apps/irssi/src/silc/core/silc-core.c.
212
213 Thu Jun 28 19:19:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
214
215         * SILC Client 1.1.1.
216
217 Sun Jun 24 18:47:55 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
218
219         * SILC Toolkit 1.1.1.
220
221         * Compile sources with _GNU_SOURCE on Linux systems.  Affected
222           file is configure.ad.
223
224 Sun Jun 24 16:33:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
225
226         * Fixed Unix signal task dispatching to not lock the signals
227           when dispatching the callback to avoid deadlocks.  Affected
228           file is lib/silcutil/unix/silcunixschedule.c.
229
230 Sun Jun 24 14:43:21 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
231
232         * Fix configure output for with-plugin.  Affected file is
233           apps/irssi/configure.ad
234
235 Tue Jun 19 17:05:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
236
237         * Added SILC_VERSION macro for checking package versions at
238           compile time.  Affected files are configure.ad,
239           includes/silc.h.in and includes/silcversion.h.in.
240
241 Mon Jun 18 23:47:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
242
243         * Use SILC_VERIFY to assert that silc_rwlock_wrlock can be
244           called only once per thread on Unix.  Affected file is
245           lib/silcutil/unix/silcunixthread.c.  Added same for mutex
246           as well.   Documented same on the API in
247           lib/silcutil/silcmutex.h.
248
249         * Fixed USERS command reply write-lock unlocking.  Affected file
250           is lib/silcclient/command_reply.c.
251
252 Mon Jun 18 08:14:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
253
254         * Fixed silc_create_key_pair to check for valid identifier.
255           Affected file is lib/silcapputil/silcapputil.c.
256
257 Sun Jun 17 20:08:26 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
258
259         * Rewrite signed public message handling, adopting the new
260           hilight interface.  Affected file is
261           apps/irssi/src/fe-common/silc/fe-silc-messages.c
262
263 Thu Jun 14 21:15:31 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
264
265         * Fix off by one error when loading modules.  Affected file is
266           apps/irssi/src/core/modules-load.c
267
268         * Don't delete hilight entry (because it's just a pointer, not a
269           copy).  Affected file is
270           apps/irssi/src/fe-common/silc/fe-silc-messages.c
271
272 Mon Jun 11 22:10:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
273
274         * Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution
275           which can be used to check for Toolkit version in third-party
276           software.  Affected file is configure.ad, includes/silc.h.in.
277
278 Sun Jun 10 17:32:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
279
280         * Added support for channel@server channel name strings to
281           client library (SILC protocol version 1.3 change).  Affected
282           files are lib/silcclient/silcclient_entry.h, client_entry.c.
283
284         * Added full_nicknames and full_channel_names settings to
285           SilcClientParams that can be used to specify whether client
286           library returns full nickname and channel name strings.
287           Full strings are nick@server and channel@server.  Affected
288           file is lib/silcclient/client_entry.c and command.c.
289
290 Sat Jun  9 19:43:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
291
292         * Fixed unix connecting failure to return error code correctly.
293           Affected file is lib/silcutil/unix/silcunixnet.c.
294
295 Fri Jun  8 23:32:33 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
296
297         * Fixed SKE timeout double free crash.  Affected file is
298           lib/silcske/silcske.c.
299
300         * Fixed MIME multipart decoding buffer overflow.  Affected file
301           is lib/silcutil/silcmime.c.  Thanks to Matt Miller for patch.
302
303 Fri Jun  8 18:39:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
304
305         * Fixed connection auth protocol timeout crash.  Affected
306           file is lib/silcske/silconnauth.c.
307
308         * Fixed FSM machine finishing to check for existing threads
309           at the final free callback to allow time for the threads to
310           finish.  Affected file lib/silcutil/silcfsm.c.
311
312 Thu Jun  7 21:25:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
313
314         * Fixed silc_client_get_clients_local to check the nick's
315           server also if nick@server nickname string is given to the
316           function.  Affected file is lib/silcclient/client_entry.c.
317
318 Wed Jun  6 18:33:05 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
319
320         * Added notify callback to silc_schedule_init which can be used to
321           set a notify callback for scheduler which is called when task is
322           added to scheduler or deleted from scheduler.  Affected file
323           is lib/silcutil/silcschedule.[ch].
324
325         * Dispatch timeout tasks after dispatching FD tasks if the timeout
326           was very short.  Affected file is lib/silcutil/silcschedule.c.
327
328         * Rewrote the SILC scheduler handling in SILC Client to not poll
329           every few msecs but to use the new notify callback.  Affected
330           file is apps/irssi/src/silc/core/silc-core.c.
331
332         * Fixed SFTP client library read buffer size which was too small.
333           Affected file is lib/silcsftp/sftp_client.c.
334
335         * Fixed file transfer crash bug in /QUIT in SILC Client.  Close
336           the FTP sessions before quitting the client.  Affected file
337           is apps/irssi/src/silc/core/silc-servers.c.
338
339 Tue Jun  5 20:48:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
340
341         * Fixed silc_packet_get_ids to decode the IDs correctly.
342           Affected file is lib/silccore/silcpacket.c.
343
344         * Fixed silc_client_get_clients_local to parse correctly nickname
345           string that may have server name in it (nick@server) regardless
346           whether it was formatted nickname or not.  Affected file is
347           lib/silcclient/client_entry.c.
348
349 Mon Jun  4 22:02:53 CEST 2007  Jochen Eisinger <jochen@penguin-breeder.org>
350
351         * Only destroy sendbuffers, if they still exist (they cease to
352           exist during /upgrade).  Affected file is
353           apps/irssi/src/silc/core/silc-servers.c
354
355 Mon Jun  4 21:24:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
356
357         * Removed --enable-silc-plugin.  Added --with-silc-plugin.
358           Affected files are configure.ad, lib/configure.ad,
359           apps/irssi/configure.ad, apps/irssi/configure.in,
360           apps/irssi/scripts/Makefile.am,
361           apps/irssi/scripts/examples/Makefile.am,
362           apps/irssi/src/silc/core/silc/Makefile.am,
363           apps/irssi/src/fe-common/silc/Makefile.am.
364
365 Mon Jun  4 08:35:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
366
367         * SILC Client 1.1.
368
369 Sun Jun  3 14:00:09 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
370
371         * Fixed DESTDIR handling in make install.
372
373 Sat Jun  2 21:04:32 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
374
375         * SIM modules are not delivered to SILC CLient distribution
376           anymore.
377
378         * Changed default installation path from /usr/local/silc to
379           /usr/local for all distributions.
380
381         * Removed --with-etcdir and --with-docdir.  The etcdir is now
382           the system's default.  The Docdir is system's default.
383
384 Sat Jun  2 00:51:57 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
385
386         * If public key/private key loading fails set the return
387           pointer to NULL.  Affected file is lib/silccrypt/silcpkcs.c.
388
389         * If private key loading fails in silc_load_key_pair free the
390           loaded public key.  Affected file is
391           lib/silcapputil/silcapputil.c.
392
393         * Fixed key pair loading crash with SILC Plugin if key pair
394           loading fails.  Affected file is
395           apps/irssi/src/silc/core/silc-core.c.
396
397         * Fixed SILC Client help and script file installation path
398           to go to prefix/share/silc.  Affected files are
399           apps/irssi/src/scripts/Makefile.am and
400           apps/irssi/docs/help/Makefile.am.gen.
401
402 Thu May 31 16:49:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
403
404         * Fixed UTC offset minutes to be actually minutes.  Affected
405           file is lib/silcutil/silctime.c.
406
407 Thu May 31 09:40:56 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
408
409         * SILC Toolkit 1.1.
410
411         * Added support for checking for timezone and tm_gmtoff.
412           Affected files are configure.ad and lib/silcutil/silctime.c.
413
414 Wed May 30 18:46:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
415
416         * Added silc-toolkit.spec.in RPM spec file.
417
418 Mon May 28 23:21:39 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
419
420         * Fixed nickname formatting crash when updating existing
421           client entry.  Affected file is lib/silcclient/client_entry.c.
422
423         * Fixed MIME object encoding in attribute payload encoding.
424           Affected file is lib/silccore/silcattrs.c.
425
426 Mon May 28 09:02:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
427
428         * SILC Client 1.1 Beta6
429
430 Sun May 27 20:38:30 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
431
432         * Copy SILC Plugin's libfe_common_silc.so to libfe_silc.so so
433           that user's don't have to do it manually.  Affected file
434           is apps/irssi/src/fe-common/silc/core/Makefile.am.
435
436 Thu May 24 15:30:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
437
438         * SILC Toolkit 1.1 Beta4.
439
440         * Fixed channel and server entry freeing in client library.
441           Affected file is lib/silcclient/client_entry.c.
442
443         * Do not allow stopping client before it has been started.
444           Affected file is lib/silcclient/client.c.
445
446 Wed May 23 23:21:03 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
447
448         * Fixed formatted nickname renaming to rename also irssi's
449           nicklist (/NAMES etc).  Affected file is
450           apps/irssi/src/silc/core/client_ops.c.
451
452         * Fixed SILC Plugin crash when stopping client library before
453           it has been started.  Affected file is
454           apps/irssi/src/silc/core/silc-core.c.
455
456 Tue May 22 17:18:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
457
458         * For SILC Client and SILC Server check for 1.1 Toolkit
459           in configure.  Affected file is configure.ad.
460
461         * Added better library linking flags and orders for SILC Client.
462           Affected file is configure.ad, Makefile.defines_int.in and
463           apps/irssi/src/fe-text/Makefile.am
464
465 Mon May 21 08:26:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
466
467         * SILC Client 1.1 Beta5.
468
469 Sun May 20 18:34:22 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
470
471         * Add hooks for Irssi 0.8.11 module functions.  Affected file
472           is apps/irssi/src/fe-common/silc/fe-common-silc.c
473
474 Sat May 19 14:46:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
475
476         * Fixed passphrase authentication with server.  Affected file
477           is lib/silcclient/client_connect.c.
478
479         * Fixed passphrase authentication as responder.  Affected file is
480           lib/silcske/silcconnauth.c.
481
482         * Changed SilcAskPassphrase and SilcGetAuthMeth callbacks to
483           return data as const.  Affected file is
484           lib/silcclient/silcclient.h.
485
486         * Fixed timeout calculation in Symbian scheduler.  Affected
487           file is lib/silcutil/symbian/silcsymbianscheduler.c.
488
489 Fri May 18 21:10:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
490
491         * Do not uninitialize u.m.threads atomic int in finish but in
492           free.  Fixes crash on any platform using atomic operations
493           using mutexes (like Symbian).  Affected file is
494           lib/silcutil/silcfsm.c.
495
496         * Fixes Symbian scheduler wakeup synchronization.  Affected file
497           is lib/silcutil/symbian/silcsymbianscheduler.c.
498
499 Fri May 18 18:10:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
500
501         * Fixed nickname formatting to handle already formatted nicknames
502           better.  Affected file is lib/silccilent/client_entry.c.
503
504         * Added "foo#2 appears as foo" support to SILC Client when user
505           leaves or quits and one formatted nickname remain.  Affected file
506           is apps/irssi/src/silc/core/client_ops.c.
507
508         * Send SilcChannelEntry to application in SILC_NOTIFY_TYPE_SIGNOFF.
509           Affected file is lib/silcclient/client_notify.c.
510
511 Thu May 17 18:05:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
512
513         * Fixed silc_show_public_key to not free public key in case of
514           failure.  Affected file is lib/silcapputil/silcapputil.c.
515
516 Thu May 17 17:09:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
517
518         * SILC Toolkit 1.1 Beta3.
519
520         * Porting Toolkit to Symbian.  It should work while some sporadic
521           odd crashes remain.  However I was able to run mybot on SILCNet.
522           Basically tested scheduler, net routines, socket  routines,
523           threads and some other utility routines.  Affected files are
524           in lib/silcutil/symbian/.
525
526 Thu May 17 11:57:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
527
528         * Show realname and email address from public key when verifying
529           cached public keys with GETKEY.  Affected files are
530           apps/irssi/src/fe-common/module-formats.[ch] and
531           apps/irssi/src/silc/core/client_ops.c.
532
533 Wed May 16 20:41:04 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
534
535         * Include SILC Plugin theme.  Affected file is apps/irssi/plugin.theme
536
537         * Include SILC Plugin /silc command help.  Affected file is
538           apps/irssi/docs/help/silc
539
540         * Create channels before joining them.  Affected file is
541           apps/irssi/src/silc/core/client_ops.c
542
543 Wed May 16 18:59:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
544
545         * Fixed channel private key listing with /key.  Affected file
546           is apps/irssi/src/silc/core/silc-channels.c.
547
548         * Fixed the public headers from anonymous structures.  Affected
549           files are lib/.
550
551         * Changed silc_buffer_*len macros to inline functions.  Affected
552           file is lib/silcutil/silcbuffer.h.
553
554 Wed May 16 10:21:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
555
556         * Fixed nickname format parsing in JOIN notify handling and
557           in WHOIS command reply.  Affected file is
558           apps/irssi/src/silc/core/client_ops.c.
559
560 Wed May 16 09:34:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
561
562         * SILC Client 1.1 Beta4.
563
564 Tue May 15 23:55:41 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
565
566         * Added SILC_VERIFY macro which is equivalent to SILC_ASSERT
567           but is compiled always in.  Affected file is
568           lib/silcutil/silclog.h.
569
570         * Use SILC_VERIFY in FSM macros instead of SILC_ASSERT which is
571           not there in release builds.  Affected file is
572           lib/silcutil/silcfsm.h.
573
574 Tue May 15 21:19:09 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
575
576         * SILC Client 1.1-beta3
577
578 Mon May 14 23:20:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
579
580         * Added silc_utf8_c2w and silc_utf8_w2c to do UTF-8 to widechar
581           and widechar to UTF-8 conversions.  Affected files are
582           lib/silcutil/silcutf8.[ch].
583
584 Mon May 14 19:45:14 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
585
586         * Include a README for the SILC Plugin
587
588 Sun May 13 22:08:59 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
589
590         * Adopt perl Makefiles for SILC Plugin.
591
592 Sun May 13 18:27:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
593
594         * Fixed client library initialization when the running callback
595           is not given to silc_client_init.  Affected file is
596           lib/silcclient/client.c.
597
598         * Fixed Symbian compilation problems around the tree.  Added
599           new Carbide.c++ project files to symbian/ directory.
600
601         * Fixed SilcLog API to work on Symbian.  On Symbian it doesn't
602           use any globals.  Affected files are lib/silcutil/silclog.c
603           and silclog_i.h.
604
605 Sun May 13 16:54:35 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
606
607         * Fix several warnings in Irssi's Makefiles.
608
609 Sun May 13 12:16:30 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
610
611         * Disable ASM if --with-pic was given.  Affected file is
612           lib/silccrypt/configure.ad
613
614 Fri May 11 19:10:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
615
616         * Wakeup scheduler in silc_fsm_continue and silc_fsm_next_later
617           in case they are called from a thread.  Affected file is
618           lib/silcutil/silcfsm.c.
619
620         * Fixed WIN32 thread creation to handle the Tls correctly.
621           Affected file is lib/silcutil/win32/silcwin32thread.c.
622
623 Thu May 10 18:29:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
624
625         * SILC Toolkit 1.1-beta2.
626
627 Thu May 10 18:21:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
628
629         * Fixed silc_net_tcp_connect crash on Unix and Win32.  Handle
630           the socket async operation correctly.  Changed that DNS lookup
631           is now done during connecting.  Affected files are
632           lib/silcutil/[unix|win32]/silc[unix|win32]net.c.
633
634         * Changed also silc_net_tcp_connect on Symbian to do DNS lookup.
635           Affected file is lib/silcutil/symbian/silcsymbiannet.c.
636
637         * Optimize silc_net_gethostbyname to check if the name is already
638           IP address.  Affected file is lib/silcutil/silcnet.c.
639
640 Wed May  9 19:51:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
641
642         * Print filename instead of empty function name in debug output
643           on WIN32.  Affected files are lib/silcutil/silclog_i.h and
644           silclog.c.
645
646         * Rewrote WIN32 SILC Scheduler.  It now handles non-blocking file
647           descriptors and sockets better.  Though, room for optimization
648           remains.  Affected file is lib/silcutil/win32/silcwin32schedule.c.
649
650         * Removed silc_net_win32_[init|uninit].  They are called now
651           automatically when SILC Scheduler is allocated.  Wrote IPv4
652           address parser because inet_addr seemed not to work on my WIN32.
653           Affected file is lib/silcutil/win32/silcwin32net.c.
654
655         * Improved socketstream.h and stream.h documentation.
656
657 Tue May  8 18:13:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
658
659         * Changed private message waiting API in client library to make
660           it work better with multiple waiting threads.  The waiting is
661           not always per client entry instead of per connection.  Affected
662           files are lib/silcclient/client_prvmsg.c, client.h and
663           silcclient.h.
664
665         * Changed silc_packet_wait_init function to accept the the expected
666           Source ID of the packet as argument.  If specified only packets
667           with the specified types and Source ID are delivered.  Affected
668           files are lib/silccore/silcpacket.[ch].
669
670         * Fixed file transfer disconnection crash when closing the session
671           directly in the monitor callback after disconnection.  Affected
672           file is lib/silcclient/client_ftp.c.
673
674         * Make Toolkit compile on WIN32.  Affected files in win32/
675           and in lib/silcutil/win32/.
676
677         * Changed silc_compare_timeval to return negative, zero or
678           positive instead of just TRUE or FALSE.  This fixes 0 timeout
679           task dispatching on Windows.  Affected files are
680           lib/silcutil/silctime.[ch] and silcschedule.c.
681
682 Mon May  7 18:18:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
683
684         * Fixed CMODE channel auth public key retrieval.  Affected
685           file is lib/silcclient/command.c.
686
687         * Fixed CMODE command reply to return channel public keys
688           correctly.  Affected files are lib/silcclient/command_reply.c
689           and client_channel.c.
690
691 Sun May  6 12:43:19 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
692
693         * Added current channel key cipher name and HMAC name to
694           SilcChannelEntry.  Fixed channel private key creation.
695           Affected files are lib/silcclient/client_channel.c,
696           client_entry and silcclient_entry.h.
697
698         * Allow formatted nicknames as input to silc_client_get_clients
699           and silc_client_get_clients_whois.  Affected file is
700           lib/silcclient/client_entry.c.
701
702         * Fixed silc_message_payload_free crash.  Affected file is
703           lib/silccore/silcmessage.c.
704
705         * Added SILC_STATUS_ERR_NO_SUCH_PUBLIC_KEY to
706           lib/silccore/silcstatus.h.
707
708 Thu May  3 18:07:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
709
710         * Imported libtommath 0.41.  Renamed all mp_* functions to
711           tma_mp_* functions to avoid rare linking problems on systems
712           with mp_* functions.  Affected files are in lib/silcmath/.
713
714 Wed May  2 17:46:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
715
716         * SILC Toolkit 1.1 Beta1.
717
718 Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
719
720         * Set the server and router operator modes to local entry after
721           successful OPER or SILCOPER commands.  Affected file is
722           lib/silcclient/command_reply.c.
723
724 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
725
726         * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
727           and other smaller APIs to WIN32.  Affected files are in
728           lib/silcutil/win32/.
729
730         * Changed the various regex APIs as generic code in util library.
731           Affected files are lib/silcutil/silcstrutil.[ch].
732
733 Sat Apr 28 13:47:47 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
734
735         * Ported SILC Server to the new Toolkit API, working towards
736           SILC Server 1.1.  Affected files are in apps/silcd/.
737
738         * Added silc_skr_del_public_key, silc_skr_[ref|unref]_public_key
739           to lib/silcskr/silcskr.[ch].
740
741         * Fixed SILC public key copying to copy the identifier also.
742           Affected file is lib/silccrypt/silcpk.c.
743
744         * Added silc_packet_error_string to lib/silccore/silcpacket.[ch].
745
746         * Fixed OPER and SILCOPER passphrase asking in Client library.
747           Affected file is lib/silcclient/command.c.
748
749 Tue Apr 24 17:55:24 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
750
751         * Fixed command queue enabling after connecting to server.
752           The comparisons was from after changing to silc_utf8_strcasecmp.
753           Affected file is apps/irssi/src/silc/core/silc-servers.c.
754
755         * Fixed nickname setting with own client entry with 1.3 protocol
756           version server.  Affected file lib/silcclient/client_register.c.
757
758         * Ignore error notify for local client entry.  Affected file is
759           lib/silcclient/client_notify.c.
760
761         * Implemented responder rekey to SKE library.  Affected files are
762           lib/silcske/silcske.[ch].
763
764         * Fixed connection auth protocol completion sending.  Affected
765           file lib/silcske/silcconnauth.c.
766
767 Mon Apr 23 17:20:01 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
768
769         * Do not call TCP network listener callback with any error
770           status, as documented.  Affected file is
771           lib/silcutil/unix/silcunixnet.c.
772
773 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
774
775         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
776
777         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
778           Changed silc_skr_find to have SilcSchedule argument and removed
779           it from silc_skr_[alloc|init].  Affected files are
780           lib/silcskr/silcskr.[ch].
781
782         * Allow NULL id for silc_idcache_add.  Affected file is
783           lib/silcapputil/silcidcache.c.
784
785         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
786           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
787           Fixed also channel message encryption with router-to-router
788           packets.
789
790         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
791
792         * Added silc_net_get_error_string, silc_net_listener_get_ip and
793           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
794
795 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
796
797         * Add option --enable-silc-plugin.  Affected files are
798           apps/irssi/configure.{ad,in}
799
800         * Only compile the SILC Plugin if required.  Affected files are
801           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
802
803         * Conditionally build the SILC Plugin.  Affected files are
804           apps/irssi/src/silc/core/Makefile.am,
805           apps/irssi/src/fe-common/silc/Makefile.am
806
807         * Backout delayed protocol exit and replace with a lame busy
808           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
809           apps/irssi/src/silc/core/silc-core.c
810
811         * Fix key generation for SILC Plugin.  Affected file
812           apps/irssi/src/silc/core/clientutil.c
813
814 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
815
816         * Only pass -rpath to libtool when building shared libraries.
817           Affected file lib/Makefile.ad
818
819         * Removing the stray "s" in configure.ad
820
821 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
822
823         * Redraw the screen after creating a new key.  Affected file
824           apps/irssi/src/silc/core/clientutil.c
825
826 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
827
828         * Added SILC Client setting /set nickname_format that specifies
829           the nickname format string.  Changed default nickname format
830           string to "%n#%a".  Affected file is
831           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
832
833         * Fixed nickname parsing with WHOIS command to accept formatted
834           nicknames.  Changed the silc_client_get_clients_local to allow
835           the searched nickname to be formatted nickname.  Removed %s and
836           %S nickname formatters.  Affected files are in lib/silcclient/.
837
838         * Added silc_client_nickname_parse to Client library API.  Affected
839           file is lib/silcclient/silcclient.h.
840
841         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
842           commands.  Affected file are
843           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
844
845 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
846
847         * Incorporate SILC Plugin patches.  Affected files are
848           apps/irssi/src/fe-common/silc/module-formats.{c,h},
849           apps/irssi/src/silc/core/clientutil.{c,h},
850           apps/irssi/src/silc/core/silc-core.c,
851           apps/irssi/src/silc/core/silc-chatnets.{c,h},
852           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
853           apps/irssi/src/fe-common/silc/module.h
854
855 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
856
857         * In notify handling resolve user entries many times if the
858           resolving timedout.  Affected file lib/silcclient/client_notify.c.
859
860         * silc_client_get_clients_local do not return any invalid entries.
861           Affected file is lib/silcclient/client_entry.c.
862
863         * Do not print "there are now xx user on this channel" for users
864           that actually aren't anymore on the channel.  Affected file
865           is apps/irssi/src/client_ops.c.
866
867 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
868
869         * When joining channels with a password given in the config file,
870           use it.  Also use it when cycling (it would be better to get
871           the password from the server, but this isn't possible in SILC).
872           Affected files apps/irssi/src/silc/core/silc-servers.c,
873           apps/irssi/src/silc/core/silc-channels.c
874
875 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
876
877         * Import perl script for sign_messages from silc-plugin.  Affected
878           file apps/irssi/scripts/silc.pl
879
880 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
881
882         * Only wait for a nick on connecting, when it differs
883           (not counting case) from the username.  Affected file
884           is apps/irssi/src/silc/core/silc-servers.c
885
886 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
887
888         * Use time settings for lag settings.  Affected file is
889           apps/irssi/src/silc/core/silc-lag.c
890
891 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
892
893         * Added silc_thread_yield.  Affected file is
894           lib/silcutil/silcmutex.h.
895
896 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
897
898         * Fixed WHOIS command and requested attributes handling in
899           client library.  Affected files are lib/silcclient/command.c
900           and lib/silcclient/client_attrs.c.
901
902         * Fixed silc_time_value to actually work.  Added new function
903           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
904
905 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
906
907         * SILC Client 1.1 beta2.
908
909 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
910
911         * Fixed client to properly abort TCP stream creation when
912           giving /QUIT.  Affected file
913           apps/irssi/src/silc/core/silc-servers.c.
914
915         * Fixed several connecting aborting crashes from the client
916           library, packet engine and socket stream.  Affected files
917           are in lib/silclient/, lib/silccore/silcpacket.c and
918           lib/silcutil/unix/silcunixsocketstream.c.
919
920         * Fixed private key export double free crash in key generation.
921           Affected file is lib/silccrypt/silcpk.c.
922
923         * Fixed FSM event waiting when there are multiple signallers
924           and the waiter goes away after the first signal.  Affected
925           file in lib/silcutil/silcfsm.c.
926
927 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
928
929         * Fixed FSM event signalling to check if the waiter has gone
930           away already.  Affected file is lib/silcutil/silcfsm.c.
931
932         * Fixed counter mode encryption/decryption to handle non-padded
933           SILC packets correctly.  The silc_cipher_set_iv now
934           in counter mode resets for a new block.  Affected files are
935           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
936
937 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
938
939         * SILC Client 1.1 beta1.
940
941         * Memory leak fixes around the libraries.
942
943 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
944
945         * Added better check for epoll() in configure.  Affected file
946           is lib/configure.ad.
947
948 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
949
950         * Fixed per scheduler data input buffer in packet engine.  Use
951           list of inbufs instead of just one so that multiple streams
952           can do partial reads to different buffers.  Affected file is
953           lib/silccore/silcpacket.c.
954
955         * Fixed WATCH notify handling in client library.  Affected file
956           is lib/silcclient/client_notify.c.
957
958 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
959
960         * Fixed packet wrapper stream API to support encoder/decoder
961           for packets, and to handle partial reading correctly.  Fixed
962           also inbuf size checking in reading to have enough space before
963           reading.  Affected files are lib/silccore/silcpacket.[ch].
964
965         * Rewrote file transfer in client library.  Affected files are
966           in lib/silcclient/.
967
968         * Added TCP/UDP listener (internal) API to client library to have
969           generic way of dealing with listeners.  Fixed Key Agreement and
970           file transfer to use it.  Affected files are in lib/silcclient/.
971
972         * Fixed SKE to process SUCCESS packets synchronously and to call
973           completion synchronously.  Affected file is lib/silcske/silske.c.
974
975         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
976
977         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
978           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
979
980 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
981
982         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
983           to client library.  Affected file is
984           lib/silcclient/client_register.c.
985
986         * Serialize NICK and JOIN commands to avoid problems locally
987           with changing ID while joining to channel.  Affected file is
988           lib/silcclient/command.c.
989
990         * Fixed entry resolving while handling incoming JOIN notify.
991           Handle properly cases, in re-processing of notify packets, where
992           the IDs may become invalid while resolving the entry (like nick
993           change).  Entry is invalid if it doesn't have nickname, and such
994           entries are not delivered to application anymore.  These fixes
995           problems of not seeing JOINs when remote user changes nickname
996           at the same time.  Affected files are in lib/silcclient/.
997
998 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
999
1000         * Added support for computing message payload MAC in new way
1001           (SILC Protocol version 1.3).  Bakcwards support for old way
1002           remains.  Affected files are lib/silccore/silcmessage.[ch].
1003
1004 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1005
1006         * Added SilcRwLock API, a read/write lock.  Affected files are
1007           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
1008
1009 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1010
1011         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
1012
1013 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1014
1015         * The silc_schedule_set_listen_fd now returns boolean value.
1016           Fixed FD task adding to check correctly for already added
1017           FD tasks.  Added stricter error checking for FD scheduling
1018           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
1019           and lib/silcutil/unix/silcunixschedule.c.
1020
1021         * The silc_stream_set_notifier now returns boolean value.  Changed
1022           all streams to support and check for the error condition.
1023           Affected files are in lib/silcutil/.
1024
1025         * Fixed SKE library session aborting and deletion.  Affected
1026           file are lib/silcske/silcske.c.
1027
1028 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1029
1030         * Implemented PKCS #1 with appendix with hash OID in the
1031           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
1032           lib/silccrypt/silchash.[ch] and
1033           lib/silcasn1/silcasn1[_encode|decode].[ch].
1034
1035 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1036
1037         * Added support for Version (V) SILC public key identifier.
1038           Affected files are lib/silccrypt/silcpk.[ch].
1039
1040 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1041
1042         * Rewrote connection auth request in client library.  It is now
1043           done automatically by the library and the resolved method given
1044           as a hint to get_auth_method client operation.  Affected files
1045           are lib/silcclient/.
1046
1047 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1048
1049         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
1050           It can be used to wrap SilcPacketStream into SilcStream.
1051
1052         * Fixed %p formatting from silc_snprintf.  Affected file is
1053           lib/silcutil/silcsnprintf.c.
1054
1055         * Ported SFTP library to new utility library.  Ported also
1056           the SFTP testers.  Affected files in lib/silcsftp/.
1057
1058 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1059
1060         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
1061           of silc_snprintf, silc_vsnprintf, silc_asprintf and
1062           silc_vasprintf.
1063
1064 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1065
1066         * Added preliminary Symbian support.  Changes around the source
1067           tree.  The symbian/ directory now includes Carbide.c++ project
1068           files to compile the sources.
1069
1070         * Added silc_snprintf.  Affected files are
1071           lib/silcutil/silcstrutil.[ch].
1072
1073 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1074
1075         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
1076           macros.  SILC_FSM_CONTINUE macro now immediately calls the
1077           next state instead of first returning back to FSM.  Helps
1078           in debugging crashes etc.
1079
1080           Removed FSM Semaphores.  Introduced FSM Event which is
1081           asynchronous event.   Affected files are in lib/.
1082
1083         * Added epoll(7) support to SILC Scheduler.  It is used by default
1084           if it is available.  Affected files are
1085           lib/silcutil/silcschedule.[ch],
1086           lib/silcutil/unix/silcunixschedule.c.
1087
1088 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1089
1090         * Added CTR mode to AES.  Simplified cipher implementation API
1091           more.  Affected files are in lib/silccrypt/.
1092
1093 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1094
1095         * Removed `detach' client operation.  The detachment data is
1096           now delivered in SILC_COMMAND_DETACH command reply to
1097           application.  Affected file in lib/silcclient/.
1098
1099         * Rewrote resuming/detaching in client library.
1100
1101         * Added boolean encryption indicator for silc_cipher_set_key.
1102           Affected files lib/silccrypt/silccipher.[ch].
1103
1104 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1105
1106         * Added silc_likely and silc_unlikely macros for GCC branch
1107           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
1108
1109         * Added assembler AES optimization.  Cleaned up the SILC Cipher
1110           implementation API.  Affected files are in lib/silccrypt/.
1111
1112 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1113
1114         * Changed back the SILC_FSM_THREAD_WAIT operation to not
1115           continue to next state if thread is finished already.  That
1116           check is not done anymore.  Affected files are
1117           lib/silcutil/silcfsm.[ch].
1118
1119 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1120
1121         * Removed silc_packet_[get|set]_ciphers and
1122           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
1123           handle REKEY_DONE packet sending in rekey.  Affected files
1124           are lib/silccore/silcpacket.[ch].
1125
1126         * Added silc_fsm_is_started.  Affected files are
1127           lib/silcutil/silcfsm.[ch].
1128
1129         * Added settings sign_channel_message, sign_private_message
1130           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
1131           support for key agreement in /KEY command. Affected files
1132           in apps/irssi/src/silc/core/.
1133
1134         * During SILC Client initialization forward log messages to
1135           stderr.   Affected files in apps/irssi/src/silc/core/.
1136
1137 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1138
1139         * Added silc_ske_get_key_material.  Affected files are
1140           lib/silcske/silcske.[ch].
1141
1142         * Added silc_packet_stream_is_udp.  Affected files are
1143           lib/silccore/silcpacket.[ch].
1144
1145         * Added SKE packet retransmission support with UDP transport.
1146           Affected file is lib/silcske/silcske.c.
1147
1148 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1149
1150         * Added silc_socket_stream_is_udp.  Affected file is
1151           lib/silcutil/silcsocketstream.[ch].
1152
1153         * Added UDP transport support to packet engine.  Affected file
1154           is lib/silccore/silcpacket.c.
1155
1156         * Added silc_socket_stream_is_udp.  Affected file is
1157           lib/silcutil/silcsocketstream.[ch].
1158
1159 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1160
1161         * Added silc_packet_send_va[_ext] to send variable argument
1162           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
1163
1164         * Timeout freelist garbage collection added to scheduler.
1165           Affected file lib/silcutil/silcschedule.c.
1166
1167 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1168
1169         * Added silc_show_public_key_file to
1170           lib/silcapputil/silcapputil.[ch].
1171
1172         * Added SILC_STR_ADVANCE support for buffer unformatting.
1173           Affected file lib/silcutil/silcbuffmt.c.
1174
1175 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
1176
1177         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
1178
1179         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
1180
1181         * silc_fsm_continue[_sync] now cancels erlier timeout set with
1182           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
1183
1184 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
1185
1186         * Added SILC_STR_FUNC to buffer format API.  Affected files
1187           are lib/silcutil/silcbuffmt.[ch].
1188
1189         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
1190
1191         * No more memory allocation for message payload parsing.
1192           Pre-allocated buffer can be used with message payload encoding.
1193           Affected files lib/silccore/silcmessage.[ch].
1194
1195 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1196
1197         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
1198           to silcutil/silcbuffmt.[ch].
1199
1200 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1201
1202         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
1203           Affected file lib/silcutil/silcbuffmt.[ch].
1204
1205         * Removed silc_schedule_signal_[un]register and
1206           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
1207           to add signal task.  Only one callback per signal may be
1208           added.  The signals are now automatically called back to
1209           caller.  Affected files lib/silcutil/silcschedule.[ch] and
1210           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
1211
1212         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
1213
1214         * Added SilcSKEParams for SKE parameters and simplied even more
1215           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
1216           Added support for IV included and session port handling with
1217           UDP/IP connections.
1218
1219         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
1220           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
1221           which is called after every rekey when IV Included flag is used.
1222           See SILC specifications for details.
1223
1224 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1225
1226         * Added lib/silcapputil and moved SILC application specific
1227           utility routines from the generic util library lib/silcutil
1228           to the new library.  Removed lib/silcidcache and moved that
1229           to lib/silcapputil as well.
1230
1231 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1232
1233         * Added SILC_STR_ADVANCE.  Affected file is
1234           lib/silcutil/silcbuffmt.[ch].
1235
1236         * The silc_buffer_strformat preserves buffer locations now.
1237
1238         * Added lib/silcutil/silcatomic.h for atomic operations.
1239
1240 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1241
1242         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
1243           server.
1244
1245         * Fixed MIME deocing when data portion is not present.
1246           Affected file lib/silcutil/silcmime.c.
1247
1248 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1249
1250         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
1251
1252         * Added IV Included support to packet routines, to allow
1253           packet sending and receiving on UDP/IP.  Affected files are
1254           lib/silccore/silcpacket.[ch].
1255
1256         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
1257
1258 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1259
1260         * Added UDP support to network and socket stream library.
1261
1262 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1263
1264         * Added conditional variables.  New files are
1265           lib/silcutil/silcondvar.h and platform specific implementations.
1266
1267 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
1268
1269         * make sure session->hostname and session->port are valid before the
1270           application callback is done, since things will go wrong if the
1271           application immediately calls silc_client_file_receive. Affected
1272           file lib/silcclient/client_ftp.c.
1273           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
1274
1275 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1276
1277         * New SILC PKCS API enabling support for other public keys
1278           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
1279
1280         * Separated SILC Public Key Payload routines from the PKCS API
1281           to lib/silccore/silcpubkey.[ch].
1282
1283 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1284
1285         * Added SILC Key Repository library, lib/silcskr.
1286
1287         * Added SILC Server library, lib/silcserver.
1288
1289 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1290
1291         * MIME objects in attributes now use SilcMime.  Affected files
1292           are lib/silccore/silcattrs.[ch].
1293
1294 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1295
1296         * Synchronize semaphore posting for real threads in FSM.
1297           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
1298
1299 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1300
1301         * Added silc_file_set_nonblock.  Affected file is
1302           lib/silcutil/silcfileutil.h.
1303
1304         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
1305
1306 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1307
1308         * FSM based implementation of SILC SKE.  Simpler interface also.
1309           Affected files are in lib/silcske/.
1310
1311         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
1312
1313 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1314
1315         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
1316           silc_mime_parse is available but deprecated.
1317
1318         * Check that packet is valid when processing key exchange,
1319           authentication and rekey protocols.  Fixes a crashbug.
1320           Affected files are apps/silcd/protocol.c and
1321           lib/silcclient/protocol.c.
1322
1323         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
1324           all hash buffers to use that instead of fixed values.
1325
1326 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1327
1328         * Added SHA-256 to crypto library.  The SHA-256 takes now
1329           precedence over SHA-1.
1330
1331 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1332
1333         * Check for valid return value from regcomp.  Affected file
1334           lib/silcutil/unix/silcunixutil.c.
1335
1336 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1337
1338         * Fixed silc_hash_uint to work with integers.  Affected
1339           file lib/silcutil/silcutil.c.
1340
1341 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1342
1343         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
1344
1345 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1346
1347         * Fixed channel public key list saving on JOIN command reply
1348           on backup router.  Affected file apps/silcd/command_reply.c.
1349
1350 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1351
1352         * Added default limit how many channels client can join,
1353           default is 50.  Added 'channel_join_limit' configuration
1354           option to server too.  Affected files are apps/silcd/command.c
1355           and serverconfig.[ch].
1356
1357 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1358
1359         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
1360           On Toolkit the server and client are not compiled by default.
1361           Affected file configure.ad.
1362
1363 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1364
1365         * Added lib/contrib/getopt.[ch] for platforms that don't
1366           have it (it is not GPL implementation).
1367
1368         * Fixed compilation when pkg-config is used.
1369
1370 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1371
1372         * A comma in invite/ban string is invalid, check for it.
1373           Affected file apps/silcd/server_util.c.
1374
1375         * Added SERVICE command to the server.  It parses the command
1376           request but SILC Server does not support services for the
1377           time being.  Affected file apps/silcd/command.[ch].
1378
1379         * Added SERVICE command and command reply to client library.
1380           It is however incomplete.  Updated Toolkit documentation.
1381           Affected files are lib/silcclient/command[_reply].[ch].
1382
1383         * Fixed IDENTIFY/WHOWAS command reply to send the username
1384           correctly (uninitialized buffer).  Affected file is
1385           apps/silcd/server_query.c.
1386
1387 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1388
1389         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
1390           finalizes the major restructuring of the CVS tree.
1391
1392 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1393
1394         * Send empty MOTD reply if MOTD file cannot be read.
1395           Affected file silcd/command.c.
1396
1397 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1398
1399         * Optimized primer number generator to use simpler conversion
1400           routines.  Also assure that the prime number will have the
1401           highest bit set after modifying it.  Affected file is
1402           lib/silcmath/silcprimegen.c.
1403
1404         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
1405
1406         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
1407           for now only for testing purposes, it will not be delivered
1408           in any distribution for now.
1409
1410         * Removed NSS MPI from the source tree.  Due to upcoming
1411           license change for the SILC Toolkit, we cannot deliver the
1412           NSS MPI anymore.  I decided to replace it in all distributions
1413           with public domain library.
1414
1415         * Removed GNU regex from lib/contrib and introduced free
1416           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
1417           GNU regex compatible API to it (only partial).
1418
1419         * Removed getopt routines from lib/contrib.
1420
1421 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1422
1423         * Use silc_server_send_command_reply to send replies instead
1424           of encoding packet itself.  Affected file silcd/command.c.
1425
1426         * Added command sending and receiving statistics to server.
1427           Affected files in silcd/.
1428
1429         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
1430           with GCC, for it not to warn about pointer signedness.
1431
1432 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1433
1434         * Added context to the SilcIDCache destructor.  Affected
1435           files are lib/silccore/silcidcache.[ch],
1436           lib/silcclient/client.c and silcd/server.c.
1437
1438 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1439
1440         * Added pkg-config check to configure.
1441
1442         * The PublicKeyDir must not be used with Admin block in server
1443           config.  Affected file silcd/serverconfig.c.
1444
1445 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1446
1447         * Added Autodist.
1448
1449 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1450
1451         * Handle empty LIST command reply correcttly in server.  Affected
1452           file silcd/command_reply.c.
1453
1454         * Handle empty LIST command reply correctly in client library.
1455           The application will now receive one LIST command reply with
1456           all arguments set to NULL if there are no channels.  Updated
1457           Client Library documentation accordingly.  Affected file
1458           lib/silcclient/command_reply.c.
1459
1460 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1461
1462         * Added channel name string stringprep profile to the protocol
1463           and implementation to allow a little free'er channel name
1464           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
1465
1466         * Added silc_channel_name_[check|verify] to check and verify
1467           channel name strings.  Affected files are
1468           lib/silcutil/silcstrutil.[ch].
1469
1470         * Added support for the new channel name preparation in client
1471           library and server.  Affected files in lib/silcclient and
1472           silcd/.
1473
1474 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1475
1476         * Added the Autodist into the source tree.  It replaces the
1477           old ./prepare.  It can be used to create distributions as
1478           previously.  See README.CVS and README.DIST.  See
1479           distributions in distdir/.
1480
1481 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1482
1483         * Make sure query sends at least an error back if nothing
1484           more is sent.  Affected file silcd/server_query.c.
1485
1486 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1487
1488         * During query, check if the original command caller goes
1489           away.  If it does, stop the query.  Affected file
1490           silcd/server_query.c.
1491
1492         * Check for valid channel creation in JOIN command reply.
1493           Affected file lib/silcclient/command_reply.c.
1494
1495         * Handle the resolver counter in silc_client_get_users_by_channel
1496           callback correctly.  Fixed auto-join bug in Gaim.  Affected
1497           file lib/silcclient/idlist.c.
1498
1499 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1500
1501         * Added some better error messages.  Affected file
1502           silcd/command_reply.c and packet_receive.c.
1503
1504         * Handle error in WATCH command propely on backup router.
1505           Affected file silcd/command.c.
1506
1507         * Fixed freeing of unfreeable variable in WHOIS command reply.
1508           Affected file silcd/command_reply.c.
1509
1510 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
1511
1512         * Added pkg-config .pc file creation for silc core library
1513           and silcclient library.  A patch by c0ffee.
1514
1515         * Removed the need for GNU Libidn.  Added the simple stringprep
1516           from libidn into lib/contrib/.  It is now used also on Windows
1517           build.
1518
1519 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1520
1521         * Simplified the invite and ban string handling in the
1522           server.  Check for valid invite and ban arguments also.
1523           Affected file silcd/server_util.c.
1524
1525 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1526
1527         * Added WATCH list announcing in backup router protocol.
1528           Affected files are silcd/command.c, server.c, server_backup.c.
1529
1530         * Do not change users mode to founder on normal server/backup
1531           if the founder mode is set, and user is first one to join.
1532           Affected file silcd/pcaket_receive.c.
1533
1534         * Do not send CUMODE_CHANGE notify back to sender.  Affected
1535           file silcd/packet_receive.c.
1536
1537         * Added getrusage() to take noise in SILC RNG.  A patch by
1538           Mika Boström.  Affected files are configure.in.pre,
1539           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
1540
1541 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1542
1543         * Splitted the SILC libraries configuration into a configure
1544           fragment into lib/configure.ad.  It is now possible, once
1545           this feature is added, to specify whether to compile or not
1546           compile included SILC libraries.  Affected files are
1547           configure.in.pre, lib/silcmath/mpi/configure.ad,
1548           lib/configure.ad, Makefile.defines.pre and
1549           Makefile.defines_int.pre.
1550
1551         * Added --with-silc-includes and --with-silc-libs to configure.
1552           If specified the included libs are not compiled, but the
1553           specified libs are used.  Pkg-config is not yet supported.
1554           Affected file configure.in.pre.
1555
1556         * Fixed WATCH command handling on backup router.  Router does not
1557           send the watch command any more to backup if it originates from
1558           backup.  Affected file silcd/command.c.
1559
1560 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1561
1562         * Changed announcing to not announce unregistered clients.
1563           Affected file silcd/server.c.
1564
1565         * Fixed username handling in command reply.  Affected file
1566           silcd/command_reply.c.
1567
1568         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
1569
1570 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
1571
1572         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
1573           Affected file: includes/silcincludes.h.in
1574
1575         * bool is defined as _Bool on Mac OS X now.
1576           Affected file: lib/silcutil/silctypes.h
1577
1578 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1579
1580         * Added support for UTF-8 nicknames, channel names and
1581           server names in client library.  Affected files in
1582           lib/silcclient/.
1583
1584         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
1585           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
1586           software to check how Toolkit has been compiled.
1587
1588 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1589
1590         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
1591
1592         * Use silc_utf8_str[n]casecmp instead of strcmp routines
1593           in library and in SILC Client when dealing with nicknames
1594           and other identifier strings.  Affected file in client lib
1595           and irssi.
1596
1597         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
1598           irssi/src/silc/core/silc-servers.c.
1599
1600 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1601
1602         * Fixed idcache to work with the new identifier strings.
1603           Affected file lib/silccore/silcidcache.c.
1604
1605         * Added UTF-8 hash and compare function for SilcHashTable.
1606           Affected file lib/silcutil/silcutil.[ch].
1607
1608         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
1609           Affected file lib/silcutil/silcstringprep.[ch].
1610
1611         * Changed the identifier string handling to include the original
1612           format in client, server, channel entries and normalized
1613           format in cache.  Affected files in silcd/.
1614
1615 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1616
1617         * Added support for the new identifier strings and their
1618           validity checking.  Nicknames, channel names and usernames
1619           can now include practically any kind of letters and various
1620           other characters.  Affected files in silcd/ and in libraries.
1621
1622           NOTE: comparing these strings should now be done with memcmp()
1623           to check binary compatibility.  All these strings are normalized
1624           and casing is irrelevant.
1625
1626         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
1627           as easy function for applications to check whether identifier
1628           strings are valid.
1629
1630 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1631
1632         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
1633           file lib/silcutil/silcutf8.c.
1634
1635         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
1636
1637 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1638
1639         * Make public key in getkey reply mandatory.  Affected file
1640           lib/silcclient/command_reply.c
1641
1642 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
1643
1644         * Added Parameter dont_register_crypto_library to
1645           SilcClientParam. If set to TRUE, silcclient library will
1646           not initalize the Crypto Libraries and application
1647           will need to do it. Affected file lib/silcclient/silcclient.h,
1648           lib/silcclient/client.c.
1649
1650 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1651
1652         * Imported new silc_utf8_[encode|decode] routines from
1653           my internal SILC 1.1 source tree.  New encodings added:
1654           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
1655           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
1656           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
1657           SILC_STRING_LDAP_DN.
1658
1659         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
1660
1661         * Implemented stringprep (RFC 3454) API.  Internally we use
1662           GNU Libidn's stringprep, for now, so it is required now to
1663           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
1664
1665         * Added checking for GNU Libidn and --with-libidn to configure.
1666
1667 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1668
1669         * If the passphrases entered do not match while generating a new key,
1670           completly start over instead of going into an infinite loop asking
1671           the user to re-enter the passphrase correctly.  Affected file
1672           lib/silcutil/silcapputil.c
1673
1674 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
1675
1676         * Make sure server is removed from backup list when it is
1677           deleted.  Affected files silcd/command.c, server.c,
1678           server_util.c.
1679
1680         * Close socket when connecting to router fails.  Affected
1681           file silcd/server.c.
1682
1683 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1684
1685         * Adopt configuration toolchain to current auto-tools.
1686           Affected files prepare, irssi/configure.in
1687         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
1688           redo that.  Affected files irssi/src/silc/core/client_ops.c,
1689           irssi/src/fe-common/silc/fe-silc-channels.c
1690         * Take over command line options into silcclient data structure.
1691           Affected file irssi/src/silc/core/silc-core.c
1692
1693 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1694
1695         * Do not try to initiate backup resuming protocol forever.
1696           Affected file silcd/server_backup.c.
1697
1698 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1699
1700         * ID change in resuming has to be done before changing
1701           detached client's modes, since the ID change may fail and
1702           leave ghosts on the network.  Affected file is
1703           silcd/packet_receive.c.
1704
1705 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1706
1707         * Fixed Win32 scheduler to not stuck anymore.  A patch from
1708           Juha Räsänen.  Affected file is
1709           lib/silcutil/win32/silcwin32schedule.c.
1710
1711         * Fixed QoS parsing for connection blocks in server.  Affected
1712           file is silcd/serverconfig.c.
1713
1714         * Fixed server statistics increasing in server.  Affected file
1715           is silcd/server.c.
1716
1717         * The CLOSE command now marks backup router as self disconnected
1718           to avoid resuming problems.  Affected file silcd/command.c.
1719
1720 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
1721
1722         * When using silc_net_create_connection[_async], and your system can
1723           create IPv6 sockets, it will try to connect to the IPv6 host.
1724           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
1725           file lib/silcutil/unix/silcunixnet.c
1726
1727 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
1728
1729         * Check for valid route when receiving packet from router and
1730           when routing it to local server in the cell.  A patch from
1731           Matt Miller.  Affected files silcd/router.c and server.c.
1732
1733 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
1734
1735         * Couldn't detach and reattach twice, because of the previous
1736           commit. Affected file silcd/packet_receive.c
1737
1738 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
1739
1740         * Added check to ignore Port value if Initiator is FALSE.
1741           Remote router coudln't connect if Port was set. Affected file
1742           silcd/serverconfig.c
1743
1744         * If some client tries to resume more than once at the same time,
1745           server crashed. Router didn't crash, but showed odd behaviour
1746           (didn't allow clients to join anymore, ..). Affected files
1747           silcd/packet_receive.c silcd/idlist.h
1748
1749 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1750
1751         * Destroy the file transfer session in silc_client_file_close
1752           with timeout.  Affected file lib/silcclient/client_ftp.c.
1753
1754         * Call SFTP server monitor in READ and WRITE after the actual
1755           operations.  Affected file lib/silcsftp/sftp_server.c.
1756
1757 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1758
1759         * Create one configure script from configure fragments
1760           (configure.ad).  This is a first step towards new distribution
1761           system.  Affected files prepare, configure.in.pre,
1762           lib/silcmath/mpi/configure.ad.
1763
1764 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1765
1766         * Removed expiring of client key pair.  Affected file is
1767           irssi/src/silc/core/clientutil.c
1768
1769 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1770
1771         * Check the number of connections from real number of
1772           connections instead of socket number, when deciding if
1773           server is full.  Affected files are silcd/server.c,
1774           server_internal.h and silcd.c.
1775
1776         * Clarified the connections_max meaning in General section
1777           in doc/example_silcd.conf.in.
1778
1779         * The reconnect_keep_trying default value set to TRUE
1780           if it is not defined in the config file.  Affected file
1781           silcd/serverconfig.c.
1782
1783 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1784
1785         * Fixed crashbug in connection closing, after a protocol
1786           completion callback, which might have closed it already.
1787           Affected file silcd/server.c.
1788
1789         * Fixed rekey with PFS in backup router.  It did not allow
1790           rekeys with PFS, and when the rekey protocol timedout
1791           it crashed the backup router without the above fix.  Affected
1792           file silcd/packet_send.c and server.c.
1793
1794 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1795
1796         * The silc_client_add_channel_private_key now returns the
1797           private key context if pointer is given as argument.
1798           Affected files are lib/silcclient/silcclient.h and
1799           client_channel.c.
1800
1801         * Added support for using channel private keys in SILC
1802           Client Library even if the private key mode is not set
1803           on the channel.  Affected file lib/silcclient/client_channel.c.
1804
1805         * The channel private key used to decrypt message is now
1806           delivered to the application in the 'channel_messageÃ' client
1807           operation.  Affected files are lib/silcclient/silcclient.h
1808           and client_channel.c.
1809
1810         * Fixed wrong arg type for user limit in CMODE command reply.
1811           Affected file silcd/command.c.
1812
1813         * The user limit is now taken and saved to SilcClientEntry in
1814           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1815           Affected files lib/silcclient/silcclient.h, command_reply.c
1816           and client_notify.c.
1817
1818         * Added support to the new private message key indicator
1819           packet.  Added a new function to the client library:
1820           silc_client_send_private_message_key_request.  The sender
1821           indicates to be initiator, and receiver is responder.
1822           Added the indicator to the SilcClientEntry as 'prv_resp'
1823           boolean.  Affected files are lib/silcclient/silcclient.h
1824           client.[ch], and client_prvmsg.c.
1825
1826 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1827
1828         * Fixed the JOIN command calling when called with both
1829          -auth and -founder.  Affected file is lib/silcclien/command.c.
1830
1831 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1832
1833         * Check watcher list for resumed clients as well.  Affected
1834           file is silcd/packet_receive.c.
1835
1836 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1837
1838         * Implemented the user limit to the CMODE_CHANGE notify,
1839           CMODE command reply and JOIN command reply in server.
1840           Affected files are silcd/server.c, command.c, command_reply.c,
1841           packet_send.c and packet_receive.c.
1842
1843 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1844
1845         * Defined SILC_STRFMT_END that must be used now with
1846           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1847           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1848           lib/silcclient/silcvcard.c, silcd/server_util.c.
1849
1850         * Fixed the adding of public key to the WATCH list in server.
1851           Fixed the WATCH notify sending to client.  Affected files
1852           are silcd/packet_send.[ch], command.c, server_util.c.
1853
1854         * Implemented the watching by public key in the SILC Client
1855           Library and SILC Client.  Affected files are
1856           lib/silcclient/command.c and client_notify.c.
1857
1858 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1859
1860         * Added support for public key watching in server.  Affected
1861           files are silcd/server.c, server_internal.h, command.c,
1862           server_util.c.
1863
1864 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1865
1866         * Added public key to the SIlcClientEntry.  Affected files
1867           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1868
1869         * Fixed the get_clients_whois reply processing to return
1870           exactly same entries server returned.  Makes it possible
1871           to search using attributes.  Affected file is
1872           lib/silcclient/idlist.c.
1873
1874 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1875
1876         * Save founder key to SilcChannelEntry.  Affected files are
1877           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1878
1879 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1880
1881         * Call the monitor callback with _CLOSED status from the
1882           silc_client_file_close.  Affected files are
1883           lib/silcclient/client_fpt.c, silcclient.h
1884
1885         * Added silc_client_get_clients_whois which resolves using
1886           WHOIS, and supports requested attributes as well.
1887           Affected files are lib/silcclient/silcclient.h, idlist.c.
1888
1889 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1890
1891         * Added support for asking the destination filename where
1892           the downloaded file is saved in the file transfer.  Affected
1893           files are lib/silccilent/silcclient.h, client_ftp.c.
1894
1895 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1896
1897         * Fixed error handling in resuming data processing.  Affected
1898           files are lib/silcclient/client_resume.c and client.c.
1899
1900 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1901
1902         * Fixed silc_client_send_private_message to return TRUE correctly.
1903           Affected file lib/silcclient/client_prvmsg.c.
1904
1905         * Added topic to the SilcChannelEntry.  Affected files are
1906           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1907
1908 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1909
1910         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1911           file lib/silcclient/command.c
1912
1913 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1914
1915         * Convert all commands to UTF-8 before passing them to the
1916           client library.  Still need to convert replies from UTF-8 to
1917           the locale encoding.  Affected file
1918           irssi/src/silc/core/silc-cmdqueue.c
1919
1920 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1921
1922         * redirect all silc_client_command_calls through a queueing framework.
1923           This fixes /CYCLE and the annoying "nick change after auto-joining
1924           a channel".  Furthermore it defines one central point where
1925           command parameters can be UTF-8-ified.  Affected files
1926           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1927           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1928
1929 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1930
1931         * use asynchronous connect() to establish router connections.
1932           Fixes problem when the primary router goes down.  Affected files
1933           silcd/server.c, silcd/server_backup.c
1934
1935 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1936
1937         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1938           Fixed various compilation warnings when type casting ints
1939           to pointers or vice versa, of different size.  Updates around
1940           the source free.
1941
1942 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1943
1944         * Surrogates not allowed in UTF-8 strings, updated decoder.
1945           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1946           testers in lib/silcutil/tests/ directory.
1947
1948 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1949
1950         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1951           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1952           files are lib/silcclient/silcclient.h, client.c.
1953
1954 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1955
1956         * When resuming a session fails, notify the user that the session
1957           file needs to be removed eventually.  Affected files
1958           irssi/src/fe-common/silc/module-formats.[ch],
1959           irssi/src/silc/core/client_ops.c.
1960
1961 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1962
1963         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1964           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1965
1966         * Typofix in Irssi::Silc module.  Affected file
1967           irssi/src/perl/silc/Silc.xs.
1968
1969 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1970
1971         * Changed the way NOTICE flagged messages are treated. Added support
1972           for notices in queries and signing notices.  Affected files
1973           irssi/default.theme; irssi/docs/help/in/notice.in;
1974           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1975           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1976
1977         * Fixed typo in /ACTION help.  Affected file
1978           irssi/docs/help/in/action.in
1979
1980 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1981
1982         * Fixed typo in perl module.  Affected file
1983           irssi/src/perl/silc/Server.xs
1984
1985         * Changed the way ACTION flagged messages are treated. Added support
1986           for actions in queries and signing actions.  Affected files
1987           irssi/default.theme; irssi/docs/help/in/action.in;
1988           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1989           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1990           silc-servers.[ch]
1991
1992 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1993
1994         * Incorrectly reported error when client had to be resolved from
1995           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1996
1997 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1998
1999         * Fixed whois public key hash table deleting and adding in
2000           detached client case.  Affected file silcd/packet_receive.c.
2001
2002 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
2003
2004         * Changed filenames of silc/fe module not to collide with filenames
2005           from core/fe.  Also seperated public messages printing from
2006           query messages printing.  Affected files are all in
2007           irssi/src/fe-common/silc.
2008
2009 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
2010
2011         * Fixed the invite process handling during joining to use
2012           correct server name for the client that is matched against
2013           the invite string for the channel.  Wrong server name caused
2014           inability to join the channel.  Affected file is
2015           silcd/command.c.
2016
2017 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
2018
2019         * Fixed the CUMODE channel founder authentication on normal
2020           server to not remove the founder rights on existing founder
2021           before checking that router accepts the mode change.  Affected
2022           files are silcd/command.c and silcd/packet_receive.c.
2023
2024         * Remove the server entry correctly when rekey timeouts and
2025           remote router connection on normal server is closed.  Fixes
2026           a crash where server uses the freed server entry.  Affected
2027           file silcd/server.c.
2028
2029 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
2030
2031         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
2032           networks.  This is the first step in solving the bug about
2033           /SERVER ADD -silcnet <silcnet>.  Affected files
2034           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
2035           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
2036           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
2037
2038 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
2039
2040         * /SMSG and /MMSG now correctly create new queries. Affected files
2041           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
2042
2043         * Add basic support for SILC protocol specific variables in perl.
2044           Affected files irssi/src/perl/silc/*, irssi/configure.in,
2045           irssi/src/perl/Makefile.am
2046
2047 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2048
2049         * Don't use silc_get_input, it's obviously not reliable.  Fixes
2050           issue when the current key expires.  Affect file
2051           irssi/src/silc/core/clientutils.c
2052
2053         * Make the session data filename configurable.  This makes it
2054           possible to have different session files for different
2055           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
2056           client_ops.[ch], silc-servers.c,
2057           irssi/src/silc/fe-common/silc/module-formats.[ch]
2058
2059         * Use the same set of libtool files for the MPI lib as for the
2060           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
2061           config.sub, configure.in, install-sh, missing, mkinstalldirs
2062
2063 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2064
2065         * Fixed server statistics decrementing error to not go to
2066           negative.  Affected file silcd/packet_receive.c.
2067
2068 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2069
2070         * Use silc_server_query_add_error to add error in public key
2071           search error.  Added support in send_reply to send errors
2072           without specific argument.  Affected file silcd/server_query.c.
2073
2074         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
2075           Client for NO_SUCH_NICK.  It was against the protocol specs.
2076           Affected file irssi/src/silc/core/client_ops.c.
2077
2078         * Added backwards support for the wrong NO_SUCH_NICK error sending
2079           in server.  To be removed in SILC Server 1.0.  Both old clients
2080           and clients with fixed error handling now works.  Affected file
2081           silcd/server_query.c.
2082
2083 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
2084
2085         * fixed a bug in the whois using attributes function where no
2086           error was sent if no nickname and client id but the attributes were
2087           given to whois. Affected file silcd/server_query.c
2088
2089 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
2090
2091         * remove public key from public key hashtable on detach. Affected
2092           file silcd/packet_receive.c
2093
2094         * free public key hashtable before removing clients on server
2095           shutdown. Affected file silcd/server.c
2096
2097         * remove public key prior deleting client-data on killing a client.
2098           Affected file silcd/server_util.c
2099
2100 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
2101
2102         * Getting the MOTD from other servers works now. Affected
2103           files are silcd/command.c and silcd/command_reply.c
2104
2105 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2106
2107         * Initialize the variable idletag, since it is tested in
2108           silc_core_deinit for its default value.  Affected file
2109           irssi/src/silc/core/silc-core.c
2110
2111 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
2112
2113         * Fixed signed channel messages across cells. Affected file
2114           silcd/packet_send.c
2115
2116 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2117
2118         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
2119           is not defined.  They can now be safely used in if-statements
2120           without braces.  Affected file lib/silcutil/silclog.h.
2121
2122         * Added the checks for backup closing connection due to error
2123           (local or remote) and thus not allow the resuming to occur
2124           in reconnect.  Affected files are silcd/packet_send.c
2125           and server.c.
2126
2127 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2128
2129         * Help file updates.  Affected files in irssi/src/docs/help/in/.
2130
2131 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
2132
2133         * Fixed channel messages across cells. Affected file
2134           silcd/packet_send.c
2135
2136 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2137
2138         * Fixed file transmission accepting in client library to not
2139           start the negotiation if user hasn't accepted the transfer,
2140           instead create new session for resent transfer.  Affected
2141           file lib/silcclient/client_ftp.c.
2142
2143         * Show the session ID in the file transmision list.  Remove
2144           session from list that failed to transfer.  Switch the current
2145           session automatically after transmission, and in errors, to new
2146           session if other sessions exists in the transfer list.  Affected
2147           files are irssi/src/silc/core/silc-servers.c,
2148           irssi/src/fe-common/silc/modfule-formats.c.
2149
2150 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2151
2152         * Fixed MIME header parsing for the hopefully last time.  Affected
2153           file lib/silcutil/silcstrutil.c
2154
2155 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2156
2157         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
2158
2159         * The SILC RNG is now gauranteed to return non-zero random
2160           values.  Affected files are lib/silccrypt/silcrng.[ch].
2161
2162 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2163
2164         * Fixed nickname formatting when changing only case of the
2165           nickname.  Affected file lib/silcclient/idlist.c.
2166
2167 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2168
2169         * Fixed a memory leak and incorrect printing of the "appears as"
2170           message.  Affected file irssi/src/silc/core/client_ops.c
2171
2172 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2173
2174         * Added CRT (Chinese Remainder Theorem) supported RSA
2175           private keys and private key operations.  This significantly
2176           increases private key operation efficiency.  No compatibility
2177           issues with new or old private keys.  Affected files are
2178           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
2179
2180 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2181
2182         * Fixed GCC-3.3.2 related compilation warnings from the
2183           source tree.
2184
2185 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2186
2187         * Removed RC6 from distributions.
2188
2189 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2190
2191         * Added some better comments to lib/silccrypt/silcpkcs.h,
2192           optimized some routines in lib/silccrypt/silcpkcs.c.
2193           Added test_silcpkcs into lib/silccrypt/tests/.
2194
2195         * Fixed silc_rng_global_init to actually init the global RNG
2196           if RNG wasn't provided for it.  Affected file is
2197           lib/silccrypt/silrng.c.
2198
2199 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2200
2201         * Added silc_hash_table_find_by_context_ext.  Affected files
2202           lib/silcutil/silchashtable.[ch].
2203
2204         * Save the public key on normal server in WHOIS command reply
2205           from attributes, if present, and add it to public key hash
2206           table.  Fixes WHOIS resolving by public key on normal server.
2207
2208           Optimized the attributes resolving on normal server to not
2209           resolve if we resolved them already from router.
2210
2211           Affected files are silcd/server_query.c, command_reply.c.
2212
2213 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
2214
2215         * Added support for whois using attributes.
2216           Affected files silcd/command_reply.c, silcd/packet_receive.c,
2217           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
2218           silcd/server_util.c
2219
2220         * Added support for whois using public key attribute to /WHOIS i
2221           client command. Affected files irssi/docs/help/in/whois.in,
2222           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
2223
2224 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2225
2226         * Fixed UMODE setting in server when the client has anonymous
2227           mode set.  The mode setting was not working.  Affected file
2228           silcd/command.c.
2229
2230 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2231
2232         * Fixed some bugs and typos related to sending split messages.
2233           Print notification when sending messages with /MMSG.  Affected
2234           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
2235
2236 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2237
2238         * Optimized the socket referencing in packet routines, client
2239           library and server.  Affected files are lib/silccore/silcpacket.c,
2240           lib/silcclient/client.c and silcd/server.c.
2241
2242         * If silc_socket_set_qos is given with NULL arguments the QoS is
2243           reset from the socket.  Affected files are
2244           lib/silcutil/silcsockconn.[ch].
2245
2246 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2247
2248         * Add a /LISTKEYS command which lists the locally cached
2249           client and server keys.  Affected files
2250           irssi/src/fe-common/module-formats.[ch],
2251           irssi/src/silc/core/silc-{channels,servers}.c
2252           irssi/docs/help/in/listkeys.in
2253
2254 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2255
2256         * Check that packet queue purging was successful.  Affected
2257           files lib/silcclient/client.c and silcd/packet_send.c.  Related
2258           to MAC failed errors.
2259
2260         * Do not clear the inbuf even if it is empty if QoS was applied
2261           to it.  Otherwise the QoS data is cleared and MAC failed error
2262           will occur.  Affected file lib/silccore/silcpacket.c.
2263
2264         * Use the rekey period time as rekey protocol timeout value.
2265           If the rekey does not succeed during the rekey period there's
2266           something very wrong, and we most likely end up with wrong keys,
2267           do graceful reconnect then.   Affected file silcd/server.c.
2268
2269         * Take reference of the socket in the parser context, as it's
2270           possible to have the parsers in queue after the socket is
2271           disconnected and this may cause crash.  Affected files are
2272           lib/silccore/silcpacket.c, lib/silcclient/client.c and
2273           silcd/server.c.
2274
2275 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2276
2277         * Fixed KICK command reply sending, it sent to replies.
2278           Affected file silcd/command.c.
2279
2280 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2281
2282         * Finish the silc-mime.pl script. It now supports MIME type
2283           guessing using magic files, signing data messages, executing
2284           MIME handlers in background. Affected files
2285           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
2286
2287         * Changed MIME signal handler to make things easier for the perl
2288           script. Affected files irssi/src/silc/core/client_ops.c,
2289           silc-servers.c, and irssi/docs/signals.txt
2290
2291         * Cleaned up the silc_mime_parse function and fixed detection
2292           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
2293
2294 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2295
2296         * Resolve the IP for file transfer listener from the connection
2297           socket.  Affected file lib/silcclient/client_ftp.c.
2298
2299         * Accept NULL hostname parameter in the functions
2300           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
2301           if hostname is not wanted.
2302
2303 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2304
2305         * Fixed race condition between silc_client_init and
2306           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
2307
2308 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2309
2310         * Fixed file transfer connection closing when SIGNOFF for
2311           the client is received from server.  Affected file is
2312           lib/silcclient/client_ftp.c.
2313
2314 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2315
2316         * Check for disconnected socket in QUIT callback.  Affected
2317           file silcd/command.c.
2318
2319 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2320
2321         * Modified the MIME parsing to allow \n and \r\n as delimiters.
2322           Affected files lib/silcutil/silcstrutil.c
2323
2324         * Cleaned up the escape/unescape functions for correctness and
2325           speed. Affected file irssi/src/silc/core/client_ops.c
2326
2327         * Removed handling for data messages with Content-Type: text/*,
2328           moved parsing of MIME headers to the signal handler, added
2329           support for signing and verifying data messages. Affected
2330           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
2331           irssi/src/silc/core/silc-{servers,channels}.c
2332
2333         * Added a perl script for handling data messages based on
2334           information read from Mailcap files. New file
2335           irssi/scripts/silc-mime.pl
2336
2337 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2338
2339         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
2340           acknowledge recepetion of a message to the sender.  Updated
2341           protocol specs.
2342
2343 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2344
2345         * Unregister channel key saving callback when deleting channel.
2346           Affected file lib/silcclient/idlist.c.
2347
2348         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
2349           before calling notify client operation.  Affected file is
2350           lib/silcclient/client_notify.c.
2351
2352         * Unregister QoS tasks when deleting the socket connection.
2353           Affected files lib/silcutil/silcsockconn.[ch],
2354           unix/silcunixsockconn.c.
2355
2356         * Implemented latest presence-attrs draft changes.  Affected
2357           files lib/silccore/silcattrs.h and
2358           irssi/src/silc/core/silc-queries.c.
2359
2360 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2361
2362         * Save old channel keys in list to allow more rapid change
2363           of channel keys if server for some reason does that.  This
2364           avoids loosing so many channel messages due to not having
2365           key to decrypt.  Affected file lib/silcclient/silcclient.h,
2366           idlist.c and client_channel.c.
2367
2368 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2369
2370         * Continued backup router tests and fixes.  Affected files
2371           silcd/server_backup, server_util.c, server.c.  See TODO.
2372
2373 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2374
2375         * Fixed SERVER_SIGNOFF handling in servers.  The client
2376           was removed from wrong list thus not removing the client
2377           at all.  Affected file silcd/packet_receive.c.
2378
2379         * Do not execute rekey protocol for disabled connections as
2380           it would never go through.  Affected file silcd/server.c.
2381
2382         * Added timeout for rekey protocol to catch if the protocol
2383           never executes successfully.  Affected files silcd/server.c
2384           and protocol.h.
2385
2386 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2387
2388         * Abandon packet processing for disconnected sockets.  Check
2389           this always after calling packet processing callback.
2390           Affected file lib/silccore/silcpacket.c.
2391
2392         * Fixed double registration disconnection code in server.
2393           Closed wrong connection.  Affected file silcd/packet_receive.c.
2394
2395 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2396
2397         * On normal server reconnect to primary during resuming 4
2398           times, then give up.  Affected file silcd/server_backup.c.
2399
2400         * If during reconnecting to routers we notice we have router
2401           connection but no primary router set, the server is in desync.
2402           Reconnect to primary to restore network.  Affected file
2403           silcd/server.c.
2404
2405         * Assure that only one protocol is exeucting at the same time.
2406           Added checks for all protocols.  Affected files are
2407           silcd/server.c and server_backup.c.
2408
2409 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2410
2411         * Check that a string is not already part on invite/ban
2412           string when processing it.  Affected file silcd/server_util.c.
2413
2414 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2415
2416         * Fixed the CUMODE_CHANGE for founder mode changes to comply
2417           with 1.2 version of the protocol.  Affected file is
2418           silcd/packet_receive.c.
2419
2420 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2421
2422         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
2423           where the passphrase was given.  Affected file is
2424           silcd/command.c.
2425
2426 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2427
2428         * INVITE and BAN notifys are now delivered from routers to
2429           servers (but not clients) on the channel.  Updated specs and
2430           code.  Affected files silcd/packet_[send|receive].[ch],
2431           command.c, server.c and server_util.c.
2432
2433         * Implemented INVITE and BAN announcing.  Affected files are
2434           silcd/server.[ch], server_util.c.
2435
2436         * Implemented SilcStatus error type argument returning in
2437           command reply error in server.  Affected file silcd/command.c.
2438
2439         * Implemented SilcStatus argument returning in comand reply
2440           in client library.  The command_reply client operation now
2441           returns error specific arguments as well.  Affected files
2442           are lib/silcclient/command_reply.[ch], client_resume.c,
2443           lib/silccore/silcstatus.[ch].
2444
2445 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2446
2447         * Backup router protocol version 1.2 implemented.  Testing still
2448           required.  Affected files in silcd/server_backup.[ch], server.c,
2449           packet_receive.c and server_internal.h.
2450
2451 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2452
2453         * silc_client_send_[channel|private]_message now return TRUE
2454           or FALSE.  Affected file lib/silcclien/client_channel.c and
2455           client_prvmsg.c.
2456
2457 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2458
2459         * Check for explicit nickname in INVITE and BAN processing
2460           during join as well (and don't expect only wildcards in
2461           invite/ban strings).  Affected file silcd/command.c.
2462
2463         * Fixed the INVITE and BAN by public key.  The public key saved
2464           is the PK payload (as specified) not the raw data.  Affected
2465           file silcd/server_util.c.
2466
2467 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2468
2469         * UTF-8 text message support for actions and notices in SILC
2470           Client.  Affected file irssi/src/silc/core/client_ops.c.
2471
2472         * silc_get_username and silc_get_real_name now returns sensible
2473           data on Win32.  Patch by Toni Willberg.  Affected file is
2474           lib/silcutil/win32/silcwin32util.c.
2475
2476 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2477
2478         * Provide a signal handler to send MIME encoded messages and emit
2479           a signal when a MIME encoded message is received. Also document
2480           the signals for usage with the perl interface.
2481
2482           A sample perl script will be supplied at a later point.
2483
2484           Affected files are irssi/docs/signals.txt,
2485           irssi/src/silc/core/client_ops.[ch],
2486           irssi/src/silc/core/silc-{channels,servers}.c
2487
2488 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2489
2490         * Use SILC_COMMAND_PING to estimate the round-trip time to the
2491           server. Use this time to display a lag and disconnect when it
2492           exceeds a specified limit.
2493
2494           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
2495
2496 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2497
2498         * Remove the channel auth list in normal server if router
2499           encofrces its list during connecting.  Send notify to channel
2500           to remove the mode to remove the list.  Affected files are
2501           silcd/server_util.c and silcd/packet_receive.c.
2502
2503 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2504
2505         * Added support for channel public keys.  Updated protocol specs
2506           and implemented it.  Affected files are
2507           silcd/command.c, command_reply.c, lib/silcclient/command.c,
2508           lib/silcclient/command_reply.c.
2509
2510 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2511
2512         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
2513           terminate the process on Linux.  Affected file silcd/silcd.c.
2514
2515 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2516
2517         * Check for NULL buffer in silc_buffer_clear.  Affected file
2518           is lib/silcutil/silcbuffer.h.
2519
2520         * Simplified the backup router protocol by removing the _GLOBAL
2521           types.  Updated protocol specs and the code.  Affected files
2522           are silcd/server_backup.[ch].
2523
2524 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2525
2526         * Deny '@' and '!' from nicknames since they are reserved
2527           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
2528           Updated protocol specs and the code.
2529
2530           Affected files are silcd/server_util.[ch].
2531
2532 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2533
2534         * Fixed stack overflow in Irssi SILC client.  Affected
2535           file irssi/src/silc/core/client_ops.c.
2536
2537         * Check that Host is set in ServerConnection and RouterConnection
2538           in silcd.conf.  Affected file silcd/serverconfig.c.
2539
2540         * Fixed crash in server with protocol completion callbacks,
2541           namely rekey and backup resuming protocols.  Affected files
2542           are silcd/server_backup.c and silcd/server.c.
2543
2544         * Fixed rekey protocol to not restart if it is started already.
2545           Affected files are lib/silcclient/client.c and
2546           silcd/server.c.c
2547
2548 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2549
2550         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
2551
2552         * Fixed EOF handling in SILC Config, affected file
2553           lib/silcutil/silcconfig.c.
2554
2555         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
2556
2557         * Fixed RESOLVING flag handling in JOIN notify and other
2558           notifys to handle the resolvings correctly in client library.
2559           Affected file lib/silcclient/client_notify.c.
2560
2561         * Do not send full INVITE and BAN lists in INVITE and BAN
2562           notifys, only the changed information.  Affected file
2563           silcd/command.c.
2564
2565         * Fixed INVITE notify sending in INVITE command, send it
2566           only when needed.  Affected file silcd/command.c.
2567
2568         * Handle the founder key change properly in CMODE_CHANGE
2569           notify.  Bug #122.  Affected file silcd/packet_receive.c.
2570
2571 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2572
2573         * Remove the mark for output (mark it only for input) after
2574           purging outgoing queue.  Prevents the "Error in select()"
2575           floods.  Affected file silcd/packet_send.c.
2576
2577         * Fixed incorrect connection deletion from client library
2578           after calling "connect" client operation.  Could cause
2579           crashes for example during reconnect timeouts.  Affected
2580           files are lib/silcclient/client.c and
2581           irssi/src/silc/core/client_ops.c.
2582
2583         * Check server private key file permissions before starting
2584           the server.  Affected file silcd/serverconfig.c.
2585
2586 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2587
2588         * NULL terminate allocated string in silc_buffer_strformat.
2589           Affected file lib/silcutil/silcbuffmt.c.
2590
2591         * Rewrote the invite/ban list string handling in server to
2592           use SilcBuffer instead.  Affected files are silcd/command.c
2593           and silcd/server_util.c.
2594
2595 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2596
2597         * Fixed double free in CMODE command when setting new HMAC
2598           for channel.  Affected file silcd/command.c.
2599
2600         * Added couple of missing memset's to zero sensitive memory.
2601           Affected files silcd/command.c, lib/silcclient/command.c.
2602
2603 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2604
2605         * Fixed a double free in INVITE command error handling in
2606           server.  Affected file silcd/command.c.
2607
2608         * Added macros SILC_SWAB_[16|32] to swab byte order of
2609           16-bit and 32-bit unsigned integers.  Affected file
2610           lib/silcutil/silctypes.h.
2611
2612         * Use the SILC_SWAB_16 instead of htons() in server when
2613           handling ports since the ports in structures are always
2614           in little-endian order (regardless of platform).  Affected
2615           file silcd/serverid.c and silcd/server_backup.c.
2616
2617 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2618
2619         * Send DISCONNECT in close admin command in server.  Affected
2620           file silcd/command.c.
2621
2622         * Check whether we are already connecting to a remote router
2623           (in addition of checking whether we are already connected)
2624           before creating new connection.  Affected file silcd/server.c.
2625
2626 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2627
2628         * Added better compiler and compiler flags checking in
2629           configure.
2630
2631         * Check that socket is valid after QoS is applied to data.
2632           Affected file lib/silcutil/unix/silcunixsockconn.c.
2633
2634         * Make sure the socket connecetion is not closed to early
2635           when closing connection in server.  Also make sure the
2636           connection is always closed after error in a protocol.
2637           Affected file silcd/server.c.
2638
2639 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2640
2641         * Removed --session and --dummy options from Irssi SILC Client.
2642           -d option is available only if --enable-debug was given.
2643           Affected files are irssi/src/silc/core/silc-core,
2644           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
2645
2646 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2647
2648         * Added silc_buffer_steal to steal the data from the buffer.
2649           Affected file lib/silcutil/silcbuffer.h.
2650
2651 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
2652
2653         * Fixed server crash with double Primary block in config file.
2654
2655           Fixed also various memory leaks around the config file
2656           parser.  Affected files lib/silcutil/silcconfig.c,
2657           silcd/serverconfig.c.
2658
2659         * Changed my nickname (Johnny Mnemonic) to my real name, this
2660           means that bugs introduced by him were actually introduced
2661           by me!
2662
2663 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2664
2665         * Don't display "foo appears as foo\nYou're now known as foo"
2666           messages.  Affected file irssi/src/silc/core/client_ops.c
2667
2668 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2669
2670         * Fixed error handling of invalid client entry when calling
2671           commands in server.  Fixes a crash.  Affected file
2672           silcd/command.c.
2673
2674 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2675
2676         * Added some sanity checks in server for correctness of the
2677           server configuration.  Affected file silcd/serverconfig.c.
2678
2679 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2680
2681         * Prevent endless resolving of user informations in USERS
2682           command by checking the command reply status correctly.
2683           Affected file lib/silcclient/command_reply.c.
2684
2685 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2686
2687         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
2688           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
2689           Aldous <Matthew@Aldous.com>.
2690
2691         * Added better implementation using CriticalSection of
2692           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
2693           <mikko.lahteenmaki@pikabaana.net>.
2694
2695         * Added some Winsock WIN32 compatiblity defines into
2696           includes/silcwin32.h.
2697
2698 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2699
2700         * Fixed double free in async host lookup code.  Affected file
2701           lib/silcutil/silcsockconn.c.
2702
2703         * On backup router handle now the SERVER_SIGNOFF from router
2704           for local connected servers too, and close the connections.
2705
2706           Do not process them as normally signing off servers when they
2707           really signoff by sending EOF fe, but always assume that
2708           router sends the SERVER_SIGNOFF.
2709
2710           Affected files silcd/server.c and silcd/packet_receive.c.
2711
2712         * Fixed socket unsetting when closing connections.  Affected
2713           files silcd/server.c and silcd/packet_send.c.
2714
2715         * Do not print the nickname in SERVER_SIGNOFF if we do not
2716           have it.  Prevents asserts in Irssi core.  It is possible we
2717           don't have the nick if it was just being resolved when server
2718           signoff.  Affected file irssi/src/silc/core/client_ops.c.
2719
2720 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2721
2722         * Fixed autonick crashbug in client library.  Affected file
2723           lib/silcclient/client.c.
2724
2725         * Fixed Unix implementation of SilcMutex to really assert if
2726           the mutex is locked/unlcoked already.  Affected file
2727           lib/silcutil/unix/silcunixmutex.c.
2728
2729         * Fixed locking in silc_schedule_uninit.  It didn't lock
2730           when dispatching timeout tasks.  Affected file is
2731           lib/silcutil/silcschedule.c.
2732
2733         * Changed Win32 implementation of SilcThread to use modern
2734           Win32 interface.  Affected file is
2735           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
2736
2737 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2738
2739         * Don't print signed messages when sending failed.  Affected files
2740           irssi/src/silc/core/silc-[servers.c/commands.h]
2741
2742         * Send adquate signal when founding a channel by joing it.  Affect
2743           file irssi/src/silc/core/client_ops.c
2744
2745 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2746
2747         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
2748           irssi/src/fe-common/core/themes.c
2749
2750 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2751
2752         * Fixed close command to use the port correctly when closing
2753           server connections.  Affected file silcd/idlist.c.
2754
2755         * Check for NULL outbuf in silc_socket_write.  It is possible
2756           that it is NULL is some odd case.  Affected files are
2757           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
2758
2759         * Do not call final protocol callback for backup router
2760           resuming protocol when closing connection.  It is closed
2761           by timeout in case of error.  Affected file silcd/server.c.
2762
2763         * Backup reconnect to router if backup resuming protocol
2764           failed.  Affected file silcd/server_backup.c.
2765
2766 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
2767
2768         * Fixed double free in SKE library error hadling when signature
2769           error occurred.  Affected file lib/silcske/silcske.c.
2770
2771         * Save the fingerprint to new SilcClientEntry after changing
2772           nickname.  Affected file lib/silcclient/client_notify.c.
2773
2774         * Print SIGNOFF in Irssi SILC client only if the nickname is
2775           known.  Prevents asserts in Irssi core.  It is possible we
2776           don't have the nick if it was just being resolved when it
2777           quit.  Affected file irssi/src/silc/core/client_ops.c.
2778
2779 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2780
2781         * Fixed double free in invite list adding code when adding
2782           invite strings.  Affected file silcd/server_util.c.
2783
2784 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2785
2786         * More log printing during backup router protocol.  Affected
2787           file silcd/server_backup.c.
2788
2789         * Removed backwards support for old private key file format.
2790           Affected file lib/silccrypt/silcpkcs.c.
2791
2792         * Removed backwards support for not-so-strict decryption length
2793           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2794
2795         * GETKEY to update the client entrys fingerprint too.
2796           Affected file lib/silcclient/command_reply.c.
2797
2798         * Added --without-libtoolfix for package builders using weird
2799           wrappers around libtool (BSD at least).
2800
2801 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2802
2803         * Fixed backup router bugs:  When backup resumes router and
2804           receives a CHANNEL_MESSAGE packet the backup must not act
2805           as router since the packet header decryption would be
2806           different.  Also, when relaying packets to channel, do
2807           not re-encrypt packets on backup that came from the primary
2808           since the connection isn't really router-router connection.
2809           Affected files silcd/server.c, silcd/packet_send.c.
2810
2811         * Added checks in encryption/decryption that encryption/decryption
2812           length sent as argument really is multiple by block size.  Helps
2813           catching really weird bugs like the above backup router bugs
2814           when packets are being decrypted in wrong way.  Affected files
2815           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2816
2817         * Fixed padding generation in private key file encryption.
2818           Affected file lib/silccrypt/silcpkcs.c.
2819
2820 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2821
2822         * Added ignore_message_signatures setting which can be used
2823           to ignore signatures in messages.  Affected files are
2824           irssi/src/silc/core/client_ops.c, silc-core.c.
2825
2826         * Fixed the libtoolfix to use command line options instead of
2827           environment variables.  They didn't work as expected.  Now,
2828           the libtool is fully run-time configurable.
2829
2830 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2831
2832         * Verify signature payload for signed messages. Affected files
2833           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2834           irssi/src/silc/core/silc-core.h
2835
2836         * Display signature verification result in public and private
2837           messages using theme abstracts. See irssi/default.theme for
2838           examples on their usage. Affected files
2839           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2840           irssi/src/fe-common/silc/module-formats.[ch],
2841           irssi/src/fe-common/silc/fe-common-silc.c,
2842           irssi/src/fe-common/silc/Makefile.am
2843           irssi/src/fe-common/core/fe-messages.[ch]
2844
2845         * Fixed bugs in Irssi's theme parsing. Affected files
2846           irssi/src/fe-common/core/themes.c
2847
2848 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2849
2850         * Calculate the correct length for signed messages before
2851           encrypting, it must be multiple by block size.  Affected
2852           file lib/silccore/silcmessage.c.
2853
2854         * silc_message_signed_get_public_key returns now both
2855           decoded and encoded public key.  Affected files are
2856           lib/silccore/silcmessage.[ch].
2857
2858         * Added libtoolfix script that makes the libtool more generic
2859           and configurable in run-time.  Now we can specify in run-time
2860           if what kind of libraries we want to create, regardless of
2861           configuration.  SIMs are now creates even if --disable-shared
2862           was explicitly given.
2863
2864 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2865
2866         * Fixed founder key sending in CMODE command in client.
2867           Affected file lib/silcclient/command.c.
2868
2869         * Fixed CUMODE founder authentication in server to not check
2870           for client's public key since it's not supposed to do that.
2871           Affected file silcd/command.c.
2872
2873 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2874
2875         * Set realname and hostname in NICK_REC records. Affected file
2876           irssi/src/silc/core/silc-nicklist.c
2877
2878 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2879
2880         * Remove 1.0 protocol backwards compat code from client
2881           library.
2882
2883         * Added more reliable check for whether nickname did change
2884           or not, or whether only Client ID changed in NICK_CHANGE
2885           notify.  Affected file lib/silcclient/client_notify.c.
2886           Fixes bug in '@' character handling in a nickname.
2887
2888         * Added support for automatically parsing signature from
2889           the message payload.  Added new function
2890           silc_message_get_signature to return the payload to
2891           application.  Affected files lib/silccore/silcmessage.[ch].
2892
2893         * Changed the private_message and channel_message client
2894           operations to deliver the SilcMessagePayload to the
2895           application too.  Application can use it fe. to get the
2896           signature from the message for verification.  Affected
2897           file lib/silcclient/silcclient.h, client_channel.c and
2898           client_prvmsg.c.
2899
2900         * Redefined the signed payload for message payloads.
2901           Updated protocol specs and implemented.
2902
2903 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2904
2905         * Fixed wrong invite and ban list handling in server command
2906           reply.  Affected files are silcd/command_reply.c,
2907           silcd/server_util.[ch].
2908
2909 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2910
2911         * Fixed CMODE setting in server when founder mode was set.
2912           Affected file silcd/command.c.  Bug #95.
2913
2914         * Added support to setting specific public key in CMODE in
2915           Irssi SILC client.  Affected file lib/silcclient/command.c.
2916
2917         * Added support to use specific public key in CUMODE in
2918           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2919
2920         * Added support for inviting and banning by public key in
2921           Irssi SILC client.  Affected file lib/silcclient/command.c.
2922
2923         * Fixed fingerprint/babbleprint showing in invite and ban
2924           list command replys.  Affected file is
2925           irssi/src/silc/core/client_ops.c.
2926
2927 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2928
2929         * Format CMODE +c and +h to display both the mode and the argument
2930
2931 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2932
2933         * Added test vectors and test programs for SHA-1, MD5,
2934           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2935           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2936           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2937
2938         * Changed the channel private key and private message key
2939           generation (with static keys) to use SHA1 instead of MD5,
2940           as SHA1 is the mandatory hash function in SILC.  Affected
2941           file lib/silcclient/client_[channel/prvmsg].c.
2942
2943         * Changed the private key file encryption to use SHA1 instead
2944           of MD5.  Added support for the old generation and added
2945           automatic change of the key (to be removed later).  Affected
2946           files lib/silccrypt/silcpkcs.c.
2947
2948 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2949
2950         * Load only files with .pub suffix in PublicKeyDir.  Affected
2951           file silcd/serverconfig.c.
2952
2953 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2954
2955         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2956           channels.  Affected files silcd/silcd.c, silcd/server.h.
2957
2958         * Added the config directive PublicKeyDir for the client block.
2959           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2960
2961 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2962
2963         * Merged Toni's irssi/silc.conf patch.
2964
2965         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2966
2967         * Max alloc tests in allocation routines.  Affected file
2968           lib/silcutil/silcmemory.c.
2969
2970 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2971
2972         * Fixed a typo in resuming code that fixed detach/resume code
2973           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2974
2975 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2976
2977         * Do reverse lookups for server when /connecting. Affected files
2978           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2979           irssi/src/core/net-nonblock.*
2980
2981 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2982
2983         * Added library versioning for shared libraries.  Affected
2984           files configure.in.pre and lib/Makefile.am.pre.
2985
2986 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2987
2988         * Display INVITE and BAN lists as specified by SILC 1.2
2989
2990 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2991
2992         * Do not send invite list back unless asked (when sending
2993           no arguments) or when list was modified.  Affected file
2994           silcd/command.c.
2995
2996         * Remove client from invite list in KILLED notify and in
2997           KILL command.  Affected file silcd/command.c and
2998           silcd/server.[ch].
2999
3000         * Fixed bugs in invite list handling in INVITE command.
3001           Affected files silcd/command.c and silcd/server_util.c.
3002
3003         * Merged with Irssi 0.8.6.
3004
3005         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
3006           Affected file irssi/src/fe-text/silc.c.
3007
3008 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3009
3010         * The silc_argument_get_[first/next] now return the argument
3011           type to caller.  Added silc_argument_payload_encode_one.
3012
3013           Affected files are lib/silccore/silcargument.[ch].
3014
3015         * Added support for the SILC 1.2 INVITE command and new
3016           invite lists to server.  Affected files are silcd/command.c,
3017           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
3018
3019         * Added support for the SILC 1.2 BAN command and new
3020           ban lists to server.  Affected files are silcd/command.c,
3021           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
3022
3023         * Added support to client sending new INVITE command.  Affected
3024           file is lib/silcclient/command.c.
3025
3026         * Added support to client sending new BAN command.  Affected
3027           file is lib/silcclient/command.c.
3028
3029         * Added support for removing client from invite list when kicked
3030           from channel, as SILC 1.2 dictates.  Affected files are
3031           silcd/packet_receive.c and silcd/command.c.
3032
3033 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3034
3035         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
3036           automatically the cipher's internal IV.  Affected files
3037           lib/silccrypt/silccipher.[ch].
3038
3039         * Assure the RESUME_CLIENT packet is not sent to twice to
3040           backup router if the detached client was originated from
3041           the backup.  Affected file silcd/server.c.  Bug #76.
3042
3043         * Changed silc_sim_symname to not allocate memory.  Affected
3044           file lib/silcsim/silcsimutil.c.
3045
3046         * Fixed memory leaks with SIMs in server.  Affected files
3047           silcd/serverconfig.c, silcd/server.c.
3048
3049         * Fixed channel key distribution after resuming detached
3050           client.  Affected files silcd/packet_receive.c.
3051
3052         * Fixed channel's global_user boolean checking after detaching.
3053           Check it after changing the owner of the client not before.
3054           Affected file silcd/packet_receive.c.
3055
3056         * Fixed few double frees from client library.  Fixes at least
3057           Bug #81, possibly others too.
3058
3059         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
3060           notifys in Irssi SILC Client.  Affected file is
3061           irssi/src/silc/core/client_ops.c.  Bug #82.
3062
3063         * Applied Ville Räsänen's manual page and --mandir bugfix
3064           patch.  Affected files are configure.in.pre and Makefile.am.pre.
3065           Bug #88.
3066
3067 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3068
3069         * Added support to backup router protocol for backup to tell
3070           normal server that it cannot use the backup router as primary
3071           because the primary isn't really down.  Updated protocol
3072           specs.
3073
3074         * Added support for primary router to tell backup router that
3075           resuming is not possible because the backup really isn't primary
3076           in the cell.  For example if backup disconnected itself the
3077           resuming is not allowed since the primary really did not
3078           go down.  Updated protocol specs.
3079
3080         * Removed MARS from crypto library.
3081
3082         * Defined the CTR mode and Randomized CBC mode in SILC.  The
3083           CTR mode is RECOMMENDED now in specification.  Defined also
3084           Serpent cipher as optional cipher.  Updated the protocol specs.
3085
3086 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3087
3088         * Added support for inviting/banning by IP/MASK, public key,
3089           and explicit Client ID.  Redefined the command and notify
3090           types to allow easier forwards support for other methods
3091           of inviting/banning.  Updated protocol specs.
3092
3093         * Remove the client from channel's invite lists if the client
3094           is kicked or killed.  Updated protocol specs.
3095
3096         * Unified the Channel Message Payload and Private Message
3097           into one Message Payload.  Updated protocol specs and
3098           implemented.
3099
3100 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3101
3102         * Don't wait for EOF after socket error has occurred, but
3103           close the connection.  Affected file is silcd/server.c.
3104
3105 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3106
3107         * Added support for setting FOUNDER mode on channel with
3108           specific public key which can be set with CMODE command.
3109           Updated protocol specs and implemented in client and server.
3110
3111         * Fixed the Irssi SILC client to correctly shutdown the client
3112           library to avoid memory leaks.  Affected files are
3113           irssi/src/silc/core/silc-core.c and silc-servers.c.
3114
3115         * Deprecated the No Reply flag in SKE protocol and introduced
3116           "IV Included" flag which can be used to indicate that the IV
3117           is included in the ciphertext.  This makes it possible to use
3118           SILC on unreliable transport, such as UDP which may cause
3119           packet reordering and losses.  Updated protocol specs, did
3120           not implement yet.
3121
3122 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3123
3124         * Fixed the MPI implementation of silc_mp_sizeinbase to return
3125           < 32 bit values in correct size.  Affected file is
3126           lib/silcmath/mp_mpi.c.
3127
3128 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3129
3130         * Fixed the KE Start Payload parsing to check that mandatory
3131           fields are present.  Affected file lib/silcske/payload.c.
3132
3133         * Fixed compilation warnigs in Irssi SILC Client.  Affected
3134           files are irssi/src/silc/core/silc-query.c. client_ops.c.
3135
3136 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3137
3138         * Print "nick now appears as newnick" and update Irssi's nicklist
3139           when you change your nick to "nick". Closes #62
3140
3141         * Never format your own nick. Closes #63
3142
3143 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3144
3145         * SILC_UMODE_GONE changes are now propagated correctly to the
3146           Irssi client. Closes #54
3147
3148 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3149
3150         * Fixed example in /HELP KEY
3151
3152         * Added expando $j which expands to current SILC Client version
3153
3154 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3155
3156         * Fixed public key decoding in crypto library.
3157
3158         * Added better error printing to SKE library.
3159
3160 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3161
3162         * Fixed NICK command to not crash if nickname was not sent.
3163
3164 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3165
3166         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
3167           Deprecated the old Encrypt-And-MAC order.  Updated protocol
3168           specs and implemented.
3169
3170         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
3171           generation.  Updated specs and implemented.
3172
3173 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3174
3175         * Added support for rekey before 2^32 sequence number wraps.
3176           Affected files in server and client library.
3177
3178         * Padding must be at least 8 bytes now.  Implemented and updated
3179           protocol specs.
3180
3181         * Compute maximum padding for authentication packets to make
3182           passphrase approximation attacks impossible.  Affected files
3183           in client library and in server.
3184
3185         * Fixed PING command sending in client library and handling in
3186           server.  The server ID must be ID Payload, not raw ID data.
3187           Affected files in server and client library.
3188
3189         * Defined that all public keys sent in commands and notify
3190           payloads are actually Public Key Payloads not raw public key
3191           data.  Updated protocol specs and implemented.
3192
3193         * Updated protocol version to 1.2.  Updated specs and code.
3194
3195         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
3196           status types.  Updated specs and the code.
3197
3198         * Added support for normal client to kill its own entries from
3199           the network.  Updated protocol specs and the code.
3200
3201         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
3202           and added initial implementation.
3203
3204         * Added MAC field to the Private Message Payload to protect
3205           against chosen ciphertext attacks.  Updated the protocol specs
3206           and implemented.
3207
3208         * Added idle and signon fields to the ATTRIBUTE_SERVICE
3209           attribute to indicate the user's current idle and signon time
3210           of a service.  Updated protocol specs and implemented.
3211
3212 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3213
3214         * Added "do_not_bind" argument to silc_client_file_send what
3215           can be used to not bind locally but assume the file receiver
3216           provides the point of connect.  Usefull when sender is behind
3217           NAT device.  Affected file lib/silcclient/silcclient.h and
3218           client_ftp.c.
3219
3220         * Added -no-listener option to FILE SEND command in Irssi SILC
3221           client.  Affected file irssi/src/silc/core/silc-servers.c.
3222           Renamed FILE RECEIVE to FILE ACCEPT.
3223
3224         * Confirm passphrase for private key encryption in
3225           silc_create_key_pair and silc_change_private_key_passphrase.
3226           Affected files are lib/silcutil/silcapputil.c.
3227
3228 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3229
3230         * Move silc_client_packet_send back to internal, added
3231           silc_client_send_packet, a bit simpler function for application.
3232           Affected files lib/silcclient/silcclient.h, client.c and
3233           client_internal.h.
3234
3235         * Moved the SilcClientEntry, SilcChannelEntry and
3236           SilcServerEntry to silcclient.h to be public and documented
3237           them for application.  Affected files are
3238           lib/silcclient/silcclient.h and idlist.h.
3239
3240 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3241
3242         * Fixed manual page installation patch by Ville Räsänen.
3243           USERS help page fix patch by Ville Räsänen
3244
3245         * Changed the silc_client_command_call interface to make
3246           the command call simpler for the application.  The library
3247           now handles the command line parsing, command finding and
3248           execution.  Application only needs to call the function
3249           with the command line.  Affected files are
3250           lib/silcclient/silcclient.h, command.[ch].
3251
3252         * Fixed silc_get_input to NULL-terminate the returned input.
3253           Affected file lib/silcutil/silcutil.c.
3254
3255         * Resolve the client's public key in JOIN command if the
3256           founder auth data is being requested but we don't know the
3257           client's public key.  Affected file silcd/command.c.
3258           Bug #53.
3259
3260 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3261
3262         * Print notify for server opers when backup router comes
3263           online.  Affected file silcd/server.c.
3264
3265         * Fixed the INVITE command to send the invite list in
3266           command reply.  Affected file silcd/command_reply.c.
3267
3268         * Fixed MOTD command reply sending.  Affected file
3269           silcd/command.c.
3270
3271         * UTF-8 decode the topic in TOPIC command reply and LIST
3272           command reply in Irssi SILC client.  Affected file is
3273           irssi/src/silc/core/client_ops.c.
3274
3275 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3276
3277         * Fixed the INVITE command to not crash Irssi SILC client
3278           when given without nickname argument.  AFfected file
3279           irssi/src/silc/core/client_ops.c.
3280
3281         * Fixed double free in WHOIS query on normal server when
3282           forwarding query to router.  Affected file is
3283           silcd/server_query.c.
3284
3285         * Fixed WATCH command reply handling on normal server which
3286           was missing altogether.  Affected file silcd/command_reply.c.
3287           Bug #44.
3288
3289 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
3290
3291         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
3292           Included yodl sources for each of these. Also modified
3293           Makefile.am prototype to install these files to proper
3294           locations. Updated CREDITS. Affected file Makefile.am.pre,
3295           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
3296           doc/silcd.8.
3297
3298 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3299
3300         * Added support for encrypted private key files.  Now
3301           passphrase must be provided when new key pair is created
3302           (can be empty though), and prompted when loading the
3303           private key.  Added support for loading the old-style
3304           non-encrypted private keys as well.  Affected files
3305           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
3306           SILC Server.
3307
3308         * Fixed silc_get_input to accept input on all terminals.
3309           Affected file lib/silcutil/silcutil.c.
3310
3311         * Moved the Irssi SILC client key loading and other stuff
3312           to be called after the arguments and UI is initialized.
3313           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
3314
3315         * Added -P option to Irssi SILC client which can be used
3316           to change the passphrase of the private key.  Affected
3317           file irssi/src/silc/core/silc-core.c.
3318
3319         * Added silc_change_private_key_passphrase apputil routine
3320           to lib/silcutil/silcapputil.[ch].
3321
3322 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3323
3324         * Fixed connection closing in client library to not crash.
3325           Moved the connection freeing totally to function
3326           silc_clinet_del_connection.  Affected file
3327           lib/silcclinet/client.c.
3328
3329 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3330
3331         * Changed includes/silcincludes.h to silcincludes.h.in to
3332           include configuration specific information.  The silcdefs.h
3333           is not included in to installation anymore (it's only
3334           compilation time header).
3335
3336 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3337
3338         * Moved the SilcClient and SilcClientConnection from client.h
3339           to the public lib/silcclient/silcclient.h.  Changed the
3340           structures a bit.
3341
3342 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3343
3344         * If version string in silc_clinet_alloc is NULL the library
3345           puts it automatically.  Affected file lib/silcclient/client.c.
3346
3347         * Changed the version strings from variables to #define's
3348           in includes/silcversion.h.
3349
3350 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3351
3352         * Added shared library complation support.
3353
3354 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3355
3356         * Added lib/silcutil/silcapputil.[ch] for application
3357           utility functions.  It includes routines for applications'
3358           convenience.  Added silc_create_key_pair, silc_show_public_key
3359           and silc_load_key_pair functions.
3360
3361 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3362
3363         * Send RESUME_CLIENT packet from router to backup routers
3364           to in resuming.  Affected file silcd/packet_receive.c.
3365
3366 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3367
3368         * In IDENTIFY command parsing, send all other IDs except
3369           Client IDs explicitly to router for resolving on normal
3370           server.  Also check that ID received in WHOIS command is
3371           always Client ID, others are not allowed.  Affected file
3372           silcd/server_query.c.
3373
3374         * Merged latest changes from irssi.org CVS.
3375
3376 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3377
3378         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
3379           Affected files irssi/src/silc/core/silc-core, silc-server.c.
3380
3381         * Fixed the heartbeat sending in Irssi SILC client.  Moved
3382           the silc_client_packet_send to silcclient.h for application
3383           usage.  Affected files lib/silcclient/client_internal.h
3384           lib/silcclient/silcclient.h.
3385
3386         * Fixed a bug in query resolving in server.  Used wrong
3387           variable in a for loop and crashed.  Affected file is
3388           silcd/server_query.c.
3389
3390         * Server constructs requested attributes only to locally
3391           connected clients.  Affected file silcd/server_query.c.
3392           Bug #36.
3393
3394         * Fixed a bug when sending resolving from router to server
3395           with requested attributes.  The constructed WHOIS command
3396           was incorrect.  Affected file silcd/server_query.c.
3397           Bug #38.
3398
3399         * Fixed Requested Attributes saving in WHOIS command reply.
3400           The length of the data buffer must be saved too.  Affected
3401           file silcd/command_reply.c.
3402
3403         * Update the client entry's servername after detaching is
3404           over.  Affected file silcd/packet_receive.c.  Bug #37.
3405
3406         * Resolve incomplete client entrys in CUMODE_CHANGE and
3407           CMODE_CHANGE notifys.  Affected file is
3408           lib/silcclient/client_notify.c.  Bug #42.
3409
3410 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3411
3412         * Fixed channel key packet processing bug on backup router
3413           during backup resuming protocol.  Affected file is
3414           silcd/packet_receive.c.
3415
3416         * Fixed memory leaks in server.  Affected files are
3417           silcd/server.c and silcd/packet_receive.c.
3418
3419         * Fixed packet decryption problem when backup router encrypted
3420           channel message with wrong key during backup resuming
3421           protocol.  Affected file silcd/packet_send.c.
3422
3423         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
3424           Toni Willberg (toniw@iki.fi)
3425
3426         * Changed the SilcCipher context to be private.  Changed the
3427           silc_cipher_get_iv to just return pointer to the IV.  Added
3428           silc_cipher_get_name to return the name of the cipher.
3429           Fixed code all around to support these changes.  Affected
3430           files are lib/silccrypt/silccipher.[ch], client library and
3431           server.
3432
3433 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3434
3435         * Fixed unaligned access in lib/silccore/silcattrs.c.
3436
3437         * Fixed libtool linking in lib/silcsim/Makefile.am.
3438
3439         * Fixed services attribute printing.  Affected files is
3440           irssi/src/silc/core/silc-queries.c.
3441
3442 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3443
3444         * Fixed a crashbug in incoming server accepting.  Affected
3445           file silcd/server.c.
3446
3447 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3448
3449         * Added automatically generated index to Toolkit Reference
3450           Manual.
3451
3452         * Added support for Postscript Toolkit Reference Manual.
3453
3454 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3455
3456         * Merged DISCONNECT fix, and autoconn port fix from Irssi
3457           CVS.
3458
3459 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3460
3461         * Added 'send_events' boolean argument to the function
3462           silc_schedule_set_listen_fd which sends the set events to
3463           the application explicitly if set to TRUE.  Default action
3464           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
3465           lib/silcclient/client_internal.h and silcd/server_internal.h.
3466
3467         * Added silc_compare_timeval to determine which time values
3468           is smaller.  Affected file lib/silcutil/silcutil.[ch].
3469
3470         * Added sort-of "Quality of Service" (QoS) support to
3471           SilcSocketConnection.  Data reception can be controlled with
3472           rate limit per second and/or read data length limit.
3473           Added silc_socket_set_qos.  Affected files are
3474           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
3475
3476         * Added the QoS configuration to SILC Server configuration
3477           file.  Affected files are silcd/serverconfig.[ch] and
3478           server.c.
3479
3480 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3481
3482         * Merged with irssi.org CVS.
3483
3484         * Failed OPER and SILCOPER authentications are now logged.
3485           Affected file silcd/command.c.  Bugs #25.
3486
3487 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3488
3489         * ROBODoc documented lib/silcutil/silcbuffer.h and
3490           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
3491           <ville.rasanen@iki.fi>.
3492
3493 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3494
3495         * Added support for auto-passphrase authentication from the
3496           config file during connecting which was not implemented
3497           yet.  Affected file irssi/src/silc/core/client_ops.c.
3498
3499         * Fixed a bug in authentication protocol failure handling which
3500           was processing wrong callback context.  Affected files
3501           are lib/silcclient/client.c and protocol.c.
3502
3503         * Fixed the /ATTR allow off to actually work.  Affected file
3504           is irssi/src/silc/core/silc-queries.c.
3505
3506         * Fixed the /ATTR -del to work.  Affected file is
3507           irssi/src/silc/core/silc-queries.c.
3508
3509 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3510
3511         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
3512
3513         * Fixed mask attribute adding in Irssi SILC client.  Affected
3514           file irssi/src/silc/core/silc-queries.c.
3515
3516 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3517
3518         * Added support for saving the requested attributes in
3519           WHOIS to directory.  Affected file is
3520           irssi/src/silc/core/silc-queries.c.
3521
3522 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3523
3524         * Added support for parsing VCard fields that do not have
3525           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
3526
3527         * Fixed a double free bug in hash table foreach function
3528           if the entry was deleted in the foreach callback.  Affected
3529           file lib/silcutil/silchashtable.c.
3530
3531 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3532
3533         * Added silc_attribute_get_verify_data to return the signature
3534           verification data for either user digital signature or
3535           server digital signature in Requested Attributes.  Affected
3536           files are lib/silccore/silcattrs.[ch].
3537
3538         * Added silc_vcard_alloc which is used to allocated dynamic
3539           SilcVCard context.  The silc_vcard_free now checks whether
3540           the context is dynamically allocated or not.  Affected files
3541           are lib/silcutil/silcvcard.[ch].
3542
3543 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3544
3545         * Periodically remove the NOATTR status from client entry
3546           so that the client may take the attributes in use even after
3547           server has resolved them unsuccessfully earlier.  Affected
3548           file silcd/server_query.c and idlist.h.
3549
3550         * Moved sha1hash and md5hash from client->internal to
3551           SilcClient for application usage.  Affected files are
3552           lib/silcclient/client.h and client_internal.h.
3553
3554         * Fixed attribute encoding and decoding bugs.  Affected
3555           files lib/silccore/silcattrs.[ch].
3556
3557         * Added ATTR command to Irssi SILC Client which is used to
3558           manage user's Requested Attributes sending and values for
3559           WHOIS command.  Affected files around Irssi SILC client.
3560
3561 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3562
3563         * Added silc_buffer_strformat which can be used to format
3564           strings into a buffer which size is automatically increased.
3565           Affected file lib/silcutil/silcbuffmt.[ch].
3566
3567         * Added implementation of VCard (RFC 2426) which can be used
3568           as part of Requested Attributes in WHOIS command.  Affected
3569           file lib/silcutil/silcvcard.[ch].
3570
3571 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3572
3573         * Some strncat -> silc_strncat changes our the core and
3574           client library.
3575
3576         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
3577           errors.  Added better error printing to SKE library.
3578           Affected files lib/silcske/silcske.c, silcske_status.h and
3579           payload.c.
3580
3581         * Save the PKCS key length even if only private key is set to
3582           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
3583
3584         * Fixed the usage of silc_pkcs_get_key_len since it returns the
3585           length in bits not in bytes.  Affected files are
3586           lib/silcske/silcske.c, lib/silccore/silcauth.c and
3587           silcd/server_query.c.
3588
3589 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3590
3591         * Added silc_attribute_payload_encode_data to directly encode
3592           the data into the attributes buffer.  Renamed function
3593           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
3594           Affected files are lib/silccore/silcattrs.[ch].
3595
3596         * silc_hash_table_find_foreach calls the foreach function now
3597           once even if the nothing was found with context set to NULL.
3598           Affected file lib/silcutil/silchashtable.[ch].
3599
3600         * Remove the RESOLVING flag from client entry after received
3601           the Requested Attributes from the client.  Fixed memory leak
3602           in client entry freeing.  Affected files silcd/server_query.c
3603           and idlist.c.
3604
3605         * Added Requested Attributes support into SILC Client Library.
3606           It is not able to send requested attributes in WHOIS command,
3607           and also receive and process requested attributes.  Added
3608           silc_client_attribute_[add|del] and silc_client_attributes_get
3609           functions.  Added also `ignore_requested_attributes' to the
3610           SilcClientParams to not use attributes in client.  Affected
3611           files are lib/silcclient/command.c, client_attrs.[ch],
3612           silcclient.h, client_internal and client.[ch].
3613
3614         * Changed the silc_client_get_client_by_id to support Requested
3615           Attributes, it takes them as argument now.  Affected file
3616           is lib/silcclient/silcclient.h, and idlist.c.
3617
3618         * Added -details option to WHOIS command in Irssi SILC Client
3619           to support the requested attributes.  By default it requests
3620           all attributes.  Affected file lib/silcclient/command.c and
3621           irssi/doc/help/in/whois.in.
3622
3623 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3624
3625         * Add also SERVICE attribute for server-constructed attribute
3626           data.  Also digitally sign the attributes and add
3627           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
3628           silcd/server_query.c.
3629
3630 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3631
3632         * Changed the silc_attribute_payload_encode to support list
3633           of attributes (function may be called several times to add
3634           a new attribute).  Removed the silc_attribute_payload_encode_list
3635           function.  The encoding function now also automatically encodes
3636           the data, so the caller does not need to do that.  Affected
3637           files lib/silccore/silcattrs.[ch].
3638
3639         * Added support for replying on behalf of the user to the
3640           Requested Attributes in WHOIS command in the server.  Affected
3641           file silcd/server_query.c.
3642
3643         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
3644           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
3645
3646 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3647
3648         * Don't swtich to become primary router if we are backup if
3649           decryption error has occurred.  Affected file silcd/server.c.
3650
3651         * Fixed a bug in backup router IP address comparison in
3652           silc_server_backup_get.
3653
3654           Save now also the port of the server/router and use that
3655           in comparison as well.  Affected file silcd/server_backup.c.
3656
3657         * Normal server now reconnects to backup router automatically
3658           if connection is lost to it.  Affected file silcd/server.c.
3659
3660 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3661
3662         * If packet processing fails (like integrity check fails)
3663           the connection is closed now.  Affected files are
3664           lib/silccore/silcpacket.c and silcd/server.c.
3665
3666 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3667
3668         * Fixed double free in RSA public key set function
3669           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
3670           Bug #29.
3671
3672 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3673
3674         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
3675           Added server_query.[ch] which provides one interface for
3676           querying information using all three commands.
3677
3678         * Changed all "typedef unsigned char" in core library to
3679           "typedef SilcUInt8".
3680
3681 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3682
3683         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
3684
3685         * Renamed silc_server_get_client_resolve to
3686           silc_server_query_resolve and moved to server_query.[ch].
3687
3688 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3689
3690         * Resumed client packet handling from server put the resumed
3691           client on wrong list on router and caused the client not
3692           be present on the network anymore.  Now fixed to put the
3693           client to correct list.  Affected file silcd/packet_receive.c.
3694
3695 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3696
3697         * Various cleanup in error message output in config parsing code
3698           and in server init code.  Fixed error log files containing
3699           too many newlines ('\n') in some situations.  Affected files are
3700           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
3701
3702 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3703
3704         * Use the reverse lookupped hostname in client internals
3705           instead of one user provided us as remote server name.
3706           Affected file lib/silcclient/client.c.
3707
3708 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3709
3710         * Added 'app_context' to silc_schedule_init.  It is an
3711           application specific context that is delivered to application
3712           in task callback functions.  Affected files are
3713           lib/silcutil/silcutil.[ch].
3714
3715         * The hb_context in SilcSocketConnection is not freed
3716           automatically anymore (application must free it).  Freeing
3717           it automatic is inconsistent.  Affected files are
3718           lib/silcutil/silcsockconn.[ch].
3719
3720 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3721
3722         * Added support for removing explicitly added client connections
3723           in rehash and closing the client connections if they were
3724           unconfigured in the rehash.  Affected file silcd/server.c.
3725
3726         * Added support for aborting automatically pending commands
3727           that never receives the reply (to avoid memory leaks).
3728           Added also silc_server_command_pending_timed to set the
3729           specific timeout for pending command.  Affected files are
3730           silcd/command[_reply].[ch].
3731
3732         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
3733           specs and lib/silccore/silcstatus.h.
3734
3735 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3736
3737         * Changed the silc_get_time to accept time value as argument
3738           or if zero is sent return current local time.  Affected
3739           file lib/silcutil/silcutil.[ch].
3740
3741         * Added STATS command to client library and Irssi SILC client.
3742           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
3743
3744 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3745
3746         * Assure that channel key is set before sending it.  May
3747           crash server otherwise.  Affected file silcd/packet_send.c.
3748
3749 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3750
3751         * Assure that endless loop cannot happen with detached client
3752           resolving on normal server.  Added idlist status
3753           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
3754           silcd/idlist.h and silcd/packet_receive.c.
3755
3756 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3757
3758         * Incoming file transfer request cannot use same session as
3759           the sending session.  This can happen when sending file to
3760           yourself.  Crashed the client on quit.  Affected file
3761           lib/silcclient/client_ftp.c.  Bug #24.
3762
3763 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3764
3765         * Implemented the draft-riikonen-precense-attrs draft and
3766           the Attribute Payload into the lib/silccore/silcattrs.[ch].
3767
3768 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3769
3770         * Distribute the SERVER_SIGNOFF notify also to local backup
3771           routers from the primary router.  The backup router may not
3772           have the signing of local server directly connected and need
3773           to know about the signoff.  Affected file silcd/server_util.c.
3774
3775         * Use the primary router as the origin of the locally connected
3776           server when it is disconnecting from the backup router since
3777           that's where it really is coming from.  Now the clients from
3778           the disconnecting server are removed correctly and "shadow"
3779           clients are not left to the backup router.  Affected file
3780           silcd/server.c.
3781
3782 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3783
3784         * If normal server is standalone and found existing but disabled
3785           channel, do not re-create the channel since it creates
3786           duplicate same channels.  Affected file silcd/server.c.
3787
3788         * Added anonymous client connections support to server.  New
3789           "anonymous" configuration option to ConnectionParams section
3790           added.  If set to true, the username and hostname information
3791           of the client will be scrambled and anonymous user mode is
3792           set automatically to the user.  Affected files are
3793           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3794
3795 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3796
3797         * In JOIN notify handling, mark that the cache entry of the
3798           client cannot be expired.  Can cause crashes on normal
3799           server (asserts client->channels).  Affected file is
3800           silcd/packet_receive.c.
3801
3802         * From now on distribution versions are used as protocol versions
3803           instead of by default using the Toolkit base version as protocol
3804           version.  Affected file prepare.
3805
3806         * Do not set the locally resolved hostname for local client
3807           entry but take what server sends.  This way the real hostname
3808           is showed in WHOIS for yourself.  Affected file is
3809           lib/silcclient/idlist.c and lib/silcclient/client.c.
3810
3811         * Resolve local info with IDENTIFY when connecting to server.y
3812
3813 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3814
3815         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3816           for implied search (not needed on platforms which has native
3817           pthreads library).  Use --without-pthreads to disable threads.
3818           Affected file is configure.in.pre
3819
3820         * Fixed --with-iconv on platforms which need to bypass (broken)
3821           native iconv().  Affected file is configure.in.pre
3822
3823 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3824
3825         * Moved -C option parsing in Irssi SILC client at same time
3826           as other options.  The UI was initialized earlier and caused
3827           problems on command line.  Bug #16.  Affected file is
3828           irssi/src/silc/core/silc-core.c.
3829
3830 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3831
3832         * Added global variable silc_log_timestamp that tells silclog
3833           wether to print or not the timestamp in the logging files.
3834           Affected file lib/silcutil/silclog.[ch].
3835
3836         * Added silcd configuration option Timestamp in the Logging
3837           section.  Affected file silcd/serverconfig.[ch],
3838           doc/example_silcd.conf.in.
3839
3840 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3841
3842         * Fixed fingerprint checking to check for entirely empty
3843           fingerprint instead of two first bytes when determining
3844           if it is set.  Bug #18.  Affected file silcd/command.c.
3845
3846         * Fixed duplicate PKCS name registering to not allow it.
3847           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3848
3849 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3850
3851         * Conditionalize non-gcc compiler optimizations for various
3852           platforms, enable those commented out.  Cleanups.
3853           Affected file lib/silcmath/mpi/configure.in
3854
3855 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3856
3857         * silc_rng_exec_command() left zombie processes if command
3858           didn't generate any output.  Affected file
3859           lib/silccrypt/silcrng.c
3860
3861 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3862
3863         * Rewrote iconv checking, introduce --with-iconv for systems
3864           which rely on libiconv.  Check if iconv() provided by libc
3865           is good enough, otherwise demand libiconv.  Affected file
3866           configure.in.pre
3867
3868 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3869
3870         * Search for ldopen() also in libc.  This enables SIM support
3871           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3872           file configure.in.pre
3873
3874 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3875
3876         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3877           This fixes prepare on *BSD systems.  Affected file
3878           configure.in.pre
3879
3880 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3881
3882         * More fixed for not having purge timeout for global clients
3883           that are on channel.  Affected files silcd/command_reply.c
3884           and server_util.c.
3885
3886         * Fixed the rekey protocol to work with backup router connections.
3887           Rekey packets are now allowed on disabled connections as
3888           well.  Affected files silcd/packet_send.c and server.c.
3889
3890         * Do not switch to be as backup router when shutting down and
3891           closing the primary connection.  Affected file silcd/server.c.
3892
3893         * Fixed memory leaks in backup router deleting.  Added
3894           silc_server_backup_free to free all data during shutdown of
3895           server.  Affected files silcd/server_backup.[ch].
3896
3897 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3898
3899         * Do not process commands if the sock->user_data is NULL.
3900           Affected file silcd/command.c.
3901
3902 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3903
3904         * Fixed buffer overflow and security problems (loosing bits
3905           in CFB encryption) in SILC RNG.  Problems reported by
3906           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3907
3908 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3909
3910         * Added yet more checks that client is not expired on global
3911           list if it is on channels.  Affected file is
3912           silcd/command_reply.c.
3913
3914 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3915
3916         * Merged c0ffee's MIME signal patch which adds support for
3917           sending also MIME messages in Irssi SILC Client, and handling
3918           received MIME messages in a signal (and perhaps doing something
3919           to non-textual MIME messages).
3920
3921 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3922
3923         * Fixed pending command deletion in server and client library
3924           to check the whole list instead of breaking after first found.
3925           The affected files are silcd/command.[ch] and
3926           lib/silcclient/command.[ch].
3927
3928 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3929
3930         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3931           secret or private, otherwise it's possible to find out
3932           whether a secret channel exists or not.  Affected file
3933           silcd/command.c.
3934
3935         * If CMODE change fails during the mode setting, assure that
3936           the old mode mask is set for the channel back.  Affected
3937           file silcd/command.c.
3938
3939         * Fixed passphrase saving on +a channel on normal server
3940           after successful JOIN command.  Affected file silcd/command.c.
3941
3942 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3943
3944         * Remove server/router operator privileges in DETACH command,
3945           since it's possible to resume to server where these
3946           privileges would not be allowed for the client.  Affected
3947           file silcd/command.c.
3948
3949         * Do not set to wait for backup in rehash of the server.
3950           Affected file silcd/server.c.
3951
3952         * Do not check listener sockets when counting how many
3953           socket connections we have.  Affected file is
3954           silcd/server_util.c.
3955
3956         * Do not announce disconnected clients that are remaining
3957           in history (for WHOWAS).  This is because SIGNOFF notify
3958           for these has been sent earlier already.  Affected file
3959           silcd/server.c.
3960
3961 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3962
3963         * Buffer overflow with CUMODE command's mode->mode character
3964           conversion.  Reported by Ville Räsänen.  Affected file
3965           lib/silcutil/silcutil.c.
3966
3967 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3968
3969         * Allow heartbeat packets to go disabled connections anyway.
3970           Affected files silcd/server.c and silcd/packet_send.c.
3971
3972         * Do not broadcast New Channel packets with List flag set
3973           in the packet to backup routers.  The router must check
3974           for the correctness of the packets before sending them.
3975           It is possible that router will have enforce Channel ID
3976           change and this would cause desync in the backup router.
3977           Affected file silcd/packet_receive.c.
3978
3979         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3980           are handled in list parsing.  They are not list packets
3981           anymore.  Affected file silcd/packet_receive.c.
3982
3983 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3984
3985         * Stop waiting for backup router through the timeout, not
3986           directly after backup router has arrived.  Affected file
3987           silcd/server.c.
3988
3989         * Do not re-create channel keys and send them when removing
3990           clients in server shutdown.  Affected files are
3991           silcd/server_internal.h and silcd/server_util.c.
3992
3993         * Notify distribution to backup routers was missing from
3994           the silc_server_send_notify_dest function which caused
3995           desyncing problems with backup router.  Affected file is
3996           silcd/packet_send.c.
3997
3998         * The client's channel removing was working wrong on
3999           backup router.  It assumed that it doesn't know global
4000           information but backup router does know.  For this reason
4001           it could remove channel when it wasn't supposed to do that.
4002           Affected file silcd/server.c and silcd/server_util.c.
4003
4004 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4005
4006         * Stop for a couple seconds after badkup router has become
4007           primary router.  Affected file silcd/server.c.
4008
4009         * Added silc_server_remove_servers_by_server, which is used
4010           to remove servers originated from some other server.  Also
4011           clients of those servers can be removed too.  Affected file
4012           silcd/server_util.[ch].
4013
4014         * When removing clients after a server has signed of remove
4015           also all servers behind that server (unless they are known
4016           to be available locally), and send SERVER_SIGNOFF for each
4017           of the server separately.  Also the signed off clients are
4018           sent now separately per signed off server.  The affected files
4019           are silcd/server.c and silcd/server_util.[ch].
4020
4021         * All servers added with silc_idlist_add_server must always
4022           have both "router" and "connection" pointers set.  Otherwise,
4023           bad server entries may be left around in the cache.
4024           Affected file silcd/command_reply.c.
4025
4026         * Do not create the channel key in NEW_CHANNEL packet
4027           processing if the channel is empty.  Affected file
4028           silcd/packet_receive.c.
4029
4030         * Completed backup router support for standalone routers.
4031           Supports also servers in the cell that do not use the backup
4032           at all.
4033
4034 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4035
4036         * Fixed a bug in silc_string_regexify which did not add '^'
4037           at the start of each string, and thus the matching was
4038           not explicit.  For example ban list iikone@*!*@* would
4039           match also "priikone", which is wrong, it would have to be
4040           *iikone@*!*@* to match also "priikone".  Affected
4041           file lib/silcutil/unix/silcunixutil.c.
4042
4043 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4044
4045         * Enable all local server connections before updating client
4046           caches when we've become backup router.  Otherwise, signoff
4047           packets may not reach the clients.  Affected files are
4048           silcd/server.c and silcd/server_util.[ch].
4049
4050         * Fixed a bug in version string parsing which could crash
4051           the program with specially formatted version string.
4052           Bug reported and patch provided by Ville Räsänen.  Affected
4053           file lib/silcutil/silcutil.c.
4054
4055         * Handle the disconnection immediately when DISCONNECT
4056           packet is received in server.  Affected file silcd/server.c.
4057
4058         * Primary router now waits a short time (10 seconds) for
4059           backup router connection before accepting any other
4060           connection (except local).  Affected file silcd/server.c,
4061           serverconfig.[ch].
4062
4063         * Fixed a crash in client libary in NICK_CHANGE notify when
4064           NICK_CHANGE arrived for client entry we are resolving
4065           currently.  Affected file lib/silcclient/client_notify.c.
4066
4067         * Call the sconn->callback completion even if error had
4068           occurred.  Start reconnecting always if connection to
4069           primary router fails during backup router protocol.
4070           Affected files silcd/server.c and server_backup.c.
4071
4072 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4073
4074         * Added functions silc_server_send_opers and
4075           silc_server_send_opers_notify to send packets stricly
4076           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
4077           to send variable argument notify to operators.
4078           Affected files silcd/packet_send.[ch] and silcd/server.h.
4079
4080         * Removed UMODE rights checking with UMODE_CHANGE notify.
4081           Affected file silcd/packet_receive.c.
4082
4083         * Server/router operator now receives notify when network
4084           switches to backup router and when it resumes the use of
4085           primary router.  Affected file silcd/server.c and
4086           silcd/server_backup.c.
4087
4088         * Fixed the updating of client information after backup
4089           resuming protocol is over; update all except local clients
4090           to the new primary router.  The affected file is
4091           silcd/server_util.c.
4092
4093         * Added support for closing active connections in rehash
4094           that were unconfigured by the user.  Supports currently
4095           closing server and router connections.  Affected file
4096           silcd/server.c.
4097
4098         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
4099
4100 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4101
4102         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
4103           is NULL since seems that on some platforms NULL is allowed
4104           and on some it's not.  Fallback encoding is used instead.
4105           Affected file lib/silcutil/silcstrutil.c.
4106
4107         * Fixed statistics updating for incoming server connection
4108           which could cause problems when re-connecting.  Affected
4109           file silcd/server.c.
4110
4111         * Preliminary backup router support for standalone router
4112           added.  Affected files in silcd/.
4113
4114         * Mark server connections in backup router disabled before
4115           and after backup protocol.  Affected file is
4116           silcd/server_backup.c.
4117
4118         * Added support for reconnecting to remote server connection
4119           even if the protocol fails, and if the configuration wants
4120           us to keep trying to connect anyway.
4121
4122           Server connection is not allowed to backup router if
4123           backup router does not have connection to primary router yet.
4124
4125           Affected file is silcd/server.c.
4126
4127 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4128
4129         * Added silc_client_udpate_server function to update changed
4130           server info.  Affected file lib/silcclient/idlist.[ch].
4131
4132         * Added check for server entries that are being resolved when
4133           notify is received.  If being resolved, handle the received
4134           notify only after it's resolved so that all notifys are
4135           handled in same order as received from the server.
4136
4137           Added similar resolver check to channel entries.  Every
4138           notify that cause resolving of any information that affects
4139           channel entry marks the channel entry in waiting state.
4140           After whatever resolving is over the waiters are signalled
4141           and only then the notifys are handled in the same order
4142           as delivered from the server.
4143
4144           Affected files are lib/silcclient/idlist.[ch], and
4145           client_notify.c.
4146
4147         * Fixed KILLED notify handling in normal server.  Affected
4148           file silcd/packet_receive.c.
4149
4150         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
4151           is locally connected, or was locally connected (but may
4152           be detached and connection is not active).  Added also
4153           SILC_IS_LOCAL for checking this status.  Affected files
4154           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
4155           silcd/server.c and silcd/server_internal.h.
4156
4157 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4158
4159         * Don't send or handle TOPIC_SET if topic is already set and
4160           is same as being set.  Affected files silcd/command.c and
4161           silcd/packet_receive.c.
4162
4163         * Fixed CMODE change rights checking to work correctly when
4164           removing modes by operator.  Affected file is
4165           silcd/server_util.c.
4166
4167         * Fixed some handling with New Channel packet in router and
4168           fixed some CMODE_CHANGE notify handling in server and router.
4169           Affected file is silcd/packet_receive.c.
4170
4171         * Changed "disconnect" client operation to include the
4172           reason of the disconnection and optional disconnection
4173           message.  Affected file lib/silcclient/silcclient.h.
4174
4175         * Made the compilation of lib/contrib/ stuff conditional.
4176           Affected files configure.in.pre, lib/contrib/Makefile.am.
4177
4178 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4179
4180         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
4181           to the sender of the notify too, to avoid situation where two
4182           notifys are in the network at the same time going to oppsite
4183           directions.  Affected file silcd/packet_receice.c.
4184
4185 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4186
4187         * Delete the client from channel even if the cilent->id is
4188           NULL.  It was possible that client was deleted without
4189           removing from channels (theoretically at least).  Affected
4190           file silcd/server.c and silcd/server_util.c.
4191
4192         * Free the client data too when resuming is not successful.
4193           Affected file silcd/packet_receive.c.
4194
4195         * Merged some code from c0ffee's silc-plugin.  Affected files
4196           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
4197
4198         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
4199           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
4200           to the primary router connection, the other one returns
4201           TRUE if packet must be broadcasted to network.
4202
4203         * All notifys that are destined to primary router (to network)
4204           are now automatically sent to backup routers even if the
4205           router is standalone (and has backup router).  Affected files
4206           in silcd/.
4207
4208         * Added --without-irssi and --without-silcd configuration
4209           options for disabling the compilation of these applications.
4210           Affected file configure.in.pre and prepare.
4211
4212 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4213
4214         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
4215           UTF-8 encoding and decoding.  Added also new encodings
4216           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
4217
4218           Added also SILC_STRING_LANGUAGE which is language and charset
4219           specific encoder and decoer for those platforms that support
4220           iconv().  It can convert the UTF-8 to and from the locale
4221           specific character set.
4222
4223           Affected file lib/silcutil/silcstrutil.[ch].
4224
4225         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
4226
4227         * Added function silc_get_command_name to the file
4228           lib/silcutil/silcutil.[ch].
4229
4230         * Improved the server debug output a bit.  Affected files are
4231           in silcd/.
4232
4233 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4234
4235         * Save the channel passphrase when received succesful JOIN
4236           command reply from router, on normal server.  Otherwise
4237           joinig +a channels from normal server is not possible.
4238           Affected file silcd/command.c.
4239
4240         * Fixed a bug in TOPIC_SET notify handling.  The notifier
4241           may be other than client too, like server or channel.
4242           It expected it to always be only client and ignored the
4243           notify.  Affected file silcd/packet_recieve.c.
4244
4245         * Removed some (unnecessary) debug printing from
4246           lib/silccore/silcid.c and lib/silccore/silcargument.c.
4247
4248         * Do not force CMODE_CHANGE when server is announcing new
4249           channel.
4250
4251           Router announces stuff only after server reannounces channel
4252           after CHANNEL_CHANGE notify.
4253
4254           These fixes optimizes the announcing procedure, and perhaps
4255           fixes some problems too.  Affected file silcd/packet_receive.c.
4256
4257         * Fixed SERVER_SIGNOFF sending to local clients.  It was
4258           totally broken and sent the notify to all local clients,
4259           instead of only to those that was on same channel as the
4260           signing off clients.  Affected file silcd/server_util.c.
4261
4262         * Added -D option to server.  It can be used to give debug
4263           level.  The levels are from 0 - 99, and are predefined for
4264           smooth server debugging.  (see silcd.c for the predefined
4265           levels).  Affected file silcd/server.c.
4266
4267 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4268
4269         * Fixed a bug in Irssi SILC client to close the connection
4270           properly when disconnecting from server.  Affected file
4271           irssi/src/silc/core/client_ops.c.
4272
4273 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4274
4275         * When authenticating as founder during JOIN command, check
4276           that the one authenticating becomes the only founder on the
4277           channel.  Affected file silcd/command.c.
4278
4279         * Better checking for founder mode setting when CUMODE_CHANGE
4280           notify is received.  Affected file silcd/packet_receive.c.
4281
4282         * Close all connections when shutting down the server by sending
4283           DISCONNECT packet.  Close all listeners too when shutting
4284           down the server.  Affected file silcd/server.c.
4285
4286         * Handle DISCONNECT packet correctly in client library by
4287           calling the "disconnect" client operation.  Affected file
4288           lib/silcclient/client.c.
4289
4290         * Handle local errors correctly during resuming.  Affected
4291           file lib/silcclient/client.c.
4292
4293 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4294
4295         * The log file is not dupped internally anymore in
4296           lib/silcutil/silclog.c.  Fixed memory leaks too.
4297
4298         * The scheduler now dispatches all pending timeout tasks
4299           when it is uninitialized with silc_schedule_uninit.
4300           Affected file lib/silcutil/silcschedule.c.
4301
4302 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4303
4304         * Added --enable-stack-trace option to configure.  Added
4305           memory allocation stack trace support.  Added files
4306           lib/silcutil/stacktrace.[ch].  Affected files are
4307           lib/silcutil/silcmemory.[ch].
4308
4309         * Fixed memory leaks from libraries and server.  Affected
4310           files around the tree.
4311
4312         * Reverted back a fix made to CUMODE which broke it.
4313           Affected file silcd/command.c.
4314
4315 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4316
4317         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
4318           core library, and implemented it.  All textual messages SHOULD
4319           use this flag and the message MUST be UTF-8 encoded.
4320           All text messages sent by Irssi SILC client are now UTF-8
4321           encoded (regardless whether the terminal supports UTF-8 or not).
4322           Affected files are lib/silccore/silcchannel.h,
4323           irssi/src/silc/core/silc-servers.c, silc-channels.c and
4324           client_ops.c.
4325
4326 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4327
4328         * Added lots of new statistics updating that was missing from
4329           the server and router code.  Affected files in silcd/.
4330
4331         * Sending SIGUSR1 signal to server now dumps the current
4332           server statistics into /tmp directory.  Affected file is
4333           silcd/silcd.c.
4334
4335         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
4336           the SILC Hash Interface also.  Added new functions
4337           silc_hash_get_name, silc_hash_init, silc_hash_update and
4338           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
4339
4340 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4341
4342         * Added some better info printing for client during connecting.
4343           Affected file silcd/server_util.c.
4344
4345         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
4346           to silence a user on a channel.  Affected files are
4347           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
4348           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
4349           and silcd/packet_receive.c.
4350
4351         * Fixed a fatal bug in handling of malformed command payload.
4352           Affected file silcd/command.c.
4353
4354         * Fixed a double free when announcing channel users to router.
4355           Affected file silcd/server.c.
4356
4357         * After successful authentication to channel founder mode, check
4358           that there isn't anyone else with founder mode on the channel.
4359           The one that authenticated will become founder and anyone
4360           else is demoted.  Affected file silcd/command.c.
4361
4362         * Added error printing of any error that has occurred during
4363           any command in client library.  Affected file is
4364           irssi/src/silc/core/client_ops.c.
4365
4366         * Removed some error printing from the client library and left
4367           it for the application to worry (from the error status it
4368           receives in 'command' client operation.  Affected file is
4369           lib/silcclient/command.c.
4370
4371 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4372
4373         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
4374           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
4375           Starting key agreement with itself is denied.  Affected file
4376           is lib/silcclient/client_keyagr.c.
4377
4378         * Fixed some error checkings from the SFTP library which caused
4379           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
4380           and lib/silcsftp/sftp_util.c.
4381
4382         * Added new "debug" and "debug_string" settings to Irssi SILC
4383           client which can be used to print runtime debugging on the
4384           Irssi's screen.  Available when compiled with --enable-debug
4385           option.  Affected file irssi/src/silc/core/silc-core.c.
4386
4387 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
4388
4389         * Fixed a missing variadic parameter in a function call that
4390           caused server crash when a non-allowed connection arrived.
4391           Reported by Richard Becker.  Affected file silcd/server.c.
4392
4393 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4394
4395         * Added WATCH list sending to backup routers from router.
4396           The WATCH command is sent by the router to the backup
4397           router.  Affected file silcd/command.c.
4398
4399         * Mark the backup_router flag for RouterConnection entry
4400           if the backup router stuff is defined in the config file.
4401           Affected file silcd/serverconfig.c.
4402
4403         * Fixed some backup data sending around the code to work better
4404           if the router is standalone router.  Not all places were fixed.
4405           Affected file silcd/packet_receive.c, silcd/packet_send.c,
4406           silcd/server.c.
4407
4408         * Fixed the router connecting when connecting to multiple
4409           routers.  It ignored every other router except the first
4410           one.  Affected file silcd/server.c.
4411
4412 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4413
4414         * Made the private key generation after expiration optional.
4415           If not created after expiration the old key will re-expire
4416           at a later time (and thus key pair is not necessary to
4417           change).  Affected file irssi/src/silc/core/clientutil.c.
4418
4419 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4420
4421         * The length arguments in bind() and connect() were wrong
4422           and fixed now to used SIZEOF_SOCKADDR in the
4423           lib/silcutil/unix/silcunixutil.c.
4424
4425 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4426
4427         * Fixed detach timeout handling to use Client ID and not
4428           the actual client entry which may be freed in the callback.
4429           Affected file silcd/command.c.
4430
4431 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4432
4433         * Merged c0ffee's multiple interface support patch.
4434           Affected files in silcd/.
4435
4436 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4437
4438         * Cleanup keys properly.  Affected file is
4439           irssi/src/silc/core/clientutil.c.
4440
4441 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4442
4443         * Display the user mode on the status bar.  Affected file
4444           irssi/src/silc/core/silc-expandos.c.
4445
4446 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4447
4448         * If private message key is not set, but the flag is set in
4449           the packet, ignore the packet since it cannot be decrypted.
4450           Affected file lib/silcclient/client_prvmsg.c.
4451
4452 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4453
4454         * When resuming client, remove the old client entry from
4455           the watcher list too.  Affected file silcd/packet_receive.c.
4456
4457         * Do not allow normal server to force founder mode away
4458           from router if the founder mode is already set.  Affected
4459           file silcd/packet_receive.c.
4460
4461         * Remove the client entry with watch notify types with short
4462           timeout, and not directly, so that other notifys can be
4463           retrieved too.  Affected file lib/silcclient/client_notify.c.
4464
4465         * Display notification about data messages that cannot be
4466           displayed.  Affected files irssi/src/silc/core/client_ops.c,
4467           irssi/src/fe-common/silc/module-formats.[ch].
4468
4469 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4470
4471         * Fixed the CHANNEL_CHANGE notify handling in client libary
4472           to not use freed memory.  Affected file is
4473           lib/silcclient/client_notify.c.
4474
4475         * Fixed CUMODE_CHANGE notify handling in server.  Affected
4476           file silcd/packet_receive.c.
4477
4478         * Fixed USERS command to support empty channels.  Affected
4479           file silcd/command.c.
4480
4481 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4482
4483         * Allow multiple identical pending commands to be registered
4484           in client library.  Affected file is lib/silcclient/command.c.
4485
4486         * Call the completion for resolving client information only
4487           after all resolvers has finished.  This fixes a crash in
4488           the client.  Added support for checking when the resolvers
4489           are finished.  Affected file is lib/silcclient/idlist.c.
4490
4491         * Wait by default 3 seconds before reconnecting to the server
4492           after being disconnected.  Makes the /detach command a bit
4493           more usable.
4494
4495 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4496
4497         * Check the watcher list before sending signoff notifys
4498           when closing client connection.  Affected file is
4499           silcd/server.c.
4500
4501         * Added better CMODE command rights checking.  Affected file
4502           silcd/server_util.c.
4503
4504 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4505
4506         * Fixed watcher list checking during server signoff.  It
4507           crashed the server.  Affected file silcd/server_util.c.
4508
4509         * The JOIN command reply returns now the founder's public
4510           key.  Affected file is silcd/command.c.
4511
4512         * Announce the channel mode, and the mode properties with
4513           CMODE_CHANGE notify.  Affected file silcd/server.c.
4514
4515         * Mark new channels by default disabled, untill at least
4516           one user joins the channel.  Affected file is
4517           silcd/packet_receive.c.
4518
4519 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4520
4521         * The nickname argument to watch notify can be optional.
4522           Fixes a crash in server.  Affected file silcd/packet_send.c.
4523
4524         * Remove the client entry from cache if the WATCH notify type
4525           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
4526           lib/silcclient/client_notify.c.
4527
4528         * Check the watcher list before and after changing nickname
4529           when the NICK_CHANGE notify is received.  Affected file is
4530           silcd/idlist.c.
4531
4532         * Fixed a crash in OPER and SILCOPER command sending.  Empty
4533           passphrase caused the crash.  Affected file is
4534           lib/silcclient/command.c.
4535
4536 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4537
4538         * Merged with Irssi CVS for Irssi SILC client.
4539
4540 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4541
4542         * Completed the protocol specifications.
4543
4544 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4545
4546         * Merged with Irssi CVS for Irssi SILC client.
4547
4548 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4549
4550         * Added the founder's public key delivery to the
4551           CUMODE_CHANGE notify type as well.  Updated the protocol
4552           specs and the code.  Affected files are silcd/packet_send.[ch],
4553           silcd/packet_receive.c and silcd/command.c.
4554
4555 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4556
4557         * Added silc_pkcs_public_key_copy function into the
4558           lib/silccrypt/silcpkcs.[ch].
4559
4560         * Remove the `iv' from the SilcChannelEntry since we can
4561           live without it.  Affected files are silcd/idlist.h and
4562           silcd/packet_receive.c.
4563
4564         * Added support for sending the founder's public key in
4565           the CMODE_CHANGE notify packet in the server.  Affected
4566           files are silcd/packet_send.[ch], silcd/packet_receive.c,
4567           silcd/command.c and silcd/server.c.
4568
4569         * Changed the FOUNDER_AUTH authentication to use only
4570           public key authentication as defined by new protocol
4571           specs.  Passphrase authentication with that mode cannot
4572           be used anymore.  It is now possible to reclaim founder
4573           mode from any server in the network.  Affected files are
4574           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
4575
4576         * Added permanent channels support by making the channel
4577           permanent when FOUNDER_AUTH mode is set on the channel.
4578           The channel will not be destroyed even if channel is empty
4579           when that mode is set.  Protocol TODO #17.  Affected
4580           files are silcd/server.[ch], server_util.[ch],
4581           silcd/command.c, silcd/packet_receive.c and
4582           lib/silcclient/command.c.
4583
4584 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4585
4586         * Added reference counter to the command reply context in
4587           the client library.  Affected files are
4588           lib/silcclient/command_reply.[ch].
4589
4590 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4591
4592         * Fixed rekey protocol with PFS in the client library.
4593           Affected file is lib/silcclient/protocol.c.
4594
4595         * Added support for list of errors in client library
4596           command reply handling.  Affected file is
4597           lib/silcclient/command_reply.c.
4598
4599         * Defined that the WHOIS and IDENTIFY commands can send
4600           list of errors.  Updated the protocol specs.  Protocol
4601           TODO #2.
4602
4603         * Added support for sending list of errors to WHOIS and
4604           IDENTIFY commands in server.  Added support for receiving
4605           list of errors in server.  Affected files are
4606           silcd/command.c and silcd/command_reply.c.
4607
4608         * Fixed client info resolving on LEAVE command in client
4609           library to not crash.  Affected file is
4610           lib/silcclient/client_notify.c.
4611
4612 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4613
4614         * Defined that the NICK command replies with thew changed
4615           nickname too, to make the nickname changing simpler at
4616           the client's end.  Updated protocol specs and the code
4617           in client and server.  Affected files are
4618           silcd/command.c, lib/silcclient/command_reply.c and
4619           lib/silcclient/command.c.
4620
4621 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4622
4623         * Added `Compressed' packet flag to indicate that the packet
4624           payload is compressed by the sender.  Updated the protocol
4625           specs and the core library.  The compression still is not
4626           implemented in the sources.  Affected file is
4627           lib/silccore/silcpacket.h.
4628
4629 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4630
4631         * Remove pending command callbacks also if the connection
4632           to the server is destroyed.  Affected file is
4633           lib/silcclient/client.c.
4634
4635 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4636
4637         * Added new QUIET channel user mode that can be used to
4638           quiet a user in a channel.  Updated the protocol specs but
4639           it wasn't implemented yet.  Protocol TODO #27.  Affected
4640           file is lib/silccore/silcmode.h.
4641
4642 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4643
4644         * Added BLOCK_INVITE user mode to be able to block incoming
4645           invite notifications.  Protoocol TODO #26.  Affected files
4646           are lib/silccore/silcmode.h, lib/silcclient/command.c and
4647           silcd/command.c.
4648
4649         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
4650           the protocol specs and the code.  Affected file is
4651           lib/silccrypt/silcpkcs.c.
4652
4653 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4654
4655         * Disconnect Payload includes now the status type.  Updated
4656           the protocol specs and the code.  Protocol TODO #25.
4657           Affected files are silcd/server.c, lib/silcclient/client.c.
4658
4659         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
4660           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
4661           Moved the silc_client_command_status_messages table to the
4662           lib/silcutil/silcutil.c and added new funtion
4663           silc_get_status_message, which deprecates function
4664           silc_client_status_message.  Affected files are
4665           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
4666           lib/silcutil/silcutil.[ch].
4667
4668 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4669
4670         * Defined that the nickname hash in Client ID MUST be from
4671           lowercase nickname.  This effectively changes nicknames in
4672           SILC to case-insensitive.  Updated the protocol specs and
4673           the code.  Affected files are lib/silcutil/silcutil.[ch],
4674           silcd/serverid.c, and silcd/idlist.c.
4675
4676         * Added new channel user modes BLOCK_MESSAGES_USERS and
4677           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
4678           code.  Affected files are lib/silccore/silcmode.h,
4679           lib/silcclient/command.c, and silcd/packet_send.c.
4680
4681         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
4682           specs and code.  Affected file lib/silccore/silcstatus.h.
4683
4684         * Added support for watch list.  It is possible to add nicknames
4685           to be watched, and when they come to network, leave network
4686           or user mode changes the watcher will be notified of this
4687           change.  Added SILC_COMMAND_WATCH command, added new
4688           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
4689           notifications.  Updated the protocol specs and implemented
4690           this to library, client and server.  Protocol TODO #21.
4691           Affected files are lib/silccore/silccomand.h,
4692           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
4693           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
4694           silcd/packet_send.[ch], silcd/packet_receive.c, and
4695           irssi/src/silc/core/client_ops.c.
4696
4697         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
4698           somebody watching you.  Updated the protocol specs and the
4699           code.  Affected files are lib/silccore/silcmode.h, and
4700           lib/silcclient/command.c.
4701
4702 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4703
4704         * Added service support to SILC protocol.  Added new command
4705           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
4706           core library.  Services are not implemented in server or
4707           client for now.  Protocol TODO #20.  Affected files are
4708           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
4709
4710         * Added SilcStatus argument to `command' client operation
4711           to return the error status when command sending fails
4712           locally.  Changed all command in client library to return
4713           correct command status.  Affected files are
4714           lib/silcclient/command.c, lib/silcclient/silcclient.h and
4715           irssi/src/silc/core/client_ops.c.
4716
4717 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4718
4719         * Added silc_mime_parse function to parse MIME headers.
4720           Affected files are lib/silcutil/silcstruti.[ch].
4721
4722         * Added MIME header parsing in Irssi SILC Client.  It displays
4723           all textual MIME objects, others it ignores.  Affected file
4724           is irssi/src/silc/core/clien_ops.c.
4725
4726 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4727
4728         * Fixed a bug in the pid writing function, which couldn't be
4729           written in a root-owned directory.
4730
4731 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4732
4733         * Defined that channel message to unknown Channel ID must
4734           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
4735           Updated the protocol specs and the code in server.  The
4736           affected file is silcd/packet_receive.c.
4737
4738 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4739
4740         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
4741           that it is used to send error notifys if error occurs during
4742           some SILC packet processing, except commands.  The error
4743           types are same as for command reply types.  Defined that
4744           if private message is sent to unknown Client ID the error
4745           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
4746           Updated the protocol specs and code.  Affected files are
4747           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
4748           lib/silcclient/client_notify.c, silcd/packet_receive.c,
4749           and irssi/src/silc/core/client_ops.c.  Renamed the
4750           SilcCommandStatus to SilcStatus.
4751
4752         * Defined the use of extra WHOIS attributes in WHOIS command.
4753           The <Requested Attributes> (defined in a separate document)
4754           can be used to request additional information about user
4755           not returned by standard WHOIS command.  Defined that server
4756           can send WHOIS command directly to client.  Client provides
4757           the requested attributes to the server.  Updated the protocol
4758           specs.  Protocol TODO #4.  Implementation is not done yet
4759           (Protocol TODO #24).
4760
4761         * Renamed function silc_client_command_status_message to
4762           silc_client_status_message.  Affected files are
4763           lib/silcclient/command_reply.[ch].
4764
4765 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4766
4767         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
4768           32 bit integers.  Updated the protcol specs and the code.
4769           Affected files are silcd/command.c and
4770           lib/silcclient/command.c.
4771
4772 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4773
4774         * Fixed a bug in library where sending a bogus authentication
4775           payload would lead to a crash.  Affected file is
4776           lib/silccore/silcauth.c.
4777
4778 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4779
4780         * Added detach_disabled and detach_timeout server config
4781           options to the server.  Affected files silcd/serverconfig.[ch],
4782           silcd/command.c and silcd/packet_receive.c.
4783
4784 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4785
4786         * Added resolve_cmd_ident field to the SilcClientEntry structure
4787           too so that if the entry is for example being resolved so
4788           another command may attach to the same pending command reply
4789           without requiring to resolve the same entry again.  Added
4790           support for adding multiple pending commands for one
4791           command idenfier.  Affected files lib/silcclient/command.[ch],
4792           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4793
4794 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4795
4796         * Defined that server receives WHOIS command reply for private
4797           and secret channels too.  Updated protocol specs and the
4798           code in server.  Affected file silcd/command.c.
4799
4800         * Defined <channel user mode list> argument to WHOIS command
4801           reply for returning user modes on the channels.  The
4802           channel list now doesn't include the user mode anymore but the
4803           actual channel mode.  Updated protocol specs and the code in
4804           client and server.  Affected files are silcd/command_reply.c,
4805           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4806           and lib/silcclient/command_reply.c.
4807
4808         * Save the channels list in WHOIS command reply in normal server
4809           so that WHOIS always shows joined channels also in normal
4810           server and not just on router.  Affected file is
4811           silcd/command_reply.c.
4812
4813 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4814
4815         * Defined that server receives USERS command reply for private
4816           and secret channels too.  Updated protocol specs and the
4817           code in server.  Affected file silcd/command.c.
4818
4819 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4820
4821         * Changed the UMODE's mode mask argument to be optional.  If
4822           not provided then the command merely returns the current mode
4823           mask to the client.  Updated protocol specs and the server.
4824           Affected file is silcd/command.c.
4825
4826         * Added SILC session detachment/resuming support.  It is possible
4827           to detach by closing the network connection and then re-connect
4828           and resume to the old client session.  Added DETACHED user
4829           mode that server will set for detached client.  Added new
4830           packet RESUME_CLIENT which is used to perform the resuming
4831           process.  Added DETACH command.  Updated the protocol specs,
4832           core library, client and server.  Protocol TODO #22.  Very
4833           many affected files around the tree.
4834
4835 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4836
4837         * Changed the CMODE's mode mask argument to be optional.  If
4838           not provided then the command merely returns the current mode
4839           mask to the client.  Updated protocol specs and the server.
4840           Affected file is silcd/command.c.
4841
4842         * Changed the Killer's Client ID in KILLED notify to be just
4843           any ID payload since router server is allowed to kill as well.
4844           Updated protocol specs, client libary and server.  Affected
4845           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4846           and irssi/src/silc/core/client_ops.c.
4847
4848 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4849
4850         * Added new user modes ANONYMOUS for special anonymous servers
4851           that may set the mode for client, and BLOCK_PRIVMSG which
4852           client may set to block incoming private messages unless the
4853           Private Message Key flag is set (using private keys to protect
4854           private messages).  Updated protocol specs and code in client
4855           and server and core library.  Protocol TODO #23.  Affected
4856           files are lib/silccore/silcmode.h, silcd/server.[ch],
4857           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4858           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4859
4860         * Added new channel user mode BLOCK_MESSAGES which the client
4861           may set to itself to tell server not send channel messages.
4862           Other packets such as channel key packets are still sent.
4863           Protocol TODO #23.  Updated the protocol specs, client and
4864           server.  Affected files are lib/silccore/silcmode.h,
4865           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4866           lib/silcutil/silcutil.c, silcd/command.c, and
4867           silcd/packet_send.c.
4868
4869 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4870
4871         * Redefined the Status Payload to include now two 8 bit fields,
4872           instead of one 16 bit field.  This now makes it possible to
4873           send list of errors.  Updated the protocol specs and the code
4874           in core library, client library and server.  Protocol TODO #1.
4875           Affected files are lib/silccore/silccommand.[ch],
4876           lib/silcclient/command_reply.[ch], silcd/command.c,
4877           silcd/command_reply.c and silcd/packet_receive.[ch].
4878
4879 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4880
4881         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4882           must be handled by the application and should tell the application
4883           that an error message was already printed, and it should print the
4884           config coords (line, filename, ...).  Affected files are
4885           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4886
4887         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4888           server config parsing code more readable.
4889
4890           Fixed a bug in the fetch_logging() config callback.
4891
4892           Affected files is silcd/serverconfig.c.
4893
4894         * Drop root privileges when started in foreground.  Don't drop them
4895           if debugging also.  Affected file is silcd/silcd.c.
4896
4897 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4898
4899         * Added more IM-like features by introducing new user modes
4900           for setting various presence information.  Added new modes:
4901           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4902           specs and code.  Protocol TODO #19. Affected files are
4903           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4904           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4905
4906 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4907
4908         * Added STATS command to the protocol after all, to return
4909           various statistical information about the network.  It can
4910           be used by clients to retrieve statistical information, and
4911           servers may use it to to fetch cell and network wide
4912           statistics from router.  Updated the protocol specs and
4913           implemented it to the server.  Protocol TODO #16.
4914           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4915           silcd/command_reply.[ch].
4916
4917 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4918
4919         * The LIST command reply in client libary now adds new channel
4920           entry if the returned channel doesn't exist yet in cache,
4921           and returns the channel entry to the application in the
4922           command_reply client operation.  Affected file is
4923           lib/silcclient/command_reply.c.
4924
4925         * Changed the channel message payload's MAC generation to
4926           include the IV in the MAC as well.  This way all relevant
4927           parts of the channel message payload are authenticated also
4928           with the channel message MAC (and not only by packet MAC).
4929           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4930           Affected file is lib/silccore/silcchannel.c.
4931
4932         * Fixed the SKE to save the remote version, since the
4933           silc_ske_parse_version mistakenly checked wrong version,
4934           after it replaced the start payload.  Affected files are
4935           lib/silcske/silcske.[ch].
4936
4937 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4938
4939         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4940           string utility functions.  Added there also new functions
4941           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4942           Affected files lib/silcutil/silcstrutil.[ch].
4943
4944         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4945           files are lib/silcutil/silcstrutil.[ch].
4946
4947         * Defined that the security property fields in SKE SHOULD be
4948           UTF-8 encoded, defined that version string MUST be US-ASCII
4949           encoded, defined that passphrases sent in connection
4950           authentication protocol MUST be UTF-8 encoded.  Implemented
4951           these to the client and server.  Defined also that other
4952           passphrases sent in the protocol MUST be UTF-8 encoded.
4953           Affected files are lib/silcske/silcske.c,
4954           lib/silcclient/protocol.c, silcd/protocol.c,
4955           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4956
4957         * Changed the silc_client_close_connection interface to not
4958           need the SilcSocketConnection which should not be visible
4959           to application.  Affected files are lib/silcclient/client.c
4960           and lib/silcclient/silcclient.h.
4961
4962         * Rewrote the text for Private Message Key Payload in the
4963           protocol specification.  Protocol TODO #11.
4964
4965 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4966
4967         * Upgraded the protocol version to 1.1, updated protocol specs
4968           and software.
4969
4970         * Added the nickname as new argument to NICK_CHANGE notify and
4971           added it to protocol specs and implemented it to client and
4972           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4973           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4974           lib/silcclient/client_notify.c.
4975
4976         * Added the killer's client ID to the KILLED notify and added
4977           it to protocol specs and implemented it to client and server.
4978           Protocol TODO #13.  Affected files are silcd/command.c,
4979           silcd/packet_receive.c, packet_send.[ch],
4980           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4981           The killer's client entry is now returned to application in
4982           the `notify' client operation.
4983
4984         * Fixed the Max Argument fields that had too large value set
4985           in the protocol specs.  Protocol TODO #14.
4986
4987         * Added the LEAVE command reply to return the ID of parted
4988           channel.  Updated protocol specs and implemented it to the
4989           client and server.  Protocol TODO #15.  Affected files are
4990           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4991           entry is now returned to application in the `command_reply'
4992           client operation.
4993
4994         * Rewrote the version SKE version checking in client libary
4995           and in server to use the silc_parse_version_string.  Affected
4996           files are lib/silcclient/protocol.c, silcd/protocol.c.
4997
4998         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4999           commands that was missing it, and updated protocol specs and
5000           the server implementation.  Protocol TODO #10.  The affected
5001           file is silcd/command.c.
5002
5003         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
5004           generic reply to a generic request (REQUEST flag), and
5005           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
5006           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
5007           to define the payload for DATA flag.  Added the flags to
5008           the implementation.  Protocol TODO #9.  Affected file is
5009           lib/silccore/silcchannel.h.
5010
5011           Changed the client library to return the message length
5012           to application as well in the channel_message and private_message
5013           client operations.  Affected files are
5014           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
5015           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
5016           and lib/silcclient/client_ops_example.c.
5017
5018         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
5019           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
5020           the channel.  Updated protocol specs and impelemented this
5021           to client and server.  Protocol TODO #6.  Affected files are
5022           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
5023           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
5024
5025           Added new options m and M to CMODE command in Irssi SILC
5026           client to set these modes.
5027
5028         * Deprecated all administrative commands from SILC protocol
5029           since they are highly implementation specific commands.
5030           Updated protocol specs.  Moved the old commands in
5031           implementations to private range of command types.  Affected
5032           files are silcd/command.c, lib/silcclient/command.c and
5033           lib/silcclient/command_reply.c.  Protocol TODO #8.
5034
5035         * Fixed a bug in server where sending unknown command crashes
5036           the server.  Affected file silcd/command.c.
5037
5038 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
5039
5040         * Added SILC_PROTOCOLVERSION macro to check protocol version
5041           of a socket connection.  The affected file is
5042           lib/silcutil/silcsockconn.h.
5043
5044         * Added better error logging in rekey protocol.  Affected file
5045           silcd/protocol.c.
5046
5047         * Do not check public key types in SKE during rekey.  Affected
5048           file lib/silcske/payload.c.
5049
5050         * Fixed the rekey protocol with PFS, which was totally broken.
5051           Affected file silcd/protocol.c.
5052
5053 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
5054
5055         * Some client implementations quit network by doing first LEAVE
5056           and then immediately SIGNOFF (like Bombyx).  We now do check
5057           after a short time after LEAVE notify and check whether the
5058           client is still valid after LEAVE, and if not we remove it from
5059           cache.  Affected file is lib/silcclient/client_notify.c.
5060
5061 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
5062
5063         * Merged version 1.1.4 of zlib. Even if it not currently in use,
5064           it's good not to have security holes here.
5065
5066         * Fixed a negative refcount situtuation for the config context.
5067           Affected file is silcd/serverconfig.c.
5068
5069 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
5070
5071         * ROBOdoc documented lib/silcutil/silcutil.h.
5072
5073 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5074
5075         * Optimized even more the SilcPacketContext structure.  Now
5076           totally saved 16 bytes of memory per context after optimization.
5077           Affected files are lib/silccore/silcpacket.[ch].
5078
5079         * Made strict checks for valid SILC IDs.  Affected file is
5080           lib/silccore/silcid.c.
5081
5082 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5083
5084         * Changed the object argument for silc_cipher_register,
5085           silc_hash_register, silc_hmac_register and silc_pkcs_register
5086           to const.  Affected files are lib/silccrypt/silccipher.[ch],
5087           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
5088
5089         * Changed the silc_get_username and silc_get_real_name to
5090           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
5091
5092         * Fixed the Irssi SILC Client to use the silc_get_username and
5093           silc_get_real_name insted of glib routines since the glib
5094           routines only corrupt stack.  Fixes the Irssi SILC to work in
5095           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
5096
5097         * Fixed the Irssi to not use g_get_home_dir since it crashes
5098           or returns garbage on cygwin and corrupts stack.  Added function
5099           get_home_dir to Irssi routines.  Affected files are
5100           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
5101
5102 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5103
5104         * Made some structure optimizations.  SFTP memory FS MemFSEntry
5105           entry structure.  Optimized SilcTask structure.  Optimized
5106           SilcPacketContext structure.
5107
5108           Affected files lib/silcsftp/sftp_fs_memory.c,
5109           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
5110
5111 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5112
5113         * And yet again reverted back the config thing since Johnny
5114           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
5115           and silcd.c.
5116
5117         * Fixed memory leaks from config object.  Affected files are
5118           silcd/serverconfig.[ch].
5119
5120         * Added support for adding new connections to the server in rehash.
5121           After rehash they take effect.
5122
5123           Added support for changing the maximum allowed connections in
5124           rehash.  The number can grow but going smaller is not supported.
5125
5126           Added function silc_server_num_sockets_by_remote to the
5127           silcd/server_util.[ch].
5128
5129           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
5130
5131 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
5132
5133         * Added preliminary checking during config parsing for a valid
5134           public/private key and removed further checks in the code.
5135           Affected files are silcd/serverconfig.[ch], server.c.
5136
5137         * Moved functions silc_server_drop() and silc_server_daemonise()
5138           from server.c to silcd.c since they are stricly related to
5139           the application activity.
5140
5141         * Reverted a small part of the automatic ref/unref since
5142           it caused a double unref in some situations.  Affected
5143           files are silcd/silcd.[ch], server.c, serverconfig.c.
5144
5145         * Added some .cvsignore files in the lib directory.
5146
5147 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5148
5149         * Fixed silc_net_gethostbyaddr to correctly resolve by
5150           address.  Affected file lib/silcutil/silcnet.c.
5151
5152         * Fixed the notify relaying to client.  The HMAC to be used
5153           with relayed packets ws wrong and caused decryption failure
5154           at the client end.  Affected file is silcd/packet_receive.c.
5155
5156 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5157
5158         * Created new branch silc_protocol_1_0_branch.
5159
5160         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
5161
5162         * Changed the silc_server_config_* routines to be SilcServer
5163           independent.  They are now officially application specific code
5164           and not part of generic server implementation.  Affected files
5165           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
5166
5167 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5168
5169         * Added automatic referencing of config context in the
5170           silc_server_config_alloc, and automatic unreferencing in the
5171           silc_server_config_destroy.  Affected files are
5172           silcd/serverconfig.[ch], silcd/silcd.c.
5173
5174         * Fixed the silc_log_quick handling in the logging routines.
5175           It didn't log quickly when it was TRUE.  Affected file is
5176           lib/silcutil/silclog.c.  Also the flush delay was set even
5177           if it was 0 in config file.  Affected file is
5178           silcd/serverconfig.c.
5179
5180         * Added support for changing key pair of the server in rehash.
5181           Affected file silcd/server.c.
5182
5183 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5184
5185         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
5186           too early, before getting the channel entry.  Affected file
5187           is silcd/packet_receive.c.
5188
5189 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5190
5191         * Added functions silc_server_config_[ref/unref], these are used
5192           to prevent that the config object is destroyed.
5193
5194           No longer directly affect global variables silc_log_quick and
5195           silc_log_delay, they are first cached inside the config object
5196           and then applied with silc_server_config_setlogfiles().
5197
5198           silc_server_config_set_defaults() is now internal to
5199           serverconfig.c, there are no reasons to show this internal stuff
5200           to the server.
5201
5202           Affected files are silcd/serverconfig.[ch].
5203
5204         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
5205           fprintf's to stderr, since some code may be executed again after
5206           the server went into the background.  Affected files are
5207           silcd/server.[ch].
5208
5209         * Added rehash support. Added function silc_server_rehash() that
5210           will perform all the basic tasks of the rehashing procedure.
5211
5212         * Added command line option `-x, --hexdump'. This will enable the
5213           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
5214           The option `--hexdump' implies `--debug'.
5215
5216         * Fixed a bad bug in the logging APIs (silcutil library) where
5217           the application would crash after calling silc_log_reset_all().
5218
5219 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5220
5221         * Fixed the KICKED notify handling in client library to
5222           correctly remove the channel and all entries from the
5223           channel when I was kicked.  This bug crashed the client.
5224
5225           Fixed yet another but in KICKED notify handling to remove
5226           the kicked client correctly from the channel.
5227
5228           Affected file is lib/silcclient/client_notify.c.
5229
5230         * Fixed a minor bug in looking up correct client entry
5231           in KICKED notify in server.  Affected file is
5232           silcd/packet_receive.c.
5233
5234         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
5235           sources correctly to distribution.  Fixes --with-gmp option.
5236
5237         * Removed the manual rehashing from ID Cache, and changed it
5238           to use the SILC Hash Table's auto rehash feature.  Affected
5239           file is lib/silccore/silcidcache.c.
5240
5241 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5242
5243         * Fixed a bug in the silc_client_nickname_format function that
5244           handles the multiple same nickname formatting.  Two clients
5245           with same nickname caused problems after the first one left
5246           and rejoined.  It didn't format the nickname correctly.
5247           Affected file is lib/silcclient/idlist.c.
5248
5249 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5250
5251         * Don't change the topic if olod topic is same as new one.
5252           Affected file is silcd/packet_receive.c.
5253
5254 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5255
5256         * Added cross-reference support to the SILC Documentation
5257           generator.  All types across all HTML files are now cross-
5258           referenced.  Affected files util/robodoc/generator.c and
5259           scripts/silcdoc/silcdoc.
5260
5261         * Added file lib/silcutil/silctypes.h to include all the
5262           arithmetic type definitions and some macros.  Removed
5263           includes/bitmove.h and moved macros to silctypes.h.
5264
5265 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5266
5267         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
5268
5269 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5270
5271         * Added `type' argument to silc_id_payload_parse_id function which
5272           now returns the type of the ID to the sent pointer.  Affected
5273           file is lib/silccore/silcid.[ch].
5274
5275         * Added check for CMODE_CHANGE notify type that mode change is
5276           allowed by the sender.  Affected file silcd/packet_receive.c.
5277
5278         * Added check for CUMODE_CHANGE notify type that mode change is
5279           allowed by the sender.  Affected file silcd/packet_receive.c.
5280           Added the ID type as CUMODE_CHANGE notify type as argument
5281           to the `notify' client operation.  Affected files are
5282           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
5283
5284         * Added function silc_client_add_server to the client library.
5285           Added support for resolving also channel and server info when
5286           received unknown entity in notify packet.  Affected files are
5287           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
5288
5289         * Added function silc_command_get_status to return the command
5290           status from the command reply's argument payload.  Affected files
5291           are lib/silccore/silccommand.[ch].
5292
5293         * Added check for KICKED notify type that the kicking is
5294           allowed by the client.  Affected file silcd/packet_receive.c.
5295
5296         * Created function silc_get_input which can be used to get input
5297           (echo on or off) from user on command line.  Affected files are
5298           lib/silcutil/silcutil.[ch].
5299
5300 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5301
5302         * Optimized silc_server_packet_relay_to_channel function.
5303           Added new function silc_channel_message_payload_encrypt which
5304           can be called directly if channel message payload needs to
5305           be encrypted and is already encoded (no need to call _encode
5306           function).  Packet relaying is now done by router without any
5307           extra memory allocations.  Affected files are
5308           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
5309           silcd/packet_send.c.
5310
5311         * Fixed the INVITE notify handling.  It took wrong arguments
5312           as invite list and invite delete.  Affected file is
5313           silcd/packet_receive.c.
5314
5315         * Added check for TOPIC_SET notify type that the topic change is
5316           allowed by the client.  Affected file silcd/packet_receive.c.
5317
5318         * Added check for INVITE notify type that inviting is allowed by
5319           the client.  Affected file silcd/packet_receive.c.
5320
5321         * Changed the silc_server_client_on_channel to return the
5322           SilcChannelClientEntry as well.  Moved the function
5323           silc_server_check_cmode_rights to server_util.[ch].
5324           Affected files are silcd/server_util.[ch], silcd/command.c.
5325
5326         * Added function silc_server_check_umode_rights to check whether
5327           changing client's user mode is allowed.  Added check for
5328           UMODE_CHANGE notify type that the umode change is allowed
5329           by the client.  Affected files are silcd/server_util.[ch],
5330           silcd/packet_receive.c and silcd/command.c.
5331
5332 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5333
5334         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
5335           ID length.  It ignored that ID can be IPv6 based as well.
5336           Affected file lib/silccore/silcpacket.h.
5337
5338         * Fixed the silc_id_id2str and silc_id_str2id to take the
5339           IPv6 address offset's into consideration.  Affecte file is
5340           lib/silccore/silcid.c.
5341
5342 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5343
5344         * Fixed the internal Unix scheduler functions to check for
5345           NULL context they may receive.  The affected file is
5346           lib/silcutil/unix/silcunixschedule.c.
5347
5348 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
5349
5350         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
5351           can specify different directory with --home command line
5352           parameter. Affected files irssi/src/silc/core/client_ops.c,
5353           clientutil.c
5354
5355         * SILC-specific commands aren't now executed if the active server
5356           isn't of SILC-type, so there won't be problems with having
5357           IRC and SILC protocol support in same client. Affected files
5358           irssi/src/silc/core/silc-channels.c, silc-servers.c,
5359           silc-commands.h
5360
5361 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5362
5363         * Improved the signal support in SILC Schedule.  Added new
5364           function silc_schedule_signal_call which is used by application
5365           to mark a signal to be called.  It is now safe to perform
5366           any kind of tasks in signal callbacks since it is guaranteed
5367           that the application specified signal callback is called
5368           after the signal is over.  Affected files are
5369           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
5370
5371 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5372
5373         * Added `name' field to SilcChannelPrivateKey to represent
5374           application given name for the key.  Moved also the context from
5375           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
5376           Added the `name' argument also to the function
5377           silc_client_add_channel_private_key.
5378
5379           Added function silc_client_current_channel_private_key to set the
5380           current channel private key in use.
5381
5382           Added "change" command to KEY command which can be used to change
5383           the current channel private key.  Bound the command also to
5384           alt+K (Alt+Shift+k).
5385
5386           Also affected files lib/silcclient/client_channel.c,
5387           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
5388
5389 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5390
5391         * Added silc_rng_get_byte_fast function in to the
5392           lib/silccrypt/silcrng.[ch].
5393
5394         * Changed the interface of silc_packet_assemble and the
5395           silc_packet_send_prepare.  If silc_packet_assmble is now
5396           called the application does not call silc_packet_send_prepare
5397           because the library will call it automatically.  These
5398           interfaces now also return a reference to the outgoing buffer
5399           which includes the assembled packet, which the application can
5400           use to encrypt the packet.
5401
5402           Affected files are lib/silccore/silcpacket.[ch],
5403           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
5404           silcd/packet_send.c, server_backup.c and packet_receive.c.
5405
5406         * Fixed a packet sending bug on very high load, where outgoing
5407           packet queue wasn't handled correctly and packets got corrupted.
5408           Affected files are lib/silcutil/*/silc*sockconn.c,
5409           lib/silcclient/client.c and silcd/server.c.
5410
5411 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5412
5413         * Added macro SILC_PACKET_DATALEN which can be used during
5414           packet assembling to check whether the data to be added to
5415           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
5416           len is truncated until it fits it.
5417
5418           Added checks for maximum length of channel message payload and
5419           private message payload also.
5420
5421           Added checks for maximum packet length in server and in
5422           client library.
5423
5424           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
5425           lib/silcclient/client.c, lib/silccore/silcchannel.c and
5426           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
5427           lib/silcclient/client_prvmsg.c.
5428
5429 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5430
5431         * Added silc_server_packet_queue_purge call to the
5432           silc_server_disconnect_remote to assure that all data in the
5433           queue before disconnecting is sent to the network.  Affected
5434           file silcd/server.c.
5435
5436 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5437
5438         * Added the deleting of server's own ID cache entry to the
5439           silc_server_free function.  Free also everything else that
5440           has been allocated in silc_server_init.  The affected file
5441           is silcd/server.c.
5442
5443 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5444
5445         * Added functions silc_parse_version_string, silc_version_to_num,
5446           and silc_ske_parse_version to parse SILC protocol style version
5447           strings.  Affected files lib/silcutil/silcutil.[ch] and
5448           lib/silcske/silcske.[ch].
5449
5450         * Added new configuration params: version_protocol, version_software
5451           and version_software_vendor to specify what version the remote
5452           host must at least be to be able to connect to server.  The vendor
5453           string can be regex matched too.  Added new function
5454           silc_server_connection_allowed to check maximum number of allowed
5455           connections, and allowed versions for incoming connections.
5456           Affected files are silcd/server.c, server_util.[ch] and
5457           serverconfig.[ch].
5458
5459 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5460
5461         * Added preliminary support for signals in scheduler.  The
5462           signals we care about are now blocked always when the scheduler
5463           is locked.  This way we can synchronise the use of signal with
5464           scheduler.  It is guaranteed that when signal occurs the scheduler
5465           is not locked, and thus new tasks can be safely added to the
5466           scheduler.
5467
5468           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
5469           to silc_schedule_internal_init and silc_schedule_internal_uninit.
5470           Added new platform specific routines
5471           silc_schedule_internal_signals_[un]block and
5472           silc_schedule_internal_signal_[un]register.
5473
5474           Added new functions to SILC Schedule API:
5475           silc_schedule_signal_[un]register.  Each signal that application
5476           is going to use should be registered to the scheduler.
5477
5478           Affected files are lib/silcutil/silcschedule.[ch],
5479           lib/silcutil/*/silc*schedule.c.
5480
5481 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5482
5483         * Check for unauthenticated client and server in the
5484           silc_server_new_client and silc_server_new_server functions.
5485           Affected file silcd/packet_receive.c.
5486
5487         * Added function silc_string_is_ascii to check whether given
5488           string is 7-bit ASCII string.  Affected files are
5489           lib/silcutil/silcutil.[ch].
5490
5491         * Added function silc_id_is_valid_server_id into the
5492           silcd/serverid.c and added checking for valid Server ID's in
5493           silc_server_new_server.  The Server ID must always be based
5494           on the server's public IP address.
5495
5496         * Added logging of DISCONNECT packet message in the server.
5497           Affected file silcd/server.c.
5498
5499 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5500
5501         * Changed all library interfaces that use Global RNG to also
5502           accept SilcRng as argument.  Affected files are
5503           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
5504           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
5505           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
5506           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
5507           lib/silccrypt/rsa.c.
5508
5509         * Added function silc_pkcs_generate_key to the
5510           lib/silccrypt/silcpkcs.[ch] for applications so that they
5511           don't need to do pkcs->pkcs->init calls anymore.
5512
5513         * Remove SilcSocketConnection from the SFTP API since it really
5514           wasn't needed there.  The application has the information
5515           saved in its contexts anyway and the SFTP layer doesn't need
5516           know about it.  Affected files lib/silcsft/silcsftp.h and
5517           lib/silcsftp/sftp_[server/client].c.
5518
5519         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
5520           The SilcSimContext is not SilcSim.
5521
5522         * Fixed possible buffer overflows in silc_id_render in the
5523           lib/silcutil/silcutil.c.
5524
5525         * On EPOC the global crypto module lists are not used at all
5526           in the crypto library.  Added support for using the constant
5527           algorithm list on EPOC.  Affected files are
5528           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
5529           silcpkcs.c.
5530
5531         * Fixed the handling of third parameter of KICKED notify, since
5532           it was mistakenly updated to SILC Protocol 1.0 even though it
5533           is to be included in 1.1.  Since it is not in 1.0 it is not
5534           mandatory, and this fix now handles it only if it is provided,
5535           and it is not error if it is not provided.  Affected file
5536           lib/silcclient/client_notify.c.
5537
5538 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5539
5540         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
5541           client.  Affected file irssi/src/silc/core/client_ops.c.
5542
5543         * Merged with Irssi 0.8.4 from irssi.org CVS.
5544
5545 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5546
5547         * Check for valid socket connection in client entries before
5548           sending any messages.  Fixes a crash, but doesn't fix some
5549           other underlaying bug that is lurking there.  Affected
5550           file silcd/packet_send.c.
5551
5552 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
5553
5554         * $usermode, $cumode and $cumode_space expandos shouldn't do
5555           anything with non-SILC server records. Affected file
5556           irssi/src/silc/core/silc-expandos.c
5557
5558 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5559
5560         * Fixed the silc_net_check_[host/local]_by_sock to support
5561           IPv6 bound sockets as well.  Now they can return IPv6 addresses
5562           as well.  Affected file lib/silcutil/silcnet.c.
5563
5564         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
5565           Affected lib/silcutil/unix/silcunixnet.c.
5566
5567         * Fixed ID rendering (at least on some platforms, not NetBSD)
5568           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
5569
5570 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5571
5572         * Added silc_hash_public_key and silc_hash_public_key_compare
5573           functions to be used with SilcHashTable.  They can be used to
5574           hash public keys and compare public keys in hash table.  Affected
5575           file lib/silcutil/silcutil.[ch].
5576
5577         * Added support for specifying multiple public keys for Client
5578           connection section in server configuration file.  This makes it
5579           possible to accept multiple public keys from same host, or to
5580           make a section that accepts any incoming host, and have the
5581           accepted public keys listed in the section.
5582
5583           Added functions silc_sever_[find/get]_public_key,  added the
5584           support for this actually to all connection sections but only
5585           the Client section is currently allowed to specify multiple
5586           public keys.
5587
5588           Affected files are silcd/server.c, server_internal.h,
5589           command.c, protocol.c, server_util.[ch], packet_receive.c.
5590
5591 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5592
5593         * Merged Irssi 0.8.2 from irssi.org CVS.
5594
5595 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5596
5597         * If silc_debug is TRUE, also output standard logging messages
5598           to stderr with the debug output.
5599
5600           Made silc_log_reset_all() flushing all channels before returning.
5601           Also fixed some documentation typos.
5602
5603           Affected files are lib/silcutil/silclog.[ch].
5604
5605 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5606
5607         * Fixed the server to check correctly the amount of connections
5608           from single host, by checking also the type of the connection.
5609           Fixed also the comparison of number of connections and number
5610           of allowed connections.  Affected files are silcd/server.c,
5611           server_util.[ch].
5612
5613 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5614
5615         * Fixed the USERS command reply to save the user's mode on the
5616           channel as well.  Fixed JOIN command reply to check whether a
5617           client is on channel already and not join it twice.  Affected
5618           file lib/silcclient/command_reply.c.
5619
5620         * Added new file silc-expandos.c into irssi/silc/core/ to return
5621           various stuff for various signal for the statusbar etc. updating.
5622           Now Irssi SILC client prints channel user modes etc. on the
5623           statusbar.
5624
5625         * The user mode (like server/router operator changes) is now shown
5626           on the Irssi SILC client's statusbar.  The affected files are
5627           irssi/src/silc/core/client_ops.c, silc-expandos.c.
5628
5629 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5630
5631         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
5632           to SILC_SCHEDULE_[UN]LOCK macros.
5633
5634         * Added more error printing to logs in server code.  Affected
5635           files silcd/server.c and silcd/protocol.c.
5636
5637         * Fixed -S option parsing in Irssi SILC Client.  Affected file
5638           irssi/src/silc/core/silc-core.c.
5639
5640         * Added silc_buffer_alloc_size function.  Affected file is
5641           lib/silcutil/silcbuffer.h.
5642
5643 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5644
5645         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
5646           constants.  Affected files in
5647           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
5648           silccipher.[ch].
5649
5650         * Changed the internal SFTP Memory FS table to const.  Affected
5651           file lib/silcsftp/sftp_fs_memory.c.
5652
5653 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5654
5655         * Fixed the buffer formatting and unformatting routines to
5656           check the size of 64 bits types with sizeof().  Affected
5657           file is lib/silcutil/silcbuffmt.c.
5658
5659 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5660
5661         * Removed 0.6.x backwards support.
5662
5663 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5664
5665         * Changed all integer type names:
5666           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
5667           to avoid collisions with other libraries using same type names
5668           as we did.
5669
5670 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5671
5672         * Added `prefer_ipv6' argument to the functions
5673           silc_net_gethostbyname[_async].  If it is TRUE it will return
5674           IPv6 address over IPv4.  If FALSE IPv4 address is returned
5675           even if IPv6 address was found.  Affected files
5676           lib/silcutil/silcnet.[ch].
5677
5678         * Added support silc_net_create_connection[_async] to fallback
5679           to IPv4 address if IPv6 address could not be used (like if
5680           it doesn't work on a specific system).  Affected file in
5681           lib/silcutil/unix/silcunixnet.c.
5682
5683 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5684
5685         * Added silc_schedule_reinit function to do the enlarging
5686           of the max tasks handling capabilities of the scheduler.
5687           Affected files lib/silcutil/silcschedule.[ch].
5688
5689 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5690
5691         * Added automatic extern "C" { ... } for C++ compilers so the
5692           application does not need to define them.  Affected file
5693           includes/silcincludes.h.
5694
5695         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
5696           old name went against naming convention.  Applications now
5697           include "silcclient.h" instead of "clientlibincludes.h".
5698           Removed includes/clientlibincludes.h, it is redundant now.
5699
5700         * Renamed includes/version.h to silcversion.h.
5701
5702         * Added really preliminary support for OS/2 into the util
5703           library.  Only thread & mutex API is implemented, others
5704           are still to be implemented.  Created the lib/silcutil/os2/
5705           directory.  Created also file includes/silcos2.h.
5706
5707 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5708
5709         * Added preliminary BeOS support into the util library.
5710           Created lib/silcutil/beos/, and implemented all the needed
5711           functions to support SILC on BeOS.  Created also file
5712           includes/silcbeos.h.
5713
5714 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
5715
5716         * Added proper initializations to silc's irssi code, so it's
5717           now possible to load it as module.  Affected files
5718           irssi/src/silc/core/silc-core.c,
5719           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
5720
5721 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5722
5723         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
5724           the SILC tree.
5725
5726         * Fixed the silcdoc document generator to correct generate
5727           docs from all kinds of filenames.  Affected files are
5728           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
5729
5730         * ROBOdoc documented lib/silcutil/silcmemory.h.
5731           Added also new function silc_memdup.
5732
5733         * Removed lib/silcutil/silcbufutil.h and moved those routines
5734           to the lib/silcutil/silcbuffer.h.
5735
5736 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5737
5738         * Added `user_count' to the SilcChannelEntry which now tells the
5739           number of users on the channel.  The user count is now saved
5740           in normal server of global channels as well.  Affected files
5741           silcd/server.c, idlist.h, packet_receive.c and command.c.
5742
5743         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
5744           include file utility functions.
5745
5746         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
5747           instead of calling directly OS routines.
5748
5749         * Fixed NICK change printing in Irssi SILC Client. Fixed
5750           KICKED notify printing in Irssi SILC Client.  Affected file
5751           irssi/src/silc/core/client_ops.c.
5752
5753         * Fixed a NICK change bug in client library, to not recreate the
5754           client_entry->channels hash table everytime nick is changed.
5755           Affected file lib/silcclient/client.c.
5756
5757 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5758
5759         * ROBOdoc documented the lib/silcske/silcske.h, and improved
5760           the SKE interface a bit.
5761
5762         * Fixed padding problem in PKCS#1. The padding was not actually
5763           random since the random number generator was used incorrectly.
5764           This security bug affects only when encrypting with PKCS#1, and
5765           it is not currently used at all in SILC. SILC only use signing
5766           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
5767
5768 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5769
5770         * Rewrote the notify handling in Irssi SILC client to not call
5771           the events as signals.  Fixes problems with Perl support.
5772           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5773
5774         * Send the auto-nicking NICK command in client library with
5775           little timeout after connecting.  The affected file is
5776           lib/silcclient/client.c.
5777
5778         * Added following new config file settings:
5779           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5780           key_exchange_timeout, conn_auth_timeout, connections_max,
5781           links_max.
5782
5783           Implemented all the new config settings handling in the server.
5784
5785           Optimized the use of SKE Mutual flag usage.  Use it only
5786           if connection authentication protocol is not based in public
5787           key authentication.
5788
5789           Renamed all SilcServerConfigSection* to SilcServerConfig*
5790           to have a bit shorter names.
5791
5792           Affected files silcd/serverconfig.[ch], server.[ch], and
5793           protocol.[ch].
5794
5795 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5796
5797         * Cleaned up the listening sockets code, preparing for the rehash
5798           support.  Affected file is silcd/server.c.
5799
5800         * Fixed some output messages.  Affected files are silcd/silcd.c,
5801           and silcd/server.c.
5802
5803 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5804
5805         * Create lib/doc/silcrng_intro.html document as introduction
5806           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5807
5808 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5809
5810         * Fixes to the silcd config template.  Affected file is
5811           doc/example_silcd.conf.in.
5812
5813         * Removed type casts from silc_calloc(), conforming to the
5814           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5815
5816         * Removed param_name member from client, server, and router
5817           section structs, now identifying the param directly.
5818
5819           Added CONFIG_FREE_AUTH macro in config file parsing.
5820
5821           Affected files are silcd/serverconfig.[ch].
5822
5823 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5824
5825         * Fixed command line parameter handling. All SILC initialization
5826           is now done in silc_core_init() which also fixes autoconnecting
5827           to servers.
5828
5829           Affected files irssi/src/silc/core/silc-core.c,
5830           irssi/src/fe-text/silc.c.
5831
5832 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5833
5834         * Added new configuration options and blocks:
5835           keepalive_secs, reconnect_count, reconnect_interval,
5836           reconnect_interval_max, reconnect_keep_trying and
5837           require_reverser_lookup.  Added ConnectionParam block, and
5838           implemented the connection parameters when connecting as
5839           initiator and when accepting connections as responder.
5840
5841           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5842           whether given configuration value has been given already.
5843
5844           Affected files silcd/serverconfig.[c], server.[c].
5845
5846         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5847           algorithm parts and created new file silcalgs.conf, that
5848           is now included from the example_silcd.conf.in.
5849
5850         * Optimized the silc_server_connect_to_router_second to take
5851           the connection configuration object from the SilcServerConnection
5852           object instead of finding it during the connecting phase.
5853           Added the configuration object to SilcServerConnection struct.
5854           Affected files silcd/server_internal.h, server.c.
5855
5856 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5857
5858         * Add the client on channel after it was resolved at the
5859           channel message receiving, and it was not already on the
5860           channel.  Affected file lib/silcclient/client_channel.c.
5861
5862 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5863
5864         * Fixed the public key authentication to allocate always the
5865           destination signature buffer instead of using static buffer.
5866           Affected file silcd/protocol.c.
5867
5868 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5869
5870         * Unified the serverconfig.[ch]'s helper function interface.
5871           Affected file silcd/serverconfig.[ch].
5872
5873         * Removed doc/example_silc.conf.in since it is redundant.
5874           The make install will now install irssi/silc.conf file.
5875
5876         * Added new Passphrase and Publickey authentication methods to
5877           config file, allowing both public key and passphrase based
5878           authentication to be set at the same time.
5879
5880           Added `prefer_passphrase_auth' setting in config file which
5881           can be used to set to prefer passwd auth if both passwd and
5882           public key is set.  If not set, public key is preferred.
5883           This has effect only when being initiator (responder will try
5884           both anyway).
5885
5886           Added support for authentication with passphrase and public key
5887           at the same time.  The passphrase is tried first always since
5888           it is faster to check.
5889
5890           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5891
5892 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5893
5894         * Merged the new SILC Config library, with the server parsing
5895           support.  Read the header file silcconfig.h or the toolkit
5896           documentation for the news.  Affected files are
5897           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5898           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5899           silcd/protocol.c silcd/server.c silcd/server_backup.c
5900           silcd/serverconfig.[ch] silcd/silcd.c.
5901
5902         * Fixed some silclog documentation.  Affected file is
5903           lib/silcutil/silclog.h.
5904
5905 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5906
5907         * The silc_cipher_register, silc_hash_register and
5908           silc_hmac_register now checks if the object to be registered
5909           is registered already.  Affected files are
5910           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5911
5912 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5913
5914         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5915
5916 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5917
5918         * Allow zero length channel messages inside the Channel Message
5919           Payload.  Affected file lib/silccore/silcchannel.c.
5920
5921         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5922           as header filenames.
5923
5924         * Removed lib/silcclient/README and created HTML file
5925           lib/silcclient/silcclient_using.html, which is now included
5926           as part of Toolkit documentation.
5927
5928 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5929
5930         * Fixed CUMODE_CHANGE notify handling to change the mode of
5931           correct client.  Affected file lib/silcclient/client_notify.c.
5932
5933         * Make silc_rng_alloc fail if it cannot allocate the sha1
5934           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5935
5936 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5937
5938         * Fixed the file transfer's key agreement payload to include
5939           zero port also if the hostname is NULL because it could not
5940           be bound.
5941
5942           Call file transfer monitor callback now also if error occurs
5943           during key agreement protocol.
5944
5945           Changed the silc_client_file_send interface to return the
5946           SilcClientFileError instead of session id.  The session ID
5947           is returned into pointer provided as argument.
5948
5949           Check that the file exists locally before sending the
5950           file transfer request at all.
5951
5952           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5953
5954         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5955           error than can occur while key agreement protocol.  Affected
5956           file lib/silcclient/silcapi.h.
5957
5958         * Fixed the event_mode CMODE handler to not crash when mode
5959           is changed and +k mode is set in the channel.  Affected file
5960           irssi/src/silc/core/silc-channels.c.
5961
5962         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5963           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5964           file lib/silcutil/silclog.c.
5965
5966         * Fixed the channel message payload decryption in the function
5967           silc_channel_message_payload_decrypt to not modify the original
5968           buffer before it is verified that the message decrypted
5969           correctly.  Otherwise, next time it is called with correct
5970           channel key it won't encrypt since the payload is corrupted.
5971           Affected file lib/silccore/silcchannel.c.
5972
5973 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5974
5975         * Do not constantly resize the window.  A fix patch by cras.
5976           Affected file irssi/src/fe-text/screen.c.
5977
5978 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5979
5980         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5981           Affected file lib/silcutil/silcnet.c.
5982
5983 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5984
5985         * Fixed a bug in hash table internal routine for traversing
5986           the table with foreach callback.  The current entry may
5987           become invalid in the callback but it was referenced after
5988           the callback returned.
5989
5990           Do not allow auto rehashing of hash table during the
5991           silc_hash_table_foreach operation, for same reasons as it is
5992           not allowed for SilcHashTableList.  Affected files are
5993           lib/silcutil/silchashtable.[ch].
5994
5995 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5996
5997         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5998           Win32 DLL.  extern's in header files are now declared with
5999           DLLAPI.
6000
6001 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6002
6003         * Fixed private message handling.  It used some old code that
6004           caused the client to crash.  Affecte file is
6005           lib/silcclient/client_prvmsg.c.
6006
6007 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6008
6009         * Added function silc_client_add_channel,
6010           silc_client_replace_channel_id, and removed functions
6011           silc_client_new_channel_id and silc_idlist_get_channel_by_id
6012           from client library.
6013
6014         * Added cross reference of the joined channels to the
6015           SilcClientEntry, and changed the SilcChannelEntry's
6016           users list to SilcHashTable.  The affected files are
6017           lib/silcclient/idlist.[ch].
6018
6019         * Fixed a bug in hash table tarversing.  While the hash table
6020           is traversed with SilcHashTableList the table must not be
6021           rehashed.  It is now guaranteed that auto rehashable tables
6022           are not rehashed while tarversing the list.  Also defined that
6023           silc_hash_table_rehash must not be called while tarversing
6024           the table.  Added function silc_hash_table_list_reset that must
6025           be called after the tarversing is over.  The affected files are
6026           lib/silcutil/silchashtable.[ch].
6027
6028         * Changed all hash table traversing to call the new
6029           silc_hash_table_list_reset in server and in client library.
6030
6031         * Added function silc_client_on_channel to return the
6032           SilcChannelUser entry if the specified client entry is joined
6033           on the specified channel.  This is exported to application as
6034           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
6035
6036 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6037
6038         * Fixed founder regaining problem with JOIN command on normal
6039           server.  The notify for mode change must be sent always and
6040           not only if !cmd->pending.  Affected file silcd/command.c.
6041
6042         * Fixed the WHOWAS command's reply sending to support the
6043           lists correctly.  Affected file silcd/command.c.
6044
6045 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
6046
6047         * When sending JOIN command to router for processing the
6048           sender's old command identifier was not saved back to the
6049           sender's command context, fixed now.  The affected file is
6050           silcd/command.c.
6051
6052         * Create the key in JOIN command of the router did not return
6053           the channel key, added check for this.  Affected file is
6054           silcd/command.c.
6055
6056         * Fixed a channel ID update bug in JOIN command reply.  Do
6057           not directly upgrade the ID but call the function
6058           silc_idlist_replace_channel_id if the ID was changed.
6059           Affected file silcd/command_reply.c.
6060
6061         * Fixed memory leaks from command calling if it would fail.
6062           Affected file silcd/command.c.
6063
6064 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6065
6066         * Applied patches from cras:
6067
6068           Memory leak fixes around libaries, irssi window resize fix,
6069           new silclist.h and silcdlist.h, all extern inline changed to
6070           static inline.
6071
6072         * Removed dotconf from lib/dotconf, not needed anymore.
6073
6074         * Removed TRQ from lib/trq, not needed anymore.
6075
6076         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
6077           with server connections.  Later this will be configurable
6078           in config file after new config file is done.  Affected file
6079           silcd/server.c.
6080
6081 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
6082
6083         * Fixed a crash in server related to channel announcements.
6084           Affected file silcd/server.c.
6085
6086 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6087
6088         * Fixed memory leaks in silc_server_create_new_channel*
6089           functions.  Affected file silcd/server.c.
6090
6091         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
6092           which ID was changed.  This way the router will send the
6093           user list for the channel again, and server won't be in
6094           desync in some rare circumstances.  Affected file is
6095           silcd/packet_receive.c.
6096
6097 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6098
6099         * Check for NULL socket pointer in the function
6100           silc_server_packet_send_to_channel_real.  Affected file
6101           silcd/packet_send.c.
6102
6103         * Fixed the BAN notify handling to correctly remove ban
6104           list.  Affected file silcd/packet_receive.c.
6105
6106 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6107
6108         * Fixed some header addition to Toolkit distribution in
6109           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
6110
6111         * Added lib/silcclient/client_ops_example.h as an template
6112           file for application programmers to quickly start using
6113           the SilcClientOperation functions in their application.
6114           Updated the lib/silcclient/README as well to tell about this
6115           nice file made available.
6116
6117 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6118
6119         * Call silc_server_remove_from_channels when removing client
6120           entry when NO_SUCH_CLIENT_ID was received.  Affected file
6121           is silcd/command_reply.c.
6122
6123 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6124
6125         * Added server & router operator statistics updating.  Affected
6126           file silcd/packet_receive.c and silcd/command.c.
6127
6128         * Fixed the SERVER_SIGNOFF notify handling on normal server
6129           not to save the history information for clients.  Same was
6130           fixed earlier in remove_clients_by_server function, but not
6131           here.  Affected file silcd/packet_receive.c.
6132
6133         * Raised the default connection-retry count from 4 to 7 in
6134           server.  Affected file silcd/server.h.
6135
6136         * Cancel any possible reconnect timeouts when we start the
6137           key exchange.  Affected file silcd/server.c.
6138
6139         * Do not reconnect on connection failure when SCONNECT was
6140           given.  Affected files silcd/server.[ch].
6141
6142 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6143
6144         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
6145
6146         * Fixed the NICK command to always give the unformatted
6147           nickname to the one giving the NICK command.  If unformatted
6148           nickname is cached already it will be formatted and the
6149           local entry will always get the unformatted nickname.
6150           Affected file lib/silcclient/idlist.c.
6151
6152         * Fixed some double frees from client library commands.
6153           Affected file is lib/silcclient/command.c.
6154
6155         * Fixed CUMODE command in server to assure that no one can
6156           change founder's mode than the founder itself, there was a
6157           little bug.  Affected file silcd/command.c.
6158
6159 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6160
6161         * Removed the SilcClientCommandDestructor from the client
6162           libary, it is not needed anymore.  Affected files are
6163           lib/silcclient/silcapi.h, command[_reply].[ch],
6164           client_notify, idlist.c.
6165
6166         * Fixed GETKEY command to first resolve client, and then
6167           resolve the server only if the client was not found, instead
6168           of resolving both at the same time.  Affected file is
6169           lib/silcclient/command.c.
6170
6171         * Added silc_client_start_key_exchange_cb and lookup the
6172           remote hostname and IP address before starting the key
6173           exchange with server.  The affected file is
6174           lib/silcclient/client.c.
6175
6176         * The server's public key is now saved using the IP address
6177           of the server and not the servername for the filename.
6178           The hostname public key filename is checked as an fall back
6179           method if the IP address based filename is not found.
6180
6181           Fixed the GETKEY command to save the fetched server key
6182           in correct filename.
6183
6184           Print the remote server's hostname now when new key is
6185           received during connection process.  Affected file is
6186           irssi/src/silc/core/client_ops.c.
6187
6188         * Return always our own public key to the client if it asks
6189           for it with GETKEY command.  Affected file silcd/command.c.
6190
6191         * Removed the use_auto_addr variable from default config
6192           file since it was in wrong section.  Affected file is
6193           irssi/src/config.
6194
6195         * Fixed TOPIC_CHANGE notification to not route it when it
6196           was sent using silc_server_send_notify_to_channel function.
6197           Affected file silcd/command.c.
6198
6199         * Fixed silc_server_send_notify_kicked to send the kicker's
6200           Client ID also, it was missing.  Affected files are
6201           silcd/command.c, silcd/packet_send.[ch].
6202
6203 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6204
6205         * Do not save client history information in SERVER_SIGNOFF.
6206           Fixes the bug in normal server that it does not detect
6207           the client becoming valid after the server becomes back
6208           online.  Affected file silcd/server_util.c.
6209
6210         * Added `sock_error' field  into the SilcSocketConnection
6211           context.  When error occurs during socket operation (read
6212           or write) the error is saved.  Added also new function
6213           silc_socket_get_error to return human readable socket error
6214           message.  Affected files are lib/silcutil/silcsockconn.[ch],
6215           lib/silcutil/unix/silcunixsockconn.c, and
6216           lib/silcutil/win32/silcwin32sockconn.c.
6217
6218         * The server now prints the socket error message in the
6219           signoff for client.  Affected file silcd/server.c.
6220
6221         * Fixed the `created' channel information sending from router
6222           to server in JOIN command.  Checks now whether the channel
6223           really was created or not and set it according that.
6224
6225           Fixed the JOIN command to use the client entry's current
6226           ID during the joining procedure instead of the one it sent
6227           in the command (it is checked though), since it can change
6228           between the packet processing and command processing, and
6229           would just case unnecessary pain in the client end.  Affected
6230           file silcd/command.c.
6231
6232         * Fixed a channel key payload sending to use correct channel
6233           ID when the server was forced to change the channel's ID by
6234           router.  Router sent the key payload with the old Channel ID.
6235           Affected file silcd/packet_receive.c.
6236
6237 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6238
6239         * Call silc_server_save_channel_key only if the key payload
6240           was provided in the JOIN command's command reply.  Affected
6241           file silcd/command_reply.c.
6242
6243 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6244
6245         * Fixed silc_mp_sizeinbase to return the value correctly with
6246           MPI.  Affected file lib/silcmath/mp_mpi.c.
6247
6248         * Fixed the stop_server signal to correctly stop the scheduler
6249           and gracefully stop the server when SIGTERM or SIGINT signals
6250           are received.  Affected file silcd/silcd.c.
6251
6252 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
6253
6254         * Simple handling of TERM and HUP signals. Also added some log
6255           flushing call around.  Affected file is
6256           silcd/silcd.c.
6257
6258         * Fixed small bugs in silclog.c. Now buffering output will take
6259           effect after 10 seconds since startup: This will ensure that
6260           no important startup messages are lost. Also output redirection
6261           will preserve original format ([Date] [Type] message).
6262           Affected file is lib/silcutil/silclog.c.
6263
6264         * Added two options to the config file, in the logging section:
6265           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
6266           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
6267
6268 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6269
6270         * Do not print the warning about log files not being initialized
6271           more than once to avoid excess logging.  Affected file is
6272           lib/silcutil/silclog.c.
6273
6274         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
6275           the SIM copying in make install in Makefile.am.pre.
6276
6277 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6278
6279         * Rewritten silclog APIs. Globally interesting changes follows:
6280           silc_log_set_files() changed to silc_log_set_file().
6281           silc_log_set_callbacks() changed to silc_log_set_callback().
6282           ROBOdoc documented silclog header file.
6283           SilcLogCb now returns bool to wether inihibit the default
6284           handler or not (to keep the old behaviour return always TRUE).
6285           The new APIs should also fix the problem of the
6286           silcd_error.log file that was written in the current directory.
6287
6288           New features:
6289           Log files streams will remain opened after silc_log_set_file()
6290           call, means less CPU usage notably on high traffic servers.
6291           File streams are now full buffered, and flushed to the disk
6292           every 5 minutes, lesses HD activity and CPU usage.
6293           Messages can be redirected, allowing admins to configure
6294           one single logfile for all server messages.
6295           the silc_log_quick global variable to activate fast-logging.
6296           Affected files lib/silcutil/silclog.[ch]
6297
6298         * Changed some code to conform new silclog APIs. Affected
6299           files are doc/example_silcd.conf.in, silcd/server.c
6300           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
6301           silcd/silcd.c.
6302
6303         * Fixed a memory leak that could occur in some situations.
6304           Affected file silcd/serverconfig.c.
6305
6306 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6307
6308         * Added the silc_client_del_client to remove the client from
6309           all channels as well.  Affected file lib/silcclient/idlist.c.
6310
6311         * Fixed the client library to correctly remove the client
6312           from all channels when the client entry is being destroyed.
6313           Affected file lib/silcclient/client_notify.c, command.c.
6314
6315         * Added auto-nicking support to the client library.  If the
6316           applicatio now sets client->nickname it will be sent to the
6317           server after connecting by the library.  This way for example
6318           SILCNICK (or IRCNICK) environment variables will have effect
6319           and always change the nickname automatically to whatever
6320           it is wanted.  Affected file lib/silcclient/client.[ch].
6321
6322         * Renamed silc_server_command_bad_chars to the
6323           silc_server_name_bad_chars and moved it to the
6324           silcd/server_util.[ch].  Added also new function
6325           silc_server_name_modify_bad to return nickname that
6326           includes bad characters as new nickname without those
6327           bad characters.  This check and modify is now used in
6328           silc_server_new_client when the username is initially set
6329           as nickname, so it must be checked to be valid nickname.
6330           Affected file silcd/packet_receive.c.
6331
6332         * The nickname length is now taken from the packet for real
6333           and not trusted to strlen() since it clearly can return
6334           wrong length for nickname including bad characters.  This
6335           also applies to channel names.  Affected file silcd/command.c.
6336
6337         * Removed the lib/silcsilm/modules directory.  Modules are now
6338           compiled into the lib/silcsim.  Fixed the copying of the
6339           modules to follow symbolic links in Makefile.am.pre.
6340
6341 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6342
6343         * Fixed silc_string_regexify list creation.  Fixes bugs with
6344           BAN and INVITE commands in server.  The affected file is
6345           lib/silcutil/unix/silcunixutil.c.
6346
6347 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6348
6349         * Removed the command destructor entirely from the server's
6350           command and command reply routines.  It is not needed, and
6351           its usage was buggy and caused crashes.  Affected files are
6352           silcd/command[_reply].[ch].
6353
6354 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6355
6356         * Cancel protocol and NULL sock->protocol if timeout
6357           occurred during protocol.  Affected file silcd/server.c.
6358
6359         * Cancel protocol timeouts always before calling the final
6360           callback, to assure that after final callback is called
6361           no other state will be called for the protocol anymore.
6362           Affected file silcd/protocol.c.
6363
6364         * Print error log if incoming connection configuration could
6365           not be found.  Affected file silcd/server.c.
6366
6367         * Fixed JOIN command to correctly save the founder mode
6368           to the client on normal SILC server, when the channel
6369           was created by the router.  Affected file silcd/command.c.
6370
6371         * Fixed LIST command (hopefully) to send correct reply
6372           packets.  Affected file silcd/command.c.
6373
6374 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6375
6376         * The silc_packet_receive_process now returns FALSE if the
6377           read data was invalid packet, and TRUE if it was ok.
6378
6379           The server now checks that if unauthenticated connection
6380           sends data and its processing fails the server will close
6381           the connection since it could be a malicious flooder.
6382
6383           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
6384
6385 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6386
6387         * Make sure the warning about error opening a log file is
6388           printed only once and not everytime it fails (produces
6389           too much useless log).  Affected file lib/silcutil/silclog.c.
6390
6391 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6392
6393         * Made the silc_server_daemonise() function more readable.
6394           Affected file silcd/server.c.
6395
6396         * Pid file is now optional, the user may comment it out from
6397           the config file. Removed define SILC_SERVER_PID_FILE, we
6398           don't need a default any longer.  Affected file
6399           configure.in.pre, lib/Makefile.am.pre.
6400
6401         * Make some use of the pid file. The server now dies at startup
6402           if it detects a valid pid file on his path. The server would
6403           die anyway in this circumstance, because of the bind() failure.
6404           Affected file silcd/silcd.c.
6405
6406         * No longer compiling lib/dotconf.
6407
6408 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6409
6410         * Fixed JOIN command parsing not to crash.  Affected file
6411           lib/silcclient/command.c.
6412
6413         * Fied the NICK_CHANGE notify to add the new client entry
6414           even it is resolved.  This removes an <[unknown]> nick
6415           thingy bug in the client.  Affected file is
6416           lib/silcclient/client_notify.c.
6417
6418         * Do not try to allocate 0 bytes (efence does not like it)
6419           in lib/silccore/silccomand.c when encoding payload.
6420
6421         * Do not take IRCNICK as nickname in Irssi SILC client since
6422           it is not possible to set nickname before hand connecting
6423           the server (TODO has an entry about adding auto-nicking
6424           support).
6425
6426         * Changed the silc_server_command_pending to check whether
6427           there already exists an pending entry with the specified
6428           command, command identifier and pending callback.  This is
6429           to fix IDENTIFY and WHOIS related crashes that may register
6430           multiple pending commands with same identifier.  Affected
6431           file silcd/command.c.
6432
6433         * Fixed the server to reconnect to the router even if it
6434           was already reconnecting and EOF was received.  This to
6435           fix a possibility that the server wouldn't ever try to
6436           auto-reconnect to the router.  Affected file silcd/server.c.
6437
6438 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6439
6440         * Fixed the server's password authentication to use the
6441           length of the locally saved password, and not the one
6442           sent in the packet.  Affected file silcd/protocol.c.
6443
6444         * Fixed same password authentication problem in the
6445           Authentication Payload handling routines in
6446           lib/silccore/silcauth.c.
6447
6448         * Yet another password authentication problem fixed with
6449           channel password handling in silcd/command.c.
6450
6451 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6452
6453         * If first character of string in silc_parse_userfqdn is '@'
6454           then do not parse it.  Affected file is
6455           lib/silcutil/silcutil.c.
6456
6457 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6458
6459         * Fixed minor bug in IDENTIFY command reply sending, which
6460           caused various weird problems during JOIN when it was
6461           resolving names for users.  Affected file silcd/command.c.
6462
6463 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6464
6465         * Fixed the IDENTIFY command reply sending to chech better valid
6466           clients.  It was possible to send incomplete list of replies.
6467           Affected file silcd/command.c.
6468
6469 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6470
6471         * Added silc_client_command[s]_[un]register functions now to
6472           dynamically register the commands in client library.  Removed
6473           the static table of commands.  This allows the client library
6474           to call commands without causing the application to know about
6475           what commands library has called.
6476
6477           Removed the INFO command reply kludge to detect when the command
6478           was called by library.  Now library use its own command reply
6479           function for INFO command.
6480
6481           Added function silc_client_command_call to call a command.
6482           Application can use it to call command, not access the structure
6483           directly.
6484
6485           Now all commands that are sent by the client library (not
6486           explicitly sent by application) use own command reply functions.
6487
6488           Affected files around lib/silcclient/ and in
6489           irssi/src/silc/core/.
6490
6491         * Fixed the WHOIS command reply sending to chech better valid
6492           clients.  It was possible to send incomplete list of replies.
6493
6494           Fixed the WHOIS and IDENTIFY to send the request to router
6495           if normal server did not do it and did not find any results.
6496
6497           Affected file silcd/command.c.
6498
6499 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6500
6501         * Moved the internal data from SilcClient context into its
6502           own file, not accesible to application.  Affected files
6503           lib/silcclient/client.h and lib/silcclient/client_internal.h,
6504           and other files in client library.
6505
6506 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6507
6508         * Added doc/examples installation target in Makefile.am.pre.
6509           A patch by salo.
6510
6511 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6512
6513         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
6514           commands the found client entry will be removed from the
6515           cache, after notifying application about the error.  Affected
6516           file lib/silcclient/command_reply.c.
6517
6518         * Changed the /MSG to check for exact nickname user gave, and
6519           not let `nick' match `nick@host' if it is only one found.  Now,
6520           user must type the exact nickname (like nick@host2) even if
6521           there are no more than one same nicks found.  This is to avoid
6522           a possibility of sending nickname to wrong nickname since
6523           `nick' could match `nick@host'.  Affected file is
6524           irssi/src/core/silc-servers.c.
6525
6526 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6527
6528         * Do not print "you are now server operator" or similar when
6529           giving /away command.  Affected files are
6530           irssi/src/silc/core/client_ops.c, silc-servers.h.
6531
6532         * Made the silc_server_command_pending_error_check to send
6533           the same command reply payload it received back to the
6534           original sender of the command.  This way all arguments
6535           that was received by the server will be received by the
6536           client too.  Affected file silcd/command.c.
6537
6538         * Added the silc_idcache_add to return the created cache entry
6539           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
6540
6541         * Add global clients to expire if they are not on any channel.
6542           This is because normal server will never know if they signoff
6543           if they are not on any channel.  The cache expiry will take
6544           case of these entries.  This is done by normal servers only.
6545           The affected files are silcd/command_reply.c,
6546           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
6547
6548         * If server receives invalid ID notification for WHOIS or
6549           IDENTIFY and the ID exists in the lists, it is removed.
6550           Affected file silcd/command_reply.c.
6551
6552         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
6553           in client then client entry that it matches is searched and
6554           the nickname is printed on the screen for user.  Affected
6555           file irssi/src/silc/core/client_ops.c.
6556
6557 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6558
6559         * Use cache entry expire time in the LIST command reply to
6560           purge old entries from the cache after the LIST command
6561           reply has been received.  This way we don't have non-existent
6562           entries in the cache for too long.  Affected file is
6563           silcd/command_reply.c.
6564
6565 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6566
6567         * If we are normal server, and we've not resolved client info
6568           in WHOIS or IDENTIFY from router, and it is global client,
6569           we'll check whether it is on some channel.  If it is not
6570           then we cannot be sure about its validity and will resolve it
6571           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
6572           file silcd/command.c.
6573
6574         * Search channel by name (if possible) rather than by ID
6575           in IDENTIFY command's command reply.  Affected file is
6576           silcd/command_reply.c.
6577
6578 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6579
6580         * Distribute to the channel passphrase in CMODE_CHANGE notify.
6581           Updated specs and implemented it.  Affected file silcd/command.c,
6582           silcd/packet_send.c and silcd/packet_receive.c.
6583
6584         * Implemented the <founder auth> payload handling in the JOIN
6585           command.  If provided all conditions for channel joining
6586           except requirement to provide correct passphrase can be
6587           overrided by the channel founder.  Updated the protocol specs.
6588           Affected file silcd/command.c.
6589
6590           Added support for founder auth in JOIN command in client
6591           library.  Fixed the parsing of the JOIN command now to support
6592           all options as they should be.  The affected file is
6593           lib/silcclient/command.c.
6594
6595         * Optimized the WHOIS and IDENTIFY commands to send the request
6596           to router only if it includes nicknames or other names.  If
6597           they include only IDs then check the local cache first before
6598           routing.  Affected file is silcd/command.c.
6599
6600         * Added channels topic announcements.  Affected file is
6601           silcd/packet_receive.c and silcd/server.c.
6602
6603         * Fixed the silc_server_send_notify_topic_set to really destine
6604           the packet to channel.  Affected file silcd/packet_send.c.
6605
6606         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
6607           library.  Affected file lib/silcclient/client_notify.c.
6608
6609         * Added UMODE announcements.  Affected file silcd/server.c.
6610
6611 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6612
6613         * Memory leak fixes in:
6614
6615           lib/silcutil/silcsockconn.c
6616           lib/silcske/silcske.c
6617           lib/silcske/groups.c
6618           lib/silccrypt/rsa.c
6619           lib/silccrypt/silcpkcs.c
6620           lib/silccore/silccommand.c
6621           lib/silccore/silcidcache.c
6622           silcd/idlist.c
6623           silcd/packet_send.c
6624           silcd/command.c
6625
6626         * ROBOdoc documented the lib/silcske/groups.h file and a
6627           bit changed the interface for better.
6628
6629 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6630
6631         * Update the client entry context in the ID cache after
6632           nick change.  Affected file lib/silcclient/command.c.
6633           Fixes the CUMODE command when regaining founder privileges,
6634           and a little WHOIS problem.
6635
6636         * Fixed silc_net_gethostbyname to correctly call the
6637           inet_ntop.  Affected file lib/silcutil/silcnet.c.
6638
6639 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6640
6641         * Added IPv6 support checking to the configure.in.pre, added
6642           also --enable-ipv6 option to override the check.  Affected
6643           file configure.in.pre.
6644
6645         * The silc_thread_create now calls the start function
6646           directly if threads support is not compiled in.  Removes
6647           ugly #ifdef's from generic code.  Affected files are
6648           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
6649
6650         * Added silc_net_gethostby[name/addr]_async to asynchronously
6651           resolve.  Affected files are lib/silcutil/silcnet.[ch].
6652
6653         * Added support for rendering IPv6 based server, client and
6654           channel IDs.  Affected file lib/silcutil/silcutil.c.
6655
6656         * Added support for creating IPv6 based server IDs.  Affected
6657           file is silcd/serverid.c.
6658
6659 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6660
6661         * Added silc_net_gethostby[addr/name] into the
6662           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
6663           routines.  Added silc_net_is_ip[4/6].  Affected file is
6664           lib/silcutil/unix/silcunixnet.c.  All routines that take
6665           address as argument now supports both IPv4 and IPv6 addresses.
6666
6667 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6668
6669         * Fixed LIST command reply sending in server.  Affected file
6670           silcd/command.c.
6671
6672         * Server now sends the kicker's client ID in the KICK notify
6673           to the kicked client.  Affected file silcd/command.c.
6674
6675         * The client library now parses the kickers client ID and
6676           UI displays it.  Affected files lib/silcclient/client_notify.c
6677           and irssi/src/silc/core/silc-channels.c, module-formats.c.
6678
6679         * Made all payload parsing function prototypes consistent.
6680           They all take now const unsigned char * and uint32 pair as
6681           the payload data instead of SilcBuffer.  Changes all around
6682           the source tree.  Other unsigned char* -> const unsigned char*
6683           changes around the tree as well.
6684
6685         * Optimized SFTP client and server packet sending not to
6686           allocate new buffer for each packet but to recycle the
6687           first allocated buffer.  Affected files are
6688           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
6689
6690         * Optimized the SFTP client to use SilcList instead of
6691           SilcDList for requests, because it is faster.  Affected file
6692           is lib/silcsftp/sftp_client.c.
6693
6694         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
6695           into lib/silccore/silcid.[ch].
6696
6697           Renamed silcpayload.[ch] into silcargument.[ch].
6698
6699 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6700
6701         * If client entry is deleted with active key agreement
6702           session, abort the session.
6703
6704           The silc_client_abort_key_agreement now calls the completion
6705           callback with new SILC_KEY_AGREEMENT_ABORTED status.
6706
6707           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
6708           idlist.c.
6709
6710 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6711
6712         * Don't use __restrict in older GCC's.  Affected file is
6713           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
6714
6715         * silc_net_localhost now attempts to reverse lookup the
6716           IP/hostname.  Affected file lib/silcutil/silcnet.c.
6717
6718         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
6719           command.  It can be used to gain founder privileges at
6720           the same time when joining the channel.
6721
6722           Defined that the SILC_NOTIFY_TYPE_KICKED send the
6723           kicker's client ID as well.  Updated protocol specs.
6724
6725           Defined that the server must send SILC_COMMAND_IDENTIFY
6726           command reply with error status to client who sent
6727           private message with invalid client ID.
6728
6729           Updated the protocol specification.
6730
6731         * Added silc_server_send_command_reply to send any
6732           command reply.  Affected file silcd/packet_send.[ch].
6733
6734         * Added silc_id_payload_encode_data to encode ID payload
6735           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
6736
6737         * The server now send IDENTIFY command reply with error
6738           status if client ID in private message is invalid.  Affected
6739           file silcd/packet_receive.c.
6740
6741         * Save the server key file with server's IP address in
6742           the filename instead of hostname.  The affected file is
6743           irssi/src/silc/core/client_ops.c.
6744
6745 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6746
6747         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
6748           A patch by Sunfall.
6749
6750         * Added libtool support for compiling shared objects in
6751           lib/silcsim.  Affected file configure.in.pre and
6752           lib/silcsim/Makefile.am.  Original patch by cras.
6753
6754 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6755
6756         * Pid file configuration, and server's config file fixes
6757           patch by toma.  Updated CREDITS file.
6758
6759 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6760
6761         * Fixed silc_client_channel_message to not try to decrypt
6762           the message twice if it resolved the destination client
6763           information.  This could cause of dropping one channel
6764           message.  Affected file lib/silcclient/client_channel.c.
6765
6766 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6767
6768         * Added silc_client_run_one into lib/silcclient/silcapi.h and
6769           lib/silcclient/client.c. This function is used when the SILC
6770           Client is run under some other scheduler, or event loop or
6771           main loop.  On GUI applications, for example this may be
6772           desired to used to run the client under the GUI application's
6773           main loop.  Typically the GUI application would register an
6774           idle task that calls this function multiple times in a second
6775           to quickly process the SILC specific data.
6776
6777 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6778
6779         * Fixed silc_server_drop() for dropping the supplementary
6780           groups as well, this could cause a security hole on some
6781           systems.
6782
6783 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6784
6785         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6786           johnny.
6787
6788         * Write PID file after dropping privileges.  Added -F option
6789           to run server on foreground.  A patch by debolaz.
6790           Affected files silcd/server.c, silcd/silcd.c.
6791
6792         * Fixed MOTD to return the MOTD file server name.  Affected
6793           file silcd/command.c.
6794
6795         * Added INFO command reply handling to the Irssi SILC Client.
6796           Affected file irssi/src/silc/core/client_ops.c.
6797
6798 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6799
6800         * Fixed the silc_idcache_list_* routines to really support
6801           the dynamic list.  Fixes a crash.  Affected file is
6802           lib/silccore/silcidcache.c.
6803
6804         * Fixed the LIST command reply to really call LIST command's
6805           pending callbacks.  Affected file silcd/command_reply.c.
6806
6807 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6808
6809         * Update conn->local_entry->nickname after giving NICK
6810           command.  Affected file lib/silcclient/command.c.
6811
6812 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6813
6814         * Added the [pid] option to the silcd configuration file
6815
6816           Affected files: serverconfig.[ch] and silcd.c
6817
6818 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6819
6820         * Save fingerprint in WHOIS command reply in server.
6821           Affected file silcd/command_reply.c.
6822
6823         * Fixed NICK commands pending callback registration.
6824           Affected file lib/silcclient/command.c.
6825
6826 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6827
6828         * Use ++server->cmd_ident when sending commands in server,
6829           instead of random number.  Affected file silcd/command.c.
6830
6831         * Fixed GETKEY command reply to call actually GETKEY pending
6832           command callbacks.  Affected file silcd/command_reply.c.
6833
6834         * A bit stricter check for nicknames.  Check for same nickname
6835           in NICK command also.  Affected file silcd/command.c.
6836
6837         * Do not call INFO command everytime client ID changes, only
6838           during first connecting.  Affected file lib/silcclient/client.c.
6839
6840         * Set the new nickname only after successful command reply for
6841           NICK command is returned by server.  Affected file
6842           lib/silcclient/command.c.
6843
6844         * Remove nicknames from nicklist during server_signoff notify.
6845           Should fix /NAMES bit more.  The affected file is
6846           irssi/src/silc/core/silc-channels.c.
6847
6848         * Added `fingerprint' field to the SilcIDListData in the
6849           silcd/idlist.h to hold the fingerprint of the client's
6850           public key.
6851
6852           Send the fingerprint of the client's public key in WHOIS
6853           command reply.
6854
6855           Affected files silcd/command.c, and silcd/idlist.[ch].
6856
6857         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6858           create fingerprint from given data.
6859
6860         * Show the fingerprint of the client's public key in WHOIS.
6861           Affected files irssi/src/module-formats.[ch] and
6862           irssi/src/silc/core/client_ops.c.
6863
6864         * Format the multiple same nicknames also during JOIN and
6865           NICK_CHANGE notifys.  Affected file is
6866           lib/silcclient/client_notify.c.
6867
6868         * Do not print error on screen for invalid private message
6869           payload since it can come if someone is sending private
6870           messages with wrong key.  Affected file
6871           lib/silccore/silcprivate.c.
6872
6873         * Fixed multiple concurrent /PING crash.  Affected file
6874           lib/silcclient/command.c.
6875
6876         * Changed the wrong ID encoding.  All IP addresses must be
6877           in MSB first order in encoded format.  They were encoded
6878           wrong and was in LSB format.  Affected files are
6879           silcd/serverid.c, lib/silcutil/silcutil.c.
6880
6881         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6882
6883         * Call the `connect' client operation through the scheduler
6884           in case of error.  Affected file lib/silcclient/client.c.
6885
6886         * Call the `failure' client operation even if the error
6887           occurred locally during a protocol.  Affected file is
6888           lib/silcclient/protocol.c.
6889
6890         * Added support of sending LIST command to router from normal
6891           server.  This way normal server can get list of all channels
6892           in the network too.  Fixed the channel list sending in the
6893           server too.  Affected files are silcd/command.c, and
6894           silcd/command_reply.[ch].
6895
6896         * Added silc_server_update_channels_by_server and
6897           silc_server_remove_channels_by_server.  They are used during
6898           disconnection of primary router and in backup router protocol.
6899           Affected file silcd/server_util.[ch], silcd/server.c and
6900           silcd/server_backup.c.
6901
6902         * Fixed channel adding to global list in IDENTIFY command
6903           reply in server.  Affected file silcd/command_reply.c.
6904
6905 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6906
6907         * If the incoming packet type is REKEY or REKEY_DONE process
6908           that packet always synchronously.  Fixes yet another MAC
6909           failed error on slow (dialup) connections.  Affected file
6910           lib/silcclient/client.c and silcd/server.c.
6911
6912 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6913
6914         * Call check_version SKE callback for initiator too.  Affected
6915           file lib/silcske/silcske.c.
6916
6917         * Implemented fix for security hole found in the SKE that was
6918           fixed in the specification few days back; the initiator's
6919           public key is now added to the HASH value computation.
6920           Added backwards support for the old way of doing it too, for
6921           old clients and old servers.  Affected file is
6922           lib/silcske/silcske.c.
6923
6924         * Enabled mutual authentication by default in SKE.  If initiator
6925           is not providing mutual authentication the responder will
6926           force it.  This will provide the proof of posession of the
6927           private key for responder.  The affected files are
6928           lib/silcclient/protocol.c and silcd/protocol.c.
6929
6930         * Do not cache anymore the server's public key during SKE.
6931           We do mutual authentication so the proof of posession of
6932           private key is done, and if the server is authenticated in
6933           conn auth protocol with public key we must have the public
6934           key already.  Affected file silcd/protocol.c.
6935
6936         * Added new global debug variable: silc_debug_hexdump.  If
6937           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6938           file lib/silcutil/silclog.[ch].
6939
6940         * Fixed compilation warning due to char * -> const char *.
6941           Affected files lib/silcutil/silcnet.h, and
6942           lib/silccore/silcauth.[ch].
6943
6944 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6945
6946         * Fixed CMODE command when new channel key was created.  If
6947           the creation failed the old key was removed.  Next time giving
6948           same command would crash the server since the old key was
6949           freed already.  Affected file silcd/command.c.
6950
6951         * Fixed the silc_server_announce_get_channels to not crash
6952           on reconnect.  Affected file silcd/server.c.
6953
6954 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6955
6956         * Added silc_log_set_debug_string function to set a regex
6957           string to match for debug output.  Only the function names,
6958           or filenames matching the given debug string is actually
6959           printed.  This way it is possible to filter out those debug
6960           strings that user is not interested in.
6961
6962           Fixed a bug in silc_string_regexify.
6963
6964           Affected files lib/silcutil/silclog.[ch], and
6965           lib/silcutil/unix/silcunixutil.c.
6966
6967         * Changed the -d options in both server and Irssi SILC client
6968           to take the debug string as argument.  Affected files
6969           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6970
6971 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6972
6973         * Added silc_hash_babbleprint to create a Bubble Babble
6974           Encoded fingerprint.  The encoding is developed by Antti
6975           Huima (draft-huima-babble-01.txt), and it creates human
6976           readable strings out of binary data.  Affected file
6977           lib/silccrypt/silchash.[ch].
6978
6979         * Print the babble print now in addition of fingerprint as well
6980           in Irssi SILC client.  Affected files are
6981           irssi/src/fe-common/silc/module-formats.[ch],
6982           irssi/src/fe-common/silc/core/client_ops.c.
6983
6984 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6985
6986         * Fixed a security problem found in SKE.  The initiator's
6987           public key too is now added to the HASH hash value creation
6988           which is signed by the responder to create the SIGN value.
6989           This will prevent anyone in the middle to lie to the responder
6990           about the initiator's public key.  If this is done now, the
6991           man in the middle will get caught.  Updated the protocol
6992           specification.
6993
6994 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6995
6996         * Better installation directory handling.  Configure module
6997           paths and other paths automatically to example_silc* files
6998           in doc/.  A patch by toma.
6999
7000         * Fixed compiler warning from MPI library, and from SILC RNG.
7001           A patch by johnny.
7002
7003         * Added SILC_SERVER_PID_FILE to define the pid file for server.
7004           It can be configured with ./configure.  A patch by toma.
7005
7006 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
7007
7008         * Find correct make to use in prepare-clean.  A patch by
7009           toma.  Affected file prepare-clean.
7010
7011 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
7012
7013         * Added irssi variables use_auto_addr, auto_bind_ip,
7014           auto_bind_port and auto_public_ip.
7015
7016         * Changed the interface for silc_client_send_key_agreement
7017           in lib/silcclient/silcapi.h
7018
7019         Affected files:
7020
7021          irssi/src/silc/core/silc-core.c
7022          irssi/config
7023          lib/silcclient/silcapi.h
7024          irssi/src/silc/core/silc-channels.c
7025          lib/silcclient/client_keyagr.c
7026          irssi/docs/help/key
7027
7028 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
7029
7030         * Added silc_pkcs_public_key_compare to compare two
7031           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
7032
7033         * Check that the client who set the founder mode on the
7034           channel is the same client that is giving the founder
7035           mode to itself.  It is done by comparing the saved public
7036           key (it is saved even in the authentication is passphrase).
7037           Affected file silcd/command.c.
7038
7039 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7040
7041         * Do not process packet for disconnected socket connection.
7042           Affected file lib/silccore/silcpacket.c.
7043
7044         * Process the DISCONNECT packet through scheduler in the
7045           client library.  Affected file lib/silcclient/client.c.
7046
7047         * Fixed the silc_client_packet_parse to not to increase
7048           the packet sequence number if the conn->sock and the
7049           current socket connection is not same.  This can happen
7050           for example during key agreement when the conn includes
7051           multiple socket connections (listeners).  Affected file
7052           lib/silcclient/client.c.
7053
7054         * The sender of the file transfer request now provides also
7055           the pointer (listener) for the key exchange protocol.  If
7056           the listener cannot be created then it sends empty key
7057           agreement and lets the receiver provide the listener.
7058
7059           Added `local_ip' and `local_port' arguments to the
7060           silc_client_file_send.  If they are provided they are used,
7061           if not then it will attempt to find local IP address, if
7062           not found or bind fails then the remote client will provide
7063           the listener.
7064
7065           Affected files are lib/silcclient/client_ftp.c and
7066           lib/silcclient/silcapi.h.
7067
7068         * Extended the FILE SEND command to support defining the
7069           local IP and port for key exchange listener.  They are
7070           optional.  Affected file irssi/src/silc/core/silc-servers.c.
7071
7072 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7073
7074         * Defined to WHOIS command reply the sending of fingerprint
7075           of the client's public key (if the proof of posession of the
7076           corresponding private key is verified by the server).
7077           Updated to the protocol specification.
7078
7079         * Added support of receiving the client's public key's
7080           fingerprint in command reply in client library.  Affected
7081           file is lib/silcclient/command_reply.c, and
7082           lib/silcclient/idlist.[ch].
7083
7084 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7085
7086         * Do not send over 128 chars long nickname to the server
7087           in NICK command.  Affected file lib/silcclient/command.c.
7088
7089         * Do not send over 256 chars long channel names to the server
7090           in JOIN command.  Affected file lib/silcclient/command.c.
7091
7092 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7093
7094         * Assure that silc_server_close_connection cannot be called
7095           twice for same socket context.  Affected file is
7096           silcd/server.c.
7097
7098 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7099
7100         * Send error message to application if opening file for
7101           writing during file transfer fails.  Affected file is
7102           lib/silcclient/client_ftp.c.
7103
7104           Remove all file transfer sessions for a client that we're
7105           removing from ID cache.
7106
7107           Affected file is lib/silcclient/client_ftp.c.
7108
7109         * Fixed silc_net_addr2bin to return correct address.  Affected
7110           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7111
7112         * Fixed file transfer session removing on signoff notify.
7113           Affected file irssi/src/silc/core/silc-servers.c.
7114
7115         * Added the SilcClientFileError to be returned in the monitor
7116           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
7117           Affected file lib/silcclient/silcapi.h.
7118
7119 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7120
7121         * Fixed a crash in silc_client_ftp_free_sessions and
7122           silc_client_ftp_session_free_client.  Affected file
7123           lib/silcclient/client_ftp.c.
7124
7125         * Added `disabled' field in the SilcChannelEntry in the server
7126           to indicate if the server entry is disabled.  Affected file
7127           silcd/idlist.h, silcd/command[_reply].c.
7128
7129         * SILC server adds now /var/run/silcd.pid everytime it is
7130           started.  Affected file silcd/silcd.c.
7131
7132         * Added silc_server_packet_send_clients to send a packet to
7133           the provided table of client entries.  Affected file
7134           silcd/packet_send.[ch].
7135
7136         * Fixed a crash in client resolving in client_prvmsg.c in
7137           client library.  Affected file lib/silcclient/client_prvmsg.c.
7138
7139         * Do not actually remove the client directly from ID cache
7140           during SERVER_SIGNOFF, but invalidate it.  This way we
7141           preserve the WHOWAS info for the client.  Affected file
7142           silcd/server_util.c.
7143
7144         * Fixed SERVER_SIGNOFF notify handling in the server.  The
7145           server is now able to process incoming SERVER_SIGNOFF notify
7146           for a server that it doesn't even know about.  It will remove
7147           the clients provided in the notify.  Affected file
7148           silcd/packet_receive.c.
7149
7150         * Check for partial packet in data queue after every packet that
7151           was found from the queue.  Return and wait for more data if
7152           there is partial data in queue.  Affected file is
7153           lib/silccore/silcpacket.c.
7154
7155 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7156
7157         * Added SilcClietFileError enum to indicate error in
7158           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
7159           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
7160           Affected files lib/silcclient/silcapi.h and
7161           lib/silcclient/client_ftp.c.
7162
7163         * Check that newsize in silc_buffer_realloc is larger than
7164           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
7165
7166         * Added better monitor of file transfers.  It now monitors
7167           key agreement protocol during the file transfer too.  Added
7168           error reporting too.  Affected files
7169           irssi/src/silc/core/silc-servers.c,
7170           irssi/src/fe-common/silc/module-formats.[ch].
7171
7172         * Wrote a help file for FILE command.
7173
7174         * Added silc_rng_global_get_byte_fast to get not-so-secure
7175           random data as fast as possible.  Random data is read from
7176           /dev/urandom if available and from the SILC RNG if not
7177           available.  It is used in padding generation.  Affected file
7178           lib/silccrypt/silcrng.[ch].
7179
7180         * All packets in client library are now processed synchronously.
7181           Optimized packet processing a lot.  Affected file
7182           lib/silcclient/client.c.
7183
7184         * All server connection packets are processing synchronously
7185           now in server, to optimize packet processing.  Affected file
7186           silcd/server.c.
7187
7188         * Include files are installed now only in Toolkit distribution
7189           if make install is given.  Affected files: all Makefile.am's.
7190
7191 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7192
7193         * Assure that silc_client_notify_by_server_resolve does not
7194           resolve the client information multiple times.  If it cannot
7195           be found by the first it cannot be found at all.  Affected
7196           file lib/silcclient/client_notify.c.
7197
7198         * Fixed WHOWAS command reply calling.  Affected file
7199           lib/silcclient/command_reply.c.
7200
7201         * Removed all references to silc_idlist_get_client from the
7202           Irssi SILC client since that call is internal call used by
7203           the library.  The Irssi SILC client will use now client
7204           retrieval functions found in silcapi.h.
7205
7206         * Fixed a bug in resolving nickname info before sending
7207           private message.  It used freed memory.  Affected file
7208           irssi/src/silc/core/silc-servers.c.
7209
7210 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7211
7212         * Assure my_channels statistics cannot go negative in server.
7213           Affected files silcd/server.c, silcd/server_util.c.
7214
7215 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7216
7217         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
7218
7219 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7220
7221         * Win32 Toolkit changes.  Affected files
7222           win32/silc.dsw, win32/libsilc/libsilc.def,
7223           win32/libsilcclient/libsilc.def,
7224           lib/silcutil/silcutil.c, and
7225           lib/sftp/sftp_fs_memory.c.
7226
7227 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7228
7229         * Added silc_net_localip to return local host's IP address.
7230           Affected file lib/silcutil/silcnet.[ch].
7231
7232         * If key exchange or rekey protocol is active for a connection
7233           parse all packets syncronously since there might be packets
7234           in packet queue that we are not able to process without first
7235           processing packets before them.  Affected file silcd/server,
7236           lib/silcclient/client.c.
7237
7238         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
7239           whether library should continue processing the packet.
7240           Affected file lib/silccore/silcpacket.h.
7241
7242         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
7243           SilcSFTPMonitorData to SFTP server to monitor various
7244           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
7245           lib/silcsftp/sftp_server.c.
7246
7247         * Added silc_file_size to return file size.  Affected file
7248           lib/silcutil/silcutil.[ch].
7249
7250         * Implemented the file transfer support for the client library.
7251           Added preliminary support for simple client to client one-file
7252           transmission.  Affected file lib/silcclient/client_ftp.c,
7253           lib/silccilent/client.[ch].
7254
7255         * Added new local command FILE to the Irssi SILC Client.
7256           It is used to perform the file transfer.  It has subcommands
7257           SEND, RECEIVE, SHOW and CLOSE.  Affected files
7258           irssi/src/silc/core/client_ops.c,
7259           irssi/src/silc/core/silc-server.[ch].
7260
7261 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7262
7263         * Relay the SILC_PACKET_FTP in the server.  Affected files
7264           silcd/server.c and silcd/packet_receive.c.
7265
7266 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7267
7268         * Renamed silc_file_read and silc_file_write to functions
7269           silc_file_readfile and silc_file_writefile.  Added function
7270           silc_file_open and silc_file_close.  Affected files
7271           lib/silcutil/silcutil.[ch].
7272
7273 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7274
7275         * Resolve the client info when received private message or
7276           channel message for a client which nickname we don't know.
7277           Affected files lib/silcclient/client_prvmsg.c and
7278           lib/silcclient/client_channel.c.
7279
7280         * Do not crash in /KEY if client is not connected.  Affected
7281           file irssi/src/silc/core/silc-channels.c.
7282
7283         * Added SilcClientStatus field to the SilcClientEntry in the
7284           lib/silcclient/idlist.h.
7285
7286           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
7287           is incomplete and is being resolved, it won't be resolved
7288           twice.
7289
7290           Make sure also that USERS command reply does not resolve
7291           twice information.  Affected file is
7292           lib/silcclient/command_reply.c.
7293
7294           Make sure that silc_client_get_clients_by_list does not
7295           resolve twice same information.
7296
7297         * Check for valid client->id in the silc_server_free_client_data.
7298           Affected file silcd/server.c.
7299
7300         * Fixed /GETKEY nick@server not to crash if the server entry
7301           is not found.  Affected file lib/silcclient/command.c.
7302
7303         * Fixed the silc_server_check_cmode_rights to check the
7304           requested modes correctly.  Affected file silcd/command.c.
7305
7306 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7307
7308         * Better checks for non-printable chars in nick added.
7309           Affected file silcd/command.c.
7310
7311 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7312
7313         * Call the silc_server_udpate_servers_by_server in the
7314           primary router that comes back online in the backup resuming
7315           protocol.  Otherwise it routes packets wrong.  Affected file
7316           silcd/server_util.[ch], silcd/server_backup.c.
7317
7318 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7319
7320         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
7321           lib/silcutil/silcbuffmt.[ch].
7322
7323         * Redefined the SILC packet header to include the padding
7324           length.  Affected file lib/silccore/silcpacket.[ch].
7325
7326         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
7327           length for maximum padding up to 128 bytes).  Affected
7328           file lib/silccore/silcpacket.h.
7329
7330         * Removed all backwards support for old 0.5.x MAC thingies.
7331           The SILC packet header change makes it impossible to be
7332           backwards compatible.
7333
7334         * Send the ENDING packet with timeout in the backup resuming
7335           protocol.  This is to assure that all routers has connected
7336           to the primary router.  Affected file silcd/server_backup.c.
7337
7338         * Changed the RNG to take the first IV from random data.  It
7339           used to take it from zero actually.  Changed the RNG also
7340           to use /dev/urandom during session.  /dev/random is used
7341           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
7342
7343 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7344
7345         * Changed the SILC packet header to have the first two bytes
7346           (the packet length) encrypted.  Affected files aroung the
7347           code tree, lib/silccore/silcpacket.[ch].  Removed the
7348           SilcPacketCheckDecrypt callback.  It is not needed anymore
7349           since the silc_packet_receive_process will determine now
7350           whether the packet is normal or special.
7351
7352         * Implemented the unidirectional MAC keys.  Affected files
7353           lib/silcske/silcske.c, silcd/protocol.c and
7354           lib/silcclient/protocol.c.
7355
7356         * Implemented the packet sequence number to the MAC computation.
7357           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
7358           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
7359           lib/silcclient/protocol.c.
7360
7361 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7362
7363         * Allow backup router to announce servers.  All servers
7364           announced by backup router are added to the global list
7365           automatically.  Update hte server's socket to our primary
7366           router also when backup router announces a server.
7367           Affected file silcd/packet_receive.c.
7368
7369         * Do not update the client->router in the function
7370           silc_server_udpate_clients_by_server if the client is on
7371           global list.  We might fail to find any specific server
7372           for locally connected clients and local cell clients.  They
7373           should still use the `from' and not `to' as client->router.
7374           This fixes backup router resuming protocol.  Affected file
7375           silcd/server_util.c.
7376
7377         * Decrease channel statistics count only if the channel
7378           deletion worked.  Affected files are silcd/server.c and
7379           silcd/server_util.c.
7380
7381         * Added silc_server_update_servers_by_server to update origin
7382           of all server entries.  Used during backup router protocol.
7383           Affected files silcd/server_util.[ch], silcd/server.c. and
7384           silcd/backup_router.c.
7385
7386         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
7387           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
7388           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
7389           lib/silccrypt/silchmac.c.
7390
7391 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7392
7393         * Assure that router cannot reroute the same channel message
7394           to the sender.  Affected file silcd/packet_receive.c.
7395
7396 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7397
7398         * Made better checks that the channel message is not sent
7399           to the router it came from.  Affected file is
7400           silcd/packet_send.c.  Fixed memory leak too.
7401
7402         * Announce informations for incoming router connection, but
7403           only after checking if it is replaced by backup router.
7404           Affected file silcd/packet_receive.c.
7405
7406 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7407
7408         * Fixed the backup resuming protocol to work in multiple
7409           router environment.  Affected file silcd/server_backup.c.
7410
7411         * Route packet only to one router in the function
7412           silc_server_packet_send_to_channel.  Affected file is
7413           silcd/packet_send.c.
7414
7415         * Fixed silc_server_send_notify_dest to set the broadcast
7416           flag.  Fixed the silc_server_send_notify_topic to actually
7417           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
7418           Affected file silcd/packet_send.c.
7419
7420         * Changed the SFTP Filesystem interface.  Changed the
7421           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
7422           the filesystem operation function.  The SilcSFTPFilesystem
7423           is now a context that is allocated by all filesystem allocation
7424           functions and it already includes the operations structure
7425           and filesystem specific context.  It is given as argument
7426           now to the silc_sftp_server_start.  This made the interface
7427           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
7428           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
7429
7430 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7431
7432         * Changed the backup router adding and getting interfaces
7433           in the server.  The router that will be replaced by the
7434           specified backup router is now sent as argument.  Affected
7435           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
7436           silcd/server.c.
7437
7438         * Added silc_net_addr2bin_ne to return the binary form of
7439           the IP address in network byte order.  Affected files
7440           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
7441
7442 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7443
7444         * Check for existing server ID in silc_server_new_server
7445           and in silc_server_connect_to_router_final and remove the
7446           old entry if it exists.  Affected file silcd/packet_receive.c,
7447           silcd/server.c.
7448
7449         * Send the channel message always to only one router, either
7450           in upstream or downstream.  Affected file is
7451           silcd/packet_send.c.
7452
7453 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7454
7455         * Wrote the definition of the backup resuming protocol to the
7456           protocol specification.
7457
7458         * Removed one redundant channel key generation from normal
7459           server during joining procedure.  Removed one redundant
7460           channel key sending from server to router during joining
7461           procedure.  Affected file silcd/command.c.
7462
7463         * Made minor bugfixes to the backup router resuming protocol.
7464           Affected file silcd/server_backup.c, server.c.
7465
7466 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7467
7468         * Added --disable-asm configuration option.  Affected files
7469           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
7470           by salo.
7471
7472         * Implemented the backup resuming protocol that is used to
7473           resume the primary router position in the cell after the
7474           primary router comes back online.  Affected files
7475           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
7476           and silcd/server_util.[ch].
7477
7478 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7479
7480         * Sleep two (2) seconds after sending QUIT command to server.
7481           Affected file lib/silcclient/command.c.
7482
7483         * Assure that if outgoing data buffer is pending do not force
7484           send any data.  Affected file silcd/packet_send.c.
7485
7486         * Assure that if outgoing data buffer is pending do not force
7487           send any data.  Affected file lib/silcclient/client.c.
7488
7489         * Implemented the backup router support when the primary router
7490           goes down.  The servers and routers can now use the backup
7491           router as new primary router without loosing connectivity.
7492
7493 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7494
7495         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
7496           in the server to indicate disabled entry.  All data read
7497           from the connection will be ignored and no data is sent
7498           for entry that is disabled.  Affected files are
7499           silcd/idlist.h, silcd/server.c.
7500
7501 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7502
7503         * Created SFTP client and server test programs in the
7504           lib/silcsftp/tests directory.
7505
7506 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7507
7508         * Implemented memory filesystem (virtual filesystem) for
7509           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
7510           sftp_fs_memory.c.
7511
7512 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7513
7514         * Implemented the SFTP (SSH File Transfer Protocol) to the
7515           lib/silcsftp.  It includes SFTP client and SFTP server
7516           implementations.
7517
7518 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7519
7520         * Moved lib/silccore/silcprotocol.[ch] to the
7521           lib/silcutil library.
7522
7523         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
7524           take variable argument list pointer as argument.  Affected
7525           file lib/silcutil/silcbuffmt.[ch].
7526
7527         * Added silc_buffer_set function that is used to set data
7528           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
7529           Affected file lib/silcutil/silcbuffer.h.
7530
7531         * Changed various routines in the core library to use the new
7532           silc_buffer_set instead of allocating new buffer only for
7533           temporary purposes.
7534
7535         * Added 64-bit value formatting and unformatting support to the
7536           silc_buffer_[un]format routines.  Affected file is
7537           lib/silcutil/silcbuffmt.[ch].
7538
7539           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
7540           to includes/bitmove.h.
7541
7542 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7543
7544         * Fixed channel user mode saving in client library.  Affected
7545           file lib/silcclient/command[_reply].c.
7546
7547 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7548
7549         * Defined the file transfer to the SILC Protocol.  Added
7550           new packet type SILC_PACKET_FTP and defined File Transfer
7551           Payload.  The mandatory file transfer protocol is SFTP
7552           (SSH File Transfer Protocol).  Affected file in addition
7553           of the internet draft is lib/silccore/silcpacket.h.
7554
7555         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
7556           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
7557           is used as part of backup router protocol when the primary
7558           router of the cell is back online and wishes to resume
7559           the position as primary router.
7560
7561         * Redefined the MAC generation keys in the protocol.  The
7562           same key is not used anymore in both direction.  Both
7563           direction will now use different keys for sending and
7564           receiving.  This fixes a potential security flaw.  This
7565           change causes incompatibilities in the protocol.
7566
7567         * Redefined also the MAC computation from the packet.
7568           An packet sequence number is now added to the MAC
7569           computation.  This prevents possible replay attacks against
7570           the protocol.  This change too causes incompatibilities
7571           in the protocol.
7572
7573           Added `sequence' field to the SilcPacketContext to hold
7574           the current sequence number for the packet.
7575
7576 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7577
7578         * Added `created' field to the SilcIDListData in the file
7579           silcd/idlist.h to indicate the time when the entry was
7580           created.
7581
7582         * Added `created' field to the SilcChannelEntry too.  Affected
7583           file silcd/idlist.h.
7584
7585         * Added `creation_time' aguments to all the announcement functions
7586           in the server.  If it is provided then only the entries that
7587           was created after the provided time frame are actually
7588           announced.  Affected file silcd/server.[ch].
7589
7590         * The protocol says that the Channel ID's IP address must be
7591           based on the router's IP address.  Added check for this in
7592           the silc_server_new_channel when processing incoming New Channel
7593           Payload.  Affected file silcd/packet_receive.c.
7594
7595         * Print out the correct version with --version in SILC client.
7596           Affected file irssi/src/silc/core/silc-core.c.
7597
7598 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7599
7600         * Fixed WHOWAS command to check for completnes of the client
7601           entry always, not just when the command is coming from client.
7602           Affected file silcd/command.c.
7603
7604         * Added new function silc_server_packet_queue_purge to purge the
7605           outgoing data queue to the network.  After the function returns
7606           it is guaranteed that the outgoing packet queue is empty.
7607           Affected file silcd/packet_send.[ch].
7608
7609         * Purge the outgoing packet queue in the rekey protocol's final
7610           callback to assure that all rekey packets go to the network
7611           before quitting the protocol.  Affected file silcd/server.c.
7612
7613         * Added silc_client_packet_queue_parse as similar function as
7614           in server to the client library.  The affected file is
7615           lib/silcclient/client.c.
7616
7617 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7618
7619         * Splitted silcd/server.c and created silcd/server_util.[ch]
7620           for utility functions.
7621
7622         * Added new socket flag SILC_SF_DISABLED to indicate that the
7623           connection is open but nothing can be sent to or received from
7624           the connection.  Affected file lib/silcutil/silsockconn.[ch].
7625           The checking for disabled socket is checked in the low level
7626           silc_socket_write and silc_socket_read functions.
7627
7628 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7629
7630         * Allow only nicknames and channel names that fits into the
7631           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
7632
7633 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7634
7635         * When processing JOIN command reply in server check that if
7636           the channel exists in our global list we'll move it the local
7637           list.  Affected file silcd/command_reply.c.
7638
7639         * Fixed the check whether client is joined on the channel already
7640           in JOIN command.  Affected file lib/silcclient/command.c.
7641
7642         * Fixed the JOIN command reply to check whether the channel
7643           already exists.  Affected file lib/silcclient/command_reply.c.
7644
7645 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7646
7647         * Added silc_ske_status_string to map the SKE error numbers
7648           to readable strings.  The affected files are
7649           lib/silcske/silcske[_status].[ch].
7650
7651 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7652
7653         * Do not show the private channels on the WHOIS channel list
7654           as it is not allowed by the protocol.  The affected file is
7655           silcd/server.c.
7656
7657 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7658
7659         * Assure that the packet length digged from the actual packet
7660           is something sensible in the silc_packet_decrypt_rest_special
7661           in lib/silccrypt/silcpacket.c.
7662
7663         * Free and NULL the allocated pointer in silc_hmac_alloc if
7664           the HMAC allocation fails.  The affected file is
7665           lib/silccrypt/silchmac.c.
7666
7667         * Print the selected security properties to the log files in
7668           the server.  Affected file silcd/protocol.c.
7669
7670         * Add SKE's reference counter even if calling the completion
7671           callback manually.  Otherwise it goes negative, although it
7672           does not cause any problems.  The affected file is
7673           lib/silcske/silcske.c.
7674
7675         * Remove the client entry with short timeout after giving the
7676           KILL command.  Affected file lib/silcclient/command.c.
7677
7678         * Fixed to send error reply in WHOIS and IDENTIFY commands in
7679           case all found clients are already disconnected (WHOWAS would
7680           found them) in the server.  Affected file silcd/command.c.
7681
7682         * Update the last_receive (time of last data received) to be
7683           updated only when received private or channel message so that
7684           the idle time showed in WHOIS makes more sense.
7685
7686         * Added boolean field `valid' in to the SilcClientEntry in the
7687           client library to indicate whether the entry is valid or not.
7688           This fixes the nickname change bug on channel when changing
7689           the nickname to be same than the old (like nick to Nick) the
7690           nickname formatter doesn't set the new nick anymore to Nick@host.
7691           Affected file lib/silcclient/idlist.[ch].
7692
7693         * Now actually fixed the nickname changing on disconnection.
7694           Added new function silc_change_nick to the Irssi SILC Client.
7695           Affected file irssi/src/silc/core/client_ops.c,
7696           irssi/src/silc/core/silc-nicklist.[ch].
7697
7698 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7699
7700         * Check that the public key exists in the GETKEY command before
7701           trying to encode it.  Affected file silcd/command.c.
7702
7703         * Print some notifications on received public keys with GETKEY
7704           command in the Irssi SILC Client.  Affected files are
7705           irssi/src/fe-common/silc/module-formats.[ch],
7706           irssi/src/silc/core/client_ops.c.
7707
7708         * Use IDENTIFY command to resolve the server information in the
7709           GETKEY command instead of INFO command.  Affected file
7710           lib/silcclient/command.c.
7711
7712         * All command reply functions in the client library now calls
7713           the pending command reply callbacks even if an error has
7714           occurred.  The server has done this a long time and now it was
7715           time to move the client library to this as well.  Now all
7716           errors can be delivered back to the pending command reply
7717           callbacks if necessary.  Affected files are
7718           lib/silcclient/command[_reply].[ch].
7719
7720         * Change the nickname on disconnection back to the username
7721           because in reconnect the server will enforce it to it anyway.
7722           Affected file irssi/src/silc/core/silc-servers.c.
7723
7724         * Fixed a config file parsing bug in the Irssi SILC client.
7725           Affected file irssi/src/silc/core/clientconfig.c.
7726
7727 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7728
7729         * When printing the channel mode on JOIN, verify that the
7730           channel key and channel's HMAC are valid.  Affected file
7731           irssi/src/silc/core/client_ops.c.
7732
7733 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7734
7735         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
7736           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
7737           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
7738
7739         * Removed channel key rekey task deleting from the function
7740           silc_server_save_channel_key.  Affected file silcd/server.c.
7741           Added explicit timeout task context instead that is used to
7742           delete the task if we are registering a new task before the
7743           new task has elapsed.
7744
7745         * When channel key rekey occurs the client library now saves
7746           the old channel key for a short period of time (10 seconds) and
7747           is able to use it in case some is still sending channel
7748           messages encrypted with the old key after the rekey.  Affected
7749           file lib/silcclient/[idlist.h|client_channel.c].
7750
7751 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7752
7753         * Added check to the silc_server_new_id_real to not accept
7754           new ID if it is the sender's own ID.  Affected file is
7755           silcd/packet_receive.c.
7756
7757         * Assure that we do not announce ourself or the one we've
7758           sending our announcements when we're router and are announcing
7759           servers to our primary router.  Affected file silcd/server.c.
7760
7761         * Fixed silc_server_command_identify_check_client to assemble
7762           correct WHOIS packet.  It send corrupted WHOIS packet and
7763           caused problem with router to router connections.  Affected
7764           file silcd/command.c.
7765
7766           Fixed also silc_server_command_whois_check the same way
7767           as for the IDENTIFY command.
7768
7769         * Added new SilcIDListStatus to the server in the SilcIDListData
7770           structure.   The status now includes the current status of
7771           the entry (like registered, resolved etc.).  Affected file
7772           silcd/idlist.[ch].  Defined a bunch of different status types
7773           as well.  This replaced the old boolean registered field as well.
7774
7775           Added resolve_cmd_ident field to the SilcClientEntry structure
7776           too so that if the entry is for example being resolved so
7777           another command may attach to the same pending command reply
7778           without requiring to resolve the same entry again.  This concept
7779           should optimize the WHOIS and the IDENTIFY resolving under
7780           heavy load by taking away unnecessary resolving for entries
7781           that are being resolved already.
7782
7783           Added support for adding multiple pending commands for one
7784           command idenfier.  Affected file silcd/command[_reply].[ch].
7785
7786         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7787           before deleting the data.  Otherwise the hash table will have
7788           freed data in comparison functions.  Affected file is
7789           silcd/command_reply.c.
7790
7791         * Fixed silc_idlist_replace_client_id to add the new entry to
7792           the cache with NULL nickname.  Otherwise there will be invalid
7793           memory as the nickname after the nickname is freed.  Affected
7794           file silcd/packet_receive.c.
7795
7796         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7797           saved into wrong slots because the previous number of entries
7798           was not taken into account.  Affected file silcd/idlist.c.
7799           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7800
7801         * If we are router and we receive JOIN notify to a channel that
7802           does not have any users then notified client is marked as the
7803           channel founder, as it is it.  The affected file is
7804           silcd/packet_receive.c
7805
7806         * Added to the extended hash table API's table_del_*ext functions
7807           the destructor as argument too, so that the caller can decide
7808           which destructor to use or whether to use destructor at all.
7809           Affected file lib/silcutil/silchashtable.[ch].
7810
7811         * Fixed ID Cache purging.  It actually deleted the entries from
7812           the hash table after the data was freed.  The hash table ended
7813           up comparing freed memory.  The affected file is
7814           lib/silccore/silcidcache.c.
7815
7816 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7817
7818         * Fixed Irssi SILC client's KILL command's HELP syntax.
7819
7820         * The USERS command now resolves the detailed user information
7821           if the userinfo field is missing.  Affected file is
7822           lib/silcclient/command_reply.c.
7823
7824         * Do not print error in silc_file_read if the read file does
7825           not exist.  Just silently return NULL.  Affected file is
7826           lib/silcutil/silcutil.c.
7827
7828         * Fixed the silc_log_output to not wine about NULL filename
7829           and to not create some bogus " " filename.  Affected file is
7830           lib/silcutil/silclog.c.
7831
7832 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7833
7834         * Fixed various printing bugs on the user interface in the
7835           Irssi SILC Client.  Minor changes that were forgotten from
7836           the release.
7837
7838 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7839
7840         * Fixed the configure.in.pre and the compilation and distribution
7841           environment to support the new autoconf 2.52.  That version is
7842           now required to compile the CVS trunk.
7843
7844 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7845
7846         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7847           to generally parse user@fqdn format strings.  Affected file
7848           lib/silcutil/silcutil.c.
7849
7850         * Added nickname_format and nickname_force_format fields to the
7851           SilcClientParams structure.  The first one defines the format
7852           for the nicknames that the library will enforce if the receives
7853           multiple same nicknames.  The second one is boolean value and
7854           can be used to force the library to always enforce the format
7855           to the nicknames regardles whether there are multiple nicknames
7856           or not.  This configurable formatting was employed to flexibly
7857           support accessing multiple nicknames from the user interface.
7858           The userinterface can now set the nicknames to what ever format
7859           they prefer.  Affected file lib/silcclient/silcapi.h.
7860
7861           Added function silc_client_nickname_format to the file
7862           lib/silcclient/idlist.c.  It performs the nickname formatting.
7863
7864           Added new field `hostname´ to the SilcClientEntry context.
7865           It holds the hostname of the client.  Affected file is
7866           lib/silcclient/idlist.h.
7867
7868         * Irssi SILC Client sets the nicknames in nick@hostn format.
7869           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7870           irssi/src/silc/core/silc-core.c.
7871
7872           The WHOIS printing now also shows both the real nickname and
7873           the formatted nickname so that user knows how to access the
7874           user if there are multiple same nicknames cached.  Affected
7875           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7876           printing formatting too to take the hostname now as a separate
7877           argument.  The Affected file is
7878           irssi/src/fe-common/silc/modules-formats.[ch].
7879
7880         * Changed the silc_client_get_clients_local to accept the formatted
7881           nickname as argument.  It accepts the real nickname too but the
7882           formatted nickname can be used to find the true entry from
7883           multiple entries.  Affected file lib/silcclient/silcapi.h and
7884           lib/silcclient/idlist.c.
7885
7886         * Added nickname_format_parse field to the SilcClientParams.
7887           It is a callback function provided by the application to parse
7888           the nickname out of the formatted nickname string. The library
7889           calls it to get the nickname from the formatted string. Since
7890           the application generally knows better the format of the nickname
7891           string it parses it instead of the library, even though library
7892           encodes the formatted string.  If the callback function is not
7893           provided then the library will use the string as is.  The
7894           affected file is lib/silcclient/silcapi.h.
7895
7896         * All the nickname strings passed to the client library in
7897           commands are now expected to be formatted nickname strings.
7898           If the command does not support the formatted nickname string
7899           it will assume that the sent string is the actual nickname.
7900           Affected file lib/silcclient/command.c.
7901
7902 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7903
7904         * Added public key authentication support to OPER and SILCOPER
7905           commands in the client library.  Affected file is
7906           lib/silcclient/command.c.
7907
7908 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7909
7910         * Changed the get_auth_methdod client operation to be asynchronous.
7911           It can be async if the application resolves the authentication
7912           method from the server during the negotiation.  Added new
7913           SilcGetAuthMeth completion callback that the application will
7914           call after resolving the authentication method.
7915
7916           Added function silc_client_request_authentication_method that
7917           the application can use to resolve the authentication method
7918           from the server.  Added also SilcConnectionAuthRequest callback
7919           that the library will call after the server has replied.  The
7920           application can call this function if it does not know the
7921           current authentication method.
7922
7923           Affected files are lib/silcclient/client.c and
7924           lib/silcclient/silcapi.h.
7925
7926         * The Irssi SILC client now automatically resolves the authentication
7927           method incase any configuration information is not present (and
7928           currently there never is).  The affected file is
7929           irssi/src/silc/core/client_ops.c.
7930
7931         * Fixed public key authentication from the client library.
7932           Affected file lib/silcclient/protocol.c.  Changed also the
7933           protocol specification about the public key authentication in
7934           the connection authentication protocol.  The actual data to be
7935           signed is now computed with a hash function before signing.
7936
7937         * Fixed the public key authentication from the server as well.
7938           Affected file silcd/protocol.c.
7939
7940         * Removed the mlock()'s from the memory allocation routines.
7941           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7942           not check anymore for the mlock().  Affected file is
7943           configure.in.pre.
7944
7945         * Fixed USERS command in server to allow the execution of the
7946           command for private and secret channels if the client sending
7947           the command is on the channel.  Affected file silcd/command.c.
7948
7949         * Fixed silc_client_get_clients_local to return the clients
7950           count correctly.  It could return wrong value.  Affected file
7951           lib/silcclient/idlist.c.
7952
7953 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7954
7955         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7956           types.  The assembler optimizations seemed not to like 64-bit
7957           data types.  The assmebler optimizations thus are now enabled
7958           also for BSD systems as opposed to only enable them for Linux.
7959
7960         * Do not check for threads at all on BSD systems.  Affected
7961           file configure.in.pre.
7962
7963         * Removed -n and -h options from the Irssi SILC Client since
7964           they are not used in silc.
7965
7966         * Fixed the prime generation to assure that the first digit
7967           of the generated random number is not zero since our conversion
7968           routines does not like number strings that starts with zero
7969           digit.  If zero digit is seen the random number is regenerated.
7970           This caused some corrupted RSA keys when the zero first digit
7971           was met.  Affected file lib/silcmath/silcprimegen.c.
7972
7973 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7974
7975         * Fixed WIN32 configuration in the ./configure script.
7976           Fixed to include xti.h on environments that has it.
7977           Patches by Carsten Ilchmann and andrew.
7978
7979 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7980
7981         * Changed the silc_id_create_client_id to be collision
7982           resistant.  It is now assured that there cannot be created
7983           two same client ID's.  I suspect that some weird bugs in
7984           the server were actually caused by duplicate Client IDs.
7985           Affected file silcd/serverid.[ch].  A router receiving
7986           new ID now also assures and informs the sending server
7987           if the ID caused collision.
7988
7989         * Changed the silc_id_create_channel_id to also assure that
7990           there are no collisions.
7991
7992 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7993
7994         * Statement about ignoring the Mutual Authentication flag when
7995           performing rekey with PFS was a bit misleading.  It is ignored
7996           if it was set in the initial negotiation, it cannot be even
7997           set in the rekey.  Fixed in the ke-auth draft.  Started the
7998           new versions of the protocol drafts in the doc/.
7999
8000 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8001
8002         * Fixed a bug in silc_client_command_identify_save when saving
8003           new channel information.  The channel name was no duplicated
8004           and caused crash on exit.  Affected file is
8005           lib/silcclient/command_reply.c.
8006
8007 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8008
8009         * Fixed the getkey command handling in the server.  Send just
8010           empty OK reply to the sender if the key could not be fetched
8011           (but everything else was ok, like the key just was not available).
8012           Changed the public key parameter to optional in the protocol
8013           specs so that empty OK reply can be sent.  Affected file
8014           silcd/command.c.
8015
8016           Added a message to Irssi SILC client to tell to user if the
8017           server did not return a public key.
8018
8019 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
8020
8021         * Fixed a channel key regeneration bug.  It registered new
8022           timeout tasks exponentially until all system resources were
8023           used.  Affected file silcd/server.c.
8024
8025 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8026
8027         * Added the SILC Document generator to the scripts/silcdoc.
8028           It can be used to generate the Toolkit Reference Manual out
8029           of the source tree.  Internally it will also use the RoboDoc
8030           generator now imported in util/robodoc.
8031
8032 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8033
8034         * Added couple of return's in rekey protocol if error orccurred
8035           during the protocol.  The execution must be terminated.
8036           Affected file silcd/protocol.c.  Also, terminate the protocol
8037           always with timeout.
8038
8039 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8040
8041         * The client's Client ID was created initally from the wrong
8042           nickname (it could have been in format nick@host) in the
8043           silc_server_new_client.  Affected file silcd/packet_receive.c
8044
8045 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8046
8047         * Added some SILC_LOG_ERROR's to various error conditions
8048           if client could not be added to ID cache.  Affected files
8049           silcd/packet_receive.c and silcd/server.c.
8050
8051         * When client's sock->user_data is freed, NULL also the
8052           client->router and client->connection pointers.  Added check
8053           for these pointers being NULL to various places around the
8054           code.  Affected file silcd/server.c.
8055
8056         * Added client->data.registered == TRUE checks to various
8057           places around the code to assure that unregistered client's
8058           are not handled when it is not allowed.  Affected file
8059           silcd/server.c.
8060
8061         * Added `bool registered' fields to all
8062           silc_idlist_[server|client]_get_* routines to indicate whether
8063           the fetched client needs to be registered or not.  Affected
8064           file silcd/idlist.[ch].
8065
8066         * Add your own entry as registered to the ID cache in the
8067           server.  Affected file server.c.
8068
8069         * Fixed a bug in silc_server_new_server.  The SilcServer was
8070           set as the new server's context instead of SilcServerEntry.
8071           This naturally caused some weird bugs.
8072
8073         * Added "updated" field the SilcChannelEntry which indicates
8074           the time since the channel entry was last accessed.  This
8075           can be used to determine whether it is necessary to
8076           announce the channel after backup resuming protocol.
8077           Affected files silcd/idlist.[ch].
8078
8079 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8080
8081         * Do not delete the channel rekey task when adding it
8082           for in silc_server_create_channel_key.
8083
8084         * Changed the silc_server_create_channel_key to return
8085           TRUE or FALSE to indicate the success of the channel key
8086           creation.
8087
8088 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8089
8090         * Fixed MSVC++ project files and added missing files to
8091           Makefiles under win32/.
8092
8093 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8094
8095         * Do not add TCP_NODELAY flag if the operating system
8096           does not have it defined.  Affected files are
8097           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
8098
8099         * Fixed buffer overflow from Irssi SILC Client.  Affected
8100           file irssi/src/fe-common/core/themes.c.
8101
8102         * Fixed double free in client library in the file
8103           lib/silcclient/client.c when disconnecting from server.
8104
8105         * Applied double free patch from cras to Irssi SILC client.
8106           Affected files irssi/src/core/[modules/expandos].c
8107
8108         * Fixed the disconnection handling to Irssi SILC Client.
8109           The application must call silc_client_close_connection
8110           in ops->connect client operation in case of failure of
8111           the connection.  Affected file is
8112           irssi/src/silc/core/client_ops.c.
8113
8114         * Do not set sock->protocol to NULL in the function
8115           silc_client_close_connection after executing the protocol's
8116           final callback since the sock might not be valid anymore.
8117           Affected file lib/silcclient/client.c.
8118
8119 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8120
8121         * Do not enable SILC_THREADS if the linking with libpthread
8122           did not happen.  Affected file configure.in.pre.
8123
8124         * Added notion to protocol specification that server must
8125           verify the sent authentication payload with CMODE when
8126           setting the channel founder key.  Implemented it to the
8127           server.  Affected file silcd/command.c.
8128
8129 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8130
8131         * Added _EXTRA_DIST SILC distribution variable to the
8132           distributions file.  It is used to conditionally add extra
8133           files or directories to the specific distribution.  Affected
8134           files ./prepare, Makefile.am.pre and distributions.
8135
8136           Removed the `_' from the start of the distribution names.
8137           It is redundant.
8138
8139         * Added README.WIN32 for instructions to compile the Toolkit
8140           under WIN32.
8141
8142 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8143
8144         * Fixed a double free in disconnection in the server.  Affected
8145           file is silcd/server.c.
8146
8147         * Fixed the lib/silcske/groups.c to work now also with GMP
8148           MP library.  The string conversion did not work when using
8149           specific base and the base is indicated in the string as well.
8150
8151         * Created win32/ directory which now includes MSVC++ specific
8152           stuff so that toolkit (DLLs) may be compiled with MSVC++.
8153           It will appear only in the toolkit distribution
8154
8155 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8156
8157         * Changed the key material distribution function in case when
8158           the hash output is too short.  The data is now concatenated
8159           a bit differently than it used to.  Made the change to the
8160           SKE protocol specification.
8161
8162         * Added better GMP detection to configure.in.pre.  A patch
8163           by salo.
8164
8165 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8166
8167         * Fixed a minor bug in SKE that might cause some problem on
8168           some platforms.  Affected file lib/silcske/silcske.c.
8169
8170         * Added the cookie checking for initiator in the SKE.  It checks
8171           that the responder returns the sent cookie unmodified.  The
8172           affected file is lib/silcske/silcske.c.  Added new SKE
8173           error type INVALID_COOKIE that can be sent during the
8174           negotiation.  Fixed some memory leaks as well.
8175
8176         * Added the "invalid cookie" error message to Irssi SILC client's
8177           message formats.
8178
8179 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8180
8181         * Added `task_max' field to the SilcClientParams to indicate
8182           the maximum tasks the scheduler can handle.  If set to zero,
8183           default values are used.  Affected file lib/silcclient/silcapi.h.
8184
8185         * Fixed memory leaks in silc_client_close_connection.  Affected
8186           file lib/silcclient/client.c.
8187
8188         * Added silc_client_del_client_entry to client library to free
8189           all memory of given client entry.  Affected file is
8190           lib/silcclient/idlist.[ch].
8191
8192         * Added new functions silc_client_del_channel and
8193           silc_client_del_server to delete channel and server entries.
8194           Affected file lib/silcclient/[silcapi.h/idlist.c].
8195
8196         * Removed silc_client_del_client_by_id from silcapi.h.
8197
8198         * Fixed the INFO command to return the server's own info
8199           correctly when querying by Server ID.  Affected file is
8200           silcd/command.c.
8201
8202 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8203
8204         * Removed the non-blocking settings in WIN32 code in the
8205           silc_sock_[read/write] and added SleepEx instead.  Affected
8206           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
8207           of input data is now checked with FIONREAD and ioctlsocket.
8208
8209 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8210
8211         * Call silc_schedule_task_del_by_context in the
8212           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
8213           Affected file lib/silccore/silcprotocol.c.
8214
8215         * Call silc_protocol_cancel for active protocols in the
8216           silc_server_close_connection if the funtion
8217           silc_server_free_sock_user_data has not been called.
8218           Affected file silcd/server.c.
8219
8220         * Generic tasks cannot be deleted using the del_by_fd
8221           task deleting function since generic tasks does not match
8222           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
8223
8224         * Added a notion to SILCOPER help file that the SILCOPER works
8225           only on router server, not on normal server.
8226
8227 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8228
8229         * Added for WIN32 support for the new scheduler as well.
8230           Affected file lib/silcutil/win32/silcwin32schedule.c.
8231
8232         * Fixed the SHA1 implementation to work on various platforms.
8233
8234 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8235
8236         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
8237           API.  It is part of the scheduler now.  Everything else is
8238           as previously but some functions has changed their names.
8239           Checkout the lib/silcutil/silcschedule.h for the interface.
8240           Updated all applications to use the new interface.  Affected
8241           files are lib/silcutil/silcschedule.[ch].
8242
8243 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8244
8245         * Found a bug in the SKE implementation.  The HASH value,
8246           specified by the protocol, was not computed correctly.  The
8247           public key of the responder was not added to the computation
8248           even though it is mandatory.  Affected file lib/silcske/silcske.c.
8249           This unfortunately causes incompatibilities with older
8250           clients and servers.
8251
8252         * Added WIN32 specific network init and uninit functions:
8253           silc_net_win32_init and silc_net_win32_uninit to init and uninit
8254           the Winsock2.  Affected file lib/silcutil/silcnet.h and
8255           lib/silcutil/win32/silcwin32net.c.
8256
8257         * Set the socket always to nonblocking mode on WIN32 after
8258           reading data or writing data.  Affected file is
8259           lib/silcutil/win32/silcwin32sockconn.c.
8260
8261 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8262
8263         * Fixed various compilation problems under WIN32.  Affected
8264           files lib/silcutil/win32/silcwin32thread.c and
8265           lib/silcutil/win32/silcwin32schedule.c.
8266
8267         * Removed all _internal.h #includes from public header
8268           files.  Internal headers must never be included from
8269           public headers.
8270
8271           Removed also the lib/silcske/payload_internal.h file.
8272
8273         * All include files that may be needed (public and some others
8274           included by the public headers) by application developers are
8275           now copied to the ./includes directory.  It does not copy any
8276           internal headers.  Affected file Makefile.defines.pre and all
8277           Makefile.am's under lib/ and subdirs.
8278
8279 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8280
8281         * Do not change the ~/.silc directory's permissions automatically.
8282           Affected file irssi/src/silc/core/clientutil.c.
8283
8284 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8285
8286         * Do not cancel the protocol in silc_server_close_connection
8287           it might cause recursion.  Now cancelled in the function
8288           silc_server_free_sock_user_data.  Affected file silcd/server.c.
8289
8290         * Fixed the silc_server_remove_clients_by_server to regenerate
8291           the channel keys correctly finally.  Added also new function
8292           silc_server_remove_clients_channels to actually do it.
8293           Affected file silcd/server.c.
8294
8295         * Fixed the silc_server_new_channel to not crash by giving
8296           wrong router to the new channel.  Affected file is
8297           silcd/packet_receive.c.
8298
8299 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8300
8301         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
8302           which is given as argument to the silc_client_alloc now.
8303           It can be used to configure the client and set various parameters
8304           that affect the function of the client.
8305
8306         * The USERS command in server did not check whether the channel
8307           is private or secret.  Affected file silcd/command.c.
8308
8309         * Added new argument to the USERS command in protocol specification.
8310           The USERS command now can take the channel name as argument
8311           as well.  Added support for this in client and server and
8312           updated the protocol specs.
8313
8314         * Completed the GETKEY command in client. It can be now used
8315           to fetch also servers public key not only some clients.
8316           Affected files lib/silcclient/command[_reply].c.
8317
8318         * Added silc_client_get_server to return server entry by the
8319           server name.  Affected files lib/silcclient/silcapi.h and
8320           idlist.c.
8321
8322         * Redefined the IDENTIFY command in protocol specification to be
8323           more generic.  It now can be used to query information about
8324           any entity in the SILC Network, including clients, servers and
8325           channels.  The query may be based either the entity's name
8326           or the ID.  Added support for this in both client and server.
8327
8328           Affected files silcd/command.c and lib/silcclient/command.c
8329           and command_reply.c.
8330
8331         * Optimized the WHOIS and WHOWAS commands in the server. Removed
8332           the _from_client and _from_server functions.  Affected file
8333           silcd/command.c.
8334
8335         * Added silc_client_get_channel_by_id_resolve to the file
8336           lib/silcclient/silcapi.h to resolve channel information by
8337           its ID.  Added also silc_client_get_channel_by_id that
8338           does not resolve it from the server.
8339
8340 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8341
8342         * Added SilcServerEntry context into the client library
8343           to represent one server.  The INFO command now allocates
8344           these to save the resolved server info.  For now on the
8345           client library will also keep information about servers,
8346           connected and resolved with INFO.
8347
8348           The INFO command now allocates the SilcServerEntry context
8349           and saves the server info there.  The COMMAND_REPLY in
8350           the INFO now returns the parameters to application in
8351           same order as defined in the protocol specification.
8352
8353           The entries are cached in the client->server_cache.
8354
8355         * The INFO command is now issued after received the Client ID
8356           from the server.  Affected file lib/silcclient/client.c.
8357
8358         * The CMODE_CHANGE notify may now return also an SilcServerEntry
8359           to the application as the mode changer might be server.
8360           It is guaranteed that NULL is not returned anymore to the
8361           application.  Affected file lib/silcclient/client_notify.c.
8362
8363           The ID Type is now also passed to the application so that
8364           it can check whether the returned entry is SilcClientEntry
8365           or SilcServerEntry.
8366
8367           Added new function silc_client_get_server_by_id to return
8368           the server entry by ID.  Affected files are the
8369           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
8370
8371         * Do not create the channel in the Irssi SILC Client when issuing
8372           the JOIN command but when received the sucessful JOIN command
8373           reply.  Otherwise the channel might get created even though we
8374           could not join it.  The Affected file is
8375           irssi/src/silc/core/[silc-channels.c/client_ops.c].
8376
8377         * Fixed a channel joining bug in router.  The router must also
8378           check the channel modes, invite and ban lists etc. when serving
8379           the JOIN command sent by normal server.  Affected file is
8380           silcd/command.c.  The router now resolves the client's
8381           information from the server who sent the JOIN command if it
8382           does not know it, and processes the JOIN command only after
8383           that.
8384
8385         * Changed the SilcCommandCb to take new argument; void *context2.
8386           Affected file lib/silccore/silccommand.h
8387
8388           The second argument in the command callbacks in the server now
8389           includes the SilcServerCommandReplyContext if the command was
8390           called as pending command callback from the command reply.
8391           Otherwise it is NULL. When called as pending the status of the
8392           command reply will be checked and if it was erronous the
8393           error will be sent to the original sender of the command.
8394           This way the client always receives the error messages even
8395           though the server was actually the one who received the error
8396           when it resent the command to router, for example.  Affected
8397           files silcd/command[_reply].[ch].
8398
8399         * Fixed sending WHOWAS command's error message to client if
8400           the requested client could not be found.  It was missing.
8401           silcd/command.c.
8402
8403         * Changed the CMODE and CUMODE commands reply arguments in the
8404           protocol specification.  The Channel ID is now sent in both
8405           of the commands to identify the channel.  Implemented this
8406           new feature to the client and server.  Affected files
8407           lib/silcclient/command_reply.c and silcd/command.c.
8408
8409         * Made better checks for invite and ban lists in the JOIN
8410           command in server.  Affected file silcd/command.c.
8411
8412 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8413
8414         * The server now performs the incoming host IP/DNS lookup
8415           using the silc_socket_host_lookup and thus does not block
8416           the server anymore.  Affected file silcd/server.c.
8417
8418         * Completed the multi-thread support for SILC Scheduler in
8419           the lib/silcutil/silcschedule.c.
8420
8421         * Fixed the configure.in.pre to detect the pthread correctly
8422           on various systems.
8423
8424         * Fixed a deadlock in silc_task_queue_wakeup in the file
8425           lib/silcutil/silctask.c.
8426
8427 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8428
8429         * Added new function silc_schedule_wakeup that is used in
8430           multi-threaded environment to wakeup the main thread's
8431           schduler. It needs to be used when a thread adds a new task
8432           or removes a task from task queues. After waking up, the
8433           scheduler will detect the task queue changes. If threads
8434           support is not compiled in this function has no effect.
8435           Implemented the wakeup mechanism to both Unix and WIN32
8436           systems.  Affected files are lib/silcutil/silcschedule.[ch],
8437           lib/silcutil/unix/silcunixschedule.c and the
8438           lib/silcutil/win32/silcwin32schedule.c.
8439
8440         * Added new function silc_task_queue_wakeup to wakeup the
8441           scheduler by the specified task queue.  Affected file
8442           lib/silcutil/silctask.[ch].
8443
8444         * The silc_socket_host_lookup_start now wakes up the scheduler
8445           after adding the timeout task.  Affected file is
8446           lib/silcutil/silcsockconn.c.
8447
8448         * The silc_socket_host_lookup is synchronous now if the threads
8449           support is not compiled in.  However, the callback is still
8450           called asyncronously through the scheduler, anyway.  Affected
8451           file lib/silcutil/silcsockconn.c.
8452
8453 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8454
8455         * Added new function silc_socket_host_lookup to perform
8456           asynchronous IP and FQDN lookups for the socket connection.
8457           Affected files lib/silcutil/silcsockconn.[ch].
8458
8459 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8460
8461         * Added SILC_MUTEX_DEFINE to define the mutex on environments
8462           that may or may not compile the mutex support in.
8463
8464           Changed the silc_mutex_alloc interface. It allocates the
8465           mutex now to the sent pointer and returns TRUE or FALSE.
8466
8467           Affected file lib/silcutil/silcmutex.h.
8468
8469         * Wrote the SILC Task Queue interface to support multi-threads.
8470           Affected file lib/silcutil/silctask.[ch].
8471
8472         * Wrote the SILC Scheduler to support multi-threads.  Affected
8473           file lib/silcutil/silcschedule.c.
8474
8475 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8476
8477         * Implemented the SILC Mutex API and SILC Thread API for WIN32
8478           in lib/silcutil/win32/.
8479
8480 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8481
8482         * Defined SILC Mutex API and SILC Thread API and implemented
8483           them for Unix.  Affected files are
8484           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
8485           lib/silcutil/unix/silcunixmutex.c and
8486           lib/silcutil/unix/silcunixthread.c.
8487
8488 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8489
8490         * Fixed the silc_server_remove_clients_by_server's channel
8491           key re-generation.  The hash table handling was incorrect
8492           and would not work with many channels.  Affected file is
8493           silcd/server.c.
8494
8495         * Fixed some memory leaks around the server code.
8496
8497         * Rewrote the silc_server_get_users_on_channel to support IPv6
8498           based Client ID's.  Affected file silcd/server.c.
8499
8500         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
8501           specification.  However, a separate document must be written
8502           to define the detailed signing procedure and the payload
8503           associated with the flag.  Defined the flag to the
8504           lib/silccore/silcchannel.h as well.
8505
8506 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8507
8508         * Changed the dynamic tables to static size tables in the
8509           lib/silccrypt/silchmac.c.
8510
8511         * Removed GCC dependencies from the code.  A patch by cras.
8512
8513 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8514
8515         * Do not show the error "Error receiving packet bla bla"
8516           in server if it really was not an error (-2 means that reading
8517           is pending).  Affected file silcd/server.c.
8518
8519 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8520
8521         * Fixed a possible crash in silc_server_remove_clients_by_server
8522           in silcd/server.c.  Fixed there also some memory leaks.
8523
8524         * Fixed the silc_idlist_replace_client_id.  It could replace
8525           wrong key in the hash table.  Affected file silcd/idlist.c.
8526
8527         * Do not check whether there are global users on the channel
8528           if the channel->global_users is FALSE.  Affected functions
8529           silc_server_remove_from_one_channel and
8530           silc_server_remove_from_channels in silcd/server.c.  Also,
8531           do not check if the removed client is local as we can be
8532           sure that global client was not removed from the channel
8533           and checking for global users is not needed.
8534
8535         * The silc_server_remove_clients_by_server now re-generates
8536           the channel keys correctly for those channels that had
8537           clients removed from them.  Affected file silcd/server.c.
8538
8539 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8540
8541         * Found the reason of random crashes in the server.  We weren't
8542           ignoring the SIGPIPE signal (which can be sent in write())
8543           and it crashed the server.  Affected file silcd/silcd.c.
8544
8545 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8546
8547         * Assure that sock->user_data is not NULL in the function
8548           silc_server_packet_send in silcd/packet_send.c.
8549
8550         * Disconnect the remote connection if it could not be added
8551           to any ID lists in the server.  The affected file is
8552           silcd/server.c.
8553
8554         * Check in silc_server_packet_send[_real/dest] that the
8555           socket is not disconnecting and ignore the data if it is.
8556           Affected file silcd/packet_send.c.
8557
8558         * Define inline to __inline on native WIN32 compilation.
8559           Affected file includes/silcwin32.h.
8560
8561         * Added some explicit type casts for inline code since MSVC
8562           require them.  Affected files lib/silcutil/silcbuffer.h,
8563           lib/trq/silcdlist.h and lib/trq/silclist.h.
8564
8565         * Print warning in log files from now on if the packet
8566           decryption fails.  Affected file silcd/server.c.
8567
8568 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8569
8570         * Changed the `say' client operation's interface to accept
8571           new `type' argument to indicate the type of the message sent
8572           by the library.  The application may filter the library's
8573           messages according the type.  The affected file is the
8574           lib/silcclient/silcapi.h.
8575
8576         * Added two new functions to lib/silcclient/silcapi.h:
8577           silc_client_del_client and silc_client_del_client_by_id.
8578           Affected file lib/silcclient/idlist.c.
8579
8580         * Moved the clientincludes.h from includes/ to silc/ and
8581           serverincludes.h from includes/ to silcd/.
8582
8583         * The modes for the CMODE and CUMODE are now passed as
8584           uint32 for application with COMMAND_REPLY.  The affected
8585           file is lib/silcclient/command_reply.c.
8586
8587 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8588
8589         * /WHOIS without arguments shows client's own information.
8590           Affected file lib/silcclient/command.c.
8591
8592         * Changed PING to not accept any arguments.  The specs
8593           says that client can ping only the connected server so
8594           requiring an argument is not needed.  Affected file is
8595           lib/silcclient/command.c.
8596
8597 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8598
8599         * Fixed a fatal bug in private message sending and reception
8600           encryption and decryption when using private message keys.
8601           The implementation was incorrect and did not follow the
8602           specification.  It causd that some of the message were
8603           lost since it did not use the sending and receiving keys
8604           as the protocol suggests.  This has been fixed and will cause
8605           incompatibilities with older clients when sending private
8606           message encrypted with private message keys.  Affected files
8607           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
8608           and various other in Irssi SILC Client.
8609
8610           Added `responder' boolean argument to the functions
8611           silc_client_add_private_message_key[_ske] to indicate when
8612           the key is added as responder or initiator of the key
8613           negotiation.
8614
8615 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8616
8617         * Removed the silc_ske_check_version function and created
8618           a SilcSKECheckVersion callback.  Added also a function
8619           silc_ske_set_callbacks that is now used to set all SKE
8620           callbacks.  The callback functions are not given to
8621           the SKE functions anymore, but this function is used to
8622           set the callbacks.
8623
8624         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
8625
8626         * Added `silc_version' argument to the silc_client_alloc
8627           to define the version of the application for the library.
8628           The library will use the version string to compare it
8629           against the remote host's (usually a server) version
8630           string.  Affected file lib/silcclient/silcapi.h
8631
8632         * Added the KE protocol context to Key Agreement context
8633           in client library so that we can abort the SKE if it
8634           is in process when we get timeout.  Affected file is
8635           lib/silcclient/client_keyagr.c.
8636
8637         * Do not resolve the client ID forever if it returns in the
8638           first time that such client does not exist.  This was done
8639           for example with private message.  Affected file is
8640           lib/silcclient/client_prvmsg.c.
8641
8642 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8643
8644         * Do not add regex.h for WIN32.  The affected file
8645           includes/silcincludes.h.
8646
8647         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
8648           not work yet 100%.  It generates the DLL's automatically
8649           when compiling with --with-win32 under cygwin.
8650
8651 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8652
8653         * lib/contrib/regex.c is not compiled on WIN32.
8654
8655         * Added silc_net_get_socket_opt function to the
8656           lib/silcutil/silcnet.h.
8657
8658         * Added includes/silcwin32.h for WIN32 specific includes
8659           and definitions.
8660
8661         * Do not use ptime structure or any of the posix process
8662           functions on WIN32 in lib/silccrypt/silrng.c.
8663
8664         * Added silc_gettimeofday to provide generic function
8665           for struct timeval on all platforms.  Added the function
8666           to lib/silcutil/silcutil.h.
8667
8668 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8669
8670         * Moved the lib/silccore/silcsockconn.[ch] to the utility
8671           library as they clearly belong there.  As a plus side we
8672           can make the actual socket connection routines platform
8673           specific.
8674
8675           Added also new generic function silc_socket_read and
8676           silc_socket_write (that used to be silc_packet_[read/write].
8677           The implementation of these are platform specific.
8678
8679         * Added WIN32 specific routines of silc_socket_[read/write]
8680           to lib/silcutil/win32/silcwin32sockconn.c.
8681
8682 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8683
8684         * Added preliminary support for native WIN32 compilation under
8685           cygwin (using the -mno-cygwin option for GCC) to the
8686           ./configure.in.pre.  The --with-win32 now prepares the
8687           compilation for native WIN32.
8688
8689         * Rewrote the SILC Scheduler interface in the file
8690           lib/silcutil/silcschedule.h.  The scheduler is now context
8691           based and does not have anymore any global static scheduler.
8692           Moved the Unix scheduler to the lib/silcutil/unix/ directory
8693           and created lib/silcutil/win32 directory for WIN32 based
8694           scheduler.
8695
8696         * Added Unix specific network routines to the
8697           lib/silcutil/unix/silcunixnet.c and the old
8698           lib/silcutil/silcnet.c includes now only generic routines.
8699
8700           Added WIN32 specific network routines to the
8701           lib/silcutil/win32/silcwin32net.c.
8702
8703         * Added Unix specific utility functions from the
8704           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
8705
8706         * Added WIN32 SILC Scheduler to the file
8707           lib/silcutil/win32/silcwin32schedule.c. The code is of course
8708           untested.
8709
8710 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8711
8712         * Do not handle JOIN notify in the server if the target client
8713           is not registered (idata->registered == FALSE).  The affected
8714           file is silcd/packet_receive.c.
8715
8716         * Update the nickrec->founder in event_cumode in the Irssi SILC
8717           client.  Affected file irssi/src/silc/core/silc-channels.c.
8718
8719         * Fixed the CUMODE_CHANGE notify handling in the server when
8720           server and router are announcing their clients on channels.
8721           Now the mode changes are saved and notified correctly.  The
8722           affected file is /silcd/packet_receive.c.
8723
8724         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
8725           They really did not replace the cache entry in the ID Cache.
8726           Now they do that.  Affected file silcd/idlist.c.
8727
8728         * Fixed the KICK notify handling in the Irssi SILC client to
8729           update the channel records so that the kicked client does not
8730           appear to be on the channel.  The affected file is
8731           irssi/src/silc/core/silc-channels.c.
8732
8733         * Always update the conn->current_channel when executing command
8734           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
8735
8736         * Fixed the KILL notify handling in Irssi SILC client to remove
8737           the killed client on all channels.
8738
8739 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8740
8741         * Fixed the silc_parse_command_line to remove extra spaces
8742           from the start and end of the arguments.  Affected file is
8743           lib/silcutil/silcutil.c.
8744
8745         * Cancel and free any active protocol in the function
8746           silc_server_close_connection.  Affected file silcd/server.c.
8747
8748         * Cancel and free any active protocol in the function
8749           silc_client_close_connction.  Affected file is
8750           lib/silcclient/client.c.
8751
8752         * Do not execute the KILL command for clients that are in
8753           history (ie. they are not in the network).  Affected file is
8754           silcd/command.c.
8755
8756         * Fixed KILL notify handling, client does not crash anymore.
8757           Affected file irssi/src/silc/core/silc-channels.c.
8758
8759         * Reduced the default packet buffer size from 2048 to 1024 in
8760           lib/silccore/silcpacket.c.
8761
8762         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
8763           counter to the SKE context that is incresed when the SKE library
8764           performs async operation outside the library.  If the outside
8765           process frees the SKE context and FREED status will be set
8766           and the library will detect after the sync operation that the
8767           libary is freed.  The affected files are
8768           lib/silcske/silcske[_status].[ch].
8769
8770         * Resolve the client entry information in the function
8771           silc_client_channel_message to assure that NULL pointer is not
8772           passed as client entry to the application. */
8773
8774         * Fixed the task timeout calculation to assure that there is
8775           never negative timeouts.  The affected file is
8776           lib/silcutil/silcschedule.c.
8777
8778         * Fixed the channel user mode notification sending in server.
8779           It was sent point-to-point to the router (or to server by router)
8780           but it needs to be destined to a channel.  The routines now
8781           supports sending the channel user mode notifys to the channels
8782           when announcing clients and channels.  Affected files are
8783           silcd/server.c and silcd/packet_receive.c.
8784
8785         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8786           It did not actually replace the old channel entry in the cache.
8787           Affected file lib/silcclient/client_notify.c.
8788
8789 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8790
8791         * Fixed a possible crash in silc_packet_send_prepare.  It now
8792           assures always that there is enough space in the buffer and
8793           at the tail area of the buffer (for MAC).
8794
8795           Fixed the inbound buffer reallocation in silc_packet_read.
8796           It was old code and did not handle the reallocation correctly.
8797           Affected
8798
8799           The affected file is lib/silccore/silcpacket.c.
8800
8801         * Fixed buffer overflow in silc_parse_nickname in the file
8802           lib/silcutil/silcutil.c.
8803
8804 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8805
8806         * make install generates new server keys only if there is not
8807           keys already.
8808
8809 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8810
8811         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8812           Added check that if the NOREPLY is set then we will not send
8813           the away message.  This avoids infinite loop of away messages
8814           if both clients are away.  The affected file is
8815           lib/silcclient/client_prvmsg.c.
8816
8817         * Fixed client crash if /NICK was given without arguments.
8818           Affected file lib/silcclient/command.c.
8819
8820         * Server does not send the invite list in INVITE command back
8821           to the client if the list was not altered.  Added this notion
8822           to the protocol spec as well.  Affected file silcd/command.c.
8823
8824           Fixed possible crash in INVITE command by checking the
8825           value of silc_server_get_client_route command.
8826
8827         * Fixed the INVITE notify type handling.  The arguments are now
8828           taken in correct order and client does not crash.  The affected
8829           file is irssi/src/silc/core/silc-channels.c.
8830
8831           Removed the "Inviting xxx to channel" message from the
8832           client library away and let the application handle it.
8833           Affected file lib/silcclient/command.c.  Added that message
8834           to Irssi SILC client's message formats.
8835
8836         * Fixed CMODE command crash in client.  It now checks the
8837           amount of arguments correctly and does not crash.  The affected
8838           file is lib/silcclient/command.c.
8839
8840         * Do not create new channel automatically in silc_channels_join
8841           but check whether the channel by that name already exists.
8842           Affected file irssi/silc/core/silc-channels.c.
8843
8844         * Do not send the SERVER_SIGNOFF to router if the disconnected
8845           entity was the router.  Affected file silcd/server.c.
8846
8847         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8848           SILC client as it was missing from there.
8849
8850           Added the handling of the KICK notify to the Irssi SILC client
8851           as it was missing.  Added "you have been kicked" message to
8852           Irssi SILC client's message modules formats.
8853
8854           Added the handing of the KILL notify to the Irssi SILC client
8855           as it was missing.  Added the kill message module formats
8856           as well.
8857
8858           The affected file is irssi/src/silc/core/silc-channels.c.
8859
8860         * The router did not save the channel mode the server announced.
8861           Affected file silcd/packet_receive.c.
8862
8863         * Fixed a possible crash in INFO command in server.  If the
8864           server did not provide the server info it crashed.  Affected
8865           file silcd/command.c.
8866
8867 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8868
8869         * Fixed the GETKEY command in the server to check also the
8870           global list.  Otherwise the GETKEY would not work correctly
8871           in normal SILC server.  Affected file silcd/command.c.
8872
8873 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8874
8875         * Fixed GETKEY crash, it crashed if the command did not succseed.
8876
8877 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8878
8879         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8880           is now real and not just an macro interface to GMP.
8881
8882           Removed the entire GMP from the source tree and imported new
8883           NSS MPI library instead.  Reason for removing GMP is that it is
8884           extremely large and compiles extremely slow.  The NSS MPI
8885           is only a few files and compiles in less than 10 seconds.
8886           The speed is also about the same as GMP.  The MPI is imported
8887           to lib/silcmath/mpi.
8888
8889           If the system has GMP installed we will still use the GMP.
8890           If it is not then the NSS MPI will be compiled.
8891
8892 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8893
8894         * Merged a long nickname (127 characters long) crash bugfix from
8895           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8896
8897         * Merged a freed memory reference bugfix from Irssi CVS tree.
8898           Affected file irssi/src/core/commands.c.
8899
8900 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8901
8902         * Added the server's public key sving and verification to the
8903           server when performing the SKE.  This was missing and the
8904           remote server's (or router's) public key was accepted without
8905           checking whether we have it previously or trust it at all.
8906           Affected file silcd/protocol.c.
8907
8908 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8909
8910         * Check in the silc_server_timeout_remote if protocol is active
8911           and make sure that the protocol's final callback is called so
8912           that all memory if freed.  Affected file silcd/server.c.
8913
8914 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8915
8916         * silc_server_whois_send_reply crashed the server if the nickname
8917           was 127 characters long.  Affected file silcd/command.c.
8918
8919 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8920
8921         * Added sanity check to the silc_server_new_client. If the hostname
8922           is provided inside username then check that the provided hostname
8923           really is the same as the resolved one.  If the hostname was not
8924           resolved then check it from the public key.  Affected file is
8925           silcd/packet_receive.c.
8926
8927         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8928           if the server disconnected us and the connection is not valid
8929           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8930
8931         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8932           the library to the lib/silcutil/silcutil.[ch].
8933
8934 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8935
8936         * Close log file after open.  Affected file
8937           lib/silcutil/silclog.c.
8938
8939         * Check whether sock == NULL in silc_client_send_packet and return
8940           if it is.  Affected file lib/silcclient/silcclient.c.
8941
8942         * Check rec->entry == NULL in the Irssi SILC Client before
8943           sending the channel message.  Affecte file is
8944           irssi/src/silc/core/silc-servers.c.
8945
8946 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8947
8948         * Merged a splitted window bugfix from Irssi CVS tree.  The
8949           affected file is irssi/src/fe-text/textbuffer-view.c.
8950
8951         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8952           It did not print nickname.
8953
8954         * Improved the distributions system a bit.
8955
8956 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8957
8958         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8959           irssi/src/fe-text/gui-window.c.
8960
8961         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8962           to in-active server.  The affected file is
8963           irssi/src/silc/core/client_ops.c.
8964
8965         * Resolve the client in USERS command reply if the entry does
8966           not have username resolved.  The affected file is
8967           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8968           command to WHOIS command to really resolve stuff.  The USERS
8969           is not used any more in any critical section so WHOIS can
8970           be used even though it might be slower than IDENTIFY.
8971
8972         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8973           format.
8974
8975 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8976
8977         * Changed the protocol API a bit more consistent in the
8978           lib/silccore/silcprotocol.[ch].
8979
8980         * Changed the following headers to ROBODoc format:
8981
8982                 lib/silccore/silcpayload.h
8983                 lib/silccore/silcprotocol.h
8984                 lib/silccore/silcsockconn.h
8985
8986           All core library headers are now formatted.
8987
8988 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8989
8990         * Fixed a bug in Irssi SILC client; do not show that you are
8991           server/router operator if you really are not.  Affected file is
8992           irssi/src/silc/core/client_ops.c.
8993
8994         * Renamed silc_command_free_payload to silc_command_payload_free.
8995           Affected file lib/silccore/silccommand.h
8996
8997         * Added silcmath.h to include the prototoypes of various routines
8998           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8999           silcprimegen.h.
9000
9001         * Changed the following headers to ROBODoc format:
9002
9003                 lib/silccore/silcchannel.h
9004                 lib/silccore/silccommand.h
9005                 lib/silccore/silcid.h
9006                 lib/silccore/silcidcache.h
9007                 lib/silccore/silcmode.h
9008                 lib/silccore/silcnotify.h
9009                 lib/silccore/silcpacket.h
9010                 lib/silcmath/silcmath.h
9011
9012 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9013
9014         * Added checking to the server code not to start the server if
9015           ciphers and stuff are not configured properly.  Affected files
9016           silcd/serverconfig.[h] and silcd/server.c.
9017
9018         * Changed the layout of the header files of the public interfaces
9019           in the SILC libraries.  The new layout supports ROBODoc
9020           documentation tool (and some others) so that it is easy to create
9021           a library reference manual.  All the other headers and source
9022           code must still follow the CodingStyle document.  Also source
9023           code must not include these ROBODoc stuffs, only the headers.
9024           Furthermore, all public interface headers must now be named
9025           by using `silc' prefix, example: silcapi.h, silccipher.h.
9026           Some files were renamed due to this.  All the other headers
9027           must not be used as public interfaces.  I will update the
9028           CodingStyle document later.  Changed following headers, so far:
9029
9030                 lib/silcclient/silcapi.h
9031                 lib/silccore/silcauth.h
9032                 lib/silccore/silcprivate.h
9033                 lib/silccrypt/silcdh.h
9034
9035 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9036
9037         * Updated TODO.
9038
9039         * Removed silc_client_packet_send_flush from the client library
9040           as it is not needed.  Affected file lib/silcclient/client.[ch].
9041
9042         * Added printing of message of unresolved authentication method
9043           to the Irssi SILC client.  Added it to the module formats.
9044           Removed the same message from the client library.
9045
9046 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9047
9048         * Added new distribution feature, DISTLABEL.  Every distribution
9049           can define own preprocessor label that can be used in the
9050           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
9051           file distributions, acconfig.h.pre and prepare.
9052
9053 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9054
9055         * Added Makefile.defines_int to include the actual definitions
9056           for Makefile.defines.in.  Tested the new distribution system,
9057           created distributions and tested installation.
9058
9059         * Added AWAY message printing to the Irssi SILC client.  Added
9060           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
9061
9062         * Added SCONNECT command to call the SILC's CONNECT command.
9063           Cannot use CONNECT directly since Irssi uses that internally.
9064           Affected file irssi/src/silc/core/silc-servers.c.
9065
9066           Added ACTION local command.  It is same as ME command but takes
9067           the channel as mandatory argument.
9068
9069           Rewrote some of the Irssi's help files to suite for SILC
9070           protocol.
9071
9072 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9073
9074         * Added Makefile.defines[.in] that should for now on be included
9075           in all Makefile.am file in the source tree.  That file includes
9076           all common compilation definitions for SILC source tree.
9077
9078 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9079
9080         * Minor changes to the ./prepare script to change the package
9081           name according the distribution name to the configure.in.
9082
9083 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9084
9085         * Created new distribution system.  Added file `distributions'
9086           that defines all the distributions that can be created out of
9087           the SILC source tree.  The ./prepare script now reads that
9088           file to determine how to prepare the distributions.  The
9089           first argument to the ./prepare is the name of the distribution
9090           and second is the version of the distribution.  If given
9091           without arguments it creates the default (toolkit) distribution
9092           with the default version (defined in ./prepare).
9093
9094           All Makefile.am files that are subject to the distributions
9095           are now named as Makefile.am.pre.  These are ./Makefile.am
9096           and lib/Makefile.am.  Others may be changed later.
9097
9098 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9099
9100         * Added invite list, ban list, some key management and connection
9101           error message printing to module formats in the Irssi SILC client.
9102
9103         * Added new silc_client_set_away_message to set the away message
9104           that is back to the person who sent private message.  The
9105           affected file lib/silcclient/silcapi.h and the
9106           lib/silcclient/client_prvmsg.c.
9107
9108 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9109
9110         * Fixed the private message sending in the Irssi SILC client,
9111           added local command KEY to the Irssi SILC client.
9112
9113           Added key management and key agreement message formats to the
9114           irssi/src/fe-common/silc/module-formats.[ch].
9115
9116           Added USERS (alias WHO) printing, server/router operator
9117           indication and LIST command printing to the module formats.
9118
9119 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9120
9121         * Fixed channel joining notify handling, cumode notify handling
9122           from Irssi SILC client.
9123
9124         * Added SILC specific module-formats to the Irssi SILC client so
9125           that SILC specific message hilighting, colors etc is possible.
9126           Affected file irssi/src/fe-common/silc/module-formats.[ch].
9127
9128           Added channel mode, channel user mode, actions, notices,
9129           whois and whowas printing to the the module-formats.c.
9130
9131         * Fixed a bug in channel deletion in the server.  The channel
9132           is not left to the cache even if the channel founder auth mode
9133           is set when there are no users anymore on the channel.  Affected
9134           file silcd/server.c.
9135
9136         * The silc_net_localhost now resolves the entire hostname including
9137           the domain name.  Affected file lib/silcutil/silcnet.c.
9138
9139 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9140
9141         * Changed the ask_passphrase client operation to be ascynchronous.
9142           It has now a completion callback and a context that the
9143           application must call after it has got the passphrase from
9144           the user.  Affected files lib/silcclient/silcapi.h,
9145           lib/silcclient/protocol.c, lib/silcclient/command.c and
9146           silc/client_ops.c.
9147
9148           Added SilcAskPassphrase callback that the application calls
9149           to deliver the passphrase to the library.
9150
9151         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
9152           The public key verification and especially a certificate
9153           verification is asynchronous procedure.
9154
9155           Added new SILC_SKE_STATUS_PENDING status to indicate the
9156           request is pending and a callback will be called to finalize
9157           the request.
9158
9159           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
9160           indicate that remote end did not send its public key (or
9161           certificate), even though we require it.  Added check for this
9162           condition in the SKE.  This was a security bug, now fixed.
9163
9164           Defined new SilcSKEVerifyCbCompletion callback that is called
9165           when the verification process is completed.
9166
9167           The affected files lib/silcske/silcske_status.h and
9168           lib/silcske/silcske.[ch].
9169
9170         * Changed the verify_public_key client operation to be async
9171           as well.  Defined SilcVerifyPublicKey callback that is used to
9172           indicate the success of the public key verification process.
9173
9174           Changed the server and client to use the new async client
9175           operations.
9176
9177         * Changed the Irssi SILC client's internal scheduler to be called
9178           twice as many times as it used to be.  As a result the client
9179           should be a bit faster now.  Affected file is
9180           irssi/src/silc/core/silc-core.c.
9181
9182         * Added support to Irssi SILC client of asynchronous public key
9183           verification and passphrase inquiry.  Affected file is
9184           irssi/src/silc/core/silc-core.c.
9185
9186 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9187
9188         * Do not say "You have left channel %s" in client library.
9189           Moved it to the application.  Affected files are
9190           lib/silcclient/command.c and silc/client_ops.c.
9191
9192         * Fixed silc_client_get_clients.  Command context was not
9193           duplicated and was freed memory in the callback.  Affected
9194           file lib/silcclient/idlist.c.
9195
9196         * Do not say "you are now talking..." on JOIN command in the
9197           client library.  The appliation must handle it.
9198
9199         * Do not say ".. changed topic to" in command reply in the
9200           client libary.  The application must handle it.
9201
9202         * Fixed TOPIC command sending in the client library.
9203
9204         * Fixed a memory leak in silc_client_command_free in the file
9205           lib/silcclient/command.c.
9206
9207 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9208
9209         * Imported a modified version of Irssi client to the source tree.
9210           The Irssi will be used to create a new client called
9211           Irssi SILC.  Imported to irssi/.
9212
9213           Added silc_core_init_finish function to the Irssi.  Affected
9214           file irssi/configure.in.
9215
9216           A lot changes in the Makefile.ams around the irssi tree.
9217
9218 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9219
9220         * Do not rehash if the new size is same as the old size of the
9221           hash table, in the silc_hash_table_rehash*.  The affected file
9222           lib/silcutil/silchashtable.c.
9223
9224         * Replaced hash_table_del_by_context calls from the server
9225           (when channel->user_list and client->channels) to the
9226           hash_table_del as it is sufficient and faster.
9227
9228 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9229
9230         * Added silc_hash_table_list, silc_hash_table_get and the
9231           SilcHashTableList structure to provide an alternative way to
9232           traverse the hash table.  The affected files are
9233           lib/silcutil/silchashtable.[ch].
9234
9235         * Changed the server's idlist routines to use the hash table
9236           routines to optimize the code.
9237
9238 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9239
9240         * Replaced the client entry's `channel' list and channel entry's
9241           `user_list' list to hash tables for optimized lookup.  Changed
9242           the code to use the hash table interface around the code.
9243           Affected file lib/silcd/idlist.[ch].
9244
9245         * Added `auto_rehash' boolean argument to the function
9246           silc_hash_table_alloc to indicate whether the hash table should
9247           auto-rehash when it thinks is appropriate time.  It will
9248           increase the hash table size if the there is twice as much
9249           entries in the table than the size of the table, and will
9250           decrease the size if there are twice as less entries than
9251           the size of the table.
9252
9253 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9254
9255         * Fixed silc_xxx_get_supported to not crash at some circumstances.
9256
9257 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9258
9259         * silc_idcache_purge_by_context deletes the entry now by context
9260           as it is supposed to do.  Affected file lib/silccore/idcache.c.
9261
9262         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
9263           client is not anymore valid (WHOWAS givens the info) and not
9264           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
9265
9266 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9267
9268         * Removed the `data' and `data_len' arguments from the ID Cache
9269           interfaces and added `name' argument.  ID Cache does not handle
9270           anymore the binary data only a names associated with given ID.
9271
9272         * When hashing a Client ID with silc_hash_id the entire ID is
9273           not hashed anymore, instead only the hash of the Client ID is
9274           hashed.  This way we can access the Client ID from the cache
9275           with Client ID but with the hash of the ID (which is a hash of
9276           the nickname) as well without any difference in performance.
9277
9278           Added also silc_idcache_find_by_id_one_ext to do one on one
9279           searching when we have the actual ID.  Added also function
9280           silc_hash_client_id_compare.  The affected files are
9281           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
9282
9283         * When hashing the name associated with a ID it is always done
9284           in lowercase.  This way we can access the cache without worrying
9285           about case-sensitivity, even though, for example nicknames are
9286           case sensitive.
9287
9288         * Fixed a bug in server with channel message sending.  It put
9289           wrong ID type as destination ID.  The affected file
9290           silcd/packet_send.c.
9291
9292         * silc_idcache_del_by_context now deletes from all hash tables
9293           by context.  Affected file lib/silccore/idcache.c.
9294
9295 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9296
9297         * Changed the client library to use the new ID Cache interface.
9298           Changes around the source tree.
9299
9300         * Added silc_hash_table_rehash_ext to rehash with specific
9301           hash function.  Affected file lib/silcutil/silchashtable.[ch].
9302
9303         * Added silc_hash_string_compare to compare two strings in the
9304           hash table.  Affected file lib/silcutil/silcutil.[ch].
9305
9306 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9307
9308         * Added new function silc_idcache_del_by_context into the
9309           lib/silccore/idcache.[ch].
9310
9311         * Changed the server's ID list routines to use the new ID Cache
9312           interface.  Changes around the source tree.
9313
9314 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9315
9316         * Added silc_hash_table_del[_by_context]_ext functions in to the
9317           lib/silcutil/silchashtable.[ch].
9318
9319           Removed silc_hash_table_find_all* routines and added new
9320           silc_hash_table_find_foreach to replace them.
9321
9322           Added silc_hash_table_replace_ext function as extended
9323           replacing function.  Separated the simple hash table interface
9324           from the extended hash table interface in the file
9325           lib/silcutil/silchashtable.h.
9326
9327         * Fixed minor bugs and changed it to use some of the new
9328           hash table functions in lib/silccore/idcache.c
9329
9330 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9331
9332         * Added new function silc_hash_table_find_all to return all keys
9333           in the hash table by the specified key.  As the hash table is
9334           collision resistant it also makes it possible to have several
9335           duplicate keys in the hash table.  This function may be used to
9336           find all of the keys from the hash.
9337
9338           Added user_context arguments to the SilcHashFunction,
9339           SilcHashCompare and SilcHashDestructor to deliver user specified
9340           context.
9341
9342           Added new fuctions silc_hash_table_find[_all]_ext to do
9343           extended lookup with specified hash and compare functions and
9344           specified user contexts.
9345
9346           Added new function silc_hash_table_add_ext to add the key
9347           with specified hash function and user context.
9348
9349           Added new function silc_hash_table_foreach to traverse all
9350           entrys in the hash table.  Added SilcHashForeach callback
9351           function.
9352
9353           Added new function silc_hash_table_del_by_context to delete
9354           the entry only if the context associated with the key matches.
9355
9356           Affected files are lib/silcutil/silchashtable.[ch].
9357
9358         * Removed silc_hash_[server/client/channel]_id and added just
9359           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
9360           silc_hash_id_compare to compare two ID's using as the hash table
9361           comparison function.  Added also silc_hash_data to hash
9362           binary data and silc_hash_data_compare to compare it.
9363
9364         * Removed silc_idlist_find_client_by_hash as it is not needed
9365           anymore.  Affected file silcd/idlist.[ch].
9366
9367         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
9368           to use internally the SilcHashTable.  The new ID Cache is a lot
9369           faster than the old one.  Some of the ID Cache interface was also
9370           rewritten and obsolete and stupid functions were removed.
9371
9372 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9373
9374         * Added entry_count field to the SilcHashTable to keep the number
9375           of the entries in the table.  Implemented the function
9376           silc_hash_table_rehash.  Added new function
9377           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
9378
9379           Fixed a minor bug in silc_hash_table_free.
9380
9381         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
9382           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
9383           into the lib/silcutil/silcutil.[ch].
9384
9385 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9386
9387         * Implemented a collision resistant hash table into the
9388           lib/silcutil/silchashtable[ch].  See the header and the source
9389           for the SilcHashTable API.
9390
9391 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9392
9393         * Merged dotconf version 1.0.2 into lib/dotconf.
9394
9395 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9396
9397         * Do not compile anything in lib/silcsim/* if the SIM support
9398           is not enabled.  The tree should now compile without problems
9399           under cygwin.
9400
9401 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9402
9403         * Compiled the SILC under cygwin.  Compiled and tested briefly
9404           without problems.  More tests needed.  The SIMs didn't compile
9405           though.
9406
9407         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
9408
9409         * Fixed possible crash in silc_get_username in the
9410           lib/silcutil/silcutil.c.
9411
9412 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9413
9414         * Fixed a va_arg in silc/client_ops.c.
9415
9416         * Oops, RC5 routines were named AES and caused some problems
9417           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
9418
9419 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9420
9421         * Added new SilcIDIP structure into the lib/silccore/id.h and
9422           replaced the old `ip' fields from all SILC ID's to that type.
9423           This is a step towards IPv6 support.
9424
9425           The silc_id_get_len takes now the ID as an extra argument.
9426           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
9427           both IPv4 and IPv6 based ID's.
9428
9429           The affected files are lib/silccore/id.[ch] and other files
9430           around the tree using these routines.
9431
9432         * Removed the ID length arguments in server from various
9433           silc_server_send_notify_* routines -> they are not needed
9434           anymore.
9435
9436 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9437
9438         * Fixed memory leak in silc_encode_pem_file in the file
9439           lib/silcutil/silcutil.c.
9440
9441 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9442
9443         * Check minor version as well in the SKE.  Affected files are
9444           silcd/protocol.c and lib/silcclient/protocol.c.
9445
9446         * Added --identifier option to the server so that an identifier
9447           can be when creating the public key for the server.  Affected
9448           file is silcd/silcd.c.
9449
9450         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
9451           lib/silccrypt/silcpkcs.c.
9452
9453 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9454
9455         * Register default ciphers and stuff when using -C option with
9456           the server.  Affected file sildc/silcd.c.
9457
9458         * Put back the servers public key filename format, it is better
9459           than the new one.  For now, the client keys are saved with the
9460           new filename format.  The affected file silc/client_ops.c.
9461
9462         * Implemented the Cipher API for the rest of the ciphers that
9463           did not implement it or implemented it the wrong way.
9464
9465 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9466
9467         * Register default ciphers and stuff when using the -S option
9468           in the client.  Affected file silc/silc.c.  Same also when
9469           creating new key pair with -C option.
9470
9471 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9472
9473         * Fixed the silc_verify_public_key client operation function to
9474           save the public keys differently.  The fingerprint is now
9475           used as filename and not the hostname.  This way also the
9476           client keys are saved uniquely and not with hostnames.  The
9477           affected file is silc/client_ops.c.
9478
9479         * Trimmed the silc_hash_fingerprint function to remove extra
9480           whitespaces from the end of the fingerprint.  The affected
9481           file is lib/silccrypt/silchash.c.
9482
9483         * Updated TODO.
9484
9485         * Added silc_cipher_register_default function to register all
9486           default ciphers.  It can be used when configuration files
9487           does not exist and the application does not want any specific
9488           ciphers in any specific order.
9489
9490           The SilcDList is now used as silc_cipher_list dynamically
9491           allocated cipher list.  Removed the static list all together
9492           and now all ciphers must be allocated to the dynamic list.
9493           The silc_cipher_alloc routine was changed to check only the
9494           dynamic list.
9495
9496           All silc_cipher_* routines that used to return int returns
9497           now bool.
9498
9499           The affected files lib/silccrypt/silccrypt.[ch].
9500
9501         * The same thing was done to silc_hash_* as for silc_cipher_*
9502           routines.  Affected files lib/silccrypt/silchash.[ch].
9503
9504         * The same thing was done to silc_pkcs_* as for silc_cipher_*
9505           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
9506           Added also silc_pkcs_[un]register[_default] functions.
9507           Removed the data_context from the PKCS API.
9508
9509         * Added silc_hmac_register_default function to register default
9510           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
9511           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
9512           to unregister all hmacs at once.
9513
9514         * Register the default ciphers, hash functions, PKCSs and HMACs
9515           if client's configuration file does not exist.  The affected
9516           file silc/silc.c.
9517
9518         * The client did not load the hash functions from the SIM
9519           modules at all.  Added support for this.  Affected file is
9520           silc/clientconfig.c.
9521
9522         * When decoding public key with silc_pkcs_public_key_decode, check
9523           the supported algorithm only if PKCS are registered.  Affected
9524           file lib/silccrypt/silcpkcs.c.  The same was done with the
9525           silc_pkcs_private_key_decode.
9526
9527         * Fixed the SILC List routines to keep the list always in order.
9528           It used to change the list's order when traversing the list but
9529           not it preserves the order.  Affected file lib/trq/silclist.h.
9530
9531 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9532
9533         * Added the client library to use the SilcSocketConnection's
9534           reference counter (by silc_socket_dup) to prevent the bug that
9535           the socket object may be freed underneath async operation.
9536
9537         * The name resolv library checking fixes in the configure.in.pre.
9538           The patch by salo.
9539
9540         * Created new version of the protocol drafts for future
9541           development. The -03 drafts are the ones that will be changed
9542           in the trunk now and the -02 will remain as they are.
9543
9544         * Send list of CUMODE notifys to the router when announcing
9545           the channel users to the router.  Affected file silcd/server.c.
9546           If the router receiving channel founder CUMODE for a channel
9547           that already has channel founder it will send CUMODE notify
9548           to the sender to remove the channel founder rights from the
9549           announced client.  Affected file silcd/packet_receive.c.
9550
9551         * The CUMODE notify may now use Server ID as well as the entity
9552           who changes the mode.  Updated protocool specs.
9553
9554         * Updated INSTALL and README files.
9555
9556 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9557
9558         * New web pages in the http://silc.pspt.fi.  The pages was
9559           designed by salo.
9560
9561         * Updated CREDITS.
9562
9563 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9564
9565         * Implemented the [DenyConnectin] config section in the server.
9566           Added silc_server_config_denied_conn to check whether incoming
9567           connection is denied.  Affected file silcd/serverconfig.[ch].
9568
9569         * Do not check the ports when checking the incoming configuration
9570           data if the port is 0, meaning any.  Affected file is
9571           silcd/serverconfig.c.
9572
9573 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9574
9575         * Fixed buffer overflow in silc_string_compare in the file
9576           lib/silcutil/silcutil.c.
9577
9578         * Fixed double free in silc_server_command_leave in the file
9579           silcd/command.c.
9580
9581 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9582
9583         * Fixed the version checking in the server.  Affected file is
9584           silcd/protocol.c.
9585
9586 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9587
9588         * Fixed the configuration data fetching when accepting new
9589           connections in the server.  Affected file silcd/server.c.
9590
9591 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9592
9593         * Added `sender_entry' argument to the function
9594           silc_server_packet_relay_to_channel so that we can check
9595           whether some destination actually belongs to the same route
9596           the sender belongs (ie, we must not resend the packet to the
9597           sender).  Affected file silcd/packet_send.[ch].
9598
9599         * Added `servername' field to the SilcClientEntry in the server
9600           to hold the name of the server where client is from.  Affected
9601           file is silcd/idlist.h.
9602
9603 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9604
9605         * Moved the channel message encrypting in the router betwen
9606           router connections from silc_server_channel_message to the
9607           silc_server_packet_relay_to_channel since we want to check
9608           whether we have anybody channel before encrypting anything.
9609           Affected files silcd/packet_[receive/send].c.
9610
9611 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9612
9613         * Fixed the [AdminConnection] server config section to support
9614           multiple entries.  Affected file silcd/serverconfig.c.
9615
9616         * Added support into the server to check the validity of the
9617           incoming connection before executing any KE or authentication
9618           protocols.
9619
9620         * The connection configuration is now saved to the KE and
9621           connection auth protocol contexts and not fetched anymore in
9622           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
9623
9624         * The local hosts listenning address and port is also resolved
9625           now when starting the server.  We want to have the socket object
9626           to include the real address and port for the listener.  Added
9627           new function silc_net_check_local_by_sock into the files
9628           lib/silcutil/silcnet.[ch].
9629
9630         * Fixed a broadcast bug in server -> do not broadcast if we
9631           are standalone.
9632
9633         * Fixed a routing bug.  Do not route broadcast packets ever.
9634           Broadcast packets must be processed always and not routed since
9635           they may be destined to some other host than yourself and thus
9636           would get routed without no good reason.  Affected file is
9637           silcd/server.c.
9638
9639         * Added function silc_server_config_is_primary_route to check
9640           whether primary router connection has been configured (a router
9641           configuration that we are initiating).  If there is not, we
9642           will assume that there is only two routers in the SILC network
9643           and we will use the incoming router connection as our primary
9644           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
9645
9646         * Changed the order of the broadcasting.  Broadcast _after_ the
9647           packet has been processed not before.  Affected file is
9648           silcd/server.c.
9649
9650         * Fixed a [ClientConnection] parsing bug.  The port was never
9651           parsed correctly thus resulting to port 0.  Affected file
9652           silcd/serverconfig.c.
9653
9654         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
9655           argument and did not set the broadcast packet flag.  Affected
9656           file silcd/packet_send.c.  Fixed same bug in the function
9657           silc_server_send_notify as well.
9658
9659         * If we receive NEW_ID packet for our own ID in the server, ignore
9660           the packet.
9661
9662 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9663
9664         * Updated TODO.
9665
9666         * Removed the nickname from the Private Message Payload.
9667           Updated the code and the protocol specs.
9668
9669         * Updated protocol specs for submitting to the IETF.
9670
9671         * Tweaked the Random Number Generator a bit.  Affected file
9672           lib/silccrypt/silcrng.c.  Exported a new function
9673           silc_rng_[global]_add_noise which can be used to add more
9674           noise to the RNG.
9675
9676 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9677
9678         * Do not parse packets with different timeout when protocol
9679           is active -> may cause problem with rekey.  Affected file
9680           silcd/server.c.
9681
9682         * When server receives signoff notify it must not create
9683           new channel key if the client is on any channels since the
9684           sender of the signoff notify will create it.
9685
9686 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9687
9688         * Added printing of error messages during SKE protocol from the
9689           failure packet sent by server during SKE.  Affected file
9690           silc/client_ops.c.
9691
9692         * Removed the client's failure_callback handling with timeout
9693           and handle it immediately when received.
9694
9695         * The SKE library returned wrong type in SUCCESS and FAILURE
9696           packets.  They must be 32 bit MSB not 16 bit MSB.
9697
9698 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9699
9700         * Ok, rewrote the logic of the re-key and now it seems to work.
9701           I tested it on high traffic with frequent re-keys without
9702           problems.  Added hmac_receive (and renamed hmac to hmac_send)
9703           in SilcClientConnection in lib/silcclient/client.h and
9704           in SilcIDListData in silcd/idlist.h.  Also, removed the
9705           SilcPacketParserContext's cipher and hmac fields as they are
9706           not needed anymore and actually caused some problems when
9707           the ciphers and hmac's changed underneath the packet parser.
9708
9709 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9710
9711         * If re-key protocol is active then process the incoming packets
9712           synchronously since we must assure that icoming packets encrypted
9713           with the old key is processed before the new keys is set to
9714           use.  This is true other packets than for REKEY packets.
9715           Affected file silcd/server.c.  The same was done to client library
9716           as well, affected file lib/silcclient/client.c.
9717
9718 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9719
9720         * Fixed bug in client and server to accept the force send if
9721           the packet is send from silc_[server/client]_packet_process
9722           function.  Otherwise the packets are never delivered, oops.
9723
9724 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9725
9726         * Disable force sending of packets when REKEY protocol is active.
9727           We must assure that no packet is sent directly when rekey is
9728           performed.  All packets must be sent through packet queue.
9729           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
9730           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
9731           function is silc_[server/client]_packet_send_real to check
9732           the situation.
9733
9734         * Replaced the SIM paths from example config files to
9735           /usr/local/modules.  Also, make install creates now
9736           /usr/local/silc/logs directory to hold all the SILC server
9737           logs.
9738
9739 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9740
9741         * Made the configure.in.pre work on Solaris.  Patch by salo.
9742
9743         * Made all ciphers compatible with non-x86 machines.  Defined
9744           CBC mode macros into lib/silccrypt/ciphers_def.h.
9745
9746 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9747
9748         * Fixed the make install.
9749
9750 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9751
9752         * When MAC computation fails the silc_packet_decrypt returned 0
9753           even though it was supposed to return -1.  Fixed this.  The
9754           affected file is lib/silccore/silcpacket.c.
9755
9756         * Do not replace the config files in /etc/silc (in make install)
9757           if they already exist.  Affected file ./Makefile.am.
9758
9759         * Do not send re-key packets immediately but through packet queue.
9760           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
9761
9762         * Changed silc_net_check_host_by_sock to return FALSE if the
9763           IP/DNS could not be resolved.  Though, it returns the IP address
9764           now even if it could not resolve it (but returns also FALSE).
9765           Affected file lib/silcutil/silcnet.[ch].
9766
9767 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9768
9769         * Added silc_pkcs_decode_identifier to decode the public key's
9770           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
9771           Added also silc_pkcs_free_identifier.  Added also new context
9772           SilcPublicKeyIdentifier.
9773
9774         * Added -S option to the silc client.  It is used to dump the
9775           contents of the specified public key file.
9776
9777         * Changed the PKCS api to return the public key length when
9778           setting the public key.
9779
9780         * Fixed a fatal bug in the public and private key file loading.
9781           Affected file lib/silccrypt/silcpkcs.c.
9782
9783         * Execute the packet parsing for client with zero (0) timeout
9784           if the protocol is active.  Affected file silcd/server.c.
9785
9786 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9787
9788         * Made the key generation options to the silcd program.  Added
9789           -C option, equivalent to client's option.
9790
9791         * Added new [ServerKeys] config section to the server.  It
9792           configures the server's public and private key.
9793
9794         * Defined generic Public Key Payload into the protocol
9795           specification to send specific type of public keys and
9796           certificates.
9797
9798         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9799           public key or certificate.
9800
9801         * Implemented the GETKEY command to the server and to the
9802           client library and on user interface.
9803
9804 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9805
9806         * Made preliminary `make install' work.
9807
9808 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9809
9810         * Added SilcServerRekey context into silcd/idlist.h.
9811
9812         * Added the PFS support as defined in the specification to the
9813           SKE protocol.  Affected files lib/silcske/*.c.
9814
9815         * Added `ske_group' field to the SilcServerRekey context to hold
9816           the number of the SKE group that is used with PFS in re-key.
9817           Affected file silcd/idlist.h.
9818
9819         * Added PFS re-key support to the server.  Affected file is
9820           silcd/protocol.c.
9821
9822         * Added silc_protocol_cancel to cancel execution of the next
9823           state of the protocol.  Affected file is
9824           lib/silccore/silcprotocol.[ch].
9825
9826         * Added the re-key support with and without PFS to the client
9827           library.  Re-key is performed once in an hour, by default.
9828
9829           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9830           Added silc_client_rekey_callback and silc_client_rekey_final.
9831           Affected files are lib/silcclient/protocol.[ch] and
9832           lib/silcclient/client.[ch].
9833
9834         * Removed the `hmac_key' and `hmac_key_len' fields from the
9835           SilcClientConnection structure; not needed.  Affected file is
9836           lib/silcclient/client.h.
9837
9838         * Updated TODO.
9839
9840 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9841
9842         * Do not ask whether user wants to use the negotiated private key
9843           for private messages, just use it.  Affected file is
9844           silc/local_command.c.
9845
9846         * Added `send_enc_key' and `enc_key_len' fields to the
9847           SilcIDListData structure since they are needed in the re-key
9848           phase.  Affected file is silcd/idlist.[ch].
9849
9850         * Implemented the simple re-key protocol into the server.
9851           Affected files silcd/server.c and silcd/protocol.[ch].  The
9852           re-key will be performed once in an hour, by default.
9853
9854           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9855           Added silc_server_rekey, silc_server_rekey_callback and
9856           silc_server_rekey_final.
9857
9858         * Removed Tunneled flag from the protocol.  Updated the code
9859           and the specifications.
9860
9861         * Adde `pfs' field to the SilcIDListData to indicate whether
9862           the PFS is to be performed in the re-key.  Affected file is
9863           silcd/idlist.h.
9864
9865 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9866
9867         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9868           int64 of at least the xintXX size.  If void * is less that 4
9869           bytes uint32 * will be used.  Defined bool as boolean.
9870
9871         * Changed _ALL_ unsigned long and unsigned int to uint32,
9872           unsgined short to uint16 in the source tree.
9873
9874         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9875           not handle clients that has entry->data.registered == FALSE.
9876           They are not in the network anymore.  Affected file is
9877           silcd/server.c.
9878
9879 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9880
9881         * Implemented the sending of the SERVER_SIGNOFF notify in the
9882           server.  Affected file is silcd/server.c.
9883
9884         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9885           Added also silc_notify_payload_encode_args into the
9886           lib/silccore/silcnotify.[ch].
9887
9888         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9889           Affected file silcd/packet_receive.c.
9890
9891         * Implemented the SERVER_SIGNOFF notify handling in the client
9892           library.  Affected file lib/silcclient/client_notify.c.  Also,
9893           implemnted the printing of the SERVER_SIGNOFF info to the
9894           application.  Affected file silc/client_ops.c.
9895
9896         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9897           if the deleting was successful.  Affected file silcd/idlist.[ch].
9898
9899         * Added support for public key authentication in the connection
9900           authentication protocol in the client library.  Affected file
9901           lib/silcclient/protocol.c.
9902
9903         * Changed the server's silc_idlist_get_clients_by_* interface
9904           to support already allocated array so that new entries may be
9905           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9906           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9907           and command replies.
9908
9909         * All command reply functions in the server now calls the
9910           pending command callback even if error occured.  This way the
9911           error will be delivered to the client as well.  Affected files
9912           silcd/command.c and silcd/command_reply.c.
9913
9914         * Fixed INFO command to return local server's info if no server
9915           was provided.  Affected file lib/silcclient/command.c.
9916
9917         * Removed RESTART command for good.  Updated the code and the
9918           protocol specs.
9919
9920         * Rewrote parts of the task system.  It is a bit simpler now.
9921           Removed unsued task priorities. The affected files are
9922           lib/silcutil/silctask.[ch].
9923
9924 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9925
9926         * Moved the USERS printing from the library to the application.
9927           Affected files lib/silcclient/command.c and silc/client_ops.c.
9928
9929 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9930
9931         * Updated TODO.
9932
9933         * Added channel key re-key support.  The re-key is perfomed
9934           only by the router and is done once in an hour.  Added `rekey'
9935           field to the SilcChannelEntry in the server.  Affected files
9936           silcd/server.c and silcd/idlist.h.
9937
9938         * Added silc_task_unregister_by_context into the file
9939           lib/silcutil/silctask.[ch].
9940
9941 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9942
9943         * Added SILC_UMODE_GONE mode to indicate when the client is not
9944           present in the SILC network.  Added also support to the local
9945           command AWAY that will set this mode.  Added support of showing
9946           "xxx is gone" in WHOIS command.  The USERS command shows the
9947           gone status as well.
9948
9949         * Fixed setting server and router operator privileges in the
9950           server's UMODE command.  Affected file silcd/command.c.
9951
9952         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9953           new KE payload is equivalent to the old KE2 payload.
9954
9955           Cleaned up the SKE Start Payload parsing.  It now uses the
9956           simple buffer unformatting to do the parsing.  A lot faster
9957           now.
9958
9959           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9960           to the SKE that is used to indicate whether both of the SKE
9961           parties should perform authentication.  By default only the
9962           responder performs authentication.  By setting this flag also
9963           the initiator must do authentication.  By default it is unset
9964           since in normal SKE case, client to server connection, only
9965           the responder should do authentication.  When doing SKE between
9966           two clients both should perform authentication.  Updated the
9967           code and the protocol specs.
9968
9969         * A little fix to IDENTIFY command in the server.  Search the
9970           client first by hash not nickname.  Affected file is
9971           silcd/command.c.
9972
9973         * Fixed the silc_client_close_connection to support closing
9974           the client to client connections wihtout deleting too much
9975           data.  Affected file lib/silcclient/client.c.
9976
9977         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9978           are received if protocol used to be active but is not anymore
9979           the application would crash due to NULL pointer dereference.
9980           Affected files silcd/server.c and lib/silcclient/client.c.
9981
9982         * Added `hash' field to the SilcClientConnection to include
9983           the hash function negotiated in the SKE protocol.
9984
9985         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9986           to set the channel founder authentication data.  A client can
9987           claim the founder rights later by providing the authentication
9988           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9989           This way the channel founder can regain the channel founder
9990           privileges even it is left the channel.  This works only on
9991           local server and the client must be connected to the same
9992           server to be able to regain the founder rights.  Updated the
9993           protocol specs accordingly.
9994
9995           Added support to the CMODE command in the client to set the
9996           founder auth data.  Read the README to see how to set it.
9997
9998           Added support to the CUMODE command to claim the founder
9999           rights.  Read the README to see how to do it.
10000
10001           Added support for the founder authentication to the Channel
10002           Entry in the server.  Affected file silcd/idlist.h.
10003
10004           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
10005           server's CMODE command.  Affected file silcd/command.c.
10006
10007         * Added the following new functions into lib/silccore/silcauth.[ch]:
10008           silc_auth_get_method and silc_auth_get_data.
10009
10010         * The server now saves the remote hosts public key to the
10011           SilcIDListData pointer.  Affected file silcd/protocol.c.
10012
10013         * The normal server now does not remove the channel entry from
10014           the cache if the founder authentication data is set.  It used
10015           to remove it if the founder was the last one on the channel on
10016           the server and left the channel.  The auth data is saved and
10017           if the channel is re-joined later the old entry is used with
10018           the old auth data.  Affected files silcd/command_reply.c and
10019           silcd/server.c.
10020
10021         * Removed the `pkcs' field from the SilcIDListData structure
10022           in the server; it is not used.  Affected file silcd/idlist.h.
10023
10024 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10025
10026         * Fixed packet processing on slow links.  Partial packets were
10027           never re-processed because the incoming data buffer was cleared
10028           by the application.  Application must not directly clear the
10029           sock->inbuf, the packet processing routines handle it.  Fixed
10030           this in client library and in server.
10031
10032 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10033
10034         * Fixed the WHOIS and IDENTIFY send reply function to really
10035           check whether to send list or just one entry.  Affected file
10036           silcd/command.c.
10037
10038         * Cleaned up the LEAVE command's channel key distribution.  The
10039           affected file silcd/command.c.
10040
10041         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
10042           can enforce the channel mode as well.  In that case the ID
10043           includes the ID of the server.  The code now enforces the
10044           mode change if the router have different mode than the server.
10045
10046         * The notify client operation with CMODE_CHANGE notify can now
10047           return NULL client_entry pointer if the CMODE was not changed
10048           by client.  Application must check for this.
10049
10050         * Added <Server ID> argument to INFO command to support server
10051           info fetching by Server ID.
10052
10053         * Added silc_server_announce_get_channel_users to get assembled
10054           packets of channel users of the specified channel.  Affected
10055           file silcd/server.[ch].
10056
10057         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
10058           was freed underneath the ID Cache.
10059
10060         * Re-announce clients when the server received CHANNEL_CHANGE
10061           notify from the router.  Affected file silcd/packet_send.c.
10062
10063 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10064
10065         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
10066           crashed since it did not handle the fact that there is no cipher
10067           called "3" and didn't check the error condition.  Now fixed.
10068
10069         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
10070           flag.  It can be used to send message requests.
10071
10072 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10073
10074         * Implemented the RESTART command in the client.
10075
10076         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
10077           notice type messages.  Added notice printing to the user
10078           interface.
10079
10080         * The channel keys are not re-generated if the channel's mode
10081           is PRIVKEY, ie private key on the channel exists.  Affected
10082           files silcd/server.c and silcd/command.c.
10083
10084         * Fixed a little bug in channel message delivery when channel
10085           private keys are set in the server.  Affected file is
10086           silcd/packet_send.c.
10087
10088         * Changed the setting on channel->on_channel = TRUE from the
10089           silc_client_save_channel_key to the JOIN command reply.  The
10090           key payload is not received if the private channel key is set.
10091           Affected file lib/silcclient/command_reply.c and the
10092           lib/silcclient/client_channel.c.
10093
10094         * When the CMODE_CHANGE notify is sent and the channel private
10095           key mode is removed the channel key must be re-generated in
10096           other cells as well.  Added this support for the router in the
10097           silcd/packet_receive.c.
10098
10099         * Added new local command NOTICE to send notice message on
10100           channel.  Affected file silc/local_command.[ch].
10101
10102 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10103
10104         * Added new local command ME to the client.  It is used to send
10105           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
10106           some action.  Affected file silc/local_command.[ch].
10107
10108         * Changed channel_message and private_message client operations
10109           to deliver the message flags to the application.  Added also
10110           the `flags' arguments to the silc_client_send_channel_message
10111           and silc_client_send_private_message functions.  Affected file
10112           silcapi.h.
10113
10114 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10115
10116         * Redefined the Private Message Payload to support private message
10117           keys and to support the new private message flags.  Updated
10118           the protocol specs.  Flags makes it possible to have for example
10119           CTCP style messages.
10120
10121         * Added new type SilcPrivateMessagePayload and defined an API
10122           for it in the lib/silcclient/silcprivate.[ch].
10123
10124         * Tested private message private keys successfully.  Tested the
10125           private message key set, unset and list commands with the new
10126           KEY command.
10127
10128         * Redefined the Channel Message Payload to include the channel
10129           message flags (equal with private message flags) to support
10130           for example CTCP style messages.
10131
10132         * Defined some of the message (for channel and private message)
10133           flags.  Updated the protocol specs and added the flags to the
10134           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
10135
10136 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10137
10138         * Added SilcKeyAgreementStatus type to the key agreement routines
10139           to indicate the current status and error if one occured.
10140           The status types are defined in the lib/silcclient/silcapi.h.
10141
10142         * Added new local command KEY that is used to set and unset private
10143           keys for channels, set and unset private keys for private messages
10144           with remote clients and to send key agreement requests and
10145           negotiate the key agreement protocol with remote client.  The
10146           key agreement is supported only to negotiate private message keys,
10147           it currently cannot be used to negotiate private keys for channels,
10148           as it is not convenient for that purpose.
10149
10150         * Fixed a minor pending callback setting bug in the function
10151           silc_client_get_client_by_id_resolve, now the function works.
10152           Affected file lib/silcclient/idlist.c.
10153
10154         * Added function silc_net_get_local_port to get local bound
10155           port by socket.  Added to lib/silcutil/silcnet.[ch].
10156
10157         * Added `sockets' and `sockets_count' fields to the SilcClient
10158           object.  They hold the sockets of the listenning sockets in
10159           the client.  Listenning sockets may be for example the key
10160           agreement server.  Affected file lib/silcclient/client.[ch].
10161           Added functions the silc_client_add_socket and the
10162           silc_client_del_socket.  They are exported to the application
10163           as well.
10164
10165         * Added ~./silc/clientkeys to support other client's public keys.
10166
10167         * Renamed verify_server_key client operation to verify_public_key
10168           and added one argument to indicate the type of the connection
10169           (server, client etc.).
10170
10171 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10172
10173         * Added silc_server_connection_auth_request to handle the
10174           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
10175           silcd/packet_receive.[ch].
10176
10177         * Added silc_server_send_connection_auth_request into the
10178           silcd/packet_send.c to send the connection auth request packet.
10179
10180         * Cleaned up the silcd/protocol.c a bit and fixed some memory
10181           leaks.
10182
10183         * Fixed the public key authentication in responder side in the
10184           server.  The `auth_data' pointer includes the SilcPublicKey
10185           not the path to the public key.  Affected file silcd/protocol.c.
10186
10187         * Implemented the public key authentication in the initiator side
10188           in the server.  Affected file silcd/protocol.c.
10189
10190         * Removed the [RedirectClient] config section from the server
10191           configuration.  Is not needed and I don't want to implement it.
10192
10193 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10194
10195         * Cleaned up the CMODE command in the server.  It now works
10196           correctly and supports all the modes defined in the protocol.
10197           Affected file is silcd/command.c.
10198
10199         * Added `hmac_name' field to the SilcChannelEntry in the server
10200           to hold the default HMAC of the channel.  It can be set when
10201           creating the channel (with JOIN command).  Affected files
10202           silcd/idlist.[ch].
10203
10204         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
10205           type to indicate the change of the current cipher and hmac
10206           on the channel.  Client can safely ignore the <cipher> argument
10207           (if it chooses to do so) since the CHANNEL_KEY packet will
10208           force the channel key change anyway.  The <hmac> argument is
10209           important since the client is responsible of setting the new
10210           HMAC and the hmac key into use.
10211
10212         * Fixed the CMODE command in the client library as well.
10213
10214         * Tested CMODE command in router environment successfully.
10215
10216 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10217
10218         * Show the version of the remote client (or server) when connecting
10219           to the server.  It is logged to the log file.  Affected file
10220           is silcd/protocol.c.
10221
10222         * Fixed the KILLED notify handling in the client library.  The
10223           client must be removed from all channels when receiving the
10224           KILLED notify.
10225
10226           Also, do not remove the client entry when giving the KILL
10227           command but when the KILLED notify is received.
10228
10229         * Removed silc_idlist_find_client_by_nickname from the server.
10230           Not needed anymore.  Affected files silcd/idlist.[ch].
10231
10232         * Implemented the CHANNEL_CHANGE notify type handling to the
10233           server.  Affected file silcd/server.c.
10234
10235         * Updated TODO.
10236
10237 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10238
10239         * Added silc_server_send_notify_invite to send the INVITE
10240           notify between routers.
10241
10242         * Implemented the INVITE command correctly to the server.
10243
10244         * Implemented the INVITE notify type handling in the server.
10245
10246         * Implemented the INVITE command to the client library and on the
10247           user interface.
10248
10249 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10250
10251         * Added function silc_server_get_client_resolve to find the
10252           client entry by ID from all ID lists and then resolve it
10253           (using WHOIS) if it cannot be found.  Affected file is
10254           silcd/server.[ch].
10255
10256 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10257
10258         * Implemented the BAN command to the client library.
10259
10260         * The JOIN command in the server now checks the invite list
10261           and the ban list.
10262
10263         * Changed the silc_command_reply_payload_encode_va and the
10264           silc_command_payload_encode_va to support that if argument is
10265           NULL it ignores and checks the next argument.  Affected file
10266           lib/silccore/silccommand.c.
10267
10268         * Added silc_server_send_notify_ban to send the BAN notify
10269           type between routers.
10270
10271         * Chaned the silc_notify_payload_encode to support that if
10272           argument is NULL it ignores and checks the next argument.
10273           Affected file lib/silccore/silcnotify.c.
10274
10275         * Tested ban lists in router environment successfully.
10276
10277 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10278
10279         * Implemented BAN command to the server, in silcd/command.[ch].
10280
10281         * Removed the BAN and INVITE_LIST modes from the CMODE command
10282           in the server code.
10283
10284         * Added function silc_string_match to regex match two strings.
10285           Affected files lib/silcutil/silcutil.[ch].
10286
10287 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10288
10289         * Redefined parts of the SilcChannelEntry in the server to support
10290           the new ban and invite lists.
10291
10292 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10293
10294         * Redefined the INVITE command.  The same command can be used to
10295           invite individuals to the channel but also to manage the invite
10296           list of the channel (to add to and remove from the invite list).
10297           Updated the protocol specs.
10298
10299         * Added new command SILC_COMMAND_BAN that can be used to manage
10300           the ban list of the channel.  Updated the protocol specs.
10301
10302         * Removed the channel modes: the SILC_CMODE_BAN and the
10303           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
10304           in the CMODE command.  The equivalent features are now available
10305           using INVITE and BAN commands.  Updated the protocol specs.
10306
10307         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
10308           in the network about change in the current ban list.  The notify
10309           type is not used by the client.
10310
10311         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
10312           support the invite lists.
10313
10314 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10315
10316         * Added new function silc_string_regexify that converts string
10317           including wildcard characters into regex string that can
10318           be used by the GNU regex library.  Added into the file
10319           lib/silcutil/silcutil.[ch].
10320
10321           Added silc_string_regex_combine to combine to regex strings
10322           into one so that they can be used as one regex string by
10323           the GNU regex library.  Added into the file
10324           lib/silcutil/silcutil.[ch].
10325
10326           Added silc_string_regex_match to match two strings.  It returns
10327           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
10328
10329 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10330
10331         * Imported GNU regex to the soruce tree into lib/contrib.
10332           Fixed some compiler warning from the regex.c.
10333
10334 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10335
10336         * Fixed MOTD command in the server to work in router environment.
10337
10338         * Fixed the MOTD command in the client library to support
10339           the server argument in the command.
10340
10341         * Added `nickname_len' argument to the silc_idlist_add_client
10342           in the server, as the `nickname' argument may be binary data
10343           (it may be hash).
10344
10345         * Added silc_idlist_get_channels to return all channels from
10346           the ID list.
10347
10348         * Implemented LIST command to the server.  Affected file is
10349           silcd/command.c.
10350
10351         * Implemented the LIST command to the client library and on the
10352           user interface.
10353
10354         * Added [<user count>] argument to the LIST command reply.
10355           With private channels the user count is not shown.
10356
10357         * Updated TODO and README.
10358
10359 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10360
10361         * The client entry's data.registered must be TRUE even with
10362           global client entry on global client list.  The data.registered
10363           is used to check whether the client is anymore in the network,
10364           for example with WHOWAS command so it must be valid.
10365
10366         * Fixed the WHOWAS command in the server.  It now actually works
10367           in router environment.  Added function into silcd/command_reply.c
10368           silc_server_command_reply_whowas_save.
10369
10370         * Added silc_idlist_purge function to the silcd/idlist.c
10371           to periodically purge the ID Cache.
10372
10373         * Fixed INFO command in the server.  It works now in router
10374           environment.  Added <server name> argument to the INFO command
10375           reply.  Updated the protocol specs.
10376
10377         * Fixed minor bug in silc_idcache_purge to not purge if the
10378           expire value is zero.
10379
10380         * Fixed various bugs in WHOIS and IDENTIFY command handling as
10381           they were buggy because of the WHOWAS information.
10382
10383         * Fixed local command MSG to handle the async resolving of
10384           the remote client properly.  It used to fail the first MSG.
10385           Affected file silc/local_command.c.
10386
10387         * Added `data_len' field to SilcIDCache context.
10388
10389 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10390
10391         * Update TODO.  Todo in commands in the server.
10392
10393 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10394
10395         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
10396           used by routers as broadcast packet to inform other routers
10397           about the changed user mode.
10398
10399           Implemented the notify handling in the server.  Affected file is
10400           silcd/packet_receive.c.  Added the function
10401           silc_server_send_notify_umode to the silcd/packet_send.[ch].
10402
10403         * Added new generic Channel Payload and deprecated the New Channel
10404           Payload.  The New Channel Payload is now the generic Channel
10405           Payload.
10406
10407         * Added new argument `mode' to the silc_server_send_new_channel
10408           as it is required in the Channel Payload now.
10409
10410         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
10411           and created a new and real SilChannelPayload to represent the
10412           new generic Channel Payload.  Implemented the encode/decode
10413           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
10414
10415         * Added silc_server_get_client_channel_list to return the list
10416           of channels the client has joined for WHOIS command reply.
10417           Affected file silcd/server.[ch].
10418
10419         * Implemented the channel list sending in the WHOIS command reply
10420           in server and in the client.
10421
10422           Implemented the channel list displaying on the user interface
10423           as well.  Affected file silc/client_ops.c.
10424
10425         * Added silc_channel_payload_parse_list to parse list of Channel
10426           Payloads.  It returns SilcDList list of SilcChannelPayloads.
10427           Client for example can use this function to parse the list of
10428           channels it receives in the WHOIS command reply.  The caller
10429           must free the list by calling silc_channel_payload_list_free.
10430           Affected files lib/silccore/silcchannel.[ch].
10431
10432 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10433
10434         * Added one new argument <user mode> to the WHOIS command reply
10435           to return the mode of the user in SILC.  Updated the protocol
10436           specs.
10437
10438           Implemented it to the server and client.
10439
10440 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10441
10442         * Fixed the mode printing on the user interface on joining.
10443           Affected file silc/client_ops.c.
10444
10445         * Implemented the UMODE command and user modes in general to the
10446           client library and to the user interface.
10447
10448         * Implemented the UMODE command to the server.
10449
10450         * The server now sends UNKNOWN_COMMAND error status if client sends
10451           unknown command.  Affected file silcd/command.c.
10452
10453         * All server commands now handle the command identifier the right
10454           way when sending the command reply to the client.  The client can
10455           use to identify the command replies with the identifier.
10456
10457 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10458
10459         * Added silc_server_get_client_route to resolve the route to
10460           the client indicated by the client ID.  Affected file is
10461           silcd/server.[ch].
10462
10463         * Added silc_server_relay_packet as general function to relay
10464           packet to arbitrary destination.  This deprecates functions
10465           like _send_private_message_key, _relay_notify etc.  Affected
10466           file is silcd/packet_send.[ch].
10467
10468           Removed silc_server_send_key_agreement,
10469           silc_server_send_private_message_key and
10470           silc_server_packet_relay_notify functions from the file
10471           silcd/packet_send.[ch].
10472
10473         * Updated TODO.
10474
10475         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
10476           server.  Affected file silcd/packet_receive.[ch].
10477
10478         * Implemented the KILL command to the client.  Implemented the
10479           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
10480           Affected files lib/silcclient/command[_reply].c and
10481           lib/silcclient/client_notify.c.  Implemented the KILL notify
10482           printing in the user inteface.
10483
10484         * Fixed a lot silc_parse_nick memory leaks from the client
10485           library in the file lib/silcclient/command.c.
10486
10487         * Changed the silc_server_send_notify_on_channels's `sender'
10488           argument from SilcSocketConnection to SilcClientEntry to
10489           check the sender as entry and not as connection object and not
10490           to send to the client provided as argument.  The affected file
10491           is silcd/packet_send.[ch].
10492
10493         * The notify packets that are destined directly to the client used
10494           to not to be processed by the server.  Now changed that and the
10495           server processes all notify packets.  After relaying the packet
10496           to the client the notify packet is processed in the server.
10497
10498         * The silc_server_free_client_data now checks whether there is
10499           pending outgoing traffic for the client and purges the data to
10500           the network before removing the client entry.
10501
10502 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10503
10504         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
10505           an client is killed from the SILC Network.  Updated the protocol
10506           specs accordingly.
10507
10508           Added new function silc_server_send_notify_killed to the
10509           silcd/packet_send.[ch].
10510
10511         * Added function silc_server_packet_relay_notify to relay notify
10512           packets that are destined directly to a client.  In this case
10513           the server does not process the notify packets but merely relays
10514           it to the client.  Affected file silcd/packet_send.[ch].
10515
10516           Added also silc_server_packet_process_relay_notify to check
10517           whereto relay the notify.  Affected file is
10518           silcd/packet_receive.[ch].
10519
10520         * Implemented the KILL command to the server.
10521
10522         * Updated TODO.
10523
10524         * Added the backup schema desgined last fall to the protocol
10525           specs for everyone to see.  The specification is in the
10526           *-spec-xx.txt draft and the packet type definitions for the
10527           backup routers is in *-pp-xx.txt draft.  Thusly, added also
10528           new packet type SILC_PACKET_CELL_ROUTERS.
10529
10530         * A big security problem in the implementation discovered.  The
10531           signoff of an client did not cause new channel key generation
10532           which it of course should've done.  The channel keys must be
10533           always re-generated when client leaves (or signoffs) the channel.
10534           The silc_server_remove_from_channels funtion now handles
10535           the channel key re-generation.
10536
10537         * Added `sender' argument to the silc_server_send_notify_on_channels
10538           to not to send the client provided as argument.  Affected file
10539           silcd/packet_send.[ch].
10540
10541 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10542
10543         * Implemented OPER and SILCOPER commands into the server and
10544           the client library.
10545
10546         * Added silc_auth_verify and silc_auth_verify_data to verify
10547           the authentication directly from the authentication payload.
10548           It supports verifying both passphrase and public key based
10549           authentication.  Affected file lib/silccore/silcauth.[ch].
10550
10551         * Added `hash' field to the SilcIDListData structure.  It is the
10552           hash negotiated in the SKE protocol.  Affected file is
10553           silcd/idlist.[ch].
10554
10555         * Slight redesigning of the SilcAuthPayload handling routines.
10556           Do not send SilcPKCS but SilcPublicKey as argument.
10557
10558         * Implemented the public key authentication support to the
10559           serverconfig.  The public key is loaded from the provided path
10560           and saved as authentication data to void * pointer.  Thus,
10561           changed the unsigned char *auth_data to void *auth_data;
10562
10563         * Fixed SHUTDOWN command to send the reply before the server
10564           is shutdown. :)  Affected file silcd/command.c.
10565
10566         * Fixed fatal bug in CONNECT command.  The hostname was invalid
10567           memory and server crashed.  Affected file silcd/command.c.
10568
10569         * Fixed fatal bug in CLOSE command.  The server_entry became
10570           invalid but was referenced later in the command.  Affected file
10571           silcd/command.c.
10572
10573 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10574
10575         * Fixed fatal bug in failure packet handling.  Server ignored
10576           the failure and thus crashed when it came.
10577
10578         * Updated TODO.
10579
10580 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10581
10582         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
10583           that the command may be executed only once in (about) 2 seconds.
10584           The old SILC_CF_LAG flag is same but allows command bursts up
10585           to five before limiting.
10586
10587           Added the support for CF_LAG and CF_LAG_STRICT flags to the
10588           server code.  Various commands now includes the CF_LAG_STRICT
10589           flag to disallow any kind of miss-use of the command.
10590
10591         * Fixed the silc_buffer_unformat to not to allocate any data
10592           if the length of the data is zero.  It used to allocate the
10593           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
10594
10595 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10596
10597         * Changed the format of AdminConnection configuration section
10598           in the server.  Added username of the admin to the format.
10599           Affected files silcd/serverconfig.[ch].
10600
10601           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
10602           to return admin configuration data by host, username and/or
10603           nickname.
10604
10605 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10606
10607         * Implemented WHOWAS command to the server.  Added the functions:
10608
10609           silc_server_command_whowas_parse,
10610           silc_server_command_whowas_send_reply,
10611           silc_server_command_whowas_from_client and
10612           silc_server_command_whowas_from_server
10613
10614         * Added <Client ID> argument to the WHOWAS command reply.  Updated
10615           the protocol specs accordingly.
10616
10617         * Implemented WHOWAS command and command_reply to the client
10618           library.
10619
10620           Implemented the WHOWAS printing on the user interface.
10621
10622 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10623
10624         * Added new argument to the WHOWAS command reply, the real name.
10625           It is an optional argument.  Updated the protocol specs.
10626
10627         * Added SilcIDCacheDestructor callback that is registered when
10628           the SilcIDCache is allocated.  The callback is called when
10629           an cache entry in the ID Cache expires, or is purged from the
10630           cache.  Added into lib/silccore/idcache.[ch].
10631
10632           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
10633           to destruct the client entries when the cache entry expires.
10634           Other ID Cache's in server and in the client library ignores
10635           the destructor.
10636
10637         * If the ID Cache entry's `expire' field is zero then the entry
10638           never expires.  Added boolean `expire' argument to the
10639           silc_idcache_add function in the lib/silccore/idcache.[ch].
10640           If it is TRUE the default expiry value is used.
10641
10642         * Added silc_server_free_client_data_timeout that is registered
10643           when client disconnects.  By default for 5 minutes we preserve
10644           the client entry for history - for WHOWAS command.
10645
10646 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10647
10648         * Added support to the server to enforce that commands are not
10649           executed more than once in 2 seconds.  If server receives
10650           commands from client more frequently, timeout is registered
10651           to process the commands.  Affected file silcd/command.c.
10652           Added new function silc_server_command_process_timeout.
10653
10654         * Changed NICK_NOTIFY handling in client library to check that
10655           if the client's nickname was changed, so there is no need to
10656           resolve anything from the server.
10657
10658         * Removed error printing from the WHOIS and IDENTIFY commands.
10659           If error occurs then it is ignored silently in the client library.
10660           The application, however, may map the received error to
10661           human readable error string.  The application currently maps
10662           the NO_SUCH_NICKNAME error to string.
10663
10664         * Made the command status message public to the application.  Moved
10665           them from lib/silcclient/command_reply.c to
10666           lib/silcclient/command_reply.h.  The application can map the
10667           received command status to the string with the
10668           silc_client_command_status_message function.
10669
10670         * Added check to the server to check that client's ID is same
10671           as the Source ID in the packet the client sent.  They must
10672           match.
10673
10674 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10675
10676         * Added dist-bzip hook to the Makefile.am to make bzip2
10677           compressed distributions.
10678
10679 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10680
10681         * Server now enforces the maximum length for the nickname and
10682           the channel as protocol specification dictates.  128 bytes for
10683           nickname and 256 bytes for channel name.
10684
10685         * Moved the WHOIS printing to the application.  The client libary
10686           does not print out the WHOIS information anymore, the application
10687           must do it.  Renamed silc_client_command_reply_whois_print to
10688           the silc_client_command_reply_whois_save.
10689
10690           The client's idle time is also sent to the application now, and
10691           the idle is shown on screen.
10692
10693         * Added silc_client_command_reply_identify_save to save the
10694           received IDENTIFY entries.
10695
10696         * Do not check for channel private keys in message sending and
10697           reception if the channel does not have the PRIVKEY mode set.
10698           Affected file lib/silclient/client_channel.c.
10699
10700 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10701
10702         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
10703           just surfaced after chaning the JOIN procedure.
10704
10705 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10706
10707         * Added silc_client_get_clients_by_list to get client entries
10708           from Client ID list, that is returned for example by JOIN
10709           and USERS command replies.  The application should use this
10710           function for example when JOIN command reply is received to
10711           resolve the clients already on the channel (library does not
10712           do that anymore as USERS command reply is not used in the JOIN
10713           procedure anymore).  Affected files lib/silcclient/silcapi.h and
10714           lib/silcclient/idlist.c.
10715
10716         * JOIN command reply and USERS command reply returns now SilcBuffer
10717           pointers instead of unsigned char pointers when returning
10718           the client list and mode list.
10719
10720         * Added <Client ID> argument to the JOIN command reply, mainly
10721           for the server to identify for which client the command was
10722           originally sent.  Updated protocol specs accordingly.
10723
10724         * Added SilcDlist private_key pointer to the SilcChannelEntry
10725           in the client to support the channel private keys.  Affected
10726           file is lib/silcclient/idlist.h.
10727
10728         * Added SilcChannelPrivateKey argument to the function
10729           silc_client_send_channel_message so that application can choose
10730           to use specific private ke if it wants to.  If it is not provided,
10731           the normal channel key is used, unless private keys are set.
10732           In this case the first (key that was added first) is used
10733           as the encryption key.
10734
10735         * Implemented the support for channel private key handling.
10736           Implemented the following functions:
10737
10738           silc_client_add_channel_private_key,
10739           silc_client_del_channel_private_keys,
10740           silc_client_del_channel_private_key,
10741           silc_client_list_channel_private_keys and
10742           silc_client_free_channel_private_keys
10743
10744           Affected file lib/silcclient/client_channel.c.
10745
10746         * Added the support for the private keys in the channel message
10747           sending and encryption and in the message reception and
10748           decryption.  Affected funtions are
10749           silc_client_send_channel_message and silc_client_channel_message.
10750
10751 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10752
10753         * Added SKE's key verify callback to the client library's
10754           KE protocol context. Affected files lib/silcclient/protocol.[ch].
10755
10756         * Removed the statement that server (or router) must send USERS
10757           command reply when joining to the channel so that the client
10758           knows who are on the channel.  Instead, the client list and
10759           client's mode list is now sent in the JOIN command reply to the
10760           client who joined channel.  This is better solution.
10761
10762         * Added function silc_server_get_users_on_channel and function
10763           silc_server_save_users_on_channel to the silcd/server.[ch].
10764
10765         * Removed function silc_server_command_send_users from the
10766           silcd/command.c.
10767
10768         * Do not show topic on the client library anymore.  The topic is
10769           sent in the command reply notify to the application and the
10770           application must show the topic now.
10771
10772 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10773
10774         * Added client searching by nickname hash into the IDENTIFY and
10775           WHOIS commands in the server as they were clearly missing from
10776           them.  Affected file is silcd/command.c.
10777
10778         * Fixed a bug in private message receiving in the client library.
10779           The remote ID was freed and it wasn't supposed, now it is
10780           duplicated.
10781
10782 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10783
10784         * Minor fix to the channel payload; allocate the data area, as it
10785           needs to be of specific length.
10786
10787         * If the key agreement port is zero then the operating
10788           system will define the bound port.  Affected files are
10789           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10790
10791         * Added new function silc_channel_payload_decrypt into the file
10792           lib/silccore/silcchannel.[ch].
10793
10794         * Moved the channel message etc, check from silc_packet_decrypt
10795           to applications.  The library calls now a generic
10796           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10797           when the packet is either normal or special.  This was done to
10798           allow more wide range of checking that was not allowed when
10799           the code was in library.  Now applications can do virtually any
10800           checks to the packet and return to the library the decision how
10801           the packet should be processed.  Affected files are
10802           lib/silccore/silcpacket.[ch].
10803
10804           Added silc_server_packet_decrypt_check to the server and
10805           silc_client_packet_decrypt_check to the client library.
10806
10807         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10808           to send with specified source and destination information.
10809
10810         * Channel message delivery between routers was broken after the
10811           channel key distribution was fixed earlier.  The channel key
10812           was used be to distributed to other routers as well which is not
10813           allowed by the protocol.  Now this is fixed and channel keys
10814           really are cell specific and the channel message delivery between
10815           routers comply with the protocol specification.
10816
10817         * Fixed various commands in server to check also the global list
10818           for the channel entry and not just the local list.  The affected
10819           file silcd/command.c.
10820
10821 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10822
10823         * Added assert()s to buffer formatting and unformatting routines
10824           to assert (if --enable-debug) when error occurs.  Affected
10825           file: lib/silcutil/silcbuffmt.c.
10826
10827         * Changed to auto-reconnect to check whether the remote host is
10828           router and register the re-connect timeout if it is.  It used
10829           to check that whether we are normal server, but router must do
10830           auto-reconnect with another router as well.  Affected file
10831           silcd/server.c.
10832
10833         * Removed the [<key len>] option from CMODE command as the cipher
10834           name decides the key length, nowadays.  See the defined ciphers
10835           from the protocol specification.
10836
10837         * Added [<hmac>] option to the CMODE command to define the HMAC
10838           for the channel.  Added SILC_CMODE_HMAC channel mode.
10839
10840         * Added [<hmac>] option for the JOIN command so that user can
10841           select which HMAC is used to compute the MACs of the channel
10842           messages.
10843
10844         * Added Hmac field to the Channel Message Payload.  The integrity
10845           of plaintext channel messages are now protected by computing
10846           MAC of the message and attaching the MAC to the payload.  The
10847           MAC is encrypted.  Now, it is clear that this causes some
10848           overhead to the size of the packet but rationale for this is that
10849           now the receiver can verify whether the channel message decrypted
10850           correctly and also when private keys are set for the channel the
10851           receiver can decrypt the packet with several keys and check from
10852           the MAC which key decrypted the message correctly.
10853
10854         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10855           lib/silccrypt/silccipher.[ch].
10856
10857         * Added silc_hash_len to return the digest length into the
10858           lib/silcrypt/silchash.[ch].
10859
10860         * Rewrote parts of Silc Channel Payload interface in the
10861           lib/silccore/silcchannel.[ch].  The encode function now also
10862           encrypts the packet and parse function decrypts it.
10863
10864 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10865
10866         * Fixed a minor formatting bug in the SKE's key material processing.
10867           It actually might have processed the keys wrong way resulting
10868           into wrong keys.
10869
10870         * Redefined the mandatory HMAC algorithms and added new algorithms.
10871           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10872           and hmac-md5 truncated to 96 bits.  The mandatory is now
10873           hmac-sha1-96.  Rest are optional (including the one that used
10874           to be mandatory).  Rationale for this is that the truncated HMAC
10875           length is sufficient from security point of view and can actually
10876           make the attack against the HMAC harder.  Also, the truncated
10877           HMAC causes less overhead to the packets.  See the RFC2104 for
10878           more information.
10879
10880         * Added new [hmac] configuration section.  The SKE used to use
10881           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10882           is of course wrong.  The official names that must be proposed in
10883           the SKE are the ones defined in the protocol specification
10884           (hmac-sha1-96 for example).  The user can configure any hmac
10885           using any hash function configured in the [hash] section.  At
10886           least, the mandatory must be configured.
10887
10888           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10889
10890         * Added HMAC list to the SKE proposal list.  It has now both
10891           hash algorithm list and HMAC list.  This makes the protocol
10892           incompatible with previous versions.  The SKE now seems to work
10893           the way it is supposed to work, for the first time actually.
10894
10895         * Defined plain Hash algorithms to the protocol specification.
10896           Added sha1 and md5.
10897
10898 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10899
10900         * Implemented support for key agreement packets into the server.
10901           Added functions silc_server_key_agreement and
10902           silc_server_send_key_agreement.  Other than these functions,
10903           server has nothing to do with this packet.
10904
10905         * Added support for private message key packets into the server.
10906           Added functions silc_server_private_message_key and
10907           silc_server_send_private_message_key.
10908
10909         * Updated TODO.
10910
10911         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10912           called in the protocol's final callback instead in the END
10913           protocol state.  This makes a little more sense and in the same
10914           time in client we can use the same protocol routines for normal
10915           key exchange and to key agreement packet handling as well.
10916
10917         * Added to both client's and server's KE protocol context the
10918           SilcSKEKeyMaterial pointer to save the key material.  We will
10919           bring the key material to the protocol's final callback by doing
10920           this.  The final callback must free the key material.
10921
10922         * Added SKE's packet_send callback into client's KE protocol
10923           context so that the caller can choose what packet sending function
10924           is used.  This way we can use different packet sending when
10925           doing normal SKE when doing key agreement packet handling (in
10926           the key agreement packet handling we do not want to encrypt
10927           the packets).
10928
10929         * Implemented the responder side of the key agreement routines
10930           in the client.  The client can now bind to specified port and
10931           accept incoming key negotiation.  The key material is passed
10932           to the application after the protocol is over.
10933
10934         * Implemented the processing of incoming Key Agreement packet
10935           in the client.  Added function silc_client_key_agreement to
10936           process the packet.
10937
10938         * Implemented the intiator side of the key agreement routines
10939           in the client.  The client can now initiate key agreement with
10940           another remote client.  The key material is passed to the
10941           application after the protocol is over.
10942
10943         * Created client_keyagr.c to include all the key agreement
10944           routines.
10945
10946         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10947           SILC_TASK_CALLBACK except that it is not static.
10948
10949         * Created client_notify.c and moved the Notify packet handling
10950           from the client.[ch] into that file.
10951
10952         * Created client_prvmsg.c and moved all private message and
10953           private message key routines from the client.[ch] into that file.
10954
10955         * Create client_channel.c and moved all channel message and
10956           channel private key routines from the client.[ch] into that file.
10957
10958         * Changed silc_client_get_client_by_id_resolve to resolve with
10959           WHOIS command instead of IDENTIFY command, in the file
10960           lib/silclient/idlist.c.
10961
10962 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10963
10964         * Implemented the SKE's responder side to the Client library.
10965
10966         * When FAILURE is received to the protocol do not trust it
10967           blindly.  Register a timeout to wait whether the remote closes
10968           the connection as it should do it, only after that process the
10969           actual failure.  This was changed to both client and server.
10970
10971         * Added client_internal.h to include some of the structures
10972           there instead of client.h in lib/silcclient/.
10973
10974         * Added function silc_task_unregister_by_callback to unregister
10975           timeouts by the callback function.
10976
10977 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10978
10979         * Some "Incomplete WHOIS info" errors has been appearing on the
10980           log files.  Took away the entry->userinfo check from WHOIS
10981           reply sending.  The entry->userinfo is now " " if client did not
10982           provide one.  I thought this was fixed earlier but something
10983           is wrong still.  Let's see if the error still appears.
10984
10985 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10986
10987         * Fixed a minor bug in the login when the channel key is
10988           re-generated in the server.  It used to generate the key in
10989           wrong order and thus caused problems in the channel traffic.
10990
10991         * Fixed a minor bug in channel key distsribution after
10992           KICK command.  The key was not sent to the router even though
10993           it should've been.
10994
10995 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10996
10997         * Added silc_ske_process_key_material_data as generic routine
10998           to process any key material as the SILC protocol dictates.  The
10999           function is used by the actual SKE library but can be used by
11000           applications as well.  This relates to the private message keys
11001           and the channel private keys since they must be processed the
11002           same way the normal SILC session keys.  The protocol dictates
11003           this.  Affected files: lib/silcske/silcske.[ch].
11004
11005           Added also silc_ske_free_key_material to free the
11006           SilcSKEKeyMaterial structure.
11007
11008         * Defined silc_cipher_set_key function to set the key for
11009           cipher without using the object's method function.  The affected
11010           files: lib/silccrypt/silccipher.[ch].
11011
11012         * Implemented silc silc_client_add_private_message_key,
11013           silc_client_add_private_message_key_ske,
11014           silc_client_del_private_message_key,
11015           silc_client_list_private_message_keys and
11016           silc_client_free_private_message_keys functions in the
11017           client library.
11018
11019           Added functions silc_client_send_private_message_key to send
11020           the Private Message Key payload and silc_client_private_message_key
11021           to handle incoming Private Message Key payload.
11022
11023         * Added Cipher field to the Private Message Key payload to set
11024           the cipher to be used.  If ignored, the default cipher defined
11025           in the SILC protocol (aes-256-cbc) is used.
11026
11027 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11028
11029         * Removed lib/silcclient/ops.h file.
11030
11031           Redefined parts of the SILC Client Library API. Created new
11032           file silcapi.h that deprecates the ops.h file and defines the
11033           published Client Library API.  Defined also private message key
11034           API and channel private key API into the file.
11035
11036           This is the file that the application must include from the
11037           SILC Client Library.  Other files need not be included by
11038           the application anymore.
11039
11040         * Added new key_agreement client operation callback and also
11041           defined the Key Agreement library API for the application.
11042
11043 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11044
11045         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
11046           is used by clients to request key negotiation  between another
11047           client in the SILC network.  If the negotiation is started it
11048           is performed using the SKE protocol.  The result of the
11049           negotiation, the secret key material, can be used for example
11050           as private message key.
11051
11052           Implemented the Key Agreement payload into the files
11053           lib/silccore/silauth.[ch].
11054
11055 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11056
11057         * Redefined ciphers for the SILC protocol.  Added some new ciphers
11058           and defined the key lengths for the algorithms.  Changed the
11059           code accordingly.  The default key length is now 256 bits.
11060
11061         * Fixed SKE key distribution function silc_ske_process_key_material
11062           when the key length is more than 128 bits.  The default key
11063           length in SILC is now 256 bits.
11064
11065         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
11066           to indicate unsupported algorithm.
11067
11068         * Renamed rijndael.c to aes.c and all functions as well.
11069
11070         * Fixed a long standing channel key setting bug in client library.
11071           Weird that it has never surfaced before.
11072
11073         * Fixed bug in channel deletion.  If the entire channel is removed
11074           then it must also delete the references of the channel entry
11075           from the client's channel list as the client's channel entry and
11076           the channel's client entry share same memory.
11077
11078 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11079
11080         * Implemented CONNECT and SHUTDOWN commands in the client.
11081
11082         * Implemented CLOSE command to the client.
11083
11084         * Added the function silc_idlist_find_server_by_name into the
11085           files silcd/idlist.[ch].
11086
11087           Added the function silc_idlist_find_server_by_conn into the
11088           files silcd/idlist.[ch].
11089
11090 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11091
11092         * DIE command was renamed to SHUTDOWN.  Updated the both code
11093           and protocol specs.
11094
11095         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
11096           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
11097
11098         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
11099           side.
11100
11101         * Added function silc_server_create_connection function to create
11102           connection to remote router.  My server implementation actually
11103           does not allow router to connect to normal server (it expects
11104           that normal server always initiates the connection to the router)
11105           so the CONNECT command is only good for connecting to another
11106           router.
11107
11108 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11109
11110         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
11111           or some other client was kicked from the channel.
11112
11113           Implemented the handling of the notify type to both client
11114           and server.
11115
11116           Implemented silc_server_send_notify_kicked to send the KICKED
11117           notify.  It is used to send it to the server's primary router.
11118
11119         * Implemented the KICK command into server and client.
11120
11121         * Added `query' argument to the silc_idlist_get_client function
11122           to indicate whether to query the client from server or not if
11123           it was not found.
11124
11125         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
11126           to indicate that the client is not channel founder.
11127
11128         * Updated TODO.
11129
11130 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11131
11132         * Removed the rng context from SilcPacketContext structure and
11133           changed that the packet routine uses the Global RNG API.
11134
11135 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11136
11137         * Added support for quit message that client can "leave" on the
11138           channel when it quits the SILC.  It is ditributed inside the
11139           SILC_NOTIFY_TYPE_SIGNOFF notify type.
11140
11141           Added silc_server_free_client_data that will take the
11142           signoff message as argument.
11143
11144         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
11145
11146 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11147
11148         * Updated parts of the protocol specification to keep it up
11149           to date.
11150
11151 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11152
11153         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
11154           payloads in one packet.
11155
11156         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
11157           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
11158           use now the new List flag.
11159
11160         * Also deprecated the following packet types: REPLACE_ID,
11161           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
11162
11163         * Added list support for Notify packet in server.
11164
11165         * Added silc_server_send_notify_channel_change to send the
11166           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
11167           the silc_server_send_replace_id.
11168
11169         * Added silc_server_send_notify_nick_change to send the
11170           NICK_CHANGE notify type.  Deprecates the function
11171           silc_server_send_replace_id.
11172
11173         * Added silc_server_send_notify_join to send the JOIN notify type.
11174           Deprecates the function silc_server_send_new_channel_user.
11175
11176         * Added silc_server_send_notify_leave to send LEAVE notify type.
11177           Deprecates the function silc_server_send_remove_channel_user.
11178
11179         * Added silc_server_send_notify_cmode and
11180           silc_server_send_notify_cumode to send CMODE and CUMODE notify
11181           types.  Deprecates the silc_server_send_set_mode function.
11182
11183         * Added SERVER_SIGNOFF notify type to indicate that server has
11184           quit.  This means that all clients on the channel from that
11185           server will drop.  This can be also used when netsplit happens.
11186
11187           Deprecated REMOVE_ID packet type since it is not needed anymore
11188           even from server.
11189
11190           Added silc_server_send_notify_server_signoff to send the
11191           SERVER_SIGNOFF notify type.  Deprecates the function
11192           silc_server_send_remove_id.
11193
11194           Added also silc_server_send_notify_signoff to send the
11195           SIGNOFF notify type.
11196
11197         * Employed the PKCS #1. It is the mandatory way to do RSA in the
11198           SILC protocol from this day on.  Changed the protocol
11199           specification as well.
11200
11201         * Added silc_server_send_notify_topic_set to send TOPIC_SET
11202           notify type.  It is used between routers to notify about
11203           topic changes on a channel.
11204
11205         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
11206           ID data.
11207
11208         * Partly updated the protocol specification to comply with the
11209           changes now made.  It is still though a bit outdated.
11210
11211         * The JOIN notify type now takes one extra argument <Channel ID>.
11212           The packet used to be destined to the channel but now the
11213           JOIN type may be sent as list thus it is impossible to
11214           destine it to any specific channel.  By adding this argument
11215           it is again possible.
11216
11217 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11218
11219         * Added CREDITS file.  The CHANGES and CREDITS file will appear
11220           in the distribution as well.
11221
11222 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11223
11224         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
11225           types in the server's silcd/packet_receive.c.
11226
11227         * Implemented CMODE and CUMODE to work in router environment.
11228
11229         * Fixed minor encoding and decoding buglet from the
11230           lib/silccore/silcmode.c.
11231
11232         * Fixed buffer overflow from lib/silcclient/command.c in USERS
11233           command parsing.
11234
11235 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
11236
11237         * Changed all SilcConfigServer* and silc_config_server* to
11238           SilcServerConfig* and silc_server_config*, respectively.
11239           Patch by Bostik.
11240
11241 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11242
11243         * Associated the ID (client or server ID) to the Authentication
11244           Payload to avoid any possibility of forging.  Updated the
11245           protocol specification and the code accordingly.
11246
11247 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11248
11249         * The RSA key length is now save to the RsaKey context in the
11250           key generation process in lib/silccrypt/rsa.c.  The key length
11251           is now used to figure out the maximum size of the block allowed
11252           to be encrypted/signed.
11253
11254         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
11255           is equivalent to the silc_mp_mp2bin but does not allocate any
11256           memory.
11257
11258         * Changed silc_mp_mp2bin API to take length argument.  If it is
11259           non-zero then the buffer is allocated that large.  If zero, then
11260           the size is approximated using silc_mp_sizeinbase, which however
11261           is not relieable.
11262
11263         * Created Global RNG API which is global RNG that application can
11264           initialize.  After initializing, any routine anywhere in the
11265           code (including library) can use RNG without allocating a new
11266           RNG object.  This was done to allow this sort of use of the
11267           RNG in code that has no chance to allocate RNG object.  All
11268           applications currently allocate this and many routines in the
11269           library use this.  Affected file lib/silccrypt/silcrng.[ch].
11270
11271         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
11272           it to use the Global RNG API.
11273
11274         * Defined Authentication Payload into protocol specification that
11275           is used during SILC session to authenticate entities.  It is
11276           used for example by client to authenticate itself to the server
11277           to obtain server operator privileges.
11278
11279           Implemented this payload into the lib/silccore/silcauth.[ch].
11280           Implemented also routines for public key based authentication
11281           as the new protocol specification dictates.
11282
11283           Moved definitions of different authentication methods from
11284           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
11285
11286         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
11287           silc_pkcs_verify and silc_pkcs_sign_with_hash and
11288           silc_pkcs_verify_with_hash functions into the file
11289           lib/silccrypt/silcpkcs.[ch].
11290
11291 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11292
11293         * The client entry's userinfo pointer must be always valid.
11294           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
11295           will fail since it requires the userinfo.  Now, the userinfo
11296           is allocated as "" if actual userinfo does not exist.  Actually,
11297           it must exist and it is totally Ok to drop client connections
11298           that does not announce the userinfo.  However, we will make
11299           this workaround for now.
11300
11301         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
11302           to return the remote port by socket.
11303
11304 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11305
11306         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
11307           SILC_SERVER_PENDING_EXEC and added an new macro
11308           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
11309           data or when error occurs while processing the pending command.
11310
11311           Added new argument `destructor' into silc_server_command_pending
11312           and to the SilcServerCommandPending object.  This destructor is
11313           now called after calling the pending callback or if error occurs
11314           immediately.  If error occurs the actual pending callback won't
11315           be called at all - only the destructor.  The destructor may be
11316           NULL if destructor is not needed.
11317
11318           All this applies for client library code as well.  Similar
11319           changes were made there as well for the pending commands.
11320
11321           In the client, the application must now allocate the
11322           SilcClientCommandContext with the silc_client_command_alloc
11323           function.
11324
11325         * Added reference counter to the SilcServerCommandContext.  Added
11326           function silc_server_command_alloc and silc_server_command_dup
11327           functions.
11328
11329           Same type of functions added to the client library for the same
11330           purpose as well.
11331
11332         * Removed the cmd_ident from IDListData away since it is now
11333           global for all connections.  It is the command identifier used
11334           in command sending and with pending commands.  The affected file
11335           is silcd/idlist.h.
11336
11337         * Added reference counter to the SilcSocketConnection objecet to
11338           indicate the usage count of the object.  The object won't be
11339           freed untill the reference counter hits zero.  Currently only
11340           server uses this, and client ignores it.  The client must be
11341           set to use this too later.  The affected files are
11342           lib/silccore/silcsockconn.[ch].  Added also the function
11343           silc_socket_dup to increase the reference counter.
11344
11345           This was mainly added because it is possible that the socket
11346           is removed underneath of pending command or other async
11347           operation.  Now it won't be free'd and proper DISCONNECTING
11348           flags, etc. can be set to avoid sending data to connection that
11349           is not valid anymore.
11350
11351         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
11352           the connection.  After that it sets SILC_SET_DISCONNECTED.
11353           It is, however, possible that the socket data is not still freed.
11354           The silc_server_packet_process now checks that data is not
11355           read or written to connection that is DISCONNECTED.  The socket
11356           get's freed when the reference counter hits zero.
11357
11358 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11359
11360         * Changed the client operation API: channel_message operation's
11361           `sender' is now the client entry of the sender, not the nickname
11362           and the `channel' is the channel entry, not the channel name.
11363
11364           In the private_message operation the `sender' is now also the
11365           client entry of the sender not the nickname.
11366
11367           Affected file is lib/silcclient/ops.h and all applications
11368           using the client operations.
11369
11370 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11371
11372         * Moved the calling of ops->connect() from connect_to_server_final
11373           into receive_new_id functin since that is the point when the
11374           client is actually allowed to send traffic to network.  The
11375           affected file is lib/silcclient/client.c.
11376
11377 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11378
11379         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
11380           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
11381           (if needs broadcasting) instead of broadcasting the packets one
11382           by one which would make a burst in the network traffic.
11383
11384         * Added `broadcast' argument to the functions in silcd/server.[ch]
11385           silc_server_create_new_channel[_with_id] to indicate whether
11386           to send New Channel packet to primary router.
11387
11388 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11389
11390         * Added new function into the silcd/server.[ch] files:
11391           silc_server_create_new_channel_with_id to create new channel with
11392           already existing Channel ID.
11393
11394         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
11395           lib/silccore/silcpacket.h.  This packet is used t send list of
11396           Set Mode payloads inside one packet.  Server uses this to set
11397           the modes for the channels and clients on those channels, that it
11398           announced to the router when it connected to it.  The protocol
11399           specification has been updated accordingly.
11400
11401         * The silc_server_new_channel did not handle the packet coming
11402           from normal server as it normally does not send that.  However,
11403           when it announces its channels it does send it.  Implemented
11404           the support for that.
11405
11406         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
11407           into the file lib/silccore/id.h.
11408
11409 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11410
11411         * Fixed memory leaks in the functions silc_idlist_del_client,
11412           silc_idlist_del_channel and silc_idlist_del_server in the file
11413           silcd/idlist.c.  All of those leaked like a sieve.
11414
11415         * Fixed some small memory leaks in the client's function
11416           silc_client_notify_by_server.
11417
11418         * Added functions into silcd/server.c: silc_server_announce_clients,
11419           silc_server_announce_channels and silc_server_announce_server.
11420           These functions are used by normal and router server to announce
11421           to its primary router about clients, channels and servers (when
11422           router) that we own.  This is done after we've connected to the
11423           router.
11424
11425           These functions effectively implements the following packet types:
11426           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
11427           and SILC_PACKET_NEW_ID_LIST.
11428
11429         * Added new functions into the silcd/packet_receive.[ch]:
11430           silc_server_new_id_list, silc_server_new_channel_list and
11431           silc_server_new_channel_user_list to handle the incoming
11432           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
11433
11434         * Added support of changing Channel ID in the function
11435           silc_server_replace_id.  If the server that announces a channel
11436           to the router already exists in the router (with same name but
11437           with different Channel ID), router is responsible to send
11438           Replace ID packet to the server and force the server to change
11439           the Channel ID to the one router has.
11440
11441         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
11442           client that the Channel ID has been changed by the router.  The
11443           normal server sends this to the client.  Client must start using
11444           the new Channel ID as the channel's ID.
11445
11446           Implemented handling of this new type into lib/silcclient/client.c
11447           into the function silc_client_notify_by_server.
11448
11449         * Added new function silc_idlist_replace_channel_id into the files
11450           silcd/idlist.[ch] to replace the Channel ID.
11451
11452 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11453
11454         * Call silc_server_command_identify_check always when processing
11455           the IDENTIFY command in silcd/command.c
11456
11457 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11458
11459         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
11460           send keepalive packets.  The packet can be sent by clients,
11461           servers and routers.
11462
11463           Added function silc_socket_set_heartbeat into the file
11464           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
11465           If not set, the heartbeat is not performed.  The actual
11466           heartbeat is implemented in the low level socket connection
11467           library.  However, application is responsible of actually
11468           sending the packet.
11469
11470           Added silc_server_send_heartbeat to send the actual heartbeat
11471           packet into silcd/packet_send.[ch].  Server now performs
11472           keepalive with all connections.
11473
11474         * Added silc_task_get_first function into lib/silcutil/silctask.c
11475           to return the timeout task with shortest timeout.  There was a bug
11476           in task unregistration that caused problems.  TODO has been
11477           updated to include that task system must be rewritten.
11478
11479         * The client library will now resolve the client information when
11480           receiving JOIN notify from server for client that we know but
11481           have incomplete information.
11482
11483         * Rewrote parts of silc_server_remove_from_channels and
11484           silc_server_remove_from_one_channel as they did not remove the
11485           channel in some circumstances even though they should've.
11486
11487         * Encryption problem encountered in server:
11488
11489           The LEAVE command used to send the Channel Key packet to the
11490           router immediately after generating it.  However, the code
11491           had earlier sent Remove Channel user packet but not immediately,
11492           ie. it was put to queue.  The order of packets in the router
11493           was that Channel Key packet was first and Remove Channel User
11494           packet was second, even though they were encrypted in the
11495           reverse order.  For this reason, MAC check failed.  Now, this
11496           is fixed by not sending the Channel Key packet immediately but
11497           putting it to queue.  However, this is more fundamental problem:
11498           packets that are in queue should actually not be encrypted
11499           because packets that are sent immediately gets encrypted
11500           actually with wrong IV (and thus MAC check fails).  So, packets
11501           that are in queue should be encrypted when they are sent to
11502           the wire and not when they put to the queue.
11503
11504           However, the problem is that the current system has not been
11505           designed to work that way.  Instead, the packet is encrypted
11506           as soon as possible and left to the queue.  The queue is then
11507           just purged into wire.  There won't be any fixes for this
11508           any time soon.  So, the current semantic for packet sending
11509           is as follows:
11510
11511           o If you send packet to remote host and do not force the send
11512           (the packet will be in queue) then all subsequent packets to the
11513           same remote host must also be put to the queue.  Only after the
11514           queue has been purged is it safe again to force the packet
11515           send immediately.
11516
11517           o If you send all packets immediately then it safe to send
11518           any of subsequent packets through the queue, however, after
11519           the first packet is put to queue then any subsequent packets
11520           must also be put to the queue.
11521
11522           Follow these rules and everything works fine.
11523
11524 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11525
11526         * Added new function silc_server_remove_clients_by_server to
11527           remove all client entries from ID list when the server connection
11528           is lost.  In this case it is also important to invalidate all
11529           client entires as they hold the invalid server entry.  This
11530           fixes fatal bug when server has lost connection and will reconnect
11531           again.
11532
11533 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11534
11535         * Made some sanity checks to silc_server_daemonise like to check
11536           whether the requested user and group actually exists.
11537
11538         * Added sanity check to SKE's silc_ske_responder_finish to check
11539           that the public and private key actually is valid.
11540
11541         * Invalidate the client's nickname when receiving Replace ID
11542           packet and the Client ID is being replaced.  This means that the
11543           server will query the nickname if someone needs it (client)
11544           a bit later.
11545
11546         * Sort the ID Cache in client library when the ID Cache data
11547           has changed (needs sorting).
11548
11549         * Do not allow for SILC client to create several connections to
11550           several servers.  The client does not support windows right now
11551           and generating multiple connections causes weird behaviour.
11552
11553           Irssi-silc client does support windows and can handle several
11554           connections without problems, see: www.irssi.org and SILC plugin.
11555
11556         * Fixed some places where client was added to the IDList.  The
11557           rule of thumb is following (in order to get everything right):
11558           If the client is directly connected local client then the
11559           `connection' argument must be set and `router' argument must be
11560           NULL to silc_idlist_add_client function.  If the client is not
11561           directly connected client then the `router' argument must
11562           bet set and the `connection' argument must be NULL to the
11563           silc_idlist_add_client function.
11564
11565         * The funtion silc_server_packet_send_local_channel actually did
11566           not check whether the client was locally connected or not.  It
11567           does that now.  Fixed a bug related to LEAVE command.
11568
11569         * Fixed Remove Channel User payload parsing bug in server's
11570           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
11571
11572         * The server's silc_server_save_channel_key now checks also the
11573           global ID list for the channel as it might not be in the local
11574           list.  Fixed a bug related to LEAVE command.
11575
11576         * Is this the end of the [<unknown>] buglet that has been lurking
11577           around for a long time?  A little for loop fix in server's
11578           silc_server_command_whois_parse that is used by both IDENTIFY
11579           and WHOIS command.  At least, this was a clear bug and a cause
11580           of one type of [<unknown>] buglet.
11581
11582         * WHOIS and IDENTIFY commands call the function
11583           silc_server_command_[whois/identify]_check function even if
11584           we are not router server.
11585
11586 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11587
11588         * Added --with-gmp configuration option.  If set the GMP
11589           is always compiled in the SILC source tree.  If not set then
11590           it is checked whether the system has the GMP3 installed.  If
11591           it has then the GMP won't be compiled (the system's headers
11592           and library is used), if it doesn't have it then the GMP is
11593           compiled in the SILC source tree.
11594
11595 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11596
11597         * Changed RSA private exponent generation to what PKCS #1
11598           suggests.  We try to find the smallest possible d by doing
11599           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
11600           not security fix but optimization.
11601
11602 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11603
11604         * Added new config entry [Identity] to fork the server and run
11605           it as specific user and group.  A patch from Bostik.
11606
11607         * Imported Dotconf configuration library into lib/dotconf.
11608           This will be used to create the SILC configuration files later.
11609           It will appear in the distsribution after this commit.
11610
11611 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11612
11613         * A big code auditing weekend happening.  Auditing code for
11614           obvious mistakes, bugs and errors.  Also, removing any code
11615           that is obsolete.
11616
11617           Removed files for being obsolete:
11618
11619           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
11620           inline in the file lib/silcutil/silcbuffer.h)
11621
11622           o lib/silcutil/silcbufutil.c (the header has inline versions)
11623
11624           Changed code to fix possible error conditions:
11625
11626           o The buffer formatting routines now check that the destination
11627           buffer really has enough space to add the data.  This applies for
11628           both buffer formatting and unformatting
11629           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
11630           unformatting was changed to accomodate following rules:
11631           XXX_*STRING_ALLOC will allocate space for the data into the pointer
11632           sent to the function while XXX_*STRING will not allocate or copy
11633           the data into the buffer.  Instead it sets the pointer from the
11634           buffer into the pointer sent as argument (XXX_*STRING used to
11635           require that the pointer must be allocated already).  This change
11636           makes this whole thing a bit more consistent and more optimized
11637           (note that the data returned in the unformatting with XXX_*STRING
11638           must not be freed now).  The routines return now -1 on error.
11639
11640           o Tried to find all code that use buffer_format and buffer_unformat
11641           and added return value checking to prevent formatting and
11642           especially unformatting errors and possible subsequent fatal
11643           errors.
11644
11645           o Changed ske->x and ske->KEY to mallocated pointers in
11646           lib/silcske/silcske.h.  Fixed possible data and memory leak.
11647
11648           o Added return value checking to all *_parse* functions.  Fixed
11649           many memory leaks as well.
11650
11651           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
11652           so that buffer overflows would not happen.  All code now also
11653           checks the return value as it can fail.
11654
11655 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11656
11657         * Added reconnection support to server if the normal server looses
11658           its connection to the router (for example if router is rebooted).
11659           The server performs normal reconnection strategy implemented
11660           to the server.  Affected file silcd/server.c.
11661
11662 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11663
11664         * Added new packet type SILC_PACKET_SET_MODE that is used to
11665           distribute the information about changed modes (for clients,
11666           channels and clients channel modes) to all routers in the
11667           network.  Updated the protocol specification accordingly.
11668
11669           Added functions into silcd/packet_send.c and
11670           silcd/packet_receive.c: silc_server_send_set_mode,
11671           silc_server_set_mode.
11672
11673           Added new files silcmode.[ch] into lib/silccore that implements
11674           the encoding and decoding of Set Mode Payload.  Added new type
11675           SilcSetModePayload.  Moved the definitions of different modes
11676           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
11677
11678 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11679
11680         * Oops, a little mistake in server's connection authentication
11681           protocol.  The protocol is not ended with FAILURE but with
11682           SUCCESS if the authentication is Ok. :)  Affected file is
11683           silcd/protocol.c.
11684
11685         * Implemented NICK_CHANGE notify handling in server in the file
11686           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
11687           the local clients on the channel.  After the changing nickname
11688           in router environment snhould work and the [<unknown>] nickname
11689           should appear no more.
11690
11691           The silc_server_replace_id function that receives the Replace ID
11692           payload now sends the NICK_CHANGE notify type also in the file
11693           silcd/packet_receive.c
11694
11695         * Changed WHOIS and IDENTIFY command to support the maximum amount
11696           of arguments defined in protocol specs (3328 arguments).  This
11697           fixed a bug that caused problems when there were more than three
11698           users on a channel.
11699
11700 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11701
11702         * Added extra parameter, command identifier, to the
11703           silc_client_send_command so that explicit command identifier
11704           can be defined.
11705
11706           Changed that ID list routines uses specific command identifier
11707           when sending WHOIS/IDENTIFY requests to the server so that they
11708           can be identified when the reply comes back.
11709
11710           Affected files lib/silcclient/command.[ch],
11711           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
11712
11713         * Added `sender' argument to silc_server_packet_send_to_channel
11714           to indicaet the sender who originally sent the packet to us
11715           that we are now re-sending.  Ignored if NULL.  Affected file
11716           silcd/packet_send.[ch].
11717
11718         * Added some server statistics support in silcd/server_internal.h
11719           SilcServerStatistics structure and around the server code.  Also
11720           send some nice statistics information when client is connecting
11721           to the client.
11722
11723 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11724
11725         * Fixed channel ID decoding in server's JOIN command reply in
11726           silcd/command_reply.c
11727
11728         * Fixed braodcasting of replace ID payload to not to send it if
11729           we are standalone server in silcd/packet_receive.c.
11730
11731         * Fixed all channel message sending routines to not to send
11732           packets to clients that has router set, since they are routed
11733           separately in the same function earlier.  Affects file
11734           silcd/packet_send.c and all channel packet sending functions.
11735
11736         * In USERS reply, res_argv[i] are not allocated, the table
11737           is allocated.  Thus changed that free the table, not its
11738           internals.
11739
11740         * In server's whois_check and identify_check if the client is
11741           locally connected do not send any WHOIS commands - they are not
11742           needed.
11743
11744 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11745
11746         * Fixed some minor bugs in client when sending WHOIS command.  The
11747           arguments was in wrong order.
11748
11749         * Removed statis function add_to_channel from server in
11750           silcd/command.c that was previously used with the joining but
11751           is obsolete now.
11752
11753         * Tested USERS command in router environment successfully with two
11754           routers, two servers and two clients.
11755
11756 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11757
11758         * Reorganized the USERS command and command reply in client library
11759           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
11760           When the command is given by user we register a pending command
11761           callback that will reprocess the command after the reply has been
11762           received from the server.  When reprocessing the packet we then
11763           display the information.  Thus, the USERS information is displayed
11764           now in the command callback instead of in the command reply
11765           callback.  The processing of the command is same as previously
11766           when server has sent the command reply in the JOINing process.
11767
11768         * Added to USERS command in silcd/command_reply.c to join the client,
11769           we didn't use to know about, to the channel after we've created
11770           a client entry for it.  Also, for clienet we did know already still
11771           check whether it is on the channel or not and add it if not.
11772
11773         * Removed silc_server_command_join_notify as the function and its
11774           use was obsolete.
11775
11776 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11777
11778         * Changed the client's pending command handling to the same as the
11779           server's pending command handling.  It is also now possible to
11780           execute command reply functions from other command reply
11781           function as the function callbacks for commands and command
11782           replies are one and same.  The pending commands are not static
11783           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11784           in client connection context.  Thus, pending commands are server
11785           connection specific as it is convenient.
11786
11787           Changed the function silc_client_command_pending and
11788           silc_client_command_pending_del and added new function
11789           silc_client_command_pending_check.  Removed the
11790           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11791           macros.
11792
11793         * Added cmd_ident, current command identifier, to the client
11794           connection context in lib/silcclient/client.h to keep track on
11795           command identifiers used in command sending.  Client's command reply
11796           function handling now supports the mandatory command identifiers.
11797
11798         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11799           funtions in client to fully support pending command callbacks.
11800
11801         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11802           as one of the arguments to the application in the command reply
11803           client operation.
11804
11805         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11806           before first releasing SILC but came back.  Now it is removed again
11807           and should come back nomore.  The FORWARDED flag was used only
11808           by the JOINing procedure by forwarding the command packet to router.
11809           Now, the JOINing procedure has been changed to more generic (due
11810           to various router environment issues) and FORWARDED is not needed
11811           anymore for anything.  The protocol specification is yet to be
11812           updated.
11813
11814           Now, removed silc_server_packet_forward from server and the flag
11815           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11816
11817 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11818
11819         * Renamed NAMES command to USERS command.  The NAMES was named that
11820           due to historical reasons.  Now it is renamed.  Also, rewrote
11821           parts of the USERS command.  The nickname list is not sent anymore
11822           by the server.  Only Client ID and mode lists are sent in the USERS
11823           command.  Changed this also to the protocol specification.
11824
11825           The client now resolves the names and stuff after it receives
11826           the USERS list from the server when joining to the channel.
11827
11828         * WHOIS and IDENTIFY commands has been changed to support multiple
11829           Client ID's per command.  One can now search for multiple users
11830           in the network by sending only one WHOIS or IDENTIFY command.
11831           Changed the code and the protocol specifications.
11832
11833         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11834           uses silc_server_command_whois_parse to parse the request. */
11835
11836         * If normal server, do not parse the WHOIS and IDENTIFY requests
11837           before sending it to the router.  Saves some time.
11838
11839 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11840
11841         * Fixed JOIN command on client library.  Wrong number of arguments
11842           used to crash the client.
11843
11844         * Added silc_server_channel_has_global function to check whether
11845           channel has global users or not.
11846
11847         * Added silc_server_channel_has_local function to check whether channel
11848           has locally connected clients on the channel.
11849
11850         * The silc_server_remove_from_one_channel now checks whether the
11851           channel has global users or not after given client was removed from
11852           the channel.  It also checks whether the channel has local clients
11853           on the channel anymore.  If it does not have then the channel entry
11854           is removed as it is not needed anymore.
11855
11856         * The silc_server_notify now checks on JOIN notify whether the joining
11857           client is one of locally connected or global.  If it is global then
11858           the channel has now global users on the channel and that is marked
11859           to the channel entry.  Also, it now saves the global client to
11860           global list who is joining and JOINs it to the channel.  This is
11861           for normal server, that is.
11862
11863           Changed silc_server_send_notify_on_channel,
11864           silc_server_packet_relay_to_channel and
11865           silc_server_packet_send_to_channel check if we are normal server
11866           and client has router set (ie. global client) do not send the
11867           message to that client, as it is already routed to our router.
11868
11869         * Implemented LEAVE notify type handling in silc_server_notify
11870           function.
11871
11872         * Tested LEAVE command in router environment successfully.  Tested
11873           with two routers, two servers and two clients.
11874
11875         * Updated TODO.
11876
11877         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11878
11879         * Implemented SIGNOFF notify type handling in silc_server_notify
11880           function.
11881
11882         * silc_server_remove_id now removes the client entry from all channels
11883           it has joined and thusly sends SIGNOFF notify type.
11884
11885         * Rewrote the NAMES list generation in server by removing two excess
11886           loops.  The lists are created now inside one loop.
11887
11888 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11889
11890         * silc_server_remove_channel_user checks now also global list
11891           for channel and client.
11892
11893         * silc_server_new_channel_user checks now both local and global
11894           list for channel and client.  Fixed a bug in client id decoding.
11895           Used to decode wrong buffer.
11896
11897         * silc_server_channel_message checks now both local and global
11898           list for channel entry.
11899
11900         * Tested channel joining (hence JOIN) in router environment
11901           successfully.  Tested with two routers, two servers and two
11902           clients.
11903
11904         * Tested channel message sending in router environment successfully.
11905
11906 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11907
11908         * Added silc_server_save_channel_key into server.[ch] to save the
11909           received channel key in Channel Key payload processing. It is
11910           also used in JOIN command reply handling.
11911
11912           Equivalent function silc_client_save_channel_key added into
11913           client.[ch] into client library.
11914
11915         * Changed JOIN command reply to send information whether the channel
11916           was created or not (is existing already) and the channel key
11917           payload.  Changed protocol specs accordingly.
11918
11919         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11920           the request was sent by ID and not by nickname.  Crashed on
11921           NULL dereference.
11922
11923 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11924
11925         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11926           now correctly save the received data.
11927
11928         * silc_server_free_sock_user_data now notifies routers in the
11929           network about entities leaving the network.
11930
11931           At the same time implemented functions silc_server_remove_id
11932           and silc_server_send_remove_id to receive and send REMOVE_ID
11933           packets.  The packet is used to notify routers in the network
11934           about leaving entities.  The ID removed will become invalid in
11935           the network.
11936
11937         * Added function silc_idlist_del_server into server. Removes and
11938           free's server entry from ID list.
11939
11940         * silc_server_private_message function now checks, if we are router,
11941           that the destination ID really is valid ID, naturally.
11942
11943         * In router when NEW_ID packet is received (for new client) the
11944           hash of the Client ID is saved in the ID Cache but the
11945           client->nickname is set to NULL, instead of putting the hash
11946           to it as well.
11947
11948           IDENTIFY command now also checks that client->nickname must be
11949           valid. If it is not if will request the data from the server who
11950           owns the client.  Added new function
11951           silc_server_command_identify_check.
11952
11953         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11954           to set the command to already allocated Command Payload.
11955
11956         * Tested private message sending in router environment with two
11957           routers, two servers and two clients.  Fixed minor bugs and now
11958           it works fine.
11959
11960         * Fixed segfault from client's NAMES command. Used to crash if
11961           not on any channel.
11962
11963         * Forwarded packets must not be routed even if it is not destined
11964           to the receiver.  Changed server code comply with this.
11965
11966 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11967
11968         * Added `require_reverse_mapping' boolean value to ServerParams
11969           structure. If TRUE (not default) the server will require that
11970           the connecting host has fully qualified domain name.
11971
11972           If the reverse mapping is not required and hostname could not be
11973           found the IP address is used as hostname.
11974
11975 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11976
11977         * Implemented version string checking to both client and server.
11978           The check is incomplete currently due to the abnormal version
11979           strings used in development version of SILC.
11980
11981         * Changed all command functions in server to use the new
11982           CHECK_ARGS macro.
11983
11984 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11985
11986         * Changed char *data to unsigned char *data in ID Cache system to
11987           support binary data as ID Cache data. Changed code to support
11988           binary data in lib/silccore/idcache.c.
11989
11990         * Renamed silc_server_packet_relay_command_reply to
11991           silc_server_command_reply as it is normal packet receiving
11992           function. Rewrote the function to accept command replys for
11993           servers and not only for clients.
11994
11995         * Mark remote router always as registered server if we are connecting
11996           to it.  Otherwise, commands sent by the router to us are ignored.
11997
11998         * All ID List find routines now returns the ID Cache Entry pointer
11999           as well if requested.
12000
12001         * WHOIS command works now in router environment, tested with two
12002           routers, two servers and two clients.
12003
12004         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
12005           in router environment (as it is almost equivalent to WHOIS) but
12006           hasn't been tested thoroughly.  Added new functions:
12007
12008           silc_server_command_identify_parse
12009           silc_server_command_identify_send_reply
12010           silc_server_command_identify_from_client
12011           silc_server_command_identify_from_server
12012
12013         * Disabled route cache adding because adding two different ID's with
12014           same IP replaces the old cache entry thus giving wrong route.
12015           The entry->router->connection is always the fastest route anyway
12016           so route cache may not be needed.  Of course, new routes maybe
12017           established after receiving the ID when the entry->router->connection
12018           might not be anymore the most optimal.
12019
12020 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12021
12022         * Add route cache for received ID for fast routing.
12023
12024         * Added silc_server_packet_route to route received packet on router
12025           that is not destined to us.
12026
12027         * Renamed silc_server_get_route to silc_server_route_get.
12028
12029         * Added id_string and id_string_len fields into SilcServer to
12030           include encoded ServerID for fast comparing without excess
12031           encoding of the ID's.
12032
12033         * Cleaned up WHOIS command on server side. Added following static
12034           functions:
12035
12036           silc_server_command_whois_parse
12037           silc_server_command_whois_check
12038           silc_server_command_whois_send_reply
12039           silc_server_command_whois_from_client
12040           silc_server_command_whois_from_server
12041
12042         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
12043           arguments in command replies. All command functions should be
12044           updated to use this macro.
12045
12046 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12047
12048         * Minor typo fixes on command reply handling on server.
12049
12050 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12051
12052         * Added silc_server_command_add_to_channel internal routine to add
12053           the client to the channel after router has created the channel and
12054           sent command reply to the server.
12055
12056         * Added generic silc_server_send_command to send any command from
12057           server.
12058
12059         * Use static buffer with ID rendering instead of duplicating data.
12060
12061 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12062
12063         * Fixed a channel user mode bug when joining to a channel server gave
12064           everybody channel founder rights, oops.
12065
12066         * We mark ourselves as the router of the incoming server connection
12067           if we are router ourselves.  This way we can check in some packet
12068           sending functions whether it is locally connected server.  For
12069           incoming router connections we put NULL.
12070
12071         * For router sending packets locally means now always sending the
12072           packet cell wide; to local clients and local servers.  For normal
12073           server sending packet locally means sending it to only local
12074           clients.
12075
12076         * Fixed the JOIN command to really work in router environment.  If the
12077           channel is created it is always created by the router.  Router is
12078           also responsible of making the initial joining to the channel,
12079           sending JOIN notify to the sending server and distributing
12080           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
12081           does not exist server doesn't do anything else but forward the
12082           command to the router which performs everything.
12083
12084         * Added silc_server_send_channel_key function to send the Channel Key
12085           payload.
12086
12087         * Added silc_server_create_channel_key to create new channel key.  The
12088           channel key is now re-generated everytime someone joins or leaves
12089           a channel, as protocol dictates.  Note: channel->key_len is the
12090           key length in bits.
12091
12092 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12093
12094         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
12095           packet_receive.[ch] to separate packet sending and receiving
12096           routines.  The server.[ch] now includes everything else including
12097           actual packet processing (writing and reading data) and other
12098           server issues.
12099
12100           Renamed silc_server_private_message_send_internal to
12101           silc_server_send_private_message.  The routine is still though
12102           used only to relay private messages as server does not send
12103           private messages itself.
12104
12105           Renamed silc_server_new_channel to silc_server_create_new_channel
12106           and added new function sicl_server_new_channel that handles the
12107           incoming New Channel packet.  Added also new sending function
12108           silc_server_send_new_channel to send New Channel Payload.
12109
12110         * Added new function silc_server_notify to process incoming notify
12111           packet to the server/router. Server may then relay the notify
12112           to clients if needed.
12113
12114         * Added new function silc_server_new_channel_user to process incoming
12115           New Channel User packet.  Router will redistribute the packet and
12116           send JOIN notify to its local clients and locally connected servers
12117           if needed.  Normal server will send JOIN notify to its local client
12118           on same channel when received this packet.  Added also corresponding
12119           sending function silc_server_send_new_channel_user to sent the
12120           payload.
12121
12122         * Added boolean route argument to send_notif_to_channel and
12123           packet_send_to_channel functions to attempt to route the packet
12124           if it is TRUE and send only locally if it is FALSE.
12125
12126 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12127
12128         * silc_server_replace_id now broadcasts the received replace ID
12129           packet if it is not broadcast packet already. The router must
12130           broadcast to inform other routers about changed ID.
12131
12132         * Added backpointer to server's router into SilcServer context in
12133           silcd/server_internal.h.
12134
12135         * Fixed silc_server_packet_broadcast to send correct broadcast
12136           packets.
12137
12138         * The channel key is now distributed to the local client as soon
12139           as it is received from the router (in router environment) so that
12140           no other packet may be sent for the channel until client has
12141           received the key.
12142
12143         * silc_server_remove_channel_user now broadcasts the received
12144           Remove Channel User packet if it is not broadcast packet already.
12145           The router must broadcast to inform other routers about removed
12146           channel user.
12147
12148         * Added users field into SilcPacketContext that is a reference count
12149           of the context.  One can increase the reference count by calling
12150           silc_packet_context_dup which is now changed to just increase the
12151           reference count instead of duplicating the data.  The reference
12152           count is decresed by calling silc_packet_context_free that will
12153           free the data after the reference count hits zero.
12154
12155           For now on the packet context and everything allocated into it
12156           (including the raw packet from network) must be freed by calling
12157           the new silc_packet_context_free function.  Added also new function
12158           silc_packet_context_alloc that must be used now to allocate the
12159           context.  This also means that if a routine is asynchronous from
12160           silc_[client/server]_packet_parse_type the packet context must
12161           be duplicated by calling silc_packet_context_dup.  Otherwise it
12162           gets free'd after silc_[client/server]_packet_parse_type returns.
12163           Also, one must remember that if packet is duplicated then its
12164           reference count must be decresed by calling the free function as
12165           many times as it was duplicated.
12166
12167         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
12168           from both client and server.
12169
12170 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12171
12172         * Made joining to a channel working in router environment.
12173
12174         * Cleaned up JOIN command on server side and create function
12175           silc_server_command_join_channel internal routine to make the
12176           joining happen.
12177
12178 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12179
12180         * Changed silc_command_pending list to SilcDList.  Also, added
12181           `ident' field to SilcServerCommandPending structure to identify
12182           the reply and to call correct callback.
12183
12184           Added silc_server_command_pending_check function to replace the
12185           corresnponding macro.  The silc_command_pending list is not
12186           extern anymore.
12187
12188         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
12189           to set identifier to previously allocated Command Payload.  It
12190           is used to set identifier for command when resending Command
12191           Payload.
12192
12193         * Added silc_command_payload_encode_payload to encode Command
12194           Payload buffer from SilcCommandPayload structure.
12195
12196         * Added silc_argument_payload_encode_payload to encode Argument
12197           payload buffer from SilcArgumentPayload structure.
12198
12199 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12200
12201         * Changed WHOIS command to support router connection on server side.
12202           The whois request is always sent to router unless the server is
12203           standalone server.  After server has received the reply from the
12204           router will it send the reply to the client.
12205
12206         * Added silc_server_packet_broadcast into silcd/server.[ch] to
12207           broadcast received broadcast packet.  The function is used only
12208           by router.  The broadcast packet is always sent to the router's
12209           primary route.
12210
12211         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
12212           render given ID to printable string, for log files for example.
12213
12214 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12215
12216         * Made basic router to router connections working.  At least they
12217           can now connect to each other but nothing really works the way
12218           they are supposed - yet.
12219
12220         * Added new initiator token to RouterConnection configuration
12221           file in silcd/serverconfig.[ch].  It is used to tell whether we
12222           are the initiator to the remote router or whether we'll expect
12223           the other end to connect.
12224
12225         * Moved registering of listener task to silc_server_init, hence
12226           the server starts listenning as soon as it is run, even if it
12227           does not have connections to other routers.  Let's see how well
12228           this will work.
12229
12230         * Changed default connection retry timeouts for more suitable in
12231           silcd/server.h.
12232
12233         * Removed cipher and such arguments from silc_idlist_add_client
12234           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
12235           Added new function silc_idlist_add_data to add the keys and stuff
12236           to any ID entry.
12237
12238         * Added SilcIDListData structure and added it to SilcClientEntry
12239           and SilcServerEntry as their first field in the structure.  This
12240           way we can explicitly cast the ID entries to the SilcIDListData
12241           structure and get common data for the entries.  In past, we had
12242           to first check what type of connection it is and then cast it to
12243           correct ID entry type.  Now, we can directly cast the opaque
12244           pointer to the SilcIDListData (no matter what ID entry it actually
12245           is) and get the data needed.
12246
12247 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12248
12249         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
12250           in some circumstances even if threre were timeout tasks, though not
12251           IO tasks, but tasks anyway.  Now fixed.
12252
12253         * Defined SilcServerConnection structure to hold connection specific
12254           stuff about directly connected servers and routers.  The definition
12255           is currently in silcd/server_internal.h.  I thought about having
12256           a bit more important role fro this struct but for now it is used
12257           only when connecting to other server (or router actually).
12258
12259         * Added connecting retry support in server when connecting to
12260           router(s).  The retry feature implement exponential backoff
12261           algorithm.  Also, added SilcServerParams structure to hold default
12262           parameters for server.  For now, it include these retry settings
12263           and are hard coded.  After server is moded to be as Silc Server
12264           Library this structure will be more important.
12265
12266 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12267
12268         * Changed client librarys channel->clients table to SilcList and
12269           changed code accordingly.
12270
12271 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12272
12273         * Changed client's channel table to SilcList and changed code
12274           accordingly.  Also changed SilcChannelClientEntry to include back-
12275           pointer to the channel so that client entry can use that structure
12276           as list as well and we have fast cross-reference to the channel.
12277           This change dramatically decreased the complexity of channel
12278           handling with client entry and vice versa (removed one extra
12279           loop when searching for channel entry from many functions).
12280
12281         * Changed server->sim from table to SilcDList and changed code
12282           accordingly.
12283
12284         * NAMES command can now be used from user interface.  It will show
12285           the user list on the channel, neatly.
12286
12287         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
12288           Code now saves realname of the user if it becomes available.
12289
12290         * Renamed configure.in to configure.in.pre and made ./prepare
12291           script to automatically add correct version string to
12292           configure.in which it creates from configure.in.pre.
12293
12294 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12295
12296         * NAMES command reply now shows users mode with the nickname when
12297           joining to channel.
12298
12299         * Moved silc_client_ch[u]mode[_char] functions from
12300           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
12301           place sucks, they are utility functions and should be in some
12302           other file.
12303
12304         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
12305
12306         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
12307           cras.
12308
12309 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12310
12311         * Updated README.
12312
12313         * Added TRQ (efficient deque and list library) into lib/trq.  This is
12314           a very good list library that is currently used in the SILC.  Defined
12315           SilcList API over the library because I didn't like the API very
12316           much.  See lib/trq/silclist.h for the API and examples of how to
12317           use the API.  Fixed various places in the code to use the new
12318           SilcList API. The SilcList is meant for lists that has a structure
12319           already defined as a list.  It is not suitable to add just some
12320           context to the list (in TRQ, the context is the list actually).
12321
12322           So, I defined SilcDList that can be used for the purpose where
12323           predefined list structure does not exit.  This can be used as
12324           such list.  Now some context just can be added to the SilcDList.
12325           Currently this list is not used in the SILC just yet, though there
12326           are a lot places where this can replace dynamically allocated
12327           tables and I will fix these places, later, to use SilcDList.
12328           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
12329           and use TRQ internally).
12330
12331           Also fixed some annoying warning messages that the original TRQ
12332           code generated.  Also minor changes to TRQ's Makefile.in.
12333
12334         * Added support for querying by Client ID to both WHOIS and
12335           IDENTIFY commands into server, as required by the protocol.
12336
12337         * Removed method function pointers from SilcBuffer structure. They
12338           weren't used to anything and just increased the context size for
12339           no good reason.  This change also made silc_buffer_alloc and
12340           silc_buffer_free functions inline functions.
12341
12342         * Disabled command flooding detection support until it's fixed so
12343           that it accepts commands in but does not execute them more than once
12344           in two seconds.
12345
12346         * Added silc_net_localhost(), to return local hostname, into
12347           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
12348           that must be initialized before calling silc_client_init.
12349
12350         * Added new function: silc_server_send_notify_on_channels to send
12351           notify messages to all channels client has joined.  It is assured
12352           that the message is sent only once per client.
12353
12354         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
12355           lib/silcutil/silcutil.[ch] as silc_format function.  The new
12356           function is generic and is used by server as well, not only by
12357           the logging routines.
12358
12359         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
12360           the provided version string was not acceptable.  Added new function:
12361           silc_ske_check_version into lib/silcske/silcske.h.  The function
12362           must be implemented by the application (client or server) and it
12363           does not reside in the SKE library.  The function checks the version
12364           string remote end sent.
12365
12366         * Added back pointers (to opaque context and to SilcSocketConnection)
12367           into SilcPacketContext structure into lib/silccore/silcpacket.h.
12368
12369         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
12370           duplicate packet context structure.
12371
12372         * Changed `notify' client operation to send same arguments as client
12373           receives from server except for ID's.  ID's are mapped to correct
12374           ID entry and that is returned.  Also, if channel entry is not sent
12375           by server but the notify is for channel the channel entry is sent
12376           to application (otherwise application doesn't know that it is for
12377           channel (library gets it from packet's Destination ID)).
12378
12379         * Added silc_client_remove_from_channels into client library to
12380           remove a client from all channels it has joined to.  Used when
12381           received SIGNOFF notify from server.  Added also new function
12382           silc_client_replace_from_channels to replace old ID entry with
12383           new ID entry on all channels.  Used when received NICK_CHANGE
12384           notify from server.
12385
12386         * Fixed ID Cache list handling in silc_idlist_get_client in
12387           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
12388           to get (or query) client by ID.
12389
12390         * Updated TODO list.
12391
12392         * Added connection authentication status message defined by the
12393           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
12394           support for these into the code in client and server side.
12395
12396         * Added generic function silc_client_send_command to send any command
12397           with variable argument list.  Application should use this function
12398           to send commands if the command functions provided by the library
12399           does not suite for the application's user interface needs.
12400
12401         * Added new `failure' client operation.  Application is notified about
12402           received failure packet if client is executing a protocol.  In this
12403           case the protocol's execution has failed.
12404
12405         * Added SKE's end notify to send the SKE_SUCCESS notify message that
12406           is required by the protocol.
12407
12408         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
12409           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
12410           error at our end.
12411
12412         * Added status flag to SilcSKE object to indicate realtime status
12413           of the SKE protocol.
12414
12415         * Application receives now exactly same command reply arguments as
12416           the library receives from server.  However, if ID is received the
12417           corresponding ID entry is returned to the application (eg. Client
12418           ID is mapped to correct SilcClientEntry entry and that is returned).
12419           Changed command_reply client operation due to this change.
12420
12421         * Changed all ID's in commands and in command replys as ID Payloads.
12422           Change affected both client and server side codes.
12423
12424           All ID's sent in SILC network (with execption of ID's in SILC
12425           Packet header) are sent in ID Payload to support variable length
12426           ID's.
12427
12428         * Server now notifies nick changes and notifies all clients on
12429           the channels about the new nickname (about the new Client ID,
12430           actually).
12431
12432         * Implemented CMODE command to change channel modes. Supports all
12433           channel modes defined by the protocol specs except ban and invite
12434           lists. (Also, private channel key mode is supported but support for
12435           setting private channel key in client is missing, thus, this mode
12436           has no effect on client side (except that server requires that the
12437           client uses private channel key and normal channel traffic does not
12438           work anymore)).
12439
12440           Also, invite mode works per se, but INVITE command does not work
12441           yet correctly, so you can set channel as invite only channel but
12442           inviting clients to the channel does not work (it is yet to be
12443           thought what's the best way to do it).
12444
12445         * Added new command SILC_COMMAND_CUMODE to change user mode on the
12446           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
12447           Implemented CUMODE command to change user's mode on the channel.
12448           Supports all modes defined by the protocol specs.
12449
12450         * Added NAMES command reply to return users modes on the channel.
12451
12452         * Removed unnecessary and slow ciphers from lib/silccrypt.
12453
12454         * Set SO_KEEPALIVE option to connection sockets by default.
12455
12456         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
12457
12458         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
12459           redefined the Notify Payload into protocol specs.
12460
12461         * Added silc_id_payload_parse_id to get ID directly from raw
12462           ID payload data.
12463
12464 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12465
12466         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
12467           accept searching by Client ID as well.
12468
12469         * Added support for LEAVE and SIGNOFF notify types in client library.
12470
12471         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
12472           to parse ID Payload from raw data.
12473
12474 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12475
12476         * Added flags parameter into silc_ske_assemble_security_properties
12477           function in lib/silcske/silcske.[ch].
12478
12479         * Changed notify client operation to fit better for notify messages
12480           sent by server.  The notify payload received from server is now
12481           passed to the application (after parsing it to SilcNotifyPayload).
12482           It is application's responsibility to retrieve the arguments
12483           from the payload and show the message the way it wants.  The message
12484           sent by server is implementation specific.
12485
12486         * Changed public keys to comply with the protocol specification.
12487           Old public keys are not supported anymore and are not compatible.
12488
12489         * Removed nickname from Channel Payload as the latest draft removed
12490           it.  The client must resolve the nickname from the NAMES command
12491           reply received when it joined the channel.
12492
12493           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
12494
12495 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12496
12497         * Fixed some errors in protocol specification drafts.
12498
12499         * Created lib/silccore/silcnotify.c to implement Notify Payload
12500           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
12501           generic payloads described by protocol specifications.  The file
12502           includes implementations for ID Payload and Argument Payload.
12503
12504         * Changed Command Payload implementation to use the new Argument
12505           Payload.  Changed command_xxxx_payload to command_payload_xxxx
12506           to comply with SILC coding conventions.
12507
12508         * Added suppport for Argument Payload handling in Notify Payload
12509           implementation as protocol requires it.  Added the new support
12510           into server and client lib as well.
12511
12512 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12513
12514         * Added support for multiple nicknames on same channel.  [n] is
12515           added locally to the nickname if there are more than one same
12516           nicknames on the channel.
12517
12518         * Server now sends all nicknames that matched WHOIS request.
12519           Client also shows the list received from server.
12520
12521         * Added TOPIC command to client side.  User can now set and show
12522           current topic on channel.
12523
12524         * Added MOTD command to client and server.  Also, server sends the
12525           motd when client connects to the server.
12526
12527         * Changed version strings to comply ISO 8601.
12528
12529 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12530
12531         * Fixed protocol error handling in client library.  It should now
12532           cope even if the SKE fails for some reason.
12533
12534         * Made new protocol specification drafts for submitting to IETF.
12535
12536         * Implemented TOPIC command to server in silcd/command.c.
12537
12538         * Added two new notify types into lib/silccore/silcnotify.h:
12539           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
12540           notify nickname change and topic setting/change on a channel.
12541
12542         * API change of command_reply operation in client library.  The
12543           application gets now the status type received from server as well.
12544
12545 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12546
12547         * Removed the function just added to lib/silcutil/silcschedule.[ch].
12548
12549         * Cras fixed and optimized the packet handling even further and
12550           it should work now.  Minor change to the prototype of function
12551           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
12552
12553 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12554
12555         * Added new function into lib/silcutil/silcschedule.[ch]:
12556           silc_schedule_with_fd to select() a specified fd.  The function
12557           returns after timeout expires or data arrives or goes.  The
12558           function is used by packet routines to wait that all data is
12559           received from network.
12560
12561         * Fixed data reading from network in lib/silccore/silcpacket.c.
12562           The code now assures that all data is read from the fd and then
12563           continues packet processing.  This was a bug fix since the code
12564           used to drop some data in some circumstances.
12565
12566         * Added new function into lib/silcclient/client.[ch]:
12567           silc_client_start_key_exchange to start key exchange after
12568           connection has been established to server.  The code internally
12569           now uses this funtion but its main purpose was to provide it
12570           for applications that perform their own connecting.  After
12571           application has created a connection it merely calls this
12572           function to start the key exchange between client and server.
12573           The library takes care of everything else after that.
12574
12575           Updated also lib/silcclient/README to explain the usage of
12576           this new function.
12577
12578         * Do not send to application information that connection has
12579           been established.  Application gets notified it by connect
12580           operation anyway.
12581
12582 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12583
12584         * Applied cras's patch to add silc_schedule_one function.  The
12585           function runs scheduler once and returns.
12586
12587         * Fixed the scheduler after cras messed it up.  The timeout
12588           handling works now as it's supposed to work.
12589
12590         * Added into lib/silccore/ silcnotify.h to include notify
12591           message types support.  Changed silc_server_send_notify*
12592           functions, in server.[ch], to support those new notify types.
12593           Added the support for the notify types into client library,
12594           as well.  Added new notify client operation into ops.h in
12595           lib/silcclient/.
12596
12597         * Changed silc_server_packet_send_to_channel to send normal
12598           packets instead of just channel message packets.  The function
12599           is now used to send the notify packets to channels.  It is not
12600           used to send channel message packets anymore, as server never
12601           sends them anymore.
12602
12603         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
12604           va_arg()s as it seems to require it nowadays.  I guess, if SILC
12605           is compiled with older va_arg() the new code should work anyway.
12606
12607 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12608
12609         * Splitted core library.  Core library (lib/silccore) includes
12610           now only SILC protocol specific core (and common) components.
12611           Created new utility library (lib/silcutil) that includes more
12612           generic purpose stuff.  The stuff for util library was taken
12613           from the old core library.  This was minor and easy split.
12614
12615         * Created SILC Client Library (lib/silcclient) that includes
12616           implementation of the SILC client without user interface.  This
12617           was major move from silc/ directory.  The code has been changed
12618           so that it is transparent towards the user interface.  The
12619           silc/ directory includes now the same user interface as before
12620           and it uses the new client library.  Read lib/silcclient/README.
12621           Basicly, the client library performs everything else related
12622           to SILC except user interface handling.  Also, configuration
12623           files are considered to be part of user interface and library
12624           does not handle them.
12625
12626           This change also changed a lot of structures, function naming etc.
12627           Most important change was that SilcClientWindow object was
12628           renamed to SilcClientConnection in the client library.  Created
12629           also new file lib/silcclient/ops.h.  Also added new files
12630           silc/local_command.[ch] and silc/client_ops.[ch].
12631
12632           All these changes were made to make it easier for user interface
12633           designers to create what ever user interface for the SILC client
12634           they want.
12635
12636           It is also expected that the server will be moved to lib
12637           directory as well and SILC Server Library will be created;
12638           sometimes in the future.
12639
12640         * Removed Local commands from lib/silccore/silccommand.h as
12641           they are application specific and new client library does not
12642           handle any of those anymore.
12643
12644         * Several functions moved to lib/silcutil/silcutilc.[ch] from
12645           old client implementation in silc/.
12646
12647         * Added support for callback functions in SILC_LOG_* macros.
12648           Application can now set its own callbacks that will be called
12649           instead of using the default functions that will always print
12650           the debug messages to stderr (or stdout).  Also, debugging can
12651           now be disabled by setting silc_debug to FALSE and re-enabled by
12652           setting it to TRUE.  Note, that logging will still work even
12653           if debugging is disabled.
12654
12655           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
12656           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
12657           silc_log_reset_debug_callbacks.
12658
12659         * To enable debugging in silc client one must give now -d
12660           option on command line.
12661
12662         * Changed silc_schedule_init to automatically allocate task queues
12663           if they are not allocated before calling it.
12664
12665 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12666
12667         * Added GMP 3.1 into math library.
12668
12669 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12670
12671         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
12672           a channel in SILC network.  The packet is used by servers and
12673           routers to notify other routers that user has left a channel.
12674           This little feature was missing until now.  Added the feature
12675           to protocol specification as well.
12676
12677           Added functions: silc_server_send_remove_channel_user and
12678           silc_server_remove_channel_user into server.[ch].
12679
12680         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
12681           lib/silccore/silcpacket.h.  However, they are not implemented
12682           yet.
12683
12684 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12685
12686         * Fixed joining to a channel and sending channel messages
12687           between server and router.  The channel message sending should
12688           now work inside a cell.
12689
12690 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12691
12692         * Fixed the private message sending between server and router.
12693           The private message sending should now work inside a cell.
12694
12695         * Added silc_server_replace_id into server.[ch] to replace
12696           existing ID in the SILC network.
12697
12698         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
12699           and silc_idlist_replace_server_id into idlist.[ch] in server.
12700
12701 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12702
12703         * Fixed the server to server connections.  Server can again now
12704           connect to router.  Router to router connections probably does
12705           not work just yet.
12706
12707 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12708
12709         * Added dynamic protocol registering support.  Now protocols can
12710           registered and unregistered on the fly.  Patch by cras.
12711
12712 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12713
12714         * Added lib/contrib directory to hold routines that some platforms
12715           don't have but are needed by SILC.
12716
12717         * Added getopt.c, getopt1.c and getopt.h from GNU C library
12718           into lin/contrib to provide getopt() and getopt_long() for
12719           those who don't have it.
12720
12721 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12722
12723         * Added AWAY command to client.  When away message is set and
12724           client receives a private message packet the client automatically
12725           replies to the sender with the away message.
12726
12727         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
12728           bug seemed to be the cause of recent problems when compiling
12729           with gcc-2.95.
12730
12731         * Added version detection support to SKE protocol specification
12732           and added the new changes to the SKE implementation as well.
12733           There were other minor changes in the SKE protocol as well.
12734
12735           Many changes in lib/silcske/silcske.[ch] and in
12736           lib/silcske/payload.[ch].
12737
12738         * Added ^U functionality, clear input line.  Patch from cras.
12739
12740 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12741
12742         * Mainly small bugfixes on core library.  Fixed some debugging
12743           logging and buffer overflow in silclog.c.
12744
12745         * Updated config.sub and config.guess on the distribution tree.
12746
12747 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12748
12749         * Added command lagging support in server. Client may execute
12750           commands now only once in two seconds.
12751
12752 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12753
12754         * Optimized packet reception. MAC computation and checking is now
12755           also more optimized.  A lot previously duplicated code is now
12756           used as generic by both client and server.
12757
12758         * Fixed key pair generation in clientutil.c
12759
12760 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12761
12762         * Added into lib/silccore/silcbufutil.[ch] new function;
12763           silc_buffer_realloc.
12764
12765         * Moved generic packet sending/encryption functions to
12766           lib/silccore/silcpacket.[ch] from client and server.  Some
12767           rewriting of the functions.
12768
12769         * Moved all generic packet reception/decryption functions to
12770           lib/silccore/silcpacket.[ch] from client and server.  The
12771           packet processing is now much cleaner in both client and server.
12772           These were major changes in both client and server.
12773
12774         * Created many common functions in server to do packet sending.
12775           Previously code were duplicated a lot, this has been removed
12776           with these changes.
12777
12778 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12779
12780         * Rewrote major parts of the ID cache system.  Don't know
12781           whether it is better now or not but at least the API is more
12782           cleaner now.
12783
12784         * Major rewrite on ID cache stuff on client because of the ID
12785           cache API changes.  Added idlist.c to client.
12786
12787         * Also major rewrite on ID cache stuff on server as well.
12788           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12789           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12790           in hand, instead they are all put into the ID cache system now.
12791           All server_idlist_* routines uses ID cache now instead of
12792           traversing its own lists (those lists does not exist anymore).
12793           SilcIDList though still exists.  Also, SilcXXXEntry's are
12794           now pointers.
12795
12796 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12797
12798         * Finally made the SKE implementation compliant to the protocol
12799           specification.  All mp integers are now binary encoded as
12800           opposed being HEX encoded.
12801
12802         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12803           from binary data.
12804
12805         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12806           functions: silc_[encode/decode]_pem.  Also added function
12807           silc_encode_pem_file to PEM encode with newlines ('\n') for
12808           saving into a file.
12809
12810         * SILC public keys are now encoded either PEM or binary.  Same
12811           option is for private keys as well.  By default private keys
12812           are binary encoded and public keys PEM encoded.  Silly HEX
12813           encoding were removed.
12814
12815         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12816           function to create fingerprints.
12817
12818         * Fixed a bug in SHA1; does not change the original data anymore.
12819
12820         * Partly implemented INFO command on client and server side.
12821           Fixed CLEAR command.  Changes to SERVER command; show current
12822           server(s) when giving command without arguments.  Added
12823           VERSION command to client.
12824
12825         * Added check to server that unregistered connections cannot
12826           execute commands (unless it is specificly allowed).
12827
12828 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12829
12830         * Fixed screen refresh.
12831
12832         * Fixed channel joining bug from client.  On some circumstances
12833           client tried to join to a channel it had already joined.
12834
12835         * Added public key verification process into client's protocol.c.
12836           The client now verifies the public key from user and saves
12837           it into ~./silc/serverkeys/ directory.
12838
12839           Added into: clientutil.[ch]: silc_client_verify_server_key.
12840
12841         * Changed SKE protocol's silc_ske_initiator_finish function
12842           to accept callback function that verifies the received public
12843           key.  Removed old silc_ske_verify_public_key function.
12844
12845 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12846
12847         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12848           silc_pkcs_private_key[_data]_set.
12849
12850         * Made the password and public authentication more cleaner in
12851           server's protocol.c.
12852
12853         * Removed historic and obsolete protocol `channel_auth' from
12854           both client and server.
12855
12856         * Removed wrong way of sending command status messages from
12857           server to client in server's command.c.  The old way violated
12858           protocol specification.
12859
12860           Changes to silccore/silccommand.[ch]: removed
12861           silc_command_encode_status_payload -> not needed anymore,
12862           changed silc_command_encode_payload_va to accept extra
12863           argument on variable argument list.  The argument type must
12864           now be provided to the function.  Also, added new function:
12865           silc_command_encode_reply_payload_va which is same as
12866           normal command_encode_payload_va except command status type
12867           is provided as extra argument.
12868
12869 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12870
12871         * Added ~./silc directory handling.  The directory includes the
12872           public and private keys for the client.
12873
12874           Added silc_client_check_silc_dir, silc_client_create_identifier
12875           and silc_client_load_keys.
12876
12877         * Implemented SILC protocol compliant public key.  Added public
12878           and private key saving to and loading from files.
12879
12880           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12881           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12882           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12883           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12884           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12885
12886           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12887           silc_pkcs_load_[public/private]_key.
12888
12889 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12890
12891         * Added silc_server_get_route (route.[ch]) to get connection
12892           data for the fastest route for given ID.
12893
12894         * Implemented INVITE command on client and server.  The command
12895           were re-defined in the SILC Protocol Specification and the
12896           implementation now complies with the specification.
12897
12898         * Implemented PING command on client and server.
12899
12900         * Implemented NAMES command on client and server.  The server side
12901           supports currently only normal server not router server yet.
12902           Some changes to NAMES definition in SILC protocol specification.
12903
12904 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12905
12906         * Implemented LEAVE command on client and server.
12907
12908         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12909           again.  This change was made to the protocol as well.  Server
12910           should not violate the protocol specification anymore.
12911
12912 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12913
12914         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12915           was tested.  SOCKS4 was not but should work anyway.