Reprocess JOIN command synchronously after resolving channel
[silc.git] / CHANGES
1 Thu Nov 15 18:03:53 EET 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Reprocess JOIN command synchronously after resolving channel
4           user list.  Affected file is lib/silcclient/command_reply.c.
5
6         * In JOIN command reply check if the channel key is already
7           saved.  If it is we have received new key from server while
8           resolving user and must not save the old key.  Affected file
9           is lib/silcclient/command_reply.c.
10
11 Tue Nov 13 18:24:56 EET 2007  Pekka Riikonen <priikone@silcnet.org>
12
13         * Added missing channel unreferencing in CMODE, CUMODE,
14           TOPIC, INVITE, BAN and KICK command replies.  Affected
15           file is lib/silcclient/command_reply.c.
16
17 Sun Nov 11 23:04:54 EET 2007 Pekka Riikonen <priikone@silcnet.org>
18
19         * Free stream data and abort ongoing protocols correctly
20           for primary router connections receiving end of stream.
21           Affected file is apps/silcd/server.c.
22
23 Sun Nov 11 16:02:12 EET 2007 Pekka Riikonen <priikone@silcnet.org>
24
25         * SILC Server 1.1 Beta4.
26
27 Sun Nov 11 14:15:48 EET 2007  Pekka Riikonen <priikone@silcnet.org>
28
29         * SILC Toolkit 1.1.5.
30
31 Sun Nov 11 11:22:35 EET 2007  Pekka Riikonen <priikone@silcnet.org>
32
33         * Fixed connection authentication with public keys to use
34           correct public key as responder.  Affected file is
35           lib/silcske/silcconnauth.c.
36
37         * Fixed public key authentication in server.  Affected file is
38           apps/silcd/serverconfig.c.
39
40         * Fixed OPER and SILCOPER public key authentication.  Affected
41           file is apps/silcd/server.c.
42
43         * Fixed prefer_passphrase_auth flag in server.  Fixed
44           disconnection of unauthenticated connection.  Affected file is
45           apps/silcd/server.c.
46
47         * Fixed client resuming in server.  Affected file is
48           apps/silcd/packet_receive.c.
49
50         * Fixed IDENTIFY and WHOWAS command reply to correctly update
51           client entries (fixes a crash).  Affected file is
52           apps/silcd/command_reply.c.
53
54 Tue Nov  6 16:39:20 EET 2007  Pekka Riikonen <priikone@silcnet.org>
55
56         * SILC Client 1.1.3.
57
58 Mon Nov  5 23:07:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
59
60         * Zero tail of CTR mode IV in IV Included mode.  Change does
61           not cause compatibility issues.  Affected file is
62           lib/silcske/silcske.c.
63
64 Mon Nov  5 22:24:25 EET 2007  Pekka Riikonen <priikone@silcnet.org>
65
66         * SILC Toolkit 1.1.4.
67
68         * Fixed CTR mode rekey.  Affected file is lib/silcske/silcske.c.
69
70         * Rewrote the IV Included CTR mode encryption/decryption in
71           packet engine.  Affected file is lib/silccore/silcpacket.c.
72
73 Sun Nov  4 15:20:25 EET 2007  Pekka Riikonen <priikone@silcnet.org>
74
75         * Removed module_path and module options from the server
76           config file format.  Affected file is apps/silcd/serverconfig.c.
77
78         * Fixed non-IPv6 compilation error.  Affected file is
79           lib/silcutil/unix/silcunixnet.c.
80
81 Sat Nov  3 23:23:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
82
83         * Do not free packet engine before uninitializing scheduler.
84           Do not disconnct already disconnected streams.  Affected
85           files are in apps/silcd/.
86
87         * Fixed setting correct ID for re-encrypted channel messages
88           in router-to-router connections.  Affected file is
89           apps/silcd/packet_send.c.
90
91 Sun Sep 30 15:16:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
92
93         * Fixed channel private key deleting when deleting the channel.
94           Affected file is lib/silcclient/client_channel.c.
95
96 Sun Sep  9 17:52:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
97
98         * SILC Toolkit 1.1.3.
99
100         * Fixed possible buffer overflows from SILC Config code.
101           Patch from Jérémy Bobbio.  Affected file is
102           lib/silcutil/silcconfig.c.
103
104 Sun Aug 26 12:28:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
105
106         * Fixed TIMEOUT handling in user info resolving during JOINing,
107           fixes crash.  Affected file is lib/silcclient/client_notify.c.
108
109         * Fixed mandatory UN and HN SILC public key identifier checking
110           (both must be present).  Affected file is
111           lib/silccrypt/silcpk.c.
112
113 Tue Aug  7 20:56:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
114
115         * Fixed alignment issues with 64-bit CPUs.  Affected files
116           are lib/silcutil/silcschedule.c and unix/silcunixschedule.c.
117
118         * Added "There are now xx nick's" to "are xx nicks".  Affected
119           file is apps/irssi/src/fe-common/silc/module-formats.c.
120
121 Sat Aug 4 18:37:22 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
122
123         * Fixed USERS command user mode handling (integer overflow).
124           Affected file is lib/silcclient/command_reply.c.
125
126 Thu Jul 19 21:08:49 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
127
128         * Fixed big-endian issues from aes implementation.  Affected
129           files are lib/silccrypt/aes.c.
130
131         * Fixed lib/silcutil/silcatomic.h compilation on IA64.  Patch
132           from Jérémy Bobbio.
133
134         * Fixed public key identifier parsing to check lengths
135           correctly.  Affected file is lib/silccrypt/silcpk.c.
136
137 Wed Jul  4 08:06:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
138
139         * SILC Toolkit 1.1.2.
140
141         * SILC Client 1.1.2.
142
143 Mon Jul  2 17:28:47 CEST 2007  Pekka Riikonen <priikone@silcnet.org>
144
145         * In silc_client_free check that scheduler is allocated before
146           trying to free it.  Affected file is lib/silcclient/client.c.
147
148         * Fixed buffer overflow in NICK_CHANGE notify.  The destination
149           buffer for old nickname was too small.  Affected file is
150           lib/silclient/client_notify.c.
151
152 Sun Jul  1 19:15:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
153
154         * SILC Server 1.1 Beta1.
155
156 Sun Jul  1 12:40:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
157
158         * Added support for rekey with PFS when using CTR mode
159           encryption.  Affected file is lib/silcske/silcske.c.
160
161         * Added silc_idcache_move that can be used to move entries
162           between caches.  Affected files are
163           lib/silcapputil/silcidcache.[ch].
164
165         * Added better checks for invalid argument and notify payloads.
166           Affected files are lib/silccore/silcnotify.c and
167           silcargument.c.
168
169         * Fixed SILC_PACKET_FLAG_LONG_PAD bitmask value.  Affected
170           file lib/silccore/silcpacket.h.
171
172 Sat Jun 30 21:48:08 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
173
174         * Set the destination ID to packet stream as SKE responder
175           if ID was present in key exchange packet.  Affected file
176           is lib/silcske/silcske.[ch].
177
178         * Handle also zero timeouts in the scheduler notify callback
179           to avoid problems with SILC Plugin.  Affected file is
180           apps/irssi/src/silc/core/silc-core.c.
181
182 Thu Jun 28 19:19:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
183
184         * SILC Client 1.1.1.
185
186 Sun Jun 24 18:47:55 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
187
188         * SILC Toolkit 1.1.1.
189
190         * Compile sources with _GNU_SOURCE on Linux systems.  Affected
191           file is configure.ad.
192
193 Sun Jun 24 16:33:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
194
195         * Fixed Unix signal task dispatching to not lock the signals
196           when dispatching the callback to avoid deadlocks.  Affected
197           file is lib/silcutil/unix/silcunixschedule.c.
198
199 Sun Jun 24 14:43:21 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
200
201         * Fix configure output for with-plugin.  Affected file is
202           apps/irssi/configure.ad
203
204 Tue Jun 19 17:05:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
205
206         * Added SILC_VERSION macro for checking package versions at
207           compile time.  Affected files are configure.ad,
208           includes/silc.h.in and includes/silcversion.h.in.
209
210 Mon Jun 18 23:47:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
211
212         * Use SILC_VERIFY to assert that silc_rwlock_wrlock can be
213           called only once per thread on Unix.  Affected file is
214           lib/silcutil/unix/silcunixthread.c.  Added same for mutex
215           as well.   Documented same on the API in
216           lib/silcutil/silcmutex.h.
217
218         * Fixed USERS command reply write-lock unlocking.  Affected file
219           is lib/silcclient/command_reply.c.
220
221 Mon Jun 18 08:14:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
222
223         * Fixed silc_create_key_pair to check for valid identifier.
224           Affected file is lib/silcapputil/silcapputil.c.
225
226 Sun Jun 17 20:08:26 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
227
228         * Rewrite signed public message handling, adopting the new
229           hilight interface.  Affected file is
230           apps/irssi/src/fe-common/silc/fe-silc-messages.c
231
232 Thu Jun 14 21:15:31 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
233
234         * Fix off by one error when loading modules.  Affected file is
235           apps/irssi/src/core/modules-load.c
236
237         * Don't delete hilight entry (because it's just a pointer, not a
238           copy).  Affected file is
239           apps/irssi/src/fe-common/silc/fe-silc-messages.c
240
241 Mon Jun 11 22:10:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
242
243         * Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution
244           which can be used to check for Toolkit version in third-party
245           software.  Affected file is configure.ad, includes/silc.h.in.
246
247 Sun Jun 10 17:32:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
248
249         * Added support for channel@server channel name strings to
250           client library (SILC protocol version 1.3 change).  Affected
251           files are lib/silcclient/silcclient_entry.h, client_entry.c.
252
253         * Added full_nicknames and full_channel_names settings to
254           SilcClientParams that can be used to specify whether client
255           library returns full nickname and channel name strings.
256           Full strings are nick@server and channel@server.  Affected
257           file is lib/silcclient/client_entry.c and command.c.
258
259 Sat Jun  9 19:43:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
260
261         * Fixed unix connecting failure to return error code correctly.
262           Affected file is lib/silcutil/unix/silcunixnet.c.
263
264 Fri Jun  8 23:32:33 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
265
266         * Fixed SKE timeout double free crash.  Affected file is
267           lib/silcske/silcske.c.
268
269         * Fixed MIME multipart decoding buffer overflow.  Affected file
270           is lib/silcutil/silcmime.c.  Thanks to Matt Miller for patch.
271
272 Fri Jun  8 18:39:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
273
274         * Fixed connection auth protocol timeout crash.  Affected
275           file is lib/silcske/silconnauth.c.
276
277         * Fixed FSM machine finishing to check for existing threads
278           at the final free callback to allow time for the threads to
279           finish.  Affected file lib/silcutil/silcfsm.c.
280
281 Thu Jun  7 21:25:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
282
283         * Fixed silc_client_get_clients_local to check the nick's
284           server also if nick@server nickname string is given to the
285           function.  Affected file is lib/silcclient/client_entry.c.
286
287 Wed Jun  6 18:33:05 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
288
289         * Added notify callback to silc_schedule_init which can be used to
290           set a notify callback for scheduler which is called when task is
291           added to scheduler or deleted from scheduler.  Affected file
292           is lib/silcutil/silcschedule.[ch].
293
294         * Dispatch timeout tasks after dispatching FD tasks if the timeout
295           was very short.  Affected file is lib/silcutil/silcschedule.c.
296
297         * Rewrote the SILC scheduler handling in SILC Client to not poll
298           every few msecs but to use the new notify callback.  Affected
299           file is apps/irssi/src/silc/core/silc-core.c.
300
301         * Fixed SFTP client library read buffer size which was too small.
302           Affected file is lib/silcsftp/sftp_client.c.
303
304         * Fixed file transfer crash bug in /QUIT in SILC Client.  Close
305           the FTP sessions before quitting the client.  Affected file
306           is apps/irssi/src/silc/core/silc-servers.c.
307
308 Tue Jun  5 20:48:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
309
310         * Fixed silc_packet_get_ids to decode the IDs correctly.
311           Affected file is lib/silccore/silcpacket.c.
312
313         * Fixed silc_client_get_clients_local to parse correctly nickname
314           string that may have server name in it (nick@server) regardless
315           whether it was formatted nickname or not.  Affected file is
316           lib/silcclient/client_entry.c.
317
318 Mon Jun  4 22:02:53 CEST 2007  Jochen Eisinger <jochen@penguin-breeder.org>
319
320         * Only destroy sendbuffers, if they still exist (they cease to
321           exist during /upgrade).  Affected file is
322           apps/irssi/src/silc/core/silc-servers.c
323
324 Mon Jun  4 21:24:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
325
326         * Removed --enable-silc-plugin.  Added --with-silc-plugin.
327           Affected files are configure.ad, lib/configure.ad,
328           apps/irssi/configure.ad, apps/irssi/configure.in,
329           apps/irssi/scripts/Makefile.am,
330           apps/irssi/scripts/examples/Makefile.am,
331           apps/irssi/src/silc/core/silc/Makefile.am,
332           apps/irssi/src/fe-common/silc/Makefile.am.
333
334 Mon Jun  4 08:35:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
335
336         * SILC Client 1.1.
337
338 Sun Jun  3 14:00:09 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
339
340         * Fixed DESTDIR handling in make install.
341
342 Sat Jun  2 21:04:32 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
343
344         * SIM modules are not delivered to SILC CLient distribution
345           anymore.
346
347         * Changed default installation path from /usr/local/silc to
348           /usr/local for all distributions.
349
350         * Removed --with-etcdir and --with-docdir.  The etcdir is now
351           the system's default.  The Docdir is system's default.
352
353 Sat Jun  2 00:51:57 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
354
355         * If public key/private key loading fails set the return
356           pointer to NULL.  Affected file is lib/silccrypt/silcpkcs.c.
357
358         * If private key loading fails in silc_load_key_pair free the
359           loaded public key.  Affected file is
360           lib/silcapputil/silcapputil.c.
361
362         * Fixed key pair loading crash with SILC Plugin if key pair
363           loading fails.  Affected file is
364           apps/irssi/src/silc/core/silc-core.c.
365
366         * Fixed SILC Client help and script file installation path
367           to go to prefix/share/silc.  Affected files are
368           apps/irssi/src/scripts/Makefile.am and
369           apps/irssi/docs/help/Makefile.am.gen.
370
371 Thu May 31 16:49:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
372
373         * Fixed UTC offset minutes to be actually minutes.  Affected
374           file is lib/silcutil/silctime.c.
375
376 Thu May 31 09:40:56 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
377
378         * SILC Toolkit 1.1.
379
380         * Added support for checking for timezone and tm_gmtoff.
381           Affected files are configure.ad and lib/silcutil/silctime.c.
382
383 Wed May 30 18:46:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
384
385         * Added silc-toolkit.spec.in RPM spec file.
386
387 Mon May 28 23:21:39 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
388
389         * Fixed nickname formatting crash when updating existing
390           client entry.  Affected file is lib/silcclient/client_entry.c.
391
392         * Fixed MIME object encoding in attribute payload encoding.
393           Affected file is lib/silccore/silcattrs.c.
394
395 Mon May 28 09:02:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
396
397         * SILC Client 1.1 Beta6
398
399 Sun May 27 20:38:30 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
400
401         * Copy SILC Plugin's libfe_common_silc.so to libfe_silc.so so
402           that user's don't have to do it manually.  Affected file
403           is apps/irssi/src/fe-common/silc/core/Makefile.am.
404
405 Thu May 24 15:30:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
406
407         * SILC Toolkit 1.1 Beta4.
408
409         * Fixed channel and server entry freeing in client library.
410           Affected file is lib/silcclient/client_entry.c.
411
412         * Do not allow stopping client before it has been started.
413           Affected file is lib/silcclient/client.c.
414
415 Wed May 23 23:21:03 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
416
417         * Fixed formatted nickname renaming to rename also irssi's
418           nicklist (/NAMES etc).  Affected file is
419           apps/irssi/src/silc/core/client_ops.c.
420
421         * Fixed SILC Plugin crash when stopping client library before
422           it has been started.  Affected file is
423           apps/irssi/src/silc/core/silc-core.c.
424
425 Tue May 22 17:18:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
426
427         * For SILC Client and SILC Server check for 1.1 Toolkit
428           in configure.  Affected file is configure.ad.
429
430         * Added better library linking flags and orders for SILC Client.
431           Affected file is configure.ad, Makefile.defines_int.in and
432           apps/irssi/src/fe-text/Makefile.am
433
434 Mon May 21 08:26:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
435
436         * SILC Client 1.1 Beta5.
437
438 Sun May 20 18:34:22 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
439
440         * Add hooks for Irssi 0.8.11 module functions.  Affected file
441           is apps/irssi/src/fe-common/silc/fe-common-silc.c
442
443 Sat May 19 14:46:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
444
445         * Fixed passphrase authentication with server.  Affected file
446           is lib/silcclient/client_connect.c.
447
448         * Fixed passphrase authentication as responder.  Affected file is
449           lib/silcske/silcconnauth.c.
450
451         * Changed SilcAskPassphrase and SilcGetAuthMeth callbacks to
452           return data as const.  Affected file is
453           lib/silcclient/silcclient.h.
454
455         * Fixed timeout calculation in Symbian scheduler.  Affected
456           file is lib/silcutil/symbian/silcsymbianscheduler.c.
457
458 Fri May 18 21:10:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
459
460         * Do not uninitialize u.m.threads atomic int in finish but in
461           free.  Fixes crash on any platform using atomic operations
462           using mutexes (like Symbian).  Affected file is
463           lib/silcutil/silcfsm.c.
464
465         * Fixes Symbian scheduler wakeup synchronization.  Affected file
466           is lib/silcutil/symbian/silcsymbianscheduler.c.
467
468 Fri May 18 18:10:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
469
470         * Fixed nickname formatting to handle already formatted nicknames
471           better.  Affected file is lib/silccilent/client_entry.c.
472
473         * Added "foo#2 appears as foo" support to SILC Client when user
474           leaves or quits and one formatted nickname remain.  Affected file
475           is apps/irssi/src/silc/core/client_ops.c.
476
477         * Send SilcChannelEntry to application in SILC_NOTIFY_TYPE_SIGNOFF.
478           Affected file is lib/silcclient/client_notify.c.
479
480 Thu May 17 18:05:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
481
482         * Fixed silc_show_public_key to not free public key in case of
483           failure.  Affected file is lib/silcapputil/silcapputil.c.
484
485 Thu May 17 17:09:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
486
487         * SILC Toolkit 1.1 Beta3.
488
489         * Porting Toolkit to Symbian.  It should work while some sporadic
490           odd crashes remain.  However I was able to run mybot on SILCNet.
491           Basically tested scheduler, net routines, socket  routines,
492           threads and some other utility routines.  Affected files are
493           in lib/silcutil/symbian/.
494
495 Thu May 17 11:57:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
496
497         * Show realname and email address from public key when verifying
498           cached public keys with GETKEY.  Affected files are
499           apps/irssi/src/fe-common/module-formats.[ch] and
500           apps/irssi/src/silc/core/client_ops.c.
501
502 Wed May 16 20:41:04 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
503
504         * Include SILC Plugin theme.  Affected file is apps/irssi/plugin.theme
505
506         * Include SILC Plugin /silc command help.  Affected file is
507           apps/irssi/docs/help/silc
508
509         * Create channels before joining them.  Affected file is
510           apps/irssi/src/silc/core/client_ops.c
511
512 Wed May 16 18:59:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
513
514         * Fixed channel private key listing with /key.  Affected file
515           is apps/irssi/src/silc/core/silc-channels.c.
516
517         * Fixed the public headers from anonymous structures.  Affected
518           files are lib/.
519
520         * Changed silc_buffer_*len macros to inline functions.  Affected
521           file is lib/silcutil/silcbuffer.h.
522
523 Wed May 16 10:21:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
524
525         * Fixed nickname format parsing in JOIN notify handling and
526           in WHOIS command reply.  Affected file is
527           apps/irssi/src/silc/core/client_ops.c.
528
529 Wed May 16 09:34:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
530
531         * SILC Client 1.1 Beta4.
532
533 Tue May 15 23:55:41 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
534
535         * Added SILC_VERIFY macro which is equivalent to SILC_ASSERT
536           but is compiled always in.  Affected file is
537           lib/silcutil/silclog.h.
538
539         * Use SILC_VERIFY in FSM macros instead of SILC_ASSERT which is
540           not there in release builds.  Affected file is
541           lib/silcutil/silcfsm.h.
542
543 Tue May 15 21:19:09 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
544
545         * SILC Client 1.1-beta3
546
547 Mon May 14 23:20:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
548
549         * Added silc_utf8_c2w and silc_utf8_w2c to do UTF-8 to widechar
550           and widechar to UTF-8 conversions.  Affected files are
551           lib/silcutil/silcutf8.[ch].
552
553 Mon May 14 19:45:14 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
554
555         * Include a README for the SILC Plugin
556
557 Sun May 13 22:08:59 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
558
559         * Adopt perl Makefiles for SILC Plugin.
560
561 Sun May 13 18:27:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
562
563         * Fixed client library initialization when the running callback
564           is not given to silc_client_init.  Affected file is
565           lib/silcclient/client.c.
566
567         * Fixed Symbian compilation problems around the tree.  Added
568           new Carbide.c++ project files to symbian/ directory.
569
570         * Fixed SilcLog API to work on Symbian.  On Symbian it doesn't
571           use any globals.  Affected files are lib/silcutil/silclog.c
572           and silclog_i.h.
573
574 Sun May 13 16:54:35 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
575
576         * Fix several warnings in Irssi's Makefiles.
577
578 Sun May 13 12:16:30 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
579
580         * Disable ASM if --with-pic was given.  Affected file is
581           lib/silccrypt/configure.ad
582
583 Fri May 11 19:10:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
584
585         * Wakeup scheduler in silc_fsm_continue and silc_fsm_next_later
586           in case they are called from a thread.  Affected file is
587           lib/silcutil/silcfsm.c.
588
589         * Fixed WIN32 thread creation to handle the Tls correctly.
590           Affected file is lib/silcutil/win32/silcwin32thread.c.
591
592 Thu May 10 18:29:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
593
594         * SILC Toolkit 1.1-beta2.
595
596 Thu May 10 18:21:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
597
598         * Fixed silc_net_tcp_connect crash on Unix and Win32.  Handle
599           the socket async operation correctly.  Changed that DNS lookup
600           is now done during connecting.  Affected files are
601           lib/silcutil/[unix|win32]/silc[unix|win32]net.c.
602
603         * Changed also silc_net_tcp_connect on Symbian to do DNS lookup.
604           Affected file is lib/silcutil/symbian/silcsymbiannet.c.
605
606         * Optimize silc_net_gethostbyname to check if the name is already
607           IP address.  Affected file is lib/silcutil/silcnet.c.
608
609 Wed May  9 19:51:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
610
611         * Print filename instead of empty function name in debug output
612           on WIN32.  Affected files are lib/silcutil/silclog_i.h and
613           silclog.c.
614
615         * Rewrote WIN32 SILC Scheduler.  It now handles non-blocking file
616           descriptors and sockets better.  Though, room for optimization
617           remains.  Affected file is lib/silcutil/win32/silcwin32schedule.c.
618
619         * Removed silc_net_win32_[init|uninit].  They are called now
620           automatically when SILC Scheduler is allocated.  Wrote IPv4
621           address parser because inet_addr seemed not to work on my WIN32.
622           Affected file is lib/silcutil/win32/silcwin32net.c.
623
624         * Improved socketstream.h and stream.h documentation.
625
626 Tue May  8 18:13:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
627
628         * Changed private message waiting API in client library to make
629           it work better with multiple waiting threads.  The waiting is
630           not always per client entry instead of per connection.  Affected
631           files are lib/silcclient/client_prvmsg.c, client.h and
632           silcclient.h.
633
634         * Changed silc_packet_wait_init function to accept the the expected
635           Source ID of the packet as argument.  If specified only packets
636           with the specified types and Source ID are delivered.  Affected
637           files are lib/silccore/silcpacket.[ch].
638
639         * Fixed file transfer disconnection crash when closing the session
640           directly in the monitor callback after disconnection.  Affected
641           file is lib/silcclient/client_ftp.c.
642
643         * Make Toolkit compile on WIN32.  Affected files in win32/
644           and in lib/silcutil/win32/.
645
646         * Changed silc_compare_timeval to return negative, zero or
647           positive instead of just TRUE or FALSE.  This fixes 0 timeout
648           task dispatching on Windows.  Affected files are
649           lib/silcutil/silctime.[ch] and silcschedule.c.
650
651 Mon May  7 18:18:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
652
653         * Fixed CMODE channel auth public key retrieval.  Affected
654           file is lib/silcclient/command.c.
655
656         * Fixed CMODE command reply to return channel public keys
657           correctly.  Affected files are lib/silcclient/command_reply.c
658           and client_channel.c.
659
660 Sun May  6 12:43:19 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
661
662         * Added current channel key cipher name and HMAC name to
663           SilcChannelEntry.  Fixed channel private key creation.
664           Affected files are lib/silcclient/client_channel.c,
665           client_entry and silcclient_entry.h.
666
667         * Allow formatted nicknames as input to silc_client_get_clients
668           and silc_client_get_clients_whois.  Affected file is
669           lib/silcclient/client_entry.c.
670
671         * Fixed silc_message_payload_free crash.  Affected file is
672           lib/silccore/silcmessage.c.
673
674         * Added SILC_STATUS_ERR_NO_SUCH_PUBLIC_KEY to
675           lib/silccore/silcstatus.h.
676
677 Thu May  3 18:07:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
678
679         * Imported libtommath 0.41.  Renamed all mp_* functions to
680           tma_mp_* functions to avoid rare linking problems on systems
681           with mp_* functions.  Affected files are in lib/silcmath/.
682
683 Wed May  2 17:46:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
684
685         * SILC Toolkit 1.1 Beta1.
686
687 Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
688
689         * Set the server and router operator modes to local entry after
690           successful OPER or SILCOPER commands.  Affected file is
691           lib/silcclient/command_reply.c.
692
693 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
694
695         * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
696           and other smaller APIs to WIN32.  Affected files are in
697           lib/silcutil/win32/.
698
699         * Changed the various regex APIs as generic code in util library.
700           Affected files are lib/silcutil/silcstrutil.[ch].
701
702 Sat Apr 28 13:47:47 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
703
704         * Ported SILC Server to the new Toolkit API, working towards
705           SILC Server 1.1.  Affected files are in apps/silcd/.
706
707         * Added silc_skr_del_public_key, silc_skr_[ref|unref]_public_key
708           to lib/silcskr/silcskr.[ch].
709
710         * Fixed SILC public key copying to copy the identifier also.
711           Affected file is lib/silccrypt/silcpk.c.
712
713         * Added silc_packet_error_string to lib/silccore/silcpacket.[ch].
714
715         * Fixed OPER and SILCOPER passphrase asking in Client library.
716           Affected file is lib/silcclient/command.c.
717
718 Tue Apr 24 17:55:24 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
719
720         * Fixed command queue enabling after connecting to server.
721           The comparisons was from after changing to silc_utf8_strcasecmp.
722           Affected file is apps/irssi/src/silc/core/silc-servers.c.
723
724         * Fixed nickname setting with own client entry with 1.3 protocol
725           version server.  Affected file lib/silcclient/client_register.c.
726
727         * Ignore error notify for local client entry.  Affected file is
728           lib/silcclient/client_notify.c.
729
730         * Implemented responder rekey to SKE library.  Affected files are
731           lib/silcske/silcske.[ch].
732
733         * Fixed connection auth protocol completion sending.  Affected
734           file lib/silcske/silcconnauth.c.
735
736 Mon Apr 23 17:20:01 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
737
738         * Do not call TCP network listener callback with any error
739           status, as documented.  Affected file is
740           lib/silcutil/unix/silcunixnet.c.
741
742 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
743
744         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
745
746         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
747           Changed silc_skr_find to have SilcSchedule argument and removed
748           it from silc_skr_[alloc|init].  Affected files are
749           lib/silcskr/silcskr.[ch].
750
751         * Allow NULL id for silc_idcache_add.  Affected file is
752           lib/silcapputil/silcidcache.c.
753
754         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
755           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
756           Fixed also channel message encryption with router-to-router
757           packets.
758
759         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
760
761         * Added silc_net_get_error_string, silc_net_listener_get_ip and
762           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
763
764 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
765
766         * Add option --enable-silc-plugin.  Affected files are
767           apps/irssi/configure.{ad,in}
768
769         * Only compile the SILC Plugin if required.  Affected files are
770           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
771
772         * Conditionally build the SILC Plugin.  Affected files are
773           apps/irssi/src/silc/core/Makefile.am,
774           apps/irssi/src/fe-common/silc/Makefile.am
775
776         * Backout delayed protocol exit and replace with a lame busy
777           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
778           apps/irssi/src/silc/core/silc-core.c
779
780         * Fix key generation for SILC Plugin.  Affected file
781           apps/irssi/src/silc/core/clientutil.c
782
783 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
784
785         * Only pass -rpath to libtool when building shared libraries.
786           Affected file lib/Makefile.ad
787
788         * Removing the stray "s" in configure.ad
789
790 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
791
792         * Redraw the screen after creating a new key.  Affected file
793           apps/irssi/src/silc/core/clientutil.c
794
795 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
796
797         * Added SILC Client setting /set nickname_format that specifies
798           the nickname format string.  Changed default nickname format
799           string to "%n#%a".  Affected file is
800           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
801
802         * Fixed nickname parsing with WHOIS command to accept formatted
803           nicknames.  Changed the silc_client_get_clients_local to allow
804           the searched nickname to be formatted nickname.  Removed %s and
805           %S nickname formatters.  Affected files are in lib/silcclient/.
806
807         * Added silc_client_nickname_parse to Client library API.  Affected
808           file is lib/silcclient/silcclient.h.
809
810         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
811           commands.  Affected file are
812           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
813
814 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
815
816         * Incorporate SILC Plugin patches.  Affected files are
817           apps/irssi/src/fe-common/silc/module-formats.{c,h},
818           apps/irssi/src/silc/core/clientutil.{c,h},
819           apps/irssi/src/silc/core/silc-core.c,
820           apps/irssi/src/silc/core/silc-chatnets.{c,h},
821           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
822           apps/irssi/src/fe-common/silc/module.h
823
824 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
825
826         * In notify handling resolve user entries many times if the
827           resolving timedout.  Affected file lib/silcclient/client_notify.c.
828
829         * silc_client_get_clients_local do not return any invalid entries.
830           Affected file is lib/silcclient/client_entry.c.
831
832         * Do not print "there are now xx user on this channel" for users
833           that actually aren't anymore on the channel.  Affected file
834           is apps/irssi/src/client_ops.c.
835
836 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
837
838         * When joining channels with a password given in the config file,
839           use it.  Also use it when cycling (it would be better to get
840           the password from the server, but this isn't possible in SILC).
841           Affected files apps/irssi/src/silc/core/silc-servers.c,
842           apps/irssi/src/silc/core/silc-channels.c
843
844 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
845
846         * Import perl script for sign_messages from silc-plugin.  Affected
847           file apps/irssi/scripts/silc.pl
848
849 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
850
851         * Only wait for a nick on connecting, when it differs
852           (not counting case) from the username.  Affected file
853           is apps/irssi/src/silc/core/silc-servers.c
854
855 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
856
857         * Use time settings for lag settings.  Affected file is
858           apps/irssi/src/silc/core/silc-lag.c
859
860 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
861
862         * Added silc_thread_yield.  Affected file is
863           lib/silcutil/silcmutex.h.
864
865 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
866
867         * Fixed WHOIS command and requested attributes handling in
868           client library.  Affected files are lib/silcclient/command.c
869           and lib/silcclient/client_attrs.c.
870
871         * Fixed silc_time_value to actually work.  Added new function
872           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
873
874 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
875
876         * SILC Client 1.1 beta2.
877
878 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
879
880         * Fixed client to properly abort TCP stream creation when
881           giving /QUIT.  Affected file
882           apps/irssi/src/silc/core/silc-servers.c.
883
884         * Fixed several connecting aborting crashes from the client
885           library, packet engine and socket stream.  Affected files
886           are in lib/silclient/, lib/silccore/silcpacket.c and
887           lib/silcutil/unix/silcunixsocketstream.c.
888
889         * Fixed private key export double free crash in key generation.
890           Affected file is lib/silccrypt/silcpk.c.
891
892         * Fixed FSM event waiting when there are multiple signallers
893           and the waiter goes away after the first signal.  Affected
894           file in lib/silcutil/silcfsm.c.
895
896 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
897
898         * Fixed FSM event signalling to check if the waiter has gone
899           away already.  Affected file is lib/silcutil/silcfsm.c.
900
901         * Fixed counter mode encryption/decryption to handle non-padded
902           SILC packets correctly.  The silc_cipher_set_iv now
903           in counter mode resets for a new block.  Affected files are
904           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
905
906 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
907
908         * SILC Client 1.1 beta1.
909
910         * Memory leak fixes around the libraries.
911
912 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
913
914         * Added better check for epoll() in configure.  Affected file
915           is lib/configure.ad.
916
917 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
918
919         * Fixed per scheduler data input buffer in packet engine.  Use
920           list of inbufs instead of just one so that multiple streams
921           can do partial reads to different buffers.  Affected file is
922           lib/silccore/silcpacket.c.
923
924         * Fixed WATCH notify handling in client library.  Affected file
925           is lib/silcclient/client_notify.c.
926
927 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
928
929         * Fixed packet wrapper stream API to support encoder/decoder
930           for packets, and to handle partial reading correctly.  Fixed
931           also inbuf size checking in reading to have enough space before
932           reading.  Affected files are lib/silccore/silcpacket.[ch].
933
934         * Rewrote file transfer in client library.  Affected files are
935           in lib/silcclient/.
936
937         * Added TCP/UDP listener (internal) API to client library to have
938           generic way of dealing with listeners.  Fixed Key Agreement and
939           file transfer to use it.  Affected files are in lib/silcclient/.
940
941         * Fixed SKE to process SUCCESS packets synchronously and to call
942           completion synchronously.  Affected file is lib/silcske/silske.c.
943
944         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
945
946         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
947           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
948
949 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
950
951         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
952           to client library.  Affected file is
953           lib/silcclient/client_register.c.
954
955         * Serialize NICK and JOIN commands to avoid problems locally
956           with changing ID while joining to channel.  Affected file is
957           lib/silcclient/command.c.
958
959         * Fixed entry resolving while handling incoming JOIN notify.
960           Handle properly cases, in re-processing of notify packets, where
961           the IDs may become invalid while resolving the entry (like nick
962           change).  Entry is invalid if it doesn't have nickname, and such
963           entries are not delivered to application anymore.  These fixes
964           problems of not seeing JOINs when remote user changes nickname
965           at the same time.  Affected files are in lib/silcclient/.
966
967 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
968
969         * Added support for computing message payload MAC in new way
970           (SILC Protocol version 1.3).  Bakcwards support for old way
971           remains.  Affected files are lib/silccore/silcmessage.[ch].
972
973 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
974
975         * Added SilcRwLock API, a read/write lock.  Affected files are
976           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
977
978 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
979
980         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
981
982 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
983
984         * The silc_schedule_set_listen_fd now returns boolean value.
985           Fixed FD task adding to check correctly for already added
986           FD tasks.  Added stricter error checking for FD scheduling
987           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
988           and lib/silcutil/unix/silcunixschedule.c.
989
990         * The silc_stream_set_notifier now returns boolean value.  Changed
991           all streams to support and check for the error condition.
992           Affected files are in lib/silcutil/.
993
994         * Fixed SKE library session aborting and deletion.  Affected
995           file are lib/silcske/silcske.c.
996
997 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
998
999         * Implemented PKCS #1 with appendix with hash OID in the
1000           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
1001           lib/silccrypt/silchash.[ch] and
1002           lib/silcasn1/silcasn1[_encode|decode].[ch].
1003
1004 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1005
1006         * Added support for Version (V) SILC public key identifier.
1007           Affected files are lib/silccrypt/silcpk.[ch].
1008
1009 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1010
1011         * Rewrote connection auth request in client library.  It is now
1012           done automatically by the library and the resolved method given
1013           as a hint to get_auth_method client operation.  Affected files
1014           are lib/silcclient/.
1015
1016 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1017
1018         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
1019           It can be used to wrap SilcPacketStream into SilcStream.
1020
1021         * Fixed %p formatting from silc_snprintf.  Affected file is
1022           lib/silcutil/silcsnprintf.c.
1023
1024         * Ported SFTP library to new utility library.  Ported also
1025           the SFTP testers.  Affected files in lib/silcsftp/.
1026
1027 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
1028
1029         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
1030           of silc_snprintf, silc_vsnprintf, silc_asprintf and
1031           silc_vasprintf.
1032
1033 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1034
1035         * Added preliminary Symbian support.  Changes around the source
1036           tree.  The symbian/ directory now includes Carbide.c++ project
1037           files to compile the sources.
1038
1039         * Added silc_snprintf.  Affected files are
1040           lib/silcutil/silcstrutil.[ch].
1041
1042 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1043
1044         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
1045           macros.  SILC_FSM_CONTINUE macro now immediately calls the
1046           next state instead of first returning back to FSM.  Helps
1047           in debugging crashes etc.
1048
1049           Removed FSM Semaphores.  Introduced FSM Event which is
1050           asynchronous event.   Affected files are in lib/.
1051
1052         * Added epoll(7) support to SILC Scheduler.  It is used by default
1053           if it is available.  Affected files are
1054           lib/silcutil/silcschedule.[ch],
1055           lib/silcutil/unix/silcunixschedule.c.
1056
1057 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1058
1059         * Added CTR mode to AES.  Simplified cipher implementation API
1060           more.  Affected files are in lib/silccrypt/.
1061
1062 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1063
1064         * Removed `detach' client operation.  The detachment data is
1065           now delivered in SILC_COMMAND_DETACH command reply to
1066           application.  Affected file in lib/silcclient/.
1067
1068         * Rewrote resuming/detaching in client library.
1069
1070         * Added boolean encryption indicator for silc_cipher_set_key.
1071           Affected files lib/silccrypt/silccipher.[ch].
1072
1073 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1074
1075         * Added silc_likely and silc_unlikely macros for GCC branch
1076           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
1077
1078         * Added assembler AES optimization.  Cleaned up the SILC Cipher
1079           implementation API.  Affected files are in lib/silccrypt/.
1080
1081 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1082
1083         * Changed back the SILC_FSM_THREAD_WAIT operation to not
1084           continue to next state if thread is finished already.  That
1085           check is not done anymore.  Affected files are
1086           lib/silcutil/silcfsm.[ch].
1087
1088 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1089
1090         * Removed silc_packet_[get|set]_ciphers and
1091           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
1092           handle REKEY_DONE packet sending in rekey.  Affected files
1093           are lib/silccore/silcpacket.[ch].
1094
1095         * Added silc_fsm_is_started.  Affected files are
1096           lib/silcutil/silcfsm.[ch].
1097
1098         * Added settings sign_channel_message, sign_private_message
1099           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
1100           support for key agreement in /KEY command. Affected files
1101           in apps/irssi/src/silc/core/.
1102
1103         * During SILC Client initialization forward log messages to
1104           stderr.   Affected files in apps/irssi/src/silc/core/.
1105
1106 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1107
1108         * Added silc_ske_get_key_material.  Affected files are
1109           lib/silcske/silcske.[ch].
1110
1111         * Added silc_packet_stream_is_udp.  Affected files are
1112           lib/silccore/silcpacket.[ch].
1113
1114         * Added SKE packet retransmission support with UDP transport.
1115           Affected file is lib/silcske/silcske.c.
1116
1117 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1118
1119         * Added silc_socket_stream_is_udp.  Affected file is
1120           lib/silcutil/silcsocketstream.[ch].
1121
1122         * Added UDP transport support to packet engine.  Affected file
1123           is lib/silccore/silcpacket.c.
1124
1125         * Added silc_socket_stream_is_udp.  Affected file is
1126           lib/silcutil/silcsocketstream.[ch].
1127
1128 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1129
1130         * Added silc_packet_send_va[_ext] to send variable argument
1131           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
1132
1133         * Timeout freelist garbage collection added to scheduler.
1134           Affected file lib/silcutil/silcschedule.c.
1135
1136 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
1137
1138         * Added silc_show_public_key_file to
1139           lib/silcapputil/silcapputil.[ch].
1140
1141         * Added SILC_STR_ADVANCE support for buffer unformatting.
1142           Affected file lib/silcutil/silcbuffmt.c.
1143
1144 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
1145
1146         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
1147
1148         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
1149
1150         * silc_fsm_continue[_sync] now cancels erlier timeout set with
1151           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
1152
1153 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
1154
1155         * Added SILC_STR_FUNC to buffer format API.  Affected files
1156           are lib/silcutil/silcbuffmt.[ch].
1157
1158         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
1159
1160         * No more memory allocation for message payload parsing.
1161           Pre-allocated buffer can be used with message payload encoding.
1162           Affected files lib/silccore/silcmessage.[ch].
1163
1164 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1165
1166         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
1167           to silcutil/silcbuffmt.[ch].
1168
1169 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1170
1171         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
1172           Affected file lib/silcutil/silcbuffmt.[ch].
1173
1174         * Removed silc_schedule_signal_[un]register and
1175           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
1176           to add signal task.  Only one callback per signal may be
1177           added.  The signals are now automatically called back to
1178           caller.  Affected files lib/silcutil/silcschedule.[ch] and
1179           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
1180
1181         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
1182
1183         * Added SilcSKEParams for SKE parameters and simplied even more
1184           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
1185           Added support for IV included and session port handling with
1186           UDP/IP connections.
1187
1188         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
1189           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
1190           which is called after every rekey when IV Included flag is used.
1191           See SILC specifications for details.
1192
1193 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1194
1195         * Added lib/silcapputil and moved SILC application specific
1196           utility routines from the generic util library lib/silcutil
1197           to the new library.  Removed lib/silcidcache and moved that
1198           to lib/silcapputil as well.
1199
1200 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1201
1202         * Added SILC_STR_ADVANCE.  Affected file is
1203           lib/silcutil/silcbuffmt.[ch].
1204
1205         * The silc_buffer_strformat preserves buffer locations now.
1206
1207         * Added lib/silcutil/silcatomic.h for atomic operations.
1208
1209 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1210
1211         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
1212           server.
1213
1214         * Fixed MIME deocing when data portion is not present.
1215           Affected file lib/silcutil/silcmime.c.
1216
1217 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1218
1219         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
1220
1221         * Added IV Included support to packet routines, to allow
1222           packet sending and receiving on UDP/IP.  Affected files are
1223           lib/silccore/silcpacket.[ch].
1224
1225         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
1226
1227 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1228
1229         * Added UDP support to network and socket stream library.
1230
1231 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1232
1233         * Added conditional variables.  New files are
1234           lib/silcutil/silcondvar.h and platform specific implementations.
1235
1236 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
1237
1238         * make sure session->hostname and session->port are valid before the
1239           application callback is done, since things will go wrong if the
1240           application immediately calls silc_client_file_receive. Affected
1241           file lib/silcclient/client_ftp.c.
1242           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
1243
1244 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1245
1246         * New SILC PKCS API enabling support for other public keys
1247           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
1248
1249         * Separated SILC Public Key Payload routines from the PKCS API
1250           to lib/silccore/silcpubkey.[ch].
1251
1252 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1253
1254         * Added SILC Key Repository library, lib/silcskr.
1255
1256         * Added SILC Server library, lib/silcserver.
1257
1258 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1259
1260         * MIME objects in attributes now use SilcMime.  Affected files
1261           are lib/silccore/silcattrs.[ch].
1262
1263 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1264
1265         * Synchronize semaphore posting for real threads in FSM.
1266           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
1267
1268 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1269
1270         * Added silc_file_set_nonblock.  Affected file is
1271           lib/silcutil/silcfileutil.h.
1272
1273         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
1274
1275 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1276
1277         * FSM based implementation of SILC SKE.  Simpler interface also.
1278           Affected files are in lib/silcske/.
1279
1280         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
1281
1282 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1283
1284         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
1285           silc_mime_parse is available but deprecated.
1286
1287         * Check that packet is valid when processing key exchange,
1288           authentication and rekey protocols.  Fixes a crashbug.
1289           Affected files are apps/silcd/protocol.c and
1290           lib/silcclient/protocol.c.
1291
1292         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
1293           all hash buffers to use that instead of fixed values.
1294
1295 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1296
1297         * Added SHA-256 to crypto library.  The SHA-256 takes now
1298           precedence over SHA-1.
1299
1300 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1301
1302         * Check for valid return value from regcomp.  Affected file
1303           lib/silcutil/unix/silcunixutil.c.
1304
1305 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1306
1307         * Fixed silc_hash_uint to work with integers.  Affected
1308           file lib/silcutil/silcutil.c.
1309
1310 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1311
1312         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
1313
1314 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1315
1316         * Fixed channel public key list saving on JOIN command reply
1317           on backup router.  Affected file apps/silcd/command_reply.c.
1318
1319 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1320
1321         * Added default limit how many channels client can join,
1322           default is 50.  Added 'channel_join_limit' configuration
1323           option to server too.  Affected files are apps/silcd/command.c
1324           and serverconfig.[ch].
1325
1326 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1327
1328         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
1329           On Toolkit the server and client are not compiled by default.
1330           Affected file configure.ad.
1331
1332 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1333
1334         * Added lib/contrib/getopt.[ch] for platforms that don't
1335           have it (it is not GPL implementation).
1336
1337         * Fixed compilation when pkg-config is used.
1338
1339 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1340
1341         * A comma in invite/ban string is invalid, check for it.
1342           Affected file apps/silcd/server_util.c.
1343
1344         * Added SERVICE command to the server.  It parses the command
1345           request but SILC Server does not support services for the
1346           time being.  Affected file apps/silcd/command.[ch].
1347
1348         * Added SERVICE command and command reply to client library.
1349           It is however incomplete.  Updated Toolkit documentation.
1350           Affected files are lib/silcclient/command[_reply].[ch].
1351
1352         * Fixed IDENTIFY/WHOWAS command reply to send the username
1353           correctly (uninitialized buffer).  Affected file is
1354           apps/silcd/server_query.c.
1355
1356 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1357
1358         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
1359           finalizes the major restructuring of the CVS tree.
1360
1361 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1362
1363         * Send empty MOTD reply if MOTD file cannot be read.
1364           Affected file silcd/command.c.
1365
1366 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1367
1368         * Optimized primer number generator to use simpler conversion
1369           routines.  Also assure that the prime number will have the
1370           highest bit set after modifying it.  Affected file is
1371           lib/silcmath/silcprimegen.c.
1372
1373         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
1374
1375         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
1376           for now only for testing purposes, it will not be delivered
1377           in any distribution for now.
1378
1379         * Removed NSS MPI from the source tree.  Due to upcoming
1380           license change for the SILC Toolkit, we cannot deliver the
1381           NSS MPI anymore.  I decided to replace it in all distributions
1382           with public domain library.
1383
1384         * Removed GNU regex from lib/contrib and introduced free
1385           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
1386           GNU regex compatible API to it (only partial).
1387
1388         * Removed getopt routines from lib/contrib.
1389
1390 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1391
1392         * Use silc_server_send_command_reply to send replies instead
1393           of encoding packet itself.  Affected file silcd/command.c.
1394
1395         * Added command sending and receiving statistics to server.
1396           Affected files in silcd/.
1397
1398         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
1399           with GCC, for it not to warn about pointer signedness.
1400
1401 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1402
1403         * Added context to the SilcIDCache destructor.  Affected
1404           files are lib/silccore/silcidcache.[ch],
1405           lib/silcclient/client.c and silcd/server.c.
1406
1407 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1408
1409         * Added pkg-config check to configure.
1410
1411         * The PublicKeyDir must not be used with Admin block in server
1412           config.  Affected file silcd/serverconfig.c.
1413
1414 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1415
1416         * Added Autodist.
1417
1418 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1419
1420         * Handle empty LIST command reply correcttly in server.  Affected
1421           file silcd/command_reply.c.
1422
1423         * Handle empty LIST command reply correctly in client library.
1424           The application will now receive one LIST command reply with
1425           all arguments set to NULL if there are no channels.  Updated
1426           Client Library documentation accordingly.  Affected file
1427           lib/silcclient/command_reply.c.
1428
1429 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1430
1431         * Added channel name string stringprep profile to the protocol
1432           and implementation to allow a little free'er channel name
1433           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
1434
1435         * Added silc_channel_name_[check|verify] to check and verify
1436           channel name strings.  Affected files are
1437           lib/silcutil/silcstrutil.[ch].
1438
1439         * Added support for the new channel name preparation in client
1440           library and server.  Affected files in lib/silcclient and
1441           silcd/.
1442
1443 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1444
1445         * Added the Autodist into the source tree.  It replaces the
1446           old ./prepare.  It can be used to create distributions as
1447           previously.  See README.CVS and README.DIST.  See
1448           distributions in distdir/.
1449
1450 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1451
1452         * Make sure query sends at least an error back if nothing
1453           more is sent.  Affected file silcd/server_query.c.
1454
1455 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1456
1457         * During query, check if the original command caller goes
1458           away.  If it does, stop the query.  Affected file
1459           silcd/server_query.c.
1460
1461         * Check for valid channel creation in JOIN command reply.
1462           Affected file lib/silcclient/command_reply.c.
1463
1464         * Handle the resolver counter in silc_client_get_users_by_channel
1465           callback correctly.  Fixed auto-join bug in Gaim.  Affected
1466           file lib/silcclient/idlist.c.
1467
1468 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1469
1470         * Added some better error messages.  Affected file
1471           silcd/command_reply.c and packet_receive.c.
1472
1473         * Handle error in WATCH command propely on backup router.
1474           Affected file silcd/command.c.
1475
1476         * Fixed freeing of unfreeable variable in WHOIS command reply.
1477           Affected file silcd/command_reply.c.
1478
1479 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
1480
1481         * Added pkg-config .pc file creation for silc core library
1482           and silcclient library.  A patch by c0ffee.
1483
1484         * Removed the need for GNU Libidn.  Added the simple stringprep
1485           from libidn into lib/contrib/.  It is now used also on Windows
1486           build.
1487
1488 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1489
1490         * Simplified the invite and ban string handling in the
1491           server.  Check for valid invite and ban arguments also.
1492           Affected file silcd/server_util.c.
1493
1494 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1495
1496         * Added WATCH list announcing in backup router protocol.
1497           Affected files are silcd/command.c, server.c, server_backup.c.
1498
1499         * Do not change users mode to founder on normal server/backup
1500           if the founder mode is set, and user is first one to join.
1501           Affected file silcd/pcaket_receive.c.
1502
1503         * Do not send CUMODE_CHANGE notify back to sender.  Affected
1504           file silcd/packet_receive.c.
1505
1506         * Added getrusage() to take noise in SILC RNG.  A patch by
1507           Mika Boström.  Affected files are configure.in.pre,
1508           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
1509
1510 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1511
1512         * Splitted the SILC libraries configuration into a configure
1513           fragment into lib/configure.ad.  It is now possible, once
1514           this feature is added, to specify whether to compile or not
1515           compile included SILC libraries.  Affected files are
1516           configure.in.pre, lib/silcmath/mpi/configure.ad,
1517           lib/configure.ad, Makefile.defines.pre and
1518           Makefile.defines_int.pre.
1519
1520         * Added --with-silc-includes and --with-silc-libs to configure.
1521           If specified the included libs are not compiled, but the
1522           specified libs are used.  Pkg-config is not yet supported.
1523           Affected file configure.in.pre.
1524
1525         * Fixed WATCH command handling on backup router.  Router does not
1526           send the watch command any more to backup if it originates from
1527           backup.  Affected file silcd/command.c.
1528
1529 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1530
1531         * Changed announcing to not announce unregistered clients.
1532           Affected file silcd/server.c.
1533
1534         * Fixed username handling in command reply.  Affected file
1535           silcd/command_reply.c.
1536
1537         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
1538
1539 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
1540
1541         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
1542           Affected file: includes/silcincludes.h.in
1543
1544         * bool is defined as _Bool on Mac OS X now.
1545           Affected file: lib/silcutil/silctypes.h
1546
1547 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1548
1549         * Added support for UTF-8 nicknames, channel names and
1550           server names in client library.  Affected files in
1551           lib/silcclient/.
1552
1553         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
1554           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
1555           software to check how Toolkit has been compiled.
1556
1557 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1558
1559         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
1560
1561         * Use silc_utf8_str[n]casecmp instead of strcmp routines
1562           in library and in SILC Client when dealing with nicknames
1563           and other identifier strings.  Affected file in client lib
1564           and irssi.
1565
1566         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
1567           irssi/src/silc/core/silc-servers.c.
1568
1569 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1570
1571         * Fixed idcache to work with the new identifier strings.
1572           Affected file lib/silccore/silcidcache.c.
1573
1574         * Added UTF-8 hash and compare function for SilcHashTable.
1575           Affected file lib/silcutil/silcutil.[ch].
1576
1577         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
1578           Affected file lib/silcutil/silcstringprep.[ch].
1579
1580         * Changed the identifier string handling to include the original
1581           format in client, server, channel entries and normalized
1582           format in cache.  Affected files in silcd/.
1583
1584 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1585
1586         * Added support for the new identifier strings and their
1587           validity checking.  Nicknames, channel names and usernames
1588           can now include practically any kind of letters and various
1589           other characters.  Affected files in silcd/ and in libraries.
1590
1591           NOTE: comparing these strings should now be done with memcmp()
1592           to check binary compatibility.  All these strings are normalized
1593           and casing is irrelevant.
1594
1595         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
1596           as easy function for applications to check whether identifier
1597           strings are valid.
1598
1599 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1600
1601         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
1602           file lib/silcutil/silcutf8.c.
1603
1604         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
1605
1606 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1607
1608         * Make public key in getkey reply mandatory.  Affected file
1609           lib/silcclient/command_reply.c
1610
1611 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
1612
1613         * Added Parameter dont_register_crypto_library to
1614           SilcClientParam. If set to TRUE, silcclient library will
1615           not initalize the Crypto Libraries and application
1616           will need to do it. Affected file lib/silcclient/silcclient.h,
1617           lib/silcclient/client.c.
1618
1619 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1620
1621         * Imported new silc_utf8_[encode|decode] routines from
1622           my internal SILC 1.1 source tree.  New encodings added:
1623           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
1624           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
1625           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
1626           SILC_STRING_LDAP_DN.
1627
1628         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
1629
1630         * Implemented stringprep (RFC 3454) API.  Internally we use
1631           GNU Libidn's stringprep, for now, so it is required now to
1632           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
1633
1634         * Added checking for GNU Libidn and --with-libidn to configure.
1635
1636 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1637
1638         * If the passphrases entered do not match while generating a new key,
1639           completly start over instead of going into an infinite loop asking
1640           the user to re-enter the passphrase correctly.  Affected file
1641           lib/silcutil/silcapputil.c
1642
1643 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
1644
1645         * Make sure server is removed from backup list when it is
1646           deleted.  Affected files silcd/command.c, server.c,
1647           server_util.c.
1648
1649         * Close socket when connecting to router fails.  Affected
1650           file silcd/server.c.
1651
1652 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1653
1654         * Adopt configuration toolchain to current auto-tools.
1655           Affected files prepare, irssi/configure.in
1656         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
1657           redo that.  Affected files irssi/src/silc/core/client_ops.c,
1658           irssi/src/fe-common/silc/fe-silc-channels.c
1659         * Take over command line options into silcclient data structure.
1660           Affected file irssi/src/silc/core/silc-core.c
1661
1662 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1663
1664         * Do not try to initiate backup resuming protocol forever.
1665           Affected file silcd/server_backup.c.
1666
1667 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1668
1669         * ID change in resuming has to be done before changing
1670           detached client's modes, since the ID change may fail and
1671           leave ghosts on the network.  Affected file is
1672           silcd/packet_receive.c.
1673
1674 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1675
1676         * Fixed Win32 scheduler to not stuck anymore.  A patch from
1677           Juha Räsänen.  Affected file is
1678           lib/silcutil/win32/silcwin32schedule.c.
1679
1680         * Fixed QoS parsing for connection blocks in server.  Affected
1681           file is silcd/serverconfig.c.
1682
1683         * Fixed server statistics increasing in server.  Affected file
1684           is silcd/server.c.
1685
1686         * The CLOSE command now marks backup router as self disconnected
1687           to avoid resuming problems.  Affected file silcd/command.c.
1688
1689 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
1690
1691         * When using silc_net_create_connection[_async], and your system can
1692           create IPv6 sockets, it will try to connect to the IPv6 host.
1693           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
1694           file lib/silcutil/unix/silcunixnet.c
1695
1696 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
1697
1698         * Check for valid route when receiving packet from router and
1699           when routing it to local server in the cell.  A patch from
1700           Matt Miller.  Affected files silcd/router.c and server.c.
1701
1702 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
1703
1704         * Couldn't detach and reattach twice, because of the previous
1705           commit. Affected file silcd/packet_receive.c
1706
1707 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
1708
1709         * Added check to ignore Port value if Initiator is FALSE.
1710           Remote router coudln't connect if Port was set. Affected file
1711           silcd/serverconfig.c
1712
1713         * If some client tries to resume more than once at the same time,
1714           server crashed. Router didn't crash, but showed odd behaviour
1715           (didn't allow clients to join anymore, ..). Affected files
1716           silcd/packet_receive.c silcd/idlist.h
1717
1718 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1719
1720         * Destroy the file transfer session in silc_client_file_close
1721           with timeout.  Affected file lib/silcclient/client_ftp.c.
1722
1723         * Call SFTP server monitor in READ and WRITE after the actual
1724           operations.  Affected file lib/silcsftp/sftp_server.c.
1725
1726 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1727
1728         * Create one configure script from configure fragments
1729           (configure.ad).  This is a first step towards new distribution
1730           system.  Affected files prepare, configure.in.pre,
1731           lib/silcmath/mpi/configure.ad.
1732
1733 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1734
1735         * Removed expiring of client key pair.  Affected file is
1736           irssi/src/silc/core/clientutil.c
1737
1738 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1739
1740         * Check the number of connections from real number of
1741           connections instead of socket number, when deciding if
1742           server is full.  Affected files are silcd/server.c,
1743           server_internal.h and silcd.c.
1744
1745         * Clarified the connections_max meaning in General section
1746           in doc/example_silcd.conf.in.
1747
1748         * The reconnect_keep_trying default value set to TRUE
1749           if it is not defined in the config file.  Affected file
1750           silcd/serverconfig.c.
1751
1752 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1753
1754         * Fixed crashbug in connection closing, after a protocol
1755           completion callback, which might have closed it already.
1756           Affected file silcd/server.c.
1757
1758         * Fixed rekey with PFS in backup router.  It did not allow
1759           rekeys with PFS, and when the rekey protocol timedout
1760           it crashed the backup router without the above fix.  Affected
1761           file silcd/packet_send.c and server.c.
1762
1763 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1764
1765         * The silc_client_add_channel_private_key now returns the
1766           private key context if pointer is given as argument.
1767           Affected files are lib/silcclient/silcclient.h and
1768           client_channel.c.
1769
1770         * Added support for using channel private keys in SILC
1771           Client Library even if the private key mode is not set
1772           on the channel.  Affected file lib/silcclient/client_channel.c.
1773
1774         * The channel private key used to decrypt message is now
1775           delivered to the application in the 'channel_messageÃ' client
1776           operation.  Affected files are lib/silcclient/silcclient.h
1777           and client_channel.c.
1778
1779         * Fixed wrong arg type for user limit in CMODE command reply.
1780           Affected file silcd/command.c.
1781
1782         * The user limit is now taken and saved to SilcClientEntry in
1783           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1784           Affected files lib/silcclient/silcclient.h, command_reply.c
1785           and client_notify.c.
1786
1787         * Added support to the new private message key indicator
1788           packet.  Added a new function to the client library:
1789           silc_client_send_private_message_key_request.  The sender
1790           indicates to be initiator, and receiver is responder.
1791           Added the indicator to the SilcClientEntry as 'prv_resp'
1792           boolean.  Affected files are lib/silcclient/silcclient.h
1793           client.[ch], and client_prvmsg.c.
1794
1795 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1796
1797         * Fixed the JOIN command calling when called with both
1798          -auth and -founder.  Affected file is lib/silcclien/command.c.
1799
1800 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1801
1802         * Check watcher list for resumed clients as well.  Affected
1803           file is silcd/packet_receive.c.
1804
1805 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1806
1807         * Implemented the user limit to the CMODE_CHANGE notify,
1808           CMODE command reply and JOIN command reply in server.
1809           Affected files are silcd/server.c, command.c, command_reply.c,
1810           packet_send.c and packet_receive.c.
1811
1812 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1813
1814         * Defined SILC_STRFMT_END that must be used now with
1815           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1816           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1817           lib/silcclient/silcvcard.c, silcd/server_util.c.
1818
1819         * Fixed the adding of public key to the WATCH list in server.
1820           Fixed the WATCH notify sending to client.  Affected files
1821           are silcd/packet_send.[ch], command.c, server_util.c.
1822
1823         * Implemented the watching by public key in the SILC Client
1824           Library and SILC Client.  Affected files are
1825           lib/silcclient/command.c and client_notify.c.
1826
1827 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1828
1829         * Added support for public key watching in server.  Affected
1830           files are silcd/server.c, server_internal.h, command.c,
1831           server_util.c.
1832
1833 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1834
1835         * Added public key to the SIlcClientEntry.  Affected files
1836           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1837
1838         * Fixed the get_clients_whois reply processing to return
1839           exactly same entries server returned.  Makes it possible
1840           to search using attributes.  Affected file is
1841           lib/silcclient/idlist.c.
1842
1843 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1844
1845         * Save founder key to SilcChannelEntry.  Affected files are
1846           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1847
1848 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1849
1850         * Call the monitor callback with _CLOSED status from the
1851           silc_client_file_close.  Affected files are
1852           lib/silcclient/client_fpt.c, silcclient.h
1853
1854         * Added silc_client_get_clients_whois which resolves using
1855           WHOIS, and supports requested attributes as well.
1856           Affected files are lib/silcclient/silcclient.h, idlist.c.
1857
1858 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1859
1860         * Added support for asking the destination filename where
1861           the downloaded file is saved in the file transfer.  Affected
1862           files are lib/silccilent/silcclient.h, client_ftp.c.
1863
1864 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1865
1866         * Fixed error handling in resuming data processing.  Affected
1867           files are lib/silcclient/client_resume.c and client.c.
1868
1869 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1870
1871         * Fixed silc_client_send_private_message to return TRUE correctly.
1872           Affected file lib/silcclient/client_prvmsg.c.
1873
1874         * Added topic to the SilcChannelEntry.  Affected files are
1875           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1876
1877 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1878
1879         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1880           file lib/silcclient/command.c
1881
1882 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1883
1884         * Convert all commands to UTF-8 before passing them to the
1885           client library.  Still need to convert replies from UTF-8 to
1886           the locale encoding.  Affected file
1887           irssi/src/silc/core/silc-cmdqueue.c
1888
1889 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1890
1891         * redirect all silc_client_command_calls through a queueing framework.
1892           This fixes /CYCLE and the annoying "nick change after auto-joining
1893           a channel".  Furthermore it defines one central point where
1894           command parameters can be UTF-8-ified.  Affected files
1895           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1896           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1897
1898 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1899
1900         * use asynchronous connect() to establish router connections.
1901           Fixes problem when the primary router goes down.  Affected files
1902           silcd/server.c, silcd/server_backup.c
1903
1904 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1905
1906         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1907           Fixed various compilation warnings when type casting ints
1908           to pointers or vice versa, of different size.  Updates around
1909           the source free.
1910
1911 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1912
1913         * Surrogates not allowed in UTF-8 strings, updated decoder.
1914           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1915           testers in lib/silcutil/tests/ directory.
1916
1917 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1918
1919         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1920           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1921           files are lib/silcclient/silcclient.h, client.c.
1922
1923 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1924
1925         * When resuming a session fails, notify the user that the session
1926           file needs to be removed eventually.  Affected files
1927           irssi/src/fe-common/silc/module-formats.[ch],
1928           irssi/src/silc/core/client_ops.c.
1929
1930 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1931
1932         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1933           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1934
1935         * Typofix in Irssi::Silc module.  Affected file
1936           irssi/src/perl/silc/Silc.xs.
1937
1938 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1939
1940         * Changed the way NOTICE flagged messages are treated. Added support
1941           for notices in queries and signing notices.  Affected files
1942           irssi/default.theme; irssi/docs/help/in/notice.in;
1943           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1944           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1945
1946         * Fixed typo in /ACTION help.  Affected file
1947           irssi/docs/help/in/action.in
1948
1949 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1950
1951         * Fixed typo in perl module.  Affected file
1952           irssi/src/perl/silc/Server.xs
1953
1954         * Changed the way ACTION flagged messages are treated. Added support
1955           for actions in queries and signing actions.  Affected files
1956           irssi/default.theme; irssi/docs/help/in/action.in;
1957           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1958           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1959           silc-servers.[ch]
1960
1961 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1962
1963         * Incorrectly reported error when client had to be resolved from
1964           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1965
1966 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1967
1968         * Fixed whois public key hash table deleting and adding in
1969           detached client case.  Affected file silcd/packet_receive.c.
1970
1971 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1972
1973         * Changed filenames of silc/fe module not to collide with filenames
1974           from core/fe.  Also seperated public messages printing from
1975           query messages printing.  Affected files are all in
1976           irssi/src/fe-common/silc.
1977
1978 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1979
1980         * Fixed the invite process handling during joining to use
1981           correct server name for the client that is matched against
1982           the invite string for the channel.  Wrong server name caused
1983           inability to join the channel.  Affected file is
1984           silcd/command.c.
1985
1986 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1987
1988         * Fixed the CUMODE channel founder authentication on normal
1989           server to not remove the founder rights on existing founder
1990           before checking that router accepts the mode change.  Affected
1991           files are silcd/command.c and silcd/packet_receive.c.
1992
1993         * Remove the server entry correctly when rekey timeouts and
1994           remote router connection on normal server is closed.  Fixes
1995           a crash where server uses the freed server entry.  Affected
1996           file silcd/server.c.
1997
1998 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1999
2000         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
2001           networks.  This is the first step in solving the bug about
2002           /SERVER ADD -silcnet <silcnet>.  Affected files
2003           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
2004           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
2005           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
2006
2007 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
2008
2009         * /SMSG and /MMSG now correctly create new queries. Affected files
2010           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
2011
2012         * Add basic support for SILC protocol specific variables in perl.
2013           Affected files irssi/src/perl/silc/*, irssi/configure.in,
2014           irssi/src/perl/Makefile.am
2015
2016 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2017
2018         * Don't use silc_get_input, it's obviously not reliable.  Fixes
2019           issue when the current key expires.  Affect file
2020           irssi/src/silc/core/clientutils.c
2021
2022         * Make the session data filename configurable.  This makes it
2023           possible to have different session files for different
2024           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
2025           client_ops.[ch], silc-servers.c,
2026           irssi/src/silc/fe-common/silc/module-formats.[ch]
2027
2028         * Use the same set of libtool files for the MPI lib as for the
2029           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
2030           config.sub, configure.in, install-sh, missing, mkinstalldirs
2031
2032 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2033
2034         * Fixed server statistics decrementing error to not go to
2035           negative.  Affected file silcd/packet_receive.c.
2036
2037 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2038
2039         * Use silc_server_query_add_error to add error in public key
2040           search error.  Added support in send_reply to send errors
2041           without specific argument.  Affected file silcd/server_query.c.
2042
2043         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
2044           Client for NO_SUCH_NICK.  It was against the protocol specs.
2045           Affected file irssi/src/silc/core/client_ops.c.
2046
2047         * Added backwards support for the wrong NO_SUCH_NICK error sending
2048           in server.  To be removed in SILC Server 1.0.  Both old clients
2049           and clients with fixed error handling now works.  Affected file
2050           silcd/server_query.c.
2051
2052 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
2053
2054         * fixed a bug in the whois using attributes function where no
2055           error was sent if no nickname and client id but the attributes were
2056           given to whois. Affected file silcd/server_query.c
2057
2058 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
2059
2060         * remove public key from public key hashtable on detach. Affected
2061           file silcd/packet_receive.c
2062
2063         * free public key hashtable before removing clients on server
2064           shutdown. Affected file silcd/server.c
2065
2066         * remove public key prior deleting client-data on killing a client.
2067           Affected file silcd/server_util.c
2068
2069 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
2070
2071         * Getting the MOTD from other servers works now. Affected
2072           files are silcd/command.c and silcd/command_reply.c
2073
2074 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2075
2076         * Initialize the variable idletag, since it is tested in
2077           silc_core_deinit for its default value.  Affected file
2078           irssi/src/silc/core/silc-core.c
2079
2080 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
2081
2082         * Fixed signed channel messages across cells. Affected file
2083           silcd/packet_send.c
2084
2085 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2086
2087         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
2088           is not defined.  They can now be safely used in if-statements
2089           without braces.  Affected file lib/silcutil/silclog.h.
2090
2091         * Added the checks for backup closing connection due to error
2092           (local or remote) and thus not allow the resuming to occur
2093           in reconnect.  Affected files are silcd/packet_send.c
2094           and server.c.
2095
2096 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2097
2098         * Help file updates.  Affected files in irssi/src/docs/help/in/.
2099
2100 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
2101
2102         * Fixed channel messages across cells. Affected file
2103           silcd/packet_send.c
2104
2105 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2106
2107         * Fixed file transmission accepting in client library to not
2108           start the negotiation if user hasn't accepted the transfer,
2109           instead create new session for resent transfer.  Affected
2110           file lib/silcclient/client_ftp.c.
2111
2112         * Show the session ID in the file transmision list.  Remove
2113           session from list that failed to transfer.  Switch the current
2114           session automatically after transmission, and in errors, to new
2115           session if other sessions exists in the transfer list.  Affected
2116           files are irssi/src/silc/core/silc-servers.c,
2117           irssi/src/fe-common/silc/modfule-formats.c.
2118
2119 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2120
2121         * Fixed MIME header parsing for the hopefully last time.  Affected
2122           file lib/silcutil/silcstrutil.c
2123
2124 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2125
2126         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
2127
2128         * The SILC RNG is now gauranteed to return non-zero random
2129           values.  Affected files are lib/silccrypt/silcrng.[ch].
2130
2131 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2132
2133         * Fixed nickname formatting when changing only case of the
2134           nickname.  Affected file lib/silcclient/idlist.c.
2135
2136 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2137
2138         * Fixed a memory leak and incorrect printing of the "appears as"
2139           message.  Affected file irssi/src/silc/core/client_ops.c
2140
2141 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2142
2143         * Added CRT (Chinese Remainder Theorem) supported RSA
2144           private keys and private key operations.  This significantly
2145           increases private key operation efficiency.  No compatibility
2146           issues with new or old private keys.  Affected files are
2147           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
2148
2149 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2150
2151         * Fixed GCC-3.3.2 related compilation warnings from the
2152           source tree.
2153
2154 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2155
2156         * Removed RC6 from distributions.
2157
2158 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2159
2160         * Added some better comments to lib/silccrypt/silcpkcs.h,
2161           optimized some routines in lib/silccrypt/silcpkcs.c.
2162           Added test_silcpkcs into lib/silccrypt/tests/.
2163
2164         * Fixed silc_rng_global_init to actually init the global RNG
2165           if RNG wasn't provided for it.  Affected file is
2166           lib/silccrypt/silrng.c.
2167
2168 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2169
2170         * Added silc_hash_table_find_by_context_ext.  Affected files
2171           lib/silcutil/silchashtable.[ch].
2172
2173         * Save the public key on normal server in WHOIS command reply
2174           from attributes, if present, and add it to public key hash
2175           table.  Fixes WHOIS resolving by public key on normal server.
2176
2177           Optimized the attributes resolving on normal server to not
2178           resolve if we resolved them already from router.
2179
2180           Affected files are silcd/server_query.c, command_reply.c.
2181
2182 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
2183
2184         * Added support for whois using attributes.
2185           Affected files silcd/command_reply.c, silcd/packet_receive.c,
2186           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
2187           silcd/server_util.c
2188
2189         * Added support for whois using public key attribute to /WHOIS i
2190           client command. Affected files irssi/docs/help/in/whois.in,
2191           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
2192
2193 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2194
2195         * Fixed UMODE setting in server when the client has anonymous
2196           mode set.  The mode setting was not working.  Affected file
2197           silcd/command.c.
2198
2199 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2200
2201         * Fixed some bugs and typos related to sending split messages.
2202           Print notification when sending messages with /MMSG.  Affected
2203           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
2204
2205 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2206
2207         * Optimized the socket referencing in packet routines, client
2208           library and server.  Affected files are lib/silccore/silcpacket.c,
2209           lib/silcclient/client.c and silcd/server.c.
2210
2211         * If silc_socket_set_qos is given with NULL arguments the QoS is
2212           reset from the socket.  Affected files are
2213           lib/silcutil/silcsockconn.[ch].
2214
2215 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2216
2217         * Add a /LISTKEYS command which lists the locally cached
2218           client and server keys.  Affected files
2219           irssi/src/fe-common/module-formats.[ch],
2220           irssi/src/silc/core/silc-{channels,servers}.c
2221           irssi/docs/help/in/listkeys.in
2222
2223 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2224
2225         * Check that packet queue purging was successful.  Affected
2226           files lib/silcclient/client.c and silcd/packet_send.c.  Related
2227           to MAC failed errors.
2228
2229         * Do not clear the inbuf even if it is empty if QoS was applied
2230           to it.  Otherwise the QoS data is cleared and MAC failed error
2231           will occur.  Affected file lib/silccore/silcpacket.c.
2232
2233         * Use the rekey period time as rekey protocol timeout value.
2234           If the rekey does not succeed during the rekey period there's
2235           something very wrong, and we most likely end up with wrong keys,
2236           do graceful reconnect then.   Affected file silcd/server.c.
2237
2238         * Take reference of the socket in the parser context, as it's
2239           possible to have the parsers in queue after the socket is
2240           disconnected and this may cause crash.  Affected files are
2241           lib/silccore/silcpacket.c, lib/silcclient/client.c and
2242           silcd/server.c.
2243
2244 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2245
2246         * Fixed KICK command reply sending, it sent to replies.
2247           Affected file silcd/command.c.
2248
2249 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2250
2251         * Finish the silc-mime.pl script. It now supports MIME type
2252           guessing using magic files, signing data messages, executing
2253           MIME handlers in background. Affected files
2254           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
2255
2256         * Changed MIME signal handler to make things easier for the perl
2257           script. Affected files irssi/src/silc/core/client_ops.c,
2258           silc-servers.c, and irssi/docs/signals.txt
2259
2260         * Cleaned up the silc_mime_parse function and fixed detection
2261           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
2262
2263 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2264
2265         * Resolve the IP for file transfer listener from the connection
2266           socket.  Affected file lib/silcclient/client_ftp.c.
2267
2268         * Accept NULL hostname parameter in the functions
2269           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
2270           if hostname is not wanted.
2271
2272 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2273
2274         * Fixed race condition between silc_client_init and
2275           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
2276
2277 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2278
2279         * Fixed file transfer connection closing when SIGNOFF for
2280           the client is received from server.  Affected file is
2281           lib/silcclient/client_ftp.c.
2282
2283 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2284
2285         * Check for disconnected socket in QUIT callback.  Affected
2286           file silcd/command.c.
2287
2288 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2289
2290         * Modified the MIME parsing to allow \n and \r\n as delimiters.
2291           Affected files lib/silcutil/silcstrutil.c
2292
2293         * Cleaned up the escape/unescape functions for correctness and
2294           speed. Affected file irssi/src/silc/core/client_ops.c
2295
2296         * Removed handling for data messages with Content-Type: text/*,
2297           moved parsing of MIME headers to the signal handler, added
2298           support for signing and verifying data messages. Affected
2299           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
2300           irssi/src/silc/core/silc-{servers,channels}.c
2301
2302         * Added a perl script for handling data messages based on
2303           information read from Mailcap files. New file
2304           irssi/scripts/silc-mime.pl
2305
2306 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2307
2308         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
2309           acknowledge recepetion of a message to the sender.  Updated
2310           protocol specs.
2311
2312 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2313
2314         * Unregister channel key saving callback when deleting channel.
2315           Affected file lib/silcclient/idlist.c.
2316
2317         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
2318           before calling notify client operation.  Affected file is
2319           lib/silcclient/client_notify.c.
2320
2321         * Unregister QoS tasks when deleting the socket connection.
2322           Affected files lib/silcutil/silcsockconn.[ch],
2323           unix/silcunixsockconn.c.
2324
2325         * Implemented latest presence-attrs draft changes.  Affected
2326           files lib/silccore/silcattrs.h and
2327           irssi/src/silc/core/silc-queries.c.
2328
2329 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2330
2331         * Save old channel keys in list to allow more rapid change
2332           of channel keys if server for some reason does that.  This
2333           avoids loosing so many channel messages due to not having
2334           key to decrypt.  Affected file lib/silcclient/silcclient.h,
2335           idlist.c and client_channel.c.
2336
2337 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2338
2339         * Continued backup router tests and fixes.  Affected files
2340           silcd/server_backup, server_util.c, server.c.  See TODO.
2341
2342 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2343
2344         * Fixed SERVER_SIGNOFF handling in servers.  The client
2345           was removed from wrong list thus not removing the client
2346           at all.  Affected file silcd/packet_receive.c.
2347
2348         * Do not execute rekey protocol for disabled connections as
2349           it would never go through.  Affected file silcd/server.c.
2350
2351         * Added timeout for rekey protocol to catch if the protocol
2352           never executes successfully.  Affected files silcd/server.c
2353           and protocol.h.
2354
2355 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2356
2357         * Abandon packet processing for disconnected sockets.  Check
2358           this always after calling packet processing callback.
2359           Affected file lib/silccore/silcpacket.c.
2360
2361         * Fixed double registration disconnection code in server.
2362           Closed wrong connection.  Affected file silcd/packet_receive.c.
2363
2364 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2365
2366         * On normal server reconnect to primary during resuming 4
2367           times, then give up.  Affected file silcd/server_backup.c.
2368
2369         * If during reconnecting to routers we notice we have router
2370           connection but no primary router set, the server is in desync.
2371           Reconnect to primary to restore network.  Affected file
2372           silcd/server.c.
2373
2374         * Assure that only one protocol is exeucting at the same time.
2375           Added checks for all protocols.  Affected files are
2376           silcd/server.c and server_backup.c.
2377
2378 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2379
2380         * Check that a string is not already part on invite/ban
2381           string when processing it.  Affected file silcd/server_util.c.
2382
2383 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2384
2385         * Fixed the CUMODE_CHANGE for founder mode changes to comply
2386           with 1.2 version of the protocol.  Affected file is
2387           silcd/packet_receive.c.
2388
2389 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2390
2391         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
2392           where the passphrase was given.  Affected file is
2393           silcd/command.c.
2394
2395 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2396
2397         * INVITE and BAN notifys are now delivered from routers to
2398           servers (but not clients) on the channel.  Updated specs and
2399           code.  Affected files silcd/packet_[send|receive].[ch],
2400           command.c, server.c and server_util.c.
2401
2402         * Implemented INVITE and BAN announcing.  Affected files are
2403           silcd/server.[ch], server_util.c.
2404
2405         * Implemented SilcStatus error type argument returning in
2406           command reply error in server.  Affected file silcd/command.c.
2407
2408         * Implemented SilcStatus argument returning in comand reply
2409           in client library.  The command_reply client operation now
2410           returns error specific arguments as well.  Affected files
2411           are lib/silcclient/command_reply.[ch], client_resume.c,
2412           lib/silccore/silcstatus.[ch].
2413
2414 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2415
2416         * Backup router protocol version 1.2 implemented.  Testing still
2417           required.  Affected files in silcd/server_backup.[ch], server.c,
2418           packet_receive.c and server_internal.h.
2419
2420 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2421
2422         * silc_client_send_[channel|private]_message now return TRUE
2423           or FALSE.  Affected file lib/silcclien/client_channel.c and
2424           client_prvmsg.c.
2425
2426 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2427
2428         * Check for explicit nickname in INVITE and BAN processing
2429           during join as well (and don't expect only wildcards in
2430           invite/ban strings).  Affected file silcd/command.c.
2431
2432         * Fixed the INVITE and BAN by public key.  The public key saved
2433           is the PK payload (as specified) not the raw data.  Affected
2434           file silcd/server_util.c.
2435
2436 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2437
2438         * UTF-8 text message support for actions and notices in SILC
2439           Client.  Affected file irssi/src/silc/core/client_ops.c.
2440
2441         * silc_get_username and silc_get_real_name now returns sensible
2442           data on Win32.  Patch by Toni Willberg.  Affected file is
2443           lib/silcutil/win32/silcwin32util.c.
2444
2445 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2446
2447         * Provide a signal handler to send MIME encoded messages and emit
2448           a signal when a MIME encoded message is received. Also document
2449           the signals for usage with the perl interface.
2450
2451           A sample perl script will be supplied at a later point.
2452
2453           Affected files are irssi/docs/signals.txt,
2454           irssi/src/silc/core/client_ops.[ch],
2455           irssi/src/silc/core/silc-{channels,servers}.c
2456
2457 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2458
2459         * Use SILC_COMMAND_PING to estimate the round-trip time to the
2460           server. Use this time to display a lag and disconnect when it
2461           exceeds a specified limit.
2462
2463           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
2464
2465 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2466
2467         * Remove the channel auth list in normal server if router
2468           encofrces its list during connecting.  Send notify to channel
2469           to remove the mode to remove the list.  Affected files are
2470           silcd/server_util.c and silcd/packet_receive.c.
2471
2472 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2473
2474         * Added support for channel public keys.  Updated protocol specs
2475           and implemented it.  Affected files are
2476           silcd/command.c, command_reply.c, lib/silcclient/command.c,
2477           lib/silcclient/command_reply.c.
2478
2479 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2480
2481         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
2482           terminate the process on Linux.  Affected file silcd/silcd.c.
2483
2484 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2485
2486         * Check for NULL buffer in silc_buffer_clear.  Affected file
2487           is lib/silcutil/silcbuffer.h.
2488
2489         * Simplified the backup router protocol by removing the _GLOBAL
2490           types.  Updated protocol specs and the code.  Affected files
2491           are silcd/server_backup.[ch].
2492
2493 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2494
2495         * Deny '@' and '!' from nicknames since they are reserved
2496           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
2497           Updated protocol specs and the code.
2498
2499           Affected files are silcd/server_util.[ch].
2500
2501 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2502
2503         * Fixed stack overflow in Irssi SILC client.  Affected
2504           file irssi/src/silc/core/client_ops.c.
2505
2506         * Check that Host is set in ServerConnection and RouterConnection
2507           in silcd.conf.  Affected file silcd/serverconfig.c.
2508
2509         * Fixed crash in server with protocol completion callbacks,
2510           namely rekey and backup resuming protocols.  Affected files
2511           are silcd/server_backup.c and silcd/server.c.
2512
2513         * Fixed rekey protocol to not restart if it is started already.
2514           Affected files are lib/silcclient/client.c and
2515           silcd/server.c.c
2516
2517 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2518
2519         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
2520
2521         * Fixed EOF handling in SILC Config, affected file
2522           lib/silcutil/silcconfig.c.
2523
2524         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
2525
2526         * Fixed RESOLVING flag handling in JOIN notify and other
2527           notifys to handle the resolvings correctly in client library.
2528           Affected file lib/silcclient/client_notify.c.
2529
2530         * Do not send full INVITE and BAN lists in INVITE and BAN
2531           notifys, only the changed information.  Affected file
2532           silcd/command.c.
2533
2534         * Fixed INVITE notify sending in INVITE command, send it
2535           only when needed.  Affected file silcd/command.c.
2536
2537         * Handle the founder key change properly in CMODE_CHANGE
2538           notify.  Bug #122.  Affected file silcd/packet_receive.c.
2539
2540 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2541
2542         * Remove the mark for output (mark it only for input) after
2543           purging outgoing queue.  Prevents the "Error in select()"
2544           floods.  Affected file silcd/packet_send.c.
2545
2546         * Fixed incorrect connection deletion from client library
2547           after calling "connect" client operation.  Could cause
2548           crashes for example during reconnect timeouts.  Affected
2549           files are lib/silcclient/client.c and
2550           irssi/src/silc/core/client_ops.c.
2551
2552         * Check server private key file permissions before starting
2553           the server.  Affected file silcd/serverconfig.c.
2554
2555 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2556
2557         * NULL terminate allocated string in silc_buffer_strformat.
2558           Affected file lib/silcutil/silcbuffmt.c.
2559
2560         * Rewrote the invite/ban list string handling in server to
2561           use SilcBuffer instead.  Affected files are silcd/command.c
2562           and silcd/server_util.c.
2563
2564 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2565
2566         * Fixed double free in CMODE command when setting new HMAC
2567           for channel.  Affected file silcd/command.c.
2568
2569         * Added couple of missing memset's to zero sensitive memory.
2570           Affected files silcd/command.c, lib/silcclient/command.c.
2571
2572 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2573
2574         * Fixed a double free in INVITE command error handling in
2575           server.  Affected file silcd/command.c.
2576
2577         * Added macros SILC_SWAB_[16|32] to swab byte order of
2578           16-bit and 32-bit unsigned integers.  Affected file
2579           lib/silcutil/silctypes.h.
2580
2581         * Use the SILC_SWAB_16 instead of htons() in server when
2582           handling ports since the ports in structures are always
2583           in little-endian order (regardless of platform).  Affected
2584           file silcd/serverid.c and silcd/server_backup.c.
2585
2586 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2587
2588         * Send DISCONNECT in close admin command in server.  Affected
2589           file silcd/command.c.
2590
2591         * Check whether we are already connecting to a remote router
2592           (in addition of checking whether we are already connected)
2593           before creating new connection.  Affected file silcd/server.c.
2594
2595 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2596
2597         * Added better compiler and compiler flags checking in
2598           configure.
2599
2600         * Check that socket is valid after QoS is applied to data.
2601           Affected file lib/silcutil/unix/silcunixsockconn.c.
2602
2603         * Make sure the socket connecetion is not closed to early
2604           when closing connection in server.  Also make sure the
2605           connection is always closed after error in a protocol.
2606           Affected file silcd/server.c.
2607
2608 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2609
2610         * Removed --session and --dummy options from Irssi SILC Client.
2611           -d option is available only if --enable-debug was given.
2612           Affected files are irssi/src/silc/core/silc-core,
2613           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
2614
2615 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2616
2617         * Added silc_buffer_steal to steal the data from the buffer.
2618           Affected file lib/silcutil/silcbuffer.h.
2619
2620 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
2621
2622         * Fixed server crash with double Primary block in config file.
2623
2624           Fixed also various memory leaks around the config file
2625           parser.  Affected files lib/silcutil/silcconfig.c,
2626           silcd/serverconfig.c.
2627
2628         * Changed my nickname (Johnny Mnemonic) to my real name, this
2629           means that bugs introduced by him were actually introduced
2630           by me!
2631
2632 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2633
2634         * Don't display "foo appears as foo\nYou're now known as foo"
2635           messages.  Affected file irssi/src/silc/core/client_ops.c
2636
2637 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2638
2639         * Fixed error handling of invalid client entry when calling
2640           commands in server.  Fixes a crash.  Affected file
2641           silcd/command.c.
2642
2643 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2644
2645         * Added some sanity checks in server for correctness of the
2646           server configuration.  Affected file silcd/serverconfig.c.
2647
2648 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2649
2650         * Prevent endless resolving of user informations in USERS
2651           command by checking the command reply status correctly.
2652           Affected file lib/silcclient/command_reply.c.
2653
2654 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2655
2656         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
2657           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
2658           Aldous <Matthew@Aldous.com>.
2659
2660         * Added better implementation using CriticalSection of
2661           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
2662           <mikko.lahteenmaki@pikabaana.net>.
2663
2664         * Added some Winsock WIN32 compatiblity defines into
2665           includes/silcwin32.h.
2666
2667 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2668
2669         * Fixed double free in async host lookup code.  Affected file
2670           lib/silcutil/silcsockconn.c.
2671
2672         * On backup router handle now the SERVER_SIGNOFF from router
2673           for local connected servers too, and close the connections.
2674
2675           Do not process them as normally signing off servers when they
2676           really signoff by sending EOF fe, but always assume that
2677           router sends the SERVER_SIGNOFF.
2678
2679           Affected files silcd/server.c and silcd/packet_receive.c.
2680
2681         * Fixed socket unsetting when closing connections.  Affected
2682           files silcd/server.c and silcd/packet_send.c.
2683
2684         * Do not print the nickname in SERVER_SIGNOFF if we do not
2685           have it.  Prevents asserts in Irssi core.  It is possible we
2686           don't have the nick if it was just being resolved when server
2687           signoff.  Affected file irssi/src/silc/core/client_ops.c.
2688
2689 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2690
2691         * Fixed autonick crashbug in client library.  Affected file
2692           lib/silcclient/client.c.
2693
2694         * Fixed Unix implementation of SilcMutex to really assert if
2695           the mutex is locked/unlcoked already.  Affected file
2696           lib/silcutil/unix/silcunixmutex.c.
2697
2698         * Fixed locking in silc_schedule_uninit.  It didn't lock
2699           when dispatching timeout tasks.  Affected file is
2700           lib/silcutil/silcschedule.c.
2701
2702         * Changed Win32 implementation of SilcThread to use modern
2703           Win32 interface.  Affected file is
2704           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
2705
2706 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2707
2708         * Don't print signed messages when sending failed.  Affected files
2709           irssi/src/silc/core/silc-[servers.c/commands.h]
2710
2711         * Send adquate signal when founding a channel by joing it.  Affect
2712           file irssi/src/silc/core/client_ops.c
2713
2714 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2715
2716         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
2717           irssi/src/fe-common/core/themes.c
2718
2719 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2720
2721         * Fixed close command to use the port correctly when closing
2722           server connections.  Affected file silcd/idlist.c.
2723
2724         * Check for NULL outbuf in silc_socket_write.  It is possible
2725           that it is NULL is some odd case.  Affected files are
2726           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
2727
2728         * Do not call final protocol callback for backup router
2729           resuming protocol when closing connection.  It is closed
2730           by timeout in case of error.  Affected file silcd/server.c.
2731
2732         * Backup reconnect to router if backup resuming protocol
2733           failed.  Affected file silcd/server_backup.c.
2734
2735 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
2736
2737         * Fixed double free in SKE library error hadling when signature
2738           error occurred.  Affected file lib/silcske/silcske.c.
2739
2740         * Save the fingerprint to new SilcClientEntry after changing
2741           nickname.  Affected file lib/silcclient/client_notify.c.
2742
2743         * Print SIGNOFF in Irssi SILC client only if the nickname is
2744           known.  Prevents asserts in Irssi core.  It is possible we
2745           don't have the nick if it was just being resolved when it
2746           quit.  Affected file irssi/src/silc/core/client_ops.c.
2747
2748 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2749
2750         * Fixed double free in invite list adding code when adding
2751           invite strings.  Affected file silcd/server_util.c.
2752
2753 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2754
2755         * More log printing during backup router protocol.  Affected
2756           file silcd/server_backup.c.
2757
2758         * Removed backwards support for old private key file format.
2759           Affected file lib/silccrypt/silcpkcs.c.
2760
2761         * Removed backwards support for not-so-strict decryption length
2762           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2763
2764         * GETKEY to update the client entrys fingerprint too.
2765           Affected file lib/silcclient/command_reply.c.
2766
2767         * Added --without-libtoolfix for package builders using weird
2768           wrappers around libtool (BSD at least).
2769
2770 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2771
2772         * Fixed backup router bugs:  When backup resumes router and
2773           receives a CHANNEL_MESSAGE packet the backup must not act
2774           as router since the packet header decryption would be
2775           different.  Also, when relaying packets to channel, do
2776           not re-encrypt packets on backup that came from the primary
2777           since the connection isn't really router-router connection.
2778           Affected files silcd/server.c, silcd/packet_send.c.
2779
2780         * Added checks in encryption/decryption that encryption/decryption
2781           length sent as argument really is multiple by block size.  Helps
2782           catching really weird bugs like the above backup router bugs
2783           when packets are being decrypted in wrong way.  Affected files
2784           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2785
2786         * Fixed padding generation in private key file encryption.
2787           Affected file lib/silccrypt/silcpkcs.c.
2788
2789 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2790
2791         * Added ignore_message_signatures setting which can be used
2792           to ignore signatures in messages.  Affected files are
2793           irssi/src/silc/core/client_ops.c, silc-core.c.
2794
2795         * Fixed the libtoolfix to use command line options instead of
2796           environment variables.  They didn't work as expected.  Now,
2797           the libtool is fully run-time configurable.
2798
2799 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2800
2801         * Verify signature payload for signed messages. Affected files
2802           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2803           irssi/src/silc/core/silc-core.h
2804
2805         * Display signature verification result in public and private
2806           messages using theme abstracts. See irssi/default.theme for
2807           examples on their usage. Affected files
2808           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2809           irssi/src/fe-common/silc/module-formats.[ch],
2810           irssi/src/fe-common/silc/fe-common-silc.c,
2811           irssi/src/fe-common/silc/Makefile.am
2812           irssi/src/fe-common/core/fe-messages.[ch]
2813
2814         * Fixed bugs in Irssi's theme parsing. Affected files
2815           irssi/src/fe-common/core/themes.c
2816
2817 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2818
2819         * Calculate the correct length for signed messages before
2820           encrypting, it must be multiple by block size.  Affected
2821           file lib/silccore/silcmessage.c.
2822
2823         * silc_message_signed_get_public_key returns now both
2824           decoded and encoded public key.  Affected files are
2825           lib/silccore/silcmessage.[ch].
2826
2827         * Added libtoolfix script that makes the libtool more generic
2828           and configurable in run-time.  Now we can specify in run-time
2829           if what kind of libraries we want to create, regardless of
2830           configuration.  SIMs are now creates even if --disable-shared
2831           was explicitly given.
2832
2833 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2834
2835         * Fixed founder key sending in CMODE command in client.
2836           Affected file lib/silcclient/command.c.
2837
2838         * Fixed CUMODE founder authentication in server to not check
2839           for client's public key since it's not supposed to do that.
2840           Affected file silcd/command.c.
2841
2842 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2843
2844         * Set realname and hostname in NICK_REC records. Affected file
2845           irssi/src/silc/core/silc-nicklist.c
2846
2847 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2848
2849         * Remove 1.0 protocol backwards compat code from client
2850           library.
2851
2852         * Added more reliable check for whether nickname did change
2853           or not, or whether only Client ID changed in NICK_CHANGE
2854           notify.  Affected file lib/silcclient/client_notify.c.
2855           Fixes bug in '@' character handling in a nickname.
2856
2857         * Added support for automatically parsing signature from
2858           the message payload.  Added new function
2859           silc_message_get_signature to return the payload to
2860           application.  Affected files lib/silccore/silcmessage.[ch].
2861
2862         * Changed the private_message and channel_message client
2863           operations to deliver the SilcMessagePayload to the
2864           application too.  Application can use it fe. to get the
2865           signature from the message for verification.  Affected
2866           file lib/silcclient/silcclient.h, client_channel.c and
2867           client_prvmsg.c.
2868
2869         * Redefined the signed payload for message payloads.
2870           Updated protocol specs and implemented.
2871
2872 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2873
2874         * Fixed wrong invite and ban list handling in server command
2875           reply.  Affected files are silcd/command_reply.c,
2876           silcd/server_util.[ch].
2877
2878 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2879
2880         * Fixed CMODE setting in server when founder mode was set.
2881           Affected file silcd/command.c.  Bug #95.
2882
2883         * Added support to setting specific public key in CMODE in
2884           Irssi SILC client.  Affected file lib/silcclient/command.c.
2885
2886         * Added support to use specific public key in CUMODE in
2887           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2888
2889         * Added support for inviting and banning by public key in
2890           Irssi SILC client.  Affected file lib/silcclient/command.c.
2891
2892         * Fixed fingerprint/babbleprint showing in invite and ban
2893           list command replys.  Affected file is
2894           irssi/src/silc/core/client_ops.c.
2895
2896 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2897
2898         * Format CMODE +c and +h to display both the mode and the argument
2899
2900 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2901
2902         * Added test vectors and test programs for SHA-1, MD5,
2903           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2904           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2905           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2906
2907         * Changed the channel private key and private message key
2908           generation (with static keys) to use SHA1 instead of MD5,
2909           as SHA1 is the mandatory hash function in SILC.  Affected
2910           file lib/silcclient/client_[channel/prvmsg].c.
2911
2912         * Changed the private key file encryption to use SHA1 instead
2913           of MD5.  Added support for the old generation and added
2914           automatic change of the key (to be removed later).  Affected
2915           files lib/silccrypt/silcpkcs.c.
2916
2917 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2918
2919         * Load only files with .pub suffix in PublicKeyDir.  Affected
2920           file silcd/serverconfig.c.
2921
2922 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2923
2924         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2925           channels.  Affected files silcd/silcd.c, silcd/server.h.
2926
2927         * Added the config directive PublicKeyDir for the client block.
2928           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2929
2930 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2931
2932         * Merged Toni's irssi/silc.conf patch.
2933
2934         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2935
2936         * Max alloc tests in allocation routines.  Affected file
2937           lib/silcutil/silcmemory.c.
2938
2939 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2940
2941         * Fixed a typo in resuming code that fixed detach/resume code
2942           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2943
2944 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2945
2946         * Do reverse lookups for server when /connecting. Affected files
2947           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2948           irssi/src/core/net-nonblock.*
2949
2950 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2951
2952         * Added library versioning for shared libraries.  Affected
2953           files configure.in.pre and lib/Makefile.am.pre.
2954
2955 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2956
2957         * Display INVITE and BAN lists as specified by SILC 1.2
2958
2959 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2960
2961         * Do not send invite list back unless asked (when sending
2962           no arguments) or when list was modified.  Affected file
2963           silcd/command.c.
2964
2965         * Remove client from invite list in KILLED notify and in
2966           KILL command.  Affected file silcd/command.c and
2967           silcd/server.[ch].
2968
2969         * Fixed bugs in invite list handling in INVITE command.
2970           Affected files silcd/command.c and silcd/server_util.c.
2971
2972         * Merged with Irssi 0.8.6.
2973
2974         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2975           Affected file irssi/src/fe-text/silc.c.
2976
2977 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2978
2979         * The silc_argument_get_[first/next] now return the argument
2980           type to caller.  Added silc_argument_payload_encode_one.
2981
2982           Affected files are lib/silccore/silcargument.[ch].
2983
2984         * Added support for the SILC 1.2 INVITE command and new
2985           invite lists to server.  Affected files are silcd/command.c,
2986           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2987
2988         * Added support for the SILC 1.2 BAN command and new
2989           ban lists to server.  Affected files are silcd/command.c,
2990           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2991
2992         * Added support to client sending new INVITE command.  Affected
2993           file is lib/silcclient/command.c.
2994
2995         * Added support to client sending new BAN command.  Affected
2996           file is lib/silcclient/command.c.
2997
2998         * Added support for removing client from invite list when kicked
2999           from channel, as SILC 1.2 dictates.  Affected files are
3000           silcd/packet_receive.c and silcd/command.c.
3001
3002 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3003
3004         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
3005           automatically the cipher's internal IV.  Affected files
3006           lib/silccrypt/silccipher.[ch].
3007
3008         * Assure the RESUME_CLIENT packet is not sent to twice to
3009           backup router if the detached client was originated from
3010           the backup.  Affected file silcd/server.c.  Bug #76.
3011
3012         * Changed silc_sim_symname to not allocate memory.  Affected
3013           file lib/silcsim/silcsimutil.c.
3014
3015         * Fixed memory leaks with SIMs in server.  Affected files
3016           silcd/serverconfig.c, silcd/server.c.
3017
3018         * Fixed channel key distribution after resuming detached
3019           client.  Affected files silcd/packet_receive.c.
3020
3021         * Fixed channel's global_user boolean checking after detaching.
3022           Check it after changing the owner of the client not before.
3023           Affected file silcd/packet_receive.c.
3024
3025         * Fixed few double frees from client library.  Fixes at least
3026           Bug #81, possibly others too.
3027
3028         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
3029           notifys in Irssi SILC Client.  Affected file is
3030           irssi/src/silc/core/client_ops.c.  Bug #82.
3031
3032         * Applied Ville Räsänen's manual page and --mandir bugfix
3033           patch.  Affected files are configure.in.pre and Makefile.am.pre.
3034           Bug #88.
3035
3036 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3037
3038         * Added support to backup router protocol for backup to tell
3039           normal server that it cannot use the backup router as primary
3040           because the primary isn't really down.  Updated protocol
3041           specs.
3042
3043         * Added support for primary router to tell backup router that
3044           resuming is not possible because the backup really isn't primary
3045           in the cell.  For example if backup disconnected itself the
3046           resuming is not allowed since the primary really did not
3047           go down.  Updated protocol specs.
3048
3049         * Removed MARS from crypto library.
3050
3051         * Defined the CTR mode and Randomized CBC mode in SILC.  The
3052           CTR mode is RECOMMENDED now in specification.  Defined also
3053           Serpent cipher as optional cipher.  Updated the protocol specs.
3054
3055 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3056
3057         * Added support for inviting/banning by IP/MASK, public key,
3058           and explicit Client ID.  Redefined the command and notify
3059           types to allow easier forwards support for other methods
3060           of inviting/banning.  Updated protocol specs.
3061
3062         * Remove the client from channel's invite lists if the client
3063           is kicked or killed.  Updated protocol specs.
3064
3065         * Unified the Channel Message Payload and Private Message
3066           into one Message Payload.  Updated protocol specs and
3067           implemented.
3068
3069 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3070
3071         * Don't wait for EOF after socket error has occurred, but
3072           close the connection.  Affected file is silcd/server.c.
3073
3074 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3075
3076         * Added support for setting FOUNDER mode on channel with
3077           specific public key which can be set with CMODE command.
3078           Updated protocol specs and implemented in client and server.
3079
3080         * Fixed the Irssi SILC client to correctly shutdown the client
3081           library to avoid memory leaks.  Affected files are
3082           irssi/src/silc/core/silc-core.c and silc-servers.c.
3083
3084         * Deprecated the No Reply flag in SKE protocol and introduced
3085           "IV Included" flag which can be used to indicate that the IV
3086           is included in the ciphertext.  This makes it possible to use
3087           SILC on unreliable transport, such as UDP which may cause
3088           packet reordering and losses.  Updated protocol specs, did
3089           not implement yet.
3090
3091 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3092
3093         * Fixed the MPI implementation of silc_mp_sizeinbase to return
3094           < 32 bit values in correct size.  Affected file is
3095           lib/silcmath/mp_mpi.c.
3096
3097 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3098
3099         * Fixed the KE Start Payload parsing to check that mandatory
3100           fields are present.  Affected file lib/silcske/payload.c.
3101
3102         * Fixed compilation warnigs in Irssi SILC Client.  Affected
3103           files are irssi/src/silc/core/silc-query.c. client_ops.c.
3104
3105 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3106
3107         * Print "nick now appears as newnick" and update Irssi's nicklist
3108           when you change your nick to "nick". Closes #62
3109
3110         * Never format your own nick. Closes #63
3111
3112 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3113
3114         * SILC_UMODE_GONE changes are now propagated correctly to the
3115           Irssi client. Closes #54
3116
3117 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
3118
3119         * Fixed example in /HELP KEY
3120
3121         * Added expando $j which expands to current SILC Client version
3122
3123 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3124
3125         * Fixed public key decoding in crypto library.
3126
3127         * Added better error printing to SKE library.
3128
3129 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3130
3131         * Fixed NICK command to not crash if nickname was not sent.
3132
3133 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3134
3135         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
3136           Deprecated the old Encrypt-And-MAC order.  Updated protocol
3137           specs and implemented.
3138
3139         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
3140           generation.  Updated specs and implemented.
3141
3142 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3143
3144         * Added support for rekey before 2^32 sequence number wraps.
3145           Affected files in server and client library.
3146
3147         * Padding must be at least 8 bytes now.  Implemented and updated
3148           protocol specs.
3149
3150         * Compute maximum padding for authentication packets to make
3151           passphrase approximation attacks impossible.  Affected files
3152           in client library and in server.
3153
3154         * Fixed PING command sending in client library and handling in
3155           server.  The server ID must be ID Payload, not raw ID data.
3156           Affected files in server and client library.
3157
3158         * Defined that all public keys sent in commands and notify
3159           payloads are actually Public Key Payloads not raw public key
3160           data.  Updated protocol specs and implemented.
3161
3162         * Updated protocol version to 1.2.  Updated specs and code.
3163
3164         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
3165           status types.  Updated specs and the code.
3166
3167         * Added support for normal client to kill its own entries from
3168           the network.  Updated protocol specs and the code.
3169
3170         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
3171           and added initial implementation.
3172
3173         * Added MAC field to the Private Message Payload to protect
3174           against chosen ciphertext attacks.  Updated the protocol specs
3175           and implemented.
3176
3177         * Added idle and signon fields to the ATTRIBUTE_SERVICE
3178           attribute to indicate the user's current idle and signon time
3179           of a service.  Updated protocol specs and implemented.
3180
3181 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3182
3183         * Added "do_not_bind" argument to silc_client_file_send what
3184           can be used to not bind locally but assume the file receiver
3185           provides the point of connect.  Usefull when sender is behind
3186           NAT device.  Affected file lib/silcclient/silcclient.h and
3187           client_ftp.c.
3188
3189         * Added -no-listener option to FILE SEND command in Irssi SILC
3190           client.  Affected file irssi/src/silc/core/silc-servers.c.
3191           Renamed FILE RECEIVE to FILE ACCEPT.
3192
3193         * Confirm passphrase for private key encryption in
3194           silc_create_key_pair and silc_change_private_key_passphrase.
3195           Affected files are lib/silcutil/silcapputil.c.
3196
3197 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3198
3199         * Move silc_client_packet_send back to internal, added
3200           silc_client_send_packet, a bit simpler function for application.
3201           Affected files lib/silcclient/silcclient.h, client.c and
3202           client_internal.h.
3203
3204         * Moved the SilcClientEntry, SilcChannelEntry and
3205           SilcServerEntry to silcclient.h to be public and documented
3206           them for application.  Affected files are
3207           lib/silcclient/silcclient.h and idlist.h.
3208
3209 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3210
3211         * Fixed manual page installation patch by Ville Räsänen.
3212           USERS help page fix patch by Ville Räsänen
3213
3214         * Changed the silc_client_command_call interface to make
3215           the command call simpler for the application.  The library
3216           now handles the command line parsing, command finding and
3217           execution.  Application only needs to call the function
3218           with the command line.  Affected files are
3219           lib/silcclient/silcclient.h, command.[ch].
3220
3221         * Fixed silc_get_input to NULL-terminate the returned input.
3222           Affected file lib/silcutil/silcutil.c.
3223
3224         * Resolve the client's public key in JOIN command if the
3225           founder auth data is being requested but we don't know the
3226           client's public key.  Affected file silcd/command.c.
3227           Bug #53.
3228
3229 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3230
3231         * Print notify for server opers when backup router comes
3232           online.  Affected file silcd/server.c.
3233
3234         * Fixed the INVITE command to send the invite list in
3235           command reply.  Affected file silcd/command_reply.c.
3236
3237         * Fixed MOTD command reply sending.  Affected file
3238           silcd/command.c.
3239
3240         * UTF-8 decode the topic in TOPIC command reply and LIST
3241           command reply in Irssi SILC client.  Affected file is
3242           irssi/src/silc/core/client_ops.c.
3243
3244 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3245
3246         * Fixed the INVITE command to not crash Irssi SILC client
3247           when given without nickname argument.  AFfected file
3248           irssi/src/silc/core/client_ops.c.
3249
3250         * Fixed double free in WHOIS query on normal server when
3251           forwarding query to router.  Affected file is
3252           silcd/server_query.c.
3253
3254         * Fixed WATCH command reply handling on normal server which
3255           was missing altogether.  Affected file silcd/command_reply.c.
3256           Bug #44.
3257
3258 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
3259
3260         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
3261           Included yodl sources for each of these. Also modified
3262           Makefile.am prototype to install these files to proper
3263           locations. Updated CREDITS. Affected file Makefile.am.pre,
3264           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
3265           doc/silcd.8.
3266
3267 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3268
3269         * Added support for encrypted private key files.  Now
3270           passphrase must be provided when new key pair is created
3271           (can be empty though), and prompted when loading the
3272           private key.  Added support for loading the old-style
3273           non-encrypted private keys as well.  Affected files
3274           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
3275           SILC Server.
3276
3277         * Fixed silc_get_input to accept input on all terminals.
3278           Affected file lib/silcutil/silcutil.c.
3279
3280         * Moved the Irssi SILC client key loading and other stuff
3281           to be called after the arguments and UI is initialized.
3282           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
3283
3284         * Added -P option to Irssi SILC client which can be used
3285           to change the passphrase of the private key.  Affected
3286           file irssi/src/silc/core/silc-core.c.
3287
3288         * Added silc_change_private_key_passphrase apputil routine
3289           to lib/silcutil/silcapputil.[ch].
3290
3291 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3292
3293         * Fixed connection closing in client library to not crash.
3294           Moved the connection freeing totally to function
3295           silc_clinet_del_connection.  Affected file
3296           lib/silcclinet/client.c.
3297
3298 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3299
3300         * Changed includes/silcincludes.h to silcincludes.h.in to
3301           include configuration specific information.  The silcdefs.h
3302           is not included in to installation anymore (it's only
3303           compilation time header).
3304
3305 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3306
3307         * Moved the SilcClient and SilcClientConnection from client.h
3308           to the public lib/silcclient/silcclient.h.  Changed the
3309           structures a bit.
3310
3311 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3312
3313         * If version string in silc_clinet_alloc is NULL the library
3314           puts it automatically.  Affected file lib/silcclient/client.c.
3315
3316         * Changed the version strings from variables to #define's
3317           in includes/silcversion.h.
3318
3319 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3320
3321         * Added shared library complation support.
3322
3323 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3324
3325         * Added lib/silcutil/silcapputil.[ch] for application
3326           utility functions.  It includes routines for applications'
3327           convenience.  Added silc_create_key_pair, silc_show_public_key
3328           and silc_load_key_pair functions.
3329
3330 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3331
3332         * Send RESUME_CLIENT packet from router to backup routers
3333           to in resuming.  Affected file silcd/packet_receive.c.
3334
3335 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3336
3337         * In IDENTIFY command parsing, send all other IDs except
3338           Client IDs explicitly to router for resolving on normal
3339           server.  Also check that ID received in WHOIS command is
3340           always Client ID, others are not allowed.  Affected file
3341           silcd/server_query.c.
3342
3343         * Merged latest changes from irssi.org CVS.
3344
3345 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3346
3347         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
3348           Affected files irssi/src/silc/core/silc-core, silc-server.c.
3349
3350         * Fixed the heartbeat sending in Irssi SILC client.  Moved
3351           the silc_client_packet_send to silcclient.h for application
3352           usage.  Affected files lib/silcclient/client_internal.h
3353           lib/silcclient/silcclient.h.
3354
3355         * Fixed a bug in query resolving in server.  Used wrong
3356           variable in a for loop and crashed.  Affected file is
3357           silcd/server_query.c.
3358
3359         * Server constructs requested attributes only to locally
3360           connected clients.  Affected file silcd/server_query.c.
3361           Bug #36.
3362
3363         * Fixed a bug when sending resolving from router to server
3364           with requested attributes.  The constructed WHOIS command
3365           was incorrect.  Affected file silcd/server_query.c.
3366           Bug #38.
3367
3368         * Fixed Requested Attributes saving in WHOIS command reply.
3369           The length of the data buffer must be saved too.  Affected
3370           file silcd/command_reply.c.
3371
3372         * Update the client entry's servername after detaching is
3373           over.  Affected file silcd/packet_receive.c.  Bug #37.
3374
3375         * Resolve incomplete client entrys in CUMODE_CHANGE and
3376           CMODE_CHANGE notifys.  Affected file is
3377           lib/silcclient/client_notify.c.  Bug #42.
3378
3379 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3380
3381         * Fixed channel key packet processing bug on backup router
3382           during backup resuming protocol.  Affected file is
3383           silcd/packet_receive.c.
3384
3385         * Fixed memory leaks in server.  Affected files are
3386           silcd/server.c and silcd/packet_receive.c.
3387
3388         * Fixed packet decryption problem when backup router encrypted
3389           channel message with wrong key during backup resuming
3390           protocol.  Affected file silcd/packet_send.c.
3391
3392         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
3393           Toni Willberg (toniw@iki.fi)
3394
3395         * Changed the SilcCipher context to be private.  Changed the
3396           silc_cipher_get_iv to just return pointer to the IV.  Added
3397           silc_cipher_get_name to return the name of the cipher.
3398           Fixed code all around to support these changes.  Affected
3399           files are lib/silccrypt/silccipher.[ch], client library and
3400           server.
3401
3402 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3403
3404         * Fixed unaligned access in lib/silccore/silcattrs.c.
3405
3406         * Fixed libtool linking in lib/silcsim/Makefile.am.
3407
3408         * Fixed services attribute printing.  Affected files is
3409           irssi/src/silc/core/silc-queries.c.
3410
3411 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3412
3413         * Fixed a crashbug in incoming server accepting.  Affected
3414           file silcd/server.c.
3415
3416 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3417
3418         * Added automatically generated index to Toolkit Reference
3419           Manual.
3420
3421         * Added support for Postscript Toolkit Reference Manual.
3422
3423 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3424
3425         * Merged DISCONNECT fix, and autoconn port fix from Irssi
3426           CVS.
3427
3428 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3429
3430         * Added 'send_events' boolean argument to the function
3431           silc_schedule_set_listen_fd which sends the set events to
3432           the application explicitly if set to TRUE.  Default action
3433           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
3434           lib/silcclient/client_internal.h and silcd/server_internal.h.
3435
3436         * Added silc_compare_timeval to determine which time values
3437           is smaller.  Affected file lib/silcutil/silcutil.[ch].
3438
3439         * Added sort-of "Quality of Service" (QoS) support to
3440           SilcSocketConnection.  Data reception can be controlled with
3441           rate limit per second and/or read data length limit.
3442           Added silc_socket_set_qos.  Affected files are
3443           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
3444
3445         * Added the QoS configuration to SILC Server configuration
3446           file.  Affected files are silcd/serverconfig.[ch] and
3447           server.c.
3448
3449 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3450
3451         * Merged with irssi.org CVS.
3452
3453         * Failed OPER and SILCOPER authentications are now logged.
3454           Affected file silcd/command.c.  Bugs #25.
3455
3456 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3457
3458         * ROBODoc documented lib/silcutil/silcbuffer.h and
3459           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
3460           <ville.rasanen@iki.fi>.
3461
3462 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3463
3464         * Added support for auto-passphrase authentication from the
3465           config file during connecting which was not implemented
3466           yet.  Affected file irssi/src/silc/core/client_ops.c.
3467
3468         * Fixed a bug in authentication protocol failure handling which
3469           was processing wrong callback context.  Affected files
3470           are lib/silcclient/client.c and protocol.c.
3471
3472         * Fixed the /ATTR allow off to actually work.  Affected file
3473           is irssi/src/silc/core/silc-queries.c.
3474
3475         * Fixed the /ATTR -del to work.  Affected file is
3476           irssi/src/silc/core/silc-queries.c.
3477
3478 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3479
3480         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
3481
3482         * Fixed mask attribute adding in Irssi SILC client.  Affected
3483           file irssi/src/silc/core/silc-queries.c.
3484
3485 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3486
3487         * Added support for saving the requested attributes in
3488           WHOIS to directory.  Affected file is
3489           irssi/src/silc/core/silc-queries.c.
3490
3491 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3492
3493         * Added support for parsing VCard fields that do not have
3494           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
3495
3496         * Fixed a double free bug in hash table foreach function
3497           if the entry was deleted in the foreach callback.  Affected
3498           file lib/silcutil/silchashtable.c.
3499
3500 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3501
3502         * Added silc_attribute_get_verify_data to return the signature
3503           verification data for either user digital signature or
3504           server digital signature in Requested Attributes.  Affected
3505           files are lib/silccore/silcattrs.[ch].
3506
3507         * Added silc_vcard_alloc which is used to allocated dynamic
3508           SilcVCard context.  The silc_vcard_free now checks whether
3509           the context is dynamically allocated or not.  Affected files
3510           are lib/silcutil/silcvcard.[ch].
3511
3512 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3513
3514         * Periodically remove the NOATTR status from client entry
3515           so that the client may take the attributes in use even after
3516           server has resolved them unsuccessfully earlier.  Affected
3517           file silcd/server_query.c and idlist.h.
3518
3519         * Moved sha1hash and md5hash from client->internal to
3520           SilcClient for application usage.  Affected files are
3521           lib/silcclient/client.h and client_internal.h.
3522
3523         * Fixed attribute encoding and decoding bugs.  Affected
3524           files lib/silccore/silcattrs.[ch].
3525
3526         * Added ATTR command to Irssi SILC Client which is used to
3527           manage user's Requested Attributes sending and values for
3528           WHOIS command.  Affected files around Irssi SILC client.
3529
3530 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3531
3532         * Added silc_buffer_strformat which can be used to format
3533           strings into a buffer which size is automatically increased.
3534           Affected file lib/silcutil/silcbuffmt.[ch].
3535
3536         * Added implementation of VCard (RFC 2426) which can be used
3537           as part of Requested Attributes in WHOIS command.  Affected
3538           file lib/silcutil/silcvcard.[ch].
3539
3540 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3541
3542         * Some strncat -> silc_strncat changes our the core and
3543           client library.
3544
3545         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
3546           errors.  Added better error printing to SKE library.
3547           Affected files lib/silcske/silcske.c, silcske_status.h and
3548           payload.c.
3549
3550         * Save the PKCS key length even if only private key is set to
3551           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
3552
3553         * Fixed the usage of silc_pkcs_get_key_len since it returns the
3554           length in bits not in bytes.  Affected files are
3555           lib/silcske/silcske.c, lib/silccore/silcauth.c and
3556           silcd/server_query.c.
3557
3558 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3559
3560         * Added silc_attribute_payload_encode_data to directly encode
3561           the data into the attributes buffer.  Renamed function
3562           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
3563           Affected files are lib/silccore/silcattrs.[ch].
3564
3565         * silc_hash_table_find_foreach calls the foreach function now
3566           once even if the nothing was found with context set to NULL.
3567           Affected file lib/silcutil/silchashtable.[ch].
3568
3569         * Remove the RESOLVING flag from client entry after received
3570           the Requested Attributes from the client.  Fixed memory leak
3571           in client entry freeing.  Affected files silcd/server_query.c
3572           and idlist.c.
3573
3574         * Added Requested Attributes support into SILC Client Library.
3575           It is not able to send requested attributes in WHOIS command,
3576           and also receive and process requested attributes.  Added
3577           silc_client_attribute_[add|del] and silc_client_attributes_get
3578           functions.  Added also `ignore_requested_attributes' to the
3579           SilcClientParams to not use attributes in client.  Affected
3580           files are lib/silcclient/command.c, client_attrs.[ch],
3581           silcclient.h, client_internal and client.[ch].
3582
3583         * Changed the silc_client_get_client_by_id to support Requested
3584           Attributes, it takes them as argument now.  Affected file
3585           is lib/silcclient/silcclient.h, and idlist.c.
3586
3587         * Added -details option to WHOIS command in Irssi SILC Client
3588           to support the requested attributes.  By default it requests
3589           all attributes.  Affected file lib/silcclient/command.c and
3590           irssi/doc/help/in/whois.in.
3591
3592 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3593
3594         * Add also SERVICE attribute for server-constructed attribute
3595           data.  Also digitally sign the attributes and add
3596           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
3597           silcd/server_query.c.
3598
3599 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3600
3601         * Changed the silc_attribute_payload_encode to support list
3602           of attributes (function may be called several times to add
3603           a new attribute).  Removed the silc_attribute_payload_encode_list
3604           function.  The encoding function now also automatically encodes
3605           the data, so the caller does not need to do that.  Affected
3606           files lib/silccore/silcattrs.[ch].
3607
3608         * Added support for replying on behalf of the user to the
3609           Requested Attributes in WHOIS command in the server.  Affected
3610           file silcd/server_query.c.
3611
3612         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
3613           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
3614
3615 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3616
3617         * Don't swtich to become primary router if we are backup if
3618           decryption error has occurred.  Affected file silcd/server.c.
3619
3620         * Fixed a bug in backup router IP address comparison in
3621           silc_server_backup_get.
3622
3623           Save now also the port of the server/router and use that
3624           in comparison as well.  Affected file silcd/server_backup.c.
3625
3626         * Normal server now reconnects to backup router automatically
3627           if connection is lost to it.  Affected file silcd/server.c.
3628
3629 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3630
3631         * If packet processing fails (like integrity check fails)
3632           the connection is closed now.  Affected files are
3633           lib/silccore/silcpacket.c and silcd/server.c.
3634
3635 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3636
3637         * Fixed double free in RSA public key set function
3638           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
3639           Bug #29.
3640
3641 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3642
3643         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
3644           Added server_query.[ch] which provides one interface for
3645           querying information using all three commands.
3646
3647         * Changed all "typedef unsigned char" in core library to
3648           "typedef SilcUInt8".
3649
3650 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3651
3652         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
3653
3654         * Renamed silc_server_get_client_resolve to
3655           silc_server_query_resolve and moved to server_query.[ch].
3656
3657 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3658
3659         * Resumed client packet handling from server put the resumed
3660           client on wrong list on router and caused the client not
3661           be present on the network anymore.  Now fixed to put the
3662           client to correct list.  Affected file silcd/packet_receive.c.
3663
3664 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3665
3666         * Various cleanup in error message output in config parsing code
3667           and in server init code.  Fixed error log files containing
3668           too many newlines ('\n') in some situations.  Affected files are
3669           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
3670
3671 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3672
3673         * Use the reverse lookupped hostname in client internals
3674           instead of one user provided us as remote server name.
3675           Affected file lib/silcclient/client.c.
3676
3677 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3678
3679         * Added 'app_context' to silc_schedule_init.  It is an
3680           application specific context that is delivered to application
3681           in task callback functions.  Affected files are
3682           lib/silcutil/silcutil.[ch].
3683
3684         * The hb_context in SilcSocketConnection is not freed
3685           automatically anymore (application must free it).  Freeing
3686           it automatic is inconsistent.  Affected files are
3687           lib/silcutil/silcsockconn.[ch].
3688
3689 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3690
3691         * Added support for removing explicitly added client connections
3692           in rehash and closing the client connections if they were
3693           unconfigured in the rehash.  Affected file silcd/server.c.
3694
3695         * Added support for aborting automatically pending commands
3696           that never receives the reply (to avoid memory leaks).
3697           Added also silc_server_command_pending_timed to set the
3698           specific timeout for pending command.  Affected files are
3699           silcd/command[_reply].[ch].
3700
3701         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
3702           specs and lib/silccore/silcstatus.h.
3703
3704 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3705
3706         * Changed the silc_get_time to accept time value as argument
3707           or if zero is sent return current local time.  Affected
3708           file lib/silcutil/silcutil.[ch].
3709
3710         * Added STATS command to client library and Irssi SILC client.
3711           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
3712
3713 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3714
3715         * Assure that channel key is set before sending it.  May
3716           crash server otherwise.  Affected file silcd/packet_send.c.
3717
3718 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3719
3720         * Assure that endless loop cannot happen with detached client
3721           resolving on normal server.  Added idlist status
3722           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
3723           silcd/idlist.h and silcd/packet_receive.c.
3724
3725 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3726
3727         * Incoming file transfer request cannot use same session as
3728           the sending session.  This can happen when sending file to
3729           yourself.  Crashed the client on quit.  Affected file
3730           lib/silcclient/client_ftp.c.  Bug #24.
3731
3732 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3733
3734         * Implemented the draft-riikonen-precense-attrs draft and
3735           the Attribute Payload into the lib/silccore/silcattrs.[ch].
3736
3737 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3738
3739         * Distribute the SERVER_SIGNOFF notify also to local backup
3740           routers from the primary router.  The backup router may not
3741           have the signing of local server directly connected and need
3742           to know about the signoff.  Affected file silcd/server_util.c.
3743
3744         * Use the primary router as the origin of the locally connected
3745           server when it is disconnecting from the backup router since
3746           that's where it really is coming from.  Now the clients from
3747           the disconnecting server are removed correctly and "shadow"
3748           clients are not left to the backup router.  Affected file
3749           silcd/server.c.
3750
3751 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3752
3753         * If normal server is standalone and found existing but disabled
3754           channel, do not re-create the channel since it creates
3755           duplicate same channels.  Affected file silcd/server.c.
3756
3757         * Added anonymous client connections support to server.  New
3758           "anonymous" configuration option to ConnectionParams section
3759           added.  If set to true, the username and hostname information
3760           of the client will be scrambled and anonymous user mode is
3761           set automatically to the user.  Affected files are
3762           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3763
3764 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3765
3766         * In JOIN notify handling, mark that the cache entry of the
3767           client cannot be expired.  Can cause crashes on normal
3768           server (asserts client->channels).  Affected file is
3769           silcd/packet_receive.c.
3770
3771         * From now on distribution versions are used as protocol versions
3772           instead of by default using the Toolkit base version as protocol
3773           version.  Affected file prepare.
3774
3775         * Do not set the locally resolved hostname for local client
3776           entry but take what server sends.  This way the real hostname
3777           is showed in WHOIS for yourself.  Affected file is
3778           lib/silcclient/idlist.c and lib/silcclient/client.c.
3779
3780         * Resolve local info with IDENTIFY when connecting to server.y
3781
3782 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3783
3784         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3785           for implied search (not needed on platforms which has native
3786           pthreads library).  Use --without-pthreads to disable threads.
3787           Affected file is configure.in.pre
3788
3789         * Fixed --with-iconv on platforms which need to bypass (broken)
3790           native iconv().  Affected file is configure.in.pre
3791
3792 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3793
3794         * Moved -C option parsing in Irssi SILC client at same time
3795           as other options.  The UI was initialized earlier and caused
3796           problems on command line.  Bug #16.  Affected file is
3797           irssi/src/silc/core/silc-core.c.
3798
3799 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3800
3801         * Added global variable silc_log_timestamp that tells silclog
3802           wether to print or not the timestamp in the logging files.
3803           Affected file lib/silcutil/silclog.[ch].
3804
3805         * Added silcd configuration option Timestamp in the Logging
3806           section.  Affected file silcd/serverconfig.[ch],
3807           doc/example_silcd.conf.in.
3808
3809 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3810
3811         * Fixed fingerprint checking to check for entirely empty
3812           fingerprint instead of two first bytes when determining
3813           if it is set.  Bug #18.  Affected file silcd/command.c.
3814
3815         * Fixed duplicate PKCS name registering to not allow it.
3816           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3817
3818 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3819
3820         * Conditionalize non-gcc compiler optimizations for various
3821           platforms, enable those commented out.  Cleanups.
3822           Affected file lib/silcmath/mpi/configure.in
3823
3824 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3825
3826         * silc_rng_exec_command() left zombie processes if command
3827           didn't generate any output.  Affected file
3828           lib/silccrypt/silcrng.c
3829
3830 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3831
3832         * Rewrote iconv checking, introduce --with-iconv for systems
3833           which rely on libiconv.  Check if iconv() provided by libc
3834           is good enough, otherwise demand libiconv.  Affected file
3835           configure.in.pre
3836
3837 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3838
3839         * Search for ldopen() also in libc.  This enables SIM support
3840           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3841           file configure.in.pre
3842
3843 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3844
3845         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3846           This fixes prepare on *BSD systems.  Affected file
3847           configure.in.pre
3848
3849 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3850
3851         * More fixed for not having purge timeout for global clients
3852           that are on channel.  Affected files silcd/command_reply.c
3853           and server_util.c.
3854
3855         * Fixed the rekey protocol to work with backup router connections.
3856           Rekey packets are now allowed on disabled connections as
3857           well.  Affected files silcd/packet_send.c and server.c.
3858
3859         * Do not switch to be as backup router when shutting down and
3860           closing the primary connection.  Affected file silcd/server.c.
3861
3862         * Fixed memory leaks in backup router deleting.  Added
3863           silc_server_backup_free to free all data during shutdown of
3864           server.  Affected files silcd/server_backup.[ch].
3865
3866 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3867
3868         * Do not process commands if the sock->user_data is NULL.
3869           Affected file silcd/command.c.
3870
3871 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3872
3873         * Fixed buffer overflow and security problems (loosing bits
3874           in CFB encryption) in SILC RNG.  Problems reported by
3875           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3876
3877 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3878
3879         * Added yet more checks that client is not expired on global
3880           list if it is on channels.  Affected file is
3881           silcd/command_reply.c.
3882
3883 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3884
3885         * Merged c0ffee's MIME signal patch which adds support for
3886           sending also MIME messages in Irssi SILC Client, and handling
3887           received MIME messages in a signal (and perhaps doing something
3888           to non-textual MIME messages).
3889
3890 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3891
3892         * Fixed pending command deletion in server and client library
3893           to check the whole list instead of breaking after first found.
3894           The affected files are silcd/command.[ch] and
3895           lib/silcclient/command.[ch].
3896
3897 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3898
3899         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3900           secret or private, otherwise it's possible to find out
3901           whether a secret channel exists or not.  Affected file
3902           silcd/command.c.
3903
3904         * If CMODE change fails during the mode setting, assure that
3905           the old mode mask is set for the channel back.  Affected
3906           file silcd/command.c.
3907
3908         * Fixed passphrase saving on +a channel on normal server
3909           after successful JOIN command.  Affected file silcd/command.c.
3910
3911 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3912
3913         * Remove server/router operator privileges in DETACH command,
3914           since it's possible to resume to server where these
3915           privileges would not be allowed for the client.  Affected
3916           file silcd/command.c.
3917
3918         * Do not set to wait for backup in rehash of the server.
3919           Affected file silcd/server.c.
3920
3921         * Do not check listener sockets when counting how many
3922           socket connections we have.  Affected file is
3923           silcd/server_util.c.
3924
3925         * Do not announce disconnected clients that are remaining
3926           in history (for WHOWAS).  This is because SIGNOFF notify
3927           for these has been sent earlier already.  Affected file
3928           silcd/server.c.
3929
3930 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3931
3932         * Buffer overflow with CUMODE command's mode->mode character
3933           conversion.  Reported by Ville Räsänen.  Affected file
3934           lib/silcutil/silcutil.c.
3935
3936 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3937
3938         * Allow heartbeat packets to go disabled connections anyway.
3939           Affected files silcd/server.c and silcd/packet_send.c.
3940
3941         * Do not broadcast New Channel packets with List flag set
3942           in the packet to backup routers.  The router must check
3943           for the correctness of the packets before sending them.
3944           It is possible that router will have enforce Channel ID
3945           change and this would cause desync in the backup router.
3946           Affected file silcd/packet_receive.c.
3947
3948         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3949           are handled in list parsing.  They are not list packets
3950           anymore.  Affected file silcd/packet_receive.c.
3951
3952 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3953
3954         * Stop waiting for backup router through the timeout, not
3955           directly after backup router has arrived.  Affected file
3956           silcd/server.c.
3957
3958         * Do not re-create channel keys and send them when removing
3959           clients in server shutdown.  Affected files are
3960           silcd/server_internal.h and silcd/server_util.c.
3961
3962         * Notify distribution to backup routers was missing from
3963           the silc_server_send_notify_dest function which caused
3964           desyncing problems with backup router.  Affected file is
3965           silcd/packet_send.c.
3966
3967         * The client's channel removing was working wrong on
3968           backup router.  It assumed that it doesn't know global
3969           information but backup router does know.  For this reason
3970           it could remove channel when it wasn't supposed to do that.
3971           Affected file silcd/server.c and silcd/server_util.c.
3972
3973 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3974
3975         * Stop for a couple seconds after badkup router has become
3976           primary router.  Affected file silcd/server.c.
3977
3978         * Added silc_server_remove_servers_by_server, which is used
3979           to remove servers originated from some other server.  Also
3980           clients of those servers can be removed too.  Affected file
3981           silcd/server_util.[ch].
3982
3983         * When removing clients after a server has signed of remove
3984           also all servers behind that server (unless they are known
3985           to be available locally), and send SERVER_SIGNOFF for each
3986           of the server separately.  Also the signed off clients are
3987           sent now separately per signed off server.  The affected files
3988           are silcd/server.c and silcd/server_util.[ch].
3989
3990         * All servers added with silc_idlist_add_server must always
3991           have both "router" and "connection" pointers set.  Otherwise,
3992           bad server entries may be left around in the cache.
3993           Affected file silcd/command_reply.c.
3994
3995         * Do not create the channel key in NEW_CHANNEL packet
3996           processing if the channel is empty.  Affected file
3997           silcd/packet_receive.c.
3998
3999         * Completed backup router support for standalone routers.
4000           Supports also servers in the cell that do not use the backup
4001           at all.
4002
4003 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4004
4005         * Fixed a bug in silc_string_regexify which did not add '^'
4006           at the start of each string, and thus the matching was
4007           not explicit.  For example ban list iikone@*!*@* would
4008           match also "priikone", which is wrong, it would have to be
4009           *iikone@*!*@* to match also "priikone".  Affected
4010           file lib/silcutil/unix/silcunixutil.c.
4011
4012 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4013
4014         * Enable all local server connections before updating client
4015           caches when we've become backup router.  Otherwise, signoff
4016           packets may not reach the clients.  Affected files are
4017           silcd/server.c and silcd/server_util.[ch].
4018
4019         * Fixed a bug in version string parsing which could crash
4020           the program with specially formatted version string.
4021           Bug reported and patch provided by Ville Räsänen.  Affected
4022           file lib/silcutil/silcutil.c.
4023
4024         * Handle the disconnection immediately when DISCONNECT
4025           packet is received in server.  Affected file silcd/server.c.
4026
4027         * Primary router now waits a short time (10 seconds) for
4028           backup router connection before accepting any other
4029           connection (except local).  Affected file silcd/server.c,
4030           serverconfig.[ch].
4031
4032         * Fixed a crash in client libary in NICK_CHANGE notify when
4033           NICK_CHANGE arrived for client entry we are resolving
4034           currently.  Affected file lib/silcclient/client_notify.c.
4035
4036         * Call the sconn->callback completion even if error had
4037           occurred.  Start reconnecting always if connection to
4038           primary router fails during backup router protocol.
4039           Affected files silcd/server.c and server_backup.c.
4040
4041 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4042
4043         * Added functions silc_server_send_opers and
4044           silc_server_send_opers_notify to send packets stricly
4045           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
4046           to send variable argument notify to operators.
4047           Affected files silcd/packet_send.[ch] and silcd/server.h.
4048
4049         * Removed UMODE rights checking with UMODE_CHANGE notify.
4050           Affected file silcd/packet_receive.c.
4051
4052         * Server/router operator now receives notify when network
4053           switches to backup router and when it resumes the use of
4054           primary router.  Affected file silcd/server.c and
4055           silcd/server_backup.c.
4056
4057         * Fixed the updating of client information after backup
4058           resuming protocol is over; update all except local clients
4059           to the new primary router.  The affected file is
4060           silcd/server_util.c.
4061
4062         * Added support for closing active connections in rehash
4063           that were unconfigured by the user.  Supports currently
4064           closing server and router connections.  Affected file
4065           silcd/server.c.
4066
4067         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
4068
4069 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4070
4071         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
4072           is NULL since seems that on some platforms NULL is allowed
4073           and on some it's not.  Fallback encoding is used instead.
4074           Affected file lib/silcutil/silcstrutil.c.
4075
4076         * Fixed statistics updating for incoming server connection
4077           which could cause problems when re-connecting.  Affected
4078           file silcd/server.c.
4079
4080         * Preliminary backup router support for standalone router
4081           added.  Affected files in silcd/.
4082
4083         * Mark server connections in backup router disabled before
4084           and after backup protocol.  Affected file is
4085           silcd/server_backup.c.
4086
4087         * Added support for reconnecting to remote server connection
4088           even if the protocol fails, and if the configuration wants
4089           us to keep trying to connect anyway.
4090
4091           Server connection is not allowed to backup router if
4092           backup router does not have connection to primary router yet.
4093
4094           Affected file is silcd/server.c.
4095
4096 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4097
4098         * Added silc_client_udpate_server function to update changed
4099           server info.  Affected file lib/silcclient/idlist.[ch].
4100
4101         * Added check for server entries that are being resolved when
4102           notify is received.  If being resolved, handle the received
4103           notify only after it's resolved so that all notifys are
4104           handled in same order as received from the server.
4105
4106           Added similar resolver check to channel entries.  Every
4107           notify that cause resolving of any information that affects
4108           channel entry marks the channel entry in waiting state.
4109           After whatever resolving is over the waiters are signalled
4110           and only then the notifys are handled in the same order
4111           as delivered from the server.
4112
4113           Affected files are lib/silcclient/idlist.[ch], and
4114           client_notify.c.
4115
4116         * Fixed KILLED notify handling in normal server.  Affected
4117           file silcd/packet_receive.c.
4118
4119         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
4120           is locally connected, or was locally connected (but may
4121           be detached and connection is not active).  Added also
4122           SILC_IS_LOCAL for checking this status.  Affected files
4123           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
4124           silcd/server.c and silcd/server_internal.h.
4125
4126 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4127
4128         * Don't send or handle TOPIC_SET if topic is already set and
4129           is same as being set.  Affected files silcd/command.c and
4130           silcd/packet_receive.c.
4131
4132         * Fixed CMODE change rights checking to work correctly when
4133           removing modes by operator.  Affected file is
4134           silcd/server_util.c.
4135
4136         * Fixed some handling with New Channel packet in router and
4137           fixed some CMODE_CHANGE notify handling in server and router.
4138           Affected file is silcd/packet_receive.c.
4139
4140         * Changed "disconnect" client operation to include the
4141           reason of the disconnection and optional disconnection
4142           message.  Affected file lib/silcclient/silcclient.h.
4143
4144         * Made the compilation of lib/contrib/ stuff conditional.
4145           Affected files configure.in.pre, lib/contrib/Makefile.am.
4146
4147 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4148
4149         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
4150           to the sender of the notify too, to avoid situation where two
4151           notifys are in the network at the same time going to oppsite
4152           directions.  Affected file silcd/packet_receice.c.
4153
4154 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4155
4156         * Delete the client from channel even if the cilent->id is
4157           NULL.  It was possible that client was deleted without
4158           removing from channels (theoretically at least).  Affected
4159           file silcd/server.c and silcd/server_util.c.
4160
4161         * Free the client data too when resuming is not successful.
4162           Affected file silcd/packet_receive.c.
4163
4164         * Merged some code from c0ffee's silc-plugin.  Affected files
4165           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
4166
4167         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
4168           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
4169           to the primary router connection, the other one returns
4170           TRUE if packet must be broadcasted to network.
4171
4172         * All notifys that are destined to primary router (to network)
4173           are now automatically sent to backup routers even if the
4174           router is standalone (and has backup router).  Affected files
4175           in silcd/.
4176
4177         * Added --without-irssi and --without-silcd configuration
4178           options for disabling the compilation of these applications.
4179           Affected file configure.in.pre and prepare.
4180
4181 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4182
4183         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
4184           UTF-8 encoding and decoding.  Added also new encodings
4185           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
4186
4187           Added also SILC_STRING_LANGUAGE which is language and charset
4188           specific encoder and decoer for those platforms that support
4189           iconv().  It can convert the UTF-8 to and from the locale
4190           specific character set.
4191
4192           Affected file lib/silcutil/silcstrutil.[ch].
4193
4194         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
4195
4196         * Added function silc_get_command_name to the file
4197           lib/silcutil/silcutil.[ch].
4198
4199         * Improved the server debug output a bit.  Affected files are
4200           in silcd/.
4201
4202 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4203
4204         * Save the channel passphrase when received succesful JOIN
4205           command reply from router, on normal server.  Otherwise
4206           joinig +a channels from normal server is not possible.
4207           Affected file silcd/command.c.
4208
4209         * Fixed a bug in TOPIC_SET notify handling.  The notifier
4210           may be other than client too, like server or channel.
4211           It expected it to always be only client and ignored the
4212           notify.  Affected file silcd/packet_recieve.c.
4213
4214         * Removed some (unnecessary) debug printing from
4215           lib/silccore/silcid.c and lib/silccore/silcargument.c.
4216
4217         * Do not force CMODE_CHANGE when server is announcing new
4218           channel.
4219
4220           Router announces stuff only after server reannounces channel
4221           after CHANNEL_CHANGE notify.
4222
4223           These fixes optimizes the announcing procedure, and perhaps
4224           fixes some problems too.  Affected file silcd/packet_receive.c.
4225
4226         * Fixed SERVER_SIGNOFF sending to local clients.  It was
4227           totally broken and sent the notify to all local clients,
4228           instead of only to those that was on same channel as the
4229           signing off clients.  Affected file silcd/server_util.c.
4230
4231         * Added -D option to server.  It can be used to give debug
4232           level.  The levels are from 0 - 99, and are predefined for
4233           smooth server debugging.  (see silcd.c for the predefined
4234           levels).  Affected file silcd/server.c.
4235
4236 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4237
4238         * Fixed a bug in Irssi SILC client to close the connection
4239           properly when disconnecting from server.  Affected file
4240           irssi/src/silc/core/client_ops.c.
4241
4242 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4243
4244         * When authenticating as founder during JOIN command, check
4245           that the one authenticating becomes the only founder on the
4246           channel.  Affected file silcd/command.c.
4247
4248         * Better checking for founder mode setting when CUMODE_CHANGE
4249           notify is received.  Affected file silcd/packet_receive.c.
4250
4251         * Close all connections when shutting down the server by sending
4252           DISCONNECT packet.  Close all listeners too when shutting
4253           down the server.  Affected file silcd/server.c.
4254
4255         * Handle DISCONNECT packet correctly in client library by
4256           calling the "disconnect" client operation.  Affected file
4257           lib/silcclient/client.c.
4258
4259         * Handle local errors correctly during resuming.  Affected
4260           file lib/silcclient/client.c.
4261
4262 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4263
4264         * The log file is not dupped internally anymore in
4265           lib/silcutil/silclog.c.  Fixed memory leaks too.
4266
4267         * The scheduler now dispatches all pending timeout tasks
4268           when it is uninitialized with silc_schedule_uninit.
4269           Affected file lib/silcutil/silcschedule.c.
4270
4271 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4272
4273         * Added --enable-stack-trace option to configure.  Added
4274           memory allocation stack trace support.  Added files
4275           lib/silcutil/stacktrace.[ch].  Affected files are
4276           lib/silcutil/silcmemory.[ch].
4277
4278         * Fixed memory leaks from libraries and server.  Affected
4279           files around the tree.
4280
4281         * Reverted back a fix made to CUMODE which broke it.
4282           Affected file silcd/command.c.
4283
4284 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4285
4286         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
4287           core library, and implemented it.  All textual messages SHOULD
4288           use this flag and the message MUST be UTF-8 encoded.
4289           All text messages sent by Irssi SILC client are now UTF-8
4290           encoded (regardless whether the terminal supports UTF-8 or not).
4291           Affected files are lib/silccore/silcchannel.h,
4292           irssi/src/silc/core/silc-servers.c, silc-channels.c and
4293           client_ops.c.
4294
4295 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4296
4297         * Added lots of new statistics updating that was missing from
4298           the server and router code.  Affected files in silcd/.
4299
4300         * Sending SIGUSR1 signal to server now dumps the current
4301           server statistics into /tmp directory.  Affected file is
4302           silcd/silcd.c.
4303
4304         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
4305           the SILC Hash Interface also.  Added new functions
4306           silc_hash_get_name, silc_hash_init, silc_hash_update and
4307           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
4308
4309 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4310
4311         * Added some better info printing for client during connecting.
4312           Affected file silcd/server_util.c.
4313
4314         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
4315           to silence a user on a channel.  Affected files are
4316           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
4317           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
4318           and silcd/packet_receive.c.
4319
4320         * Fixed a fatal bug in handling of malformed command payload.
4321           Affected file silcd/command.c.
4322
4323         * Fixed a double free when announcing channel users to router.
4324           Affected file silcd/server.c.
4325
4326         * After successful authentication to channel founder mode, check
4327           that there isn't anyone else with founder mode on the channel.
4328           The one that authenticated will become founder and anyone
4329           else is demoted.  Affected file silcd/command.c.
4330
4331         * Added error printing of any error that has occurred during
4332           any command in client library.  Affected file is
4333           irssi/src/silc/core/client_ops.c.
4334
4335         * Removed some error printing from the client library and left
4336           it for the application to worry (from the error status it
4337           receives in 'command' client operation.  Affected file is
4338           lib/silcclient/command.c.
4339
4340 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4341
4342         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
4343           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
4344           Starting key agreement with itself is denied.  Affected file
4345           is lib/silcclient/client_keyagr.c.
4346
4347         * Fixed some error checkings from the SFTP library which caused
4348           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
4349           and lib/silcsftp/sftp_util.c.
4350
4351         * Added new "debug" and "debug_string" settings to Irssi SILC
4352           client which can be used to print runtime debugging on the
4353           Irssi's screen.  Available when compiled with --enable-debug
4354           option.  Affected file irssi/src/silc/core/silc-core.c.
4355
4356 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
4357
4358         * Fixed a missing variadic parameter in a function call that
4359           caused server crash when a non-allowed connection arrived.
4360           Reported by Richard Becker.  Affected file silcd/server.c.
4361
4362 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4363
4364         * Added WATCH list sending to backup routers from router.
4365           The WATCH command is sent by the router to the backup
4366           router.  Affected file silcd/command.c.
4367
4368         * Mark the backup_router flag for RouterConnection entry
4369           if the backup router stuff is defined in the config file.
4370           Affected file silcd/serverconfig.c.
4371
4372         * Fixed some backup data sending around the code to work better
4373           if the router is standalone router.  Not all places were fixed.
4374           Affected file silcd/packet_receive.c, silcd/packet_send.c,
4375           silcd/server.c.
4376
4377         * Fixed the router connecting when connecting to multiple
4378           routers.  It ignored every other router except the first
4379           one.  Affected file silcd/server.c.
4380
4381 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4382
4383         * Made the private key generation after expiration optional.
4384           If not created after expiration the old key will re-expire
4385           at a later time (and thus key pair is not necessary to
4386           change).  Affected file irssi/src/silc/core/clientutil.c.
4387
4388 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4389
4390         * The length arguments in bind() and connect() were wrong
4391           and fixed now to used SIZEOF_SOCKADDR in the
4392           lib/silcutil/unix/silcunixutil.c.
4393
4394 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4395
4396         * Fixed detach timeout handling to use Client ID and not
4397           the actual client entry which may be freed in the callback.
4398           Affected file silcd/command.c.
4399
4400 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4401
4402         * Merged c0ffee's multiple interface support patch.
4403           Affected files in silcd/.
4404
4405 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4406
4407         * Cleanup keys properly.  Affected file is
4408           irssi/src/silc/core/clientutil.c.
4409
4410 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4411
4412         * Display the user mode on the status bar.  Affected file
4413           irssi/src/silc/core/silc-expandos.c.
4414
4415 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4416
4417         * If private message key is not set, but the flag is set in
4418           the packet, ignore the packet since it cannot be decrypted.
4419           Affected file lib/silcclient/client_prvmsg.c.
4420
4421 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4422
4423         * When resuming client, remove the old client entry from
4424           the watcher list too.  Affected file silcd/packet_receive.c.
4425
4426         * Do not allow normal server to force founder mode away
4427           from router if the founder mode is already set.  Affected
4428           file silcd/packet_receive.c.
4429
4430         * Remove the client entry with watch notify types with short
4431           timeout, and not directly, so that other notifys can be
4432           retrieved too.  Affected file lib/silcclient/client_notify.c.
4433
4434         * Display notification about data messages that cannot be
4435           displayed.  Affected files irssi/src/silc/core/client_ops.c,
4436           irssi/src/fe-common/silc/module-formats.[ch].
4437
4438 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4439
4440         * Fixed the CHANNEL_CHANGE notify handling in client libary
4441           to not use freed memory.  Affected file is
4442           lib/silcclient/client_notify.c.
4443
4444         * Fixed CUMODE_CHANGE notify handling in server.  Affected
4445           file silcd/packet_receive.c.
4446
4447         * Fixed USERS command to support empty channels.  Affected
4448           file silcd/command.c.
4449
4450 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4451
4452         * Allow multiple identical pending commands to be registered
4453           in client library.  Affected file is lib/silcclient/command.c.
4454
4455         * Call the completion for resolving client information only
4456           after all resolvers has finished.  This fixes a crash in
4457           the client.  Added support for checking when the resolvers
4458           are finished.  Affected file is lib/silcclient/idlist.c.
4459
4460         * Wait by default 3 seconds before reconnecting to the server
4461           after being disconnected.  Makes the /detach command a bit
4462           more usable.
4463
4464 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4465
4466         * Check the watcher list before sending signoff notifys
4467           when closing client connection.  Affected file is
4468           silcd/server.c.
4469
4470         * Added better CMODE command rights checking.  Affected file
4471           silcd/server_util.c.
4472
4473 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4474
4475         * Fixed watcher list checking during server signoff.  It
4476           crashed the server.  Affected file silcd/server_util.c.
4477
4478         * The JOIN command reply returns now the founder's public
4479           key.  Affected file is silcd/command.c.
4480
4481         * Announce the channel mode, and the mode properties with
4482           CMODE_CHANGE notify.  Affected file silcd/server.c.
4483
4484         * Mark new channels by default disabled, untill at least
4485           one user joins the channel.  Affected file is
4486           silcd/packet_receive.c.
4487
4488 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4489
4490         * The nickname argument to watch notify can be optional.
4491           Fixes a crash in server.  Affected file silcd/packet_send.c.
4492
4493         * Remove the client entry from cache if the WATCH notify type
4494           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
4495           lib/silcclient/client_notify.c.
4496
4497         * Check the watcher list before and after changing nickname
4498           when the NICK_CHANGE notify is received.  Affected file is
4499           silcd/idlist.c.
4500
4501         * Fixed a crash in OPER and SILCOPER command sending.  Empty
4502           passphrase caused the crash.  Affected file is
4503           lib/silcclient/command.c.
4504
4505 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4506
4507         * Merged with Irssi CVS for Irssi SILC client.
4508
4509 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4510
4511         * Completed the protocol specifications.
4512
4513 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4514
4515         * Merged with Irssi CVS for Irssi SILC client.
4516
4517 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4518
4519         * Added the founder's public key delivery to the
4520           CUMODE_CHANGE notify type as well.  Updated the protocol
4521           specs and the code.  Affected files are silcd/packet_send.[ch],
4522           silcd/packet_receive.c and silcd/command.c.
4523
4524 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4525
4526         * Added silc_pkcs_public_key_copy function into the
4527           lib/silccrypt/silcpkcs.[ch].
4528
4529         * Remove the `iv' from the SilcChannelEntry since we can
4530           live without it.  Affected files are silcd/idlist.h and
4531           silcd/packet_receive.c.
4532
4533         * Added support for sending the founder's public key in
4534           the CMODE_CHANGE notify packet in the server.  Affected
4535           files are silcd/packet_send.[ch], silcd/packet_receive.c,
4536           silcd/command.c and silcd/server.c.
4537
4538         * Changed the FOUNDER_AUTH authentication to use only
4539           public key authentication as defined by new protocol
4540           specs.  Passphrase authentication with that mode cannot
4541           be used anymore.  It is now possible to reclaim founder
4542           mode from any server in the network.  Affected files are
4543           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
4544
4545         * Added permanent channels support by making the channel
4546           permanent when FOUNDER_AUTH mode is set on the channel.
4547           The channel will not be destroyed even if channel is empty
4548           when that mode is set.  Protocol TODO #17.  Affected
4549           files are silcd/server.[ch], server_util.[ch],
4550           silcd/command.c, silcd/packet_receive.c and
4551           lib/silcclient/command.c.
4552
4553 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4554
4555         * Added reference counter to the command reply context in
4556           the client library.  Affected files are
4557           lib/silcclient/command_reply.[ch].
4558
4559 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4560
4561         * Fixed rekey protocol with PFS in the client library.
4562           Affected file is lib/silcclient/protocol.c.
4563
4564         * Added support for list of errors in client library
4565           command reply handling.  Affected file is
4566           lib/silcclient/command_reply.c.
4567
4568         * Defined that the WHOIS and IDENTIFY commands can send
4569           list of errors.  Updated the protocol specs.  Protocol
4570           TODO #2.
4571
4572         * Added support for sending list of errors to WHOIS and
4573           IDENTIFY commands in server.  Added support for receiving
4574           list of errors in server.  Affected files are
4575           silcd/command.c and silcd/command_reply.c.
4576
4577         * Fixed client info resolving on LEAVE command in client
4578           library to not crash.  Affected file is
4579           lib/silcclient/client_notify.c.
4580
4581 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4582
4583         * Defined that the NICK command replies with thew changed
4584           nickname too, to make the nickname changing simpler at
4585           the client's end.  Updated protocol specs and the code
4586           in client and server.  Affected files are
4587           silcd/command.c, lib/silcclient/command_reply.c and
4588           lib/silcclient/command.c.
4589
4590 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4591
4592         * Added `Compressed' packet flag to indicate that the packet
4593           payload is compressed by the sender.  Updated the protocol
4594           specs and the core library.  The compression still is not
4595           implemented in the sources.  Affected file is
4596           lib/silccore/silcpacket.h.
4597
4598 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4599
4600         * Remove pending command callbacks also if the connection
4601           to the server is destroyed.  Affected file is
4602           lib/silcclient/client.c.
4603
4604 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4605
4606         * Added new QUIET channel user mode that can be used to
4607           quiet a user in a channel.  Updated the protocol specs but
4608           it wasn't implemented yet.  Protocol TODO #27.  Affected
4609           file is lib/silccore/silcmode.h.
4610
4611 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4612
4613         * Added BLOCK_INVITE user mode to be able to block incoming
4614           invite notifications.  Protoocol TODO #26.  Affected files
4615           are lib/silccore/silcmode.h, lib/silcclient/command.c and
4616           silcd/command.c.
4617
4618         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
4619           the protocol specs and the code.  Affected file is
4620           lib/silccrypt/silcpkcs.c.
4621
4622 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4623
4624         * Disconnect Payload includes now the status type.  Updated
4625           the protocol specs and the code.  Protocol TODO #25.
4626           Affected files are silcd/server.c, lib/silcclient/client.c.
4627
4628         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
4629           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
4630           Moved the silc_client_command_status_messages table to the
4631           lib/silcutil/silcutil.c and added new funtion
4632           silc_get_status_message, which deprecates function
4633           silc_client_status_message.  Affected files are
4634           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
4635           lib/silcutil/silcutil.[ch].
4636
4637 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4638
4639         * Defined that the nickname hash in Client ID MUST be from
4640           lowercase nickname.  This effectively changes nicknames in
4641           SILC to case-insensitive.  Updated the protocol specs and
4642           the code.  Affected files are lib/silcutil/silcutil.[ch],
4643           silcd/serverid.c, and silcd/idlist.c.
4644
4645         * Added new channel user modes BLOCK_MESSAGES_USERS and
4646           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
4647           code.  Affected files are lib/silccore/silcmode.h,
4648           lib/silcclient/command.c, and silcd/packet_send.c.
4649
4650         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
4651           specs and code.  Affected file lib/silccore/silcstatus.h.
4652
4653         * Added support for watch list.  It is possible to add nicknames
4654           to be watched, and when they come to network, leave network
4655           or user mode changes the watcher will be notified of this
4656           change.  Added SILC_COMMAND_WATCH command, added new
4657           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
4658           notifications.  Updated the protocol specs and implemented
4659           this to library, client and server.  Protocol TODO #21.
4660           Affected files are lib/silccore/silccomand.h,
4661           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
4662           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
4663           silcd/packet_send.[ch], silcd/packet_receive.c, and
4664           irssi/src/silc/core/client_ops.c.
4665
4666         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
4667           somebody watching you.  Updated the protocol specs and the
4668           code.  Affected files are lib/silccore/silcmode.h, and
4669           lib/silcclient/command.c.
4670
4671 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4672
4673         * Added service support to SILC protocol.  Added new command
4674           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
4675           core library.  Services are not implemented in server or
4676           client for now.  Protocol TODO #20.  Affected files are
4677           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
4678
4679         * Added SilcStatus argument to `command' client operation
4680           to return the error status when command sending fails
4681           locally.  Changed all command in client library to return
4682           correct command status.  Affected files are
4683           lib/silcclient/command.c, lib/silcclient/silcclient.h and
4684           irssi/src/silc/core/client_ops.c.
4685
4686 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4687
4688         * Added silc_mime_parse function to parse MIME headers.
4689           Affected files are lib/silcutil/silcstruti.[ch].
4690
4691         * Added MIME header parsing in Irssi SILC Client.  It displays
4692           all textual MIME objects, others it ignores.  Affected file
4693           is irssi/src/silc/core/clien_ops.c.
4694
4695 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4696
4697         * Fixed a bug in the pid writing function, which couldn't be
4698           written in a root-owned directory.
4699
4700 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4701
4702         * Defined that channel message to unknown Channel ID must
4703           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
4704           Updated the protocol specs and the code in server.  The
4705           affected file is silcd/packet_receive.c.
4706
4707 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4708
4709         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
4710           that it is used to send error notifys if error occurs during
4711           some SILC packet processing, except commands.  The error
4712           types are same as for command reply types.  Defined that
4713           if private message is sent to unknown Client ID the error
4714           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
4715           Updated the protocol specs and code.  Affected files are
4716           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
4717           lib/silcclient/client_notify.c, silcd/packet_receive.c,
4718           and irssi/src/silc/core/client_ops.c.  Renamed the
4719           SilcCommandStatus to SilcStatus.
4720
4721         * Defined the use of extra WHOIS attributes in WHOIS command.
4722           The <Requested Attributes> (defined in a separate document)
4723           can be used to request additional information about user
4724           not returned by standard WHOIS command.  Defined that server
4725           can send WHOIS command directly to client.  Client provides
4726           the requested attributes to the server.  Updated the protocol
4727           specs.  Protocol TODO #4.  Implementation is not done yet
4728           (Protocol TODO #24).
4729
4730         * Renamed function silc_client_command_status_message to
4731           silc_client_status_message.  Affected files are
4732           lib/silcclient/command_reply.[ch].
4733
4734 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4735
4736         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
4737           32 bit integers.  Updated the protcol specs and the code.
4738           Affected files are silcd/command.c and
4739           lib/silcclient/command.c.
4740
4741 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4742
4743         * Fixed a bug in library where sending a bogus authentication
4744           payload would lead to a crash.  Affected file is
4745           lib/silccore/silcauth.c.
4746
4747 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4748
4749         * Added detach_disabled and detach_timeout server config
4750           options to the server.  Affected files silcd/serverconfig.[ch],
4751           silcd/command.c and silcd/packet_receive.c.
4752
4753 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4754
4755         * Added resolve_cmd_ident field to the SilcClientEntry structure
4756           too so that if the entry is for example being resolved so
4757           another command may attach to the same pending command reply
4758           without requiring to resolve the same entry again.  Added
4759           support for adding multiple pending commands for one
4760           command idenfier.  Affected files lib/silcclient/command.[ch],
4761           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4762
4763 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4764
4765         * Defined that server receives WHOIS command reply for private
4766           and secret channels too.  Updated protocol specs and the
4767           code in server.  Affected file silcd/command.c.
4768
4769         * Defined <channel user mode list> argument to WHOIS command
4770           reply for returning user modes on the channels.  The
4771           channel list now doesn't include the user mode anymore but the
4772           actual channel mode.  Updated protocol specs and the code in
4773           client and server.  Affected files are silcd/command_reply.c,
4774           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4775           and lib/silcclient/command_reply.c.
4776
4777         * Save the channels list in WHOIS command reply in normal server
4778           so that WHOIS always shows joined channels also in normal
4779           server and not just on router.  Affected file is
4780           silcd/command_reply.c.
4781
4782 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4783
4784         * Defined that server receives USERS command reply for private
4785           and secret channels too.  Updated protocol specs and the
4786           code in server.  Affected file silcd/command.c.
4787
4788 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4789
4790         * Changed the UMODE's mode mask argument to be optional.  If
4791           not provided then the command merely returns the current mode
4792           mask to the client.  Updated protocol specs and the server.
4793           Affected file is silcd/command.c.
4794
4795         * Added SILC session detachment/resuming support.  It is possible
4796           to detach by closing the network connection and then re-connect
4797           and resume to the old client session.  Added DETACHED user
4798           mode that server will set for detached client.  Added new
4799           packet RESUME_CLIENT which is used to perform the resuming
4800           process.  Added DETACH command.  Updated the protocol specs,
4801           core library, client and server.  Protocol TODO #22.  Very
4802           many affected files around the tree.
4803
4804 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4805
4806         * Changed the CMODE's mode mask argument to be optional.  If
4807           not provided then the command merely returns the current mode
4808           mask to the client.  Updated protocol specs and the server.
4809           Affected file is silcd/command.c.
4810
4811         * Changed the Killer's Client ID in KILLED notify to be just
4812           any ID payload since router server is allowed to kill as well.
4813           Updated protocol specs, client libary and server.  Affected
4814           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4815           and irssi/src/silc/core/client_ops.c.
4816
4817 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4818
4819         * Added new user modes ANONYMOUS for special anonymous servers
4820           that may set the mode for client, and BLOCK_PRIVMSG which
4821           client may set to block incoming private messages unless the
4822           Private Message Key flag is set (using private keys to protect
4823           private messages).  Updated protocol specs and code in client
4824           and server and core library.  Protocol TODO #23.  Affected
4825           files are lib/silccore/silcmode.h, silcd/server.[ch],
4826           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4827           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4828
4829         * Added new channel user mode BLOCK_MESSAGES which the client
4830           may set to itself to tell server not send channel messages.
4831           Other packets such as channel key packets are still sent.
4832           Protocol TODO #23.  Updated the protocol specs, client and
4833           server.  Affected files are lib/silccore/silcmode.h,
4834           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4835           lib/silcutil/silcutil.c, silcd/command.c, and
4836           silcd/packet_send.c.
4837
4838 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4839
4840         * Redefined the Status Payload to include now two 8 bit fields,
4841           instead of one 16 bit field.  This now makes it possible to
4842           send list of errors.  Updated the protocol specs and the code
4843           in core library, client library and server.  Protocol TODO #1.
4844           Affected files are lib/silccore/silccommand.[ch],
4845           lib/silcclient/command_reply.[ch], silcd/command.c,
4846           silcd/command_reply.c and silcd/packet_receive.[ch].
4847
4848 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4849
4850         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4851           must be handled by the application and should tell the application
4852           that an error message was already printed, and it should print the
4853           config coords (line, filename, ...).  Affected files are
4854           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4855
4856         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4857           server config parsing code more readable.
4858
4859           Fixed a bug in the fetch_logging() config callback.
4860
4861           Affected files is silcd/serverconfig.c.
4862
4863         * Drop root privileges when started in foreground.  Don't drop them
4864           if debugging also.  Affected file is silcd/silcd.c.
4865
4866 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4867
4868         * Added more IM-like features by introducing new user modes
4869           for setting various presence information.  Added new modes:
4870           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4871           specs and code.  Protocol TODO #19. Affected files are
4872           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4873           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4874
4875 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4876
4877         * Added STATS command to the protocol after all, to return
4878           various statistical information about the network.  It can
4879           be used by clients to retrieve statistical information, and
4880           servers may use it to to fetch cell and network wide
4881           statistics from router.  Updated the protocol specs and
4882           implemented it to the server.  Protocol TODO #16.
4883           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4884           silcd/command_reply.[ch].
4885
4886 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4887
4888         * The LIST command reply in client libary now adds new channel
4889           entry if the returned channel doesn't exist yet in cache,
4890           and returns the channel entry to the application in the
4891           command_reply client operation.  Affected file is
4892           lib/silcclient/command_reply.c.
4893
4894         * Changed the channel message payload's MAC generation to
4895           include the IV in the MAC as well.  This way all relevant
4896           parts of the channel message payload are authenticated also
4897           with the channel message MAC (and not only by packet MAC).
4898           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4899           Affected file is lib/silccore/silcchannel.c.
4900
4901         * Fixed the SKE to save the remote version, since the
4902           silc_ske_parse_version mistakenly checked wrong version,
4903           after it replaced the start payload.  Affected files are
4904           lib/silcske/silcske.[ch].
4905
4906 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4907
4908         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4909           string utility functions.  Added there also new functions
4910           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4911           Affected files lib/silcutil/silcstrutil.[ch].
4912
4913         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4914           files are lib/silcutil/silcstrutil.[ch].
4915
4916         * Defined that the security property fields in SKE SHOULD be
4917           UTF-8 encoded, defined that version string MUST be US-ASCII
4918           encoded, defined that passphrases sent in connection
4919           authentication protocol MUST be UTF-8 encoded.  Implemented
4920           these to the client and server.  Defined also that other
4921           passphrases sent in the protocol MUST be UTF-8 encoded.
4922           Affected files are lib/silcske/silcske.c,
4923           lib/silcclient/protocol.c, silcd/protocol.c,
4924           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4925
4926         * Changed the silc_client_close_connection interface to not
4927           need the SilcSocketConnection which should not be visible
4928           to application.  Affected files are lib/silcclient/client.c
4929           and lib/silcclient/silcclient.h.
4930
4931         * Rewrote the text for Private Message Key Payload in the
4932           protocol specification.  Protocol TODO #11.
4933
4934 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4935
4936         * Upgraded the protocol version to 1.1, updated protocol specs
4937           and software.
4938
4939         * Added the nickname as new argument to NICK_CHANGE notify and
4940           added it to protocol specs and implemented it to client and
4941           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4942           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4943           lib/silcclient/client_notify.c.
4944
4945         * Added the killer's client ID to the KILLED notify and added
4946           it to protocol specs and implemented it to client and server.
4947           Protocol TODO #13.  Affected files are silcd/command.c,
4948           silcd/packet_receive.c, packet_send.[ch],
4949           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4950           The killer's client entry is now returned to application in
4951           the `notify' client operation.
4952
4953         * Fixed the Max Argument fields that had too large value set
4954           in the protocol specs.  Protocol TODO #14.
4955
4956         * Added the LEAVE command reply to return the ID of parted
4957           channel.  Updated protocol specs and implemented it to the
4958           client and server.  Protocol TODO #15.  Affected files are
4959           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4960           entry is now returned to application in the `command_reply'
4961           client operation.
4962
4963         * Rewrote the version SKE version checking in client libary
4964           and in server to use the silc_parse_version_string.  Affected
4965           files are lib/silcclient/protocol.c, silcd/protocol.c.
4966
4967         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4968           commands that was missing it, and updated protocol specs and
4969           the server implementation.  Protocol TODO #10.  The affected
4970           file is silcd/command.c.
4971
4972         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4973           generic reply to a generic request (REQUEST flag), and
4974           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4975           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4976           to define the payload for DATA flag.  Added the flags to
4977           the implementation.  Protocol TODO #9.  Affected file is
4978           lib/silccore/silcchannel.h.
4979
4980           Changed the client library to return the message length
4981           to application as well in the channel_message and private_message
4982           client operations.  Affected files are
4983           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4984           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4985           and lib/silcclient/client_ops_example.c.
4986
4987         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4988           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4989           the channel.  Updated protocol specs and impelemented this
4990           to client and server.  Protocol TODO #6.  Affected files are
4991           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4992           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4993
4994           Added new options m and M to CMODE command in Irssi SILC
4995           client to set these modes.
4996
4997         * Deprecated all administrative commands from SILC protocol
4998           since they are highly implementation specific commands.
4999           Updated protocol specs.  Moved the old commands in
5000           implementations to private range of command types.  Affected
5001           files are silcd/command.c, lib/silcclient/command.c and
5002           lib/silcclient/command_reply.c.  Protocol TODO #8.
5003
5004         * Fixed a bug in server where sending unknown command crashes
5005           the server.  Affected file silcd/command.c.
5006
5007 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
5008
5009         * Added SILC_PROTOCOLVERSION macro to check protocol version
5010           of a socket connection.  The affected file is
5011           lib/silcutil/silcsockconn.h.
5012
5013         * Added better error logging in rekey protocol.  Affected file
5014           silcd/protocol.c.
5015
5016         * Do not check public key types in SKE during rekey.  Affected
5017           file lib/silcske/payload.c.
5018
5019         * Fixed the rekey protocol with PFS, which was totally broken.
5020           Affected file silcd/protocol.c.
5021
5022 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
5023
5024         * Some client implementations quit network by doing first LEAVE
5025           and then immediately SIGNOFF (like Bombyx).  We now do check
5026           after a short time after LEAVE notify and check whether the
5027           client is still valid after LEAVE, and if not we remove it from
5028           cache.  Affected file is lib/silcclient/client_notify.c.
5029
5030 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
5031
5032         * Merged version 1.1.4 of zlib. Even if it not currently in use,
5033           it's good not to have security holes here.
5034
5035         * Fixed a negative refcount situtuation for the config context.
5036           Affected file is silcd/serverconfig.c.
5037
5038 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
5039
5040         * ROBOdoc documented lib/silcutil/silcutil.h.
5041
5042 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5043
5044         * Optimized even more the SilcPacketContext structure.  Now
5045           totally saved 16 bytes of memory per context after optimization.
5046           Affected files are lib/silccore/silcpacket.[ch].
5047
5048         * Made strict checks for valid SILC IDs.  Affected file is
5049           lib/silccore/silcid.c.
5050
5051 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5052
5053         * Changed the object argument for silc_cipher_register,
5054           silc_hash_register, silc_hmac_register and silc_pkcs_register
5055           to const.  Affected files are lib/silccrypt/silccipher.[ch],
5056           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
5057
5058         * Changed the silc_get_username and silc_get_real_name to
5059           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
5060
5061         * Fixed the Irssi SILC Client to use the silc_get_username and
5062           silc_get_real_name insted of glib routines since the glib
5063           routines only corrupt stack.  Fixes the Irssi SILC to work in
5064           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
5065
5066         * Fixed the Irssi to not use g_get_home_dir since it crashes
5067           or returns garbage on cygwin and corrupts stack.  Added function
5068           get_home_dir to Irssi routines.  Affected files are
5069           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
5070
5071 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5072
5073         * Made some structure optimizations.  SFTP memory FS MemFSEntry
5074           entry structure.  Optimized SilcTask structure.  Optimized
5075           SilcPacketContext structure.
5076
5077           Affected files lib/silcsftp/sftp_fs_memory.c,
5078           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
5079
5080 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5081
5082         * And yet again reverted back the config thing since Johnny
5083           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
5084           and silcd.c.
5085
5086         * Fixed memory leaks from config object.  Affected files are
5087           silcd/serverconfig.[ch].
5088
5089         * Added support for adding new connections to the server in rehash.
5090           After rehash they take effect.
5091
5092           Added support for changing the maximum allowed connections in
5093           rehash.  The number can grow but going smaller is not supported.
5094
5095           Added function silc_server_num_sockets_by_remote to the
5096           silcd/server_util.[ch].
5097
5098           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
5099
5100 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
5101
5102         * Added preliminary checking during config parsing for a valid
5103           public/private key and removed further checks in the code.
5104           Affected files are silcd/serverconfig.[ch], server.c.
5105
5106         * Moved functions silc_server_drop() and silc_server_daemonise()
5107           from server.c to silcd.c since they are stricly related to
5108           the application activity.
5109
5110         * Reverted a small part of the automatic ref/unref since
5111           it caused a double unref in some situations.  Affected
5112           files are silcd/silcd.[ch], server.c, serverconfig.c.
5113
5114         * Added some .cvsignore files in the lib directory.
5115
5116 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5117
5118         * Fixed silc_net_gethostbyaddr to correctly resolve by
5119           address.  Affected file lib/silcutil/silcnet.c.
5120
5121         * Fixed the notify relaying to client.  The HMAC to be used
5122           with relayed packets ws wrong and caused decryption failure
5123           at the client end.  Affected file is silcd/packet_receive.c.
5124
5125 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5126
5127         * Created new branch silc_protocol_1_0_branch.
5128
5129         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
5130
5131         * Changed the silc_server_config_* routines to be SilcServer
5132           independent.  They are now officially application specific code
5133           and not part of generic server implementation.  Affected files
5134           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
5135
5136 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5137
5138         * Added automatic referencing of config context in the
5139           silc_server_config_alloc, and automatic unreferencing in the
5140           silc_server_config_destroy.  Affected files are
5141           silcd/serverconfig.[ch], silcd/silcd.c.
5142
5143         * Fixed the silc_log_quick handling in the logging routines.
5144           It didn't log quickly when it was TRUE.  Affected file is
5145           lib/silcutil/silclog.c.  Also the flush delay was set even
5146           if it was 0 in config file.  Affected file is
5147           silcd/serverconfig.c.
5148
5149         * Added support for changing key pair of the server in rehash.
5150           Affected file silcd/server.c.
5151
5152 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5153
5154         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
5155           too early, before getting the channel entry.  Affected file
5156           is silcd/packet_receive.c.
5157
5158 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5159
5160         * Added functions silc_server_config_[ref/unref], these are used
5161           to prevent that the config object is destroyed.
5162
5163           No longer directly affect global variables silc_log_quick and
5164           silc_log_delay, they are first cached inside the config object
5165           and then applied with silc_server_config_setlogfiles().
5166
5167           silc_server_config_set_defaults() is now internal to
5168           serverconfig.c, there are no reasons to show this internal stuff
5169           to the server.
5170
5171           Affected files are silcd/serverconfig.[ch].
5172
5173         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
5174           fprintf's to stderr, since some code may be executed again after
5175           the server went into the background.  Affected files are
5176           silcd/server.[ch].
5177
5178         * Added rehash support. Added function silc_server_rehash() that
5179           will perform all the basic tasks of the rehashing procedure.
5180
5181         * Added command line option `-x, --hexdump'. This will enable the
5182           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
5183           The option `--hexdump' implies `--debug'.
5184
5185         * Fixed a bad bug in the logging APIs (silcutil library) where
5186           the application would crash after calling silc_log_reset_all().
5187
5188 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5189
5190         * Fixed the KICKED notify handling in client library to
5191           correctly remove the channel and all entries from the
5192           channel when I was kicked.  This bug crashed the client.
5193
5194           Fixed yet another but in KICKED notify handling to remove
5195           the kicked client correctly from the channel.
5196
5197           Affected file is lib/silcclient/client_notify.c.
5198
5199         * Fixed a minor bug in looking up correct client entry
5200           in KICKED notify in server.  Affected file is
5201           silcd/packet_receive.c.
5202
5203         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
5204           sources correctly to distribution.  Fixes --with-gmp option.
5205
5206         * Removed the manual rehashing from ID Cache, and changed it
5207           to use the SILC Hash Table's auto rehash feature.  Affected
5208           file is lib/silccore/silcidcache.c.
5209
5210 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5211
5212         * Fixed a bug in the silc_client_nickname_format function that
5213           handles the multiple same nickname formatting.  Two clients
5214           with same nickname caused problems after the first one left
5215           and rejoined.  It didn't format the nickname correctly.
5216           Affected file is lib/silcclient/idlist.c.
5217
5218 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5219
5220         * Don't change the topic if olod topic is same as new one.
5221           Affected file is silcd/packet_receive.c.
5222
5223 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5224
5225         * Added cross-reference support to the SILC Documentation
5226           generator.  All types across all HTML files are now cross-
5227           referenced.  Affected files util/robodoc/generator.c and
5228           scripts/silcdoc/silcdoc.
5229
5230         * Added file lib/silcutil/silctypes.h to include all the
5231           arithmetic type definitions and some macros.  Removed
5232           includes/bitmove.h and moved macros to silctypes.h.
5233
5234 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5235
5236         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
5237
5238 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5239
5240         * Added `type' argument to silc_id_payload_parse_id function which
5241           now returns the type of the ID to the sent pointer.  Affected
5242           file is lib/silccore/silcid.[ch].
5243
5244         * Added check for CMODE_CHANGE notify type that mode change is
5245           allowed by the sender.  Affected file silcd/packet_receive.c.
5246
5247         * Added check for CUMODE_CHANGE notify type that mode change is
5248           allowed by the sender.  Affected file silcd/packet_receive.c.
5249           Added the ID type as CUMODE_CHANGE notify type as argument
5250           to the `notify' client operation.  Affected files are
5251           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
5252
5253         * Added function silc_client_add_server to the client library.
5254           Added support for resolving also channel and server info when
5255           received unknown entity in notify packet.  Affected files are
5256           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
5257
5258         * Added function silc_command_get_status to return the command
5259           status from the command reply's argument payload.  Affected files
5260           are lib/silccore/silccommand.[ch].
5261
5262         * Added check for KICKED notify type that the kicking is
5263           allowed by the client.  Affected file silcd/packet_receive.c.
5264
5265         * Created function silc_get_input which can be used to get input
5266           (echo on or off) from user on command line.  Affected files are
5267           lib/silcutil/silcutil.[ch].
5268
5269 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5270
5271         * Optimized silc_server_packet_relay_to_channel function.
5272           Added new function silc_channel_message_payload_encrypt which
5273           can be called directly if channel message payload needs to
5274           be encrypted and is already encoded (no need to call _encode
5275           function).  Packet relaying is now done by router without any
5276           extra memory allocations.  Affected files are
5277           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
5278           silcd/packet_send.c.
5279
5280         * Fixed the INVITE notify handling.  It took wrong arguments
5281           as invite list and invite delete.  Affected file is
5282           silcd/packet_receive.c.
5283
5284         * Added check for TOPIC_SET notify type that the topic change is
5285           allowed by the client.  Affected file silcd/packet_receive.c.
5286
5287         * Added check for INVITE notify type that inviting is allowed by
5288           the client.  Affected file silcd/packet_receive.c.
5289
5290         * Changed the silc_server_client_on_channel to return the
5291           SilcChannelClientEntry as well.  Moved the function
5292           silc_server_check_cmode_rights to server_util.[ch].
5293           Affected files are silcd/server_util.[ch], silcd/command.c.
5294
5295         * Added function silc_server_check_umode_rights to check whether
5296           changing client's user mode is allowed.  Added check for
5297           UMODE_CHANGE notify type that the umode change is allowed
5298           by the client.  Affected files are silcd/server_util.[ch],
5299           silcd/packet_receive.c and silcd/command.c.
5300
5301 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5302
5303         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
5304           ID length.  It ignored that ID can be IPv6 based as well.
5305           Affected file lib/silccore/silcpacket.h.
5306
5307         * Fixed the silc_id_id2str and silc_id_str2id to take the
5308           IPv6 address offset's into consideration.  Affecte file is
5309           lib/silccore/silcid.c.
5310
5311 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5312
5313         * Fixed the internal Unix scheduler functions to check for
5314           NULL context they may receive.  The affected file is
5315           lib/silcutil/unix/silcunixschedule.c.
5316
5317 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
5318
5319         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
5320           can specify different directory with --home command line
5321           parameter. Affected files irssi/src/silc/core/client_ops.c,
5322           clientutil.c
5323
5324         * SILC-specific commands aren't now executed if the active server
5325           isn't of SILC-type, so there won't be problems with having
5326           IRC and SILC protocol support in same client. Affected files
5327           irssi/src/silc/core/silc-channels.c, silc-servers.c,
5328           silc-commands.h
5329
5330 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5331
5332         * Improved the signal support in SILC Schedule.  Added new
5333           function silc_schedule_signal_call which is used by application
5334           to mark a signal to be called.  It is now safe to perform
5335           any kind of tasks in signal callbacks since it is guaranteed
5336           that the application specified signal callback is called
5337           after the signal is over.  Affected files are
5338           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
5339
5340 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5341
5342         * Added `name' field to SilcChannelPrivateKey to represent
5343           application given name for the key.  Moved also the context from
5344           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
5345           Added the `name' argument also to the function
5346           silc_client_add_channel_private_key.
5347
5348           Added function silc_client_current_channel_private_key to set the
5349           current channel private key in use.
5350
5351           Added "change" command to KEY command which can be used to change
5352           the current channel private key.  Bound the command also to
5353           alt+K (Alt+Shift+k).
5354
5355           Also affected files lib/silcclient/client_channel.c,
5356           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
5357
5358 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5359
5360         * Added silc_rng_get_byte_fast function in to the
5361           lib/silccrypt/silcrng.[ch].
5362
5363         * Changed the interface of silc_packet_assemble and the
5364           silc_packet_send_prepare.  If silc_packet_assmble is now
5365           called the application does not call silc_packet_send_prepare
5366           because the library will call it automatically.  These
5367           interfaces now also return a reference to the outgoing buffer
5368           which includes the assembled packet, which the application can
5369           use to encrypt the packet.
5370
5371           Affected files are lib/silccore/silcpacket.[ch],
5372           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
5373           silcd/packet_send.c, server_backup.c and packet_receive.c.
5374
5375         * Fixed a packet sending bug on very high load, where outgoing
5376           packet queue wasn't handled correctly and packets got corrupted.
5377           Affected files are lib/silcutil/*/silc*sockconn.c,
5378           lib/silcclient/client.c and silcd/server.c.
5379
5380 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5381
5382         * Added macro SILC_PACKET_DATALEN which can be used during
5383           packet assembling to check whether the data to be added to
5384           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
5385           len is truncated until it fits it.
5386
5387           Added checks for maximum length of channel message payload and
5388           private message payload also.
5389
5390           Added checks for maximum packet length in server and in
5391           client library.
5392
5393           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
5394           lib/silcclient/client.c, lib/silccore/silcchannel.c and
5395           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
5396           lib/silcclient/client_prvmsg.c.
5397
5398 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5399
5400         * Added silc_server_packet_queue_purge call to the
5401           silc_server_disconnect_remote to assure that all data in the
5402           queue before disconnecting is sent to the network.  Affected
5403           file silcd/server.c.
5404
5405 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5406
5407         * Added the deleting of server's own ID cache entry to the
5408           silc_server_free function.  Free also everything else that
5409           has been allocated in silc_server_init.  The affected file
5410           is silcd/server.c.
5411
5412 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5413
5414         * Added functions silc_parse_version_string, silc_version_to_num,
5415           and silc_ske_parse_version to parse SILC protocol style version
5416           strings.  Affected files lib/silcutil/silcutil.[ch] and
5417           lib/silcske/silcske.[ch].
5418
5419         * Added new configuration params: version_protocol, version_software
5420           and version_software_vendor to specify what version the remote
5421           host must at least be to be able to connect to server.  The vendor
5422           string can be regex matched too.  Added new function
5423           silc_server_connection_allowed to check maximum number of allowed
5424           connections, and allowed versions for incoming connections.
5425           Affected files are silcd/server.c, server_util.[ch] and
5426           serverconfig.[ch].
5427
5428 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5429
5430         * Added preliminary support for signals in scheduler.  The
5431           signals we care about are now blocked always when the scheduler
5432           is locked.  This way we can synchronise the use of signal with
5433           scheduler.  It is guaranteed that when signal occurs the scheduler
5434           is not locked, and thus new tasks can be safely added to the
5435           scheduler.
5436
5437           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
5438           to silc_schedule_internal_init and silc_schedule_internal_uninit.
5439           Added new platform specific routines
5440           silc_schedule_internal_signals_[un]block and
5441           silc_schedule_internal_signal_[un]register.
5442
5443           Added new functions to SILC Schedule API:
5444           silc_schedule_signal_[un]register.  Each signal that application
5445           is going to use should be registered to the scheduler.
5446
5447           Affected files are lib/silcutil/silcschedule.[ch],
5448           lib/silcutil/*/silc*schedule.c.
5449
5450 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5451
5452         * Check for unauthenticated client and server in the
5453           silc_server_new_client and silc_server_new_server functions.
5454           Affected file silcd/packet_receive.c.
5455
5456         * Added function silc_string_is_ascii to check whether given
5457           string is 7-bit ASCII string.  Affected files are
5458           lib/silcutil/silcutil.[ch].
5459
5460         * Added function silc_id_is_valid_server_id into the
5461           silcd/serverid.c and added checking for valid Server ID's in
5462           silc_server_new_server.  The Server ID must always be based
5463           on the server's public IP address.
5464
5465         * Added logging of DISCONNECT packet message in the server.
5466           Affected file silcd/server.c.
5467
5468 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5469
5470         * Changed all library interfaces that use Global RNG to also
5471           accept SilcRng as argument.  Affected files are
5472           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
5473           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
5474           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
5475           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
5476           lib/silccrypt/rsa.c.
5477
5478         * Added function silc_pkcs_generate_key to the
5479           lib/silccrypt/silcpkcs.[ch] for applications so that they
5480           don't need to do pkcs->pkcs->init calls anymore.
5481
5482         * Remove SilcSocketConnection from the SFTP API since it really
5483           wasn't needed there.  The application has the information
5484           saved in its contexts anyway and the SFTP layer doesn't need
5485           know about it.  Affected files lib/silcsft/silcsftp.h and
5486           lib/silcsftp/sftp_[server/client].c.
5487
5488         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
5489           The SilcSimContext is not SilcSim.
5490
5491         * Fixed possible buffer overflows in silc_id_render in the
5492           lib/silcutil/silcutil.c.
5493
5494         * On EPOC the global crypto module lists are not used at all
5495           in the crypto library.  Added support for using the constant
5496           algorithm list on EPOC.  Affected files are
5497           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
5498           silcpkcs.c.
5499
5500         * Fixed the handling of third parameter of KICKED notify, since
5501           it was mistakenly updated to SILC Protocol 1.0 even though it
5502           is to be included in 1.1.  Since it is not in 1.0 it is not
5503           mandatory, and this fix now handles it only if it is provided,
5504           and it is not error if it is not provided.  Affected file
5505           lib/silcclient/client_notify.c.
5506
5507 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5508
5509         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
5510           client.  Affected file irssi/src/silc/core/client_ops.c.
5511
5512         * Merged with Irssi 0.8.4 from irssi.org CVS.
5513
5514 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5515
5516         * Check for valid socket connection in client entries before
5517           sending any messages.  Fixes a crash, but doesn't fix some
5518           other underlaying bug that is lurking there.  Affected
5519           file silcd/packet_send.c.
5520
5521 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
5522
5523         * $usermode, $cumode and $cumode_space expandos shouldn't do
5524           anything with non-SILC server records. Affected file
5525           irssi/src/silc/core/silc-expandos.c
5526
5527 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5528
5529         * Fixed the silc_net_check_[host/local]_by_sock to support
5530           IPv6 bound sockets as well.  Now they can return IPv6 addresses
5531           as well.  Affected file lib/silcutil/silcnet.c.
5532
5533         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
5534           Affected lib/silcutil/unix/silcunixnet.c.
5535
5536         * Fixed ID rendering (at least on some platforms, not NetBSD)
5537           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
5538
5539 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5540
5541         * Added silc_hash_public_key and silc_hash_public_key_compare
5542           functions to be used with SilcHashTable.  They can be used to
5543           hash public keys and compare public keys in hash table.  Affected
5544           file lib/silcutil/silcutil.[ch].
5545
5546         * Added support for specifying multiple public keys for Client
5547           connection section in server configuration file.  This makes it
5548           possible to accept multiple public keys from same host, or to
5549           make a section that accepts any incoming host, and have the
5550           accepted public keys listed in the section.
5551
5552           Added functions silc_sever_[find/get]_public_key,  added the
5553           support for this actually to all connection sections but only
5554           the Client section is currently allowed to specify multiple
5555           public keys.
5556
5557           Affected files are silcd/server.c, server_internal.h,
5558           command.c, protocol.c, server_util.[ch], packet_receive.c.
5559
5560 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5561
5562         * Merged Irssi 0.8.2 from irssi.org CVS.
5563
5564 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5565
5566         * If silc_debug is TRUE, also output standard logging messages
5567           to stderr with the debug output.
5568
5569           Made silc_log_reset_all() flushing all channels before returning.
5570           Also fixed some documentation typos.
5571
5572           Affected files are lib/silcutil/silclog.[ch].
5573
5574 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5575
5576         * Fixed the server to check correctly the amount of connections
5577           from single host, by checking also the type of the connection.
5578           Fixed also the comparison of number of connections and number
5579           of allowed connections.  Affected files are silcd/server.c,
5580           server_util.[ch].
5581
5582 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5583
5584         * Fixed the USERS command reply to save the user's mode on the
5585           channel as well.  Fixed JOIN command reply to check whether a
5586           client is on channel already and not join it twice.  Affected
5587           file lib/silcclient/command_reply.c.
5588
5589         * Added new file silc-expandos.c into irssi/silc/core/ to return
5590           various stuff for various signal for the statusbar etc. updating.
5591           Now Irssi SILC client prints channel user modes etc. on the
5592           statusbar.
5593
5594         * The user mode (like server/router operator changes) is now shown
5595           on the Irssi SILC client's statusbar.  The affected files are
5596           irssi/src/silc/core/client_ops.c, silc-expandos.c.
5597
5598 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5599
5600         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
5601           to SILC_SCHEDULE_[UN]LOCK macros.
5602
5603         * Added more error printing to logs in server code.  Affected
5604           files silcd/server.c and silcd/protocol.c.
5605
5606         * Fixed -S option parsing in Irssi SILC Client.  Affected file
5607           irssi/src/silc/core/silc-core.c.
5608
5609         * Added silc_buffer_alloc_size function.  Affected file is
5610           lib/silcutil/silcbuffer.h.
5611
5612 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5613
5614         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
5615           constants.  Affected files in
5616           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
5617           silccipher.[ch].
5618
5619         * Changed the internal SFTP Memory FS table to const.  Affected
5620           file lib/silcsftp/sftp_fs_memory.c.
5621
5622 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5623
5624         * Fixed the buffer formatting and unformatting routines to
5625           check the size of 64 bits types with sizeof().  Affected
5626           file is lib/silcutil/silcbuffmt.c.
5627
5628 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5629
5630         * Removed 0.6.x backwards support.
5631
5632 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5633
5634         * Changed all integer type names:
5635           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
5636           to avoid collisions with other libraries using same type names
5637           as we did.
5638
5639 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5640
5641         * Added `prefer_ipv6' argument to the functions
5642           silc_net_gethostbyname[_async].  If it is TRUE it will return
5643           IPv6 address over IPv4.  If FALSE IPv4 address is returned
5644           even if IPv6 address was found.  Affected files
5645           lib/silcutil/silcnet.[ch].
5646
5647         * Added support silc_net_create_connection[_async] to fallback
5648           to IPv4 address if IPv6 address could not be used (like if
5649           it doesn't work on a specific system).  Affected file in
5650           lib/silcutil/unix/silcunixnet.c.
5651
5652 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5653
5654         * Added silc_schedule_reinit function to do the enlarging
5655           of the max tasks handling capabilities of the scheduler.
5656           Affected files lib/silcutil/silcschedule.[ch].
5657
5658 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5659
5660         * Added automatic extern "C" { ... } for C++ compilers so the
5661           application does not need to define them.  Affected file
5662           includes/silcincludes.h.
5663
5664         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
5665           old name went against naming convention.  Applications now
5666           include "silcclient.h" instead of "clientlibincludes.h".
5667           Removed includes/clientlibincludes.h, it is redundant now.
5668
5669         * Renamed includes/version.h to silcversion.h.
5670
5671         * Added really preliminary support for OS/2 into the util
5672           library.  Only thread & mutex API is implemented, others
5673           are still to be implemented.  Created the lib/silcutil/os2/
5674           directory.  Created also file includes/silcos2.h.
5675
5676 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5677
5678         * Added preliminary BeOS support into the util library.
5679           Created lib/silcutil/beos/, and implemented all the needed
5680           functions to support SILC on BeOS.  Created also file
5681           includes/silcbeos.h.
5682
5683 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
5684
5685         * Added proper initializations to silc's irssi code, so it's
5686           now possible to load it as module.  Affected files
5687           irssi/src/silc/core/silc-core.c,
5688           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
5689
5690 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5691
5692         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
5693           the SILC tree.
5694
5695         * Fixed the silcdoc document generator to correct generate
5696           docs from all kinds of filenames.  Affected files are
5697           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
5698
5699         * ROBOdoc documented lib/silcutil/silcmemory.h.
5700           Added also new function silc_memdup.
5701
5702         * Removed lib/silcutil/silcbufutil.h and moved those routines
5703           to the lib/silcutil/silcbuffer.h.
5704
5705 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5706
5707         * Added `user_count' to the SilcChannelEntry which now tells the
5708           number of users on the channel.  The user count is now saved
5709           in normal server of global channels as well.  Affected files
5710           silcd/server.c, idlist.h, packet_receive.c and command.c.
5711
5712         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
5713           include file utility functions.
5714
5715         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
5716           instead of calling directly OS routines.
5717
5718         * Fixed NICK change printing in Irssi SILC Client. Fixed
5719           KICKED notify printing in Irssi SILC Client.  Affected file
5720           irssi/src/silc/core/client_ops.c.
5721
5722         * Fixed a NICK change bug in client library, to not recreate the
5723           client_entry->channels hash table everytime nick is changed.
5724           Affected file lib/silcclient/client.c.
5725
5726 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5727
5728         * ROBOdoc documented the lib/silcske/silcske.h, and improved
5729           the SKE interface a bit.
5730
5731         * Fixed padding problem in PKCS#1. The padding was not actually
5732           random since the random number generator was used incorrectly.
5733           This security bug affects only when encrypting with PKCS#1, and
5734           it is not currently used at all in SILC. SILC only use signing
5735           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
5736
5737 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5738
5739         * Rewrote the notify handling in Irssi SILC client to not call
5740           the events as signals.  Fixes problems with Perl support.
5741           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5742
5743         * Send the auto-nicking NICK command in client library with
5744           little timeout after connecting.  The affected file is
5745           lib/silcclient/client.c.
5746
5747         * Added following new config file settings:
5748           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5749           key_exchange_timeout, conn_auth_timeout, connections_max,
5750           links_max.
5751
5752           Implemented all the new config settings handling in the server.
5753
5754           Optimized the use of SKE Mutual flag usage.  Use it only
5755           if connection authentication protocol is not based in public
5756           key authentication.
5757
5758           Renamed all SilcServerConfigSection* to SilcServerConfig*
5759           to have a bit shorter names.
5760
5761           Affected files silcd/serverconfig.[ch], server.[ch], and
5762           protocol.[ch].
5763
5764 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5765
5766         * Cleaned up the listening sockets code, preparing for the rehash
5767           support.  Affected file is silcd/server.c.
5768
5769         * Fixed some output messages.  Affected files are silcd/silcd.c,
5770           and silcd/server.c.
5771
5772 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5773
5774         * Create lib/doc/silcrng_intro.html document as introduction
5775           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5776
5777 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5778
5779         * Fixes to the silcd config template.  Affected file is
5780           doc/example_silcd.conf.in.
5781
5782         * Removed type casts from silc_calloc(), conforming to the
5783           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5784
5785         * Removed param_name member from client, server, and router
5786           section structs, now identifying the param directly.
5787
5788           Added CONFIG_FREE_AUTH macro in config file parsing.
5789
5790           Affected files are silcd/serverconfig.[ch].
5791
5792 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5793
5794         * Fixed command line parameter handling. All SILC initialization
5795           is now done in silc_core_init() which also fixes autoconnecting
5796           to servers.
5797
5798           Affected files irssi/src/silc/core/silc-core.c,
5799           irssi/src/fe-text/silc.c.
5800
5801 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5802
5803         * Added new configuration options and blocks:
5804           keepalive_secs, reconnect_count, reconnect_interval,
5805           reconnect_interval_max, reconnect_keep_trying and
5806           require_reverser_lookup.  Added ConnectionParam block, and
5807           implemented the connection parameters when connecting as
5808           initiator and when accepting connections as responder.
5809
5810           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5811           whether given configuration value has been given already.
5812
5813           Affected files silcd/serverconfig.[c], server.[c].
5814
5815         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5816           algorithm parts and created new file silcalgs.conf, that
5817           is now included from the example_silcd.conf.in.
5818
5819         * Optimized the silc_server_connect_to_router_second to take
5820           the connection configuration object from the SilcServerConnection
5821           object instead of finding it during the connecting phase.
5822           Added the configuration object to SilcServerConnection struct.
5823           Affected files silcd/server_internal.h, server.c.
5824
5825 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5826
5827         * Add the client on channel after it was resolved at the
5828           channel message receiving, and it was not already on the
5829           channel.  Affected file lib/silcclient/client_channel.c.
5830
5831 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5832
5833         * Fixed the public key authentication to allocate always the
5834           destination signature buffer instead of using static buffer.
5835           Affected file silcd/protocol.c.
5836
5837 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5838
5839         * Unified the serverconfig.[ch]'s helper function interface.
5840           Affected file silcd/serverconfig.[ch].
5841
5842         * Removed doc/example_silc.conf.in since it is redundant.
5843           The make install will now install irssi/silc.conf file.
5844
5845         * Added new Passphrase and Publickey authentication methods to
5846           config file, allowing both public key and passphrase based
5847           authentication to be set at the same time.
5848
5849           Added `prefer_passphrase_auth' setting in config file which
5850           can be used to set to prefer passwd auth if both passwd and
5851           public key is set.  If not set, public key is preferred.
5852           This has effect only when being initiator (responder will try
5853           both anyway).
5854
5855           Added support for authentication with passphrase and public key
5856           at the same time.  The passphrase is tried first always since
5857           it is faster to check.
5858
5859           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5860
5861 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5862
5863         * Merged the new SILC Config library, with the server parsing
5864           support.  Read the header file silcconfig.h or the toolkit
5865           documentation for the news.  Affected files are
5866           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5867           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5868           silcd/protocol.c silcd/server.c silcd/server_backup.c
5869           silcd/serverconfig.[ch] silcd/silcd.c.
5870
5871         * Fixed some silclog documentation.  Affected file is
5872           lib/silcutil/silclog.h.
5873
5874 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5875
5876         * The silc_cipher_register, silc_hash_register and
5877           silc_hmac_register now checks if the object to be registered
5878           is registered already.  Affected files are
5879           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5880
5881 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5882
5883         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5884
5885 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5886
5887         * Allow zero length channel messages inside the Channel Message
5888           Payload.  Affected file lib/silccore/silcchannel.c.
5889
5890         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5891           as header filenames.
5892
5893         * Removed lib/silcclient/README and created HTML file
5894           lib/silcclient/silcclient_using.html, which is now included
5895           as part of Toolkit documentation.
5896
5897 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5898
5899         * Fixed CUMODE_CHANGE notify handling to change the mode of
5900           correct client.  Affected file lib/silcclient/client_notify.c.
5901
5902         * Make silc_rng_alloc fail if it cannot allocate the sha1
5903           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5904
5905 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5906
5907         * Fixed the file transfer's key agreement payload to include
5908           zero port also if the hostname is NULL because it could not
5909           be bound.
5910
5911           Call file transfer monitor callback now also if error occurs
5912           during key agreement protocol.
5913
5914           Changed the silc_client_file_send interface to return the
5915           SilcClientFileError instead of session id.  The session ID
5916           is returned into pointer provided as argument.
5917
5918           Check that the file exists locally before sending the
5919           file transfer request at all.
5920
5921           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5922
5923         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5924           error than can occur while key agreement protocol.  Affected
5925           file lib/silcclient/silcapi.h.
5926
5927         * Fixed the event_mode CMODE handler to not crash when mode
5928           is changed and +k mode is set in the channel.  Affected file
5929           irssi/src/silc/core/silc-channels.c.
5930
5931         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5932           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5933           file lib/silcutil/silclog.c.
5934
5935         * Fixed the channel message payload decryption in the function
5936           silc_channel_message_payload_decrypt to not modify the original
5937           buffer before it is verified that the message decrypted
5938           correctly.  Otherwise, next time it is called with correct
5939           channel key it won't encrypt since the payload is corrupted.
5940           Affected file lib/silccore/silcchannel.c.
5941
5942 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5943
5944         * Do not constantly resize the window.  A fix patch by cras.
5945           Affected file irssi/src/fe-text/screen.c.
5946
5947 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5948
5949         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5950           Affected file lib/silcutil/silcnet.c.
5951
5952 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5953
5954         * Fixed a bug in hash table internal routine for traversing
5955           the table with foreach callback.  The current entry may
5956           become invalid in the callback but it was referenced after
5957           the callback returned.
5958
5959           Do not allow auto rehashing of hash table during the
5960           silc_hash_table_foreach operation, for same reasons as it is
5961           not allowed for SilcHashTableList.  Affected files are
5962           lib/silcutil/silchashtable.[ch].
5963
5964 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5965
5966         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5967           Win32 DLL.  extern's in header files are now declared with
5968           DLLAPI.
5969
5970 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5971
5972         * Fixed private message handling.  It used some old code that
5973           caused the client to crash.  Affecte file is
5974           lib/silcclient/client_prvmsg.c.
5975
5976 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5977
5978         * Added function silc_client_add_channel,
5979           silc_client_replace_channel_id, and removed functions
5980           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5981           from client library.
5982
5983         * Added cross reference of the joined channels to the
5984           SilcClientEntry, and changed the SilcChannelEntry's
5985           users list to SilcHashTable.  The affected files are
5986           lib/silcclient/idlist.[ch].
5987
5988         * Fixed a bug in hash table tarversing.  While the hash table
5989           is traversed with SilcHashTableList the table must not be
5990           rehashed.  It is now guaranteed that auto rehashable tables
5991           are not rehashed while tarversing the list.  Also defined that
5992           silc_hash_table_rehash must not be called while tarversing
5993           the table.  Added function silc_hash_table_list_reset that must
5994           be called after the tarversing is over.  The affected files are
5995           lib/silcutil/silchashtable.[ch].
5996
5997         * Changed all hash table traversing to call the new
5998           silc_hash_table_list_reset in server and in client library.
5999
6000         * Added function silc_client_on_channel to return the
6001           SilcChannelUser entry if the specified client entry is joined
6002           on the specified channel.  This is exported to application as
6003           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
6004
6005 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6006
6007         * Fixed founder regaining problem with JOIN command on normal
6008           server.  The notify for mode change must be sent always and
6009           not only if !cmd->pending.  Affected file silcd/command.c.
6010
6011         * Fixed the WHOWAS command's reply sending to support the
6012           lists correctly.  Affected file silcd/command.c.
6013
6014 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
6015
6016         * When sending JOIN command to router for processing the
6017           sender's old command identifier was not saved back to the
6018           sender's command context, fixed now.  The affected file is
6019           silcd/command.c.
6020
6021         * Create the key in JOIN command of the router did not return
6022           the channel key, added check for this.  Affected file is
6023           silcd/command.c.
6024
6025         * Fixed a channel ID update bug in JOIN command reply.  Do
6026           not directly upgrade the ID but call the function
6027           silc_idlist_replace_channel_id if the ID was changed.
6028           Affected file silcd/command_reply.c.
6029
6030         * Fixed memory leaks from command calling if it would fail.
6031           Affected file silcd/command.c.
6032
6033 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6034
6035         * Applied patches from cras:
6036
6037           Memory leak fixes around libaries, irssi window resize fix,
6038           new silclist.h and silcdlist.h, all extern inline changed to
6039           static inline.
6040
6041         * Removed dotconf from lib/dotconf, not needed anymore.
6042
6043         * Removed TRQ from lib/trq, not needed anymore.
6044
6045         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
6046           with server connections.  Later this will be configurable
6047           in config file after new config file is done.  Affected file
6048           silcd/server.c.
6049
6050 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
6051
6052         * Fixed a crash in server related to channel announcements.
6053           Affected file silcd/server.c.
6054
6055 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6056
6057         * Fixed memory leaks in silc_server_create_new_channel*
6058           functions.  Affected file silcd/server.c.
6059
6060         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
6061           which ID was changed.  This way the router will send the
6062           user list for the channel again, and server won't be in
6063           desync in some rare circumstances.  Affected file is
6064           silcd/packet_receive.c.
6065
6066 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6067
6068         * Check for NULL socket pointer in the function
6069           silc_server_packet_send_to_channel_real.  Affected file
6070           silcd/packet_send.c.
6071
6072         * Fixed the BAN notify handling to correctly remove ban
6073           list.  Affected file silcd/packet_receive.c.
6074
6075 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6076
6077         * Fixed some header addition to Toolkit distribution in
6078           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
6079
6080         * Added lib/silcclient/client_ops_example.h as an template
6081           file for application programmers to quickly start using
6082           the SilcClientOperation functions in their application.
6083           Updated the lib/silcclient/README as well to tell about this
6084           nice file made available.
6085
6086 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6087
6088         * Call silc_server_remove_from_channels when removing client
6089           entry when NO_SUCH_CLIENT_ID was received.  Affected file
6090           is silcd/command_reply.c.
6091
6092 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6093
6094         * Added server & router operator statistics updating.  Affected
6095           file silcd/packet_receive.c and silcd/command.c.
6096
6097         * Fixed the SERVER_SIGNOFF notify handling on normal server
6098           not to save the history information for clients.  Same was
6099           fixed earlier in remove_clients_by_server function, but not
6100           here.  Affected file silcd/packet_receive.c.
6101
6102         * Raised the default connection-retry count from 4 to 7 in
6103           server.  Affected file silcd/server.h.
6104
6105         * Cancel any possible reconnect timeouts when we start the
6106           key exchange.  Affected file silcd/server.c.
6107
6108         * Do not reconnect on connection failure when SCONNECT was
6109           given.  Affected files silcd/server.[ch].
6110
6111 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6112
6113         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
6114
6115         * Fixed the NICK command to always give the unformatted
6116           nickname to the one giving the NICK command.  If unformatted
6117           nickname is cached already it will be formatted and the
6118           local entry will always get the unformatted nickname.
6119           Affected file lib/silcclient/idlist.c.
6120
6121         * Fixed some double frees from client library commands.
6122           Affected file is lib/silcclient/command.c.
6123
6124         * Fixed CUMODE command in server to assure that no one can
6125           change founder's mode than the founder itself, there was a
6126           little bug.  Affected file silcd/command.c.
6127
6128 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6129
6130         * Removed the SilcClientCommandDestructor from the client
6131           libary, it is not needed anymore.  Affected files are
6132           lib/silcclient/silcapi.h, command[_reply].[ch],
6133           client_notify, idlist.c.
6134
6135         * Fixed GETKEY command to first resolve client, and then
6136           resolve the server only if the client was not found, instead
6137           of resolving both at the same time.  Affected file is
6138           lib/silcclient/command.c.
6139
6140         * Added silc_client_start_key_exchange_cb and lookup the
6141           remote hostname and IP address before starting the key
6142           exchange with server.  The affected file is
6143           lib/silcclient/client.c.
6144
6145         * The server's public key is now saved using the IP address
6146           of the server and not the servername for the filename.
6147           The hostname public key filename is checked as an fall back
6148           method if the IP address based filename is not found.
6149
6150           Fixed the GETKEY command to save the fetched server key
6151           in correct filename.
6152
6153           Print the remote server's hostname now when new key is
6154           received during connection process.  Affected file is
6155           irssi/src/silc/core/client_ops.c.
6156
6157         * Return always our own public key to the client if it asks
6158           for it with GETKEY command.  Affected file silcd/command.c.
6159
6160         * Removed the use_auto_addr variable from default config
6161           file since it was in wrong section.  Affected file is
6162           irssi/src/config.
6163
6164         * Fixed TOPIC_CHANGE notification to not route it when it
6165           was sent using silc_server_send_notify_to_channel function.
6166           Affected file silcd/command.c.
6167
6168         * Fixed silc_server_send_notify_kicked to send the kicker's
6169           Client ID also, it was missing.  Affected files are
6170           silcd/command.c, silcd/packet_send.[ch].
6171
6172 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6173
6174         * Do not save client history information in SERVER_SIGNOFF.
6175           Fixes the bug in normal server that it does not detect
6176           the client becoming valid after the server becomes back
6177           online.  Affected file silcd/server_util.c.
6178
6179         * Added `sock_error' field  into the SilcSocketConnection
6180           context.  When error occurs during socket operation (read
6181           or write) the error is saved.  Added also new function
6182           silc_socket_get_error to return human readable socket error
6183           message.  Affected files are lib/silcutil/silcsockconn.[ch],
6184           lib/silcutil/unix/silcunixsockconn.c, and
6185           lib/silcutil/win32/silcwin32sockconn.c.
6186
6187         * The server now prints the socket error message in the
6188           signoff for client.  Affected file silcd/server.c.
6189
6190         * Fixed the `created' channel information sending from router
6191           to server in JOIN command.  Checks now whether the channel
6192           really was created or not and set it according that.
6193
6194           Fixed the JOIN command to use the client entry's current
6195           ID during the joining procedure instead of the one it sent
6196           in the command (it is checked though), since it can change
6197           between the packet processing and command processing, and
6198           would just case unnecessary pain in the client end.  Affected
6199           file silcd/command.c.
6200
6201         * Fixed a channel key payload sending to use correct channel
6202           ID when the server was forced to change the channel's ID by
6203           router.  Router sent the key payload with the old Channel ID.
6204           Affected file silcd/packet_receive.c.
6205
6206 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6207
6208         * Call silc_server_save_channel_key only if the key payload
6209           was provided in the JOIN command's command reply.  Affected
6210           file silcd/command_reply.c.
6211
6212 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6213
6214         * Fixed silc_mp_sizeinbase to return the value correctly with
6215           MPI.  Affected file lib/silcmath/mp_mpi.c.
6216
6217         * Fixed the stop_server signal to correctly stop the scheduler
6218           and gracefully stop the server when SIGTERM or SIGINT signals
6219           are received.  Affected file silcd/silcd.c.
6220
6221 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
6222
6223         * Simple handling of TERM and HUP signals. Also added some log
6224           flushing call around.  Affected file is
6225           silcd/silcd.c.
6226
6227         * Fixed small bugs in silclog.c. Now buffering output will take
6228           effect after 10 seconds since startup: This will ensure that
6229           no important startup messages are lost. Also output redirection
6230           will preserve original format ([Date] [Type] message).
6231           Affected file is lib/silcutil/silclog.c.
6232
6233         * Added two options to the config file, in the logging section:
6234           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
6235           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
6236
6237 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6238
6239         * Do not print the warning about log files not being initialized
6240           more than once to avoid excess logging.  Affected file is
6241           lib/silcutil/silclog.c.
6242
6243         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
6244           the SIM copying in make install in Makefile.am.pre.
6245
6246 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6247
6248         * Rewritten silclog APIs. Globally interesting changes follows:
6249           silc_log_set_files() changed to silc_log_set_file().
6250           silc_log_set_callbacks() changed to silc_log_set_callback().
6251           ROBOdoc documented silclog header file.
6252           SilcLogCb now returns bool to wether inihibit the default
6253           handler or not (to keep the old behaviour return always TRUE).
6254           The new APIs should also fix the problem of the
6255           silcd_error.log file that was written in the current directory.
6256
6257           New features:
6258           Log files streams will remain opened after silc_log_set_file()
6259           call, means less CPU usage notably on high traffic servers.
6260           File streams are now full buffered, and flushed to the disk
6261           every 5 minutes, lesses HD activity and CPU usage.
6262           Messages can be redirected, allowing admins to configure
6263           one single logfile for all server messages.
6264           the silc_log_quick global variable to activate fast-logging.
6265           Affected files lib/silcutil/silclog.[ch]
6266
6267         * Changed some code to conform new silclog APIs. Affected
6268           files are doc/example_silcd.conf.in, silcd/server.c
6269           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
6270           silcd/silcd.c.
6271
6272         * Fixed a memory leak that could occur in some situations.
6273           Affected file silcd/serverconfig.c.
6274
6275 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6276
6277         * Added the silc_client_del_client to remove the client from
6278           all channels as well.  Affected file lib/silcclient/idlist.c.
6279
6280         * Fixed the client library to correctly remove the client
6281           from all channels when the client entry is being destroyed.
6282           Affected file lib/silcclient/client_notify.c, command.c.
6283
6284         * Added auto-nicking support to the client library.  If the
6285           applicatio now sets client->nickname it will be sent to the
6286           server after connecting by the library.  This way for example
6287           SILCNICK (or IRCNICK) environment variables will have effect
6288           and always change the nickname automatically to whatever
6289           it is wanted.  Affected file lib/silcclient/client.[ch].
6290
6291         * Renamed silc_server_command_bad_chars to the
6292           silc_server_name_bad_chars and moved it to the
6293           silcd/server_util.[ch].  Added also new function
6294           silc_server_name_modify_bad to return nickname that
6295           includes bad characters as new nickname without those
6296           bad characters.  This check and modify is now used in
6297           silc_server_new_client when the username is initially set
6298           as nickname, so it must be checked to be valid nickname.
6299           Affected file silcd/packet_receive.c.
6300
6301         * The nickname length is now taken from the packet for real
6302           and not trusted to strlen() since it clearly can return
6303           wrong length for nickname including bad characters.  This
6304           also applies to channel names.  Affected file silcd/command.c.
6305
6306         * Removed the lib/silcsilm/modules directory.  Modules are now
6307           compiled into the lib/silcsim.  Fixed the copying of the
6308           modules to follow symbolic links in Makefile.am.pre.
6309
6310 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6311
6312         * Fixed silc_string_regexify list creation.  Fixes bugs with
6313           BAN and INVITE commands in server.  The affected file is
6314           lib/silcutil/unix/silcunixutil.c.
6315
6316 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6317
6318         * Removed the command destructor entirely from the server's
6319           command and command reply routines.  It is not needed, and
6320           its usage was buggy and caused crashes.  Affected files are
6321           silcd/command[_reply].[ch].
6322
6323 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6324
6325         * Cancel protocol and NULL sock->protocol if timeout
6326           occurred during protocol.  Affected file silcd/server.c.
6327
6328         * Cancel protocol timeouts always before calling the final
6329           callback, to assure that after final callback is called
6330           no other state will be called for the protocol anymore.
6331           Affected file silcd/protocol.c.
6332
6333         * Print error log if incoming connection configuration could
6334           not be found.  Affected file silcd/server.c.
6335
6336         * Fixed JOIN command to correctly save the founder mode
6337           to the client on normal SILC server, when the channel
6338           was created by the router.  Affected file silcd/command.c.
6339
6340         * Fixed LIST command (hopefully) to send correct reply
6341           packets.  Affected file silcd/command.c.
6342
6343 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6344
6345         * The silc_packet_receive_process now returns FALSE if the
6346           read data was invalid packet, and TRUE if it was ok.
6347
6348           The server now checks that if unauthenticated connection
6349           sends data and its processing fails the server will close
6350           the connection since it could be a malicious flooder.
6351
6352           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
6353
6354 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6355
6356         * Make sure the warning about error opening a log file is
6357           printed only once and not everytime it fails (produces
6358           too much useless log).  Affected file lib/silcutil/silclog.c.
6359
6360 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6361
6362         * Made the silc_server_daemonise() function more readable.
6363           Affected file silcd/server.c.
6364
6365         * Pid file is now optional, the user may comment it out from
6366           the config file. Removed define SILC_SERVER_PID_FILE, we
6367           don't need a default any longer.  Affected file
6368           configure.in.pre, lib/Makefile.am.pre.
6369
6370         * Make some use of the pid file. The server now dies at startup
6371           if it detects a valid pid file on his path. The server would
6372           die anyway in this circumstance, because of the bind() failure.
6373           Affected file silcd/silcd.c.
6374
6375         * No longer compiling lib/dotconf.
6376
6377 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6378
6379         * Fixed JOIN command parsing not to crash.  Affected file
6380           lib/silcclient/command.c.
6381
6382         * Fied the NICK_CHANGE notify to add the new client entry
6383           even it is resolved.  This removes an <[unknown]> nick
6384           thingy bug in the client.  Affected file is
6385           lib/silcclient/client_notify.c.
6386
6387         * Do not try to allocate 0 bytes (efence does not like it)
6388           in lib/silccore/silccomand.c when encoding payload.
6389
6390         * Do not take IRCNICK as nickname in Irssi SILC client since
6391           it is not possible to set nickname before hand connecting
6392           the server (TODO has an entry about adding auto-nicking
6393           support).
6394
6395         * Changed the silc_server_command_pending to check whether
6396           there already exists an pending entry with the specified
6397           command, command identifier and pending callback.  This is
6398           to fix IDENTIFY and WHOIS related crashes that may register
6399           multiple pending commands with same identifier.  Affected
6400           file silcd/command.c.
6401
6402         * Fixed the server to reconnect to the router even if it
6403           was already reconnecting and EOF was received.  This to
6404           fix a possibility that the server wouldn't ever try to
6405           auto-reconnect to the router.  Affected file silcd/server.c.
6406
6407 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6408
6409         * Fixed the server's password authentication to use the
6410           length of the locally saved password, and not the one
6411           sent in the packet.  Affected file silcd/protocol.c.
6412
6413         * Fixed same password authentication problem in the
6414           Authentication Payload handling routines in
6415           lib/silccore/silcauth.c.
6416
6417         * Yet another password authentication problem fixed with
6418           channel password handling in silcd/command.c.
6419
6420 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6421
6422         * If first character of string in silc_parse_userfqdn is '@'
6423           then do not parse it.  Affected file is
6424           lib/silcutil/silcutil.c.
6425
6426 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6427
6428         * Fixed minor bug in IDENTIFY command reply sending, which
6429           caused various weird problems during JOIN when it was
6430           resolving names for users.  Affected file silcd/command.c.
6431
6432 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6433
6434         * Fixed the IDENTIFY command reply sending to chech better valid
6435           clients.  It was possible to send incomplete list of replies.
6436           Affected file silcd/command.c.
6437
6438 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6439
6440         * Added silc_client_command[s]_[un]register functions now to
6441           dynamically register the commands in client library.  Removed
6442           the static table of commands.  This allows the client library
6443           to call commands without causing the application to know about
6444           what commands library has called.
6445
6446           Removed the INFO command reply kludge to detect when the command
6447           was called by library.  Now library use its own command reply
6448           function for INFO command.
6449
6450           Added function silc_client_command_call to call a command.
6451           Application can use it to call command, not access the structure
6452           directly.
6453
6454           Now all commands that are sent by the client library (not
6455           explicitly sent by application) use own command reply functions.
6456
6457           Affected files around lib/silcclient/ and in
6458           irssi/src/silc/core/.
6459
6460         * Fixed the WHOIS command reply sending to chech better valid
6461           clients.  It was possible to send incomplete list of replies.
6462
6463           Fixed the WHOIS and IDENTIFY to send the request to router
6464           if normal server did not do it and did not find any results.
6465
6466           Affected file silcd/command.c.
6467
6468 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6469
6470         * Moved the internal data from SilcClient context into its
6471           own file, not accesible to application.  Affected files
6472           lib/silcclient/client.h and lib/silcclient/client_internal.h,
6473           and other files in client library.
6474
6475 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6476
6477         * Added doc/examples installation target in Makefile.am.pre.
6478           A patch by salo.
6479
6480 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6481
6482         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
6483           commands the found client entry will be removed from the
6484           cache, after notifying application about the error.  Affected
6485           file lib/silcclient/command_reply.c.
6486
6487         * Changed the /MSG to check for exact nickname user gave, and
6488           not let `nick' match `nick@host' if it is only one found.  Now,
6489           user must type the exact nickname (like nick@host2) even if
6490           there are no more than one same nicks found.  This is to avoid
6491           a possibility of sending nickname to wrong nickname since
6492           `nick' could match `nick@host'.  Affected file is
6493           irssi/src/core/silc-servers.c.
6494
6495 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6496
6497         * Do not print "you are now server operator" or similar when
6498           giving /away command.  Affected files are
6499           irssi/src/silc/core/client_ops.c, silc-servers.h.
6500
6501         * Made the silc_server_command_pending_error_check to send
6502           the same command reply payload it received back to the
6503           original sender of the command.  This way all arguments
6504           that was received by the server will be received by the
6505           client too.  Affected file silcd/command.c.
6506
6507         * Added the silc_idcache_add to return the created cache entry
6508           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
6509
6510         * Add global clients to expire if they are not on any channel.
6511           This is because normal server will never know if they signoff
6512           if they are not on any channel.  The cache expiry will take
6513           case of these entries.  This is done by normal servers only.
6514           The affected files are silcd/command_reply.c,
6515           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
6516
6517         * If server receives invalid ID notification for WHOIS or
6518           IDENTIFY and the ID exists in the lists, it is removed.
6519           Affected file silcd/command_reply.c.
6520
6521         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
6522           in client then client entry that it matches is searched and
6523           the nickname is printed on the screen for user.  Affected
6524           file irssi/src/silc/core/client_ops.c.
6525
6526 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6527
6528         * Use cache entry expire time in the LIST command reply to
6529           purge old entries from the cache after the LIST command
6530           reply has been received.  This way we don't have non-existent
6531           entries in the cache for too long.  Affected file is
6532           silcd/command_reply.c.
6533
6534 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6535
6536         * If we are normal server, and we've not resolved client info
6537           in WHOIS or IDENTIFY from router, and it is global client,
6538           we'll check whether it is on some channel.  If it is not
6539           then we cannot be sure about its validity and will resolve it
6540           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
6541           file silcd/command.c.
6542
6543         * Search channel by name (if possible) rather than by ID
6544           in IDENTIFY command's command reply.  Affected file is
6545           silcd/command_reply.c.
6546
6547 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6548
6549         * Distribute to the channel passphrase in CMODE_CHANGE notify.
6550           Updated specs and implemented it.  Affected file silcd/command.c,
6551           silcd/packet_send.c and silcd/packet_receive.c.
6552
6553         * Implemented the <founder auth> payload handling in the JOIN
6554           command.  If provided all conditions for channel joining
6555           except requirement to provide correct passphrase can be
6556           overrided by the channel founder.  Updated the protocol specs.
6557           Affected file silcd/command.c.
6558
6559           Added support for founder auth in JOIN command in client
6560           library.  Fixed the parsing of the JOIN command now to support
6561           all options as they should be.  The affected file is
6562           lib/silcclient/command.c.
6563
6564         * Optimized the WHOIS and IDENTIFY commands to send the request
6565           to router only if it includes nicknames or other names.  If
6566           they include only IDs then check the local cache first before
6567           routing.  Affected file is silcd/command.c.
6568
6569         * Added channels topic announcements.  Affected file is
6570           silcd/packet_receive.c and silcd/server.c.
6571
6572         * Fixed the silc_server_send_notify_topic_set to really destine
6573           the packet to channel.  Affected file silcd/packet_send.c.
6574
6575         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
6576           library.  Affected file lib/silcclient/client_notify.c.
6577
6578         * Added UMODE announcements.  Affected file silcd/server.c.
6579
6580 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6581
6582         * Memory leak fixes in:
6583
6584           lib/silcutil/silcsockconn.c
6585           lib/silcske/silcske.c
6586           lib/silcske/groups.c
6587           lib/silccrypt/rsa.c
6588           lib/silccrypt/silcpkcs.c
6589           lib/silccore/silccommand.c
6590           lib/silccore/silcidcache.c
6591           silcd/idlist.c
6592           silcd/packet_send.c
6593           silcd/command.c
6594
6595         * ROBOdoc documented the lib/silcske/groups.h file and a
6596           bit changed the interface for better.
6597
6598 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6599
6600         * Update the client entry context in the ID cache after
6601           nick change.  Affected file lib/silcclient/command.c.
6602           Fixes the CUMODE command when regaining founder privileges,
6603           and a little WHOIS problem.
6604
6605         * Fixed silc_net_gethostbyname to correctly call the
6606           inet_ntop.  Affected file lib/silcutil/silcnet.c.
6607
6608 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6609
6610         * Added IPv6 support checking to the configure.in.pre, added
6611           also --enable-ipv6 option to override the check.  Affected
6612           file configure.in.pre.
6613
6614         * The silc_thread_create now calls the start function
6615           directly if threads support is not compiled in.  Removes
6616           ugly #ifdef's from generic code.  Affected files are
6617           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
6618
6619         * Added silc_net_gethostby[name/addr]_async to asynchronously
6620           resolve.  Affected files are lib/silcutil/silcnet.[ch].
6621
6622         * Added support for rendering IPv6 based server, client and
6623           channel IDs.  Affected file lib/silcutil/silcutil.c.
6624
6625         * Added support for creating IPv6 based server IDs.  Affected
6626           file is silcd/serverid.c.
6627
6628 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6629
6630         * Added silc_net_gethostby[addr/name] into the
6631           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
6632           routines.  Added silc_net_is_ip[4/6].  Affected file is
6633           lib/silcutil/unix/silcunixnet.c.  All routines that take
6634           address as argument now supports both IPv4 and IPv6 addresses.
6635
6636 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6637
6638         * Fixed LIST command reply sending in server.  Affected file
6639           silcd/command.c.
6640
6641         * Server now sends the kicker's client ID in the KICK notify
6642           to the kicked client.  Affected file silcd/command.c.
6643
6644         * The client library now parses the kickers client ID and
6645           UI displays it.  Affected files lib/silcclient/client_notify.c
6646           and irssi/src/silc/core/silc-channels.c, module-formats.c.
6647
6648         * Made all payload parsing function prototypes consistent.
6649           They all take now const unsigned char * and uint32 pair as
6650           the payload data instead of SilcBuffer.  Changes all around
6651           the source tree.  Other unsigned char* -> const unsigned char*
6652           changes around the tree as well.
6653
6654         * Optimized SFTP client and server packet sending not to
6655           allocate new buffer for each packet but to recycle the
6656           first allocated buffer.  Affected files are
6657           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
6658
6659         * Optimized the SFTP client to use SilcList instead of
6660           SilcDList for requests, because it is faster.  Affected file
6661           is lib/silcsftp/sftp_client.c.
6662
6663         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
6664           into lib/silccore/silcid.[ch].
6665
6666           Renamed silcpayload.[ch] into silcargument.[ch].
6667
6668 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6669
6670         * If client entry is deleted with active key agreement
6671           session, abort the session.
6672
6673           The silc_client_abort_key_agreement now calls the completion
6674           callback with new SILC_KEY_AGREEMENT_ABORTED status.
6675
6676           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
6677           idlist.c.
6678
6679 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6680
6681         * Don't use __restrict in older GCC's.  Affected file is
6682           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
6683
6684         * silc_net_localhost now attempts to reverse lookup the
6685           IP/hostname.  Affected file lib/silcutil/silcnet.c.
6686
6687         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
6688           command.  It can be used to gain founder privileges at
6689           the same time when joining the channel.
6690
6691           Defined that the SILC_NOTIFY_TYPE_KICKED send the
6692           kicker's client ID as well.  Updated protocol specs.
6693
6694           Defined that the server must send SILC_COMMAND_IDENTIFY
6695           command reply with error status to client who sent
6696           private message with invalid client ID.
6697
6698           Updated the protocol specification.
6699
6700         * Added silc_server_send_command_reply to send any
6701           command reply.  Affected file silcd/packet_send.[ch].
6702
6703         * Added silc_id_payload_encode_data to encode ID payload
6704           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
6705
6706         * The server now send IDENTIFY command reply with error
6707           status if client ID in private message is invalid.  Affected
6708           file silcd/packet_receive.c.
6709
6710         * Save the server key file with server's IP address in
6711           the filename instead of hostname.  The affected file is
6712           irssi/src/silc/core/client_ops.c.
6713
6714 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6715
6716         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
6717           A patch by Sunfall.
6718
6719         * Added libtool support for compiling shared objects in
6720           lib/silcsim.  Affected file configure.in.pre and
6721           lib/silcsim/Makefile.am.  Original patch by cras.
6722
6723 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6724
6725         * Pid file configuration, and server's config file fixes
6726           patch by toma.  Updated CREDITS file.
6727
6728 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6729
6730         * Fixed silc_client_channel_message to not try to decrypt
6731           the message twice if it resolved the destination client
6732           information.  This could cause of dropping one channel
6733           message.  Affected file lib/silcclient/client_channel.c.
6734
6735 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6736
6737         * Added silc_client_run_one into lib/silcclient/silcapi.h and
6738           lib/silcclient/client.c. This function is used when the SILC
6739           Client is run under some other scheduler, or event loop or
6740           main loop.  On GUI applications, for example this may be
6741           desired to used to run the client under the GUI application's
6742           main loop.  Typically the GUI application would register an
6743           idle task that calls this function multiple times in a second
6744           to quickly process the SILC specific data.
6745
6746 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6747
6748         * Fixed silc_server_drop() for dropping the supplementary
6749           groups as well, this could cause a security hole on some
6750           systems.
6751
6752 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6753
6754         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6755           johnny.
6756
6757         * Write PID file after dropping privileges.  Added -F option
6758           to run server on foreground.  A patch by debolaz.
6759           Affected files silcd/server.c, silcd/silcd.c.
6760
6761         * Fixed MOTD to return the MOTD file server name.  Affected
6762           file silcd/command.c.
6763
6764         * Added INFO command reply handling to the Irssi SILC Client.
6765           Affected file irssi/src/silc/core/client_ops.c.
6766
6767 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6768
6769         * Fixed the silc_idcache_list_* routines to really support
6770           the dynamic list.  Fixes a crash.  Affected file is
6771           lib/silccore/silcidcache.c.
6772
6773         * Fixed the LIST command reply to really call LIST command's
6774           pending callbacks.  Affected file silcd/command_reply.c.
6775
6776 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6777
6778         * Update conn->local_entry->nickname after giving NICK
6779           command.  Affected file lib/silcclient/command.c.
6780
6781 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6782
6783         * Added the [pid] option to the silcd configuration file
6784
6785           Affected files: serverconfig.[ch] and silcd.c
6786
6787 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6788
6789         * Save fingerprint in WHOIS command reply in server.
6790           Affected file silcd/command_reply.c.
6791
6792         * Fixed NICK commands pending callback registration.
6793           Affected file lib/silcclient/command.c.
6794
6795 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6796
6797         * Use ++server->cmd_ident when sending commands in server,
6798           instead of random number.  Affected file silcd/command.c.
6799
6800         * Fixed GETKEY command reply to call actually GETKEY pending
6801           command callbacks.  Affected file silcd/command_reply.c.
6802
6803         * A bit stricter check for nicknames.  Check for same nickname
6804           in NICK command also.  Affected file silcd/command.c.
6805
6806         * Do not call INFO command everytime client ID changes, only
6807           during first connecting.  Affected file lib/silcclient/client.c.
6808
6809         * Set the new nickname only after successful command reply for
6810           NICK command is returned by server.  Affected file
6811           lib/silcclient/command.c.
6812
6813         * Remove nicknames from nicklist during server_signoff notify.
6814           Should fix /NAMES bit more.  The affected file is
6815           irssi/src/silc/core/silc-channels.c.
6816
6817         * Added `fingerprint' field to the SilcIDListData in the
6818           silcd/idlist.h to hold the fingerprint of the client's
6819           public key.
6820
6821           Send the fingerprint of the client's public key in WHOIS
6822           command reply.
6823
6824           Affected files silcd/command.c, and silcd/idlist.[ch].
6825
6826         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6827           create fingerprint from given data.
6828
6829         * Show the fingerprint of the client's public key in WHOIS.
6830           Affected files irssi/src/module-formats.[ch] and
6831           irssi/src/silc/core/client_ops.c.
6832
6833         * Format the multiple same nicknames also during JOIN and
6834           NICK_CHANGE notifys.  Affected file is
6835           lib/silcclient/client_notify.c.
6836
6837         * Do not print error on screen for invalid private message
6838           payload since it can come if someone is sending private
6839           messages with wrong key.  Affected file
6840           lib/silccore/silcprivate.c.
6841
6842         * Fixed multiple concurrent /PING crash.  Affected file
6843           lib/silcclient/command.c.
6844
6845         * Changed the wrong ID encoding.  All IP addresses must be
6846           in MSB first order in encoded format.  They were encoded
6847           wrong and was in LSB format.  Affected files are
6848           silcd/serverid.c, lib/silcutil/silcutil.c.
6849
6850         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6851
6852         * Call the `connect' client operation through the scheduler
6853           in case of error.  Affected file lib/silcclient/client.c.
6854
6855         * Call the `failure' client operation even if the error
6856           occurred locally during a protocol.  Affected file is
6857           lib/silcclient/protocol.c.
6858
6859         * Added support of sending LIST command to router from normal
6860           server.  This way normal server can get list of all channels
6861           in the network too.  Fixed the channel list sending in the
6862           server too.  Affected files are silcd/command.c, and
6863           silcd/command_reply.[ch].
6864
6865         * Added silc_server_update_channels_by_server and
6866           silc_server_remove_channels_by_server.  They are used during
6867           disconnection of primary router and in backup router protocol.
6868           Affected file silcd/server_util.[ch], silcd/server.c and
6869           silcd/server_backup.c.
6870
6871         * Fixed channel adding to global list in IDENTIFY command
6872           reply in server.  Affected file silcd/command_reply.c.
6873
6874 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6875
6876         * If the incoming packet type is REKEY or REKEY_DONE process
6877           that packet always synchronously.  Fixes yet another MAC
6878           failed error on slow (dialup) connections.  Affected file
6879           lib/silcclient/client.c and silcd/server.c.
6880
6881 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6882
6883         * Call check_version SKE callback for initiator too.  Affected
6884           file lib/silcske/silcske.c.
6885
6886         * Implemented fix for security hole found in the SKE that was
6887           fixed in the specification few days back; the initiator's
6888           public key is now added to the HASH value computation.
6889           Added backwards support for the old way of doing it too, for
6890           old clients and old servers.  Affected file is
6891           lib/silcske/silcske.c.
6892
6893         * Enabled mutual authentication by default in SKE.  If initiator
6894           is not providing mutual authentication the responder will
6895           force it.  This will provide the proof of posession of the
6896           private key for responder.  The affected files are
6897           lib/silcclient/protocol.c and silcd/protocol.c.
6898
6899         * Do not cache anymore the server's public key during SKE.
6900           We do mutual authentication so the proof of posession of
6901           private key is done, and if the server is authenticated in
6902           conn auth protocol with public key we must have the public
6903           key already.  Affected file silcd/protocol.c.
6904
6905         * Added new global debug variable: silc_debug_hexdump.  If
6906           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6907           file lib/silcutil/silclog.[ch].
6908
6909         * Fixed compilation warning due to char * -> const char *.
6910           Affected files lib/silcutil/silcnet.h, and
6911           lib/silccore/silcauth.[ch].
6912
6913 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6914
6915         * Fixed CMODE command when new channel key was created.  If
6916           the creation failed the old key was removed.  Next time giving
6917           same command would crash the server since the old key was
6918           freed already.  Affected file silcd/command.c.
6919
6920         * Fixed the silc_server_announce_get_channels to not crash
6921           on reconnect.  Affected file silcd/server.c.
6922
6923 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6924
6925         * Added silc_log_set_debug_string function to set a regex
6926           string to match for debug output.  Only the function names,
6927           or filenames matching the given debug string is actually
6928           printed.  This way it is possible to filter out those debug
6929           strings that user is not interested in.
6930
6931           Fixed a bug in silc_string_regexify.
6932
6933           Affected files lib/silcutil/silclog.[ch], and
6934           lib/silcutil/unix/silcunixutil.c.
6935
6936         * Changed the -d options in both server and Irssi SILC client
6937           to take the debug string as argument.  Affected files
6938           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6939
6940 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6941
6942         * Added silc_hash_babbleprint to create a Bubble Babble
6943           Encoded fingerprint.  The encoding is developed by Antti
6944           Huima (draft-huima-babble-01.txt), and it creates human
6945           readable strings out of binary data.  Affected file
6946           lib/silccrypt/silchash.[ch].
6947
6948         * Print the babble print now in addition of fingerprint as well
6949           in Irssi SILC client.  Affected files are
6950           irssi/src/fe-common/silc/module-formats.[ch],
6951           irssi/src/fe-common/silc/core/client_ops.c.
6952
6953 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6954
6955         * Fixed a security problem found in SKE.  The initiator's
6956           public key too is now added to the HASH hash value creation
6957           which is signed by the responder to create the SIGN value.
6958           This will prevent anyone in the middle to lie to the responder
6959           about the initiator's public key.  If this is done now, the
6960           man in the middle will get caught.  Updated the protocol
6961           specification.
6962
6963 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6964
6965         * Better installation directory handling.  Configure module
6966           paths and other paths automatically to example_silc* files
6967           in doc/.  A patch by toma.
6968
6969         * Fixed compiler warning from MPI library, and from SILC RNG.
6970           A patch by johnny.
6971
6972         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6973           It can be configured with ./configure.  A patch by toma.
6974
6975 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6976
6977         * Find correct make to use in prepare-clean.  A patch by
6978           toma.  Affected file prepare-clean.
6979
6980 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6981
6982         * Added irssi variables use_auto_addr, auto_bind_ip,
6983           auto_bind_port and auto_public_ip.
6984
6985         * Changed the interface for silc_client_send_key_agreement
6986           in lib/silcclient/silcapi.h
6987
6988         Affected files:
6989
6990          irssi/src/silc/core/silc-core.c
6991          irssi/config
6992          lib/silcclient/silcapi.h
6993          irssi/src/silc/core/silc-channels.c
6994          lib/silcclient/client_keyagr.c
6995          irssi/docs/help/key
6996
6997 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6998
6999         * Added silc_pkcs_public_key_compare to compare two
7000           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
7001
7002         * Check that the client who set the founder mode on the
7003           channel is the same client that is giving the founder
7004           mode to itself.  It is done by comparing the saved public
7005           key (it is saved even in the authentication is passphrase).
7006           Affected file silcd/command.c.
7007
7008 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7009
7010         * Do not process packet for disconnected socket connection.
7011           Affected file lib/silccore/silcpacket.c.
7012
7013         * Process the DISCONNECT packet through scheduler in the
7014           client library.  Affected file lib/silcclient/client.c.
7015
7016         * Fixed the silc_client_packet_parse to not to increase
7017           the packet sequence number if the conn->sock and the
7018           current socket connection is not same.  This can happen
7019           for example during key agreement when the conn includes
7020           multiple socket connections (listeners).  Affected file
7021           lib/silcclient/client.c.
7022
7023         * The sender of the file transfer request now provides also
7024           the pointer (listener) for the key exchange protocol.  If
7025           the listener cannot be created then it sends empty key
7026           agreement and lets the receiver provide the listener.
7027
7028           Added `local_ip' and `local_port' arguments to the
7029           silc_client_file_send.  If they are provided they are used,
7030           if not then it will attempt to find local IP address, if
7031           not found or bind fails then the remote client will provide
7032           the listener.
7033
7034           Affected files are lib/silcclient/client_ftp.c and
7035           lib/silcclient/silcapi.h.
7036
7037         * Extended the FILE SEND command to support defining the
7038           local IP and port for key exchange listener.  They are
7039           optional.  Affected file irssi/src/silc/core/silc-servers.c.
7040
7041 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7042
7043         * Defined to WHOIS command reply the sending of fingerprint
7044           of the client's public key (if the proof of posession of the
7045           corresponding private key is verified by the server).
7046           Updated to the protocol specification.
7047
7048         * Added support of receiving the client's public key's
7049           fingerprint in command reply in client library.  Affected
7050           file is lib/silcclient/command_reply.c, and
7051           lib/silcclient/idlist.[ch].
7052
7053 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7054
7055         * Do not send over 128 chars long nickname to the server
7056           in NICK command.  Affected file lib/silcclient/command.c.
7057
7058         * Do not send over 256 chars long channel names to the server
7059           in JOIN command.  Affected file lib/silcclient/command.c.
7060
7061 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7062
7063         * Assure that silc_server_close_connection cannot be called
7064           twice for same socket context.  Affected file is
7065           silcd/server.c.
7066
7067 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7068
7069         * Send error message to application if opening file for
7070           writing during file transfer fails.  Affected file is
7071           lib/silcclient/client_ftp.c.
7072
7073           Remove all file transfer sessions for a client that we're
7074           removing from ID cache.
7075
7076           Affected file is lib/silcclient/client_ftp.c.
7077
7078         * Fixed silc_net_addr2bin to return correct address.  Affected
7079           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7080
7081         * Fixed file transfer session removing on signoff notify.
7082           Affected file irssi/src/silc/core/silc-servers.c.
7083
7084         * Added the SilcClientFileError to be returned in the monitor
7085           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
7086           Affected file lib/silcclient/silcapi.h.
7087
7088 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7089
7090         * Fixed a crash in silc_client_ftp_free_sessions and
7091           silc_client_ftp_session_free_client.  Affected file
7092           lib/silcclient/client_ftp.c.
7093
7094         * Added `disabled' field in the SilcChannelEntry in the server
7095           to indicate if the server entry is disabled.  Affected file
7096           silcd/idlist.h, silcd/command[_reply].c.
7097
7098         * SILC server adds now /var/run/silcd.pid everytime it is
7099           started.  Affected file silcd/silcd.c.
7100
7101         * Added silc_server_packet_send_clients to send a packet to
7102           the provided table of client entries.  Affected file
7103           silcd/packet_send.[ch].
7104
7105         * Fixed a crash in client resolving in client_prvmsg.c in
7106           client library.  Affected file lib/silcclient/client_prvmsg.c.
7107
7108         * Do not actually remove the client directly from ID cache
7109           during SERVER_SIGNOFF, but invalidate it.  This way we
7110           preserve the WHOWAS info for the client.  Affected file
7111           silcd/server_util.c.
7112
7113         * Fixed SERVER_SIGNOFF notify handling in the server.  The
7114           server is now able to process incoming SERVER_SIGNOFF notify
7115           for a server that it doesn't even know about.  It will remove
7116           the clients provided in the notify.  Affected file
7117           silcd/packet_receive.c.
7118
7119         * Check for partial packet in data queue after every packet that
7120           was found from the queue.  Return and wait for more data if
7121           there is partial data in queue.  Affected file is
7122           lib/silccore/silcpacket.c.
7123
7124 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
7125
7126         * Added SilcClietFileError enum to indicate error in
7127           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
7128           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
7129           Affected files lib/silcclient/silcapi.h and
7130           lib/silcclient/client_ftp.c.
7131
7132         * Check that newsize in silc_buffer_realloc is larger than
7133           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
7134
7135         * Added better monitor of file transfers.  It now monitors
7136           key agreement protocol during the file transfer too.  Added
7137           error reporting too.  Affected files
7138           irssi/src/silc/core/silc-servers.c,
7139           irssi/src/fe-common/silc/module-formats.[ch].
7140
7141         * Wrote a help file for FILE command.
7142
7143         * Added silc_rng_global_get_byte_fast to get not-so-secure
7144           random data as fast as possible.  Random data is read from
7145           /dev/urandom if available and from the SILC RNG if not
7146           available.  It is used in padding generation.  Affected file
7147           lib/silccrypt/silcrng.[ch].
7148
7149         * All packets in client library are now processed synchronously.
7150           Optimized packet processing a lot.  Affected file
7151           lib/silcclient/client.c.
7152
7153         * All server connection packets are processing synchronously
7154           now in server, to optimize packet processing.  Affected file
7155           silcd/server.c.
7156
7157         * Include files are installed now only in Toolkit distribution
7158           if make install is given.  Affected files: all Makefile.am's.
7159
7160 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7161
7162         * Assure that silc_client_notify_by_server_resolve does not
7163           resolve the client information multiple times.  If it cannot
7164           be found by the first it cannot be found at all.  Affected
7165           file lib/silcclient/client_notify.c.
7166
7167         * Fixed WHOWAS command reply calling.  Affected file
7168           lib/silcclient/command_reply.c.
7169
7170         * Removed all references to silc_idlist_get_client from the
7171           Irssi SILC client since that call is internal call used by
7172           the library.  The Irssi SILC client will use now client
7173           retrieval functions found in silcapi.h.
7174
7175         * Fixed a bug in resolving nickname info before sending
7176           private message.  It used freed memory.  Affected file
7177           irssi/src/silc/core/silc-servers.c.
7178
7179 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7180
7181         * Assure my_channels statistics cannot go negative in server.
7182           Affected files silcd/server.c, silcd/server_util.c.
7183
7184 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7185
7186         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
7187
7188 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7189
7190         * Win32 Toolkit changes.  Affected files
7191           win32/silc.dsw, win32/libsilc/libsilc.def,
7192           win32/libsilcclient/libsilc.def,
7193           lib/silcutil/silcutil.c, and
7194           lib/sftp/sftp_fs_memory.c.
7195
7196 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7197
7198         * Added silc_net_localip to return local host's IP address.
7199           Affected file lib/silcutil/silcnet.[ch].
7200
7201         * If key exchange or rekey protocol is active for a connection
7202           parse all packets syncronously since there might be packets
7203           in packet queue that we are not able to process without first
7204           processing packets before them.  Affected file silcd/server,
7205           lib/silcclient/client.c.
7206
7207         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
7208           whether library should continue processing the packet.
7209           Affected file lib/silccore/silcpacket.h.
7210
7211         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
7212           SilcSFTPMonitorData to SFTP server to monitor various
7213           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
7214           lib/silcsftp/sftp_server.c.
7215
7216         * Added silc_file_size to return file size.  Affected file
7217           lib/silcutil/silcutil.[ch].
7218
7219         * Implemented the file transfer support for the client library.
7220           Added preliminary support for simple client to client one-file
7221           transmission.  Affected file lib/silcclient/client_ftp.c,
7222           lib/silccilent/client.[ch].
7223
7224         * Added new local command FILE to the Irssi SILC Client.
7225           It is used to perform the file transfer.  It has subcommands
7226           SEND, RECEIVE, SHOW and CLOSE.  Affected files
7227           irssi/src/silc/core/client_ops.c,
7228           irssi/src/silc/core/silc-server.[ch].
7229
7230 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7231
7232         * Relay the SILC_PACKET_FTP in the server.  Affected files
7233           silcd/server.c and silcd/packet_receive.c.
7234
7235 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7236
7237         * Renamed silc_file_read and silc_file_write to functions
7238           silc_file_readfile and silc_file_writefile.  Added function
7239           silc_file_open and silc_file_close.  Affected files
7240           lib/silcutil/silcutil.[ch].
7241
7242 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7243
7244         * Resolve the client info when received private message or
7245           channel message for a client which nickname we don't know.
7246           Affected files lib/silcclient/client_prvmsg.c and
7247           lib/silcclient/client_channel.c.
7248
7249         * Do not crash in /KEY if client is not connected.  Affected
7250           file irssi/src/silc/core/silc-channels.c.
7251
7252         * Added SilcClientStatus field to the SilcClientEntry in the
7253           lib/silcclient/idlist.h.
7254
7255           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
7256           is incomplete and is being resolved, it won't be resolved
7257           twice.
7258
7259           Make sure also that USERS command reply does not resolve
7260           twice information.  Affected file is
7261           lib/silcclient/command_reply.c.
7262
7263           Make sure that silc_client_get_clients_by_list does not
7264           resolve twice same information.
7265
7266         * Check for valid client->id in the silc_server_free_client_data.
7267           Affected file silcd/server.c.
7268
7269         * Fixed /GETKEY nick@server not to crash if the server entry
7270           is not found.  Affected file lib/silcclient/command.c.
7271
7272         * Fixed the silc_server_check_cmode_rights to check the
7273           requested modes correctly.  Affected file silcd/command.c.
7274
7275 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7276
7277         * Better checks for non-printable chars in nick added.
7278           Affected file silcd/command.c.
7279
7280 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7281
7282         * Call the silc_server_udpate_servers_by_server in the
7283           primary router that comes back online in the backup resuming
7284           protocol.  Otherwise it routes packets wrong.  Affected file
7285           silcd/server_util.[ch], silcd/server_backup.c.
7286
7287 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7288
7289         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
7290           lib/silcutil/silcbuffmt.[ch].
7291
7292         * Redefined the SILC packet header to include the padding
7293           length.  Affected file lib/silccore/silcpacket.[ch].
7294
7295         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
7296           length for maximum padding up to 128 bytes).  Affected
7297           file lib/silccore/silcpacket.h.
7298
7299         * Removed all backwards support for old 0.5.x MAC thingies.
7300           The SILC packet header change makes it impossible to be
7301           backwards compatible.
7302
7303         * Send the ENDING packet with timeout in the backup resuming
7304           protocol.  This is to assure that all routers has connected
7305           to the primary router.  Affected file silcd/server_backup.c.
7306
7307         * Changed the RNG to take the first IV from random data.  It
7308           used to take it from zero actually.  Changed the RNG also
7309           to use /dev/urandom during session.  /dev/random is used
7310           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
7311
7312 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7313
7314         * Changed the SILC packet header to have the first two bytes
7315           (the packet length) encrypted.  Affected files aroung the
7316           code tree, lib/silccore/silcpacket.[ch].  Removed the
7317           SilcPacketCheckDecrypt callback.  It is not needed anymore
7318           since the silc_packet_receive_process will determine now
7319           whether the packet is normal or special.
7320
7321         * Implemented the unidirectional MAC keys.  Affected files
7322           lib/silcske/silcske.c, silcd/protocol.c and
7323           lib/silcclient/protocol.c.
7324
7325         * Implemented the packet sequence number to the MAC computation.
7326           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
7327           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
7328           lib/silcclient/protocol.c.
7329
7330 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7331
7332         * Allow backup router to announce servers.  All servers
7333           announced by backup router are added to the global list
7334           automatically.  Update hte server's socket to our primary
7335           router also when backup router announces a server.
7336           Affected file silcd/packet_receive.c.
7337
7338         * Do not update the client->router in the function
7339           silc_server_udpate_clients_by_server if the client is on
7340           global list.  We might fail to find any specific server
7341           for locally connected clients and local cell clients.  They
7342           should still use the `from' and not `to' as client->router.
7343           This fixes backup router resuming protocol.  Affected file
7344           silcd/server_util.c.
7345
7346         * Decrease channel statistics count only if the channel
7347           deletion worked.  Affected files are silcd/server.c and
7348           silcd/server_util.c.
7349
7350         * Added silc_server_update_servers_by_server to update origin
7351           of all server entries.  Used during backup router protocol.
7352           Affected files silcd/server_util.[ch], silcd/server.c. and
7353           silcd/backup_router.c.
7354
7355         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
7356           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
7357           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
7358           lib/silccrypt/silchmac.c.
7359
7360 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7361
7362         * Assure that router cannot reroute the same channel message
7363           to the sender.  Affected file silcd/packet_receive.c.
7364
7365 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7366
7367         * Made better checks that the channel message is not sent
7368           to the router it came from.  Affected file is
7369           silcd/packet_send.c.  Fixed memory leak too.
7370
7371         * Announce informations for incoming router connection, but
7372           only after checking if it is replaced by backup router.
7373           Affected file silcd/packet_receive.c.
7374
7375 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7376
7377         * Fixed the backup resuming protocol to work in multiple
7378           router environment.  Affected file silcd/server_backup.c.
7379
7380         * Route packet only to one router in the function
7381           silc_server_packet_send_to_channel.  Affected file is
7382           silcd/packet_send.c.
7383
7384         * Fixed silc_server_send_notify_dest to set the broadcast
7385           flag.  Fixed the silc_server_send_notify_topic to actually
7386           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
7387           Affected file silcd/packet_send.c.
7388
7389         * Changed the SFTP Filesystem interface.  Changed the
7390           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
7391           the filesystem operation function.  The SilcSFTPFilesystem
7392           is now a context that is allocated by all filesystem allocation
7393           functions and it already includes the operations structure
7394           and filesystem specific context.  It is given as argument
7395           now to the silc_sftp_server_start.  This made the interface
7396           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
7397           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
7398
7399 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7400
7401         * Changed the backup router adding and getting interfaces
7402           in the server.  The router that will be replaced by the
7403           specified backup router is now sent as argument.  Affected
7404           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
7405           silcd/server.c.
7406
7407         * Added silc_net_addr2bin_ne to return the binary form of
7408           the IP address in network byte order.  Affected files
7409           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
7410
7411 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7412
7413         * Check for existing server ID in silc_server_new_server
7414           and in silc_server_connect_to_router_final and remove the
7415           old entry if it exists.  Affected file silcd/packet_receive.c,
7416           silcd/server.c.
7417
7418         * Send the channel message always to only one router, either
7419           in upstream or downstream.  Affected file is
7420           silcd/packet_send.c.
7421
7422 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7423
7424         * Wrote the definition of the backup resuming protocol to the
7425           protocol specification.
7426
7427         * Removed one redundant channel key generation from normal
7428           server during joining procedure.  Removed one redundant
7429           channel key sending from server to router during joining
7430           procedure.  Affected file silcd/command.c.
7431
7432         * Made minor bugfixes to the backup router resuming protocol.
7433           Affected file silcd/server_backup.c, server.c.
7434
7435 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7436
7437         * Added --disable-asm configuration option.  Affected files
7438           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
7439           by salo.
7440
7441         * Implemented the backup resuming protocol that is used to
7442           resume the primary router position in the cell after the
7443           primary router comes back online.  Affected files
7444           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
7445           and silcd/server_util.[ch].
7446
7447 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7448
7449         * Sleep two (2) seconds after sending QUIT command to server.
7450           Affected file lib/silcclient/command.c.
7451
7452         * Assure that if outgoing data buffer is pending do not force
7453           send any data.  Affected file silcd/packet_send.c.
7454
7455         * Assure that if outgoing data buffer is pending do not force
7456           send any data.  Affected file lib/silcclient/client.c.
7457
7458         * Implemented the backup router support when the primary router
7459           goes down.  The servers and routers can now use the backup
7460           router as new primary router without loosing connectivity.
7461
7462 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7463
7464         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
7465           in the server to indicate disabled entry.  All data read
7466           from the connection will be ignored and no data is sent
7467           for entry that is disabled.  Affected files are
7468           silcd/idlist.h, silcd/server.c.
7469
7470 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7471
7472         * Created SFTP client and server test programs in the
7473           lib/silcsftp/tests directory.
7474
7475 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7476
7477         * Implemented memory filesystem (virtual filesystem) for
7478           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
7479           sftp_fs_memory.c.
7480
7481 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7482
7483         * Implemented the SFTP (SSH File Transfer Protocol) to the
7484           lib/silcsftp.  It includes SFTP client and SFTP server
7485           implementations.
7486
7487 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7488
7489         * Moved lib/silccore/silcprotocol.[ch] to the
7490           lib/silcutil library.
7491
7492         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
7493           take variable argument list pointer as argument.  Affected
7494           file lib/silcutil/silcbuffmt.[ch].
7495
7496         * Added silc_buffer_set function that is used to set data
7497           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
7498           Affected file lib/silcutil/silcbuffer.h.
7499
7500         * Changed various routines in the core library to use the new
7501           silc_buffer_set instead of allocating new buffer only for
7502           temporary purposes.
7503
7504         * Added 64-bit value formatting and unformatting support to the
7505           silc_buffer_[un]format routines.  Affected file is
7506           lib/silcutil/silcbuffmt.[ch].
7507
7508           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
7509           to includes/bitmove.h.
7510
7511 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7512
7513         * Fixed channel user mode saving in client library.  Affected
7514           file lib/silcclient/command[_reply].c.
7515
7516 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7517
7518         * Defined the file transfer to the SILC Protocol.  Added
7519           new packet type SILC_PACKET_FTP and defined File Transfer
7520           Payload.  The mandatory file transfer protocol is SFTP
7521           (SSH File Transfer Protocol).  Affected file in addition
7522           of the internet draft is lib/silccore/silcpacket.h.
7523
7524         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
7525           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
7526           is used as part of backup router protocol when the primary
7527           router of the cell is back online and wishes to resume
7528           the position as primary router.
7529
7530         * Redefined the MAC generation keys in the protocol.  The
7531           same key is not used anymore in both direction.  Both
7532           direction will now use different keys for sending and
7533           receiving.  This fixes a potential security flaw.  This
7534           change causes incompatibilities in the protocol.
7535
7536         * Redefined also the MAC computation from the packet.
7537           An packet sequence number is now added to the MAC
7538           computation.  This prevents possible replay attacks against
7539           the protocol.  This change too causes incompatibilities
7540           in the protocol.
7541
7542           Added `sequence' field to the SilcPacketContext to hold
7543           the current sequence number for the packet.
7544
7545 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7546
7547         * Added `created' field to the SilcIDListData in the file
7548           silcd/idlist.h to indicate the time when the entry was
7549           created.
7550
7551         * Added `created' field to the SilcChannelEntry too.  Affected
7552           file silcd/idlist.h.
7553
7554         * Added `creation_time' aguments to all the announcement functions
7555           in the server.  If it is provided then only the entries that
7556           was created after the provided time frame are actually
7557           announced.  Affected file silcd/server.[ch].
7558
7559         * The protocol says that the Channel ID's IP address must be
7560           based on the router's IP address.  Added check for this in
7561           the silc_server_new_channel when processing incoming New Channel
7562           Payload.  Affected file silcd/packet_receive.c.
7563
7564         * Print out the correct version with --version in SILC client.
7565           Affected file irssi/src/silc/core/silc-core.c.
7566
7567 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7568
7569         * Fixed WHOWAS command to check for completnes of the client
7570           entry always, not just when the command is coming from client.
7571           Affected file silcd/command.c.
7572
7573         * Added new function silc_server_packet_queue_purge to purge the
7574           outgoing data queue to the network.  After the function returns
7575           it is guaranteed that the outgoing packet queue is empty.
7576           Affected file silcd/packet_send.[ch].
7577
7578         * Purge the outgoing packet queue in the rekey protocol's final
7579           callback to assure that all rekey packets go to the network
7580           before quitting the protocol.  Affected file silcd/server.c.
7581
7582         * Added silc_client_packet_queue_parse as similar function as
7583           in server to the client library.  The affected file is
7584           lib/silcclient/client.c.
7585
7586 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7587
7588         * Splitted silcd/server.c and created silcd/server_util.[ch]
7589           for utility functions.
7590
7591         * Added new socket flag SILC_SF_DISABLED to indicate that the
7592           connection is open but nothing can be sent to or received from
7593           the connection.  Affected file lib/silcutil/silsockconn.[ch].
7594           The checking for disabled socket is checked in the low level
7595           silc_socket_write and silc_socket_read functions.
7596
7597 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7598
7599         * Allow only nicknames and channel names that fits into the
7600           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
7601
7602 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7603
7604         * When processing JOIN command reply in server check that if
7605           the channel exists in our global list we'll move it the local
7606           list.  Affected file silcd/command_reply.c.
7607
7608         * Fixed the check whether client is joined on the channel already
7609           in JOIN command.  Affected file lib/silcclient/command.c.
7610
7611         * Fixed the JOIN command reply to check whether the channel
7612           already exists.  Affected file lib/silcclient/command_reply.c.
7613
7614 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7615
7616         * Added silc_ske_status_string to map the SKE error numbers
7617           to readable strings.  The affected files are
7618           lib/silcske/silcske[_status].[ch].
7619
7620 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7621
7622         * Do not show the private channels on the WHOIS channel list
7623           as it is not allowed by the protocol.  The affected file is
7624           silcd/server.c.
7625
7626 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7627
7628         * Assure that the packet length digged from the actual packet
7629           is something sensible in the silc_packet_decrypt_rest_special
7630           in lib/silccrypt/silcpacket.c.
7631
7632         * Free and NULL the allocated pointer in silc_hmac_alloc if
7633           the HMAC allocation fails.  The affected file is
7634           lib/silccrypt/silchmac.c.
7635
7636         * Print the selected security properties to the log files in
7637           the server.  Affected file silcd/protocol.c.
7638
7639         * Add SKE's reference counter even if calling the completion
7640           callback manually.  Otherwise it goes negative, although it
7641           does not cause any problems.  The affected file is
7642           lib/silcske/silcske.c.
7643
7644         * Remove the client entry with short timeout after giving the
7645           KILL command.  Affected file lib/silcclient/command.c.
7646
7647         * Fixed to send error reply in WHOIS and IDENTIFY commands in
7648           case all found clients are already disconnected (WHOWAS would
7649           found them) in the server.  Affected file silcd/command.c.
7650
7651         * Update the last_receive (time of last data received) to be
7652           updated only when received private or channel message so that
7653           the idle time showed in WHOIS makes more sense.
7654
7655         * Added boolean field `valid' in to the SilcClientEntry in the
7656           client library to indicate whether the entry is valid or not.
7657           This fixes the nickname change bug on channel when changing
7658           the nickname to be same than the old (like nick to Nick) the
7659           nickname formatter doesn't set the new nick anymore to Nick@host.
7660           Affected file lib/silcclient/idlist.[ch].
7661
7662         * Now actually fixed the nickname changing on disconnection.
7663           Added new function silc_change_nick to the Irssi SILC Client.
7664           Affected file irssi/src/silc/core/client_ops.c,
7665           irssi/src/silc/core/silc-nicklist.[ch].
7666
7667 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7668
7669         * Check that the public key exists in the GETKEY command before
7670           trying to encode it.  Affected file silcd/command.c.
7671
7672         * Print some notifications on received public keys with GETKEY
7673           command in the Irssi SILC Client.  Affected files are
7674           irssi/src/fe-common/silc/module-formats.[ch],
7675           irssi/src/silc/core/client_ops.c.
7676
7677         * Use IDENTIFY command to resolve the server information in the
7678           GETKEY command instead of INFO command.  Affected file
7679           lib/silcclient/command.c.
7680
7681         * All command reply functions in the client library now calls
7682           the pending command reply callbacks even if an error has
7683           occurred.  The server has done this a long time and now it was
7684           time to move the client library to this as well.  Now all
7685           errors can be delivered back to the pending command reply
7686           callbacks if necessary.  Affected files are
7687           lib/silcclient/command[_reply].[ch].
7688
7689         * Change the nickname on disconnection back to the username
7690           because in reconnect the server will enforce it to it anyway.
7691           Affected file irssi/src/silc/core/silc-servers.c.
7692
7693         * Fixed a config file parsing bug in the Irssi SILC client.
7694           Affected file irssi/src/silc/core/clientconfig.c.
7695
7696 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7697
7698         * When printing the channel mode on JOIN, verify that the
7699           channel key and channel's HMAC are valid.  Affected file
7700           irssi/src/silc/core/client_ops.c.
7701
7702 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7703
7704         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
7705           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
7706           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
7707
7708         * Removed channel key rekey task deleting from the function
7709           silc_server_save_channel_key.  Affected file silcd/server.c.
7710           Added explicit timeout task context instead that is used to
7711           delete the task if we are registering a new task before the
7712           new task has elapsed.
7713
7714         * When channel key rekey occurs the client library now saves
7715           the old channel key for a short period of time (10 seconds) and
7716           is able to use it in case some is still sending channel
7717           messages encrypted with the old key after the rekey.  Affected
7718           file lib/silcclient/[idlist.h|client_channel.c].
7719
7720 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7721
7722         * Added check to the silc_server_new_id_real to not accept
7723           new ID if it is the sender's own ID.  Affected file is
7724           silcd/packet_receive.c.
7725
7726         * Assure that we do not announce ourself or the one we've
7727           sending our announcements when we're router and are announcing
7728           servers to our primary router.  Affected file silcd/server.c.
7729
7730         * Fixed silc_server_command_identify_check_client to assemble
7731           correct WHOIS packet.  It send corrupted WHOIS packet and
7732           caused problem with router to router connections.  Affected
7733           file silcd/command.c.
7734
7735           Fixed also silc_server_command_whois_check the same way
7736           as for the IDENTIFY command.
7737
7738         * Added new SilcIDListStatus to the server in the SilcIDListData
7739           structure.   The status now includes the current status of
7740           the entry (like registered, resolved etc.).  Affected file
7741           silcd/idlist.[ch].  Defined a bunch of different status types
7742           as well.  This replaced the old boolean registered field as well.
7743
7744           Added resolve_cmd_ident field to the SilcClientEntry structure
7745           too so that if the entry is for example being resolved so
7746           another command may attach to the same pending command reply
7747           without requiring to resolve the same entry again.  This concept
7748           should optimize the WHOIS and the IDENTIFY resolving under
7749           heavy load by taking away unnecessary resolving for entries
7750           that are being resolved already.
7751
7752           Added support for adding multiple pending commands for one
7753           command idenfier.  Affected file silcd/command[_reply].[ch].
7754
7755         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7756           before deleting the data.  Otherwise the hash table will have
7757           freed data in comparison functions.  Affected file is
7758           silcd/command_reply.c.
7759
7760         * Fixed silc_idlist_replace_client_id to add the new entry to
7761           the cache with NULL nickname.  Otherwise there will be invalid
7762           memory as the nickname after the nickname is freed.  Affected
7763           file silcd/packet_receive.c.
7764
7765         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7766           saved into wrong slots because the previous number of entries
7767           was not taken into account.  Affected file silcd/idlist.c.
7768           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7769
7770         * If we are router and we receive JOIN notify to a channel that
7771           does not have any users then notified client is marked as the
7772           channel founder, as it is it.  The affected file is
7773           silcd/packet_receive.c
7774
7775         * Added to the extended hash table API's table_del_*ext functions
7776           the destructor as argument too, so that the caller can decide
7777           which destructor to use or whether to use destructor at all.
7778           Affected file lib/silcutil/silchashtable.[ch].
7779
7780         * Fixed ID Cache purging.  It actually deleted the entries from
7781           the hash table after the data was freed.  The hash table ended
7782           up comparing freed memory.  The affected file is
7783           lib/silccore/silcidcache.c.
7784
7785 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7786
7787         * Fixed Irssi SILC client's KILL command's HELP syntax.
7788
7789         * The USERS command now resolves the detailed user information
7790           if the userinfo field is missing.  Affected file is
7791           lib/silcclient/command_reply.c.
7792
7793         * Do not print error in silc_file_read if the read file does
7794           not exist.  Just silently return NULL.  Affected file is
7795           lib/silcutil/silcutil.c.
7796
7797         * Fixed the silc_log_output to not wine about NULL filename
7798           and to not create some bogus " " filename.  Affected file is
7799           lib/silcutil/silclog.c.
7800
7801 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7802
7803         * Fixed various printing bugs on the user interface in the
7804           Irssi SILC Client.  Minor changes that were forgotten from
7805           the release.
7806
7807 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7808
7809         * Fixed the configure.in.pre and the compilation and distribution
7810           environment to support the new autoconf 2.52.  That version is
7811           now required to compile the CVS trunk.
7812
7813 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7814
7815         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7816           to generally parse user@fqdn format strings.  Affected file
7817           lib/silcutil/silcutil.c.
7818
7819         * Added nickname_format and nickname_force_format fields to the
7820           SilcClientParams structure.  The first one defines the format
7821           for the nicknames that the library will enforce if the receives
7822           multiple same nicknames.  The second one is boolean value and
7823           can be used to force the library to always enforce the format
7824           to the nicknames regardles whether there are multiple nicknames
7825           or not.  This configurable formatting was employed to flexibly
7826           support accessing multiple nicknames from the user interface.
7827           The userinterface can now set the nicknames to what ever format
7828           they prefer.  Affected file lib/silcclient/silcapi.h.
7829
7830           Added function silc_client_nickname_format to the file
7831           lib/silcclient/idlist.c.  It performs the nickname formatting.
7832
7833           Added new field `hostname´ to the SilcClientEntry context.
7834           It holds the hostname of the client.  Affected file is
7835           lib/silcclient/idlist.h.
7836
7837         * Irssi SILC Client sets the nicknames in nick@hostn format.
7838           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7839           irssi/src/silc/core/silc-core.c.
7840
7841           The WHOIS printing now also shows both the real nickname and
7842           the formatted nickname so that user knows how to access the
7843           user if there are multiple same nicknames cached.  Affected
7844           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7845           printing formatting too to take the hostname now as a separate
7846           argument.  The Affected file is
7847           irssi/src/fe-common/silc/modules-formats.[ch].
7848
7849         * Changed the silc_client_get_clients_local to accept the formatted
7850           nickname as argument.  It accepts the real nickname too but the
7851           formatted nickname can be used to find the true entry from
7852           multiple entries.  Affected file lib/silcclient/silcapi.h and
7853           lib/silcclient/idlist.c.
7854
7855         * Added nickname_format_parse field to the SilcClientParams.
7856           It is a callback function provided by the application to parse
7857           the nickname out of the formatted nickname string. The library
7858           calls it to get the nickname from the formatted string. Since
7859           the application generally knows better the format of the nickname
7860           string it parses it instead of the library, even though library
7861           encodes the formatted string.  If the callback function is not
7862           provided then the library will use the string as is.  The
7863           affected file is lib/silcclient/silcapi.h.
7864
7865         * All the nickname strings passed to the client library in
7866           commands are now expected to be formatted nickname strings.
7867           If the command does not support the formatted nickname string
7868           it will assume that the sent string is the actual nickname.
7869           Affected file lib/silcclient/command.c.
7870
7871 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7872
7873         * Added public key authentication support to OPER and SILCOPER
7874           commands in the client library.  Affected file is
7875           lib/silcclient/command.c.
7876
7877 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7878
7879         * Changed the get_auth_methdod client operation to be asynchronous.
7880           It can be async if the application resolves the authentication
7881           method from the server during the negotiation.  Added new
7882           SilcGetAuthMeth completion callback that the application will
7883           call after resolving the authentication method.
7884
7885           Added function silc_client_request_authentication_method that
7886           the application can use to resolve the authentication method
7887           from the server.  Added also SilcConnectionAuthRequest callback
7888           that the library will call after the server has replied.  The
7889           application can call this function if it does not know the
7890           current authentication method.
7891
7892           Affected files are lib/silcclient/client.c and
7893           lib/silcclient/silcapi.h.
7894
7895         * The Irssi SILC client now automatically resolves the authentication
7896           method incase any configuration information is not present (and
7897           currently there never is).  The affected file is
7898           irssi/src/silc/core/client_ops.c.
7899
7900         * Fixed public key authentication from the client library.
7901           Affected file lib/silcclient/protocol.c.  Changed also the
7902           protocol specification about the public key authentication in
7903           the connection authentication protocol.  The actual data to be
7904           signed is now computed with a hash function before signing.
7905
7906         * Fixed the public key authentication from the server as well.
7907           Affected file silcd/protocol.c.
7908
7909         * Removed the mlock()'s from the memory allocation routines.
7910           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7911           not check anymore for the mlock().  Affected file is
7912           configure.in.pre.
7913
7914         * Fixed USERS command in server to allow the execution of the
7915           command for private and secret channels if the client sending
7916           the command is on the channel.  Affected file silcd/command.c.
7917
7918         * Fixed silc_client_get_clients_local to return the clients
7919           count correctly.  It could return wrong value.  Affected file
7920           lib/silcclient/idlist.c.
7921
7922 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7923
7924         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7925           types.  The assembler optimizations seemed not to like 64-bit
7926           data types.  The assmebler optimizations thus are now enabled
7927           also for BSD systems as opposed to only enable them for Linux.
7928
7929         * Do not check for threads at all on BSD systems.  Affected
7930           file configure.in.pre.
7931
7932         * Removed -n and -h options from the Irssi SILC Client since
7933           they are not used in silc.
7934
7935         * Fixed the prime generation to assure that the first digit
7936           of the generated random number is not zero since our conversion
7937           routines does not like number strings that starts with zero
7938           digit.  If zero digit is seen the random number is regenerated.
7939           This caused some corrupted RSA keys when the zero first digit
7940           was met.  Affected file lib/silcmath/silcprimegen.c.
7941
7942 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7943
7944         * Fixed WIN32 configuration in the ./configure script.
7945           Fixed to include xti.h on environments that has it.
7946           Patches by Carsten Ilchmann and andrew.
7947
7948 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7949
7950         * Changed the silc_id_create_client_id to be collision
7951           resistant.  It is now assured that there cannot be created
7952           two same client ID's.  I suspect that some weird bugs in
7953           the server were actually caused by duplicate Client IDs.
7954           Affected file silcd/serverid.[ch].  A router receiving
7955           new ID now also assures and informs the sending server
7956           if the ID caused collision.
7957
7958         * Changed the silc_id_create_channel_id to also assure that
7959           there are no collisions.
7960
7961 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7962
7963         * Statement about ignoring the Mutual Authentication flag when
7964           performing rekey with PFS was a bit misleading.  It is ignored
7965           if it was set in the initial negotiation, it cannot be even
7966           set in the rekey.  Fixed in the ke-auth draft.  Started the
7967           new versions of the protocol drafts in the doc/.
7968
7969 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7970
7971         * Fixed a bug in silc_client_command_identify_save when saving
7972           new channel information.  The channel name was no duplicated
7973           and caused crash on exit.  Affected file is
7974           lib/silcclient/command_reply.c.
7975
7976 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7977
7978         * Fixed the getkey command handling in the server.  Send just
7979           empty OK reply to the sender if the key could not be fetched
7980           (but everything else was ok, like the key just was not available).
7981           Changed the public key parameter to optional in the protocol
7982           specs so that empty OK reply can be sent.  Affected file
7983           silcd/command.c.
7984
7985           Added a message to Irssi SILC client to tell to user if the
7986           server did not return a public key.
7987
7988 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7989
7990         * Fixed a channel key regeneration bug.  It registered new
7991           timeout tasks exponentially until all system resources were
7992           used.  Affected file silcd/server.c.
7993
7994 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7995
7996         * Added the SILC Document generator to the scripts/silcdoc.
7997           It can be used to generate the Toolkit Reference Manual out
7998           of the source tree.  Internally it will also use the RoboDoc
7999           generator now imported in util/robodoc.
8000
8001 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8002
8003         * Added couple of return's in rekey protocol if error orccurred
8004           during the protocol.  The execution must be terminated.
8005           Affected file silcd/protocol.c.  Also, terminate the protocol
8006           always with timeout.
8007
8008 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8009
8010         * The client's Client ID was created initally from the wrong
8011           nickname (it could have been in format nick@host) in the
8012           silc_server_new_client.  Affected file silcd/packet_receive.c
8013
8014 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8015
8016         * Added some SILC_LOG_ERROR's to various error conditions
8017           if client could not be added to ID cache.  Affected files
8018           silcd/packet_receive.c and silcd/server.c.
8019
8020         * When client's sock->user_data is freed, NULL also the
8021           client->router and client->connection pointers.  Added check
8022           for these pointers being NULL to various places around the
8023           code.  Affected file silcd/server.c.
8024
8025         * Added client->data.registered == TRUE checks to various
8026           places around the code to assure that unregistered client's
8027           are not handled when it is not allowed.  Affected file
8028           silcd/server.c.
8029
8030         * Added `bool registered' fields to all
8031           silc_idlist_[server|client]_get_* routines to indicate whether
8032           the fetched client needs to be registered or not.  Affected
8033           file silcd/idlist.[ch].
8034
8035         * Add your own entry as registered to the ID cache in the
8036           server.  Affected file server.c.
8037
8038         * Fixed a bug in silc_server_new_server.  The SilcServer was
8039           set as the new server's context instead of SilcServerEntry.
8040           This naturally caused some weird bugs.
8041
8042         * Added "updated" field the SilcChannelEntry which indicates
8043           the time since the channel entry was last accessed.  This
8044           can be used to determine whether it is necessary to
8045           announce the channel after backup resuming protocol.
8046           Affected files silcd/idlist.[ch].
8047
8048 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8049
8050         * Do not delete the channel rekey task when adding it
8051           for in silc_server_create_channel_key.
8052
8053         * Changed the silc_server_create_channel_key to return
8054           TRUE or FALSE to indicate the success of the channel key
8055           creation.
8056
8057 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8058
8059         * Fixed MSVC++ project files and added missing files to
8060           Makefiles under win32/.
8061
8062 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8063
8064         * Do not add TCP_NODELAY flag if the operating system
8065           does not have it defined.  Affected files are
8066           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
8067
8068         * Fixed buffer overflow from Irssi SILC Client.  Affected
8069           file irssi/src/fe-common/core/themes.c.
8070
8071         * Fixed double free in client library in the file
8072           lib/silcclient/client.c when disconnecting from server.
8073
8074         * Applied double free patch from cras to Irssi SILC client.
8075           Affected files irssi/src/core/[modules/expandos].c
8076
8077         * Fixed the disconnection handling to Irssi SILC Client.
8078           The application must call silc_client_close_connection
8079           in ops->connect client operation in case of failure of
8080           the connection.  Affected file is
8081           irssi/src/silc/core/client_ops.c.
8082
8083         * Do not set sock->protocol to NULL in the function
8084           silc_client_close_connection after executing the protocol's
8085           final callback since the sock might not be valid anymore.
8086           Affected file lib/silcclient/client.c.
8087
8088 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8089
8090         * Do not enable SILC_THREADS if the linking with libpthread
8091           did not happen.  Affected file configure.in.pre.
8092
8093         * Added notion to protocol specification that server must
8094           verify the sent authentication payload with CMODE when
8095           setting the channel founder key.  Implemented it to the
8096           server.  Affected file silcd/command.c.
8097
8098 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8099
8100         * Added _EXTRA_DIST SILC distribution variable to the
8101           distributions file.  It is used to conditionally add extra
8102           files or directories to the specific distribution.  Affected
8103           files ./prepare, Makefile.am.pre and distributions.
8104
8105           Removed the `_' from the start of the distribution names.
8106           It is redundant.
8107
8108         * Added README.WIN32 for instructions to compile the Toolkit
8109           under WIN32.
8110
8111 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8112
8113         * Fixed a double free in disconnection in the server.  Affected
8114           file is silcd/server.c.
8115
8116         * Fixed the lib/silcske/groups.c to work now also with GMP
8117           MP library.  The string conversion did not work when using
8118           specific base and the base is indicated in the string as well.
8119
8120         * Created win32/ directory which now includes MSVC++ specific
8121           stuff so that toolkit (DLLs) may be compiled with MSVC++.
8122           It will appear only in the toolkit distribution
8123
8124 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8125
8126         * Changed the key material distribution function in case when
8127           the hash output is too short.  The data is now concatenated
8128           a bit differently than it used to.  Made the change to the
8129           SKE protocol specification.
8130
8131         * Added better GMP detection to configure.in.pre.  A patch
8132           by salo.
8133
8134 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8135
8136         * Fixed a minor bug in SKE that might cause some problem on
8137           some platforms.  Affected file lib/silcske/silcske.c.
8138
8139         * Added the cookie checking for initiator in the SKE.  It checks
8140           that the responder returns the sent cookie unmodified.  The
8141           affected file is lib/silcske/silcske.c.  Added new SKE
8142           error type INVALID_COOKIE that can be sent during the
8143           negotiation.  Fixed some memory leaks as well.
8144
8145         * Added the "invalid cookie" error message to Irssi SILC client's
8146           message formats.
8147
8148 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8149
8150         * Added `task_max' field to the SilcClientParams to indicate
8151           the maximum tasks the scheduler can handle.  If set to zero,
8152           default values are used.  Affected file lib/silcclient/silcapi.h.
8153
8154         * Fixed memory leaks in silc_client_close_connection.  Affected
8155           file lib/silcclient/client.c.
8156
8157         * Added silc_client_del_client_entry to client library to free
8158           all memory of given client entry.  Affected file is
8159           lib/silcclient/idlist.[ch].
8160
8161         * Added new functions silc_client_del_channel and
8162           silc_client_del_server to delete channel and server entries.
8163           Affected file lib/silcclient/[silcapi.h/idlist.c].
8164
8165         * Removed silc_client_del_client_by_id from silcapi.h.
8166
8167         * Fixed the INFO command to return the server's own info
8168           correctly when querying by Server ID.  Affected file is
8169           silcd/command.c.
8170
8171 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8172
8173         * Removed the non-blocking settings in WIN32 code in the
8174           silc_sock_[read/write] and added SleepEx instead.  Affected
8175           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
8176           of input data is now checked with FIONREAD and ioctlsocket.
8177
8178 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8179
8180         * Call silc_schedule_task_del_by_context in the
8181           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
8182           Affected file lib/silccore/silcprotocol.c.
8183
8184         * Call silc_protocol_cancel for active protocols in the
8185           silc_server_close_connection if the funtion
8186           silc_server_free_sock_user_data has not been called.
8187           Affected file silcd/server.c.
8188
8189         * Generic tasks cannot be deleted using the del_by_fd
8190           task deleting function since generic tasks does not match
8191           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
8192
8193         * Added a notion to SILCOPER help file that the SILCOPER works
8194           only on router server, not on normal server.
8195
8196 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8197
8198         * Added for WIN32 support for the new scheduler as well.
8199           Affected file lib/silcutil/win32/silcwin32schedule.c.
8200
8201         * Fixed the SHA1 implementation to work on various platforms.
8202
8203 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8204
8205         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
8206           API.  It is part of the scheduler now.  Everything else is
8207           as previously but some functions has changed their names.
8208           Checkout the lib/silcutil/silcschedule.h for the interface.
8209           Updated all applications to use the new interface.  Affected
8210           files are lib/silcutil/silcschedule.[ch].
8211
8212 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8213
8214         * Found a bug in the SKE implementation.  The HASH value,
8215           specified by the protocol, was not computed correctly.  The
8216           public key of the responder was not added to the computation
8217           even though it is mandatory.  Affected file lib/silcske/silcske.c.
8218           This unfortunately causes incompatibilities with older
8219           clients and servers.
8220
8221         * Added WIN32 specific network init and uninit functions:
8222           silc_net_win32_init and silc_net_win32_uninit to init and uninit
8223           the Winsock2.  Affected file lib/silcutil/silcnet.h and
8224           lib/silcutil/win32/silcwin32net.c.
8225
8226         * Set the socket always to nonblocking mode on WIN32 after
8227           reading data or writing data.  Affected file is
8228           lib/silcutil/win32/silcwin32sockconn.c.
8229
8230 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8231
8232         * Fixed various compilation problems under WIN32.  Affected
8233           files lib/silcutil/win32/silcwin32thread.c and
8234           lib/silcutil/win32/silcwin32schedule.c.
8235
8236         * Removed all _internal.h #includes from public header
8237           files.  Internal headers must never be included from
8238           public headers.
8239
8240           Removed also the lib/silcske/payload_internal.h file.
8241
8242         * All include files that may be needed (public and some others
8243           included by the public headers) by application developers are
8244           now copied to the ./includes directory.  It does not copy any
8245           internal headers.  Affected file Makefile.defines.pre and all
8246           Makefile.am's under lib/ and subdirs.
8247
8248 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8249
8250         * Do not change the ~/.silc directory's permissions automatically.
8251           Affected file irssi/src/silc/core/clientutil.c.
8252
8253 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8254
8255         * Do not cancel the protocol in silc_server_close_connection
8256           it might cause recursion.  Now cancelled in the function
8257           silc_server_free_sock_user_data.  Affected file silcd/server.c.
8258
8259         * Fixed the silc_server_remove_clients_by_server to regenerate
8260           the channel keys correctly finally.  Added also new function
8261           silc_server_remove_clients_channels to actually do it.
8262           Affected file silcd/server.c.
8263
8264         * Fixed the silc_server_new_channel to not crash by giving
8265           wrong router to the new channel.  Affected file is
8266           silcd/packet_receive.c.
8267
8268 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8269
8270         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
8271           which is given as argument to the silc_client_alloc now.
8272           It can be used to configure the client and set various parameters
8273           that affect the function of the client.
8274
8275         * The USERS command in server did not check whether the channel
8276           is private or secret.  Affected file silcd/command.c.
8277
8278         * Added new argument to the USERS command in protocol specification.
8279           The USERS command now can take the channel name as argument
8280           as well.  Added support for this in client and server and
8281           updated the protocol specs.
8282
8283         * Completed the GETKEY command in client. It can be now used
8284           to fetch also servers public key not only some clients.
8285           Affected files lib/silcclient/command[_reply].c.
8286
8287         * Added silc_client_get_server to return server entry by the
8288           server name.  Affected files lib/silcclient/silcapi.h and
8289           idlist.c.
8290
8291         * Redefined the IDENTIFY command in protocol specification to be
8292           more generic.  It now can be used to query information about
8293           any entity in the SILC Network, including clients, servers and
8294           channels.  The query may be based either the entity's name
8295           or the ID.  Added support for this in both client and server.
8296
8297           Affected files silcd/command.c and lib/silcclient/command.c
8298           and command_reply.c.
8299
8300         * Optimized the WHOIS and WHOWAS commands in the server. Removed
8301           the _from_client and _from_server functions.  Affected file
8302           silcd/command.c.
8303
8304         * Added silc_client_get_channel_by_id_resolve to the file
8305           lib/silcclient/silcapi.h to resolve channel information by
8306           its ID.  Added also silc_client_get_channel_by_id that
8307           does not resolve it from the server.
8308
8309 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8310
8311         * Added SilcServerEntry context into the client library
8312           to represent one server.  The INFO command now allocates
8313           these to save the resolved server info.  For now on the
8314           client library will also keep information about servers,
8315           connected and resolved with INFO.
8316
8317           The INFO command now allocates the SilcServerEntry context
8318           and saves the server info there.  The COMMAND_REPLY in
8319           the INFO now returns the parameters to application in
8320           same order as defined in the protocol specification.
8321
8322           The entries are cached in the client->server_cache.
8323
8324         * The INFO command is now issued after received the Client ID
8325           from the server.  Affected file lib/silcclient/client.c.
8326
8327         * The CMODE_CHANGE notify may now return also an SilcServerEntry
8328           to the application as the mode changer might be server.
8329           It is guaranteed that NULL is not returned anymore to the
8330           application.  Affected file lib/silcclient/client_notify.c.
8331
8332           The ID Type is now also passed to the application so that
8333           it can check whether the returned entry is SilcClientEntry
8334           or SilcServerEntry.
8335
8336           Added new function silc_client_get_server_by_id to return
8337           the server entry by ID.  Affected files are the
8338           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
8339
8340         * Do not create the channel in the Irssi SILC Client when issuing
8341           the JOIN command but when received the sucessful JOIN command
8342           reply.  Otherwise the channel might get created even though we
8343           could not join it.  The Affected file is
8344           irssi/src/silc/core/[silc-channels.c/client_ops.c].
8345
8346         * Fixed a channel joining bug in router.  The router must also
8347           check the channel modes, invite and ban lists etc. when serving
8348           the JOIN command sent by normal server.  Affected file is
8349           silcd/command.c.  The router now resolves the client's
8350           information from the server who sent the JOIN command if it
8351           does not know it, and processes the JOIN command only after
8352           that.
8353
8354         * Changed the SilcCommandCb to take new argument; void *context2.
8355           Affected file lib/silccore/silccommand.h
8356
8357           The second argument in the command callbacks in the server now
8358           includes the SilcServerCommandReplyContext if the command was
8359           called as pending command callback from the command reply.
8360           Otherwise it is NULL. When called as pending the status of the
8361           command reply will be checked and if it was erronous the
8362           error will be sent to the original sender of the command.
8363           This way the client always receives the error messages even
8364           though the server was actually the one who received the error
8365           when it resent the command to router, for example.  Affected
8366           files silcd/command[_reply].[ch].
8367
8368         * Fixed sending WHOWAS command's error message to client if
8369           the requested client could not be found.  It was missing.
8370           silcd/command.c.
8371
8372         * Changed the CMODE and CUMODE commands reply arguments in the
8373           protocol specification.  The Channel ID is now sent in both
8374           of the commands to identify the channel.  Implemented this
8375           new feature to the client and server.  Affected files
8376           lib/silcclient/command_reply.c and silcd/command.c.
8377
8378         * Made better checks for invite and ban lists in the JOIN
8379           command in server.  Affected file silcd/command.c.
8380
8381 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8382
8383         * The server now performs the incoming host IP/DNS lookup
8384           using the silc_socket_host_lookup and thus does not block
8385           the server anymore.  Affected file silcd/server.c.
8386
8387         * Completed the multi-thread support for SILC Scheduler in
8388           the lib/silcutil/silcschedule.c.
8389
8390         * Fixed the configure.in.pre to detect the pthread correctly
8391           on various systems.
8392
8393         * Fixed a deadlock in silc_task_queue_wakeup in the file
8394           lib/silcutil/silctask.c.
8395
8396 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8397
8398         * Added new function silc_schedule_wakeup that is used in
8399           multi-threaded environment to wakeup the main thread's
8400           schduler. It needs to be used when a thread adds a new task
8401           or removes a task from task queues. After waking up, the
8402           scheduler will detect the task queue changes. If threads
8403           support is not compiled in this function has no effect.
8404           Implemented the wakeup mechanism to both Unix and WIN32
8405           systems.  Affected files are lib/silcutil/silcschedule.[ch],
8406           lib/silcutil/unix/silcunixschedule.c and the
8407           lib/silcutil/win32/silcwin32schedule.c.
8408
8409         * Added new function silc_task_queue_wakeup to wakeup the
8410           scheduler by the specified task queue.  Affected file
8411           lib/silcutil/silctask.[ch].
8412
8413         * The silc_socket_host_lookup_start now wakes up the scheduler
8414           after adding the timeout task.  Affected file is
8415           lib/silcutil/silcsockconn.c.
8416
8417         * The silc_socket_host_lookup is synchronous now if the threads
8418           support is not compiled in.  However, the callback is still
8419           called asyncronously through the scheduler, anyway.  Affected
8420           file lib/silcutil/silcsockconn.c.
8421
8422 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8423
8424         * Added new function silc_socket_host_lookup to perform
8425           asynchronous IP and FQDN lookups for the socket connection.
8426           Affected files lib/silcutil/silcsockconn.[ch].
8427
8428 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8429
8430         * Added SILC_MUTEX_DEFINE to define the mutex on environments
8431           that may or may not compile the mutex support in.
8432
8433           Changed the silc_mutex_alloc interface. It allocates the
8434           mutex now to the sent pointer and returns TRUE or FALSE.
8435
8436           Affected file lib/silcutil/silcmutex.h.
8437
8438         * Wrote the SILC Task Queue interface to support multi-threads.
8439           Affected file lib/silcutil/silctask.[ch].
8440
8441         * Wrote the SILC Scheduler to support multi-threads.  Affected
8442           file lib/silcutil/silcschedule.c.
8443
8444 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8445
8446         * Implemented the SILC Mutex API and SILC Thread API for WIN32
8447           in lib/silcutil/win32/.
8448
8449 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8450
8451         * Defined SILC Mutex API and SILC Thread API and implemented
8452           them for Unix.  Affected files are
8453           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
8454           lib/silcutil/unix/silcunixmutex.c and
8455           lib/silcutil/unix/silcunixthread.c.
8456
8457 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8458
8459         * Fixed the silc_server_remove_clients_by_server's channel
8460           key re-generation.  The hash table handling was incorrect
8461           and would not work with many channels.  Affected file is
8462           silcd/server.c.
8463
8464         * Fixed some memory leaks around the server code.
8465
8466         * Rewrote the silc_server_get_users_on_channel to support IPv6
8467           based Client ID's.  Affected file silcd/server.c.
8468
8469         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
8470           specification.  However, a separate document must be written
8471           to define the detailed signing procedure and the payload
8472           associated with the flag.  Defined the flag to the
8473           lib/silccore/silcchannel.h as well.
8474
8475 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8476
8477         * Changed the dynamic tables to static size tables in the
8478           lib/silccrypt/silchmac.c.
8479
8480         * Removed GCC dependencies from the code.  A patch by cras.
8481
8482 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8483
8484         * Do not show the error "Error receiving packet bla bla"
8485           in server if it really was not an error (-2 means that reading
8486           is pending).  Affected file silcd/server.c.
8487
8488 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8489
8490         * Fixed a possible crash in silc_server_remove_clients_by_server
8491           in silcd/server.c.  Fixed there also some memory leaks.
8492
8493         * Fixed the silc_idlist_replace_client_id.  It could replace
8494           wrong key in the hash table.  Affected file silcd/idlist.c.
8495
8496         * Do not check whether there are global users on the channel
8497           if the channel->global_users is FALSE.  Affected functions
8498           silc_server_remove_from_one_channel and
8499           silc_server_remove_from_channels in silcd/server.c.  Also,
8500           do not check if the removed client is local as we can be
8501           sure that global client was not removed from the channel
8502           and checking for global users is not needed.
8503
8504         * The silc_server_remove_clients_by_server now re-generates
8505           the channel keys correctly for those channels that had
8506           clients removed from them.  Affected file silcd/server.c.
8507
8508 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8509
8510         * Found the reason of random crashes in the server.  We weren't
8511           ignoring the SIGPIPE signal (which can be sent in write())
8512           and it crashed the server.  Affected file silcd/silcd.c.
8513
8514 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8515
8516         * Assure that sock->user_data is not NULL in the function
8517           silc_server_packet_send in silcd/packet_send.c.
8518
8519         * Disconnect the remote connection if it could not be added
8520           to any ID lists in the server.  The affected file is
8521           silcd/server.c.
8522
8523         * Check in silc_server_packet_send[_real/dest] that the
8524           socket is not disconnecting and ignore the data if it is.
8525           Affected file silcd/packet_send.c.
8526
8527         * Define inline to __inline on native WIN32 compilation.
8528           Affected file includes/silcwin32.h.
8529
8530         * Added some explicit type casts for inline code since MSVC
8531           require them.  Affected files lib/silcutil/silcbuffer.h,
8532           lib/trq/silcdlist.h and lib/trq/silclist.h.
8533
8534         * Print warning in log files from now on if the packet
8535           decryption fails.  Affected file silcd/server.c.
8536
8537 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8538
8539         * Changed the `say' client operation's interface to accept
8540           new `type' argument to indicate the type of the message sent
8541           by the library.  The application may filter the library's
8542           messages according the type.  The affected file is the
8543           lib/silcclient/silcapi.h.
8544
8545         * Added two new functions to lib/silcclient/silcapi.h:
8546           silc_client_del_client and silc_client_del_client_by_id.
8547           Affected file lib/silcclient/idlist.c.
8548
8549         * Moved the clientincludes.h from includes/ to silc/ and
8550           serverincludes.h from includes/ to silcd/.
8551
8552         * The modes for the CMODE and CUMODE are now passed as
8553           uint32 for application with COMMAND_REPLY.  The affected
8554           file is lib/silcclient/command_reply.c.
8555
8556 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8557
8558         * /WHOIS without arguments shows client's own information.
8559           Affected file lib/silcclient/command.c.
8560
8561         * Changed PING to not accept any arguments.  The specs
8562           says that client can ping only the connected server so
8563           requiring an argument is not needed.  Affected file is
8564           lib/silcclient/command.c.
8565
8566 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8567
8568         * Fixed a fatal bug in private message sending and reception
8569           encryption and decryption when using private message keys.
8570           The implementation was incorrect and did not follow the
8571           specification.  It causd that some of the message were
8572           lost since it did not use the sending and receiving keys
8573           as the protocol suggests.  This has been fixed and will cause
8574           incompatibilities with older clients when sending private
8575           message encrypted with private message keys.  Affected files
8576           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
8577           and various other in Irssi SILC Client.
8578
8579           Added `responder' boolean argument to the functions
8580           silc_client_add_private_message_key[_ske] to indicate when
8581           the key is added as responder or initiator of the key
8582           negotiation.
8583
8584 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8585
8586         * Removed the silc_ske_check_version function and created
8587           a SilcSKECheckVersion callback.  Added also a function
8588           silc_ske_set_callbacks that is now used to set all SKE
8589           callbacks.  The callback functions are not given to
8590           the SKE functions anymore, but this function is used to
8591           set the callbacks.
8592
8593         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
8594
8595         * Added `silc_version' argument to the silc_client_alloc
8596           to define the version of the application for the library.
8597           The library will use the version string to compare it
8598           against the remote host's (usually a server) version
8599           string.  Affected file lib/silcclient/silcapi.h
8600
8601         * Added the KE protocol context to Key Agreement context
8602           in client library so that we can abort the SKE if it
8603           is in process when we get timeout.  Affected file is
8604           lib/silcclient/client_keyagr.c.
8605
8606         * Do not resolve the client ID forever if it returns in the
8607           first time that such client does not exist.  This was done
8608           for example with private message.  Affected file is
8609           lib/silcclient/client_prvmsg.c.
8610
8611 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8612
8613         * Do not add regex.h for WIN32.  The affected file
8614           includes/silcincludes.h.
8615
8616         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
8617           not work yet 100%.  It generates the DLL's automatically
8618           when compiling with --with-win32 under cygwin.
8619
8620 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8621
8622         * lib/contrib/regex.c is not compiled on WIN32.
8623
8624         * Added silc_net_get_socket_opt function to the
8625           lib/silcutil/silcnet.h.
8626
8627         * Added includes/silcwin32.h for WIN32 specific includes
8628           and definitions.
8629
8630         * Do not use ptime structure or any of the posix process
8631           functions on WIN32 in lib/silccrypt/silrng.c.
8632
8633         * Added silc_gettimeofday to provide generic function
8634           for struct timeval on all platforms.  Added the function
8635           to lib/silcutil/silcutil.h.
8636
8637 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8638
8639         * Moved the lib/silccore/silcsockconn.[ch] to the utility
8640           library as they clearly belong there.  As a plus side we
8641           can make the actual socket connection routines platform
8642           specific.
8643
8644           Added also new generic function silc_socket_read and
8645           silc_socket_write (that used to be silc_packet_[read/write].
8646           The implementation of these are platform specific.
8647
8648         * Added WIN32 specific routines of silc_socket_[read/write]
8649           to lib/silcutil/win32/silcwin32sockconn.c.
8650
8651 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8652
8653         * Added preliminary support for native WIN32 compilation under
8654           cygwin (using the -mno-cygwin option for GCC) to the
8655           ./configure.in.pre.  The --with-win32 now prepares the
8656           compilation for native WIN32.
8657
8658         * Rewrote the SILC Scheduler interface in the file
8659           lib/silcutil/silcschedule.h.  The scheduler is now context
8660           based and does not have anymore any global static scheduler.
8661           Moved the Unix scheduler to the lib/silcutil/unix/ directory
8662           and created lib/silcutil/win32 directory for WIN32 based
8663           scheduler.
8664
8665         * Added Unix specific network routines to the
8666           lib/silcutil/unix/silcunixnet.c and the old
8667           lib/silcutil/silcnet.c includes now only generic routines.
8668
8669           Added WIN32 specific network routines to the
8670           lib/silcutil/win32/silcwin32net.c.
8671
8672         * Added Unix specific utility functions from the
8673           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
8674
8675         * Added WIN32 SILC Scheduler to the file
8676           lib/silcutil/win32/silcwin32schedule.c. The code is of course
8677           untested.
8678
8679 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8680
8681         * Do not handle JOIN notify in the server if the target client
8682           is not registered (idata->registered == FALSE).  The affected
8683           file is silcd/packet_receive.c.
8684
8685         * Update the nickrec->founder in event_cumode in the Irssi SILC
8686           client.  Affected file irssi/src/silc/core/silc-channels.c.
8687
8688         * Fixed the CUMODE_CHANGE notify handling in the server when
8689           server and router are announcing their clients on channels.
8690           Now the mode changes are saved and notified correctly.  The
8691           affected file is /silcd/packet_receive.c.
8692
8693         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
8694           They really did not replace the cache entry in the ID Cache.
8695           Now they do that.  Affected file silcd/idlist.c.
8696
8697         * Fixed the KICK notify handling in the Irssi SILC client to
8698           update the channel records so that the kicked client does not
8699           appear to be on the channel.  The affected file is
8700           irssi/src/silc/core/silc-channels.c.
8701
8702         * Always update the conn->current_channel when executing command
8703           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
8704
8705         * Fixed the KILL notify handling in Irssi SILC client to remove
8706           the killed client on all channels.
8707
8708 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8709
8710         * Fixed the silc_parse_command_line to remove extra spaces
8711           from the start and end of the arguments.  Affected file is
8712           lib/silcutil/silcutil.c.
8713
8714         * Cancel and free any active protocol in the function
8715           silc_server_close_connection.  Affected file silcd/server.c.
8716
8717         * Cancel and free any active protocol in the function
8718           silc_client_close_connction.  Affected file is
8719           lib/silcclient/client.c.
8720
8721         * Do not execute the KILL command for clients that are in
8722           history (ie. they are not in the network).  Affected file is
8723           silcd/command.c.
8724
8725         * Fixed KILL notify handling, client does not crash anymore.
8726           Affected file irssi/src/silc/core/silc-channels.c.
8727
8728         * Reduced the default packet buffer size from 2048 to 1024 in
8729           lib/silccore/silcpacket.c.
8730
8731         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
8732           counter to the SKE context that is incresed when the SKE library
8733           performs async operation outside the library.  If the outside
8734           process frees the SKE context and FREED status will be set
8735           and the library will detect after the sync operation that the
8736           libary is freed.  The affected files are
8737           lib/silcske/silcske[_status].[ch].
8738
8739         * Resolve the client entry information in the function
8740           silc_client_channel_message to assure that NULL pointer is not
8741           passed as client entry to the application. */
8742
8743         * Fixed the task timeout calculation to assure that there is
8744           never negative timeouts.  The affected file is
8745           lib/silcutil/silcschedule.c.
8746
8747         * Fixed the channel user mode notification sending in server.
8748           It was sent point-to-point to the router (or to server by router)
8749           but it needs to be destined to a channel.  The routines now
8750           supports sending the channel user mode notifys to the channels
8751           when announcing clients and channels.  Affected files are
8752           silcd/server.c and silcd/packet_receive.c.
8753
8754         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8755           It did not actually replace the old channel entry in the cache.
8756           Affected file lib/silcclient/client_notify.c.
8757
8758 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8759
8760         * Fixed a possible crash in silc_packet_send_prepare.  It now
8761           assures always that there is enough space in the buffer and
8762           at the tail area of the buffer (for MAC).
8763
8764           Fixed the inbound buffer reallocation in silc_packet_read.
8765           It was old code and did not handle the reallocation correctly.
8766           Affected
8767
8768           The affected file is lib/silccore/silcpacket.c.
8769
8770         * Fixed buffer overflow in silc_parse_nickname in the file
8771           lib/silcutil/silcutil.c.
8772
8773 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8774
8775         * make install generates new server keys only if there is not
8776           keys already.
8777
8778 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8779
8780         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8781           Added check that if the NOREPLY is set then we will not send
8782           the away message.  This avoids infinite loop of away messages
8783           if both clients are away.  The affected file is
8784           lib/silcclient/client_prvmsg.c.
8785
8786         * Fixed client crash if /NICK was given without arguments.
8787           Affected file lib/silcclient/command.c.
8788
8789         * Server does not send the invite list in INVITE command back
8790           to the client if the list was not altered.  Added this notion
8791           to the protocol spec as well.  Affected file silcd/command.c.
8792
8793           Fixed possible crash in INVITE command by checking the
8794           value of silc_server_get_client_route command.
8795
8796         * Fixed the INVITE notify type handling.  The arguments are now
8797           taken in correct order and client does not crash.  The affected
8798           file is irssi/src/silc/core/silc-channels.c.
8799
8800           Removed the "Inviting xxx to channel" message from the
8801           client library away and let the application handle it.
8802           Affected file lib/silcclient/command.c.  Added that message
8803           to Irssi SILC client's message formats.
8804
8805         * Fixed CMODE command crash in client.  It now checks the
8806           amount of arguments correctly and does not crash.  The affected
8807           file is lib/silcclient/command.c.
8808
8809         * Do not create new channel automatically in silc_channels_join
8810           but check whether the channel by that name already exists.
8811           Affected file irssi/silc/core/silc-channels.c.
8812
8813         * Do not send the SERVER_SIGNOFF to router if the disconnected
8814           entity was the router.  Affected file silcd/server.c.
8815
8816         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8817           SILC client as it was missing from there.
8818
8819           Added the handling of the KICK notify to the Irssi SILC client
8820           as it was missing.  Added "you have been kicked" message to
8821           Irssi SILC client's message modules formats.
8822
8823           Added the handing of the KILL notify to the Irssi SILC client
8824           as it was missing.  Added the kill message module formats
8825           as well.
8826
8827           The affected file is irssi/src/silc/core/silc-channels.c.
8828
8829         * The router did not save the channel mode the server announced.
8830           Affected file silcd/packet_receive.c.
8831
8832         * Fixed a possible crash in INFO command in server.  If the
8833           server did not provide the server info it crashed.  Affected
8834           file silcd/command.c.
8835
8836 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8837
8838         * Fixed the GETKEY command in the server to check also the
8839           global list.  Otherwise the GETKEY would not work correctly
8840           in normal SILC server.  Affected file silcd/command.c.
8841
8842 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8843
8844         * Fixed GETKEY crash, it crashed if the command did not succseed.
8845
8846 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8847
8848         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8849           is now real and not just an macro interface to GMP.
8850
8851           Removed the entire GMP from the source tree and imported new
8852           NSS MPI library instead.  Reason for removing GMP is that it is
8853           extremely large and compiles extremely slow.  The NSS MPI
8854           is only a few files and compiles in less than 10 seconds.
8855           The speed is also about the same as GMP.  The MPI is imported
8856           to lib/silcmath/mpi.
8857
8858           If the system has GMP installed we will still use the GMP.
8859           If it is not then the NSS MPI will be compiled.
8860
8861 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8862
8863         * Merged a long nickname (127 characters long) crash bugfix from
8864           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8865
8866         * Merged a freed memory reference bugfix from Irssi CVS tree.
8867           Affected file irssi/src/core/commands.c.
8868
8869 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8870
8871         * Added the server's public key sving and verification to the
8872           server when performing the SKE.  This was missing and the
8873           remote server's (or router's) public key was accepted without
8874           checking whether we have it previously or trust it at all.
8875           Affected file silcd/protocol.c.
8876
8877 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8878
8879         * Check in the silc_server_timeout_remote if protocol is active
8880           and make sure that the protocol's final callback is called so
8881           that all memory if freed.  Affected file silcd/server.c.
8882
8883 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8884
8885         * silc_server_whois_send_reply crashed the server if the nickname
8886           was 127 characters long.  Affected file silcd/command.c.
8887
8888 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8889
8890         * Added sanity check to the silc_server_new_client. If the hostname
8891           is provided inside username then check that the provided hostname
8892           really is the same as the resolved one.  If the hostname was not
8893           resolved then check it from the public key.  Affected file is
8894           silcd/packet_receive.c.
8895
8896         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8897           if the server disconnected us and the connection is not valid
8898           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8899
8900         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8901           the library to the lib/silcutil/silcutil.[ch].
8902
8903 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8904
8905         * Close log file after open.  Affected file
8906           lib/silcutil/silclog.c.
8907
8908         * Check whether sock == NULL in silc_client_send_packet and return
8909           if it is.  Affected file lib/silcclient/silcclient.c.
8910
8911         * Check rec->entry == NULL in the Irssi SILC Client before
8912           sending the channel message.  Affecte file is
8913           irssi/src/silc/core/silc-servers.c.
8914
8915 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8916
8917         * Merged a splitted window bugfix from Irssi CVS tree.  The
8918           affected file is irssi/src/fe-text/textbuffer-view.c.
8919
8920         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8921           It did not print nickname.
8922
8923         * Improved the distributions system a bit.
8924
8925 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8926
8927         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8928           irssi/src/fe-text/gui-window.c.
8929
8930         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8931           to in-active server.  The affected file is
8932           irssi/src/silc/core/client_ops.c.
8933
8934         * Resolve the client in USERS command reply if the entry does
8935           not have username resolved.  The affected file is
8936           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8937           command to WHOIS command to really resolve stuff.  The USERS
8938           is not used any more in any critical section so WHOIS can
8939           be used even though it might be slower than IDENTIFY.
8940
8941         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8942           format.
8943
8944 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8945
8946         * Changed the protocol API a bit more consistent in the
8947           lib/silccore/silcprotocol.[ch].
8948
8949         * Changed the following headers to ROBODoc format:
8950
8951                 lib/silccore/silcpayload.h
8952                 lib/silccore/silcprotocol.h
8953                 lib/silccore/silcsockconn.h
8954
8955           All core library headers are now formatted.
8956
8957 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8958
8959         * Fixed a bug in Irssi SILC client; do not show that you are
8960           server/router operator if you really are not.  Affected file is
8961           irssi/src/silc/core/client_ops.c.
8962
8963         * Renamed silc_command_free_payload to silc_command_payload_free.
8964           Affected file lib/silccore/silccommand.h
8965
8966         * Added silcmath.h to include the prototoypes of various routines
8967           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8968           silcprimegen.h.
8969
8970         * Changed the following headers to ROBODoc format:
8971
8972                 lib/silccore/silcchannel.h
8973                 lib/silccore/silccommand.h
8974                 lib/silccore/silcid.h
8975                 lib/silccore/silcidcache.h
8976                 lib/silccore/silcmode.h
8977                 lib/silccore/silcnotify.h
8978                 lib/silccore/silcpacket.h
8979                 lib/silcmath/silcmath.h
8980
8981 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8982
8983         * Added checking to the server code not to start the server if
8984           ciphers and stuff are not configured properly.  Affected files
8985           silcd/serverconfig.[h] and silcd/server.c.
8986
8987         * Changed the layout of the header files of the public interfaces
8988           in the SILC libraries.  The new layout supports ROBODoc
8989           documentation tool (and some others) so that it is easy to create
8990           a library reference manual.  All the other headers and source
8991           code must still follow the CodingStyle document.  Also source
8992           code must not include these ROBODoc stuffs, only the headers.
8993           Furthermore, all public interface headers must now be named
8994           by using `silc' prefix, example: silcapi.h, silccipher.h.
8995           Some files were renamed due to this.  All the other headers
8996           must not be used as public interfaces.  I will update the
8997           CodingStyle document later.  Changed following headers, so far:
8998
8999                 lib/silcclient/silcapi.h
9000                 lib/silccore/silcauth.h
9001                 lib/silccore/silcprivate.h
9002                 lib/silccrypt/silcdh.h
9003
9004 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9005
9006         * Updated TODO.
9007
9008         * Removed silc_client_packet_send_flush from the client library
9009           as it is not needed.  Affected file lib/silcclient/client.[ch].
9010
9011         * Added printing of message of unresolved authentication method
9012           to the Irssi SILC client.  Added it to the module formats.
9013           Removed the same message from the client library.
9014
9015 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9016
9017         * Added new distribution feature, DISTLABEL.  Every distribution
9018           can define own preprocessor label that can be used in the
9019           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
9020           file distributions, acconfig.h.pre and prepare.
9021
9022 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9023
9024         * Added Makefile.defines_int to include the actual definitions
9025           for Makefile.defines.in.  Tested the new distribution system,
9026           created distributions and tested installation.
9027
9028         * Added AWAY message printing to the Irssi SILC client.  Added
9029           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
9030
9031         * Added SCONNECT command to call the SILC's CONNECT command.
9032           Cannot use CONNECT directly since Irssi uses that internally.
9033           Affected file irssi/src/silc/core/silc-servers.c.
9034
9035           Added ACTION local command.  It is same as ME command but takes
9036           the channel as mandatory argument.
9037
9038           Rewrote some of the Irssi's help files to suite for SILC
9039           protocol.
9040
9041 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9042
9043         * Added Makefile.defines[.in] that should for now on be included
9044           in all Makefile.am file in the source tree.  That file includes
9045           all common compilation definitions for SILC source tree.
9046
9047 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9048
9049         * Minor changes to the ./prepare script to change the package
9050           name according the distribution name to the configure.in.
9051
9052 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9053
9054         * Created new distribution system.  Added file `distributions'
9055           that defines all the distributions that can be created out of
9056           the SILC source tree.  The ./prepare script now reads that
9057           file to determine how to prepare the distributions.  The
9058           first argument to the ./prepare is the name of the distribution
9059           and second is the version of the distribution.  If given
9060           without arguments it creates the default (toolkit) distribution
9061           with the default version (defined in ./prepare).
9062
9063           All Makefile.am files that are subject to the distributions
9064           are now named as Makefile.am.pre.  These are ./Makefile.am
9065           and lib/Makefile.am.  Others may be changed later.
9066
9067 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9068
9069         * Added invite list, ban list, some key management and connection
9070           error message printing to module formats in the Irssi SILC client.
9071
9072         * Added new silc_client_set_away_message to set the away message
9073           that is back to the person who sent private message.  The
9074           affected file lib/silcclient/silcapi.h and the
9075           lib/silcclient/client_prvmsg.c.
9076
9077 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9078
9079         * Fixed the private message sending in the Irssi SILC client,
9080           added local command KEY to the Irssi SILC client.
9081
9082           Added key management and key agreement message formats to the
9083           irssi/src/fe-common/silc/module-formats.[ch].
9084
9085           Added USERS (alias WHO) printing, server/router operator
9086           indication and LIST command printing to the module formats.
9087
9088 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9089
9090         * Fixed channel joining notify handling, cumode notify handling
9091           from Irssi SILC client.
9092
9093         * Added SILC specific module-formats to the Irssi SILC client so
9094           that SILC specific message hilighting, colors etc is possible.
9095           Affected file irssi/src/fe-common/silc/module-formats.[ch].
9096
9097           Added channel mode, channel user mode, actions, notices,
9098           whois and whowas printing to the the module-formats.c.
9099
9100         * Fixed a bug in channel deletion in the server.  The channel
9101           is not left to the cache even if the channel founder auth mode
9102           is set when there are no users anymore on the channel.  Affected
9103           file silcd/server.c.
9104
9105         * The silc_net_localhost now resolves the entire hostname including
9106           the domain name.  Affected file lib/silcutil/silcnet.c.
9107
9108 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9109
9110         * Changed the ask_passphrase client operation to be ascynchronous.
9111           It has now a completion callback and a context that the
9112           application must call after it has got the passphrase from
9113           the user.  Affected files lib/silcclient/silcapi.h,
9114           lib/silcclient/protocol.c, lib/silcclient/command.c and
9115           silc/client_ops.c.
9116
9117           Added SilcAskPassphrase callback that the application calls
9118           to deliver the passphrase to the library.
9119
9120         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
9121           The public key verification and especially a certificate
9122           verification is asynchronous procedure.
9123
9124           Added new SILC_SKE_STATUS_PENDING status to indicate the
9125           request is pending and a callback will be called to finalize
9126           the request.
9127
9128           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
9129           indicate that remote end did not send its public key (or
9130           certificate), even though we require it.  Added check for this
9131           condition in the SKE.  This was a security bug, now fixed.
9132
9133           Defined new SilcSKEVerifyCbCompletion callback that is called
9134           when the verification process is completed.
9135
9136           The affected files lib/silcske/silcske_status.h and
9137           lib/silcske/silcske.[ch].
9138
9139         * Changed the verify_public_key client operation to be async
9140           as well.  Defined SilcVerifyPublicKey callback that is used to
9141           indicate the success of the public key verification process.
9142
9143           Changed the server and client to use the new async client
9144           operations.
9145
9146         * Changed the Irssi SILC client's internal scheduler to be called
9147           twice as many times as it used to be.  As a result the client
9148           should be a bit faster now.  Affected file is
9149           irssi/src/silc/core/silc-core.c.
9150
9151         * Added support to Irssi SILC client of asynchronous public key
9152           verification and passphrase inquiry.  Affected file is
9153           irssi/src/silc/core/silc-core.c.
9154
9155 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9156
9157         * Do not say "You have left channel %s" in client library.
9158           Moved it to the application.  Affected files are
9159           lib/silcclient/command.c and silc/client_ops.c.
9160
9161         * Fixed silc_client_get_clients.  Command context was not
9162           duplicated and was freed memory in the callback.  Affected
9163           file lib/silcclient/idlist.c.
9164
9165         * Do not say "you are now talking..." on JOIN command in the
9166           client library.  The appliation must handle it.
9167
9168         * Do not say ".. changed topic to" in command reply in the
9169           client libary.  The application must handle it.
9170
9171         * Fixed TOPIC command sending in the client library.
9172
9173         * Fixed a memory leak in silc_client_command_free in the file
9174           lib/silcclient/command.c.
9175
9176 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9177
9178         * Imported a modified version of Irssi client to the source tree.
9179           The Irssi will be used to create a new client called
9180           Irssi SILC.  Imported to irssi/.
9181
9182           Added silc_core_init_finish function to the Irssi.  Affected
9183           file irssi/configure.in.
9184
9185           A lot changes in the Makefile.ams around the irssi tree.
9186
9187 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9188
9189         * Do not rehash if the new size is same as the old size of the
9190           hash table, in the silc_hash_table_rehash*.  The affected file
9191           lib/silcutil/silchashtable.c.
9192
9193         * Replaced hash_table_del_by_context calls from the server
9194           (when channel->user_list and client->channels) to the
9195           hash_table_del as it is sufficient and faster.
9196
9197 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9198
9199         * Added silc_hash_table_list, silc_hash_table_get and the
9200           SilcHashTableList structure to provide an alternative way to
9201           traverse the hash table.  The affected files are
9202           lib/silcutil/silchashtable.[ch].
9203
9204         * Changed the server's idlist routines to use the hash table
9205           routines to optimize the code.
9206
9207 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9208
9209         * Replaced the client entry's `channel' list and channel entry's
9210           `user_list' list to hash tables for optimized lookup.  Changed
9211           the code to use the hash table interface around the code.
9212           Affected file lib/silcd/idlist.[ch].
9213
9214         * Added `auto_rehash' boolean argument to the function
9215           silc_hash_table_alloc to indicate whether the hash table should
9216           auto-rehash when it thinks is appropriate time.  It will
9217           increase the hash table size if the there is twice as much
9218           entries in the table than the size of the table, and will
9219           decrease the size if there are twice as less entries than
9220           the size of the table.
9221
9222 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9223
9224         * Fixed silc_xxx_get_supported to not crash at some circumstances.
9225
9226 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9227
9228         * silc_idcache_purge_by_context deletes the entry now by context
9229           as it is supposed to do.  Affected file lib/silccore/idcache.c.
9230
9231         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
9232           client is not anymore valid (WHOWAS givens the info) and not
9233           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
9234
9235 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9236
9237         * Removed the `data' and `data_len' arguments from the ID Cache
9238           interfaces and added `name' argument.  ID Cache does not handle
9239           anymore the binary data only a names associated with given ID.
9240
9241         * When hashing a Client ID with silc_hash_id the entire ID is
9242           not hashed anymore, instead only the hash of the Client ID is
9243           hashed.  This way we can access the Client ID from the cache
9244           with Client ID but with the hash of the ID (which is a hash of
9245           the nickname) as well without any difference in performance.
9246
9247           Added also silc_idcache_find_by_id_one_ext to do one on one
9248           searching when we have the actual ID.  Added also function
9249           silc_hash_client_id_compare.  The affected files are
9250           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
9251
9252         * When hashing the name associated with a ID it is always done
9253           in lowercase.  This way we can access the cache without worrying
9254           about case-sensitivity, even though, for example nicknames are
9255           case sensitive.
9256
9257         * Fixed a bug in server with channel message sending.  It put
9258           wrong ID type as destination ID.  The affected file
9259           silcd/packet_send.c.
9260
9261         * silc_idcache_del_by_context now deletes from all hash tables
9262           by context.  Affected file lib/silccore/idcache.c.
9263
9264 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9265
9266         * Changed the client library to use the new ID Cache interface.
9267           Changes around the source tree.
9268
9269         * Added silc_hash_table_rehash_ext to rehash with specific
9270           hash function.  Affected file lib/silcutil/silchashtable.[ch].
9271
9272         * Added silc_hash_string_compare to compare two strings in the
9273           hash table.  Affected file lib/silcutil/silcutil.[ch].
9274
9275 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9276
9277         * Added new function silc_idcache_del_by_context into the
9278           lib/silccore/idcache.[ch].
9279
9280         * Changed the server's ID list routines to use the new ID Cache
9281           interface.  Changes around the source tree.
9282
9283 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9284
9285         * Added silc_hash_table_del[_by_context]_ext functions in to the
9286           lib/silcutil/silchashtable.[ch].
9287
9288           Removed silc_hash_table_find_all* routines and added new
9289           silc_hash_table_find_foreach to replace them.
9290
9291           Added silc_hash_table_replace_ext function as extended
9292           replacing function.  Separated the simple hash table interface
9293           from the extended hash table interface in the file
9294           lib/silcutil/silchashtable.h.
9295
9296         * Fixed minor bugs and changed it to use some of the new
9297           hash table functions in lib/silccore/idcache.c
9298
9299 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9300
9301         * Added new function silc_hash_table_find_all to return all keys
9302           in the hash table by the specified key.  As the hash table is
9303           collision resistant it also makes it possible to have several
9304           duplicate keys in the hash table.  This function may be used to
9305           find all of the keys from the hash.
9306
9307           Added user_context arguments to the SilcHashFunction,
9308           SilcHashCompare and SilcHashDestructor to deliver user specified
9309           context.
9310
9311           Added new fuctions silc_hash_table_find[_all]_ext to do
9312           extended lookup with specified hash and compare functions and
9313           specified user contexts.
9314
9315           Added new function silc_hash_table_add_ext to add the key
9316           with specified hash function and user context.
9317
9318           Added new function silc_hash_table_foreach to traverse all
9319           entrys in the hash table.  Added SilcHashForeach callback
9320           function.
9321
9322           Added new function silc_hash_table_del_by_context to delete
9323           the entry only if the context associated with the key matches.
9324
9325           Affected files are lib/silcutil/silchashtable.[ch].
9326
9327         * Removed silc_hash_[server/client/channel]_id and added just
9328           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
9329           silc_hash_id_compare to compare two ID's using as the hash table
9330           comparison function.  Added also silc_hash_data to hash
9331           binary data and silc_hash_data_compare to compare it.
9332
9333         * Removed silc_idlist_find_client_by_hash as it is not needed
9334           anymore.  Affected file silcd/idlist.[ch].
9335
9336         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
9337           to use internally the SilcHashTable.  The new ID Cache is a lot
9338           faster than the old one.  Some of the ID Cache interface was also
9339           rewritten and obsolete and stupid functions were removed.
9340
9341 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9342
9343         * Added entry_count field to the SilcHashTable to keep the number
9344           of the entries in the table.  Implemented the function
9345           silc_hash_table_rehash.  Added new function
9346           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
9347
9348           Fixed a minor bug in silc_hash_table_free.
9349
9350         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
9351           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
9352           into the lib/silcutil/silcutil.[ch].
9353
9354 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9355
9356         * Implemented a collision resistant hash table into the
9357           lib/silcutil/silchashtable[ch].  See the header and the source
9358           for the SilcHashTable API.
9359
9360 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9361
9362         * Merged dotconf version 1.0.2 into lib/dotconf.
9363
9364 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9365
9366         * Do not compile anything in lib/silcsim/* if the SIM support
9367           is not enabled.  The tree should now compile without problems
9368           under cygwin.
9369
9370 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9371
9372         * Compiled the SILC under cygwin.  Compiled and tested briefly
9373           without problems.  More tests needed.  The SIMs didn't compile
9374           though.
9375
9376         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
9377
9378         * Fixed possible crash in silc_get_username in the
9379           lib/silcutil/silcutil.c.
9380
9381 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9382
9383         * Fixed a va_arg in silc/client_ops.c.
9384
9385         * Oops, RC5 routines were named AES and caused some problems
9386           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
9387
9388 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9389
9390         * Added new SilcIDIP structure into the lib/silccore/id.h and
9391           replaced the old `ip' fields from all SILC ID's to that type.
9392           This is a step towards IPv6 support.
9393
9394           The silc_id_get_len takes now the ID as an extra argument.
9395           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
9396           both IPv4 and IPv6 based ID's.
9397
9398           The affected files are lib/silccore/id.[ch] and other files
9399           around the tree using these routines.
9400
9401         * Removed the ID length arguments in server from various
9402           silc_server_send_notify_* routines -> they are not needed
9403           anymore.
9404
9405 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9406
9407         * Fixed memory leak in silc_encode_pem_file in the file
9408           lib/silcutil/silcutil.c.
9409
9410 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9411
9412         * Check minor version as well in the SKE.  Affected files are
9413           silcd/protocol.c and lib/silcclient/protocol.c.
9414
9415         * Added --identifier option to the server so that an identifier
9416           can be when creating the public key for the server.  Affected
9417           file is silcd/silcd.c.
9418
9419         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
9420           lib/silccrypt/silcpkcs.c.
9421
9422 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9423
9424         * Register default ciphers and stuff when using -C option with
9425           the server.  Affected file sildc/silcd.c.
9426
9427         * Put back the servers public key filename format, it is better
9428           than the new one.  For now, the client keys are saved with the
9429           new filename format.  The affected file silc/client_ops.c.
9430
9431         * Implemented the Cipher API for the rest of the ciphers that
9432           did not implement it or implemented it the wrong way.
9433
9434 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9435
9436         * Register default ciphers and stuff when using the -S option
9437           in the client.  Affected file silc/silc.c.  Same also when
9438           creating new key pair with -C option.
9439
9440 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9441
9442         * Fixed the silc_verify_public_key client operation function to
9443           save the public keys differently.  The fingerprint is now
9444           used as filename and not the hostname.  This way also the
9445           client keys are saved uniquely and not with hostnames.  The
9446           affected file is silc/client_ops.c.
9447
9448         * Trimmed the silc_hash_fingerprint function to remove extra
9449           whitespaces from the end of the fingerprint.  The affected
9450           file is lib/silccrypt/silchash.c.
9451
9452         * Updated TODO.
9453
9454         * Added silc_cipher_register_default function to register all
9455           default ciphers.  It can be used when configuration files
9456           does not exist and the application does not want any specific
9457           ciphers in any specific order.
9458
9459           The SilcDList is now used as silc_cipher_list dynamically
9460           allocated cipher list.  Removed the static list all together
9461           and now all ciphers must be allocated to the dynamic list.
9462           The silc_cipher_alloc routine was changed to check only the
9463           dynamic list.
9464
9465           All silc_cipher_* routines that used to return int returns
9466           now bool.
9467
9468           The affected files lib/silccrypt/silccrypt.[ch].
9469
9470         * The same thing was done to silc_hash_* as for silc_cipher_*
9471           routines.  Affected files lib/silccrypt/silchash.[ch].
9472
9473         * The same thing was done to silc_pkcs_* as for silc_cipher_*
9474           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
9475           Added also silc_pkcs_[un]register[_default] functions.
9476           Removed the data_context from the PKCS API.
9477
9478         * Added silc_hmac_register_default function to register default
9479           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
9480           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
9481           to unregister all hmacs at once.
9482
9483         * Register the default ciphers, hash functions, PKCSs and HMACs
9484           if client's configuration file does not exist.  The affected
9485           file silc/silc.c.
9486
9487         * The client did not load the hash functions from the SIM
9488           modules at all.  Added support for this.  Affected file is
9489           silc/clientconfig.c.
9490
9491         * When decoding public key with silc_pkcs_public_key_decode, check
9492           the supported algorithm only if PKCS are registered.  Affected
9493           file lib/silccrypt/silcpkcs.c.  The same was done with the
9494           silc_pkcs_private_key_decode.
9495
9496         * Fixed the SILC List routines to keep the list always in order.
9497           It used to change the list's order when traversing the list but
9498           not it preserves the order.  Affected file lib/trq/silclist.h.
9499
9500 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9501
9502         * Added the client library to use the SilcSocketConnection's
9503           reference counter (by silc_socket_dup) to prevent the bug that
9504           the socket object may be freed underneath async operation.
9505
9506         * The name resolv library checking fixes in the configure.in.pre.
9507           The patch by salo.
9508
9509         * Created new version of the protocol drafts for future
9510           development. The -03 drafts are the ones that will be changed
9511           in the trunk now and the -02 will remain as they are.
9512
9513         * Send list of CUMODE notifys to the router when announcing
9514           the channel users to the router.  Affected file silcd/server.c.
9515           If the router receiving channel founder CUMODE for a channel
9516           that already has channel founder it will send CUMODE notify
9517           to the sender to remove the channel founder rights from the
9518           announced client.  Affected file silcd/packet_receive.c.
9519
9520         * The CUMODE notify may now use Server ID as well as the entity
9521           who changes the mode.  Updated protocool specs.
9522
9523         * Updated INSTALL and README files.
9524
9525 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9526
9527         * New web pages in the http://silc.pspt.fi.  The pages was
9528           designed by salo.
9529
9530         * Updated CREDITS.
9531
9532 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9533
9534         * Implemented the [DenyConnectin] config section in the server.
9535           Added silc_server_config_denied_conn to check whether incoming
9536           connection is denied.  Affected file silcd/serverconfig.[ch].
9537
9538         * Do not check the ports when checking the incoming configuration
9539           data if the port is 0, meaning any.  Affected file is
9540           silcd/serverconfig.c.
9541
9542 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9543
9544         * Fixed buffer overflow in silc_string_compare in the file
9545           lib/silcutil/silcutil.c.
9546
9547         * Fixed double free in silc_server_command_leave in the file
9548           silcd/command.c.
9549
9550 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9551
9552         * Fixed the version checking in the server.  Affected file is
9553           silcd/protocol.c.
9554
9555 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9556
9557         * Fixed the configuration data fetching when accepting new
9558           connections in the server.  Affected file silcd/server.c.
9559
9560 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9561
9562         * Added `sender_entry' argument to the function
9563           silc_server_packet_relay_to_channel so that we can check
9564           whether some destination actually belongs to the same route
9565           the sender belongs (ie, we must not resend the packet to the
9566           sender).  Affected file silcd/packet_send.[ch].
9567
9568         * Added `servername' field to the SilcClientEntry in the server
9569           to hold the name of the server where client is from.  Affected
9570           file is silcd/idlist.h.
9571
9572 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9573
9574         * Moved the channel message encrypting in the router betwen
9575           router connections from silc_server_channel_message to the
9576           silc_server_packet_relay_to_channel since we want to check
9577           whether we have anybody channel before encrypting anything.
9578           Affected files silcd/packet_[receive/send].c.
9579
9580 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9581
9582         * Fixed the [AdminConnection] server config section to support
9583           multiple entries.  Affected file silcd/serverconfig.c.
9584
9585         * Added support into the server to check the validity of the
9586           incoming connection before executing any KE or authentication
9587           protocols.
9588
9589         * The connection configuration is now saved to the KE and
9590           connection auth protocol contexts and not fetched anymore in
9591           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
9592
9593         * The local hosts listenning address and port is also resolved
9594           now when starting the server.  We want to have the socket object
9595           to include the real address and port for the listener.  Added
9596           new function silc_net_check_local_by_sock into the files
9597           lib/silcutil/silcnet.[ch].
9598
9599         * Fixed a broadcast bug in server -> do not broadcast if we
9600           are standalone.
9601
9602         * Fixed a routing bug.  Do not route broadcast packets ever.
9603           Broadcast packets must be processed always and not routed since
9604           they may be destined to some other host than yourself and thus
9605           would get routed without no good reason.  Affected file is
9606           silcd/server.c.
9607
9608         * Added function silc_server_config_is_primary_route to check
9609           whether primary router connection has been configured (a router
9610           configuration that we are initiating).  If there is not, we
9611           will assume that there is only two routers in the SILC network
9612           and we will use the incoming router connection as our primary
9613           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
9614
9615         * Changed the order of the broadcasting.  Broadcast _after_ the
9616           packet has been processed not before.  Affected file is
9617           silcd/server.c.
9618
9619         * Fixed a [ClientConnection] parsing bug.  The port was never
9620           parsed correctly thus resulting to port 0.  Affected file
9621           silcd/serverconfig.c.
9622
9623         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
9624           argument and did not set the broadcast packet flag.  Affected
9625           file silcd/packet_send.c.  Fixed same bug in the function
9626           silc_server_send_notify as well.
9627
9628         * If we receive NEW_ID packet for our own ID in the server, ignore
9629           the packet.
9630
9631 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9632
9633         * Updated TODO.
9634
9635         * Removed the nickname from the Private Message Payload.
9636           Updated the code and the protocol specs.
9637
9638         * Updated protocol specs for submitting to the IETF.
9639
9640         * Tweaked the Random Number Generator a bit.  Affected file
9641           lib/silccrypt/silcrng.c.  Exported a new function
9642           silc_rng_[global]_add_noise which can be used to add more
9643           noise to the RNG.
9644
9645 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9646
9647         * Do not parse packets with different timeout when protocol
9648           is active -> may cause problem with rekey.  Affected file
9649           silcd/server.c.
9650
9651         * When server receives signoff notify it must not create
9652           new channel key if the client is on any channels since the
9653           sender of the signoff notify will create it.
9654
9655 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9656
9657         * Added printing of error messages during SKE protocol from the
9658           failure packet sent by server during SKE.  Affected file
9659           silc/client_ops.c.
9660
9661         * Removed the client's failure_callback handling with timeout
9662           and handle it immediately when received.
9663
9664         * The SKE library returned wrong type in SUCCESS and FAILURE
9665           packets.  They must be 32 bit MSB not 16 bit MSB.
9666
9667 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9668
9669         * Ok, rewrote the logic of the re-key and now it seems to work.
9670           I tested it on high traffic with frequent re-keys without
9671           problems.  Added hmac_receive (and renamed hmac to hmac_send)
9672           in SilcClientConnection in lib/silcclient/client.h and
9673           in SilcIDListData in silcd/idlist.h.  Also, removed the
9674           SilcPacketParserContext's cipher and hmac fields as they are
9675           not needed anymore and actually caused some problems when
9676           the ciphers and hmac's changed underneath the packet parser.
9677
9678 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9679
9680         * If re-key protocol is active then process the incoming packets
9681           synchronously since we must assure that icoming packets encrypted
9682           with the old key is processed before the new keys is set to
9683           use.  This is true other packets than for REKEY packets.
9684           Affected file silcd/server.c.  The same was done to client library
9685           as well, affected file lib/silcclient/client.c.
9686
9687 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9688
9689         * Fixed bug in client and server to accept the force send if
9690           the packet is send from silc_[server/client]_packet_process
9691           function.  Otherwise the packets are never delivered, oops.
9692
9693 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9694
9695         * Disable force sending of packets when REKEY protocol is active.
9696           We must assure that no packet is sent directly when rekey is
9697           performed.  All packets must be sent through packet queue.
9698           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
9699           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
9700           function is silc_[server/client]_packet_send_real to check
9701           the situation.
9702
9703         * Replaced the SIM paths from example config files to
9704           /usr/local/modules.  Also, make install creates now
9705           /usr/local/silc/logs directory to hold all the SILC server
9706           logs.
9707
9708 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9709
9710         * Made the configure.in.pre work on Solaris.  Patch by salo.
9711
9712         * Made all ciphers compatible with non-x86 machines.  Defined
9713           CBC mode macros into lib/silccrypt/ciphers_def.h.
9714
9715 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9716
9717         * Fixed the make install.
9718
9719 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9720
9721         * When MAC computation fails the silc_packet_decrypt returned 0
9722           even though it was supposed to return -1.  Fixed this.  The
9723           affected file is lib/silccore/silcpacket.c.
9724
9725         * Do not replace the config files in /etc/silc (in make install)
9726           if they already exist.  Affected file ./Makefile.am.
9727
9728         * Do not send re-key packets immediately but through packet queue.
9729           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
9730
9731         * Changed silc_net_check_host_by_sock to return FALSE if the
9732           IP/DNS could not be resolved.  Though, it returns the IP address
9733           now even if it could not resolve it (but returns also FALSE).
9734           Affected file lib/silcutil/silcnet.[ch].
9735
9736 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9737
9738         * Added silc_pkcs_decode_identifier to decode the public key's
9739           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
9740           Added also silc_pkcs_free_identifier.  Added also new context
9741           SilcPublicKeyIdentifier.
9742
9743         * Added -S option to the silc client.  It is used to dump the
9744           contents of the specified public key file.
9745
9746         * Changed the PKCS api to return the public key length when
9747           setting the public key.
9748
9749         * Fixed a fatal bug in the public and private key file loading.
9750           Affected file lib/silccrypt/silcpkcs.c.
9751
9752         * Execute the packet parsing for client with zero (0) timeout
9753           if the protocol is active.  Affected file silcd/server.c.
9754
9755 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9756
9757         * Made the key generation options to the silcd program.  Added
9758           -C option, equivalent to client's option.
9759
9760         * Added new [ServerKeys] config section to the server.  It
9761           configures the server's public and private key.
9762
9763         * Defined generic Public Key Payload into the protocol
9764           specification to send specific type of public keys and
9765           certificates.
9766
9767         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9768           public key or certificate.
9769
9770         * Implemented the GETKEY command to the server and to the
9771           client library and on user interface.
9772
9773 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9774
9775         * Made preliminary `make install' work.
9776
9777 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9778
9779         * Added SilcServerRekey context into silcd/idlist.h.
9780
9781         * Added the PFS support as defined in the specification to the
9782           SKE protocol.  Affected files lib/silcske/*.c.
9783
9784         * Added `ske_group' field to the SilcServerRekey context to hold
9785           the number of the SKE group that is used with PFS in re-key.
9786           Affected file silcd/idlist.h.
9787
9788         * Added PFS re-key support to the server.  Affected file is
9789           silcd/protocol.c.
9790
9791         * Added silc_protocol_cancel to cancel execution of the next
9792           state of the protocol.  Affected file is
9793           lib/silccore/silcprotocol.[ch].
9794
9795         * Added the re-key support with and without PFS to the client
9796           library.  Re-key is performed once in an hour, by default.
9797
9798           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9799           Added silc_client_rekey_callback and silc_client_rekey_final.
9800           Affected files are lib/silcclient/protocol.[ch] and
9801           lib/silcclient/client.[ch].
9802
9803         * Removed the `hmac_key' and `hmac_key_len' fields from the
9804           SilcClientConnection structure; not needed.  Affected file is
9805           lib/silcclient/client.h.
9806
9807         * Updated TODO.
9808
9809 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9810
9811         * Do not ask whether user wants to use the negotiated private key
9812           for private messages, just use it.  Affected file is
9813           silc/local_command.c.
9814
9815         * Added `send_enc_key' and `enc_key_len' fields to the
9816           SilcIDListData structure since they are needed in the re-key
9817           phase.  Affected file is silcd/idlist.[ch].
9818
9819         * Implemented the simple re-key protocol into the server.
9820           Affected files silcd/server.c and silcd/protocol.[ch].  The
9821           re-key will be performed once in an hour, by default.
9822
9823           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9824           Added silc_server_rekey, silc_server_rekey_callback and
9825           silc_server_rekey_final.
9826
9827         * Removed Tunneled flag from the protocol.  Updated the code
9828           and the specifications.
9829
9830         * Adde `pfs' field to the SilcIDListData to indicate whether
9831           the PFS is to be performed in the re-key.  Affected file is
9832           silcd/idlist.h.
9833
9834 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9835
9836         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9837           int64 of at least the xintXX size.  If void * is less that 4
9838           bytes uint32 * will be used.  Defined bool as boolean.
9839
9840         * Changed _ALL_ unsigned long and unsigned int to uint32,
9841           unsgined short to uint16 in the source tree.
9842
9843         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9844           not handle clients that has entry->data.registered == FALSE.
9845           They are not in the network anymore.  Affected file is
9846           silcd/server.c.
9847
9848 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9849
9850         * Implemented the sending of the SERVER_SIGNOFF notify in the
9851           server.  Affected file is silcd/server.c.
9852
9853         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9854           Added also silc_notify_payload_encode_args into the
9855           lib/silccore/silcnotify.[ch].
9856
9857         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9858           Affected file silcd/packet_receive.c.
9859
9860         * Implemented the SERVER_SIGNOFF notify handling in the client
9861           library.  Affected file lib/silcclient/client_notify.c.  Also,
9862           implemnted the printing of the SERVER_SIGNOFF info to the
9863           application.  Affected file silc/client_ops.c.
9864
9865         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9866           if the deleting was successful.  Affected file silcd/idlist.[ch].
9867
9868         * Added support for public key authentication in the connection
9869           authentication protocol in the client library.  Affected file
9870           lib/silcclient/protocol.c.
9871
9872         * Changed the server's silc_idlist_get_clients_by_* interface
9873           to support already allocated array so that new entries may be
9874           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9875           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9876           and command replies.
9877
9878         * All command reply functions in the server now calls the
9879           pending command callback even if error occured.  This way the
9880           error will be delivered to the client as well.  Affected files
9881           silcd/command.c and silcd/command_reply.c.
9882
9883         * Fixed INFO command to return local server's info if no server
9884           was provided.  Affected file lib/silcclient/command.c.
9885
9886         * Removed RESTART command for good.  Updated the code and the
9887           protocol specs.
9888
9889         * Rewrote parts of the task system.  It is a bit simpler now.
9890           Removed unsued task priorities. The affected files are
9891           lib/silcutil/silctask.[ch].
9892
9893 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9894
9895         * Moved the USERS printing from the library to the application.
9896           Affected files lib/silcclient/command.c and silc/client_ops.c.
9897
9898 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9899
9900         * Updated TODO.
9901
9902         * Added channel key re-key support.  The re-key is perfomed
9903           only by the router and is done once in an hour.  Added `rekey'
9904           field to the SilcChannelEntry in the server.  Affected files
9905           silcd/server.c and silcd/idlist.h.
9906
9907         * Added silc_task_unregister_by_context into the file
9908           lib/silcutil/silctask.[ch].
9909
9910 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9911
9912         * Added SILC_UMODE_GONE mode to indicate when the client is not
9913           present in the SILC network.  Added also support to the local
9914           command AWAY that will set this mode.  Added support of showing
9915           "xxx is gone" in WHOIS command.  The USERS command shows the
9916           gone status as well.
9917
9918         * Fixed setting server and router operator privileges in the
9919           server's UMODE command.  Affected file silcd/command.c.
9920
9921         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9922           new KE payload is equivalent to the old KE2 payload.
9923
9924           Cleaned up the SKE Start Payload parsing.  It now uses the
9925           simple buffer unformatting to do the parsing.  A lot faster
9926           now.
9927
9928           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9929           to the SKE that is used to indicate whether both of the SKE
9930           parties should perform authentication.  By default only the
9931           responder performs authentication.  By setting this flag also
9932           the initiator must do authentication.  By default it is unset
9933           since in normal SKE case, client to server connection, only
9934           the responder should do authentication.  When doing SKE between
9935           two clients both should perform authentication.  Updated the
9936           code and the protocol specs.
9937
9938         * A little fix to IDENTIFY command in the server.  Search the
9939           client first by hash not nickname.  Affected file is
9940           silcd/command.c.
9941
9942         * Fixed the silc_client_close_connection to support closing
9943           the client to client connections wihtout deleting too much
9944           data.  Affected file lib/silcclient/client.c.
9945
9946         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9947           are received if protocol used to be active but is not anymore
9948           the application would crash due to NULL pointer dereference.
9949           Affected files silcd/server.c and lib/silcclient/client.c.
9950
9951         * Added `hash' field to the SilcClientConnection to include
9952           the hash function negotiated in the SKE protocol.
9953
9954         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9955           to set the channel founder authentication data.  A client can
9956           claim the founder rights later by providing the authentication
9957           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9958           This way the channel founder can regain the channel founder
9959           privileges even it is left the channel.  This works only on
9960           local server and the client must be connected to the same
9961           server to be able to regain the founder rights.  Updated the
9962           protocol specs accordingly.
9963
9964           Added support to the CMODE command in the client to set the
9965           founder auth data.  Read the README to see how to set it.
9966
9967           Added support to the CUMODE command to claim the founder
9968           rights.  Read the README to see how to do it.
9969
9970           Added support for the founder authentication to the Channel
9971           Entry in the server.  Affected file silcd/idlist.h.
9972
9973           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9974           server's CMODE command.  Affected file silcd/command.c.
9975
9976         * Added the following new functions into lib/silccore/silcauth.[ch]:
9977           silc_auth_get_method and silc_auth_get_data.
9978
9979         * The server now saves the remote hosts public key to the
9980           SilcIDListData pointer.  Affected file silcd/protocol.c.
9981
9982         * The normal server now does not remove the channel entry from
9983           the cache if the founder authentication data is set.  It used
9984           to remove it if the founder was the last one on the channel on
9985           the server and left the channel.  The auth data is saved and
9986           if the channel is re-joined later the old entry is used with
9987           the old auth data.  Affected files silcd/command_reply.c and
9988           silcd/server.c.
9989
9990         * Removed the `pkcs' field from the SilcIDListData structure
9991           in the server; it is not used.  Affected file silcd/idlist.h.
9992
9993 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9994
9995         * Fixed packet processing on slow links.  Partial packets were
9996           never re-processed because the incoming data buffer was cleared
9997           by the application.  Application must not directly clear the
9998           sock->inbuf, the packet processing routines handle it.  Fixed
9999           this in client library and in server.
10000
10001 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10002
10003         * Fixed the WHOIS and IDENTIFY send reply function to really
10004           check whether to send list or just one entry.  Affected file
10005           silcd/command.c.
10006
10007         * Cleaned up the LEAVE command's channel key distribution.  The
10008           affected file silcd/command.c.
10009
10010         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
10011           can enforce the channel mode as well.  In that case the ID
10012           includes the ID of the server.  The code now enforces the
10013           mode change if the router have different mode than the server.
10014
10015         * The notify client operation with CMODE_CHANGE notify can now
10016           return NULL client_entry pointer if the CMODE was not changed
10017           by client.  Application must check for this.
10018
10019         * Added <Server ID> argument to INFO command to support server
10020           info fetching by Server ID.
10021
10022         * Added silc_server_announce_get_channel_users to get assembled
10023           packets of channel users of the specified channel.  Affected
10024           file silcd/server.[ch].
10025
10026         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
10027           was freed underneath the ID Cache.
10028
10029         * Re-announce clients when the server received CHANNEL_CHANGE
10030           notify from the router.  Affected file silcd/packet_send.c.
10031
10032 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10033
10034         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
10035           crashed since it did not handle the fact that there is no cipher
10036           called "3" and didn't check the error condition.  Now fixed.
10037
10038         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
10039           flag.  It can be used to send message requests.
10040
10041 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10042
10043         * Implemented the RESTART command in the client.
10044
10045         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
10046           notice type messages.  Added notice printing to the user
10047           interface.
10048
10049         * The channel keys are not re-generated if the channel's mode
10050           is PRIVKEY, ie private key on the channel exists.  Affected
10051           files silcd/server.c and silcd/command.c.
10052
10053         * Fixed a little bug in channel message delivery when channel
10054           private keys are set in the server.  Affected file is
10055           silcd/packet_send.c.
10056
10057         * Changed the setting on channel->on_channel = TRUE from the
10058           silc_client_save_channel_key to the JOIN command reply.  The
10059           key payload is not received if the private channel key is set.
10060           Affected file lib/silcclient/command_reply.c and the
10061           lib/silcclient/client_channel.c.
10062
10063         * When the CMODE_CHANGE notify is sent and the channel private
10064           key mode is removed the channel key must be re-generated in
10065           other cells as well.  Added this support for the router in the
10066           silcd/packet_receive.c.
10067
10068         * Added new local command NOTICE to send notice message on
10069           channel.  Affected file silc/local_command.[ch].
10070
10071 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10072
10073         * Added new local command ME to the client.  It is used to send
10074           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
10075           some action.  Affected file silc/local_command.[ch].
10076
10077         * Changed channel_message and private_message client operations
10078           to deliver the message flags to the application.  Added also
10079           the `flags' arguments to the silc_client_send_channel_message
10080           and silc_client_send_private_message functions.  Affected file
10081           silcapi.h.
10082
10083 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10084
10085         * Redefined the Private Message Payload to support private message
10086           keys and to support the new private message flags.  Updated
10087           the protocol specs.  Flags makes it possible to have for example
10088           CTCP style messages.
10089
10090         * Added new type SilcPrivateMessagePayload and defined an API
10091           for it in the lib/silcclient/silcprivate.[ch].
10092
10093         * Tested private message private keys successfully.  Tested the
10094           private message key set, unset and list commands with the new
10095           KEY command.
10096
10097         * Redefined the Channel Message Payload to include the channel
10098           message flags (equal with private message flags) to support
10099           for example CTCP style messages.
10100
10101         * Defined some of the message (for channel and private message)
10102           flags.  Updated the protocol specs and added the flags to the
10103           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
10104
10105 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10106
10107         * Added SilcKeyAgreementStatus type to the key agreement routines
10108           to indicate the current status and error if one occured.
10109           The status types are defined in the lib/silcclient/silcapi.h.
10110
10111         * Added new local command KEY that is used to set and unset private
10112           keys for channels, set and unset private keys for private messages
10113           with remote clients and to send key agreement requests and
10114           negotiate the key agreement protocol with remote client.  The
10115           key agreement is supported only to negotiate private message keys,
10116           it currently cannot be used to negotiate private keys for channels,
10117           as it is not convenient for that purpose.
10118
10119         * Fixed a minor pending callback setting bug in the function
10120           silc_client_get_client_by_id_resolve, now the function works.
10121           Affected file lib/silcclient/idlist.c.
10122
10123         * Added function silc_net_get_local_port to get local bound
10124           port by socket.  Added to lib/silcutil/silcnet.[ch].
10125
10126         * Added `sockets' and `sockets_count' fields to the SilcClient
10127           object.  They hold the sockets of the listenning sockets in
10128           the client.  Listenning sockets may be for example the key
10129           agreement server.  Affected file lib/silcclient/client.[ch].
10130           Added functions the silc_client_add_socket and the
10131           silc_client_del_socket.  They are exported to the application
10132           as well.
10133
10134         * Added ~./silc/clientkeys to support other client's public keys.
10135
10136         * Renamed verify_server_key client operation to verify_public_key
10137           and added one argument to indicate the type of the connection
10138           (server, client etc.).
10139
10140 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10141
10142         * Added silc_server_connection_auth_request to handle the
10143           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
10144           silcd/packet_receive.[ch].
10145
10146         * Added silc_server_send_connection_auth_request into the
10147           silcd/packet_send.c to send the connection auth request packet.
10148
10149         * Cleaned up the silcd/protocol.c a bit and fixed some memory
10150           leaks.
10151
10152         * Fixed the public key authentication in responder side in the
10153           server.  The `auth_data' pointer includes the SilcPublicKey
10154           not the path to the public key.  Affected file silcd/protocol.c.
10155
10156         * Implemented the public key authentication in the initiator side
10157           in the server.  Affected file silcd/protocol.c.
10158
10159         * Removed the [RedirectClient] config section from the server
10160           configuration.  Is not needed and I don't want to implement it.
10161
10162 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10163
10164         * Cleaned up the CMODE command in the server.  It now works
10165           correctly and supports all the modes defined in the protocol.
10166           Affected file is silcd/command.c.
10167
10168         * Added `hmac_name' field to the SilcChannelEntry in the server
10169           to hold the default HMAC of the channel.  It can be set when
10170           creating the channel (with JOIN command).  Affected files
10171           silcd/idlist.[ch].
10172
10173         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
10174           type to indicate the change of the current cipher and hmac
10175           on the channel.  Client can safely ignore the <cipher> argument
10176           (if it chooses to do so) since the CHANNEL_KEY packet will
10177           force the channel key change anyway.  The <hmac> argument is
10178           important since the client is responsible of setting the new
10179           HMAC and the hmac key into use.
10180
10181         * Fixed the CMODE command in the client library as well.
10182
10183         * Tested CMODE command in router environment successfully.
10184
10185 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10186
10187         * Show the version of the remote client (or server) when connecting
10188           to the server.  It is logged to the log file.  Affected file
10189           is silcd/protocol.c.
10190
10191         * Fixed the KILLED notify handling in the client library.  The
10192           client must be removed from all channels when receiving the
10193           KILLED notify.
10194
10195           Also, do not remove the client entry when giving the KILL
10196           command but when the KILLED notify is received.
10197
10198         * Removed silc_idlist_find_client_by_nickname from the server.
10199           Not needed anymore.  Affected files silcd/idlist.[ch].
10200
10201         * Implemented the CHANNEL_CHANGE notify type handling to the
10202           server.  Affected file silcd/server.c.
10203
10204         * Updated TODO.
10205
10206 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10207
10208         * Added silc_server_send_notify_invite to send the INVITE
10209           notify between routers.
10210
10211         * Implemented the INVITE command correctly to the server.
10212
10213         * Implemented the INVITE notify type handling in the server.
10214
10215         * Implemented the INVITE command to the client library and on the
10216           user interface.
10217
10218 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10219
10220         * Added function silc_server_get_client_resolve to find the
10221           client entry by ID from all ID lists and then resolve it
10222           (using WHOIS) if it cannot be found.  Affected file is
10223           silcd/server.[ch].
10224
10225 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10226
10227         * Implemented the BAN command to the client library.
10228
10229         * The JOIN command in the server now checks the invite list
10230           and the ban list.
10231
10232         * Changed the silc_command_reply_payload_encode_va and the
10233           silc_command_payload_encode_va to support that if argument is
10234           NULL it ignores and checks the next argument.  Affected file
10235           lib/silccore/silccommand.c.
10236
10237         * Added silc_server_send_notify_ban to send the BAN notify
10238           type between routers.
10239
10240         * Chaned the silc_notify_payload_encode to support that if
10241           argument is NULL it ignores and checks the next argument.
10242           Affected file lib/silccore/silcnotify.c.
10243
10244         * Tested ban lists in router environment successfully.
10245
10246 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10247
10248         * Implemented BAN command to the server, in silcd/command.[ch].
10249
10250         * Removed the BAN and INVITE_LIST modes from the CMODE command
10251           in the server code.
10252
10253         * Added function silc_string_match to regex match two strings.
10254           Affected files lib/silcutil/silcutil.[ch].
10255
10256 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10257
10258         * Redefined parts of the SilcChannelEntry in the server to support
10259           the new ban and invite lists.
10260
10261 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10262
10263         * Redefined the INVITE command.  The same command can be used to
10264           invite individuals to the channel but also to manage the invite
10265           list of the channel (to add to and remove from the invite list).
10266           Updated the protocol specs.
10267
10268         * Added new command SILC_COMMAND_BAN that can be used to manage
10269           the ban list of the channel.  Updated the protocol specs.
10270
10271         * Removed the channel modes: the SILC_CMODE_BAN and the
10272           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
10273           in the CMODE command.  The equivalent features are now available
10274           using INVITE and BAN commands.  Updated the protocol specs.
10275
10276         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
10277           in the network about change in the current ban list.  The notify
10278           type is not used by the client.
10279
10280         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
10281           support the invite lists.
10282
10283 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10284
10285         * Added new function silc_string_regexify that converts string
10286           including wildcard characters into regex string that can
10287           be used by the GNU regex library.  Added into the file
10288           lib/silcutil/silcutil.[ch].
10289
10290           Added silc_string_regex_combine to combine to regex strings
10291           into one so that they can be used as one regex string by
10292           the GNU regex library.  Added into the file
10293           lib/silcutil/silcutil.[ch].
10294
10295           Added silc_string_regex_match to match two strings.  It returns
10296           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
10297
10298 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10299
10300         * Imported GNU regex to the soruce tree into lib/contrib.
10301           Fixed some compiler warning from the regex.c.
10302
10303 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10304
10305         * Fixed MOTD command in the server to work in router environment.
10306
10307         * Fixed the MOTD command in the client library to support
10308           the server argument in the command.
10309
10310         * Added `nickname_len' argument to the silc_idlist_add_client
10311           in the server, as the `nickname' argument may be binary data
10312           (it may be hash).
10313
10314         * Added silc_idlist_get_channels to return all channels from
10315           the ID list.
10316
10317         * Implemented LIST command to the server.  Affected file is
10318           silcd/command.c.
10319
10320         * Implemented the LIST command to the client library and on the
10321           user interface.
10322
10323         * Added [<user count>] argument to the LIST command reply.
10324           With private channels the user count is not shown.
10325
10326         * Updated TODO and README.
10327
10328 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10329
10330         * The client entry's data.registered must be TRUE even with
10331           global client entry on global client list.  The data.registered
10332           is used to check whether the client is anymore in the network,
10333           for example with WHOWAS command so it must be valid.
10334
10335         * Fixed the WHOWAS command in the server.  It now actually works
10336           in router environment.  Added function into silcd/command_reply.c
10337           silc_server_command_reply_whowas_save.
10338
10339         * Added silc_idlist_purge function to the silcd/idlist.c
10340           to periodically purge the ID Cache.
10341
10342         * Fixed INFO command in the server.  It works now in router
10343           environment.  Added <server name> argument to the INFO command
10344           reply.  Updated the protocol specs.
10345
10346         * Fixed minor bug in silc_idcache_purge to not purge if the
10347           expire value is zero.
10348
10349         * Fixed various bugs in WHOIS and IDENTIFY command handling as
10350           they were buggy because of the WHOWAS information.
10351
10352         * Fixed local command MSG to handle the async resolving of
10353           the remote client properly.  It used to fail the first MSG.
10354           Affected file silc/local_command.c.
10355
10356         * Added `data_len' field to SilcIDCache context.
10357
10358 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10359
10360         * Update TODO.  Todo in commands in the server.
10361
10362 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10363
10364         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
10365           used by routers as broadcast packet to inform other routers
10366           about the changed user mode.
10367
10368           Implemented the notify handling in the server.  Affected file is
10369           silcd/packet_receive.c.  Added the function
10370           silc_server_send_notify_umode to the silcd/packet_send.[ch].
10371
10372         * Added new generic Channel Payload and deprecated the New Channel
10373           Payload.  The New Channel Payload is now the generic Channel
10374           Payload.
10375
10376         * Added new argument `mode' to the silc_server_send_new_channel
10377           as it is required in the Channel Payload now.
10378
10379         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
10380           and created a new and real SilChannelPayload to represent the
10381           new generic Channel Payload.  Implemented the encode/decode
10382           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
10383
10384         * Added silc_server_get_client_channel_list to return the list
10385           of channels the client has joined for WHOIS command reply.
10386           Affected file silcd/server.[ch].
10387
10388         * Implemented the channel list sending in the WHOIS command reply
10389           in server and in the client.
10390
10391           Implemented the channel list displaying on the user interface
10392           as well.  Affected file silc/client_ops.c.
10393
10394         * Added silc_channel_payload_parse_list to parse list of Channel
10395           Payloads.  It returns SilcDList list of SilcChannelPayloads.
10396           Client for example can use this function to parse the list of
10397           channels it receives in the WHOIS command reply.  The caller
10398           must free the list by calling silc_channel_payload_list_free.
10399           Affected files lib/silccore/silcchannel.[ch].
10400
10401 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10402
10403         * Added one new argument <user mode> to the WHOIS command reply
10404           to return the mode of the user in SILC.  Updated the protocol
10405           specs.
10406
10407           Implemented it to the server and client.
10408
10409 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10410
10411         * Fixed the mode printing on the user interface on joining.
10412           Affected file silc/client_ops.c.
10413
10414         * Implemented the UMODE command and user modes in general to the
10415           client library and to the user interface.
10416
10417         * Implemented the UMODE command to the server.
10418
10419         * The server now sends UNKNOWN_COMMAND error status if client sends
10420           unknown command.  Affected file silcd/command.c.
10421
10422         * All server commands now handle the command identifier the right
10423           way when sending the command reply to the client.  The client can
10424           use to identify the command replies with the identifier.
10425
10426 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10427
10428         * Added silc_server_get_client_route to resolve the route to
10429           the client indicated by the client ID.  Affected file is
10430           silcd/server.[ch].
10431
10432         * Added silc_server_relay_packet as general function to relay
10433           packet to arbitrary destination.  This deprecates functions
10434           like _send_private_message_key, _relay_notify etc.  Affected
10435           file is silcd/packet_send.[ch].
10436
10437           Removed silc_server_send_key_agreement,
10438           silc_server_send_private_message_key and
10439           silc_server_packet_relay_notify functions from the file
10440           silcd/packet_send.[ch].
10441
10442         * Updated TODO.
10443
10444         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
10445           server.  Affected file silcd/packet_receive.[ch].
10446
10447         * Implemented the KILL command to the client.  Implemented the
10448           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
10449           Affected files lib/silcclient/command[_reply].c and
10450           lib/silcclient/client_notify.c.  Implemented the KILL notify
10451           printing in the user inteface.
10452
10453         * Fixed a lot silc_parse_nick memory leaks from the client
10454           library in the file lib/silcclient/command.c.
10455
10456         * Changed the silc_server_send_notify_on_channels's `sender'
10457           argument from SilcSocketConnection to SilcClientEntry to
10458           check the sender as entry and not as connection object and not
10459           to send to the client provided as argument.  The affected file
10460           is silcd/packet_send.[ch].
10461
10462         * The notify packets that are destined directly to the client used
10463           to not to be processed by the server.  Now changed that and the
10464           server processes all notify packets.  After relaying the packet
10465           to the client the notify packet is processed in the server.
10466
10467         * The silc_server_free_client_data now checks whether there is
10468           pending outgoing traffic for the client and purges the data to
10469           the network before removing the client entry.
10470
10471 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10472
10473         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
10474           an client is killed from the SILC Network.  Updated the protocol
10475           specs accordingly.
10476
10477           Added new function silc_server_send_notify_killed to the
10478           silcd/packet_send.[ch].
10479
10480         * Added function silc_server_packet_relay_notify to relay notify
10481           packets that are destined directly to a client.  In this case
10482           the server does not process the notify packets but merely relays
10483           it to the client.  Affected file silcd/packet_send.[ch].
10484
10485           Added also silc_server_packet_process_relay_notify to check
10486           whereto relay the notify.  Affected file is
10487           silcd/packet_receive.[ch].
10488
10489         * Implemented the KILL command to the server.
10490
10491         * Updated TODO.
10492
10493         * Added the backup schema desgined last fall to the protocol
10494           specs for everyone to see.  The specification is in the
10495           *-spec-xx.txt draft and the packet type definitions for the
10496           backup routers is in *-pp-xx.txt draft.  Thusly, added also
10497           new packet type SILC_PACKET_CELL_ROUTERS.
10498
10499         * A big security problem in the implementation discovered.  The
10500           signoff of an client did not cause new channel key generation
10501           which it of course should've done.  The channel keys must be
10502           always re-generated when client leaves (or signoffs) the channel.
10503           The silc_server_remove_from_channels funtion now handles
10504           the channel key re-generation.
10505
10506         * Added `sender' argument to the silc_server_send_notify_on_channels
10507           to not to send the client provided as argument.  Affected file
10508           silcd/packet_send.[ch].
10509
10510 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10511
10512         * Implemented OPER and SILCOPER commands into the server and
10513           the client library.
10514
10515         * Added silc_auth_verify and silc_auth_verify_data to verify
10516           the authentication directly from the authentication payload.
10517           It supports verifying both passphrase and public key based
10518           authentication.  Affected file lib/silccore/silcauth.[ch].
10519
10520         * Added `hash' field to the SilcIDListData structure.  It is the
10521           hash negotiated in the SKE protocol.  Affected file is
10522           silcd/idlist.[ch].
10523
10524         * Slight redesigning of the SilcAuthPayload handling routines.
10525           Do not send SilcPKCS but SilcPublicKey as argument.
10526
10527         * Implemented the public key authentication support to the
10528           serverconfig.  The public key is loaded from the provided path
10529           and saved as authentication data to void * pointer.  Thus,
10530           changed the unsigned char *auth_data to void *auth_data;
10531
10532         * Fixed SHUTDOWN command to send the reply before the server
10533           is shutdown. :)  Affected file silcd/command.c.
10534
10535         * Fixed fatal bug in CONNECT command.  The hostname was invalid
10536           memory and server crashed.  Affected file silcd/command.c.
10537
10538         * Fixed fatal bug in CLOSE command.  The server_entry became
10539           invalid but was referenced later in the command.  Affected file
10540           silcd/command.c.
10541
10542 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10543
10544         * Fixed fatal bug in failure packet handling.  Server ignored
10545           the failure and thus crashed when it came.
10546
10547         * Updated TODO.
10548
10549 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10550
10551         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
10552           that the command may be executed only once in (about) 2 seconds.
10553           The old SILC_CF_LAG flag is same but allows command bursts up
10554           to five before limiting.
10555
10556           Added the support for CF_LAG and CF_LAG_STRICT flags to the
10557           server code.  Various commands now includes the CF_LAG_STRICT
10558           flag to disallow any kind of miss-use of the command.
10559
10560         * Fixed the silc_buffer_unformat to not to allocate any data
10561           if the length of the data is zero.  It used to allocate the
10562           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
10563
10564 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10565
10566         * Changed the format of AdminConnection configuration section
10567           in the server.  Added username of the admin to the format.
10568           Affected files silcd/serverconfig.[ch].
10569
10570           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
10571           to return admin configuration data by host, username and/or
10572           nickname.
10573
10574 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10575
10576         * Implemented WHOWAS command to the server.  Added the functions:
10577
10578           silc_server_command_whowas_parse,
10579           silc_server_command_whowas_send_reply,
10580           silc_server_command_whowas_from_client and
10581           silc_server_command_whowas_from_server
10582
10583         * Added <Client ID> argument to the WHOWAS command reply.  Updated
10584           the protocol specs accordingly.
10585
10586         * Implemented WHOWAS command and command_reply to the client
10587           library.
10588
10589           Implemented the WHOWAS printing on the user interface.
10590
10591 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10592
10593         * Added new argument to the WHOWAS command reply, the real name.
10594           It is an optional argument.  Updated the protocol specs.
10595
10596         * Added SilcIDCacheDestructor callback that is registered when
10597           the SilcIDCache is allocated.  The callback is called when
10598           an cache entry in the ID Cache expires, or is purged from the
10599           cache.  Added into lib/silccore/idcache.[ch].
10600
10601           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
10602           to destruct the client entries when the cache entry expires.
10603           Other ID Cache's in server and in the client library ignores
10604           the destructor.
10605
10606         * If the ID Cache entry's `expire' field is zero then the entry
10607           never expires.  Added boolean `expire' argument to the
10608           silc_idcache_add function in the lib/silccore/idcache.[ch].
10609           If it is TRUE the default expiry value is used.
10610
10611         * Added silc_server_free_client_data_timeout that is registered
10612           when client disconnects.  By default for 5 minutes we preserve
10613           the client entry for history - for WHOWAS command.
10614
10615 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10616
10617         * Added support to the server to enforce that commands are not
10618           executed more than once in 2 seconds.  If server receives
10619           commands from client more frequently, timeout is registered
10620           to process the commands.  Affected file silcd/command.c.
10621           Added new function silc_server_command_process_timeout.
10622
10623         * Changed NICK_NOTIFY handling in client library to check that
10624           if the client's nickname was changed, so there is no need to
10625           resolve anything from the server.
10626
10627         * Removed error printing from the WHOIS and IDENTIFY commands.
10628           If error occurs then it is ignored silently in the client library.
10629           The application, however, may map the received error to
10630           human readable error string.  The application currently maps
10631           the NO_SUCH_NICKNAME error to string.
10632
10633         * Made the command status message public to the application.  Moved
10634           them from lib/silcclient/command_reply.c to
10635           lib/silcclient/command_reply.h.  The application can map the
10636           received command status to the string with the
10637           silc_client_command_status_message function.
10638
10639         * Added check to the server to check that client's ID is same
10640           as the Source ID in the packet the client sent.  They must
10641           match.
10642
10643 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10644
10645         * Added dist-bzip hook to the Makefile.am to make bzip2
10646           compressed distributions.
10647
10648 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10649
10650         * Server now enforces the maximum length for the nickname and
10651           the channel as protocol specification dictates.  128 bytes for
10652           nickname and 256 bytes for channel name.
10653
10654         * Moved the WHOIS printing to the application.  The client libary
10655           does not print out the WHOIS information anymore, the application
10656           must do it.  Renamed silc_client_command_reply_whois_print to
10657           the silc_client_command_reply_whois_save.
10658
10659           The client's idle time is also sent to the application now, and
10660           the idle is shown on screen.
10661
10662         * Added silc_client_command_reply_identify_save to save the
10663           received IDENTIFY entries.
10664
10665         * Do not check for channel private keys in message sending and
10666           reception if the channel does not have the PRIVKEY mode set.
10667           Affected file lib/silclient/client_channel.c.
10668
10669 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10670
10671         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
10672           just surfaced after chaning the JOIN procedure.
10673
10674 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10675
10676         * Added silc_client_get_clients_by_list to get client entries
10677           from Client ID list, that is returned for example by JOIN
10678           and USERS command replies.  The application should use this
10679           function for example when JOIN command reply is received to
10680           resolve the clients already on the channel (library does not
10681           do that anymore as USERS command reply is not used in the JOIN
10682           procedure anymore).  Affected files lib/silcclient/silcapi.h and
10683           lib/silcclient/idlist.c.
10684
10685         * JOIN command reply and USERS command reply returns now SilcBuffer
10686           pointers instead of unsigned char pointers when returning
10687           the client list and mode list.
10688
10689         * Added <Client ID> argument to the JOIN command reply, mainly
10690           for the server to identify for which client the command was
10691           originally sent.  Updated protocol specs accordingly.
10692
10693         * Added SilcDlist private_key pointer to the SilcChannelEntry
10694           in the client to support the channel private keys.  Affected
10695           file is lib/silcclient/idlist.h.
10696
10697         * Added SilcChannelPrivateKey argument to the function
10698           silc_client_send_channel_message so that application can choose
10699           to use specific private ke if it wants to.  If it is not provided,
10700           the normal channel key is used, unless private keys are set.
10701           In this case the first (key that was added first) is used
10702           as the encryption key.
10703
10704         * Implemented the support for channel private key handling.
10705           Implemented the following functions:
10706
10707           silc_client_add_channel_private_key,
10708           silc_client_del_channel_private_keys,
10709           silc_client_del_channel_private_key,
10710           silc_client_list_channel_private_keys and
10711           silc_client_free_channel_private_keys
10712
10713           Affected file lib/silcclient/client_channel.c.
10714
10715         * Added the support for the private keys in the channel message
10716           sending and encryption and in the message reception and
10717           decryption.  Affected funtions are
10718           silc_client_send_channel_message and silc_client_channel_message.
10719
10720 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10721
10722         * Added SKE's key verify callback to the client library's
10723           KE protocol context. Affected files lib/silcclient/protocol.[ch].
10724
10725         * Removed the statement that server (or router) must send USERS
10726           command reply when joining to the channel so that the client
10727           knows who are on the channel.  Instead, the client list and
10728           client's mode list is now sent in the JOIN command reply to the
10729           client who joined channel.  This is better solution.
10730
10731         * Added function silc_server_get_users_on_channel and function
10732           silc_server_save_users_on_channel to the silcd/server.[ch].
10733
10734         * Removed function silc_server_command_send_users from the
10735           silcd/command.c.
10736
10737         * Do not show topic on the client library anymore.  The topic is
10738           sent in the command reply notify to the application and the
10739           application must show the topic now.
10740
10741 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10742
10743         * Added client searching by nickname hash into the IDENTIFY and
10744           WHOIS commands in the server as they were clearly missing from
10745           them.  Affected file is silcd/command.c.
10746
10747         * Fixed a bug in private message receiving in the client library.
10748           The remote ID was freed and it wasn't supposed, now it is
10749           duplicated.
10750
10751 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10752
10753         * Minor fix to the channel payload; allocate the data area, as it
10754           needs to be of specific length.
10755
10756         * If the key agreement port is zero then the operating
10757           system will define the bound port.  Affected files are
10758           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10759
10760         * Added new function silc_channel_payload_decrypt into the file
10761           lib/silccore/silcchannel.[ch].
10762
10763         * Moved the channel message etc, check from silc_packet_decrypt
10764           to applications.  The library calls now a generic
10765           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10766           when the packet is either normal or special.  This was done to
10767           allow more wide range of checking that was not allowed when
10768           the code was in library.  Now applications can do virtually any
10769           checks to the packet and return to the library the decision how
10770           the packet should be processed.  Affected files are
10771           lib/silccore/silcpacket.[ch].
10772
10773           Added silc_server_packet_decrypt_check to the server and
10774           silc_client_packet_decrypt_check to the client library.
10775
10776         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10777           to send with specified source and destination information.
10778
10779         * Channel message delivery between routers was broken after the
10780           channel key distribution was fixed earlier.  The channel key
10781           was used be to distributed to other routers as well which is not
10782           allowed by the protocol.  Now this is fixed and channel keys
10783           really are cell specific and the channel message delivery between
10784           routers comply with the protocol specification.
10785
10786         * Fixed various commands in server to check also the global list
10787           for the channel entry and not just the local list.  The affected
10788           file silcd/command.c.
10789
10790 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10791
10792         * Added assert()s to buffer formatting and unformatting routines
10793           to assert (if --enable-debug) when error occurs.  Affected
10794           file: lib/silcutil/silcbuffmt.c.
10795
10796         * Changed to auto-reconnect to check whether the remote host is
10797           router and register the re-connect timeout if it is.  It used
10798           to check that whether we are normal server, but router must do
10799           auto-reconnect with another router as well.  Affected file
10800           silcd/server.c.
10801
10802         * Removed the [<key len>] option from CMODE command as the cipher
10803           name decides the key length, nowadays.  See the defined ciphers
10804           from the protocol specification.
10805
10806         * Added [<hmac>] option to the CMODE command to define the HMAC
10807           for the channel.  Added SILC_CMODE_HMAC channel mode.
10808
10809         * Added [<hmac>] option for the JOIN command so that user can
10810           select which HMAC is used to compute the MACs of the channel
10811           messages.
10812
10813         * Added Hmac field to the Channel Message Payload.  The integrity
10814           of plaintext channel messages are now protected by computing
10815           MAC of the message and attaching the MAC to the payload.  The
10816           MAC is encrypted.  Now, it is clear that this causes some
10817           overhead to the size of the packet but rationale for this is that
10818           now the receiver can verify whether the channel message decrypted
10819           correctly and also when private keys are set for the channel the
10820           receiver can decrypt the packet with several keys and check from
10821           the MAC which key decrypted the message correctly.
10822
10823         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10824           lib/silccrypt/silccipher.[ch].
10825
10826         * Added silc_hash_len to return the digest length into the
10827           lib/silcrypt/silchash.[ch].
10828
10829         * Rewrote parts of Silc Channel Payload interface in the
10830           lib/silccore/silcchannel.[ch].  The encode function now also
10831           encrypts the packet and parse function decrypts it.
10832
10833 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10834
10835         * Fixed a minor formatting bug in the SKE's key material processing.
10836           It actually might have processed the keys wrong way resulting
10837           into wrong keys.
10838
10839         * Redefined the mandatory HMAC algorithms and added new algorithms.
10840           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10841           and hmac-md5 truncated to 96 bits.  The mandatory is now
10842           hmac-sha1-96.  Rest are optional (including the one that used
10843           to be mandatory).  Rationale for this is that the truncated HMAC
10844           length is sufficient from security point of view and can actually
10845           make the attack against the HMAC harder.  Also, the truncated
10846           HMAC causes less overhead to the packets.  See the RFC2104 for
10847           more information.
10848
10849         * Added new [hmac] configuration section.  The SKE used to use
10850           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10851           is of course wrong.  The official names that must be proposed in
10852           the SKE are the ones defined in the protocol specification
10853           (hmac-sha1-96 for example).  The user can configure any hmac
10854           using any hash function configured in the [hash] section.  At
10855           least, the mandatory must be configured.
10856
10857           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10858
10859         * Added HMAC list to the SKE proposal list.  It has now both
10860           hash algorithm list and HMAC list.  This makes the protocol
10861           incompatible with previous versions.  The SKE now seems to work
10862           the way it is supposed to work, for the first time actually.
10863
10864         * Defined plain Hash algorithms to the protocol specification.
10865           Added sha1 and md5.
10866
10867 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10868
10869         * Implemented support for key agreement packets into the server.
10870           Added functions silc_server_key_agreement and
10871           silc_server_send_key_agreement.  Other than these functions,
10872           server has nothing to do with this packet.
10873
10874         * Added support for private message key packets into the server.
10875           Added functions silc_server_private_message_key and
10876           silc_server_send_private_message_key.
10877
10878         * Updated TODO.
10879
10880         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10881           called in the protocol's final callback instead in the END
10882           protocol state.  This makes a little more sense and in the same
10883           time in client we can use the same protocol routines for normal
10884           key exchange and to key agreement packet handling as well.
10885
10886         * Added to both client's and server's KE protocol context the
10887           SilcSKEKeyMaterial pointer to save the key material.  We will
10888           bring the key material to the protocol's final callback by doing
10889           this.  The final callback must free the key material.
10890
10891         * Added SKE's packet_send callback into client's KE protocol
10892           context so that the caller can choose what packet sending function
10893           is used.  This way we can use different packet sending when
10894           doing normal SKE when doing key agreement packet handling (in
10895           the key agreement packet handling we do not want to encrypt
10896           the packets).
10897
10898         * Implemented the responder side of the key agreement routines
10899           in the client.  The client can now bind to specified port and
10900           accept incoming key negotiation.  The key material is passed
10901           to the application after the protocol is over.
10902
10903         * Implemented the processing of incoming Key Agreement packet
10904           in the client.  Added function silc_client_key_agreement to
10905           process the packet.
10906
10907         * Implemented the intiator side of the key agreement routines
10908           in the client.  The client can now initiate key agreement with
10909           another remote client.  The key material is passed to the
10910           application after the protocol is over.
10911
10912         * Created client_keyagr.c to include all the key agreement
10913           routines.
10914
10915         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10916           SILC_TASK_CALLBACK except that it is not static.
10917
10918         * Created client_notify.c and moved the Notify packet handling
10919           from the client.[ch] into that file.
10920
10921         * Created client_prvmsg.c and moved all private message and
10922           private message key routines from the client.[ch] into that file.
10923
10924         * Create client_channel.c and moved all channel message and
10925           channel private key routines from the client.[ch] into that file.
10926
10927         * Changed silc_client_get_client_by_id_resolve to resolve with
10928           WHOIS command instead of IDENTIFY command, in the file
10929           lib/silclient/idlist.c.
10930
10931 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10932
10933         * Implemented the SKE's responder side to the Client library.
10934
10935         * When FAILURE is received to the protocol do not trust it
10936           blindly.  Register a timeout to wait whether the remote closes
10937           the connection as it should do it, only after that process the
10938           actual failure.  This was changed to both client and server.
10939
10940         * Added client_internal.h to include some of the structures
10941           there instead of client.h in lib/silcclient/.
10942
10943         * Added function silc_task_unregister_by_callback to unregister
10944           timeouts by the callback function.
10945
10946 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10947
10948         * Some "Incomplete WHOIS info" errors has been appearing on the
10949           log files.  Took away the entry->userinfo check from WHOIS
10950           reply sending.  The entry->userinfo is now " " if client did not
10951           provide one.  I thought this was fixed earlier but something
10952           is wrong still.  Let's see if the error still appears.
10953
10954 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10955
10956         * Fixed a minor bug in the login when the channel key is
10957           re-generated in the server.  It used to generate the key in
10958           wrong order and thus caused problems in the channel traffic.
10959
10960         * Fixed a minor bug in channel key distsribution after
10961           KICK command.  The key was not sent to the router even though
10962           it should've been.
10963
10964 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10965
10966         * Added silc_ske_process_key_material_data as generic routine
10967           to process any key material as the SILC protocol dictates.  The
10968           function is used by the actual SKE library but can be used by
10969           applications as well.  This relates to the private message keys
10970           and the channel private keys since they must be processed the
10971           same way the normal SILC session keys.  The protocol dictates
10972           this.  Affected files: lib/silcske/silcske.[ch].
10973
10974           Added also silc_ske_free_key_material to free the
10975           SilcSKEKeyMaterial structure.
10976
10977         * Defined silc_cipher_set_key function to set the key for
10978           cipher without using the object's method function.  The affected
10979           files: lib/silccrypt/silccipher.[ch].
10980
10981         * Implemented silc silc_client_add_private_message_key,
10982           silc_client_add_private_message_key_ske,
10983           silc_client_del_private_message_key,
10984           silc_client_list_private_message_keys and
10985           silc_client_free_private_message_keys functions in the
10986           client library.
10987
10988           Added functions silc_client_send_private_message_key to send
10989           the Private Message Key payload and silc_client_private_message_key
10990           to handle incoming Private Message Key payload.
10991
10992         * Added Cipher field to the Private Message Key payload to set
10993           the cipher to be used.  If ignored, the default cipher defined
10994           in the SILC protocol (aes-256-cbc) is used.
10995
10996 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10997
10998         * Removed lib/silcclient/ops.h file.
10999
11000           Redefined parts of the SILC Client Library API. Created new
11001           file silcapi.h that deprecates the ops.h file and defines the
11002           published Client Library API.  Defined also private message key
11003           API and channel private key API into the file.
11004
11005           This is the file that the application must include from the
11006           SILC Client Library.  Other files need not be included by
11007           the application anymore.
11008
11009         * Added new key_agreement client operation callback and also
11010           defined the Key Agreement library API for the application.
11011
11012 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11013
11014         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
11015           is used by clients to request key negotiation  between another
11016           client in the SILC network.  If the negotiation is started it
11017           is performed using the SKE protocol.  The result of the
11018           negotiation, the secret key material, can be used for example
11019           as private message key.
11020
11021           Implemented the Key Agreement payload into the files
11022           lib/silccore/silauth.[ch].
11023
11024 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11025
11026         * Redefined ciphers for the SILC protocol.  Added some new ciphers
11027           and defined the key lengths for the algorithms.  Changed the
11028           code accordingly.  The default key length is now 256 bits.
11029
11030         * Fixed SKE key distribution function silc_ske_process_key_material
11031           when the key length is more than 128 bits.  The default key
11032           length in SILC is now 256 bits.
11033
11034         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
11035           to indicate unsupported algorithm.
11036
11037         * Renamed rijndael.c to aes.c and all functions as well.
11038
11039         * Fixed a long standing channel key setting bug in client library.
11040           Weird that it has never surfaced before.
11041
11042         * Fixed bug in channel deletion.  If the entire channel is removed
11043           then it must also delete the references of the channel entry
11044           from the client's channel list as the client's channel entry and
11045           the channel's client entry share same memory.
11046
11047 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11048
11049         * Implemented CONNECT and SHUTDOWN commands in the client.
11050
11051         * Implemented CLOSE command to the client.
11052
11053         * Added the function silc_idlist_find_server_by_name into the
11054           files silcd/idlist.[ch].
11055
11056           Added the function silc_idlist_find_server_by_conn into the
11057           files silcd/idlist.[ch].
11058
11059 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11060
11061         * DIE command was renamed to SHUTDOWN.  Updated the both code
11062           and protocol specs.
11063
11064         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
11065           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
11066
11067         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
11068           side.
11069
11070         * Added function silc_server_create_connection function to create
11071           connection to remote router.  My server implementation actually
11072           does not allow router to connect to normal server (it expects
11073           that normal server always initiates the connection to the router)
11074           so the CONNECT command is only good for connecting to another
11075           router.
11076
11077 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11078
11079         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
11080           or some other client was kicked from the channel.
11081
11082           Implemented the handling of the notify type to both client
11083           and server.
11084
11085           Implemented silc_server_send_notify_kicked to send the KICKED
11086           notify.  It is used to send it to the server's primary router.
11087
11088         * Implemented the KICK command into server and client.
11089
11090         * Added `query' argument to the silc_idlist_get_client function
11091           to indicate whether to query the client from server or not if
11092           it was not found.
11093
11094         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
11095           to indicate that the client is not channel founder.
11096
11097         * Updated TODO.
11098
11099 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11100
11101         * Removed the rng context from SilcPacketContext structure and
11102           changed that the packet routine uses the Global RNG API.
11103
11104 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11105
11106         * Added support for quit message that client can "leave" on the
11107           channel when it quits the SILC.  It is ditributed inside the
11108           SILC_NOTIFY_TYPE_SIGNOFF notify type.
11109
11110           Added silc_server_free_client_data that will take the
11111           signoff message as argument.
11112
11113         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
11114
11115 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11116
11117         * Updated parts of the protocol specification to keep it up
11118           to date.
11119
11120 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11121
11122         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
11123           payloads in one packet.
11124
11125         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
11126           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
11127           use now the new List flag.
11128
11129         * Also deprecated the following packet types: REPLACE_ID,
11130           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
11131
11132         * Added list support for Notify packet in server.
11133
11134         * Added silc_server_send_notify_channel_change to send the
11135           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
11136           the silc_server_send_replace_id.
11137
11138         * Added silc_server_send_notify_nick_change to send the
11139           NICK_CHANGE notify type.  Deprecates the function
11140           silc_server_send_replace_id.
11141
11142         * Added silc_server_send_notify_join to send the JOIN notify type.
11143           Deprecates the function silc_server_send_new_channel_user.
11144
11145         * Added silc_server_send_notify_leave to send LEAVE notify type.
11146           Deprecates the function silc_server_send_remove_channel_user.
11147
11148         * Added silc_server_send_notify_cmode and
11149           silc_server_send_notify_cumode to send CMODE and CUMODE notify
11150           types.  Deprecates the silc_server_send_set_mode function.
11151
11152         * Added SERVER_SIGNOFF notify type to indicate that server has
11153           quit.  This means that all clients on the channel from that
11154           server will drop.  This can be also used when netsplit happens.
11155
11156           Deprecated REMOVE_ID packet type since it is not needed anymore
11157           even from server.
11158
11159           Added silc_server_send_notify_server_signoff to send the
11160           SERVER_SIGNOFF notify type.  Deprecates the function
11161           silc_server_send_remove_id.
11162
11163           Added also silc_server_send_notify_signoff to send the
11164           SIGNOFF notify type.
11165
11166         * Employed the PKCS #1. It is the mandatory way to do RSA in the
11167           SILC protocol from this day on.  Changed the protocol
11168           specification as well.
11169
11170         * Added silc_server_send_notify_topic_set to send TOPIC_SET
11171           notify type.  It is used between routers to notify about
11172           topic changes on a channel.
11173
11174         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
11175           ID data.
11176
11177         * Partly updated the protocol specification to comply with the
11178           changes now made.  It is still though a bit outdated.
11179
11180         * The JOIN notify type now takes one extra argument <Channel ID>.
11181           The packet used to be destined to the channel but now the
11182           JOIN type may be sent as list thus it is impossible to
11183           destine it to any specific channel.  By adding this argument
11184           it is again possible.
11185
11186 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11187
11188         * Added CREDITS file.  The CHANGES and CREDITS file will appear
11189           in the distribution as well.
11190
11191 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11192
11193         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
11194           types in the server's silcd/packet_receive.c.
11195
11196         * Implemented CMODE and CUMODE to work in router environment.
11197
11198         * Fixed minor encoding and decoding buglet from the
11199           lib/silccore/silcmode.c.
11200
11201         * Fixed buffer overflow from lib/silcclient/command.c in USERS
11202           command parsing.
11203
11204 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
11205
11206         * Changed all SilcConfigServer* and silc_config_server* to
11207           SilcServerConfig* and silc_server_config*, respectively.
11208           Patch by Bostik.
11209
11210 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11211
11212         * Associated the ID (client or server ID) to the Authentication
11213           Payload to avoid any possibility of forging.  Updated the
11214           protocol specification and the code accordingly.
11215
11216 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11217
11218         * The RSA key length is now save to the RsaKey context in the
11219           key generation process in lib/silccrypt/rsa.c.  The key length
11220           is now used to figure out the maximum size of the block allowed
11221           to be encrypted/signed.
11222
11223         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
11224           is equivalent to the silc_mp_mp2bin but does not allocate any
11225           memory.
11226
11227         * Changed silc_mp_mp2bin API to take length argument.  If it is
11228           non-zero then the buffer is allocated that large.  If zero, then
11229           the size is approximated using silc_mp_sizeinbase, which however
11230           is not relieable.
11231
11232         * Created Global RNG API which is global RNG that application can
11233           initialize.  After initializing, any routine anywhere in the
11234           code (including library) can use RNG without allocating a new
11235           RNG object.  This was done to allow this sort of use of the
11236           RNG in code that has no chance to allocate RNG object.  All
11237           applications currently allocate this and many routines in the
11238           library use this.  Affected file lib/silccrypt/silcrng.[ch].
11239
11240         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
11241           it to use the Global RNG API.
11242
11243         * Defined Authentication Payload into protocol specification that
11244           is used during SILC session to authenticate entities.  It is
11245           used for example by client to authenticate itself to the server
11246           to obtain server operator privileges.
11247
11248           Implemented this payload into the lib/silccore/silcauth.[ch].
11249           Implemented also routines for public key based authentication
11250           as the new protocol specification dictates.
11251
11252           Moved definitions of different authentication methods from
11253           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
11254
11255         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
11256           silc_pkcs_verify and silc_pkcs_sign_with_hash and
11257           silc_pkcs_verify_with_hash functions into the file
11258           lib/silccrypt/silcpkcs.[ch].
11259
11260 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11261
11262         * The client entry's userinfo pointer must be always valid.
11263           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
11264           will fail since it requires the userinfo.  Now, the userinfo
11265           is allocated as "" if actual userinfo does not exist.  Actually,
11266           it must exist and it is totally Ok to drop client connections
11267           that does not announce the userinfo.  However, we will make
11268           this workaround for now.
11269
11270         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
11271           to return the remote port by socket.
11272
11273 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11274
11275         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
11276           SILC_SERVER_PENDING_EXEC and added an new macro
11277           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
11278           data or when error occurs while processing the pending command.
11279
11280           Added new argument `destructor' into silc_server_command_pending
11281           and to the SilcServerCommandPending object.  This destructor is
11282           now called after calling the pending callback or if error occurs
11283           immediately.  If error occurs the actual pending callback won't
11284           be called at all - only the destructor.  The destructor may be
11285           NULL if destructor is not needed.
11286
11287           All this applies for client library code as well.  Similar
11288           changes were made there as well for the pending commands.
11289
11290           In the client, the application must now allocate the
11291           SilcClientCommandContext with the silc_client_command_alloc
11292           function.
11293
11294         * Added reference counter to the SilcServerCommandContext.  Added
11295           function silc_server_command_alloc and silc_server_command_dup
11296           functions.
11297
11298           Same type of functions added to the client library for the same
11299           purpose as well.
11300
11301         * Removed the cmd_ident from IDListData away since it is now
11302           global for all connections.  It is the command identifier used
11303           in command sending and with pending commands.  The affected file
11304           is silcd/idlist.h.
11305
11306         * Added reference counter to the SilcSocketConnection objecet to
11307           indicate the usage count of the object.  The object won't be
11308           freed untill the reference counter hits zero.  Currently only
11309           server uses this, and client ignores it.  The client must be
11310           set to use this too later.  The affected files are
11311           lib/silccore/silcsockconn.[ch].  Added also the function
11312           silc_socket_dup to increase the reference counter.
11313
11314           This was mainly added because it is possible that the socket
11315           is removed underneath of pending command or other async
11316           operation.  Now it won't be free'd and proper DISCONNECTING
11317           flags, etc. can be set to avoid sending data to connection that
11318           is not valid anymore.
11319
11320         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
11321           the connection.  After that it sets SILC_SET_DISCONNECTED.
11322           It is, however, possible that the socket data is not still freed.
11323           The silc_server_packet_process now checks that data is not
11324           read or written to connection that is DISCONNECTED.  The socket
11325           get's freed when the reference counter hits zero.
11326
11327 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11328
11329         * Changed the client operation API: channel_message operation's
11330           `sender' is now the client entry of the sender, not the nickname
11331           and the `channel' is the channel entry, not the channel name.
11332
11333           In the private_message operation the `sender' is now also the
11334           client entry of the sender not the nickname.
11335
11336           Affected file is lib/silcclient/ops.h and all applications
11337           using the client operations.
11338
11339 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11340
11341         * Moved the calling of ops->connect() from connect_to_server_final
11342           into receive_new_id functin since that is the point when the
11343           client is actually allowed to send traffic to network.  The
11344           affected file is lib/silcclient/client.c.
11345
11346 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11347
11348         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
11349           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
11350           (if needs broadcasting) instead of broadcasting the packets one
11351           by one which would make a burst in the network traffic.
11352
11353         * Added `broadcast' argument to the functions in silcd/server.[ch]
11354           silc_server_create_new_channel[_with_id] to indicate whether
11355           to send New Channel packet to primary router.
11356
11357 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11358
11359         * Added new function into the silcd/server.[ch] files:
11360           silc_server_create_new_channel_with_id to create new channel with
11361           already existing Channel ID.
11362
11363         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
11364           lib/silccore/silcpacket.h.  This packet is used t send list of
11365           Set Mode payloads inside one packet.  Server uses this to set
11366           the modes for the channels and clients on those channels, that it
11367           announced to the router when it connected to it.  The protocol
11368           specification has been updated accordingly.
11369
11370         * The silc_server_new_channel did not handle the packet coming
11371           from normal server as it normally does not send that.  However,
11372           when it announces its channels it does send it.  Implemented
11373           the support for that.
11374
11375         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
11376           into the file lib/silccore/id.h.
11377
11378 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11379
11380         * Fixed memory leaks in the functions silc_idlist_del_client,
11381           silc_idlist_del_channel and silc_idlist_del_server in the file
11382           silcd/idlist.c.  All of those leaked like a sieve.
11383
11384         * Fixed some small memory leaks in the client's function
11385           silc_client_notify_by_server.
11386
11387         * Added functions into silcd/server.c: silc_server_announce_clients,
11388           silc_server_announce_channels and silc_server_announce_server.
11389           These functions are used by normal and router server to announce
11390           to its primary router about clients, channels and servers (when
11391           router) that we own.  This is done after we've connected to the
11392           router.
11393
11394           These functions effectively implements the following packet types:
11395           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
11396           and SILC_PACKET_NEW_ID_LIST.
11397
11398         * Added new functions into the silcd/packet_receive.[ch]:
11399           silc_server_new_id_list, silc_server_new_channel_list and
11400           silc_server_new_channel_user_list to handle the incoming
11401           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
11402
11403         * Added support of changing Channel ID in the function
11404           silc_server_replace_id.  If the server that announces a channel
11405           to the router already exists in the router (with same name but
11406           with different Channel ID), router is responsible to send
11407           Replace ID packet to the server and force the server to change
11408           the Channel ID to the one router has.
11409
11410         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
11411           client that the Channel ID has been changed by the router.  The
11412           normal server sends this to the client.  Client must start using
11413           the new Channel ID as the channel's ID.
11414
11415           Implemented handling of this new type into lib/silcclient/client.c
11416           into the function silc_client_notify_by_server.
11417
11418         * Added new function silc_idlist_replace_channel_id into the files
11419           silcd/idlist.[ch] to replace the Channel ID.
11420
11421 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11422
11423         * Call silc_server_command_identify_check always when processing
11424           the IDENTIFY command in silcd/command.c
11425
11426 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11427
11428         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
11429           send keepalive packets.  The packet can be sent by clients,
11430           servers and routers.
11431
11432           Added function silc_socket_set_heartbeat into the file
11433           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
11434           If not set, the heartbeat is not performed.  The actual
11435           heartbeat is implemented in the low level socket connection
11436           library.  However, application is responsible of actually
11437           sending the packet.
11438
11439           Added silc_server_send_heartbeat to send the actual heartbeat
11440           packet into silcd/packet_send.[ch].  Server now performs
11441           keepalive with all connections.
11442
11443         * Added silc_task_get_first function into lib/silcutil/silctask.c
11444           to return the timeout task with shortest timeout.  There was a bug
11445           in task unregistration that caused problems.  TODO has been
11446           updated to include that task system must be rewritten.
11447
11448         * The client library will now resolve the client information when
11449           receiving JOIN notify from server for client that we know but
11450           have incomplete information.
11451
11452         * Rewrote parts of silc_server_remove_from_channels and
11453           silc_server_remove_from_one_channel as they did not remove the
11454           channel in some circumstances even though they should've.
11455
11456         * Encryption problem encountered in server:
11457
11458           The LEAVE command used to send the Channel Key packet to the
11459           router immediately after generating it.  However, the code
11460           had earlier sent Remove Channel user packet but not immediately,
11461           ie. it was put to queue.  The order of packets in the router
11462           was that Channel Key packet was first and Remove Channel User
11463           packet was second, even though they were encrypted in the
11464           reverse order.  For this reason, MAC check failed.  Now, this
11465           is fixed by not sending the Channel Key packet immediately but
11466           putting it to queue.  However, this is more fundamental problem:
11467           packets that are in queue should actually not be encrypted
11468           because packets that are sent immediately gets encrypted
11469           actually with wrong IV (and thus MAC check fails).  So, packets
11470           that are in queue should be encrypted when they are sent to
11471           the wire and not when they put to the queue.
11472
11473           However, the problem is that the current system has not been
11474           designed to work that way.  Instead, the packet is encrypted
11475           as soon as possible and left to the queue.  The queue is then
11476           just purged into wire.  There won't be any fixes for this
11477           any time soon.  So, the current semantic for packet sending
11478           is as follows:
11479
11480           o If you send packet to remote host and do not force the send
11481           (the packet will be in queue) then all subsequent packets to the
11482           same remote host must also be put to the queue.  Only after the
11483           queue has been purged is it safe again to force the packet
11484           send immediately.
11485
11486           o If you send all packets immediately then it safe to send
11487           any of subsequent packets through the queue, however, after
11488           the first packet is put to queue then any subsequent packets
11489           must also be put to the queue.
11490
11491           Follow these rules and everything works fine.
11492
11493 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11494
11495         * Added new function silc_server_remove_clients_by_server to
11496           remove all client entries from ID list when the server connection
11497           is lost.  In this case it is also important to invalidate all
11498           client entires as they hold the invalid server entry.  This
11499           fixes fatal bug when server has lost connection and will reconnect
11500           again.
11501
11502 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11503
11504         * Made some sanity checks to silc_server_daemonise like to check
11505           whether the requested user and group actually exists.
11506
11507         * Added sanity check to SKE's silc_ske_responder_finish to check
11508           that the public and private key actually is valid.
11509
11510         * Invalidate the client's nickname when receiving Replace ID
11511           packet and the Client ID is being replaced.  This means that the
11512           server will query the nickname if someone needs it (client)
11513           a bit later.
11514
11515         * Sort the ID Cache in client library when the ID Cache data
11516           has changed (needs sorting).
11517
11518         * Do not allow for SILC client to create several connections to
11519           several servers.  The client does not support windows right now
11520           and generating multiple connections causes weird behaviour.
11521
11522           Irssi-silc client does support windows and can handle several
11523           connections without problems, see: www.irssi.org and SILC plugin.
11524
11525         * Fixed some places where client was added to the IDList.  The
11526           rule of thumb is following (in order to get everything right):
11527           If the client is directly connected local client then the
11528           `connection' argument must be set and `router' argument must be
11529           NULL to silc_idlist_add_client function.  If the client is not
11530           directly connected client then the `router' argument must
11531           bet set and the `connection' argument must be NULL to the
11532           silc_idlist_add_client function.
11533
11534         * The funtion silc_server_packet_send_local_channel actually did
11535           not check whether the client was locally connected or not.  It
11536           does that now.  Fixed a bug related to LEAVE command.
11537
11538         * Fixed Remove Channel User payload parsing bug in server's
11539           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
11540
11541         * The server's silc_server_save_channel_key now checks also the
11542           global ID list for the channel as it might not be in the local
11543           list.  Fixed a bug related to LEAVE command.
11544
11545         * Is this the end of the [<unknown>] buglet that has been lurking
11546           around for a long time?  A little for loop fix in server's
11547           silc_server_command_whois_parse that is used by both IDENTIFY
11548           and WHOIS command.  At least, this was a clear bug and a cause
11549           of one type of [<unknown>] buglet.
11550
11551         * WHOIS and IDENTIFY commands call the function
11552           silc_server_command_[whois/identify]_check function even if
11553           we are not router server.
11554
11555 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11556
11557         * Added --with-gmp configuration option.  If set the GMP
11558           is always compiled in the SILC source tree.  If not set then
11559           it is checked whether the system has the GMP3 installed.  If
11560           it has then the GMP won't be compiled (the system's headers
11561           and library is used), if it doesn't have it then the GMP is
11562           compiled in the SILC source tree.
11563
11564 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11565
11566         * Changed RSA private exponent generation to what PKCS #1
11567           suggests.  We try to find the smallest possible d by doing
11568           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
11569           not security fix but optimization.
11570
11571 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11572
11573         * Added new config entry [Identity] to fork the server and run
11574           it as specific user and group.  A patch from Bostik.
11575
11576         * Imported Dotconf configuration library into lib/dotconf.
11577           This will be used to create the SILC configuration files later.
11578           It will appear in the distsribution after this commit.
11579
11580 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11581
11582         * A big code auditing weekend happening.  Auditing code for
11583           obvious mistakes, bugs and errors.  Also, removing any code
11584           that is obsolete.
11585
11586           Removed files for being obsolete:
11587
11588           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
11589           inline in the file lib/silcutil/silcbuffer.h)
11590
11591           o lib/silcutil/silcbufutil.c (the header has inline versions)
11592
11593           Changed code to fix possible error conditions:
11594
11595           o The buffer formatting routines now check that the destination
11596           buffer really has enough space to add the data.  This applies for
11597           both buffer formatting and unformatting
11598           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
11599           unformatting was changed to accomodate following rules:
11600           XXX_*STRING_ALLOC will allocate space for the data into the pointer
11601           sent to the function while XXX_*STRING will not allocate or copy
11602           the data into the buffer.  Instead it sets the pointer from the
11603           buffer into the pointer sent as argument (XXX_*STRING used to
11604           require that the pointer must be allocated already).  This change
11605           makes this whole thing a bit more consistent and more optimized
11606           (note that the data returned in the unformatting with XXX_*STRING
11607           must not be freed now).  The routines return now -1 on error.
11608
11609           o Tried to find all code that use buffer_format and buffer_unformat
11610           and added return value checking to prevent formatting and
11611           especially unformatting errors and possible subsequent fatal
11612           errors.
11613
11614           o Changed ske->x and ske->KEY to mallocated pointers in
11615           lib/silcske/silcske.h.  Fixed possible data and memory leak.
11616
11617           o Added return value checking to all *_parse* functions.  Fixed
11618           many memory leaks as well.
11619
11620           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
11621           so that buffer overflows would not happen.  All code now also
11622           checks the return value as it can fail.
11623
11624 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11625
11626         * Added reconnection support to server if the normal server looses
11627           its connection to the router (for example if router is rebooted).
11628           The server performs normal reconnection strategy implemented
11629           to the server.  Affected file silcd/server.c.
11630
11631 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11632
11633         * Added new packet type SILC_PACKET_SET_MODE that is used to
11634           distribute the information about changed modes (for clients,
11635           channels and clients channel modes) to all routers in the
11636           network.  Updated the protocol specification accordingly.
11637
11638           Added functions into silcd/packet_send.c and
11639           silcd/packet_receive.c: silc_server_send_set_mode,
11640           silc_server_set_mode.
11641
11642           Added new files silcmode.[ch] into lib/silccore that implements
11643           the encoding and decoding of Set Mode Payload.  Added new type
11644           SilcSetModePayload.  Moved the definitions of different modes
11645           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
11646
11647 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11648
11649         * Oops, a little mistake in server's connection authentication
11650           protocol.  The protocol is not ended with FAILURE but with
11651           SUCCESS if the authentication is Ok. :)  Affected file is
11652           silcd/protocol.c.
11653
11654         * Implemented NICK_CHANGE notify handling in server in the file
11655           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
11656           the local clients on the channel.  After the changing nickname
11657           in router environment snhould work and the [<unknown>] nickname
11658           should appear no more.
11659
11660           The silc_server_replace_id function that receives the Replace ID
11661           payload now sends the NICK_CHANGE notify type also in the file
11662           silcd/packet_receive.c
11663
11664         * Changed WHOIS and IDENTIFY command to support the maximum amount
11665           of arguments defined in protocol specs (3328 arguments).  This
11666           fixed a bug that caused problems when there were more than three
11667           users on a channel.
11668
11669 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11670
11671         * Added extra parameter, command identifier, to the
11672           silc_client_send_command so that explicit command identifier
11673           can be defined.
11674
11675           Changed that ID list routines uses specific command identifier
11676           when sending WHOIS/IDENTIFY requests to the server so that they
11677           can be identified when the reply comes back.
11678
11679           Affected files lib/silcclient/command.[ch],
11680           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
11681
11682         * Added `sender' argument to silc_server_packet_send_to_channel
11683           to indicaet the sender who originally sent the packet to us
11684           that we are now re-sending.  Ignored if NULL.  Affected file
11685           silcd/packet_send.[ch].
11686
11687         * Added some server statistics support in silcd/server_internal.h
11688           SilcServerStatistics structure and around the server code.  Also
11689           send some nice statistics information when client is connecting
11690           to the client.
11691
11692 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11693
11694         * Fixed channel ID decoding in server's JOIN command reply in
11695           silcd/command_reply.c
11696
11697         * Fixed braodcasting of replace ID payload to not to send it if
11698           we are standalone server in silcd/packet_receive.c.
11699
11700         * Fixed all channel message sending routines to not to send
11701           packets to clients that has router set, since they are routed
11702           separately in the same function earlier.  Affects file
11703           silcd/packet_send.c and all channel packet sending functions.
11704
11705         * In USERS reply, res_argv[i] are not allocated, the table
11706           is allocated.  Thus changed that free the table, not its
11707           internals.
11708
11709         * In server's whois_check and identify_check if the client is
11710           locally connected do not send any WHOIS commands - they are not
11711           needed.
11712
11713 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11714
11715         * Fixed some minor bugs in client when sending WHOIS command.  The
11716           arguments was in wrong order.
11717
11718         * Removed statis function add_to_channel from server in
11719           silcd/command.c that was previously used with the joining but
11720           is obsolete now.
11721
11722         * Tested USERS command in router environment successfully with two
11723           routers, two servers and two clients.
11724
11725 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11726
11727         * Reorganized the USERS command and command reply in client library
11728           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
11729           When the command is given by user we register a pending command
11730           callback that will reprocess the command after the reply has been
11731           received from the server.  When reprocessing the packet we then
11732           display the information.  Thus, the USERS information is displayed
11733           now in the command callback instead of in the command reply
11734           callback.  The processing of the command is same as previously
11735           when server has sent the command reply in the JOINing process.
11736
11737         * Added to USERS command in silcd/command_reply.c to join the client,
11738           we didn't use to know about, to the channel after we've created
11739           a client entry for it.  Also, for clienet we did know already still
11740           check whether it is on the channel or not and add it if not.
11741
11742         * Removed silc_server_command_join_notify as the function and its
11743           use was obsolete.
11744
11745 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11746
11747         * Changed the client's pending command handling to the same as the
11748           server's pending command handling.  It is also now possible to
11749           execute command reply functions from other command reply
11750           function as the function callbacks for commands and command
11751           replies are one and same.  The pending commands are not static
11752           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11753           in client connection context.  Thus, pending commands are server
11754           connection specific as it is convenient.
11755
11756           Changed the function silc_client_command_pending and
11757           silc_client_command_pending_del and added new function
11758           silc_client_command_pending_check.  Removed the
11759           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11760           macros.
11761
11762         * Added cmd_ident, current command identifier, to the client
11763           connection context in lib/silcclient/client.h to keep track on
11764           command identifiers used in command sending.  Client's command reply
11765           function handling now supports the mandatory command identifiers.
11766
11767         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11768           funtions in client to fully support pending command callbacks.
11769
11770         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11771           as one of the arguments to the application in the command reply
11772           client operation.
11773
11774         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11775           before first releasing SILC but came back.  Now it is removed again
11776           and should come back nomore.  The FORWARDED flag was used only
11777           by the JOINing procedure by forwarding the command packet to router.
11778           Now, the JOINing procedure has been changed to more generic (due
11779           to various router environment issues) and FORWARDED is not needed
11780           anymore for anything.  The protocol specification is yet to be
11781           updated.
11782
11783           Now, removed silc_server_packet_forward from server and the flag
11784           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11785
11786 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11787
11788         * Renamed NAMES command to USERS command.  The NAMES was named that
11789           due to historical reasons.  Now it is renamed.  Also, rewrote
11790           parts of the USERS command.  The nickname list is not sent anymore
11791           by the server.  Only Client ID and mode lists are sent in the USERS
11792           command.  Changed this also to the protocol specification.
11793
11794           The client now resolves the names and stuff after it receives
11795           the USERS list from the server when joining to the channel.
11796
11797         * WHOIS and IDENTIFY commands has been changed to support multiple
11798           Client ID's per command.  One can now search for multiple users
11799           in the network by sending only one WHOIS or IDENTIFY command.
11800           Changed the code and the protocol specifications.
11801
11802         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11803           uses silc_server_command_whois_parse to parse the request. */
11804
11805         * If normal server, do not parse the WHOIS and IDENTIFY requests
11806           before sending it to the router.  Saves some time.
11807
11808 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11809
11810         * Fixed JOIN command on client library.  Wrong number of arguments
11811           used to crash the client.
11812
11813         * Added silc_server_channel_has_global function to check whether
11814           channel has global users or not.
11815
11816         * Added silc_server_channel_has_local function to check whether channel
11817           has locally connected clients on the channel.
11818
11819         * The silc_server_remove_from_one_channel now checks whether the
11820           channel has global users or not after given client was removed from
11821           the channel.  It also checks whether the channel has local clients
11822           on the channel anymore.  If it does not have then the channel entry
11823           is removed as it is not needed anymore.
11824
11825         * The silc_server_notify now checks on JOIN notify whether the joining
11826           client is one of locally connected or global.  If it is global then
11827           the channel has now global users on the channel and that is marked
11828           to the channel entry.  Also, it now saves the global client to
11829           global list who is joining and JOINs it to the channel.  This is
11830           for normal server, that is.
11831
11832           Changed silc_server_send_notify_on_channel,
11833           silc_server_packet_relay_to_channel and
11834           silc_server_packet_send_to_channel check if we are normal server
11835           and client has router set (ie. global client) do not send the
11836           message to that client, as it is already routed to our router.
11837
11838         * Implemented LEAVE notify type handling in silc_server_notify
11839           function.
11840
11841         * Tested LEAVE command in router environment successfully.  Tested
11842           with two routers, two servers and two clients.
11843
11844         * Updated TODO.
11845
11846         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11847
11848         * Implemented SIGNOFF notify type handling in silc_server_notify
11849           function.
11850
11851         * silc_server_remove_id now removes the client entry from all channels
11852           it has joined and thusly sends SIGNOFF notify type.
11853
11854         * Rewrote the NAMES list generation in server by removing two excess
11855           loops.  The lists are created now inside one loop.
11856
11857 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11858
11859         * silc_server_remove_channel_user checks now also global list
11860           for channel and client.
11861
11862         * silc_server_new_channel_user checks now both local and global
11863           list for channel and client.  Fixed a bug in client id decoding.
11864           Used to decode wrong buffer.
11865
11866         * silc_server_channel_message checks now both local and global
11867           list for channel entry.
11868
11869         * Tested channel joining (hence JOIN) in router environment
11870           successfully.  Tested with two routers, two servers and two
11871           clients.
11872
11873         * Tested channel message sending in router environment successfully.
11874
11875 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11876
11877         * Added silc_server_save_channel_key into server.[ch] to save the
11878           received channel key in Channel Key payload processing. It is
11879           also used in JOIN command reply handling.
11880
11881           Equivalent function silc_client_save_channel_key added into
11882           client.[ch] into client library.
11883
11884         * Changed JOIN command reply to send information whether the channel
11885           was created or not (is existing already) and the channel key
11886           payload.  Changed protocol specs accordingly.
11887
11888         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11889           the request was sent by ID and not by nickname.  Crashed on
11890           NULL dereference.
11891
11892 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11893
11894         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11895           now correctly save the received data.
11896
11897         * silc_server_free_sock_user_data now notifies routers in the
11898           network about entities leaving the network.
11899
11900           At the same time implemented functions silc_server_remove_id
11901           and silc_server_send_remove_id to receive and send REMOVE_ID
11902           packets.  The packet is used to notify routers in the network
11903           about leaving entities.  The ID removed will become invalid in
11904           the network.
11905
11906         * Added function silc_idlist_del_server into server. Removes and
11907           free's server entry from ID list.
11908
11909         * silc_server_private_message function now checks, if we are router,
11910           that the destination ID really is valid ID, naturally.
11911
11912         * In router when NEW_ID packet is received (for new client) the
11913           hash of the Client ID is saved in the ID Cache but the
11914           client->nickname is set to NULL, instead of putting the hash
11915           to it as well.
11916
11917           IDENTIFY command now also checks that client->nickname must be
11918           valid. If it is not if will request the data from the server who
11919           owns the client.  Added new function
11920           silc_server_command_identify_check.
11921
11922         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11923           to set the command to already allocated Command Payload.
11924
11925         * Tested private message sending in router environment with two
11926           routers, two servers and two clients.  Fixed minor bugs and now
11927           it works fine.
11928
11929         * Fixed segfault from client's NAMES command. Used to crash if
11930           not on any channel.
11931
11932         * Forwarded packets must not be routed even if it is not destined
11933           to the receiver.  Changed server code comply with this.
11934
11935 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11936
11937         * Added `require_reverse_mapping' boolean value to ServerParams
11938           structure. If TRUE (not default) the server will require that
11939           the connecting host has fully qualified domain name.
11940
11941           If the reverse mapping is not required and hostname could not be
11942           found the IP address is used as hostname.
11943
11944 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11945
11946         * Implemented version string checking to both client and server.
11947           The check is incomplete currently due to the abnormal version
11948           strings used in development version of SILC.
11949
11950         * Changed all command functions in server to use the new
11951           CHECK_ARGS macro.
11952
11953 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11954
11955         * Changed char *data to unsigned char *data in ID Cache system to
11956           support binary data as ID Cache data. Changed code to support
11957           binary data in lib/silccore/idcache.c.
11958
11959         * Renamed silc_server_packet_relay_command_reply to
11960           silc_server_command_reply as it is normal packet receiving
11961           function. Rewrote the function to accept command replys for
11962           servers and not only for clients.
11963
11964         * Mark remote router always as registered server if we are connecting
11965           to it.  Otherwise, commands sent by the router to us are ignored.
11966
11967         * All ID List find routines now returns the ID Cache Entry pointer
11968           as well if requested.
11969
11970         * WHOIS command works now in router environment, tested with two
11971           routers, two servers and two clients.
11972
11973         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11974           in router environment (as it is almost equivalent to WHOIS) but
11975           hasn't been tested thoroughly.  Added new functions:
11976
11977           silc_server_command_identify_parse
11978           silc_server_command_identify_send_reply
11979           silc_server_command_identify_from_client
11980           silc_server_command_identify_from_server
11981
11982         * Disabled route cache adding because adding two different ID's with
11983           same IP replaces the old cache entry thus giving wrong route.
11984           The entry->router->connection is always the fastest route anyway
11985           so route cache may not be needed.  Of course, new routes maybe
11986           established after receiving the ID when the entry->router->connection
11987           might not be anymore the most optimal.
11988
11989 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11990
11991         * Add route cache for received ID for fast routing.
11992
11993         * Added silc_server_packet_route to route received packet on router
11994           that is not destined to us.
11995
11996         * Renamed silc_server_get_route to silc_server_route_get.
11997
11998         * Added id_string and id_string_len fields into SilcServer to
11999           include encoded ServerID for fast comparing without excess
12000           encoding of the ID's.
12001
12002         * Cleaned up WHOIS command on server side. Added following static
12003           functions:
12004
12005           silc_server_command_whois_parse
12006           silc_server_command_whois_check
12007           silc_server_command_whois_send_reply
12008           silc_server_command_whois_from_client
12009           silc_server_command_whois_from_server
12010
12011         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
12012           arguments in command replies. All command functions should be
12013           updated to use this macro.
12014
12015 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12016
12017         * Minor typo fixes on command reply handling on server.
12018
12019 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12020
12021         * Added silc_server_command_add_to_channel internal routine to add
12022           the client to the channel after router has created the channel and
12023           sent command reply to the server.
12024
12025         * Added generic silc_server_send_command to send any command from
12026           server.
12027
12028         * Use static buffer with ID rendering instead of duplicating data.
12029
12030 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12031
12032         * Fixed a channel user mode bug when joining to a channel server gave
12033           everybody channel founder rights, oops.
12034
12035         * We mark ourselves as the router of the incoming server connection
12036           if we are router ourselves.  This way we can check in some packet
12037           sending functions whether it is locally connected server.  For
12038           incoming router connections we put NULL.
12039
12040         * For router sending packets locally means now always sending the
12041           packet cell wide; to local clients and local servers.  For normal
12042           server sending packet locally means sending it to only local
12043           clients.
12044
12045         * Fixed the JOIN command to really work in router environment.  If the
12046           channel is created it is always created by the router.  Router is
12047           also responsible of making the initial joining to the channel,
12048           sending JOIN notify to the sending server and distributing
12049           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
12050           does not exist server doesn't do anything else but forward the
12051           command to the router which performs everything.
12052
12053         * Added silc_server_send_channel_key function to send the Channel Key
12054           payload.
12055
12056         * Added silc_server_create_channel_key to create new channel key.  The
12057           channel key is now re-generated everytime someone joins or leaves
12058           a channel, as protocol dictates.  Note: channel->key_len is the
12059           key length in bits.
12060
12061 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12062
12063         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
12064           packet_receive.[ch] to separate packet sending and receiving
12065           routines.  The server.[ch] now includes everything else including
12066           actual packet processing (writing and reading data) and other
12067           server issues.
12068
12069           Renamed silc_server_private_message_send_internal to
12070           silc_server_send_private_message.  The routine is still though
12071           used only to relay private messages as server does not send
12072           private messages itself.
12073
12074           Renamed silc_server_new_channel to silc_server_create_new_channel
12075           and added new function sicl_server_new_channel that handles the
12076           incoming New Channel packet.  Added also new sending function
12077           silc_server_send_new_channel to send New Channel Payload.
12078
12079         * Added new function silc_server_notify to process incoming notify
12080           packet to the server/router. Server may then relay the notify
12081           to clients if needed.
12082
12083         * Added new function silc_server_new_channel_user to process incoming
12084           New Channel User packet.  Router will redistribute the packet and
12085           send JOIN notify to its local clients and locally connected servers
12086           if needed.  Normal server will send JOIN notify to its local client
12087           on same channel when received this packet.  Added also corresponding
12088           sending function silc_server_send_new_channel_user to sent the
12089           payload.
12090
12091         * Added boolean route argument to send_notif_to_channel and
12092           packet_send_to_channel functions to attempt to route the packet
12093           if it is TRUE and send only locally if it is FALSE.
12094
12095 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12096
12097         * silc_server_replace_id now broadcasts the received replace ID
12098           packet if it is not broadcast packet already. The router must
12099           broadcast to inform other routers about changed ID.
12100
12101         * Added backpointer to server's router into SilcServer context in
12102           silcd/server_internal.h.
12103
12104         * Fixed silc_server_packet_broadcast to send correct broadcast
12105           packets.
12106
12107         * The channel key is now distributed to the local client as soon
12108           as it is received from the router (in router environment) so that
12109           no other packet may be sent for the channel until client has
12110           received the key.
12111
12112         * silc_server_remove_channel_user now broadcasts the received
12113           Remove Channel User packet if it is not broadcast packet already.
12114           The router must broadcast to inform other routers about removed
12115           channel user.
12116
12117         * Added users field into SilcPacketContext that is a reference count
12118           of the context.  One can increase the reference count by calling
12119           silc_packet_context_dup which is now changed to just increase the
12120           reference count instead of duplicating the data.  The reference
12121           count is decresed by calling silc_packet_context_free that will
12122           free the data after the reference count hits zero.
12123
12124           For now on the packet context and everything allocated into it
12125           (including the raw packet from network) must be freed by calling
12126           the new silc_packet_context_free function.  Added also new function
12127           silc_packet_context_alloc that must be used now to allocate the
12128           context.  This also means that if a routine is asynchronous from
12129           silc_[client/server]_packet_parse_type the packet context must
12130           be duplicated by calling silc_packet_context_dup.  Otherwise it
12131           gets free'd after silc_[client/server]_packet_parse_type returns.
12132           Also, one must remember that if packet is duplicated then its
12133           reference count must be decresed by calling the free function as
12134           many times as it was duplicated.
12135
12136         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
12137           from both client and server.
12138
12139 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12140
12141         * Made joining to a channel working in router environment.
12142
12143         * Cleaned up JOIN command on server side and create function
12144           silc_server_command_join_channel internal routine to make the
12145           joining happen.
12146
12147 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12148
12149         * Changed silc_command_pending list to SilcDList.  Also, added
12150           `ident' field to SilcServerCommandPending structure to identify
12151           the reply and to call correct callback.
12152
12153           Added silc_server_command_pending_check function to replace the
12154           corresnponding macro.  The silc_command_pending list is not
12155           extern anymore.
12156
12157         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
12158           to set identifier to previously allocated Command Payload.  It
12159           is used to set identifier for command when resending Command
12160           Payload.
12161
12162         * Added silc_command_payload_encode_payload to encode Command
12163           Payload buffer from SilcCommandPayload structure.
12164
12165         * Added silc_argument_payload_encode_payload to encode Argument
12166           payload buffer from SilcArgumentPayload structure.
12167
12168 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12169
12170         * Changed WHOIS command to support router connection on server side.
12171           The whois request is always sent to router unless the server is
12172           standalone server.  After server has received the reply from the
12173           router will it send the reply to the client.
12174
12175         * Added silc_server_packet_broadcast into silcd/server.[ch] to
12176           broadcast received broadcast packet.  The function is used only
12177           by router.  The broadcast packet is always sent to the router's
12178           primary route.
12179
12180         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
12181           render given ID to printable string, for log files for example.
12182
12183 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12184
12185         * Made basic router to router connections working.  At least they
12186           can now connect to each other but nothing really works the way
12187           they are supposed - yet.
12188
12189         * Added new initiator token to RouterConnection configuration
12190           file in silcd/serverconfig.[ch].  It is used to tell whether we
12191           are the initiator to the remote router or whether we'll expect
12192           the other end to connect.
12193
12194         * Moved registering of listener task to silc_server_init, hence
12195           the server starts listenning as soon as it is run, even if it
12196           does not have connections to other routers.  Let's see how well
12197           this will work.
12198
12199         * Changed default connection retry timeouts for more suitable in
12200           silcd/server.h.
12201
12202         * Removed cipher and such arguments from silc_idlist_add_client
12203           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
12204           Added new function silc_idlist_add_data to add the keys and stuff
12205           to any ID entry.
12206
12207         * Added SilcIDListData structure and added it to SilcClientEntry
12208           and SilcServerEntry as their first field in the structure.  This
12209           way we can explicitly cast the ID entries to the SilcIDListData
12210           structure and get common data for the entries.  In past, we had
12211           to first check what type of connection it is and then cast it to
12212           correct ID entry type.  Now, we can directly cast the opaque
12213           pointer to the SilcIDListData (no matter what ID entry it actually
12214           is) and get the data needed.
12215
12216 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12217
12218         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
12219           in some circumstances even if threre were timeout tasks, though not
12220           IO tasks, but tasks anyway.  Now fixed.
12221
12222         * Defined SilcServerConnection structure to hold connection specific
12223           stuff about directly connected servers and routers.  The definition
12224           is currently in silcd/server_internal.h.  I thought about having
12225           a bit more important role fro this struct but for now it is used
12226           only when connecting to other server (or router actually).
12227
12228         * Added connecting retry support in server when connecting to
12229           router(s).  The retry feature implement exponential backoff
12230           algorithm.  Also, added SilcServerParams structure to hold default
12231           parameters for server.  For now, it include these retry settings
12232           and are hard coded.  After server is moded to be as Silc Server
12233           Library this structure will be more important.
12234
12235 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12236
12237         * Changed client librarys channel->clients table to SilcList and
12238           changed code accordingly.
12239
12240 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12241
12242         * Changed client's channel table to SilcList and changed code
12243           accordingly.  Also changed SilcChannelClientEntry to include back-
12244           pointer to the channel so that client entry can use that structure
12245           as list as well and we have fast cross-reference to the channel.
12246           This change dramatically decreased the complexity of channel
12247           handling with client entry and vice versa (removed one extra
12248           loop when searching for channel entry from many functions).
12249
12250         * Changed server->sim from table to SilcDList and changed code
12251           accordingly.
12252
12253         * NAMES command can now be used from user interface.  It will show
12254           the user list on the channel, neatly.
12255
12256         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
12257           Code now saves realname of the user if it becomes available.
12258
12259         * Renamed configure.in to configure.in.pre and made ./prepare
12260           script to automatically add correct version string to
12261           configure.in which it creates from configure.in.pre.
12262
12263 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12264
12265         * NAMES command reply now shows users mode with the nickname when
12266           joining to channel.
12267
12268         * Moved silc_client_ch[u]mode[_char] functions from
12269           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
12270           place sucks, they are utility functions and should be in some
12271           other file.
12272
12273         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
12274
12275         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
12276           cras.
12277
12278 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12279
12280         * Updated README.
12281
12282         * Added TRQ (efficient deque and list library) into lib/trq.  This is
12283           a very good list library that is currently used in the SILC.  Defined
12284           SilcList API over the library because I didn't like the API very
12285           much.  See lib/trq/silclist.h for the API and examples of how to
12286           use the API.  Fixed various places in the code to use the new
12287           SilcList API. The SilcList is meant for lists that has a structure
12288           already defined as a list.  It is not suitable to add just some
12289           context to the list (in TRQ, the context is the list actually).
12290
12291           So, I defined SilcDList that can be used for the purpose where
12292           predefined list structure does not exit.  This can be used as
12293           such list.  Now some context just can be added to the SilcDList.
12294           Currently this list is not used in the SILC just yet, though there
12295           are a lot places where this can replace dynamically allocated
12296           tables and I will fix these places, later, to use SilcDList.
12297           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
12298           and use TRQ internally).
12299
12300           Also fixed some annoying warning messages that the original TRQ
12301           code generated.  Also minor changes to TRQ's Makefile.in.
12302
12303         * Added support for querying by Client ID to both WHOIS and
12304           IDENTIFY commands into server, as required by the protocol.
12305
12306         * Removed method function pointers from SilcBuffer structure. They
12307           weren't used to anything and just increased the context size for
12308           no good reason.  This change also made silc_buffer_alloc and
12309           silc_buffer_free functions inline functions.
12310
12311         * Disabled command flooding detection support until it's fixed so
12312           that it accepts commands in but does not execute them more than once
12313           in two seconds.
12314
12315         * Added silc_net_localhost(), to return local hostname, into
12316           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
12317           that must be initialized before calling silc_client_init.
12318
12319         * Added new function: silc_server_send_notify_on_channels to send
12320           notify messages to all channels client has joined.  It is assured
12321           that the message is sent only once per client.
12322
12323         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
12324           lib/silcutil/silcutil.[ch] as silc_format function.  The new
12325           function is generic and is used by server as well, not only by
12326           the logging routines.
12327
12328         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
12329           the provided version string was not acceptable.  Added new function:
12330           silc_ske_check_version into lib/silcske/silcske.h.  The function
12331           must be implemented by the application (client or server) and it
12332           does not reside in the SKE library.  The function checks the version
12333           string remote end sent.
12334
12335         * Added back pointers (to opaque context and to SilcSocketConnection)
12336           into SilcPacketContext structure into lib/silccore/silcpacket.h.
12337
12338         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
12339           duplicate packet context structure.
12340
12341         * Changed `notify' client operation to send same arguments as client
12342           receives from server except for ID's.  ID's are mapped to correct
12343           ID entry and that is returned.  Also, if channel entry is not sent
12344           by server but the notify is for channel the channel entry is sent
12345           to application (otherwise application doesn't know that it is for
12346           channel (library gets it from packet's Destination ID)).
12347
12348         * Added silc_client_remove_from_channels into client library to
12349           remove a client from all channels it has joined to.  Used when
12350           received SIGNOFF notify from server.  Added also new function
12351           silc_client_replace_from_channels to replace old ID entry with
12352           new ID entry on all channels.  Used when received NICK_CHANGE
12353           notify from server.
12354
12355         * Fixed ID Cache list handling in silc_idlist_get_client in
12356           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
12357           to get (or query) client by ID.
12358
12359         * Updated TODO list.
12360
12361         * Added connection authentication status message defined by the
12362           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
12363           support for these into the code in client and server side.
12364
12365         * Added generic function silc_client_send_command to send any command
12366           with variable argument list.  Application should use this function
12367           to send commands if the command functions provided by the library
12368           does not suite for the application's user interface needs.
12369
12370         * Added new `failure' client operation.  Application is notified about
12371           received failure packet if client is executing a protocol.  In this
12372           case the protocol's execution has failed.
12373
12374         * Added SKE's end notify to send the SKE_SUCCESS notify message that
12375           is required by the protocol.
12376
12377         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
12378           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
12379           error at our end.
12380
12381         * Added status flag to SilcSKE object to indicate realtime status
12382           of the SKE protocol.
12383
12384         * Application receives now exactly same command reply arguments as
12385           the library receives from server.  However, if ID is received the
12386           corresponding ID entry is returned to the application (eg. Client
12387           ID is mapped to correct SilcClientEntry entry and that is returned).
12388           Changed command_reply client operation due to this change.
12389
12390         * Changed all ID's in commands and in command replys as ID Payloads.
12391           Change affected both client and server side codes.
12392
12393           All ID's sent in SILC network (with execption of ID's in SILC
12394           Packet header) are sent in ID Payload to support variable length
12395           ID's.
12396
12397         * Server now notifies nick changes and notifies all clients on
12398           the channels about the new nickname (about the new Client ID,
12399           actually).
12400
12401         * Implemented CMODE command to change channel modes. Supports all
12402           channel modes defined by the protocol specs except ban and invite
12403           lists. (Also, private channel key mode is supported but support for
12404           setting private channel key in client is missing, thus, this mode
12405           has no effect on client side (except that server requires that the
12406           client uses private channel key and normal channel traffic does not
12407           work anymore)).
12408
12409           Also, invite mode works per se, but INVITE command does not work
12410           yet correctly, so you can set channel as invite only channel but
12411           inviting clients to the channel does not work (it is yet to be
12412           thought what's the best way to do it).
12413
12414         * Added new command SILC_COMMAND_CUMODE to change user mode on the
12415           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
12416           Implemented CUMODE command to change user's mode on the channel.
12417           Supports all modes defined by the protocol specs.
12418
12419         * Added NAMES command reply to return users modes on the channel.
12420
12421         * Removed unnecessary and slow ciphers from lib/silccrypt.
12422
12423         * Set SO_KEEPALIVE option to connection sockets by default.
12424
12425         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
12426
12427         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
12428           redefined the Notify Payload into protocol specs.
12429
12430         * Added silc_id_payload_parse_id to get ID directly from raw
12431           ID payload data.
12432
12433 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12434
12435         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
12436           accept searching by Client ID as well.
12437
12438         * Added support for LEAVE and SIGNOFF notify types in client library.
12439
12440         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
12441           to parse ID Payload from raw data.
12442
12443 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12444
12445         * Added flags parameter into silc_ske_assemble_security_properties
12446           function in lib/silcske/silcske.[ch].
12447
12448         * Changed notify client operation to fit better for notify messages
12449           sent by server.  The notify payload received from server is now
12450           passed to the application (after parsing it to SilcNotifyPayload).
12451           It is application's responsibility to retrieve the arguments
12452           from the payload and show the message the way it wants.  The message
12453           sent by server is implementation specific.
12454
12455         * Changed public keys to comply with the protocol specification.
12456           Old public keys are not supported anymore and are not compatible.
12457
12458         * Removed nickname from Channel Payload as the latest draft removed
12459           it.  The client must resolve the nickname from the NAMES command
12460           reply received when it joined the channel.
12461
12462           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
12463
12464 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12465
12466         * Fixed some errors in protocol specification drafts.
12467
12468         * Created lib/silccore/silcnotify.c to implement Notify Payload
12469           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
12470           generic payloads described by protocol specifications.  The file
12471           includes implementations for ID Payload and Argument Payload.
12472
12473         * Changed Command Payload implementation to use the new Argument
12474           Payload.  Changed command_xxxx_payload to command_payload_xxxx
12475           to comply with SILC coding conventions.
12476
12477         * Added suppport for Argument Payload handling in Notify Payload
12478           implementation as protocol requires it.  Added the new support
12479           into server and client lib as well.
12480
12481 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12482
12483         * Added support for multiple nicknames on same channel.  [n] is
12484           added locally to the nickname if there are more than one same
12485           nicknames on the channel.
12486
12487         * Server now sends all nicknames that matched WHOIS request.
12488           Client also shows the list received from server.
12489
12490         * Added TOPIC command to client side.  User can now set and show
12491           current topic on channel.
12492
12493         * Added MOTD command to client and server.  Also, server sends the
12494           motd when client connects to the server.
12495
12496         * Changed version strings to comply ISO 8601.
12497
12498 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12499
12500         * Fixed protocol error handling in client library.  It should now
12501           cope even if the SKE fails for some reason.
12502
12503         * Made new protocol specification drafts for submitting to IETF.
12504
12505         * Implemented TOPIC command to server in silcd/command.c.
12506
12507         * Added two new notify types into lib/silccore/silcnotify.h:
12508           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
12509           notify nickname change and topic setting/change on a channel.
12510
12511         * API change of command_reply operation in client library.  The
12512           application gets now the status type received from server as well.
12513
12514 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12515
12516         * Removed the function just added to lib/silcutil/silcschedule.[ch].
12517
12518         * Cras fixed and optimized the packet handling even further and
12519           it should work now.  Minor change to the prototype of function
12520           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
12521
12522 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12523
12524         * Added new function into lib/silcutil/silcschedule.[ch]:
12525           silc_schedule_with_fd to select() a specified fd.  The function
12526           returns after timeout expires or data arrives or goes.  The
12527           function is used by packet routines to wait that all data is
12528           received from network.
12529
12530         * Fixed data reading from network in lib/silccore/silcpacket.c.
12531           The code now assures that all data is read from the fd and then
12532           continues packet processing.  This was a bug fix since the code
12533           used to drop some data in some circumstances.
12534
12535         * Added new function into lib/silcclient/client.[ch]:
12536           silc_client_start_key_exchange to start key exchange after
12537           connection has been established to server.  The code internally
12538           now uses this funtion but its main purpose was to provide it
12539           for applications that perform their own connecting.  After
12540           application has created a connection it merely calls this
12541           function to start the key exchange between client and server.
12542           The library takes care of everything else after that.
12543
12544           Updated also lib/silcclient/README to explain the usage of
12545           this new function.
12546
12547         * Do not send to application information that connection has
12548           been established.  Application gets notified it by connect
12549           operation anyway.
12550
12551 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12552
12553         * Applied cras's patch to add silc_schedule_one function.  The
12554           function runs scheduler once and returns.
12555
12556         * Fixed the scheduler after cras messed it up.  The timeout
12557           handling works now as it's supposed to work.
12558
12559         * Added into lib/silccore/ silcnotify.h to include notify
12560           message types support.  Changed silc_server_send_notify*
12561           functions, in server.[ch], to support those new notify types.
12562           Added the support for the notify types into client library,
12563           as well.  Added new notify client operation into ops.h in
12564           lib/silcclient/.
12565
12566         * Changed silc_server_packet_send_to_channel to send normal
12567           packets instead of just channel message packets.  The function
12568           is now used to send the notify packets to channels.  It is not
12569           used to send channel message packets anymore, as server never
12570           sends them anymore.
12571
12572         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
12573           va_arg()s as it seems to require it nowadays.  I guess, if SILC
12574           is compiled with older va_arg() the new code should work anyway.
12575
12576 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12577
12578         * Splitted core library.  Core library (lib/silccore) includes
12579           now only SILC protocol specific core (and common) components.
12580           Created new utility library (lib/silcutil) that includes more
12581           generic purpose stuff.  The stuff for util library was taken
12582           from the old core library.  This was minor and easy split.
12583
12584         * Created SILC Client Library (lib/silcclient) that includes
12585           implementation of the SILC client without user interface.  This
12586           was major move from silc/ directory.  The code has been changed
12587           so that it is transparent towards the user interface.  The
12588           silc/ directory includes now the same user interface as before
12589           and it uses the new client library.  Read lib/silcclient/README.
12590           Basicly, the client library performs everything else related
12591           to SILC except user interface handling.  Also, configuration
12592           files are considered to be part of user interface and library
12593           does not handle them.
12594
12595           This change also changed a lot of structures, function naming etc.
12596           Most important change was that SilcClientWindow object was
12597           renamed to SilcClientConnection in the client library.  Created
12598           also new file lib/silcclient/ops.h.  Also added new files
12599           silc/local_command.[ch] and silc/client_ops.[ch].
12600
12601           All these changes were made to make it easier for user interface
12602           designers to create what ever user interface for the SILC client
12603           they want.
12604
12605           It is also expected that the server will be moved to lib
12606           directory as well and SILC Server Library will be created;
12607           sometimes in the future.
12608
12609         * Removed Local commands from lib/silccore/silccommand.h as
12610           they are application specific and new client library does not
12611           handle any of those anymore.
12612
12613         * Several functions moved to lib/silcutil/silcutilc.[ch] from
12614           old client implementation in silc/.
12615
12616         * Added support for callback functions in SILC_LOG_* macros.
12617           Application can now set its own callbacks that will be called
12618           instead of using the default functions that will always print
12619           the debug messages to stderr (or stdout).  Also, debugging can
12620           now be disabled by setting silc_debug to FALSE and re-enabled by
12621           setting it to TRUE.  Note, that logging will still work even
12622           if debugging is disabled.
12623
12624           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
12625           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
12626           silc_log_reset_debug_callbacks.
12627
12628         * To enable debugging in silc client one must give now -d
12629           option on command line.
12630
12631         * Changed silc_schedule_init to automatically allocate task queues
12632           if they are not allocated before calling it.
12633
12634 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12635
12636         * Added GMP 3.1 into math library.
12637
12638 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12639
12640         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
12641           a channel in SILC network.  The packet is used by servers and
12642           routers to notify other routers that user has left a channel.
12643           This little feature was missing until now.  Added the feature
12644           to protocol specification as well.
12645
12646           Added functions: silc_server_send_remove_channel_user and
12647           silc_server_remove_channel_user into server.[ch].
12648
12649         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
12650           lib/silccore/silcpacket.h.  However, they are not implemented
12651           yet.
12652
12653 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12654
12655         * Fixed joining to a channel and sending channel messages
12656           between server and router.  The channel message sending should
12657           now work inside a cell.
12658
12659 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12660
12661         * Fixed the private message sending between server and router.
12662           The private message sending should now work inside a cell.
12663
12664         * Added silc_server_replace_id into server.[ch] to replace
12665           existing ID in the SILC network.
12666
12667         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
12668           and silc_idlist_replace_server_id into idlist.[ch] in server.
12669
12670 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12671
12672         * Fixed the server to server connections.  Server can again now
12673           connect to router.  Router to router connections probably does
12674           not work just yet.
12675
12676 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12677
12678         * Added dynamic protocol registering support.  Now protocols can
12679           registered and unregistered on the fly.  Patch by cras.
12680
12681 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12682
12683         * Added lib/contrib directory to hold routines that some platforms
12684           don't have but are needed by SILC.
12685
12686         * Added getopt.c, getopt1.c and getopt.h from GNU C library
12687           into lin/contrib to provide getopt() and getopt_long() for
12688           those who don't have it.
12689
12690 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12691
12692         * Added AWAY command to client.  When away message is set and
12693           client receives a private message packet the client automatically
12694           replies to the sender with the away message.
12695
12696         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
12697           bug seemed to be the cause of recent problems when compiling
12698           with gcc-2.95.
12699
12700         * Added version detection support to SKE protocol specification
12701           and added the new changes to the SKE implementation as well.
12702           There were other minor changes in the SKE protocol as well.
12703
12704           Many changes in lib/silcske/silcske.[ch] and in
12705           lib/silcske/payload.[ch].
12706
12707         * Added ^U functionality, clear input line.  Patch from cras.
12708
12709 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12710
12711         * Mainly small bugfixes on core library.  Fixed some debugging
12712           logging and buffer overflow in silclog.c.
12713
12714         * Updated config.sub and config.guess on the distribution tree.
12715
12716 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12717
12718         * Added command lagging support in server. Client may execute
12719           commands now only once in two seconds.
12720
12721 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12722
12723         * Optimized packet reception. MAC computation and checking is now
12724           also more optimized.  A lot previously duplicated code is now
12725           used as generic by both client and server.
12726
12727         * Fixed key pair generation in clientutil.c
12728
12729 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12730
12731         * Added into lib/silccore/silcbufutil.[ch] new function;
12732           silc_buffer_realloc.
12733
12734         * Moved generic packet sending/encryption functions to
12735           lib/silccore/silcpacket.[ch] from client and server.  Some
12736           rewriting of the functions.
12737
12738         * Moved all generic packet reception/decryption functions to
12739           lib/silccore/silcpacket.[ch] from client and server.  The
12740           packet processing is now much cleaner in both client and server.
12741           These were major changes in both client and server.
12742
12743         * Created many common functions in server to do packet sending.
12744           Previously code were duplicated a lot, this has been removed
12745           with these changes.
12746
12747 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12748
12749         * Rewrote major parts of the ID cache system.  Don't know
12750           whether it is better now or not but at least the API is more
12751           cleaner now.
12752
12753         * Major rewrite on ID cache stuff on client because of the ID
12754           cache API changes.  Added idlist.c to client.
12755
12756         * Also major rewrite on ID cache stuff on server as well.
12757           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12758           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12759           in hand, instead they are all put into the ID cache system now.
12760           All server_idlist_* routines uses ID cache now instead of
12761           traversing its own lists (those lists does not exist anymore).
12762           SilcIDList though still exists.  Also, SilcXXXEntry's are
12763           now pointers.
12764
12765 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12766
12767         * Finally made the SKE implementation compliant to the protocol
12768           specification.  All mp integers are now binary encoded as
12769           opposed being HEX encoded.
12770
12771         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12772           from binary data.
12773
12774         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12775           functions: silc_[encode/decode]_pem.  Also added function
12776           silc_encode_pem_file to PEM encode with newlines ('\n') for
12777           saving into a file.
12778
12779         * SILC public keys are now encoded either PEM or binary.  Same
12780           option is for private keys as well.  By default private keys
12781           are binary encoded and public keys PEM encoded.  Silly HEX
12782           encoding were removed.
12783
12784         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12785           function to create fingerprints.
12786
12787         * Fixed a bug in SHA1; does not change the original data anymore.
12788
12789         * Partly implemented INFO command on client and server side.
12790           Fixed CLEAR command.  Changes to SERVER command; show current
12791           server(s) when giving command without arguments.  Added
12792           VERSION command to client.
12793
12794         * Added check to server that unregistered connections cannot
12795           execute commands (unless it is specificly allowed).
12796
12797 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12798
12799         * Fixed screen refresh.
12800
12801         * Fixed channel joining bug from client.  On some circumstances
12802           client tried to join to a channel it had already joined.
12803
12804         * Added public key verification process into client's protocol.c.
12805           The client now verifies the public key from user and saves
12806           it into ~./silc/serverkeys/ directory.
12807
12808           Added into: clientutil.[ch]: silc_client_verify_server_key.
12809
12810         * Changed SKE protocol's silc_ske_initiator_finish function
12811           to accept callback function that verifies the received public
12812           key.  Removed old silc_ske_verify_public_key function.
12813
12814 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12815
12816         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12817           silc_pkcs_private_key[_data]_set.
12818
12819         * Made the password and public authentication more cleaner in
12820           server's protocol.c.
12821
12822         * Removed historic and obsolete protocol `channel_auth' from
12823           both client and server.
12824
12825         * Removed wrong way of sending command status messages from
12826           server to client in server's command.c.  The old way violated
12827           protocol specification.
12828
12829           Changes to silccore/silccommand.[ch]: removed
12830           silc_command_encode_status_payload -> not needed anymore,
12831           changed silc_command_encode_payload_va to accept extra
12832           argument on variable argument list.  The argument type must
12833           now be provided to the function.  Also, added new function:
12834           silc_command_encode_reply_payload_va which is same as
12835           normal command_encode_payload_va except command status type
12836           is provided as extra argument.
12837
12838 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12839
12840         * Added ~./silc directory handling.  The directory includes the
12841           public and private keys for the client.
12842
12843           Added silc_client_check_silc_dir, silc_client_create_identifier
12844           and silc_client_load_keys.
12845
12846         * Implemented SILC protocol compliant public key.  Added public
12847           and private key saving to and loading from files.
12848
12849           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12850           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12851           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12852           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12853           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12854
12855           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12856           silc_pkcs_load_[public/private]_key.
12857
12858 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12859
12860         * Added silc_server_get_route (route.[ch]) to get connection
12861           data for the fastest route for given ID.
12862
12863         * Implemented INVITE command on client and server.  The command
12864           were re-defined in the SILC Protocol Specification and the
12865           implementation now complies with the specification.
12866
12867         * Implemented PING command on client and server.
12868
12869         * Implemented NAMES command on client and server.  The server side
12870           supports currently only normal server not router server yet.
12871           Some changes to NAMES definition in SILC protocol specification.
12872
12873 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12874
12875         * Implemented LEAVE command on client and server.
12876
12877         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12878           again.  This change was made to the protocol as well.  Server
12879           should not violate the protocol specification anymore.
12880
12881 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12882
12883         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12884           was tested.  SOCKS4 was not but should work anyway.