281213687c51778e08d58b20fe3cc0fc023329f5
[silc.git] / CHANGES
1 Sun Jun 24 16:33:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Fixed Unix signal task dispatching to not lock the signals
4           when dispatching the callback to avoid deadlocks.  Affected
5           file is lib/silcutil/unix/silcunixschedule.c.
6
7 Sun Jun 24 14:43:21 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
8
9         * Fix configure output for with-plugin.  Affected file is
10           apps/irssi/configure.ad
11
12 Tue Jun 19 17:05:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
13
14         * Added SILC_VERSION macro for checking package versions at
15           compile time.  Affected files are configure.ad,
16           includes/silc.h.in and includes/silcversion.h.in.
17
18 Mon Jun 18 23:47:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
19
20         * Use SILC_VERIFY to assert that silc_rwlock_wrlock can be
21           called only once per thread on Unix.  Affected file is
22           lib/silcutil/unix/silcunixthread.c.  Added same for mutex
23           as well.   Documented same on the API in 
24           lib/silcutil/silcmutex.h.
25
26         * Fixed USERS command reply write-lock unlocking.  Affected file
27           is lib/silcclient/command_reply.c.
28
29 Mon Jun 18 08:14:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
30
31         * Fixed silc_create_key_pair to check for valid identifier.
32           Affected file is lib/silcapputil/silcapputil.c.
33
34 Sun Jun 17 20:08:26 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
35
36         * Rewrite signed public message handling, adopting the new
37           hilight interface.  Affected file is
38           apps/irssi/src/fe-common/silc/fe-silc-messages.c
39
40 Thu Jun 14 21:15:31 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
41
42         * Fix off by one error when loading modules.  Affected file is
43           apps/irssi/src/core/modules-load.c
44
45         * Don't delete hilight entry (because it's just a pointer, not a
46           copy).  Affected file is 
47           apps/irssi/src/fe-common/silc/fe-silc-messages.c
48
49 Mon Jun 11 22:10:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
50
51         * Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution
52           which can be used to check for Toolkit version in third-party
53           software.  Affected file is configure.ad, includes/silc.h.in.
54
55 Sun Jun 10 17:32:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
56
57         * Added support for channel@server channel name strings to
58           client library (SILC protocol version 1.3 change).  Affected
59           files are lib/silcclient/silcclient_entry.h, client_entry.c.
60
61         * Added full_nicknames and full_channel_names settings to
62           SilcClientParams that can be used to specify whether client
63           library returns full nickname and channel name strings.
64           Full strings are nick@server and channel@server.  Affected
65           file is lib/silcclient/client_entry.c and command.c.
66
67 Sat Jun  9 19:43:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
68
69         * Fixed unix connecting failure to return error code correctly.
70           Affected file is lib/silcutil/unix/silcunixnet.c.
71
72 Fri Jun  8 23:32:33 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
73
74         * Fixed SKE timeout double free crash.  Affected file is
75           lib/silcske/silcske.c.
76
77         * Fixed MIME multipart decoding buffer overflow.  Affected file
78           is lib/silcutil/silcmime.c.  Thanks to Matt Miller for patch.
79
80 Fri Jun  8 18:39:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
81
82         * Fixed connection auth protocol timeout crash.  Affected
83           file is lib/silcske/silconnauth.c.
84
85         * Fixed FSM machine finishing to check for existing threads
86           at the final free callback to allow time for the threads to
87           finish.  Affected file lib/silcutil/silcfsm.c.
88
89 Thu Jun  7 21:25:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
90
91         * Fixed silc_client_get_clients_local to check the nick's
92           server also if nick@server nickname string is given to the
93           function.  Affected file is lib/silcclient/client_entry.c.
94
95 Wed Jun  6 18:33:05 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
96
97         * Added notify callback to silc_schedule_init which can be used to 
98           set a notify callback for scheduler which is called when task is
99           added to scheduler or deleted from scheduler.  Affected file
100           is lib/silcutil/silcschedule.[ch].
101
102         * Dispatch timeout tasks after dispatching FD tasks if the timeout
103           was very short.  Affected file is lib/silcutil/silcschedule.c.
104
105         * Rewrote the SILC scheduler handling in SILC Client to not poll
106           every few msecs but to use the new notify callback.  Affected 
107           file is apps/irssi/src/silc/core/silc-core.c.
108
109         * Fixed SFTP client library read buffer size which was too small.
110           Affected file is lib/silcsftp/sftp_client.c.
111
112         * Fixed file transfer crash bug in /QUIT in SILC Client.  Close
113           the FTP sessions before quitting the client.  Affected file
114           is apps/irssi/src/silc/core/silc-servers.c.
115
116 Tue Jun  5 20:48:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
117
118         * Fixed silc_packet_get_ids to decode the IDs correctly.
119           Affected file is lib/silccore/silcpacket.c.
120
121         * Fixed silc_client_get_clients_local to parse correctly nickname
122           string that may have server name in it (nick@server) regardless
123           whether it was formatted nickname or not.  Affected file is
124           lib/silcclient/client_entry.c.
125
126 Mon Jun  4 22:02:53 CEST 2007  Jochen Eisinger <jochen@penguin-breeder.org>
127
128         * Only destroy sendbuffers, if they still exist (they cease to
129           exist during /upgrade).  Affected file is
130           apps/irssi/src/silc/core/silc-servers.c
131
132 Mon Jun  4 21:24:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
133
134         * Removed --enable-silc-plugin.  Added --with-silc-plugin.
135           Affected files are configure.ad, lib/configure.ad,
136           apps/irssi/configure.ad, apps/irssi/configure.in,
137           apps/irssi/scripts/Makefile.am,
138           apps/irssi/scripts/examples/Makefile.am,
139           apps/irssi/src/silc/core/silc/Makefile.am,
140           apps/irssi/src/fe-common/silc/Makefile.am.
141
142 Mon Jun  4 08:35:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
143
144         * SILC Client 1.1.
145
146 Sun Jun  3 14:00:09 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
147
148         * Fixed DESTDIR handling in make install.
149
150 Sat Jun  2 21:04:32 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
151
152         * SIM modules are not delivered to SILC CLient distribution
153           anymore.
154
155         * Changed default installation path from /usr/local/silc to
156           /usr/local for all distributions.
157
158         * Removed --with-etcdir and --with-docdir.  The etcdir is now
159           the system's default.  The Docdir is system's default.
160
161 Sat Jun  2 00:51:57 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
162
163         * If public key/private key loading fails set the return
164           pointer to NULL.  Affected file is lib/silccrypt/silcpkcs.c.
165
166         * If private key loading fails in silc_load_key_pair free the
167           loaded public key.  Affected file is
168           lib/silcapputil/silcapputil.c.
169
170         * Fixed key pair loading crash with SILC Plugin if key pair
171           loading fails.  Affected file is
172           apps/irssi/src/silc/core/silc-core.c.
173
174         * Fixed SILC Client help and script file installation path
175           to go to prefix/share/silc.  Affected files are
176           apps/irssi/src/scripts/Makefile.am and
177           apps/irssi/docs/help/Makefile.am.gen.
178
179 Thu May 31 16:49:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
180
181         * Fixed UTC offset minutes to be actually minutes.  Affected
182           file is lib/silcutil/silctime.c.
183
184 Thu May 31 09:40:56 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
185
186         * SILC Toolkit 1.1.
187
188         * Added support for checking for timezone and tm_gmtoff.
189           Affected files are configure.ad and lib/silcutil/silctime.c.
190
191 Wed May 30 18:46:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
192
193         * Added silc-toolkit.spec.in RPM spec file.
194
195 Mon May 28 23:21:39 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
196
197         * Fixed nickname formatting crash when updating existing
198           client entry.  Affected file is lib/silcclient/client_entry.c.
199
200         * Fixed MIME object encoding in attribute payload encoding.
201           Affected file is lib/silccore/silcattrs.c.
202
203 Mon May 28 09:02:26 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
204
205         * SILC Client 1.1 Beta6
206
207 Sun May 27 20:38:30 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
208
209         * Copy SILC Plugin's libfe_common_silc.so to libfe_silc.so so
210           that user's don't have to do it manually.  Affected file
211           is apps/irssi/src/fe-common/silc/core/Makefile.am.
212
213 Thu May 24 15:30:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
214
215         * SILC Toolkit 1.1 Beta4.
216
217         * Fixed channel and server entry freeing in client library.
218           Affected file is lib/silcclient/client_entry.c.
219
220         * Do not allow stopping client before it has been started.
221           Affected file is lib/silcclient/client.c.
222
223 Wed May 23 23:21:03 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
224
225         * Fixed formatted nickname renaming to rename also irssi's
226           nicklist (/NAMES etc).  Affected file is
227           apps/irssi/src/silc/core/client_ops.c.
228
229         * Fixed SILC Plugin crash when stopping client library before
230           it has been started.  Affected file is
231           apps/irssi/src/silc/core/silc-core.c.
232
233 Tue May 22 17:18:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
234
235         * For SILC Client and SILC Server check for 1.1 Toolkit
236           in configure.  Affected file is configure.ad.
237
238         * Added better library linking flags and orders for SILC Client.
239           Affected file is configure.ad, Makefile.defines_int.in and
240           apps/irssi/src/fe-text/Makefile.am
241
242 Mon May 21 08:26:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
243
244         * SILC Client 1.1 Beta5.
245
246 Sun May 20 18:34:22 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
247
248         * Add hooks for Irssi 0.8.11 module functions.  Affected file
249           is apps/irssi/src/fe-common/silc/fe-common-silc.c
250
251 Sat May 19 14:46:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
252
253         * Fixed passphrase authentication with server.  Affected file
254           is lib/silcclient/client_connect.c.
255
256         * Fixed passphrase authentication as responder.  Affected file is
257           lib/silcske/silcconnauth.c.
258
259         * Changed SilcAskPassphrase and SilcGetAuthMeth callbacks to
260           return data as const.  Affected file is
261           lib/silcclient/silcclient.h.
262
263         * Fixed timeout calculation in Symbian scheduler.  Affected
264           file is lib/silcutil/symbian/silcsymbianscheduler.c.
265
266 Fri May 18 21:10:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
267
268         * Do not uninitialize u.m.threads atomic int in finish but in
269           free.  Fixes crash on any platform using atomic operations
270           using mutexes (like Symbian).  Affected file is
271           lib/silcutil/silcfsm.c.
272
273         * Fixes Symbian scheduler wakeup synchronization.  Affected file
274           is lib/silcutil/symbian/silcsymbianscheduler.c.
275
276 Fri May 18 18:10:36 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
277
278         * Fixed nickname formatting to handle already formatted nicknames
279           better.  Affected file is lib/silccilent/client_entry.c.
280
281         * Added "foo#2 appears as foo" support to SILC Client when user
282           leaves or quits and one formatted nickname remain.  Affected file 
283           is apps/irssi/src/silc/core/client_ops.c.
284
285         * Send SilcChannelEntry to application in SILC_NOTIFY_TYPE_SIGNOFF.
286           Affected file is lib/silcclient/client_notify.c.
287
288 Thu May 17 18:05:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
289
290         * Fixed silc_show_public_key to not free public key in case of
291           failure.  Affected file is lib/silcapputil/silcapputil.c.
292
293 Thu May 17 17:09:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
294
295         * SILC Toolkit 1.1 Beta3.
296
297         * Porting Toolkit to Symbian.  It should work while some sporadic
298           odd crashes remain.  However I was able to run mybot on SILCNet.
299           Basically tested scheduler, net routines, socket  routines,
300           threads and some other utility routines.  Affected files are
301           in lib/silcutil/symbian/.
302
303 Thu May 17 11:57:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
304
305         * Show realname and email address from public key when verifying
306           cached public keys with GETKEY.  Affected files are
307           apps/irssi/src/fe-common/module-formats.[ch] and
308           apps/irssi/src/silc/core/client_ops.c.
309
310 Wed May 16 20:41:04 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
311
312         * Include SILC Plugin theme.  Affected file is apps/irssi/plugin.theme
313
314         * Include SILC Plugin /silc command help.  Affected file is
315           apps/irssi/docs/help/silc
316
317         * Create channels before joining them.  Affected file is
318           apps/irssi/src/silc/core/client_ops.c
319
320 Wed May 16 18:59:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
321
322         * Fixed channel private key listing with /key.  Affected file
323           is apps/irssi/src/silc/core/silc-channels.c.
324
325         * Fixed the public headers from anonymous structures.  Affected
326           files are lib/.
327
328         * Changed silc_buffer_*len macros to inline functions.  Affected
329           file is lib/silcutil/silcbuffer.h.
330
331 Wed May 16 10:21:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
332
333         * Fixed nickname format parsing in JOIN notify handling and
334           in WHOIS command reply.  Affected file is
335           apps/irssi/src/silc/core/client_ops.c.
336
337 Wed May 16 09:34:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
338
339         * SILC Client 1.1 Beta4.
340
341 Tue May 15 23:55:41 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
342
343         * Added SILC_VERIFY macro which is equivalent to SILC_ASSERT
344           but is compiled always in.  Affected file is 
345           lib/silcutil/silclog.h.
346
347         * Use SILC_VERIFY in FSM macros instead of SILC_ASSERT which is
348           not there in release builds.  Affected file is
349           lib/silcutil/silcfsm.h.
350
351 Tue May 15 21:19:09 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
352
353         * SILC Client 1.1-beta3
354
355 Mon May 14 23:20:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
356
357         * Added silc_utf8_c2w and silc_utf8_w2c to do UTF-8 to widechar
358           and widechar to UTF-8 conversions.  Affected files are
359           lib/silcutil/silcutf8.[ch].
360
361 Mon May 14 19:45:14 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
362
363         * Include a README for the SILC Plugin
364
365 Sun May 13 22:08:59 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
366
367         * Adopt perl Makefiles for SILC Plugin.
368
369 Sun May 13 18:27:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
370
371         * Fixed client library initialization when the running callback
372           is not given to silc_client_init.  Affected file is
373           lib/silcclient/client.c.
374
375         * Fixed Symbian compilation problems around the tree.  Added
376           new Carbide.c++ project files to symbian/ directory.
377
378         * Fixed SilcLog API to work on Symbian.  On Symbian it doesn't
379           use any globals.  Affected files are lib/silcutil/silclog.c
380           and silclog_i.h.
381
382 Sun May 13 16:54:35 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
383
384         * Fix several warnings in Irssi's Makefiles.
385
386 Sun May 13 12:16:30 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
387
388         * Disable ASM if --with-pic was given.  Affected file is
389           lib/silccrypt/configure.ad
390
391 Fri May 11 19:10:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
392
393         * Wakeup scheduler in silc_fsm_continue and silc_fsm_next_later
394           in case they are called from a thread.  Affected file is
395           lib/silcutil/silcfsm.c.
396
397         * Fixed WIN32 thread creation to handle the Tls correctly.
398           Affected file is lib/silcutil/win32/silcwin32thread.c.
399
400 Thu May 10 18:29:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
401
402         * SILC Toolkit 1.1-beta2.
403
404 Thu May 10 18:21:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
405
406         * Fixed silc_net_tcp_connect crash on Unix and Win32.  Handle
407           the socket async operation correctly.  Changed that DNS lookup
408           is now done during connecting.  Affected files are
409           lib/silcutil/[unix|win32]/silc[unix|win32]net.c.
410
411         * Changed also silc_net_tcp_connect on Symbian to do DNS lookup.
412           Affected file is lib/silcutil/symbian/silcsymbiannet.c.
413
414         * Optimize silc_net_gethostbyname to check if the name is already
415           IP address.  Affected file is lib/silcutil/silcnet.c.
416
417 Wed May  9 19:51:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
418
419         * Print filename instead of empty function name in debug output
420           on WIN32.  Affected files are lib/silcutil/silclog_i.h and
421           silclog.c.
422
423         * Rewrote WIN32 SILC Scheduler.  It now handles non-blocking file 
424           descriptors and sockets better.  Though, room for optimization
425           remains.  Affected file is lib/silcutil/win32/silcwin32schedule.c.
426
427         * Removed silc_net_win32_[init|uninit].  They are called now
428           automatically when SILC Scheduler is allocated.  Wrote IPv4
429           address parser because inet_addr seemed not to work on my WIN32.
430           Affected file is lib/silcutil/win32/silcwin32net.c.
431
432         * Improved socketstream.h and stream.h documentation.
433
434 Tue May  8 18:13:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
435
436         * Changed private message waiting API in client library to make
437           it work better with multiple waiting threads.  The waiting is
438           not always per client entry instead of per connection.  Affected
439           files are lib/silcclient/client_prvmsg.c, client.h and
440           silcclient.h.
441
442         * Changed silc_packet_wait_init function to accept the the expected
443           Source ID of the packet as argument.  If specified only packets
444           with the specified types and Source ID are delivered.  Affected
445           files are lib/silccore/silcpacket.[ch].
446
447         * Fixed file transfer disconnection crash when closing the session
448           directly in the monitor callback after disconnection.  Affected
449           file is lib/silcclient/client_ftp.c.
450
451         * Make Toolkit compile on WIN32.  Affected files in win32/
452           and in lib/silcutil/win32/.
453
454         * Changed silc_compare_timeval to return negative, zero or
455           positive instead of just TRUE or FALSE.  This fixes 0 timeout
456           task dispatching on Windows.  Affected files are
457           lib/silcutil/silctime.[ch] and silcschedule.c.
458
459 Mon May  7 18:18:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
460
461         * Fixed CMODE channel auth public key retrieval.  Affected
462           file is lib/silcclient/command.c.
463
464         * Fixed CMODE command reply to return channel public keys
465           correctly.  Affected files are lib/silcclient/command_reply.c
466           and client_channel.c.
467
468 Sun May  6 12:43:19 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
469
470         * Added current channel key cipher name and HMAC name to
471           SilcChannelEntry.  Fixed channel private key creation.
472           Affected files are lib/silcclient/client_channel.c,
473           client_entry and silcclient_entry.h.
474
475         * Allow formatted nicknames as input to silc_client_get_clients
476           and silc_client_get_clients_whois.  Affected file is
477           lib/silcclient/client_entry.c.
478
479         * Fixed silc_message_payload_free crash.  Affected file is
480           lib/silccore/silcmessage.c.
481
482         * Added SILC_STATUS_ERR_NO_SUCH_PUBLIC_KEY to
483           lib/silccore/silcstatus.h.
484
485 Thu May  3 18:07:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
486
487         * Imported libtommath 0.41.  Renamed all mp_* functions to
488           tma_mp_* functions to avoid rare linking problems on systems
489           with mp_* functions.  Affected files are in lib/silcmath/.
490
491 Wed May  2 17:46:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
492
493         * SILC Toolkit 1.1 Beta1.
494
495 Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
496
497         * Set the server and router operator modes to local entry after
498           successful OPER or SILCOPER commands.  Affected file is
499           lib/silcclient/command_reply.c.
500
501 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
502
503         * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
504           and other smaller APIs to WIN32.  Affected files are in
505           lib/silcutil/win32/.
506
507         * Changed the various regex APIs as generic code in util library.
508           Affected files are lib/silcutil/silcstrutil.[ch].
509
510 Sat Apr 28 13:47:47 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
511
512         * Ported SILC Server to the new Toolkit API, working towards
513           SILC Server 1.1.  Affected files are in apps/silcd/.
514
515         * Added silc_skr_del_public_key, silc_skr_[ref|unref]_public_key
516           to lib/silcskr/silcskr.[ch].
517
518         * Fixed SILC public key copying to copy the identifier also.
519           Affected file is lib/silccrypt/silcpk.c.
520
521         * Added silc_packet_error_string to lib/silccore/silcpacket.[ch].
522
523         * Fixed OPER and SILCOPER passphrase asking in Client library.
524           Affected file is lib/silcclient/command.c.
525
526 Tue Apr 24 17:55:24 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
527
528         * Fixed command queue enabling after connecting to server.
529           The comparisons was from after changing to silc_utf8_strcasecmp.
530           Affected file is apps/irssi/src/silc/core/silc-servers.c.
531
532         * Fixed nickname setting with own client entry with 1.3 protocol
533           version server.  Affected file lib/silcclient/client_register.c.
534
535         * Ignore error notify for local client entry.  Affected file is
536           lib/silcclient/client_notify.c.
537
538         * Implemented responder rekey to SKE library.  Affected files are
539           lib/silcske/silcske.[ch].
540
541         * Fixed connection auth protocol completion sending.  Affected
542           file lib/silcske/silcconnauth.c.
543
544 Mon Apr 23 17:20:01 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
545
546         * Do not call TCP network listener callback with any error
547           status, as documented.  Affected file is
548           lib/silcutil/unix/silcunixnet.c.
549
550 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
551
552         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
553
554         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
555           Changed silc_skr_find to have SilcSchedule argument and removed
556           it from silc_skr_[alloc|init].  Affected files are
557           lib/silcskr/silcskr.[ch].
558
559         * Allow NULL id for silc_idcache_add.  Affected file is
560           lib/silcapputil/silcidcache.c.
561
562         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
563           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
564           Fixed also channel message encryption with router-to-router
565           packets.
566
567         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
568
569         * Added silc_net_get_error_string, silc_net_listener_get_ip and
570           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
571
572 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
573
574         * Add option --enable-silc-plugin.  Affected files are
575           apps/irssi/configure.{ad,in}
576
577         * Only compile the SILC Plugin if required.  Affected files are
578           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
579
580         * Conditionally build the SILC Plugin.  Affected files are
581           apps/irssi/src/silc/core/Makefile.am,
582           apps/irssi/src/fe-common/silc/Makefile.am
583
584         * Backout delayed protocol exit and replace with a lame busy
585           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
586           apps/irssi/src/silc/core/silc-core.c
587
588         * Fix key generation for SILC Plugin.  Affected file
589           apps/irssi/src/silc/core/clientutil.c
590
591 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
592
593         * Only pass -rpath to libtool when building shared libraries.
594           Affected file lib/Makefile.ad
595
596         * Removing the stray "s" in configure.ad
597
598 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
599
600         * Redraw the screen after creating a new key.  Affected file
601           apps/irssi/src/silc/core/clientutil.c
602
603 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
604
605         * Added SILC Client setting /set nickname_format that specifies
606           the nickname format string.  Changed default nickname format
607           string to "%n#%a".  Affected file is
608           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
609
610         * Fixed nickname parsing with WHOIS command to accept formatted
611           nicknames.  Changed the silc_client_get_clients_local to allow
612           the searched nickname to be formatted nickname.  Removed %s and
613           %S nickname formatters.  Affected files are in lib/silcclient/.
614
615         * Added silc_client_nickname_parse to Client library API.  Affected
616           file is lib/silcclient/silcclient.h.
617
618         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
619           commands.  Affected file are
620           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
621
622 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
623
624         * Incorporate SILC Plugin patches.  Affected files are
625           apps/irssi/src/fe-common/silc/module-formats.{c,h},
626           apps/irssi/src/silc/core/clientutil.{c,h},
627           apps/irssi/src/silc/core/silc-core.c,
628           apps/irssi/src/silc/core/silc-chatnets.{c,h},
629           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
630           apps/irssi/src/fe-common/silc/module.h
631
632 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
633
634         * In notify handling resolve user entries many times if the
635           resolving timedout.  Affected file lib/silcclient/client_notify.c.
636
637         * silc_client_get_clients_local do not return any invalid entries.
638           Affected file is lib/silcclient/client_entry.c.
639
640         * Do not print "there are now xx user on this channel" for users
641           that actually aren't anymore on the channel.  Affected file
642           is apps/irssi/src/client_ops.c.
643
644 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
645
646         * When joining channels with a password given in the config file,
647           use it.  Also use it when cycling (it would be better to get
648           the password from the server, but this isn't possible in SILC).
649           Affected files apps/irssi/src/silc/core/silc-servers.c,
650           apps/irssi/src/silc/core/silc-channels.c
651
652 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
653
654         * Import perl script for sign_messages from silc-plugin.  Affected
655           file apps/irssi/scripts/silc.pl
656
657 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
658
659         * Only wait for a nick on connecting, when it differs
660           (not counting case) from the username.  Affected file
661           is apps/irssi/src/silc/core/silc-servers.c
662
663 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
664
665         * Use time settings for lag settings.  Affected file is
666           apps/irssi/src/silc/core/silc-lag.c
667
668 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
669
670         * Added silc_thread_yield.  Affected file is
671           lib/silcutil/silcmutex.h.
672
673 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
674
675         * Fixed WHOIS command and requested attributes handling in
676           client library.  Affected files are lib/silcclient/command.c
677           and lib/silcclient/client_attrs.c.
678
679         * Fixed silc_time_value to actually work.  Added new function
680           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
681
682 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
683
684         * SILC Client 1.1 beta2.
685
686 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
687
688         * Fixed client to properly abort TCP stream creation when
689           giving /QUIT.  Affected file
690           apps/irssi/src/silc/core/silc-servers.c.
691
692         * Fixed several connecting aborting crashes from the client
693           library, packet engine and socket stream.  Affected files
694           are in lib/silclient/, lib/silccore/silcpacket.c and
695           lib/silcutil/unix/silcunixsocketstream.c.
696
697         * Fixed private key export double free crash in key generation.
698           Affected file is lib/silccrypt/silcpk.c.
699
700         * Fixed FSM event waiting when there are multiple signallers
701           and the waiter goes away after the first signal.  Affected
702           file in lib/silcutil/silcfsm.c.
703
704 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
705
706         * Fixed FSM event signalling to check if the waiter has gone
707           away already.  Affected file is lib/silcutil/silcfsm.c.
708
709         * Fixed counter mode encryption/decryption to handle non-padded
710           SILC packets correctly.  The silc_cipher_set_iv now
711           in counter mode resets for a new block.  Affected files are
712           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
713
714 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
715
716         * SILC Client 1.1 beta1.
717
718         * Memory leak fixes around the libraries.
719
720 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
721
722         * Added better check for epoll() in configure.  Affected file
723           is lib/configure.ad.
724
725 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
726
727         * Fixed per scheduler data input buffer in packet engine.  Use
728           list of inbufs instead of just one so that multiple streams
729           can do partial reads to different buffers.  Affected file is
730           lib/silccore/silcpacket.c.
731
732         * Fixed WATCH notify handling in client library.  Affected file
733           is lib/silcclient/client_notify.c.
734
735 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
736
737         * Fixed packet wrapper stream API to support encoder/decoder
738           for packets, and to handle partial reading correctly.  Fixed
739           also inbuf size checking in reading to have enough space before
740           reading.  Affected files are lib/silccore/silcpacket.[ch].
741
742         * Rewrote file transfer in client library.  Affected files are
743           in lib/silcclient/.
744
745         * Added TCP/UDP listener (internal) API to client library to have
746           generic way of dealing with listeners.  Fixed Key Agreement and
747           file transfer to use it.  Affected files are in lib/silcclient/.
748
749         * Fixed SKE to process SUCCESS packets synchronously and to call
750           completion synchronously.  Affected file is lib/silcske/silske.c.
751
752         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
753
754         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
755           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
756
757 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
758
759         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
760           to client library.  Affected file is
761           lib/silcclient/client_register.c.
762
763         * Serialize NICK and JOIN commands to avoid problems locally
764           with changing ID while joining to channel.  Affected file is
765           lib/silcclient/command.c.
766
767         * Fixed entry resolving while handling incoming JOIN notify.
768           Handle properly cases, in re-processing of notify packets, where
769           the IDs may become invalid while resolving the entry (like nick
770           change).  Entry is invalid if it doesn't have nickname, and such
771           entries are not delivered to application anymore.  These fixes
772           problems of not seeing JOINs when remote user changes nickname
773           at the same time.  Affected files are in lib/silcclient/.
774
775 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
776
777         * Added support for computing message payload MAC in new way
778           (SILC Protocol version 1.3).  Bakcwards support for old way
779           remains.  Affected files are lib/silccore/silcmessage.[ch].
780
781 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
782
783         * Added SilcRwLock API, a read/write lock.  Affected files are
784           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
785
786 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
787
788         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
789
790 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
791
792         * The silc_schedule_set_listen_fd now returns boolean value.
793           Fixed FD task adding to check correctly for already added
794           FD tasks.  Added stricter error checking for FD scheduling
795           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
796           and lib/silcutil/unix/silcunixschedule.c.
797
798         * The silc_stream_set_notifier now returns boolean value.  Changed
799           all streams to support and check for the error condition.
800           Affected files are in lib/silcutil/.
801
802         * Fixed SKE library session aborting and deletion.  Affected
803           file are lib/silcske/silcske.c.
804
805 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
806
807         * Implemented PKCS #1 with appendix with hash OID in the
808           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
809           lib/silccrypt/silchash.[ch] and
810           lib/silcasn1/silcasn1[_encode|decode].[ch].
811
812 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
813
814         * Added support for Version (V) SILC public key identifier.
815           Affected files are lib/silccrypt/silcpk.[ch].
816
817 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
818
819         * Rewrote connection auth request in client library.  It is now
820           done automatically by the library and the resolved method given
821           as a hint to get_auth_method client operation.  Affected files
822           are lib/silcclient/.
823
824 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
825
826         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
827           It can be used to wrap SilcPacketStream into SilcStream.
828
829         * Fixed %p formatting from silc_snprintf.  Affected file is
830           lib/silcutil/silcsnprintf.c.
831
832         * Ported SFTP library to new utility library.  Ported also
833           the SFTP testers.  Affected files in lib/silcsftp/.
834
835 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
836
837         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
838           of silc_snprintf, silc_vsnprintf, silc_asprintf and
839           silc_vasprintf.
840
841 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
842
843         * Added preliminary Symbian support.  Changes around the source
844           tree.  The symbian/ directory now includes Carbide.c++ project
845           files to compile the sources.
846
847         * Added silc_snprintf.  Affected files are
848           lib/silcutil/silcstrutil.[ch].
849
850 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
851
852         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
853           macros.  SILC_FSM_CONTINUE macro now immediately calls the
854           next state instead of first returning back to FSM.  Helps
855           in debugging crashes etc.
856
857           Removed FSM Semaphores.  Introduced FSM Event which is
858           asynchronous event.   Affected files are in lib/.
859
860         * Added epoll(7) support to SILC Scheduler.  It is used by default
861           if it is available.  Affected files are
862           lib/silcutil/silcschedule.[ch],
863           lib/silcutil/unix/silcunixschedule.c.
864
865 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
866
867         * Added CTR mode to AES.  Simplified cipher implementation API
868           more.  Affected files are in lib/silccrypt/.
869
870 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
871
872         * Removed `detach' client operation.  The detachment data is
873           now delivered in SILC_COMMAND_DETACH command reply to
874           application.  Affected file in lib/silcclient/.
875
876         * Rewrote resuming/detaching in client library.
877
878         * Added boolean encryption indicator for silc_cipher_set_key.
879           Affected files lib/silccrypt/silccipher.[ch].
880
881 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
882
883         * Added silc_likely and silc_unlikely macros for GCC branch
884           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
885
886         * Added assembler AES optimization.  Cleaned up the SILC Cipher
887           implementation API.  Affected files are in lib/silccrypt/.
888
889 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
890
891         * Changed back the SILC_FSM_THREAD_WAIT operation to not
892           continue to next state if thread is finished already.  That
893           check is not done anymore.  Affected files are
894           lib/silcutil/silcfsm.[ch].
895
896 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
897
898         * Removed silc_packet_[get|set]_ciphers and
899           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
900           handle REKEY_DONE packet sending in rekey.  Affected files
901           are lib/silccore/silcpacket.[ch].
902
903         * Added silc_fsm_is_started.  Affected files are
904           lib/silcutil/silcfsm.[ch].
905
906         * Added settings sign_channel_message, sign_private_message
907           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
908           support for key agreement in /KEY command. Affected files
909           in apps/irssi/src/silc/core/.
910
911         * During SILC Client initialization forward log messages to
912           stderr.   Affected files in apps/irssi/src/silc/core/.
913
914 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
915
916         * Added silc_ske_get_key_material.  Affected files are
917           lib/silcske/silcske.[ch].
918
919         * Added silc_packet_stream_is_udp.  Affected files are
920           lib/silccore/silcpacket.[ch].
921
922         * Added SKE packet retransmission support with UDP transport.
923           Affected file is lib/silcske/silcske.c.
924
925 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
926
927         * Added silc_socket_stream_is_udp.  Affected file is
928           lib/silcutil/silcsocketstream.[ch].
929
930         * Added UDP transport support to packet engine.  Affected file
931           is lib/silccore/silcpacket.c.
932
933         * Added silc_socket_stream_is_udp.  Affected file is
934           lib/silcutil/silcsocketstream.[ch].
935
936 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
937
938         * Added silc_packet_send_va[_ext] to send variable argument
939           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
940
941         * Timeout freelist garbage collection added to scheduler.
942           Affected file lib/silcutil/silcschedule.c.
943
944 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
945
946         * Added silc_show_public_key_file to
947           lib/silcapputil/silcapputil.[ch].
948
949         * Added SILC_STR_ADVANCE support for buffer unformatting.
950           Affected file lib/silcutil/silcbuffmt.c.
951
952 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
953
954         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
955
956         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
957
958         * silc_fsm_continue[_sync] now cancels erlier timeout set with
959           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
960
961 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
962
963         * Added SILC_STR_FUNC to buffer format API.  Affected files
964           are lib/silcutil/silcbuffmt.[ch].
965
966         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
967
968         * No more memory allocation for message payload parsing.
969           Pre-allocated buffer can be used with message payload encoding.
970           Affected files lib/silccore/silcmessage.[ch].
971
972 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
973
974         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
975           to silcutil/silcbuffmt.[ch].
976
977 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
978
979         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
980           Affected file lib/silcutil/silcbuffmt.[ch].
981
982         * Removed silc_schedule_signal_[un]register and
983           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
984           to add signal task.  Only one callback per signal may be
985           added.  The signals are now automatically called back to
986           caller.  Affected files lib/silcutil/silcschedule.[ch] and
987           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
988
989         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
990
991         * Added SilcSKEParams for SKE parameters and simplied even more
992           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
993           Added support for IV included and session port handling with
994           UDP/IP connections.
995
996         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
997           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
998           which is called after every rekey when IV Included flag is used.
999           See SILC specifications for details.
1000
1001 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
1002
1003         * Added lib/silcapputil and moved SILC application specific
1004           utility routines from the generic util library lib/silcutil
1005           to the new library.  Removed lib/silcidcache and moved that
1006           to lib/silcapputil as well.
1007
1008 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1009
1010         * Added SILC_STR_ADVANCE.  Affected file is
1011           lib/silcutil/silcbuffmt.[ch].
1012
1013         * The silc_buffer_strformat preserves buffer locations now.
1014
1015         * Added lib/silcutil/silcatomic.h for atomic operations.
1016
1017 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1018
1019         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
1020           server.
1021
1022         * Fixed MIME deocing when data portion is not present.
1023           Affected file lib/silcutil/silcmime.c.
1024
1025 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1026
1027         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
1028
1029         * Added IV Included support to packet routines, to allow
1030           packet sending and receiving on UDP/IP.  Affected files are
1031           lib/silccore/silcpacket.[ch].
1032
1033         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
1034
1035 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1036
1037         * Added UDP support to network and socket stream library.
1038
1039 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
1040
1041         * Added conditional variables.  New files are
1042           lib/silcutil/silcondvar.h and platform specific implementations.
1043
1044 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
1045
1046         * make sure session->hostname and session->port are valid before the
1047           application callback is done, since things will go wrong if the
1048           application immediately calls silc_client_file_receive. Affected
1049           file lib/silcclient/client_ftp.c.
1050           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
1051
1052 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1053
1054         * New SILC PKCS API enabling support for other public keys
1055           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
1056
1057         * Separated SILC Public Key Payload routines from the PKCS API
1058           to lib/silccore/silcpubkey.[ch].
1059
1060 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1061
1062         * Added SILC Key Repository library, lib/silcskr.
1063
1064         * Added SILC Server library, lib/silcserver.
1065
1066 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1067
1068         * MIME objects in attributes now use SilcMime.  Affected files
1069           are lib/silccore/silcattrs.[ch].
1070
1071 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1072
1073         * Synchronize semaphore posting for real threads in FSM.
1074           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
1075
1076 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1077
1078         * Added silc_file_set_nonblock.  Affected file is
1079           lib/silcutil/silcfileutil.h.
1080
1081         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
1082
1083 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1084
1085         * FSM based implementation of SILC SKE.  Simpler interface also.
1086           Affected files are in lib/silcske/.
1087
1088         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
1089
1090 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1091
1092         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
1093           silc_mime_parse is available but deprecated.
1094
1095         * Check that packet is valid when processing key exchange,
1096           authentication and rekey protocols.  Fixes a crashbug.
1097           Affected files are apps/silcd/protocol.c and
1098           lib/silcclient/protocol.c.
1099
1100         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
1101           all hash buffers to use that instead of fixed values.
1102
1103 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
1104
1105         * Added SHA-256 to crypto library.  The SHA-256 takes now
1106           precedence over SHA-1.
1107
1108 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1109
1110         * Check for valid return value from regcomp.  Affected file
1111           lib/silcutil/unix/silcunixutil.c.
1112
1113 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1114
1115         * Fixed silc_hash_uint to work with integers.  Affected
1116           file lib/silcutil/silcutil.c.
1117
1118 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1119
1120         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
1121
1122 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1123
1124         * Fixed channel public key list saving on JOIN command reply
1125           on backup router.  Affected file apps/silcd/command_reply.c.
1126
1127 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1128
1129         * Added default limit how many channels client can join,
1130           default is 50.  Added 'channel_join_limit' configuration
1131           option to server too.  Affected files are apps/silcd/command.c
1132           and serverconfig.[ch].
1133
1134 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1135
1136         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
1137           On Toolkit the server and client are not compiled by default.
1138           Affected file configure.ad.
1139
1140 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1141
1142         * Added lib/contrib/getopt.[ch] for platforms that don't
1143           have it (it is not GPL implementation).
1144
1145         * Fixed compilation when pkg-config is used.
1146
1147 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1148
1149         * A comma in invite/ban string is invalid, check for it.
1150           Affected file apps/silcd/server_util.c.
1151
1152         * Added SERVICE command to the server.  It parses the command
1153           request but SILC Server does not support services for the
1154           time being.  Affected file apps/silcd/command.[ch].
1155
1156         * Added SERVICE command and command reply to client library.
1157           It is however incomplete.  Updated Toolkit documentation.
1158           Affected files are lib/silcclient/command[_reply].[ch].
1159
1160         * Fixed IDENTIFY/WHOWAS command reply to send the username
1161           correctly (uninitialized buffer).  Affected file is
1162           apps/silcd/server_query.c.
1163
1164 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1165
1166         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
1167           finalizes the major restructuring of the CVS tree.
1168
1169 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1170
1171         * Send empty MOTD reply if MOTD file cannot be read.
1172           Affected file silcd/command.c.
1173
1174 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1175
1176         * Optimized primer number generator to use simpler conversion
1177           routines.  Also assure that the prime number will have the
1178           highest bit set after modifying it.  Affected file is
1179           lib/silcmath/silcprimegen.c.
1180
1181         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
1182
1183         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
1184           for now only for testing purposes, it will not be delivered
1185           in any distribution for now.
1186
1187         * Removed NSS MPI from the source tree.  Due to upcoming
1188           license change for the SILC Toolkit, we cannot deliver the
1189           NSS MPI anymore.  I decided to replace it in all distributions
1190           with public domain library.
1191
1192         * Removed GNU regex from lib/contrib and introduced free
1193           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
1194           GNU regex compatible API to it (only partial).
1195
1196         * Removed getopt routines from lib/contrib.
1197
1198 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1199
1200         * Use silc_server_send_command_reply to send replies instead
1201           of encoding packet itself.  Affected file silcd/command.c.
1202
1203         * Added command sending and receiving statistics to server.
1204           Affected files in silcd/.
1205
1206         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
1207           with GCC, for it not to warn about pointer signedness.
1208
1209 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1210
1211         * Added context to the SilcIDCache destructor.  Affected
1212           files are lib/silccore/silcidcache.[ch],
1213           lib/silcclient/client.c and silcd/server.c.
1214
1215 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1216
1217         * Added pkg-config check to configure.
1218
1219         * The PublicKeyDir must not be used with Admin block in server
1220           config.  Affected file silcd/serverconfig.c.
1221
1222 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1223
1224         * Added Autodist.
1225
1226 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1227
1228         * Handle empty LIST command reply correcttly in server.  Affected
1229           file silcd/command_reply.c.
1230
1231         * Handle empty LIST command reply correctly in client library.
1232           The application will now receive one LIST command reply with
1233           all arguments set to NULL if there are no channels.  Updated
1234           Client Library documentation accordingly.  Affected file
1235           lib/silcclient/command_reply.c.
1236
1237 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1238
1239         * Added channel name string stringprep profile to the protocol
1240           and implementation to allow a little free'er channel name
1241           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
1242
1243         * Added silc_channel_name_[check|verify] to check and verify
1244           channel name strings.  Affected files are
1245           lib/silcutil/silcstrutil.[ch].
1246
1247         * Added support for the new channel name preparation in client
1248           library and server.  Affected files in lib/silcclient and
1249           silcd/.
1250
1251 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1252
1253         * Added the Autodist into the source tree.  It replaces the
1254           old ./prepare.  It can be used to create distributions as
1255           previously.  See README.CVS and README.DIST.  See
1256           distributions in distdir/.
1257
1258 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1259
1260         * Make sure query sends at least an error back if nothing
1261           more is sent.  Affected file silcd/server_query.c.
1262
1263 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1264
1265         * During query, check if the original command caller goes
1266           away.  If it does, stop the query.  Affected file
1267           silcd/server_query.c.
1268
1269         * Check for valid channel creation in JOIN command reply.
1270           Affected file lib/silcclient/command_reply.c.
1271
1272         * Handle the resolver counter in silc_client_get_users_by_channel
1273           callback correctly.  Fixed auto-join bug in Gaim.  Affected
1274           file lib/silcclient/idlist.c.
1275
1276 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1277
1278         * Added some better error messages.  Affected file
1279           silcd/command_reply.c and packet_receive.c.
1280
1281         * Handle error in WATCH command propely on backup router.
1282           Affected file silcd/command.c.
1283
1284         * Fixed freeing of unfreeable variable in WHOIS command reply.
1285           Affected file silcd/command_reply.c.
1286
1287 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
1288
1289         * Added pkg-config .pc file creation for silc core library
1290           and silcclient library.  A patch by c0ffee.
1291
1292         * Removed the need for GNU Libidn.  Added the simple stringprep
1293           from libidn into lib/contrib/.  It is now used also on Windows
1294           build.
1295
1296 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1297
1298         * Simplified the invite and ban string handling in the
1299           server.  Check for valid invite and ban arguments also.
1300           Affected file silcd/server_util.c.
1301
1302 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1303
1304         * Added WATCH list announcing in backup router protocol.
1305           Affected files are silcd/command.c, server.c, server_backup.c.
1306
1307         * Do not change users mode to founder on normal server/backup
1308           if the founder mode is set, and user is first one to join.
1309           Affected file silcd/pcaket_receive.c.
1310
1311         * Do not send CUMODE_CHANGE notify back to sender.  Affected
1312           file silcd/packet_receive.c.
1313
1314         * Added getrusage() to take noise in SILC RNG.  A patch by
1315           Mika Boström.  Affected files are configure.in.pre,
1316           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
1317
1318 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1319
1320         * Splitted the SILC libraries configuration into a configure
1321           fragment into lib/configure.ad.  It is now possible, once
1322           this feature is added, to specify whether to compile or not
1323           compile included SILC libraries.  Affected files are
1324           configure.in.pre, lib/silcmath/mpi/configure.ad,
1325           lib/configure.ad, Makefile.defines.pre and
1326           Makefile.defines_int.pre.
1327
1328         * Added --with-silc-includes and --with-silc-libs to configure.
1329           If specified the included libs are not compiled, but the
1330           specified libs are used.  Pkg-config is not yet supported.
1331           Affected file configure.in.pre.
1332
1333         * Fixed WATCH command handling on backup router.  Router does not
1334           send the watch command any more to backup if it originates from
1335           backup.  Affected file silcd/command.c.
1336
1337 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1338
1339         * Changed announcing to not announce unregistered clients.
1340           Affected file silcd/server.c.
1341
1342         * Fixed username handling in command reply.  Affected file
1343           silcd/command_reply.c.
1344
1345         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
1346
1347 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
1348
1349         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
1350           Affected file: includes/silcincludes.h.in
1351
1352         * bool is defined as _Bool on Mac OS X now.
1353           Affected file: lib/silcutil/silctypes.h
1354
1355 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1356
1357         * Added support for UTF-8 nicknames, channel names and
1358           server names in client library.  Affected files in
1359           lib/silcclient/.
1360
1361         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
1362           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
1363           software to check how Toolkit has been compiled.
1364
1365 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1366
1367         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
1368
1369         * Use silc_utf8_str[n]casecmp instead of strcmp routines
1370           in library and in SILC Client when dealing with nicknames
1371           and other identifier strings.  Affected file in client lib
1372           and irssi.
1373
1374         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
1375           irssi/src/silc/core/silc-servers.c.
1376
1377 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1378
1379         * Fixed idcache to work with the new identifier strings.
1380           Affected file lib/silccore/silcidcache.c.
1381
1382         * Added UTF-8 hash and compare function for SilcHashTable.
1383           Affected file lib/silcutil/silcutil.[ch].
1384
1385         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
1386           Affected file lib/silcutil/silcstringprep.[ch].
1387
1388         * Changed the identifier string handling to include the original
1389           format in client, server, channel entries and normalized
1390           format in cache.  Affected files in silcd/.
1391
1392 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1393
1394         * Added support for the new identifier strings and their
1395           validity checking.  Nicknames, channel names and usernames
1396           can now include practically any kind of letters and various
1397           other characters.  Affected files in silcd/ and in libraries.
1398
1399           NOTE: comparing these strings should now be done with memcmp()
1400           to check binary compatibility.  All these strings are normalized
1401           and casing is irrelevant.
1402
1403         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
1404           as easy function for applications to check whether identifier
1405           strings are valid.
1406
1407 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1408
1409         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
1410           file lib/silcutil/silcutf8.c.
1411
1412         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
1413
1414 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1415
1416         * Make public key in getkey reply mandatory.  Affected file
1417           lib/silcclient/command_reply.c
1418
1419 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
1420
1421         * Added Parameter dont_register_crypto_library to
1422           SilcClientParam. If set to TRUE, silcclient library will
1423           not initalize the Crypto Libraries and application
1424           will need to do it. Affected file lib/silcclient/silcclient.h,
1425           lib/silcclient/client.c.
1426
1427 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1428
1429         * Imported new silc_utf8_[encode|decode] routines from
1430           my internal SILC 1.1 source tree.  New encodings added:
1431           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
1432           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
1433           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
1434           SILC_STRING_LDAP_DN.
1435
1436         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
1437
1438         * Implemented stringprep (RFC 3454) API.  Internally we use
1439           GNU Libidn's stringprep, for now, so it is required now to
1440           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
1441
1442         * Added checking for GNU Libidn and --with-libidn to configure.
1443
1444 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1445
1446         * If the passphrases entered do not match while generating a new key,
1447           completly start over instead of going into an infinite loop asking
1448           the user to re-enter the passphrase correctly.  Affected file
1449           lib/silcutil/silcapputil.c
1450
1451 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
1452
1453         * Make sure server is removed from backup list when it is
1454           deleted.  Affected files silcd/command.c, server.c,
1455           server_util.c.
1456
1457         * Close socket when connecting to router fails.  Affected
1458           file silcd/server.c.
1459
1460 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1461
1462         * Adopt configuration toolchain to current auto-tools.
1463           Affected files prepare, irssi/configure.in
1464         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
1465           redo that.  Affected files irssi/src/silc/core/client_ops.c,
1466           irssi/src/fe-common/silc/fe-silc-channels.c
1467         * Take over command line options into silcclient data structure.
1468           Affected file irssi/src/silc/core/silc-core.c
1469
1470 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1471
1472         * Do not try to initiate backup resuming protocol forever.
1473           Affected file silcd/server_backup.c.
1474
1475 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1476
1477         * ID change in resuming has to be done before changing
1478           detached client's modes, since the ID change may fail and
1479           leave ghosts on the network.  Affected file is
1480           silcd/packet_receive.c.
1481
1482 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1483
1484         * Fixed Win32 scheduler to not stuck anymore.  A patch from
1485           Juha Räsänen.  Affected file is
1486           lib/silcutil/win32/silcwin32schedule.c.
1487
1488         * Fixed QoS parsing for connection blocks in server.  Affected
1489           file is silcd/serverconfig.c.
1490
1491         * Fixed server statistics increasing in server.  Affected file
1492           is silcd/server.c.
1493
1494         * The CLOSE command now marks backup router as self disconnected
1495           to avoid resuming problems.  Affected file silcd/command.c.
1496
1497 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
1498
1499         * When using silc_net_create_connection[_async], and your system can
1500           create IPv6 sockets, it will try to connect to the IPv6 host.
1501           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
1502           file lib/silcutil/unix/silcunixnet.c
1503
1504 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
1505
1506         * Check for valid route when receiving packet from router and
1507           when routing it to local server in the cell.  A patch from
1508           Matt Miller.  Affected files silcd/router.c and server.c.
1509
1510 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
1511
1512         * Couldn't detach and reattach twice, because of the previous
1513           commit. Affected file silcd/packet_receive.c
1514
1515 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
1516
1517         * Added check to ignore Port value if Initiator is FALSE.
1518           Remote router coudln't connect if Port was set. Affected file
1519           silcd/serverconfig.c
1520
1521         * If some client tries to resume more than once at the same time,
1522           server crashed. Router didn't crash, but showed odd behaviour
1523           (didn't allow clients to join anymore, ..). Affected files
1524           silcd/packet_receive.c silcd/idlist.h
1525
1526 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1527
1528         * Destroy the file transfer session in silc_client_file_close
1529           with timeout.  Affected file lib/silcclient/client_ftp.c.
1530
1531         * Call SFTP server monitor in READ and WRITE after the actual
1532           operations.  Affected file lib/silcsftp/sftp_server.c.
1533
1534 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1535
1536         * Create one configure script from configure fragments
1537           (configure.ad).  This is a first step towards new distribution
1538           system.  Affected files prepare, configure.in.pre,
1539           lib/silcmath/mpi/configure.ad.
1540
1541 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1542
1543         * Removed expiring of client key pair.  Affected file is
1544           irssi/src/silc/core/clientutil.c
1545
1546 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1547
1548         * Check the number of connections from real number of
1549           connections instead of socket number, when deciding if
1550           server is full.  Affected files are silcd/server.c,
1551           server_internal.h and silcd.c.
1552
1553         * Clarified the connections_max meaning in General section
1554           in doc/example_silcd.conf.in.
1555
1556         * The reconnect_keep_trying default value set to TRUE
1557           if it is not defined in the config file.  Affected file
1558           silcd/serverconfig.c.
1559
1560 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1561
1562         * Fixed crashbug in connection closing, after a protocol
1563           completion callback, which might have closed it already.
1564           Affected file silcd/server.c.
1565
1566         * Fixed rekey with PFS in backup router.  It did not allow
1567           rekeys with PFS, and when the rekey protocol timedout
1568           it crashed the backup router without the above fix.  Affected
1569           file silcd/packet_send.c and server.c.
1570
1571 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1572
1573         * The silc_client_add_channel_private_key now returns the
1574           private key context if pointer is given as argument.
1575           Affected files are lib/silcclient/silcclient.h and
1576           client_channel.c.
1577
1578         * Added support for using channel private keys in SILC
1579           Client Library even if the private key mode is not set
1580           on the channel.  Affected file lib/silcclient/client_channel.c.
1581
1582         * The channel private key used to decrypt message is now
1583           delivered to the application in the 'channel_messageÃ' client
1584           operation.  Affected files are lib/silcclient/silcclient.h
1585           and client_channel.c.
1586
1587         * Fixed wrong arg type for user limit in CMODE command reply.
1588           Affected file silcd/command.c.
1589
1590         * The user limit is now taken and saved to SilcClientEntry in
1591           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1592           Affected files lib/silcclient/silcclient.h, command_reply.c
1593           and client_notify.c.
1594
1595         * Added support to the new private message key indicator
1596           packet.  Added a new function to the client library:
1597           silc_client_send_private_message_key_request.  The sender
1598           indicates to be initiator, and receiver is responder.
1599           Added the indicator to the SilcClientEntry as 'prv_resp'
1600           boolean.  Affected files are lib/silcclient/silcclient.h
1601           client.[ch], and client_prvmsg.c.
1602
1603 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1604
1605         * Fixed the JOIN command calling when called with both
1606          -auth and -founder.  Affected file is lib/silcclien/command.c.
1607
1608 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1609
1610         * Check watcher list for resumed clients as well.  Affected
1611           file is silcd/packet_receive.c.
1612
1613 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1614
1615         * Implemented the user limit to the CMODE_CHANGE notify,
1616           CMODE command reply and JOIN command reply in server.
1617           Affected files are silcd/server.c, command.c, command_reply.c,
1618           packet_send.c and packet_receive.c.
1619
1620 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1621
1622         * Defined SILC_STRFMT_END that must be used now with
1623           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1624           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1625           lib/silcclient/silcvcard.c, silcd/server_util.c.
1626
1627         * Fixed the adding of public key to the WATCH list in server.
1628           Fixed the WATCH notify sending to client.  Affected files
1629           are silcd/packet_send.[ch], command.c, server_util.c.
1630
1631         * Implemented the watching by public key in the SILC Client
1632           Library and SILC Client.  Affected files are
1633           lib/silcclient/command.c and client_notify.c.
1634
1635 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1636
1637         * Added support for public key watching in server.  Affected
1638           files are silcd/server.c, server_internal.h, command.c,
1639           server_util.c.
1640
1641 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1642
1643         * Added public key to the SIlcClientEntry.  Affected files
1644           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1645
1646         * Fixed the get_clients_whois reply processing to return
1647           exactly same entries server returned.  Makes it possible
1648           to search using attributes.  Affected file is
1649           lib/silcclient/idlist.c.
1650
1651 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1652
1653         * Save founder key to SilcChannelEntry.  Affected files are
1654           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1655
1656 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1657
1658         * Call the monitor callback with _CLOSED status from the
1659           silc_client_file_close.  Affected files are
1660           lib/silcclient/client_fpt.c, silcclient.h
1661
1662         * Added silc_client_get_clients_whois which resolves using
1663           WHOIS, and supports requested attributes as well.
1664           Affected files are lib/silcclient/silcclient.h, idlist.c.
1665
1666 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1667
1668         * Added support for asking the destination filename where
1669           the downloaded file is saved in the file transfer.  Affected
1670           files are lib/silccilent/silcclient.h, client_ftp.c.
1671
1672 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1673
1674         * Fixed error handling in resuming data processing.  Affected
1675           files are lib/silcclient/client_resume.c and client.c.
1676
1677 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1678
1679         * Fixed silc_client_send_private_message to return TRUE correctly.
1680           Affected file lib/silcclient/client_prvmsg.c.
1681
1682         * Added topic to the SilcChannelEntry.  Affected files are
1683           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1684
1685 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1686
1687         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1688           file lib/silcclient/command.c
1689
1690 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1691
1692         * Convert all commands to UTF-8 before passing them to the
1693           client library.  Still need to convert replies from UTF-8 to
1694           the locale encoding.  Affected file
1695           irssi/src/silc/core/silc-cmdqueue.c
1696
1697 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1698
1699         * redirect all silc_client_command_calls through a queueing framework.
1700           This fixes /CYCLE and the annoying "nick change after auto-joining
1701           a channel".  Furthermore it defines one central point where
1702           command parameters can be UTF-8-ified.  Affected files
1703           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1704           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1705
1706 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1707
1708         * use asynchronous connect() to establish router connections.
1709           Fixes problem when the primary router goes down.  Affected files
1710           silcd/server.c, silcd/server_backup.c
1711
1712 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1713
1714         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1715           Fixed various compilation warnings when type casting ints
1716           to pointers or vice versa, of different size.  Updates around
1717           the source free.
1718
1719 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1720
1721         * Surrogates not allowed in UTF-8 strings, updated decoder.
1722           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1723           testers in lib/silcutil/tests/ directory.
1724
1725 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1726
1727         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1728           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1729           files are lib/silcclient/silcclient.h, client.c.
1730
1731 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1732
1733         * When resuming a session fails, notify the user that the session
1734           file needs to be removed eventually.  Affected files
1735           irssi/src/fe-common/silc/module-formats.[ch],
1736           irssi/src/silc/core/client_ops.c.
1737
1738 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1739
1740         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1741           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1742
1743         * Typofix in Irssi::Silc module.  Affected file
1744           irssi/src/perl/silc/Silc.xs.
1745
1746 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1747
1748         * Changed the way NOTICE flagged messages are treated. Added support
1749           for notices in queries and signing notices.  Affected files
1750           irssi/default.theme; irssi/docs/help/in/notice.in;
1751           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1752           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1753
1754         * Fixed typo in /ACTION help.  Affected file
1755           irssi/docs/help/in/action.in
1756
1757 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1758
1759         * Fixed typo in perl module.  Affected file
1760           irssi/src/perl/silc/Server.xs
1761
1762         * Changed the way ACTION flagged messages are treated. Added support
1763           for actions in queries and signing actions.  Affected files
1764           irssi/default.theme; irssi/docs/help/in/action.in;
1765           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1766           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1767           silc-servers.[ch]
1768
1769 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1770
1771         * Incorrectly reported error when client had to be resolved from
1772           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1773
1774 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1775
1776         * Fixed whois public key hash table deleting and adding in
1777           detached client case.  Affected file silcd/packet_receive.c.
1778
1779 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1780
1781         * Changed filenames of silc/fe module not to collide with filenames
1782           from core/fe.  Also seperated public messages printing from
1783           query messages printing.  Affected files are all in
1784           irssi/src/fe-common/silc.
1785
1786 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1787
1788         * Fixed the invite process handling during joining to use
1789           correct server name for the client that is matched against
1790           the invite string for the channel.  Wrong server name caused
1791           inability to join the channel.  Affected file is
1792           silcd/command.c.
1793
1794 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1795
1796         * Fixed the CUMODE channel founder authentication on normal
1797           server to not remove the founder rights on existing founder
1798           before checking that router accepts the mode change.  Affected
1799           files are silcd/command.c and silcd/packet_receive.c.
1800
1801         * Remove the server entry correctly when rekey timeouts and
1802           remote router connection on normal server is closed.  Fixes
1803           a crash where server uses the freed server entry.  Affected
1804           file silcd/server.c.
1805
1806 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1807
1808         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1809           networks.  This is the first step in solving the bug about
1810           /SERVER ADD -silcnet <silcnet>.  Affected files
1811           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1812           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1813           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1814
1815 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1816
1817         * /SMSG and /MMSG now correctly create new queries. Affected files
1818           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1819
1820         * Add basic support for SILC protocol specific variables in perl.
1821           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1822           irssi/src/perl/Makefile.am
1823
1824 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1825
1826         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1827           issue when the current key expires.  Affect file
1828           irssi/src/silc/core/clientutils.c
1829
1830         * Make the session data filename configurable.  This makes it
1831           possible to have different session files for different
1832           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1833           client_ops.[ch], silc-servers.c,
1834           irssi/src/silc/fe-common/silc/module-formats.[ch]
1835
1836         * Use the same set of libtool files for the MPI lib as for the
1837           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
1838           config.sub, configure.in, install-sh, missing, mkinstalldirs
1839
1840 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1841
1842         * Fixed server statistics decrementing error to not go to
1843           negative.  Affected file silcd/packet_receive.c.
1844
1845 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1846
1847         * Use silc_server_query_add_error to add error in public key
1848           search error.  Added support in send_reply to send errors
1849           without specific argument.  Affected file silcd/server_query.c.
1850
1851         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
1852           Client for NO_SUCH_NICK.  It was against the protocol specs.
1853           Affected file irssi/src/silc/core/client_ops.c.
1854
1855         * Added backwards support for the wrong NO_SUCH_NICK error sending
1856           in server.  To be removed in SILC Server 1.0.  Both old clients
1857           and clients with fixed error handling now works.  Affected file
1858           silcd/server_query.c.
1859
1860 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
1861
1862         * fixed a bug in the whois using attributes function where no
1863           error was sent if no nickname and client id but the attributes were
1864           given to whois. Affected file silcd/server_query.c
1865
1866 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
1867
1868         * remove public key from public key hashtable on detach. Affected
1869           file silcd/packet_receive.c
1870
1871         * free public key hashtable before removing clients on server
1872           shutdown. Affected file silcd/server.c
1873
1874         * remove public key prior deleting client-data on killing a client.
1875           Affected file silcd/server_util.c
1876
1877 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
1878
1879         * Getting the MOTD from other servers works now. Affected
1880           files are silcd/command.c and silcd/command_reply.c
1881
1882 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1883
1884         * Initialize the variable idletag, since it is tested in
1885           silc_core_deinit for its default value.  Affected file
1886           irssi/src/silc/core/silc-core.c
1887
1888 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
1889
1890         * Fixed signed channel messages across cells. Affected file
1891           silcd/packet_send.c
1892
1893 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1894
1895         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
1896           is not defined.  They can now be safely used in if-statements
1897           without braces.  Affected file lib/silcutil/silclog.h.
1898
1899         * Added the checks for backup closing connection due to error
1900           (local or remote) and thus not allow the resuming to occur
1901           in reconnect.  Affected files are silcd/packet_send.c
1902           and server.c.
1903
1904 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1905
1906         * Help file updates.  Affected files in irssi/src/docs/help/in/.
1907
1908 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
1909
1910         * Fixed channel messages across cells. Affected file
1911           silcd/packet_send.c
1912
1913 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1914
1915         * Fixed file transmission accepting in client library to not
1916           start the negotiation if user hasn't accepted the transfer,
1917           instead create new session for resent transfer.  Affected
1918           file lib/silcclient/client_ftp.c.
1919
1920         * Show the session ID in the file transmision list.  Remove
1921           session from list that failed to transfer.  Switch the current
1922           session automatically after transmission, and in errors, to new
1923           session if other sessions exists in the transfer list.  Affected
1924           files are irssi/src/silc/core/silc-servers.c,
1925           irssi/src/fe-common/silc/modfule-formats.c.
1926
1927 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1928
1929         * Fixed MIME header parsing for the hopefully last time.  Affected
1930           file lib/silcutil/silcstrutil.c
1931
1932 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1933
1934         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
1935
1936         * The SILC RNG is now gauranteed to return non-zero random
1937           values.  Affected files are lib/silccrypt/silcrng.[ch].
1938
1939 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1940
1941         * Fixed nickname formatting when changing only case of the
1942           nickname.  Affected file lib/silcclient/idlist.c.
1943
1944 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1945
1946         * Fixed a memory leak and incorrect printing of the "appears as"
1947           message.  Affected file irssi/src/silc/core/client_ops.c
1948
1949 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1950
1951         * Added CRT (Chinese Remainder Theorem) supported RSA
1952           private keys and private key operations.  This significantly
1953           increases private key operation efficiency.  No compatibility
1954           issues with new or old private keys.  Affected files are
1955           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
1956
1957 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1958
1959         * Fixed GCC-3.3.2 related compilation warnings from the
1960           source tree.
1961
1962 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1963
1964         * Removed RC6 from distributions.
1965
1966 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1967
1968         * Added some better comments to lib/silccrypt/silcpkcs.h,
1969           optimized some routines in lib/silccrypt/silcpkcs.c.
1970           Added test_silcpkcs into lib/silccrypt/tests/.
1971
1972         * Fixed silc_rng_global_init to actually init the global RNG
1973           if RNG wasn't provided for it.  Affected file is
1974           lib/silccrypt/silrng.c.
1975
1976 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1977
1978         * Added silc_hash_table_find_by_context_ext.  Affected files
1979           lib/silcutil/silchashtable.[ch].
1980
1981         * Save the public key on normal server in WHOIS command reply
1982           from attributes, if present, and add it to public key hash
1983           table.  Fixes WHOIS resolving by public key on normal server.
1984
1985           Optimized the attributes resolving on normal server to not
1986           resolve if we resolved them already from router.
1987
1988           Affected files are silcd/server_query.c, command_reply.c.
1989
1990 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
1991
1992         * Added support for whois using attributes.
1993           Affected files silcd/command_reply.c, silcd/packet_receive.c,
1994           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
1995           silcd/server_util.c
1996
1997         * Added support for whois using public key attribute to /WHOIS i
1998           client command. Affected files irssi/docs/help/in/whois.in,
1999           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
2000
2001 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2002
2003         * Fixed UMODE setting in server when the client has anonymous
2004           mode set.  The mode setting was not working.  Affected file
2005           silcd/command.c.
2006
2007 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2008
2009         * Fixed some bugs and typos related to sending split messages.
2010           Print notification when sending messages with /MMSG.  Affected
2011           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
2012
2013 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2014
2015         * Optimized the socket referencing in packet routines, client
2016           library and server.  Affected files are lib/silccore/silcpacket.c,
2017           lib/silcclient/client.c and silcd/server.c.
2018
2019         * If silc_socket_set_qos is given with NULL arguments the QoS is
2020           reset from the socket.  Affected files are
2021           lib/silcutil/silcsockconn.[ch].
2022
2023 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2024
2025         * Add a /LISTKEYS command which lists the locally cached
2026           client and server keys.  Affected files
2027           irssi/src/fe-common/module-formats.[ch],
2028           irssi/src/silc/core/silc-{channels,servers}.c
2029           irssi/docs/help/in/listkeys.in
2030
2031 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2032
2033         * Check that packet queue purging was successful.  Affected
2034           files lib/silcclient/client.c and silcd/packet_send.c.  Related
2035           to MAC failed errors.
2036
2037         * Do not clear the inbuf even if it is empty if QoS was applied
2038           to it.  Otherwise the QoS data is cleared and MAC failed error
2039           will occur.  Affected file lib/silccore/silcpacket.c.
2040
2041         * Use the rekey period time as rekey protocol timeout value.
2042           If the rekey does not succeed during the rekey period there's
2043           something very wrong, and we most likely end up with wrong keys,
2044           do graceful reconnect then.   Affected file silcd/server.c.
2045
2046         * Take reference of the socket in the parser context, as it's
2047           possible to have the parsers in queue after the socket is
2048           disconnected and this may cause crash.  Affected files are
2049           lib/silccore/silcpacket.c, lib/silcclient/client.c and
2050           silcd/server.c.
2051
2052 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2053
2054         * Fixed KICK command reply sending, it sent to replies.
2055           Affected file silcd/command.c.
2056
2057 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
2058
2059         * Finish the silc-mime.pl script. It now supports MIME type
2060           guessing using magic files, signing data messages, executing
2061           MIME handlers in background. Affected files
2062           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
2063
2064         * Changed MIME signal handler to make things easier for the perl
2065           script. Affected files irssi/src/silc/core/client_ops.c,
2066           silc-servers.c, and irssi/docs/signals.txt
2067
2068         * Cleaned up the silc_mime_parse function and fixed detection
2069           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
2070
2071 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
2072
2073         * Resolve the IP for file transfer listener from the connection
2074           socket.  Affected file lib/silcclient/client_ftp.c.
2075
2076         * Accept NULL hostname parameter in the functions
2077           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
2078           if hostname is not wanted.
2079
2080 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2081
2082         * Fixed race condition between silc_client_init and
2083           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
2084
2085 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2086
2087         * Fixed file transfer connection closing when SIGNOFF for
2088           the client is received from server.  Affected file is
2089           lib/silcclient/client_ftp.c.
2090
2091 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2092
2093         * Check for disconnected socket in QUIT callback.  Affected
2094           file silcd/command.c.
2095
2096 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2097
2098         * Modified the MIME parsing to allow \n and \r\n as delimiters.
2099           Affected files lib/silcutil/silcstrutil.c
2100
2101         * Cleaned up the escape/unescape functions for correctness and
2102           speed. Affected file irssi/src/silc/core/client_ops.c
2103
2104         * Removed handling for data messages with Content-Type: text/*,
2105           moved parsing of MIME headers to the signal handler, added
2106           support for signing and verifying data messages. Affected
2107           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
2108           irssi/src/silc/core/silc-{servers,channels}.c
2109
2110         * Added a perl script for handling data messages based on
2111           information read from Mailcap files. New file
2112           irssi/scripts/silc-mime.pl
2113
2114 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2115
2116         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
2117           acknowledge recepetion of a message to the sender.  Updated
2118           protocol specs.
2119
2120 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2121
2122         * Unregister channel key saving callback when deleting channel.
2123           Affected file lib/silcclient/idlist.c.
2124
2125         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
2126           before calling notify client operation.  Affected file is
2127           lib/silcclient/client_notify.c.
2128
2129         * Unregister QoS tasks when deleting the socket connection.
2130           Affected files lib/silcutil/silcsockconn.[ch],
2131           unix/silcunixsockconn.c.
2132
2133         * Implemented latest presence-attrs draft changes.  Affected
2134           files lib/silccore/silcattrs.h and
2135           irssi/src/silc/core/silc-queries.c.
2136
2137 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2138
2139         * Save old channel keys in list to allow more rapid change
2140           of channel keys if server for some reason does that.  This
2141           avoids loosing so many channel messages due to not having
2142           key to decrypt.  Affected file lib/silcclient/silcclient.h,
2143           idlist.c and client_channel.c.
2144
2145 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2146
2147         * Continued backup router tests and fixes.  Affected files
2148           silcd/server_backup, server_util.c, server.c.  See TODO.
2149
2150 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2151
2152         * Fixed SERVER_SIGNOFF handling in servers.  The client
2153           was removed from wrong list thus not removing the client
2154           at all.  Affected file silcd/packet_receive.c.
2155
2156         * Do not execute rekey protocol for disabled connections as
2157           it would never go through.  Affected file silcd/server.c.
2158
2159         * Added timeout for rekey protocol to catch if the protocol
2160           never executes successfully.  Affected files silcd/server.c
2161           and protocol.h.
2162
2163 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2164
2165         * Abandon packet processing for disconnected sockets.  Check
2166           this always after calling packet processing callback.
2167           Affected file lib/silccore/silcpacket.c.
2168
2169         * Fixed double registration disconnection code in server.
2170           Closed wrong connection.  Affected file silcd/packet_receive.c.
2171
2172 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2173
2174         * On normal server reconnect to primary during resuming 4
2175           times, then give up.  Affected file silcd/server_backup.c.
2176
2177         * If during reconnecting to routers we notice we have router
2178           connection but no primary router set, the server is in desync.
2179           Reconnect to primary to restore network.  Affected file
2180           silcd/server.c.
2181
2182         * Assure that only one protocol is exeucting at the same time.
2183           Added checks for all protocols.  Affected files are
2184           silcd/server.c and server_backup.c.
2185
2186 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2187
2188         * Check that a string is not already part on invite/ban
2189           string when processing it.  Affected file silcd/server_util.c.
2190
2191 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2192
2193         * Fixed the CUMODE_CHANGE for founder mode changes to comply
2194           with 1.2 version of the protocol.  Affected file is
2195           silcd/packet_receive.c.
2196
2197 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2198
2199         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
2200           where the passphrase was given.  Affected file is
2201           silcd/command.c.
2202
2203 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
2204
2205         * INVITE and BAN notifys are now delivered from routers to
2206           servers (but not clients) on the channel.  Updated specs and
2207           code.  Affected files silcd/packet_[send|receive].[ch],
2208           command.c, server.c and server_util.c.
2209
2210         * Implemented INVITE and BAN announcing.  Affected files are
2211           silcd/server.[ch], server_util.c.
2212
2213         * Implemented SilcStatus error type argument returning in
2214           command reply error in server.  Affected file silcd/command.c.
2215
2216         * Implemented SilcStatus argument returning in comand reply
2217           in client library.  The command_reply client operation now
2218           returns error specific arguments as well.  Affected files
2219           are lib/silcclient/command_reply.[ch], client_resume.c,
2220           lib/silccore/silcstatus.[ch].
2221
2222 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2223
2224         * Backup router protocol version 1.2 implemented.  Testing still
2225           required.  Affected files in silcd/server_backup.[ch], server.c,
2226           packet_receive.c and server_internal.h.
2227
2228 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2229
2230         * silc_client_send_[channel|private]_message now return TRUE
2231           or FALSE.  Affected file lib/silcclien/client_channel.c and
2232           client_prvmsg.c.
2233
2234 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2235
2236         * Check for explicit nickname in INVITE and BAN processing
2237           during join as well (and don't expect only wildcards in
2238           invite/ban strings).  Affected file silcd/command.c.
2239
2240         * Fixed the INVITE and BAN by public key.  The public key saved
2241           is the PK payload (as specified) not the raw data.  Affected
2242           file silcd/server_util.c.
2243
2244 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2245
2246         * UTF-8 text message support for actions and notices in SILC
2247           Client.  Affected file irssi/src/silc/core/client_ops.c.
2248
2249         * silc_get_username and silc_get_real_name now returns sensible
2250           data on Win32.  Patch by Toni Willberg.  Affected file is
2251           lib/silcutil/win32/silcwin32util.c.
2252
2253 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2254
2255         * Provide a signal handler to send MIME encoded messages and emit
2256           a signal when a MIME encoded message is received. Also document
2257           the signals for usage with the perl interface.
2258
2259           A sample perl script will be supplied at a later point.
2260
2261           Affected files are irssi/docs/signals.txt,
2262           irssi/src/silc/core/client_ops.[ch],
2263           irssi/src/silc/core/silc-{channels,servers}.c
2264
2265 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2266
2267         * Use SILC_COMMAND_PING to estimate the round-trip time to the
2268           server. Use this time to display a lag and disconnect when it
2269           exceeds a specified limit.
2270
2271           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
2272
2273 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2274
2275         * Remove the channel auth list in normal server if router
2276           encofrces its list during connecting.  Send notify to channel
2277           to remove the mode to remove the list.  Affected files are
2278           silcd/server_util.c and silcd/packet_receive.c.
2279
2280 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2281
2282         * Added support for channel public keys.  Updated protocol specs
2283           and implemented it.  Affected files are
2284           silcd/command.c, command_reply.c, lib/silcclient/command.c,
2285           lib/silcclient/command_reply.c.
2286
2287 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2288
2289         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
2290           terminate the process on Linux.  Affected file silcd/silcd.c.
2291
2292 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2293
2294         * Check for NULL buffer in silc_buffer_clear.  Affected file
2295           is lib/silcutil/silcbuffer.h.
2296
2297         * Simplified the backup router protocol by removing the _GLOBAL
2298           types.  Updated protocol specs and the code.  Affected files
2299           are silcd/server_backup.[ch].
2300
2301 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2302
2303         * Deny '@' and '!' from nicknames since they are reserved
2304           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
2305           Updated protocol specs and the code.
2306
2307           Affected files are silcd/server_util.[ch].
2308
2309 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2310
2311         * Fixed stack overflow in Irssi SILC client.  Affected
2312           file irssi/src/silc/core/client_ops.c.
2313
2314         * Check that Host is set in ServerConnection and RouterConnection
2315           in silcd.conf.  Affected file silcd/serverconfig.c.
2316
2317         * Fixed crash in server with protocol completion callbacks,
2318           namely rekey and backup resuming protocols.  Affected files
2319           are silcd/server_backup.c and silcd/server.c.
2320
2321         * Fixed rekey protocol to not restart if it is started already.
2322           Affected files are lib/silcclient/client.c and
2323           silcd/server.c.c
2324
2325 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2326
2327         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
2328
2329         * Fixed EOF handling in SILC Config, affected file
2330           lib/silcutil/silcconfig.c.
2331
2332         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
2333
2334         * Fixed RESOLVING flag handling in JOIN notify and other
2335           notifys to handle the resolvings correctly in client library.
2336           Affected file lib/silcclient/client_notify.c.
2337
2338         * Do not send full INVITE and BAN lists in INVITE and BAN
2339           notifys, only the changed information.  Affected file
2340           silcd/command.c.
2341
2342         * Fixed INVITE notify sending in INVITE command, send it
2343           only when needed.  Affected file silcd/command.c.
2344
2345         * Handle the founder key change properly in CMODE_CHANGE
2346           notify.  Bug #122.  Affected file silcd/packet_receive.c.
2347
2348 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2349
2350         * Remove the mark for output (mark it only for input) after
2351           purging outgoing queue.  Prevents the "Error in select()"
2352           floods.  Affected file silcd/packet_send.c.
2353
2354         * Fixed incorrect connection deletion from client library
2355           after calling "connect" client operation.  Could cause
2356           crashes for example during reconnect timeouts.  Affected
2357           files are lib/silcclient/client.c and
2358           irssi/src/silc/core/client_ops.c.
2359
2360         * Check server private key file permissions before starting
2361           the server.  Affected file silcd/serverconfig.c.
2362
2363 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2364
2365         * NULL terminate allocated string in silc_buffer_strformat.
2366           Affected file lib/silcutil/silcbuffmt.c.
2367
2368         * Rewrote the invite/ban list string handling in server to
2369           use SilcBuffer instead.  Affected files are silcd/command.c
2370           and silcd/server_util.c.
2371
2372 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2373
2374         * Fixed double free in CMODE command when setting new HMAC
2375           for channel.  Affected file silcd/command.c.
2376
2377         * Added couple of missing memset's to zero sensitive memory.
2378           Affected files silcd/command.c, lib/silcclient/command.c.
2379
2380 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2381
2382         * Fixed a double free in INVITE command error handling in
2383           server.  Affected file silcd/command.c.
2384
2385         * Added macros SILC_SWAB_[16|32] to swab byte order of
2386           16-bit and 32-bit unsigned integers.  Affected file
2387           lib/silcutil/silctypes.h.
2388
2389         * Use the SILC_SWAB_16 instead of htons() in server when
2390           handling ports since the ports in structures are always
2391           in little-endian order (regardless of platform).  Affected
2392           file silcd/serverid.c and silcd/server_backup.c.
2393
2394 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2395
2396         * Send DISCONNECT in close admin command in server.  Affected
2397           file silcd/command.c.
2398
2399         * Check whether we are already connecting to a remote router
2400           (in addition of checking whether we are already connected)
2401           before creating new connection.  Affected file silcd/server.c.
2402
2403 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2404
2405         * Added better compiler and compiler flags checking in
2406           configure.
2407
2408         * Check that socket is valid after QoS is applied to data.
2409           Affected file lib/silcutil/unix/silcunixsockconn.c.
2410
2411         * Make sure the socket connecetion is not closed to early
2412           when closing connection in server.  Also make sure the
2413           connection is always closed after error in a protocol.
2414           Affected file silcd/server.c.
2415
2416 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2417
2418         * Removed --session and --dummy options from Irssi SILC Client.
2419           -d option is available only if --enable-debug was given.
2420           Affected files are irssi/src/silc/core/silc-core,
2421           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
2422
2423 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2424
2425         * Added silc_buffer_steal to steal the data from the buffer.
2426           Affected file lib/silcutil/silcbuffer.h.
2427
2428 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
2429
2430         * Fixed server crash with double Primary block in config file.
2431
2432           Fixed also various memory leaks around the config file
2433           parser.  Affected files lib/silcutil/silcconfig.c,
2434           silcd/serverconfig.c.
2435
2436         * Changed my nickname (Johnny Mnemonic) to my real name, this
2437           means that bugs introduced by him were actually introduced
2438           by me!
2439
2440 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2441
2442         * Don't display "foo appears as foo\nYou're now known as foo"
2443           messages.  Affected file irssi/src/silc/core/client_ops.c
2444
2445 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2446
2447         * Fixed error handling of invalid client entry when calling
2448           commands in server.  Fixes a crash.  Affected file
2449           silcd/command.c.
2450
2451 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2452
2453         * Added some sanity checks in server for correctness of the
2454           server configuration.  Affected file silcd/serverconfig.c.
2455
2456 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2457
2458         * Prevent endless resolving of user informations in USERS
2459           command by checking the command reply status correctly.
2460           Affected file lib/silcclient/command_reply.c.
2461
2462 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2463
2464         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
2465           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
2466           Aldous <Matthew@Aldous.com>.
2467
2468         * Added better implementation using CriticalSection of
2469           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
2470           <mikko.lahteenmaki@pikabaana.net>.
2471
2472         * Added some Winsock WIN32 compatiblity defines into
2473           includes/silcwin32.h.
2474
2475 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2476
2477         * Fixed double free in async host lookup code.  Affected file
2478           lib/silcutil/silcsockconn.c.
2479
2480         * On backup router handle now the SERVER_SIGNOFF from router
2481           for local connected servers too, and close the connections.
2482
2483           Do not process them as normally signing off servers when they
2484           really signoff by sending EOF fe, but always assume that
2485           router sends the SERVER_SIGNOFF.
2486
2487           Affected files silcd/server.c and silcd/packet_receive.c.
2488
2489         * Fixed socket unsetting when closing connections.  Affected
2490           files silcd/server.c and silcd/packet_send.c.
2491
2492         * Do not print the nickname in SERVER_SIGNOFF if we do not
2493           have it.  Prevents asserts in Irssi core.  It is possible we
2494           don't have the nick if it was just being resolved when server
2495           signoff.  Affected file irssi/src/silc/core/client_ops.c.
2496
2497 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2498
2499         * Fixed autonick crashbug in client library.  Affected file
2500           lib/silcclient/client.c.
2501
2502         * Fixed Unix implementation of SilcMutex to really assert if
2503           the mutex is locked/unlcoked already.  Affected file
2504           lib/silcutil/unix/silcunixmutex.c.
2505
2506         * Fixed locking in silc_schedule_uninit.  It didn't lock
2507           when dispatching timeout tasks.  Affected file is
2508           lib/silcutil/silcschedule.c.
2509
2510         * Changed Win32 implementation of SilcThread to use modern
2511           Win32 interface.  Affected file is
2512           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
2513
2514 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2515
2516         * Don't print signed messages when sending failed.  Affected files
2517           irssi/src/silc/core/silc-[servers.c/commands.h]
2518
2519         * Send adquate signal when founding a channel by joing it.  Affect
2520           file irssi/src/silc/core/client_ops.c
2521
2522 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2523
2524         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
2525           irssi/src/fe-common/core/themes.c
2526
2527 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2528
2529         * Fixed close command to use the port correctly when closing
2530           server connections.  Affected file silcd/idlist.c.
2531
2532         * Check for NULL outbuf in silc_socket_write.  It is possible
2533           that it is NULL is some odd case.  Affected files are
2534           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
2535
2536         * Do not call final protocol callback for backup router
2537           resuming protocol when closing connection.  It is closed
2538           by timeout in case of error.  Affected file silcd/server.c.
2539
2540         * Backup reconnect to router if backup resuming protocol
2541           failed.  Affected file silcd/server_backup.c.
2542
2543 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
2544
2545         * Fixed double free in SKE library error hadling when signature
2546           error occurred.  Affected file lib/silcske/silcske.c.
2547
2548         * Save the fingerprint to new SilcClientEntry after changing
2549           nickname.  Affected file lib/silcclient/client_notify.c.
2550
2551         * Print SIGNOFF in Irssi SILC client only if the nickname is
2552           known.  Prevents asserts in Irssi core.  It is possible we
2553           don't have the nick if it was just being resolved when it
2554           quit.  Affected file irssi/src/silc/core/client_ops.c.
2555
2556 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2557
2558         * Fixed double free in invite list adding code when adding
2559           invite strings.  Affected file silcd/server_util.c.
2560
2561 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2562
2563         * More log printing during backup router protocol.  Affected
2564           file silcd/server_backup.c.
2565
2566         * Removed backwards support for old private key file format.
2567           Affected file lib/silccrypt/silcpkcs.c.
2568
2569         * Removed backwards support for not-so-strict decryption length
2570           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2571
2572         * GETKEY to update the client entrys fingerprint too.
2573           Affected file lib/silcclient/command_reply.c.
2574
2575         * Added --without-libtoolfix for package builders using weird
2576           wrappers around libtool (BSD at least).
2577
2578 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2579
2580         * Fixed backup router bugs:  When backup resumes router and
2581           receives a CHANNEL_MESSAGE packet the backup must not act
2582           as router since the packet header decryption would be
2583           different.  Also, when relaying packets to channel, do
2584           not re-encrypt packets on backup that came from the primary
2585           since the connection isn't really router-router connection.
2586           Affected files silcd/server.c, silcd/packet_send.c.
2587
2588         * Added checks in encryption/decryption that encryption/decryption
2589           length sent as argument really is multiple by block size.  Helps
2590           catching really weird bugs like the above backup router bugs
2591           when packets are being decrypted in wrong way.  Affected files
2592           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2593
2594         * Fixed padding generation in private key file encryption.
2595           Affected file lib/silccrypt/silcpkcs.c.
2596
2597 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2598
2599         * Added ignore_message_signatures setting which can be used
2600           to ignore signatures in messages.  Affected files are
2601           irssi/src/silc/core/client_ops.c, silc-core.c.
2602
2603         * Fixed the libtoolfix to use command line options instead of
2604           environment variables.  They didn't work as expected.  Now,
2605           the libtool is fully run-time configurable.
2606
2607 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2608
2609         * Verify signature payload for signed messages. Affected files
2610           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2611           irssi/src/silc/core/silc-core.h
2612
2613         * Display signature verification result in public and private
2614           messages using theme abstracts. See irssi/default.theme for
2615           examples on their usage. Affected files
2616           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2617           irssi/src/fe-common/silc/module-formats.[ch],
2618           irssi/src/fe-common/silc/fe-common-silc.c,
2619           irssi/src/fe-common/silc/Makefile.am
2620           irssi/src/fe-common/core/fe-messages.[ch]
2621
2622         * Fixed bugs in Irssi's theme parsing. Affected files
2623           irssi/src/fe-common/core/themes.c
2624
2625 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2626
2627         * Calculate the correct length for signed messages before
2628           encrypting, it must be multiple by block size.  Affected
2629           file lib/silccore/silcmessage.c.
2630
2631         * silc_message_signed_get_public_key returns now both
2632           decoded and encoded public key.  Affected files are
2633           lib/silccore/silcmessage.[ch].
2634
2635         * Added libtoolfix script that makes the libtool more generic
2636           and configurable in run-time.  Now we can specify in run-time
2637           if what kind of libraries we want to create, regardless of
2638           configuration.  SIMs are now creates even if --disable-shared
2639           was explicitly given.
2640
2641 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2642
2643         * Fixed founder key sending in CMODE command in client.
2644           Affected file lib/silcclient/command.c.
2645
2646         * Fixed CUMODE founder authentication in server to not check
2647           for client's public key since it's not supposed to do that.
2648           Affected file silcd/command.c.
2649
2650 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2651
2652         * Set realname and hostname in NICK_REC records. Affected file
2653           irssi/src/silc/core/silc-nicklist.c
2654
2655 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2656
2657         * Remove 1.0 protocol backwards compat code from client
2658           library.
2659
2660         * Added more reliable check for whether nickname did change
2661           or not, or whether only Client ID changed in NICK_CHANGE
2662           notify.  Affected file lib/silcclient/client_notify.c.
2663           Fixes bug in '@' character handling in a nickname.
2664
2665         * Added support for automatically parsing signature from
2666           the message payload.  Added new function
2667           silc_message_get_signature to return the payload to
2668           application.  Affected files lib/silccore/silcmessage.[ch].
2669
2670         * Changed the private_message and channel_message client
2671           operations to deliver the SilcMessagePayload to the
2672           application too.  Application can use it fe. to get the
2673           signature from the message for verification.  Affected
2674           file lib/silcclient/silcclient.h, client_channel.c and
2675           client_prvmsg.c.
2676
2677         * Redefined the signed payload for message payloads.
2678           Updated protocol specs and implemented.
2679
2680 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2681
2682         * Fixed wrong invite and ban list handling in server command
2683           reply.  Affected files are silcd/command_reply.c,
2684           silcd/server_util.[ch].
2685
2686 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2687
2688         * Fixed CMODE setting in server when founder mode was set.
2689           Affected file silcd/command.c.  Bug #95.
2690
2691         * Added support to setting specific public key in CMODE in
2692           Irssi SILC client.  Affected file lib/silcclient/command.c.
2693
2694         * Added support to use specific public key in CUMODE in
2695           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2696
2697         * Added support for inviting and banning by public key in
2698           Irssi SILC client.  Affected file lib/silcclient/command.c.
2699
2700         * Fixed fingerprint/babbleprint showing in invite and ban
2701           list command replys.  Affected file is
2702           irssi/src/silc/core/client_ops.c.
2703
2704 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2705
2706         * Format CMODE +c and +h to display both the mode and the argument
2707
2708 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2709
2710         * Added test vectors and test programs for SHA-1, MD5,
2711           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2712           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2713           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2714
2715         * Changed the channel private key and private message key
2716           generation (with static keys) to use SHA1 instead of MD5,
2717           as SHA1 is the mandatory hash function in SILC.  Affected
2718           file lib/silcclient/client_[channel/prvmsg].c.
2719
2720         * Changed the private key file encryption to use SHA1 instead
2721           of MD5.  Added support for the old generation and added
2722           automatic change of the key (to be removed later).  Affected
2723           files lib/silccrypt/silcpkcs.c.
2724
2725 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2726
2727         * Load only files with .pub suffix in PublicKeyDir.  Affected
2728           file silcd/serverconfig.c.
2729
2730 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2731
2732         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2733           channels.  Affected files silcd/silcd.c, silcd/server.h.
2734
2735         * Added the config directive PublicKeyDir for the client block.
2736           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2737
2738 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2739
2740         * Merged Toni's irssi/silc.conf patch.
2741
2742         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2743
2744         * Max alloc tests in allocation routines.  Affected file
2745           lib/silcutil/silcmemory.c.
2746
2747 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2748
2749         * Fixed a typo in resuming code that fixed detach/resume code
2750           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2751
2752 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2753
2754         * Do reverse lookups for server when /connecting. Affected files
2755           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2756           irssi/src/core/net-nonblock.*
2757
2758 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2759
2760         * Added library versioning for shared libraries.  Affected
2761           files configure.in.pre and lib/Makefile.am.pre.
2762
2763 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2764
2765         * Display INVITE and BAN lists as specified by SILC 1.2
2766
2767 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2768
2769         * Do not send invite list back unless asked (when sending
2770           no arguments) or when list was modified.  Affected file
2771           silcd/command.c.
2772
2773         * Remove client from invite list in KILLED notify and in
2774           KILL command.  Affected file silcd/command.c and
2775           silcd/server.[ch].
2776
2777         * Fixed bugs in invite list handling in INVITE command.
2778           Affected files silcd/command.c and silcd/server_util.c.
2779
2780         * Merged with Irssi 0.8.6.
2781
2782         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2783           Affected file irssi/src/fe-text/silc.c.
2784
2785 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2786
2787         * The silc_argument_get_[first/next] now return the argument
2788           type to caller.  Added silc_argument_payload_encode_one.
2789
2790           Affected files are lib/silccore/silcargument.[ch].
2791
2792         * Added support for the SILC 1.2 INVITE command and new
2793           invite lists to server.  Affected files are silcd/command.c,
2794           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2795
2796         * Added support for the SILC 1.2 BAN command and new
2797           ban lists to server.  Affected files are silcd/command.c,
2798           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2799
2800         * Added support to client sending new INVITE command.  Affected
2801           file is lib/silcclient/command.c.
2802
2803         * Added support to client sending new BAN command.  Affected
2804           file is lib/silcclient/command.c.
2805
2806         * Added support for removing client from invite list when kicked
2807           from channel, as SILC 1.2 dictates.  Affected files are
2808           silcd/packet_receive.c and silcd/command.c.
2809
2810 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2811
2812         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2813           automatically the cipher's internal IV.  Affected files
2814           lib/silccrypt/silccipher.[ch].
2815
2816         * Assure the RESUME_CLIENT packet is not sent to twice to
2817           backup router if the detached client was originated from
2818           the backup.  Affected file silcd/server.c.  Bug #76.
2819
2820         * Changed silc_sim_symname to not allocate memory.  Affected
2821           file lib/silcsim/silcsimutil.c.
2822
2823         * Fixed memory leaks with SIMs in server.  Affected files
2824           silcd/serverconfig.c, silcd/server.c.
2825
2826         * Fixed channel key distribution after resuming detached
2827           client.  Affected files silcd/packet_receive.c.
2828
2829         * Fixed channel's global_user boolean checking after detaching.
2830           Check it after changing the owner of the client not before.
2831           Affected file silcd/packet_receive.c.
2832
2833         * Fixed few double frees from client library.  Fixes at least
2834           Bug #81, possibly others too.
2835
2836         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2837           notifys in Irssi SILC Client.  Affected file is
2838           irssi/src/silc/core/client_ops.c.  Bug #82.
2839
2840         * Applied Ville Räsänen's manual page and --mandir bugfix
2841           patch.  Affected files are configure.in.pre and Makefile.am.pre.
2842           Bug #88.
2843
2844 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2845
2846         * Added support to backup router protocol for backup to tell
2847           normal server that it cannot use the backup router as primary
2848           because the primary isn't really down.  Updated protocol
2849           specs.
2850
2851         * Added support for primary router to tell backup router that
2852           resuming is not possible because the backup really isn't primary
2853           in the cell.  For example if backup disconnected itself the
2854           resuming is not allowed since the primary really did not
2855           go down.  Updated protocol specs.
2856
2857         * Removed MARS from crypto library.
2858
2859         * Defined the CTR mode and Randomized CBC mode in SILC.  The
2860           CTR mode is RECOMMENDED now in specification.  Defined also
2861           Serpent cipher as optional cipher.  Updated the protocol specs.
2862
2863 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2864
2865         * Added support for inviting/banning by IP/MASK, public key,
2866           and explicit Client ID.  Redefined the command and notify
2867           types to allow easier forwards support for other methods
2868           of inviting/banning.  Updated protocol specs.
2869
2870         * Remove the client from channel's invite lists if the client
2871           is kicked or killed.  Updated protocol specs.
2872
2873         * Unified the Channel Message Payload and Private Message
2874           into one Message Payload.  Updated protocol specs and
2875           implemented.
2876
2877 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2878
2879         * Don't wait for EOF after socket error has occurred, but
2880           close the connection.  Affected file is silcd/server.c.
2881
2882 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2883
2884         * Added support for setting FOUNDER mode on channel with
2885           specific public key which can be set with CMODE command.
2886           Updated protocol specs and implemented in client and server.
2887
2888         * Fixed the Irssi SILC client to correctly shutdown the client
2889           library to avoid memory leaks.  Affected files are
2890           irssi/src/silc/core/silc-core.c and silc-servers.c.
2891
2892         * Deprecated the No Reply flag in SKE protocol and introduced
2893           "IV Included" flag which can be used to indicate that the IV
2894           is included in the ciphertext.  This makes it possible to use
2895           SILC on unreliable transport, such as UDP which may cause
2896           packet reordering and losses.  Updated protocol specs, did
2897           not implement yet.
2898
2899 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2900
2901         * Fixed the MPI implementation of silc_mp_sizeinbase to return
2902           < 32 bit values in correct size.  Affected file is
2903           lib/silcmath/mp_mpi.c.
2904
2905 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2906
2907         * Fixed the KE Start Payload parsing to check that mandatory
2908           fields are present.  Affected file lib/silcske/payload.c.
2909
2910         * Fixed compilation warnigs in Irssi SILC Client.  Affected
2911           files are irssi/src/silc/core/silc-query.c. client_ops.c.
2912
2913 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2914
2915         * Print "nick now appears as newnick" and update Irssi's nicklist
2916           when you change your nick to "nick". Closes #62
2917
2918         * Never format your own nick. Closes #63
2919
2920 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2921
2922         * SILC_UMODE_GONE changes are now propagated correctly to the
2923           Irssi client. Closes #54
2924
2925 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2926
2927         * Fixed example in /HELP KEY
2928
2929         * Added expando $j which expands to current SILC Client version
2930
2931 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2932
2933         * Fixed public key decoding in crypto library.
2934
2935         * Added better error printing to SKE library.
2936
2937 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2938
2939         * Fixed NICK command to not crash if nickname was not sent.
2940
2941 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2942
2943         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
2944           Deprecated the old Encrypt-And-MAC order.  Updated protocol
2945           specs and implemented.
2946
2947         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
2948           generation.  Updated specs and implemented.
2949
2950 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2951
2952         * Added support for rekey before 2^32 sequence number wraps.
2953           Affected files in server and client library.
2954
2955         * Padding must be at least 8 bytes now.  Implemented and updated
2956           protocol specs.
2957
2958         * Compute maximum padding for authentication packets to make
2959           passphrase approximation attacks impossible.  Affected files
2960           in client library and in server.
2961
2962         * Fixed PING command sending in client library and handling in
2963           server.  The server ID must be ID Payload, not raw ID data.
2964           Affected files in server and client library.
2965
2966         * Defined that all public keys sent in commands and notify
2967           payloads are actually Public Key Payloads not raw public key
2968           data.  Updated protocol specs and implemented.
2969
2970         * Updated protocol version to 1.2.  Updated specs and code.
2971
2972         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
2973           status types.  Updated specs and the code.
2974
2975         * Added support for normal client to kill its own entries from
2976           the network.  Updated protocol specs and the code.
2977
2978         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
2979           and added initial implementation.
2980
2981         * Added MAC field to the Private Message Payload to protect
2982           against chosen ciphertext attacks.  Updated the protocol specs
2983           and implemented.
2984
2985         * Added idle and signon fields to the ATTRIBUTE_SERVICE
2986           attribute to indicate the user's current idle and signon time
2987           of a service.  Updated protocol specs and implemented.
2988
2989 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2990
2991         * Added "do_not_bind" argument to silc_client_file_send what
2992           can be used to not bind locally but assume the file receiver
2993           provides the point of connect.  Usefull when sender is behind
2994           NAT device.  Affected file lib/silcclient/silcclient.h and
2995           client_ftp.c.
2996
2997         * Added -no-listener option to FILE SEND command in Irssi SILC
2998           client.  Affected file irssi/src/silc/core/silc-servers.c.
2999           Renamed FILE RECEIVE to FILE ACCEPT.
3000
3001         * Confirm passphrase for private key encryption in
3002           silc_create_key_pair and silc_change_private_key_passphrase.
3003           Affected files are lib/silcutil/silcapputil.c.
3004
3005 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3006
3007         * Move silc_client_packet_send back to internal, added
3008           silc_client_send_packet, a bit simpler function for application.
3009           Affected files lib/silcclient/silcclient.h, client.c and
3010           client_internal.h.
3011
3012         * Moved the SilcClientEntry, SilcChannelEntry and
3013           SilcServerEntry to silcclient.h to be public and documented
3014           them for application.  Affected files are
3015           lib/silcclient/silcclient.h and idlist.h.
3016
3017 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3018
3019         * Fixed manual page installation patch by Ville Räsänen.
3020           USERS help page fix patch by Ville Räsänen
3021
3022         * Changed the silc_client_command_call interface to make
3023           the command call simpler for the application.  The library
3024           now handles the command line parsing, command finding and
3025           execution.  Application only needs to call the function
3026           with the command line.  Affected files are
3027           lib/silcclient/silcclient.h, command.[ch].
3028
3029         * Fixed silc_get_input to NULL-terminate the returned input.
3030           Affected file lib/silcutil/silcutil.c.
3031
3032         * Resolve the client's public key in JOIN command if the
3033           founder auth data is being requested but we don't know the
3034           client's public key.  Affected file silcd/command.c.
3035           Bug #53.
3036
3037 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3038
3039         * Print notify for server opers when backup router comes
3040           online.  Affected file silcd/server.c.
3041
3042         * Fixed the INVITE command to send the invite list in
3043           command reply.  Affected file silcd/command_reply.c.
3044
3045         * Fixed MOTD command reply sending.  Affected file
3046           silcd/command.c.
3047
3048         * UTF-8 decode the topic in TOPIC command reply and LIST
3049           command reply in Irssi SILC client.  Affected file is
3050           irssi/src/silc/core/client_ops.c.
3051
3052 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3053
3054         * Fixed the INVITE command to not crash Irssi SILC client
3055           when given without nickname argument.  AFfected file
3056           irssi/src/silc/core/client_ops.c.
3057
3058         * Fixed double free in WHOIS query on normal server when
3059           forwarding query to router.  Affected file is
3060           silcd/server_query.c.
3061
3062         * Fixed WATCH command reply handling on normal server which
3063           was missing altogether.  Affected file silcd/command_reply.c.
3064           Bug #44.
3065
3066 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
3067
3068         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
3069           Included yodl sources for each of these. Also modified
3070           Makefile.am prototype to install these files to proper
3071           locations. Updated CREDITS. Affected file Makefile.am.pre,
3072           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
3073           doc/silcd.8.
3074
3075 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3076
3077         * Added support for encrypted private key files.  Now
3078           passphrase must be provided when new key pair is created
3079           (can be empty though), and prompted when loading the
3080           private key.  Added support for loading the old-style
3081           non-encrypted private keys as well.  Affected files
3082           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
3083           SILC Server.
3084
3085         * Fixed silc_get_input to accept input on all terminals.
3086           Affected file lib/silcutil/silcutil.c.
3087
3088         * Moved the Irssi SILC client key loading and other stuff
3089           to be called after the arguments and UI is initialized.
3090           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
3091
3092         * Added -P option to Irssi SILC client which can be used
3093           to change the passphrase of the private key.  Affected
3094           file irssi/src/silc/core/silc-core.c.
3095
3096         * Added silc_change_private_key_passphrase apputil routine
3097           to lib/silcutil/silcapputil.[ch].
3098
3099 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3100
3101         * Fixed connection closing in client library to not crash.
3102           Moved the connection freeing totally to function
3103           silc_clinet_del_connection.  Affected file
3104           lib/silcclinet/client.c.
3105
3106 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3107
3108         * Changed includes/silcincludes.h to silcincludes.h.in to
3109           include configuration specific information.  The silcdefs.h
3110           is not included in to installation anymore (it's only
3111           compilation time header).
3112
3113 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3114
3115         * Moved the SilcClient and SilcClientConnection from client.h
3116           to the public lib/silcclient/silcclient.h.  Changed the
3117           structures a bit.
3118
3119 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3120
3121         * If version string in silc_clinet_alloc is NULL the library
3122           puts it automatically.  Affected file lib/silcclient/client.c.
3123
3124         * Changed the version strings from variables to #define's
3125           in includes/silcversion.h.
3126
3127 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3128
3129         * Added shared library complation support.
3130
3131 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3132
3133         * Added lib/silcutil/silcapputil.[ch] for application
3134           utility functions.  It includes routines for applications'
3135           convenience.  Added silc_create_key_pair, silc_show_public_key
3136           and silc_load_key_pair functions.
3137
3138 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3139
3140         * Send RESUME_CLIENT packet from router to backup routers
3141           to in resuming.  Affected file silcd/packet_receive.c.
3142
3143 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3144
3145         * In IDENTIFY command parsing, send all other IDs except
3146           Client IDs explicitly to router for resolving on normal
3147           server.  Also check that ID received in WHOIS command is
3148           always Client ID, others are not allowed.  Affected file
3149           silcd/server_query.c.
3150
3151         * Merged latest changes from irssi.org CVS.
3152
3153 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3154
3155         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
3156           Affected files irssi/src/silc/core/silc-core, silc-server.c.
3157
3158         * Fixed the heartbeat sending in Irssi SILC client.  Moved
3159           the silc_client_packet_send to silcclient.h for application
3160           usage.  Affected files lib/silcclient/client_internal.h
3161           lib/silcclient/silcclient.h.
3162
3163         * Fixed a bug in query resolving in server.  Used wrong
3164           variable in a for loop and crashed.  Affected file is
3165           silcd/server_query.c.
3166
3167         * Server constructs requested attributes only to locally
3168           connected clients.  Affected file silcd/server_query.c.
3169           Bug #36.
3170
3171         * Fixed a bug when sending resolving from router to server
3172           with requested attributes.  The constructed WHOIS command
3173           was incorrect.  Affected file silcd/server_query.c.
3174           Bug #38.
3175
3176         * Fixed Requested Attributes saving in WHOIS command reply.
3177           The length of the data buffer must be saved too.  Affected
3178           file silcd/command_reply.c.
3179
3180         * Update the client entry's servername after detaching is
3181           over.  Affected file silcd/packet_receive.c.  Bug #37.
3182
3183         * Resolve incomplete client entrys in CUMODE_CHANGE and
3184           CMODE_CHANGE notifys.  Affected file is
3185           lib/silcclient/client_notify.c.  Bug #42.
3186
3187 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3188
3189         * Fixed channel key packet processing bug on backup router
3190           during backup resuming protocol.  Affected file is
3191           silcd/packet_receive.c.
3192
3193         * Fixed memory leaks in server.  Affected files are
3194           silcd/server.c and silcd/packet_receive.c.
3195
3196         * Fixed packet decryption problem when backup router encrypted
3197           channel message with wrong key during backup resuming
3198           protocol.  Affected file silcd/packet_send.c.
3199
3200         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
3201           Toni Willberg (toniw@iki.fi)
3202
3203         * Changed the SilcCipher context to be private.  Changed the
3204           silc_cipher_get_iv to just return pointer to the IV.  Added
3205           silc_cipher_get_name to return the name of the cipher.
3206           Fixed code all around to support these changes.  Affected
3207           files are lib/silccrypt/silccipher.[ch], client library and
3208           server.
3209
3210 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3211
3212         * Fixed unaligned access in lib/silccore/silcattrs.c.
3213
3214         * Fixed libtool linking in lib/silcsim/Makefile.am.
3215
3216         * Fixed services attribute printing.  Affected files is
3217           irssi/src/silc/core/silc-queries.c.
3218
3219 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3220
3221         * Fixed a crashbug in incoming server accepting.  Affected
3222           file silcd/server.c.
3223
3224 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3225
3226         * Added automatically generated index to Toolkit Reference
3227           Manual.
3228
3229         * Added support for Postscript Toolkit Reference Manual.
3230
3231 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3232
3233         * Merged DISCONNECT fix, and autoconn port fix from Irssi
3234           CVS.
3235
3236 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3237
3238         * Added 'send_events' boolean argument to the function
3239           silc_schedule_set_listen_fd which sends the set events to
3240           the application explicitly if set to TRUE.  Default action
3241           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
3242           lib/silcclient/client_internal.h and silcd/server_internal.h.
3243
3244         * Added silc_compare_timeval to determine which time values
3245           is smaller.  Affected file lib/silcutil/silcutil.[ch].
3246
3247         * Added sort-of "Quality of Service" (QoS) support to
3248           SilcSocketConnection.  Data reception can be controlled with
3249           rate limit per second and/or read data length limit.
3250           Added silc_socket_set_qos.  Affected files are
3251           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
3252
3253         * Added the QoS configuration to SILC Server configuration
3254           file.  Affected files are silcd/serverconfig.[ch] and
3255           server.c.
3256
3257 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3258
3259         * Merged with irssi.org CVS.
3260
3261         * Failed OPER and SILCOPER authentications are now logged.
3262           Affected file silcd/command.c.  Bugs #25.
3263
3264 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3265
3266         * ROBODoc documented lib/silcutil/silcbuffer.h and
3267           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
3268           <ville.rasanen@iki.fi>.
3269
3270 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3271
3272         * Added support for auto-passphrase authentication from the
3273           config file during connecting which was not implemented
3274           yet.  Affected file irssi/src/silc/core/client_ops.c.
3275
3276         * Fixed a bug in authentication protocol failure handling which
3277           was processing wrong callback context.  Affected files
3278           are lib/silcclient/client.c and protocol.c.
3279
3280         * Fixed the /ATTR allow off to actually work.  Affected file
3281           is irssi/src/silc/core/silc-queries.c.
3282
3283         * Fixed the /ATTR -del to work.  Affected file is
3284           irssi/src/silc/core/silc-queries.c.
3285
3286 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3287
3288         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
3289
3290         * Fixed mask attribute adding in Irssi SILC client.  Affected
3291           file irssi/src/silc/core/silc-queries.c.
3292
3293 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3294
3295         * Added support for saving the requested attributes in
3296           WHOIS to directory.  Affected file is
3297           irssi/src/silc/core/silc-queries.c.
3298
3299 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3300
3301         * Added support for parsing VCard fields that do not have
3302           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
3303
3304         * Fixed a double free bug in hash table foreach function
3305           if the entry was deleted in the foreach callback.  Affected
3306           file lib/silcutil/silchashtable.c.
3307
3308 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3309
3310         * Added silc_attribute_get_verify_data to return the signature
3311           verification data for either user digital signature or
3312           server digital signature in Requested Attributes.  Affected
3313           files are lib/silccore/silcattrs.[ch].
3314
3315         * Added silc_vcard_alloc which is used to allocated dynamic
3316           SilcVCard context.  The silc_vcard_free now checks whether
3317           the context is dynamically allocated or not.  Affected files
3318           are lib/silcutil/silcvcard.[ch].
3319
3320 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3321
3322         * Periodically remove the NOATTR status from client entry
3323           so that the client may take the attributes in use even after
3324           server has resolved them unsuccessfully earlier.  Affected
3325           file silcd/server_query.c and idlist.h.
3326
3327         * Moved sha1hash and md5hash from client->internal to
3328           SilcClient for application usage.  Affected files are
3329           lib/silcclient/client.h and client_internal.h.
3330
3331         * Fixed attribute encoding and decoding bugs.  Affected
3332           files lib/silccore/silcattrs.[ch].
3333
3334         * Added ATTR command to Irssi SILC Client which is used to
3335           manage user's Requested Attributes sending and values for
3336           WHOIS command.  Affected files around Irssi SILC client.
3337
3338 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3339
3340         * Added silc_buffer_strformat which can be used to format
3341           strings into a buffer which size is automatically increased.
3342           Affected file lib/silcutil/silcbuffmt.[ch].
3343
3344         * Added implementation of VCard (RFC 2426) which can be used
3345           as part of Requested Attributes in WHOIS command.  Affected
3346           file lib/silcutil/silcvcard.[ch].
3347
3348 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3349
3350         * Some strncat -> silc_strncat changes our the core and
3351           client library.
3352
3353         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
3354           errors.  Added better error printing to SKE library.
3355           Affected files lib/silcske/silcske.c, silcske_status.h and
3356           payload.c.
3357
3358         * Save the PKCS key length even if only private key is set to
3359           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
3360
3361         * Fixed the usage of silc_pkcs_get_key_len since it returns the
3362           length in bits not in bytes.  Affected files are
3363           lib/silcske/silcske.c, lib/silccore/silcauth.c and
3364           silcd/server_query.c.
3365
3366 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3367
3368         * Added silc_attribute_payload_encode_data to directly encode
3369           the data into the attributes buffer.  Renamed function
3370           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
3371           Affected files are lib/silccore/silcattrs.[ch].
3372
3373         * silc_hash_table_find_foreach calls the foreach function now
3374           once even if the nothing was found with context set to NULL.
3375           Affected file lib/silcutil/silchashtable.[ch].
3376
3377         * Remove the RESOLVING flag from client entry after received
3378           the Requested Attributes from the client.  Fixed memory leak
3379           in client entry freeing.  Affected files silcd/server_query.c
3380           and idlist.c.
3381
3382         * Added Requested Attributes support into SILC Client Library.
3383           It is not able to send requested attributes in WHOIS command,
3384           and also receive and process requested attributes.  Added
3385           silc_client_attribute_[add|del] and silc_client_attributes_get
3386           functions.  Added also `ignore_requested_attributes' to the
3387           SilcClientParams to not use attributes in client.  Affected
3388           files are lib/silcclient/command.c, client_attrs.[ch],
3389           silcclient.h, client_internal and client.[ch].
3390
3391         * Changed the silc_client_get_client_by_id to support Requested
3392           Attributes, it takes them as argument now.  Affected file
3393           is lib/silcclient/silcclient.h, and idlist.c.
3394
3395         * Added -details option to WHOIS command in Irssi SILC Client
3396           to support the requested attributes.  By default it requests
3397           all attributes.  Affected file lib/silcclient/command.c and
3398           irssi/doc/help/in/whois.in.
3399
3400 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3401
3402         * Add also SERVICE attribute for server-constructed attribute
3403           data.  Also digitally sign the attributes and add
3404           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
3405           silcd/server_query.c.
3406
3407 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3408
3409         * Changed the silc_attribute_payload_encode to support list
3410           of attributes (function may be called several times to add
3411           a new attribute).  Removed the silc_attribute_payload_encode_list
3412           function.  The encoding function now also automatically encodes
3413           the data, so the caller does not need to do that.  Affected
3414           files lib/silccore/silcattrs.[ch].
3415
3416         * Added support for replying on behalf of the user to the
3417           Requested Attributes in WHOIS command in the server.  Affected
3418           file silcd/server_query.c.
3419
3420         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
3421           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
3422
3423 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3424
3425         * Don't swtich to become primary router if we are backup if
3426           decryption error has occurred.  Affected file silcd/server.c.
3427
3428         * Fixed a bug in backup router IP address comparison in
3429           silc_server_backup_get.
3430
3431           Save now also the port of the server/router and use that
3432           in comparison as well.  Affected file silcd/server_backup.c.
3433
3434         * Normal server now reconnects to backup router automatically
3435           if connection is lost to it.  Affected file silcd/server.c.
3436
3437 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3438
3439         * If packet processing fails (like integrity check fails)
3440           the connection is closed now.  Affected files are
3441           lib/silccore/silcpacket.c and silcd/server.c.
3442
3443 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3444
3445         * Fixed double free in RSA public key set function
3446           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
3447           Bug #29.
3448
3449 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3450
3451         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
3452           Added server_query.[ch] which provides one interface for
3453           querying information using all three commands.
3454
3455         * Changed all "typedef unsigned char" in core library to
3456           "typedef SilcUInt8".
3457
3458 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3459
3460         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
3461
3462         * Renamed silc_server_get_client_resolve to
3463           silc_server_query_resolve and moved to server_query.[ch].
3464
3465 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3466
3467         * Resumed client packet handling from server put the resumed
3468           client on wrong list on router and caused the client not
3469           be present on the network anymore.  Now fixed to put the
3470           client to correct list.  Affected file silcd/packet_receive.c.
3471
3472 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3473
3474         * Various cleanup in error message output in config parsing code
3475           and in server init code.  Fixed error log files containing
3476           too many newlines ('\n') in some situations.  Affected files are
3477           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
3478
3479 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3480
3481         * Use the reverse lookupped hostname in client internals
3482           instead of one user provided us as remote server name.
3483           Affected file lib/silcclient/client.c.
3484
3485 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3486
3487         * Added 'app_context' to silc_schedule_init.  It is an
3488           application specific context that is delivered to application
3489           in task callback functions.  Affected files are
3490           lib/silcutil/silcutil.[ch].
3491
3492         * The hb_context in SilcSocketConnection is not freed
3493           automatically anymore (application must free it).  Freeing
3494           it automatic is inconsistent.  Affected files are
3495           lib/silcutil/silcsockconn.[ch].
3496
3497 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3498
3499         * Added support for removing explicitly added client connections
3500           in rehash and closing the client connections if they were
3501           unconfigured in the rehash.  Affected file silcd/server.c.
3502
3503         * Added support for aborting automatically pending commands
3504           that never receives the reply (to avoid memory leaks).
3505           Added also silc_server_command_pending_timed to set the
3506           specific timeout for pending command.  Affected files are
3507           silcd/command[_reply].[ch].
3508
3509         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
3510           specs and lib/silccore/silcstatus.h.
3511
3512 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3513
3514         * Changed the silc_get_time to accept time value as argument
3515           or if zero is sent return current local time.  Affected
3516           file lib/silcutil/silcutil.[ch].
3517
3518         * Added STATS command to client library and Irssi SILC client.
3519           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
3520
3521 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3522
3523         * Assure that channel key is set before sending it.  May
3524           crash server otherwise.  Affected file silcd/packet_send.c.
3525
3526 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3527
3528         * Assure that endless loop cannot happen with detached client
3529           resolving on normal server.  Added idlist status
3530           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
3531           silcd/idlist.h and silcd/packet_receive.c.
3532
3533 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3534
3535         * Incoming file transfer request cannot use same session as
3536           the sending session.  This can happen when sending file to
3537           yourself.  Crashed the client on quit.  Affected file
3538           lib/silcclient/client_ftp.c.  Bug #24.
3539
3540 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3541
3542         * Implemented the draft-riikonen-precense-attrs draft and
3543           the Attribute Payload into the lib/silccore/silcattrs.[ch].
3544
3545 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3546
3547         * Distribute the SERVER_SIGNOFF notify also to local backup
3548           routers from the primary router.  The backup router may not
3549           have the signing of local server directly connected and need
3550           to know about the signoff.  Affected file silcd/server_util.c.
3551
3552         * Use the primary router as the origin of the locally connected
3553           server when it is disconnecting from the backup router since
3554           that's where it really is coming from.  Now the clients from
3555           the disconnecting server are removed correctly and "shadow"
3556           clients are not left to the backup router.  Affected file
3557           silcd/server.c.
3558
3559 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3560
3561         * If normal server is standalone and found existing but disabled
3562           channel, do not re-create the channel since it creates
3563           duplicate same channels.  Affected file silcd/server.c.
3564
3565         * Added anonymous client connections support to server.  New
3566           "anonymous" configuration option to ConnectionParams section
3567           added.  If set to true, the username and hostname information
3568           of the client will be scrambled and anonymous user mode is
3569           set automatically to the user.  Affected files are
3570           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3571
3572 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3573
3574         * In JOIN notify handling, mark that the cache entry of the
3575           client cannot be expired.  Can cause crashes on normal
3576           server (asserts client->channels).  Affected file is
3577           silcd/packet_receive.c.
3578
3579         * From now on distribution versions are used as protocol versions
3580           instead of by default using the Toolkit base version as protocol
3581           version.  Affected file prepare.
3582
3583         * Do not set the locally resolved hostname for local client
3584           entry but take what server sends.  This way the real hostname
3585           is showed in WHOIS for yourself.  Affected file is
3586           lib/silcclient/idlist.c and lib/silcclient/client.c.
3587
3588         * Resolve local info with IDENTIFY when connecting to server.y
3589
3590 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3591
3592         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3593           for implied search (not needed on platforms which has native
3594           pthreads library).  Use --without-pthreads to disable threads.
3595           Affected file is configure.in.pre
3596
3597         * Fixed --with-iconv on platforms which need to bypass (broken)
3598           native iconv().  Affected file is configure.in.pre
3599
3600 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3601
3602         * Moved -C option parsing in Irssi SILC client at same time
3603           as other options.  The UI was initialized earlier and caused
3604           problems on command line.  Bug #16.  Affected file is
3605           irssi/src/silc/core/silc-core.c.
3606
3607 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3608
3609         * Added global variable silc_log_timestamp that tells silclog
3610           wether to print or not the timestamp in the logging files.
3611           Affected file lib/silcutil/silclog.[ch].
3612
3613         * Added silcd configuration option Timestamp in the Logging
3614           section.  Affected file silcd/serverconfig.[ch],
3615           doc/example_silcd.conf.in.
3616
3617 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3618
3619         * Fixed fingerprint checking to check for entirely empty
3620           fingerprint instead of two first bytes when determining
3621           if it is set.  Bug #18.  Affected file silcd/command.c.
3622
3623         * Fixed duplicate PKCS name registering to not allow it.
3624           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3625
3626 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3627
3628         * Conditionalize non-gcc compiler optimizations for various
3629           platforms, enable those commented out.  Cleanups.
3630           Affected file lib/silcmath/mpi/configure.in
3631
3632 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3633
3634         * silc_rng_exec_command() left zombie processes if command
3635           didn't generate any output.  Affected file
3636           lib/silccrypt/silcrng.c
3637
3638 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3639
3640         * Rewrote iconv checking, introduce --with-iconv for systems
3641           which rely on libiconv.  Check if iconv() provided by libc
3642           is good enough, otherwise demand libiconv.  Affected file
3643           configure.in.pre
3644
3645 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3646
3647         * Search for ldopen() also in libc.  This enables SIM support
3648           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3649           file configure.in.pre
3650
3651 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3652
3653         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3654           This fixes prepare on *BSD systems.  Affected file
3655           configure.in.pre
3656
3657 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3658
3659         * More fixed for not having purge timeout for global clients
3660           that are on channel.  Affected files silcd/command_reply.c
3661           and server_util.c.
3662
3663         * Fixed the rekey protocol to work with backup router connections.
3664           Rekey packets are now allowed on disabled connections as
3665           well.  Affected files silcd/packet_send.c and server.c.
3666
3667         * Do not switch to be as backup router when shutting down and
3668           closing the primary connection.  Affected file silcd/server.c.
3669
3670         * Fixed memory leaks in backup router deleting.  Added
3671           silc_server_backup_free to free all data during shutdown of
3672           server.  Affected files silcd/server_backup.[ch].
3673
3674 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3675
3676         * Do not process commands if the sock->user_data is NULL.
3677           Affected file silcd/command.c.
3678
3679 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3680
3681         * Fixed buffer overflow and security problems (loosing bits
3682           in CFB encryption) in SILC RNG.  Problems reported by
3683           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3684
3685 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3686
3687         * Added yet more checks that client is not expired on global
3688           list if it is on channels.  Affected file is
3689           silcd/command_reply.c.
3690
3691 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3692
3693         * Merged c0ffee's MIME signal patch which adds support for
3694           sending also MIME messages in Irssi SILC Client, and handling
3695           received MIME messages in a signal (and perhaps doing something
3696           to non-textual MIME messages).
3697
3698 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3699
3700         * Fixed pending command deletion in server and client library
3701           to check the whole list instead of breaking after first found.
3702           The affected files are silcd/command.[ch] and
3703           lib/silcclient/command.[ch].
3704
3705 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3706
3707         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3708           secret or private, otherwise it's possible to find out
3709           whether a secret channel exists or not.  Affected file
3710           silcd/command.c.
3711
3712         * If CMODE change fails during the mode setting, assure that
3713           the old mode mask is set for the channel back.  Affected
3714           file silcd/command.c.
3715
3716         * Fixed passphrase saving on +a channel on normal server
3717           after successful JOIN command.  Affected file silcd/command.c.
3718
3719 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3720
3721         * Remove server/router operator privileges in DETACH command,
3722           since it's possible to resume to server where these
3723           privileges would not be allowed for the client.  Affected
3724           file silcd/command.c.
3725
3726         * Do not set to wait for backup in rehash of the server.
3727           Affected file silcd/server.c.
3728
3729         * Do not check listener sockets when counting how many
3730           socket connections we have.  Affected file is
3731           silcd/server_util.c.
3732
3733         * Do not announce disconnected clients that are remaining
3734           in history (for WHOWAS).  This is because SIGNOFF notify
3735           for these has been sent earlier already.  Affected file
3736           silcd/server.c.
3737
3738 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3739
3740         * Buffer overflow with CUMODE command's mode->mode character
3741           conversion.  Reported by Ville Räsänen.  Affected file
3742           lib/silcutil/silcutil.c.
3743
3744 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3745
3746         * Allow heartbeat packets to go disabled connections anyway.
3747           Affected files silcd/server.c and silcd/packet_send.c.
3748
3749         * Do not broadcast New Channel packets with List flag set
3750           in the packet to backup routers.  The router must check
3751           for the correctness of the packets before sending them.
3752           It is possible that router will have enforce Channel ID
3753           change and this would cause desync in the backup router.
3754           Affected file silcd/packet_receive.c.
3755
3756         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3757           are handled in list parsing.  They are not list packets
3758           anymore.  Affected file silcd/packet_receive.c.
3759
3760 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3761
3762         * Stop waiting for backup router through the timeout, not
3763           directly after backup router has arrived.  Affected file
3764           silcd/server.c.
3765
3766         * Do not re-create channel keys and send them when removing
3767           clients in server shutdown.  Affected files are
3768           silcd/server_internal.h and silcd/server_util.c.
3769
3770         * Notify distribution to backup routers was missing from
3771           the silc_server_send_notify_dest function which caused
3772           desyncing problems with backup router.  Affected file is
3773           silcd/packet_send.c.
3774
3775         * The client's channel removing was working wrong on
3776           backup router.  It assumed that it doesn't know global
3777           information but backup router does know.  For this reason
3778           it could remove channel when it wasn't supposed to do that.
3779           Affected file silcd/server.c and silcd/server_util.c.
3780
3781 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3782
3783         * Stop for a couple seconds after badkup router has become
3784           primary router.  Affected file silcd/server.c.
3785
3786         * Added silc_server_remove_servers_by_server, which is used
3787           to remove servers originated from some other server.  Also
3788           clients of those servers can be removed too.  Affected file
3789           silcd/server_util.[ch].
3790
3791         * When removing clients after a server has signed of remove
3792           also all servers behind that server (unless they are known
3793           to be available locally), and send SERVER_SIGNOFF for each
3794           of the server separately.  Also the signed off clients are
3795           sent now separately per signed off server.  The affected files
3796           are silcd/server.c and silcd/server_util.[ch].
3797
3798         * All servers added with silc_idlist_add_server must always
3799           have both "router" and "connection" pointers set.  Otherwise,
3800           bad server entries may be left around in the cache.
3801           Affected file silcd/command_reply.c.
3802
3803         * Do not create the channel key in NEW_CHANNEL packet
3804           processing if the channel is empty.  Affected file
3805           silcd/packet_receive.c.
3806
3807         * Completed backup router support for standalone routers.
3808           Supports also servers in the cell that do not use the backup
3809           at all.
3810
3811 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3812
3813         * Fixed a bug in silc_string_regexify which did not add '^'
3814           at the start of each string, and thus the matching was
3815           not explicit.  For example ban list iikone@*!*@* would
3816           match also "priikone", which is wrong, it would have to be
3817           *iikone@*!*@* to match also "priikone".  Affected
3818           file lib/silcutil/unix/silcunixutil.c.
3819
3820 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3821
3822         * Enable all local server connections before updating client
3823           caches when we've become backup router.  Otherwise, signoff
3824           packets may not reach the clients.  Affected files are
3825           silcd/server.c and silcd/server_util.[ch].
3826
3827         * Fixed a bug in version string parsing which could crash
3828           the program with specially formatted version string.
3829           Bug reported and patch provided by Ville Räsänen.  Affected
3830           file lib/silcutil/silcutil.c.
3831
3832         * Handle the disconnection immediately when DISCONNECT
3833           packet is received in server.  Affected file silcd/server.c.
3834
3835         * Primary router now waits a short time (10 seconds) for
3836           backup router connection before accepting any other
3837           connection (except local).  Affected file silcd/server.c,
3838           serverconfig.[ch].
3839
3840         * Fixed a crash in client libary in NICK_CHANGE notify when
3841           NICK_CHANGE arrived for client entry we are resolving
3842           currently.  Affected file lib/silcclient/client_notify.c.
3843
3844         * Call the sconn->callback completion even if error had
3845           occurred.  Start reconnecting always if connection to
3846           primary router fails during backup router protocol.
3847           Affected files silcd/server.c and server_backup.c.
3848
3849 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3850
3851         * Added functions silc_server_send_opers and
3852           silc_server_send_opers_notify to send packets stricly
3853           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
3854           to send variable argument notify to operators.
3855           Affected files silcd/packet_send.[ch] and silcd/server.h.
3856
3857         * Removed UMODE rights checking with UMODE_CHANGE notify.
3858           Affected file silcd/packet_receive.c.
3859
3860         * Server/router operator now receives notify when network
3861           switches to backup router and when it resumes the use of
3862           primary router.  Affected file silcd/server.c and
3863           silcd/server_backup.c.
3864
3865         * Fixed the updating of client information after backup
3866           resuming protocol is over; update all except local clients
3867           to the new primary router.  The affected file is
3868           silcd/server_util.c.
3869
3870         * Added support for closing active connections in rehash
3871           that were unconfigured by the user.  Supports currently
3872           closing server and router connections.  Affected file
3873           silcd/server.c.
3874
3875         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
3876
3877 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3878
3879         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
3880           is NULL since seems that on some platforms NULL is allowed
3881           and on some it's not.  Fallback encoding is used instead.
3882           Affected file lib/silcutil/silcstrutil.c.
3883
3884         * Fixed statistics updating for incoming server connection
3885           which could cause problems when re-connecting.  Affected
3886           file silcd/server.c.
3887
3888         * Preliminary backup router support for standalone router
3889           added.  Affected files in silcd/.
3890
3891         * Mark server connections in backup router disabled before
3892           and after backup protocol.  Affected file is
3893           silcd/server_backup.c.
3894
3895         * Added support for reconnecting to remote server connection
3896           even if the protocol fails, and if the configuration wants
3897           us to keep trying to connect anyway.
3898
3899           Server connection is not allowed to backup router if
3900           backup router does not have connection to primary router yet.
3901
3902           Affected file is silcd/server.c.
3903
3904 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3905
3906         * Added silc_client_udpate_server function to update changed
3907           server info.  Affected file lib/silcclient/idlist.[ch].
3908
3909         * Added check for server entries that are being resolved when
3910           notify is received.  If being resolved, handle the received
3911           notify only after it's resolved so that all notifys are
3912           handled in same order as received from the server.
3913
3914           Added similar resolver check to channel entries.  Every
3915           notify that cause resolving of any information that affects
3916           channel entry marks the channel entry in waiting state.
3917           After whatever resolving is over the waiters are signalled
3918           and only then the notifys are handled in the same order
3919           as delivered from the server.
3920
3921           Affected files are lib/silcclient/idlist.[ch], and
3922           client_notify.c.
3923
3924         * Fixed KILLED notify handling in normal server.  Affected
3925           file silcd/packet_receive.c.
3926
3927         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
3928           is locally connected, or was locally connected (but may
3929           be detached and connection is not active).  Added also
3930           SILC_IS_LOCAL for checking this status.  Affected files
3931           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
3932           silcd/server.c and silcd/server_internal.h.
3933
3934 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3935
3936         * Don't send or handle TOPIC_SET if topic is already set and
3937           is same as being set.  Affected files silcd/command.c and
3938           silcd/packet_receive.c.
3939
3940         * Fixed CMODE change rights checking to work correctly when
3941           removing modes by operator.  Affected file is
3942           silcd/server_util.c.
3943
3944         * Fixed some handling with New Channel packet in router and
3945           fixed some CMODE_CHANGE notify handling in server and router.
3946           Affected file is silcd/packet_receive.c.
3947
3948         * Changed "disconnect" client operation to include the
3949           reason of the disconnection and optional disconnection
3950           message.  Affected file lib/silcclient/silcclient.h.
3951
3952         * Made the compilation of lib/contrib/ stuff conditional.
3953           Affected files configure.in.pre, lib/contrib/Makefile.am.
3954
3955 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3956
3957         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
3958           to the sender of the notify too, to avoid situation where two
3959           notifys are in the network at the same time going to oppsite
3960           directions.  Affected file silcd/packet_receice.c.
3961
3962 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3963
3964         * Delete the client from channel even if the cilent->id is
3965           NULL.  It was possible that client was deleted without
3966           removing from channels (theoretically at least).  Affected
3967           file silcd/server.c and silcd/server_util.c.
3968
3969         * Free the client data too when resuming is not successful.
3970           Affected file silcd/packet_receive.c.
3971
3972         * Merged some code from c0ffee's silc-plugin.  Affected files
3973           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
3974
3975         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
3976           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
3977           to the primary router connection, the other one returns
3978           TRUE if packet must be broadcasted to network.
3979
3980         * All notifys that are destined to primary router (to network)
3981           are now automatically sent to backup routers even if the
3982           router is standalone (and has backup router).  Affected files
3983           in silcd/.
3984
3985         * Added --without-irssi and --without-silcd configuration
3986           options for disabling the compilation of these applications.
3987           Affected file configure.in.pre and prepare.
3988
3989 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3990
3991         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
3992           UTF-8 encoding and decoding.  Added also new encodings
3993           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
3994
3995           Added also SILC_STRING_LANGUAGE which is language and charset
3996           specific encoder and decoer for those platforms that support
3997           iconv().  It can convert the UTF-8 to and from the locale
3998           specific character set.
3999
4000           Affected file lib/silcutil/silcstrutil.[ch].
4001
4002         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
4003
4004         * Added function silc_get_command_name to the file
4005           lib/silcutil/silcutil.[ch].
4006
4007         * Improved the server debug output a bit.  Affected files are
4008           in silcd/.
4009
4010 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4011
4012         * Save the channel passphrase when received succesful JOIN
4013           command reply from router, on normal server.  Otherwise
4014           joinig +a channels from normal server is not possible.
4015           Affected file silcd/command.c.
4016
4017         * Fixed a bug in TOPIC_SET notify handling.  The notifier
4018           may be other than client too, like server or channel.
4019           It expected it to always be only client and ignored the
4020           notify.  Affected file silcd/packet_recieve.c.
4021
4022         * Removed some (unnecessary) debug printing from
4023           lib/silccore/silcid.c and lib/silccore/silcargument.c.
4024
4025         * Do not force CMODE_CHANGE when server is announcing new
4026           channel.
4027
4028           Router announces stuff only after server reannounces channel
4029           after CHANNEL_CHANGE notify.
4030
4031           These fixes optimizes the announcing procedure, and perhaps
4032           fixes some problems too.  Affected file silcd/packet_receive.c.
4033
4034         * Fixed SERVER_SIGNOFF sending to local clients.  It was
4035           totally broken and sent the notify to all local clients,
4036           instead of only to those that was on same channel as the
4037           signing off clients.  Affected file silcd/server_util.c.
4038
4039         * Added -D option to server.  It can be used to give debug
4040           level.  The levels are from 0 - 99, and are predefined for
4041           smooth server debugging.  (see silcd.c for the predefined
4042           levels).  Affected file silcd/server.c.
4043
4044 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4045
4046         * Fixed a bug in Irssi SILC client to close the connection
4047           properly when disconnecting from server.  Affected file
4048           irssi/src/silc/core/client_ops.c.
4049
4050 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4051
4052         * When authenticating as founder during JOIN command, check
4053           that the one authenticating becomes the only founder on the
4054           channel.  Affected file silcd/command.c.
4055
4056         * Better checking for founder mode setting when CUMODE_CHANGE
4057           notify is received.  Affected file silcd/packet_receive.c.
4058
4059         * Close all connections when shutting down the server by sending
4060           DISCONNECT packet.  Close all listeners too when shutting
4061           down the server.  Affected file silcd/server.c.
4062
4063         * Handle DISCONNECT packet correctly in client library by
4064           calling the "disconnect" client operation.  Affected file
4065           lib/silcclient/client.c.
4066
4067         * Handle local errors correctly during resuming.  Affected
4068           file lib/silcclient/client.c.
4069
4070 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4071
4072         * The log file is not dupped internally anymore in
4073           lib/silcutil/silclog.c.  Fixed memory leaks too.
4074
4075         * The scheduler now dispatches all pending timeout tasks
4076           when it is uninitialized with silc_schedule_uninit.
4077           Affected file lib/silcutil/silcschedule.c.
4078
4079 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4080
4081         * Added --enable-stack-trace option to configure.  Added
4082           memory allocation stack trace support.  Added files
4083           lib/silcutil/stacktrace.[ch].  Affected files are
4084           lib/silcutil/silcmemory.[ch].
4085
4086         * Fixed memory leaks from libraries and server.  Affected
4087           files around the tree.
4088
4089         * Reverted back a fix made to CUMODE which broke it.
4090           Affected file silcd/command.c.
4091
4092 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4093
4094         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
4095           core library, and implemented it.  All textual messages SHOULD
4096           use this flag and the message MUST be UTF-8 encoded.
4097           All text messages sent by Irssi SILC client are now UTF-8
4098           encoded (regardless whether the terminal supports UTF-8 or not).
4099           Affected files are lib/silccore/silcchannel.h,
4100           irssi/src/silc/core/silc-servers.c, silc-channels.c and
4101           client_ops.c.
4102
4103 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4104
4105         * Added lots of new statistics updating that was missing from
4106           the server and router code.  Affected files in silcd/.
4107
4108         * Sending SIGUSR1 signal to server now dumps the current
4109           server statistics into /tmp directory.  Affected file is
4110           silcd/silcd.c.
4111
4112         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
4113           the SILC Hash Interface also.  Added new functions
4114           silc_hash_get_name, silc_hash_init, silc_hash_update and
4115           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
4116
4117 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4118
4119         * Added some better info printing for client during connecting.
4120           Affected file silcd/server_util.c.
4121
4122         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
4123           to silence a user on a channel.  Affected files are
4124           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
4125           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
4126           and silcd/packet_receive.c.
4127
4128         * Fixed a fatal bug in handling of malformed command payload.
4129           Affected file silcd/command.c.
4130
4131         * Fixed a double free when announcing channel users to router.
4132           Affected file silcd/server.c.
4133
4134         * After successful authentication to channel founder mode, check
4135           that there isn't anyone else with founder mode on the channel.
4136           The one that authenticated will become founder and anyone
4137           else is demoted.  Affected file silcd/command.c.
4138
4139         * Added error printing of any error that has occurred during
4140           any command in client library.  Affected file is
4141           irssi/src/silc/core/client_ops.c.
4142
4143         * Removed some error printing from the client library and left
4144           it for the application to worry (from the error status it
4145           receives in 'command' client operation.  Affected file is
4146           lib/silcclient/command.c.
4147
4148 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4149
4150         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
4151           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
4152           Starting key agreement with itself is denied.  Affected file
4153           is lib/silcclient/client_keyagr.c.
4154
4155         * Fixed some error checkings from the SFTP library which caused
4156           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
4157           and lib/silcsftp/sftp_util.c.
4158
4159         * Added new "debug" and "debug_string" settings to Irssi SILC
4160           client which can be used to print runtime debugging on the
4161           Irssi's screen.  Available when compiled with --enable-debug
4162           option.  Affected file irssi/src/silc/core/silc-core.c.
4163
4164 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
4165
4166         * Fixed a missing variadic parameter in a function call that
4167           caused server crash when a non-allowed connection arrived.
4168           Reported by Richard Becker.  Affected file silcd/server.c.
4169
4170 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4171
4172         * Added WATCH list sending to backup routers from router.
4173           The WATCH command is sent by the router to the backup
4174           router.  Affected file silcd/command.c.
4175
4176         * Mark the backup_router flag for RouterConnection entry
4177           if the backup router stuff is defined in the config file.
4178           Affected file silcd/serverconfig.c.
4179
4180         * Fixed some backup data sending around the code to work better
4181           if the router is standalone router.  Not all places were fixed.
4182           Affected file silcd/packet_receive.c, silcd/packet_send.c,
4183           silcd/server.c.
4184
4185         * Fixed the router connecting when connecting to multiple
4186           routers.  It ignored every other router except the first
4187           one.  Affected file silcd/server.c.
4188
4189 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4190
4191         * Made the private key generation after expiration optional.
4192           If not created after expiration the old key will re-expire
4193           at a later time (and thus key pair is not necessary to
4194           change).  Affected file irssi/src/silc/core/clientutil.c.
4195
4196 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4197
4198         * The length arguments in bind() and connect() were wrong
4199           and fixed now to used SIZEOF_SOCKADDR in the
4200           lib/silcutil/unix/silcunixutil.c.
4201
4202 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4203
4204         * Fixed detach timeout handling to use Client ID and not
4205           the actual client entry which may be freed in the callback.
4206           Affected file silcd/command.c.
4207
4208 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4209
4210         * Merged c0ffee's multiple interface support patch.
4211           Affected files in silcd/.
4212
4213 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4214
4215         * Cleanup keys properly.  Affected file is
4216           irssi/src/silc/core/clientutil.c.
4217
4218 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4219
4220         * Display the user mode on the status bar.  Affected file
4221           irssi/src/silc/core/silc-expandos.c.
4222
4223 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4224
4225         * If private message key is not set, but the flag is set in
4226           the packet, ignore the packet since it cannot be decrypted.
4227           Affected file lib/silcclient/client_prvmsg.c.
4228
4229 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4230
4231         * When resuming client, remove the old client entry from
4232           the watcher list too.  Affected file silcd/packet_receive.c.
4233
4234         * Do not allow normal server to force founder mode away
4235           from router if the founder mode is already set.  Affected
4236           file silcd/packet_receive.c.
4237
4238         * Remove the client entry with watch notify types with short
4239           timeout, and not directly, so that other notifys can be
4240           retrieved too.  Affected file lib/silcclient/client_notify.c.
4241
4242         * Display notification about data messages that cannot be
4243           displayed.  Affected files irssi/src/silc/core/client_ops.c,
4244           irssi/src/fe-common/silc/module-formats.[ch].
4245
4246 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4247
4248         * Fixed the CHANNEL_CHANGE notify handling in client libary
4249           to not use freed memory.  Affected file is
4250           lib/silcclient/client_notify.c.
4251
4252         * Fixed CUMODE_CHANGE notify handling in server.  Affected
4253           file silcd/packet_receive.c.
4254
4255         * Fixed USERS command to support empty channels.  Affected
4256           file silcd/command.c.
4257
4258 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4259
4260         * Allow multiple identical pending commands to be registered
4261           in client library.  Affected file is lib/silcclient/command.c.
4262
4263         * Call the completion for resolving client information only
4264           after all resolvers has finished.  This fixes a crash in
4265           the client.  Added support for checking when the resolvers
4266           are finished.  Affected file is lib/silcclient/idlist.c.
4267
4268         * Wait by default 3 seconds before reconnecting to the server
4269           after being disconnected.  Makes the /detach command a bit
4270           more usable.
4271
4272 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4273
4274         * Check the watcher list before sending signoff notifys
4275           when closing client connection.  Affected file is
4276           silcd/server.c.
4277
4278         * Added better CMODE command rights checking.  Affected file
4279           silcd/server_util.c.
4280
4281 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4282
4283         * Fixed watcher list checking during server signoff.  It
4284           crashed the server.  Affected file silcd/server_util.c.
4285
4286         * The JOIN command reply returns now the founder's public
4287           key.  Affected file is silcd/command.c.
4288
4289         * Announce the channel mode, and the mode properties with
4290           CMODE_CHANGE notify.  Affected file silcd/server.c.
4291
4292         * Mark new channels by default disabled, untill at least
4293           one user joins the channel.  Affected file is
4294           silcd/packet_receive.c.
4295
4296 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4297
4298         * The nickname argument to watch notify can be optional.
4299           Fixes a crash in server.  Affected file silcd/packet_send.c.
4300
4301         * Remove the client entry from cache if the WATCH notify type
4302           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
4303           lib/silcclient/client_notify.c.
4304
4305         * Check the watcher list before and after changing nickname
4306           when the NICK_CHANGE notify is received.  Affected file is
4307           silcd/idlist.c.
4308
4309         * Fixed a crash in OPER and SILCOPER command sending.  Empty
4310           passphrase caused the crash.  Affected file is
4311           lib/silcclient/command.c.
4312
4313 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4314
4315         * Merged with Irssi CVS for Irssi SILC client.
4316
4317 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4318
4319         * Completed the protocol specifications.
4320
4321 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4322
4323         * Merged with Irssi CVS for Irssi SILC client.
4324
4325 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4326
4327         * Added the founder's public key delivery to the
4328           CUMODE_CHANGE notify type as well.  Updated the protocol
4329           specs and the code.  Affected files are silcd/packet_send.[ch],
4330           silcd/packet_receive.c and silcd/command.c.
4331
4332 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4333
4334         * Added silc_pkcs_public_key_copy function into the
4335           lib/silccrypt/silcpkcs.[ch].
4336
4337         * Remove the `iv' from the SilcChannelEntry since we can
4338           live without it.  Affected files are silcd/idlist.h and
4339           silcd/packet_receive.c.
4340
4341         * Added support for sending the founder's public key in
4342           the CMODE_CHANGE notify packet in the server.  Affected
4343           files are silcd/packet_send.[ch], silcd/packet_receive.c,
4344           silcd/command.c and silcd/server.c.
4345
4346         * Changed the FOUNDER_AUTH authentication to use only
4347           public key authentication as defined by new protocol
4348           specs.  Passphrase authentication with that mode cannot
4349           be used anymore.  It is now possible to reclaim founder
4350           mode from any server in the network.  Affected files are
4351           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
4352
4353         * Added permanent channels support by making the channel
4354           permanent when FOUNDER_AUTH mode is set on the channel.
4355           The channel will not be destroyed even if channel is empty
4356           when that mode is set.  Protocol TODO #17.  Affected
4357           files are silcd/server.[ch], server_util.[ch],
4358           silcd/command.c, silcd/packet_receive.c and
4359           lib/silcclient/command.c.
4360
4361 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4362
4363         * Added reference counter to the command reply context in
4364           the client library.  Affected files are
4365           lib/silcclient/command_reply.[ch].
4366
4367 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4368
4369         * Fixed rekey protocol with PFS in the client library.
4370           Affected file is lib/silcclient/protocol.c.
4371
4372         * Added support for list of errors in client library
4373           command reply handling.  Affected file is
4374           lib/silcclient/command_reply.c.
4375
4376         * Defined that the WHOIS and IDENTIFY commands can send
4377           list of errors.  Updated the protocol specs.  Protocol
4378           TODO #2.
4379
4380         * Added support for sending list of errors to WHOIS and
4381           IDENTIFY commands in server.  Added support for receiving
4382           list of errors in server.  Affected files are
4383           silcd/command.c and silcd/command_reply.c.
4384
4385         * Fixed client info resolving on LEAVE command in client
4386           library to not crash.  Affected file is
4387           lib/silcclient/client_notify.c.
4388
4389 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4390
4391         * Defined that the NICK command replies with thew changed
4392           nickname too, to make the nickname changing simpler at
4393           the client's end.  Updated protocol specs and the code
4394           in client and server.  Affected files are
4395           silcd/command.c, lib/silcclient/command_reply.c and
4396           lib/silcclient/command.c.
4397
4398 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4399
4400         * Added `Compressed' packet flag to indicate that the packet
4401           payload is compressed by the sender.  Updated the protocol
4402           specs and the core library.  The compression still is not
4403           implemented in the sources.  Affected file is
4404           lib/silccore/silcpacket.h.
4405
4406 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4407
4408         * Remove pending command callbacks also if the connection
4409           to the server is destroyed.  Affected file is
4410           lib/silcclient/client.c.
4411
4412 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4413
4414         * Added new QUIET channel user mode that can be used to
4415           quiet a user in a channel.  Updated the protocol specs but
4416           it wasn't implemented yet.  Protocol TODO #27.  Affected
4417           file is lib/silccore/silcmode.h.
4418
4419 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4420
4421         * Added BLOCK_INVITE user mode to be able to block incoming
4422           invite notifications.  Protoocol TODO #26.  Affected files
4423           are lib/silccore/silcmode.h, lib/silcclient/command.c and
4424           silcd/command.c.
4425
4426         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
4427           the protocol specs and the code.  Affected file is
4428           lib/silccrypt/silcpkcs.c.
4429
4430 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4431
4432         * Disconnect Payload includes now the status type.  Updated
4433           the protocol specs and the code.  Protocol TODO #25.
4434           Affected files are silcd/server.c, lib/silcclient/client.c.
4435
4436         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
4437           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
4438           Moved the silc_client_command_status_messages table to the
4439           lib/silcutil/silcutil.c and added new funtion
4440           silc_get_status_message, which deprecates function
4441           silc_client_status_message.  Affected files are
4442           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
4443           lib/silcutil/silcutil.[ch].
4444
4445 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4446
4447         * Defined that the nickname hash in Client ID MUST be from
4448           lowercase nickname.  This effectively changes nicknames in
4449           SILC to case-insensitive.  Updated the protocol specs and
4450           the code.  Affected files are lib/silcutil/silcutil.[ch],
4451           silcd/serverid.c, and silcd/idlist.c.
4452
4453         * Added new channel user modes BLOCK_MESSAGES_USERS and
4454           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
4455           code.  Affected files are lib/silccore/silcmode.h,
4456           lib/silcclient/command.c, and silcd/packet_send.c.
4457
4458         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
4459           specs and code.  Affected file lib/silccore/silcstatus.h.
4460
4461         * Added support for watch list.  It is possible to add nicknames
4462           to be watched, and when they come to network, leave network
4463           or user mode changes the watcher will be notified of this
4464           change.  Added SILC_COMMAND_WATCH command, added new
4465           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
4466           notifications.  Updated the protocol specs and implemented
4467           this to library, client and server.  Protocol TODO #21.
4468           Affected files are lib/silccore/silccomand.h,
4469           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
4470           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
4471           silcd/packet_send.[ch], silcd/packet_receive.c, and
4472           irssi/src/silc/core/client_ops.c.
4473
4474         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
4475           somebody watching you.  Updated the protocol specs and the
4476           code.  Affected files are lib/silccore/silcmode.h, and
4477           lib/silcclient/command.c.
4478
4479 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4480
4481         * Added service support to SILC protocol.  Added new command
4482           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
4483           core library.  Services are not implemented in server or
4484           client for now.  Protocol TODO #20.  Affected files are
4485           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
4486
4487         * Added SilcStatus argument to `command' client operation
4488           to return the error status when command sending fails
4489           locally.  Changed all command in client library to return
4490           correct command status.  Affected files are
4491           lib/silcclient/command.c, lib/silcclient/silcclient.h and
4492           irssi/src/silc/core/client_ops.c.
4493
4494 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4495
4496         * Added silc_mime_parse function to parse MIME headers.
4497           Affected files are lib/silcutil/silcstruti.[ch].
4498
4499         * Added MIME header parsing in Irssi SILC Client.  It displays
4500           all textual MIME objects, others it ignores.  Affected file
4501           is irssi/src/silc/core/clien_ops.c.
4502
4503 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4504
4505         * Fixed a bug in the pid writing function, which couldn't be
4506           written in a root-owned directory.
4507
4508 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4509
4510         * Defined that channel message to unknown Channel ID must
4511           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
4512           Updated the protocol specs and the code in server.  The
4513           affected file is silcd/packet_receive.c.
4514
4515 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4516
4517         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
4518           that it is used to send error notifys if error occurs during
4519           some SILC packet processing, except commands.  The error
4520           types are same as for command reply types.  Defined that
4521           if private message is sent to unknown Client ID the error
4522           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
4523           Updated the protocol specs and code.  Affected files are
4524           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
4525           lib/silcclient/client_notify.c, silcd/packet_receive.c,
4526           and irssi/src/silc/core/client_ops.c.  Renamed the
4527           SilcCommandStatus to SilcStatus.
4528
4529         * Defined the use of extra WHOIS attributes in WHOIS command.
4530           The <Requested Attributes> (defined in a separate document)
4531           can be used to request additional information about user
4532           not returned by standard WHOIS command.  Defined that server
4533           can send WHOIS command directly to client.  Client provides
4534           the requested attributes to the server.  Updated the protocol
4535           specs.  Protocol TODO #4.  Implementation is not done yet
4536           (Protocol TODO #24).
4537
4538         * Renamed function silc_client_command_status_message to
4539           silc_client_status_message.  Affected files are
4540           lib/silcclient/command_reply.[ch].
4541
4542 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4543
4544         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
4545           32 bit integers.  Updated the protcol specs and the code.
4546           Affected files are silcd/command.c and
4547           lib/silcclient/command.c.
4548
4549 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4550
4551         * Fixed a bug in library where sending a bogus authentication
4552           payload would lead to a crash.  Affected file is
4553           lib/silccore/silcauth.c.
4554
4555 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4556
4557         * Added detach_disabled and detach_timeout server config
4558           options to the server.  Affected files silcd/serverconfig.[ch],
4559           silcd/command.c and silcd/packet_receive.c.
4560
4561 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4562
4563         * Added resolve_cmd_ident field to the SilcClientEntry structure
4564           too so that if the entry is for example being resolved so
4565           another command may attach to the same pending command reply
4566           without requiring to resolve the same entry again.  Added
4567           support for adding multiple pending commands for one
4568           command idenfier.  Affected files lib/silcclient/command.[ch],
4569           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4570
4571 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4572
4573         * Defined that server receives WHOIS command reply for private
4574           and secret channels too.  Updated protocol specs and the
4575           code in server.  Affected file silcd/command.c.
4576
4577         * Defined <channel user mode list> argument to WHOIS command
4578           reply for returning user modes on the channels.  The
4579           channel list now doesn't include the user mode anymore but the
4580           actual channel mode.  Updated protocol specs and the code in
4581           client and server.  Affected files are silcd/command_reply.c,
4582           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4583           and lib/silcclient/command_reply.c.
4584
4585         * Save the channels list in WHOIS command reply in normal server
4586           so that WHOIS always shows joined channels also in normal
4587           server and not just on router.  Affected file is
4588           silcd/command_reply.c.
4589
4590 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4591
4592         * Defined that server receives USERS command reply for private
4593           and secret channels too.  Updated protocol specs and the
4594           code in server.  Affected file silcd/command.c.
4595
4596 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4597
4598         * Changed the UMODE's mode mask argument to be optional.  If
4599           not provided then the command merely returns the current mode
4600           mask to the client.  Updated protocol specs and the server.
4601           Affected file is silcd/command.c.
4602
4603         * Added SILC session detachment/resuming support.  It is possible
4604           to detach by closing the network connection and then re-connect
4605           and resume to the old client session.  Added DETACHED user
4606           mode that server will set for detached client.  Added new
4607           packet RESUME_CLIENT which is used to perform the resuming
4608           process.  Added DETACH command.  Updated the protocol specs,
4609           core library, client and server.  Protocol TODO #22.  Very
4610           many affected files around the tree.
4611
4612 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4613
4614         * Changed the CMODE's mode mask argument to be optional.  If
4615           not provided then the command merely returns the current mode
4616           mask to the client.  Updated protocol specs and the server.
4617           Affected file is silcd/command.c.
4618
4619         * Changed the Killer's Client ID in KILLED notify to be just
4620           any ID payload since router server is allowed to kill as well.
4621           Updated protocol specs, client libary and server.  Affected
4622           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4623           and irssi/src/silc/core/client_ops.c.
4624
4625 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4626
4627         * Added new user modes ANONYMOUS for special anonymous servers
4628           that may set the mode for client, and BLOCK_PRIVMSG which
4629           client may set to block incoming private messages unless the
4630           Private Message Key flag is set (using private keys to protect
4631           private messages).  Updated protocol specs and code in client
4632           and server and core library.  Protocol TODO #23.  Affected
4633           files are lib/silccore/silcmode.h, silcd/server.[ch],
4634           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4635           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4636
4637         * Added new channel user mode BLOCK_MESSAGES which the client
4638           may set to itself to tell server not send channel messages.
4639           Other packets such as channel key packets are still sent.
4640           Protocol TODO #23.  Updated the protocol specs, client and
4641           server.  Affected files are lib/silccore/silcmode.h,
4642           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4643           lib/silcutil/silcutil.c, silcd/command.c, and
4644           silcd/packet_send.c.
4645
4646 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4647
4648         * Redefined the Status Payload to include now two 8 bit fields,
4649           instead of one 16 bit field.  This now makes it possible to
4650           send list of errors.  Updated the protocol specs and the code
4651           in core library, client library and server.  Protocol TODO #1.
4652           Affected files are lib/silccore/silccommand.[ch],
4653           lib/silcclient/command_reply.[ch], silcd/command.c,
4654           silcd/command_reply.c and silcd/packet_receive.[ch].
4655
4656 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4657
4658         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4659           must be handled by the application and should tell the application
4660           that an error message was already printed, and it should print the
4661           config coords (line, filename, ...).  Affected files are
4662           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4663
4664         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4665           server config parsing code more readable.
4666
4667           Fixed a bug in the fetch_logging() config callback.
4668
4669           Affected files is silcd/serverconfig.c.
4670
4671         * Drop root privileges when started in foreground.  Don't drop them
4672           if debugging also.  Affected file is silcd/silcd.c.
4673
4674 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4675
4676         * Added more IM-like features by introducing new user modes
4677           for setting various presence information.  Added new modes:
4678           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4679           specs and code.  Protocol TODO #19. Affected files are
4680           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4681           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4682
4683 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4684
4685         * Added STATS command to the protocol after all, to return
4686           various statistical information about the network.  It can
4687           be used by clients to retrieve statistical information, and
4688           servers may use it to to fetch cell and network wide
4689           statistics from router.  Updated the protocol specs and
4690           implemented it to the server.  Protocol TODO #16.
4691           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4692           silcd/command_reply.[ch].
4693
4694 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4695
4696         * The LIST command reply in client libary now adds new channel
4697           entry if the returned channel doesn't exist yet in cache,
4698           and returns the channel entry to the application in the
4699           command_reply client operation.  Affected file is
4700           lib/silcclient/command_reply.c.
4701
4702         * Changed the channel message payload's MAC generation to
4703           include the IV in the MAC as well.  This way all relevant
4704           parts of the channel message payload are authenticated also
4705           with the channel message MAC (and not only by packet MAC).
4706           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4707           Affected file is lib/silccore/silcchannel.c.
4708
4709         * Fixed the SKE to save the remote version, since the
4710           silc_ske_parse_version mistakenly checked wrong version,
4711           after it replaced the start payload.  Affected files are
4712           lib/silcske/silcske.[ch].
4713
4714 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4715
4716         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4717           string utility functions.  Added there also new functions
4718           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4719           Affected files lib/silcutil/silcstrutil.[ch].
4720
4721         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4722           files are lib/silcutil/silcstrutil.[ch].
4723
4724         * Defined that the security property fields in SKE SHOULD be
4725           UTF-8 encoded, defined that version string MUST be US-ASCII
4726           encoded, defined that passphrases sent in connection
4727           authentication protocol MUST be UTF-8 encoded.  Implemented
4728           these to the client and server.  Defined also that other
4729           passphrases sent in the protocol MUST be UTF-8 encoded.
4730           Affected files are lib/silcske/silcske.c,
4731           lib/silcclient/protocol.c, silcd/protocol.c,
4732           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4733
4734         * Changed the silc_client_close_connection interface to not
4735           need the SilcSocketConnection which should not be visible
4736           to application.  Affected files are lib/silcclient/client.c
4737           and lib/silcclient/silcclient.h.
4738
4739         * Rewrote the text for Private Message Key Payload in the
4740           protocol specification.  Protocol TODO #11.
4741
4742 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4743
4744         * Upgraded the protocol version to 1.1, updated protocol specs
4745           and software.
4746
4747         * Added the nickname as new argument to NICK_CHANGE notify and
4748           added it to protocol specs and implemented it to client and
4749           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4750           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4751           lib/silcclient/client_notify.c.
4752
4753         * Added the killer's client ID to the KILLED notify and added
4754           it to protocol specs and implemented it to client and server.
4755           Protocol TODO #13.  Affected files are silcd/command.c,
4756           silcd/packet_receive.c, packet_send.[ch],
4757           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4758           The killer's client entry is now returned to application in
4759           the `notify' client operation.
4760
4761         * Fixed the Max Argument fields that had too large value set
4762           in the protocol specs.  Protocol TODO #14.
4763
4764         * Added the LEAVE command reply to return the ID of parted
4765           channel.  Updated protocol specs and implemented it to the
4766           client and server.  Protocol TODO #15.  Affected files are
4767           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4768           entry is now returned to application in the `command_reply'
4769           client operation.
4770
4771         * Rewrote the version SKE version checking in client libary
4772           and in server to use the silc_parse_version_string.  Affected
4773           files are lib/silcclient/protocol.c, silcd/protocol.c.
4774
4775         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4776           commands that was missing it, and updated protocol specs and
4777           the server implementation.  Protocol TODO #10.  The affected
4778           file is silcd/command.c.
4779
4780         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4781           generic reply to a generic request (REQUEST flag), and
4782           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4783           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4784           to define the payload for DATA flag.  Added the flags to
4785           the implementation.  Protocol TODO #9.  Affected file is
4786           lib/silccore/silcchannel.h.
4787
4788           Changed the client library to return the message length
4789           to application as well in the channel_message and private_message
4790           client operations.  Affected files are
4791           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4792           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4793           and lib/silcclient/client_ops_example.c.
4794
4795         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4796           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4797           the channel.  Updated protocol specs and impelemented this
4798           to client and server.  Protocol TODO #6.  Affected files are
4799           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4800           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4801
4802           Added new options m and M to CMODE command in Irssi SILC
4803           client to set these modes.
4804
4805         * Deprecated all administrative commands from SILC protocol
4806           since they are highly implementation specific commands.
4807           Updated protocol specs.  Moved the old commands in
4808           implementations to private range of command types.  Affected
4809           files are silcd/command.c, lib/silcclient/command.c and
4810           lib/silcclient/command_reply.c.  Protocol TODO #8.
4811
4812         * Fixed a bug in server where sending unknown command crashes
4813           the server.  Affected file silcd/command.c.
4814
4815 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4816
4817         * Added SILC_PROTOCOLVERSION macro to check protocol version
4818           of a socket connection.  The affected file is
4819           lib/silcutil/silcsockconn.h.
4820
4821         * Added better error logging in rekey protocol.  Affected file
4822           silcd/protocol.c.
4823
4824         * Do not check public key types in SKE during rekey.  Affected
4825           file lib/silcske/payload.c.
4826
4827         * Fixed the rekey protocol with PFS, which was totally broken.
4828           Affected file silcd/protocol.c.
4829
4830 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4831
4832         * Some client implementations quit network by doing first LEAVE
4833           and then immediately SIGNOFF (like Bombyx).  We now do check
4834           after a short time after LEAVE notify and check whether the
4835           client is still valid after LEAVE, and if not we remove it from
4836           cache.  Affected file is lib/silcclient/client_notify.c.
4837
4838 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4839
4840         * Merged version 1.1.4 of zlib. Even if it not currently in use,
4841           it's good not to have security holes here.
4842
4843         * Fixed a negative refcount situtuation for the config context.
4844           Affected file is silcd/serverconfig.c.
4845
4846 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4847
4848         * ROBOdoc documented lib/silcutil/silcutil.h.
4849
4850 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4851
4852         * Optimized even more the SilcPacketContext structure.  Now
4853           totally saved 16 bytes of memory per context after optimization.
4854           Affected files are lib/silccore/silcpacket.[ch].
4855
4856         * Made strict checks for valid SILC IDs.  Affected file is
4857           lib/silccore/silcid.c.
4858
4859 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4860
4861         * Changed the object argument for silc_cipher_register,
4862           silc_hash_register, silc_hmac_register and silc_pkcs_register
4863           to const.  Affected files are lib/silccrypt/silccipher.[ch],
4864           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
4865
4866         * Changed the silc_get_username and silc_get_real_name to
4867           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
4868
4869         * Fixed the Irssi SILC Client to use the silc_get_username and
4870           silc_get_real_name insted of glib routines since the glib
4871           routines only corrupt stack.  Fixes the Irssi SILC to work in
4872           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
4873
4874         * Fixed the Irssi to not use g_get_home_dir since it crashes
4875           or returns garbage on cygwin and corrupts stack.  Added function
4876           get_home_dir to Irssi routines.  Affected files are
4877           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
4878
4879 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4880
4881         * Made some structure optimizations.  SFTP memory FS MemFSEntry
4882           entry structure.  Optimized SilcTask structure.  Optimized
4883           SilcPacketContext structure.
4884
4885           Affected files lib/silcsftp/sftp_fs_memory.c,
4886           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
4887
4888 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4889
4890         * And yet again reverted back the config thing since Johnny
4891           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
4892           and silcd.c.
4893
4894         * Fixed memory leaks from config object.  Affected files are
4895           silcd/serverconfig.[ch].
4896
4897         * Added support for adding new connections to the server in rehash.
4898           After rehash they take effect.
4899
4900           Added support for changing the maximum allowed connections in
4901           rehash.  The number can grow but going smaller is not supported.
4902
4903           Added function silc_server_num_sockets_by_remote to the
4904           silcd/server_util.[ch].
4905
4906           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
4907
4908 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
4909
4910         * Added preliminary checking during config parsing for a valid
4911           public/private key and removed further checks in the code.
4912           Affected files are silcd/serverconfig.[ch], server.c.
4913
4914         * Moved functions silc_server_drop() and silc_server_daemonise()
4915           from server.c to silcd.c since they are stricly related to
4916           the application activity.
4917
4918         * Reverted a small part of the automatic ref/unref since
4919           it caused a double unref in some situations.  Affected
4920           files are silcd/silcd.[ch], server.c, serverconfig.c.
4921
4922         * Added some .cvsignore files in the lib directory.
4923
4924 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4925
4926         * Fixed silc_net_gethostbyaddr to correctly resolve by
4927           address.  Affected file lib/silcutil/silcnet.c.
4928
4929         * Fixed the notify relaying to client.  The HMAC to be used
4930           with relayed packets ws wrong and caused decryption failure
4931           at the client end.  Affected file is silcd/packet_receive.c.
4932
4933 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4934
4935         * Created new branch silc_protocol_1_0_branch.
4936
4937         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
4938
4939         * Changed the silc_server_config_* routines to be SilcServer
4940           independent.  They are now officially application specific code
4941           and not part of generic server implementation.  Affected files
4942           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
4943
4944 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4945
4946         * Added automatic referencing of config context in the
4947           silc_server_config_alloc, and automatic unreferencing in the
4948           silc_server_config_destroy.  Affected files are
4949           silcd/serverconfig.[ch], silcd/silcd.c.
4950
4951         * Fixed the silc_log_quick handling in the logging routines.
4952           It didn't log quickly when it was TRUE.  Affected file is
4953           lib/silcutil/silclog.c.  Also the flush delay was set even
4954           if it was 0 in config file.  Affected file is
4955           silcd/serverconfig.c.
4956
4957         * Added support for changing key pair of the server in rehash.
4958           Affected file silcd/server.c.
4959
4960 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4961
4962         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
4963           too early, before getting the channel entry.  Affected file
4964           is silcd/packet_receive.c.
4965
4966 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4967
4968         * Added functions silc_server_config_[ref/unref], these are used
4969           to prevent that the config object is destroyed.
4970
4971           No longer directly affect global variables silc_log_quick and
4972           silc_log_delay, they are first cached inside the config object
4973           and then applied with silc_server_config_setlogfiles().
4974
4975           silc_server_config_set_defaults() is now internal to
4976           serverconfig.c, there are no reasons to show this internal stuff
4977           to the server.
4978
4979           Affected files are silcd/serverconfig.[ch].
4980
4981         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
4982           fprintf's to stderr, since some code may be executed again after
4983           the server went into the background.  Affected files are
4984           silcd/server.[ch].
4985
4986         * Added rehash support. Added function silc_server_rehash() that
4987           will perform all the basic tasks of the rehashing procedure.
4988
4989         * Added command line option `-x, --hexdump'. This will enable the
4990           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
4991           The option `--hexdump' implies `--debug'.
4992
4993         * Fixed a bad bug in the logging APIs (silcutil library) where
4994           the application would crash after calling silc_log_reset_all().
4995
4996 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4997
4998         * Fixed the KICKED notify handling in client library to
4999           correctly remove the channel and all entries from the
5000           channel when I was kicked.  This bug crashed the client.
5001
5002           Fixed yet another but in KICKED notify handling to remove
5003           the kicked client correctly from the channel.
5004
5005           Affected file is lib/silcclient/client_notify.c.
5006
5007         * Fixed a minor bug in looking up correct client entry
5008           in KICKED notify in server.  Affected file is
5009           silcd/packet_receive.c.
5010
5011         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
5012           sources correctly to distribution.  Fixes --with-gmp option.
5013
5014         * Removed the manual rehashing from ID Cache, and changed it
5015           to use the SILC Hash Table's auto rehash feature.  Affected
5016           file is lib/silccore/silcidcache.c.
5017
5018 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5019
5020         * Fixed a bug in the silc_client_nickname_format function that
5021           handles the multiple same nickname formatting.  Two clients
5022           with same nickname caused problems after the first one left
5023           and rejoined.  It didn't format the nickname correctly.
5024           Affected file is lib/silcclient/idlist.c.
5025
5026 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5027
5028         * Don't change the topic if olod topic is same as new one.
5029           Affected file is silcd/packet_receive.c.
5030
5031 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5032
5033         * Added cross-reference support to the SILC Documentation
5034           generator.  All types across all HTML files are now cross-
5035           referenced.  Affected files util/robodoc/generator.c and
5036           scripts/silcdoc/silcdoc.
5037
5038         * Added file lib/silcutil/silctypes.h to include all the
5039           arithmetic type definitions and some macros.  Removed
5040           includes/bitmove.h and moved macros to silctypes.h.
5041
5042 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5043
5044         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
5045
5046 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5047
5048         * Added `type' argument to silc_id_payload_parse_id function which
5049           now returns the type of the ID to the sent pointer.  Affected
5050           file is lib/silccore/silcid.[ch].
5051
5052         * Added check for CMODE_CHANGE notify type that mode change is
5053           allowed by the sender.  Affected file silcd/packet_receive.c.
5054
5055         * Added check for CUMODE_CHANGE notify type that mode change is
5056           allowed by the sender.  Affected file silcd/packet_receive.c.
5057           Added the ID type as CUMODE_CHANGE notify type as argument
5058           to the `notify' client operation.  Affected files are
5059           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
5060
5061         * Added function silc_client_add_server to the client library.
5062           Added support for resolving also channel and server info when
5063           received unknown entity in notify packet.  Affected files are
5064           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
5065
5066         * Added function silc_command_get_status to return the command
5067           status from the command reply's argument payload.  Affected files
5068           are lib/silccore/silccommand.[ch].
5069
5070         * Added check for KICKED notify type that the kicking is
5071           allowed by the client.  Affected file silcd/packet_receive.c.
5072
5073         * Created function silc_get_input which can be used to get input
5074           (echo on or off) from user on command line.  Affected files are
5075           lib/silcutil/silcutil.[ch].
5076
5077 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5078
5079         * Optimized silc_server_packet_relay_to_channel function.
5080           Added new function silc_channel_message_payload_encrypt which
5081           can be called directly if channel message payload needs to
5082           be encrypted and is already encoded (no need to call _encode
5083           function).  Packet relaying is now done by router without any
5084           extra memory allocations.  Affected files are
5085           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
5086           silcd/packet_send.c.
5087
5088         * Fixed the INVITE notify handling.  It took wrong arguments
5089           as invite list and invite delete.  Affected file is
5090           silcd/packet_receive.c.
5091
5092         * Added check for TOPIC_SET notify type that the topic change is
5093           allowed by the client.  Affected file silcd/packet_receive.c.
5094
5095         * Added check for INVITE notify type that inviting is allowed by
5096           the client.  Affected file silcd/packet_receive.c.
5097
5098         * Changed the silc_server_client_on_channel to return the
5099           SilcChannelClientEntry as well.  Moved the function
5100           silc_server_check_cmode_rights to server_util.[ch].
5101           Affected files are silcd/server_util.[ch], silcd/command.c.
5102
5103         * Added function silc_server_check_umode_rights to check whether
5104           changing client's user mode is allowed.  Added check for
5105           UMODE_CHANGE notify type that the umode change is allowed
5106           by the client.  Affected files are silcd/server_util.[ch],
5107           silcd/packet_receive.c and silcd/command.c.
5108
5109 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5110
5111         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
5112           ID length.  It ignored that ID can be IPv6 based as well.
5113           Affected file lib/silccore/silcpacket.h.
5114
5115         * Fixed the silc_id_id2str and silc_id_str2id to take the
5116           IPv6 address offset's into consideration.  Affecte file is
5117           lib/silccore/silcid.c.
5118
5119 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5120
5121         * Fixed the internal Unix scheduler functions to check for
5122           NULL context they may receive.  The affected file is
5123           lib/silcutil/unix/silcunixschedule.c.
5124
5125 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
5126
5127         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
5128           can specify different directory with --home command line
5129           parameter. Affected files irssi/src/silc/core/client_ops.c,
5130           clientutil.c
5131
5132         * SILC-specific commands aren't now executed if the active server
5133           isn't of SILC-type, so there won't be problems with having
5134           IRC and SILC protocol support in same client. Affected files
5135           irssi/src/silc/core/silc-channels.c, silc-servers.c,
5136           silc-commands.h
5137
5138 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5139
5140         * Improved the signal support in SILC Schedule.  Added new
5141           function silc_schedule_signal_call which is used by application
5142           to mark a signal to be called.  It is now safe to perform
5143           any kind of tasks in signal callbacks since it is guaranteed
5144           that the application specified signal callback is called
5145           after the signal is over.  Affected files are
5146           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
5147
5148 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5149
5150         * Added `name' field to SilcChannelPrivateKey to represent
5151           application given name for the key.  Moved also the context from
5152           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
5153           Added the `name' argument also to the function
5154           silc_client_add_channel_private_key.
5155
5156           Added function silc_client_current_channel_private_key to set the
5157           current channel private key in use.
5158
5159           Added "change" command to KEY command which can be used to change
5160           the current channel private key.  Bound the command also to
5161           alt+K (Alt+Shift+k).
5162
5163           Also affected files lib/silcclient/client_channel.c,
5164           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
5165
5166 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5167
5168         * Added silc_rng_get_byte_fast function in to the
5169           lib/silccrypt/silcrng.[ch].
5170
5171         * Changed the interface of silc_packet_assemble and the
5172           silc_packet_send_prepare.  If silc_packet_assmble is now
5173           called the application does not call silc_packet_send_prepare
5174           because the library will call it automatically.  These
5175           interfaces now also return a reference to the outgoing buffer
5176           which includes the assembled packet, which the application can
5177           use to encrypt the packet.
5178
5179           Affected files are lib/silccore/silcpacket.[ch],
5180           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
5181           silcd/packet_send.c, server_backup.c and packet_receive.c.
5182
5183         * Fixed a packet sending bug on very high load, where outgoing
5184           packet queue wasn't handled correctly and packets got corrupted.
5185           Affected files are lib/silcutil/*/silc*sockconn.c,
5186           lib/silcclient/client.c and silcd/server.c.
5187
5188 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5189
5190         * Added macro SILC_PACKET_DATALEN which can be used during
5191           packet assembling to check whether the data to be added to
5192           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
5193           len is truncated until it fits it.
5194
5195           Added checks for maximum length of channel message payload and
5196           private message payload also.
5197
5198           Added checks for maximum packet length in server and in
5199           client library.
5200
5201           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
5202           lib/silcclient/client.c, lib/silccore/silcchannel.c and
5203           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
5204           lib/silcclient/client_prvmsg.c.
5205
5206 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5207
5208         * Added silc_server_packet_queue_purge call to the
5209           silc_server_disconnect_remote to assure that all data in the
5210           queue before disconnecting is sent to the network.  Affected
5211           file silcd/server.c.
5212
5213 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5214
5215         * Added the deleting of server's own ID cache entry to the
5216           silc_server_free function.  Free also everything else that
5217           has been allocated in silc_server_init.  The affected file
5218           is silcd/server.c.
5219
5220 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5221
5222         * Added functions silc_parse_version_string, silc_version_to_num,
5223           and silc_ske_parse_version to parse SILC protocol style version
5224           strings.  Affected files lib/silcutil/silcutil.[ch] and
5225           lib/silcske/silcske.[ch].
5226
5227         * Added new configuration params: version_protocol, version_software
5228           and version_software_vendor to specify what version the remote
5229           host must at least be to be able to connect to server.  The vendor
5230           string can be regex matched too.  Added new function
5231           silc_server_connection_allowed to check maximum number of allowed
5232           connections, and allowed versions for incoming connections.
5233           Affected files are silcd/server.c, server_util.[ch] and
5234           serverconfig.[ch].
5235
5236 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5237
5238         * Added preliminary support for signals in scheduler.  The
5239           signals we care about are now blocked always when the scheduler
5240           is locked.  This way we can synchronise the use of signal with
5241           scheduler.  It is guaranteed that when signal occurs the scheduler
5242           is not locked, and thus new tasks can be safely added to the
5243           scheduler.
5244
5245           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
5246           to silc_schedule_internal_init and silc_schedule_internal_uninit.
5247           Added new platform specific routines
5248           silc_schedule_internal_signals_[un]block and
5249           silc_schedule_internal_signal_[un]register.
5250
5251           Added new functions to SILC Schedule API:
5252           silc_schedule_signal_[un]register.  Each signal that application
5253           is going to use should be registered to the scheduler.
5254
5255           Affected files are lib/silcutil/silcschedule.[ch],
5256           lib/silcutil/*/silc*schedule.c.
5257
5258 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5259
5260         * Check for unauthenticated client and server in the
5261           silc_server_new_client and silc_server_new_server functions.
5262           Affected file silcd/packet_receive.c.
5263
5264         * Added function silc_string_is_ascii to check whether given
5265           string is 7-bit ASCII string.  Affected files are
5266           lib/silcutil/silcutil.[ch].
5267
5268         * Added function silc_id_is_valid_server_id into the
5269           silcd/serverid.c and added checking for valid Server ID's in
5270           silc_server_new_server.  The Server ID must always be based
5271           on the server's public IP address.
5272
5273         * Added logging of DISCONNECT packet message in the server.
5274           Affected file silcd/server.c.
5275
5276 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5277
5278         * Changed all library interfaces that use Global RNG to also
5279           accept SilcRng as argument.  Affected files are
5280           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
5281           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
5282           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
5283           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
5284           lib/silccrypt/rsa.c.
5285
5286         * Added function silc_pkcs_generate_key to the
5287           lib/silccrypt/silcpkcs.[ch] for applications so that they
5288           don't need to do pkcs->pkcs->init calls anymore.
5289
5290         * Remove SilcSocketConnection from the SFTP API since it really
5291           wasn't needed there.  The application has the information
5292           saved in its contexts anyway and the SFTP layer doesn't need
5293           know about it.  Affected files lib/silcsft/silcsftp.h and
5294           lib/silcsftp/sftp_[server/client].c.
5295
5296         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
5297           The SilcSimContext is not SilcSim.
5298
5299         * Fixed possible buffer overflows in silc_id_render in the
5300           lib/silcutil/silcutil.c.
5301
5302         * On EPOC the global crypto module lists are not used at all
5303           in the crypto library.  Added support for using the constant
5304           algorithm list on EPOC.  Affected files are
5305           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
5306           silcpkcs.c.
5307
5308         * Fixed the handling of third parameter of KICKED notify, since
5309           it was mistakenly updated to SILC Protocol 1.0 even though it
5310           is to be included in 1.1.  Since it is not in 1.0 it is not
5311           mandatory, and this fix now handles it only if it is provided,
5312           and it is not error if it is not provided.  Affected file
5313           lib/silcclient/client_notify.c.
5314
5315 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5316
5317         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
5318           client.  Affected file irssi/src/silc/core/client_ops.c.
5319
5320         * Merged with Irssi 0.8.4 from irssi.org CVS.
5321
5322 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5323
5324         * Check for valid socket connection in client entries before
5325           sending any messages.  Fixes a crash, but doesn't fix some
5326           other underlaying bug that is lurking there.  Affected
5327           file silcd/packet_send.c.
5328
5329 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
5330
5331         * $usermode, $cumode and $cumode_space expandos shouldn't do
5332           anything with non-SILC server records. Affected file
5333           irssi/src/silc/core/silc-expandos.c
5334
5335 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5336
5337         * Fixed the silc_net_check_[host/local]_by_sock to support
5338           IPv6 bound sockets as well.  Now they can return IPv6 addresses
5339           as well.  Affected file lib/silcutil/silcnet.c.
5340
5341         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
5342           Affected lib/silcutil/unix/silcunixnet.c.
5343
5344         * Fixed ID rendering (at least on some platforms, not NetBSD)
5345           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
5346
5347 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5348
5349         * Added silc_hash_public_key and silc_hash_public_key_compare
5350           functions to be used with SilcHashTable.  They can be used to
5351           hash public keys and compare public keys in hash table.  Affected
5352           file lib/silcutil/silcutil.[ch].
5353
5354         * Added support for specifying multiple public keys for Client
5355           connection section in server configuration file.  This makes it
5356           possible to accept multiple public keys from same host, or to
5357           make a section that accepts any incoming host, and have the
5358           accepted public keys listed in the section.
5359
5360           Added functions silc_sever_[find/get]_public_key,  added the
5361           support for this actually to all connection sections but only
5362           the Client section is currently allowed to specify multiple
5363           public keys.
5364
5365           Affected files are silcd/server.c, server_internal.h,
5366           command.c, protocol.c, server_util.[ch], packet_receive.c.
5367
5368 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5369
5370         * Merged Irssi 0.8.2 from irssi.org CVS.
5371
5372 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5373
5374         * If silc_debug is TRUE, also output standard logging messages
5375           to stderr with the debug output.
5376
5377           Made silc_log_reset_all() flushing all channels before returning.
5378           Also fixed some documentation typos.
5379
5380           Affected files are lib/silcutil/silclog.[ch].
5381
5382 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5383
5384         * Fixed the server to check correctly the amount of connections
5385           from single host, by checking also the type of the connection.
5386           Fixed also the comparison of number of connections and number
5387           of allowed connections.  Affected files are silcd/server.c,
5388           server_util.[ch].
5389
5390 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5391
5392         * Fixed the USERS command reply to save the user's mode on the
5393           channel as well.  Fixed JOIN command reply to check whether a
5394           client is on channel already and not join it twice.  Affected
5395           file lib/silcclient/command_reply.c.
5396
5397         * Added new file silc-expandos.c into irssi/silc/core/ to return
5398           various stuff for various signal for the statusbar etc. updating.
5399           Now Irssi SILC client prints channel user modes etc. on the
5400           statusbar.
5401
5402         * The user mode (like server/router operator changes) is now shown
5403           on the Irssi SILC client's statusbar.  The affected files are
5404           irssi/src/silc/core/client_ops.c, silc-expandos.c.
5405
5406 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5407
5408         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
5409           to SILC_SCHEDULE_[UN]LOCK macros.
5410
5411         * Added more error printing to logs in server code.  Affected
5412           files silcd/server.c and silcd/protocol.c.
5413
5414         * Fixed -S option parsing in Irssi SILC Client.  Affected file
5415           irssi/src/silc/core/silc-core.c.
5416
5417         * Added silc_buffer_alloc_size function.  Affected file is
5418           lib/silcutil/silcbuffer.h.
5419
5420 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5421
5422         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
5423           constants.  Affected files in
5424           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
5425           silccipher.[ch].
5426
5427         * Changed the internal SFTP Memory FS table to const.  Affected
5428           file lib/silcsftp/sftp_fs_memory.c.
5429
5430 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5431
5432         * Fixed the buffer formatting and unformatting routines to
5433           check the size of 64 bits types with sizeof().  Affected
5434           file is lib/silcutil/silcbuffmt.c.
5435
5436 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5437
5438         * Removed 0.6.x backwards support.
5439
5440 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5441
5442         * Changed all integer type names:
5443           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
5444           to avoid collisions with other libraries using same type names
5445           as we did.
5446
5447 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5448
5449         * Added `prefer_ipv6' argument to the functions
5450           silc_net_gethostbyname[_async].  If it is TRUE it will return
5451           IPv6 address over IPv4.  If FALSE IPv4 address is returned
5452           even if IPv6 address was found.  Affected files
5453           lib/silcutil/silcnet.[ch].
5454
5455         * Added support silc_net_create_connection[_async] to fallback
5456           to IPv4 address if IPv6 address could not be used (like if
5457           it doesn't work on a specific system).  Affected file in
5458           lib/silcutil/unix/silcunixnet.c.
5459
5460 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5461
5462         * Added silc_schedule_reinit function to do the enlarging
5463           of the max tasks handling capabilities of the scheduler.
5464           Affected files lib/silcutil/silcschedule.[ch].
5465
5466 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5467
5468         * Added automatic extern "C" { ... } for C++ compilers so the
5469           application does not need to define them.  Affected file
5470           includes/silcincludes.h.
5471
5472         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
5473           old name went against naming convention.  Applications now
5474           include "silcclient.h" instead of "clientlibincludes.h".
5475           Removed includes/clientlibincludes.h, it is redundant now.
5476
5477         * Renamed includes/version.h to silcversion.h.
5478
5479         * Added really preliminary support for OS/2 into the util
5480           library.  Only thread & mutex API is implemented, others
5481           are still to be implemented.  Created the lib/silcutil/os2/
5482           directory.  Created also file includes/silcos2.h.
5483
5484 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5485
5486         * Added preliminary BeOS support into the util library.
5487           Created lib/silcutil/beos/, and implemented all the needed
5488           functions to support SILC on BeOS.  Created also file
5489           includes/silcbeos.h.
5490
5491 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
5492
5493         * Added proper initializations to silc's irssi code, so it's
5494           now possible to load it as module.  Affected files
5495           irssi/src/silc/core/silc-core.c,
5496           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
5497
5498 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5499
5500         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
5501           the SILC tree.
5502
5503         * Fixed the silcdoc document generator to correct generate
5504           docs from all kinds of filenames.  Affected files are
5505           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
5506
5507         * ROBOdoc documented lib/silcutil/silcmemory.h.
5508           Added also new function silc_memdup.
5509
5510         * Removed lib/silcutil/silcbufutil.h and moved those routines
5511           to the lib/silcutil/silcbuffer.h.
5512
5513 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5514
5515         * Added `user_count' to the SilcChannelEntry which now tells the
5516           number of users on the channel.  The user count is now saved
5517           in normal server of global channels as well.  Affected files
5518           silcd/server.c, idlist.h, packet_receive.c and command.c.
5519
5520         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
5521           include file utility functions.
5522
5523         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
5524           instead of calling directly OS routines.
5525
5526         * Fixed NICK change printing in Irssi SILC Client. Fixed
5527           KICKED notify printing in Irssi SILC Client.  Affected file
5528           irssi/src/silc/core/client_ops.c.
5529
5530         * Fixed a NICK change bug in client library, to not recreate the
5531           client_entry->channels hash table everytime nick is changed.
5532           Affected file lib/silcclient/client.c.
5533
5534 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5535
5536         * ROBOdoc documented the lib/silcske/silcske.h, and improved
5537           the SKE interface a bit.
5538
5539         * Fixed padding problem in PKCS#1. The padding was not actually
5540           random since the random number generator was used incorrectly.
5541           This security bug affects only when encrypting with PKCS#1, and
5542           it is not currently used at all in SILC. SILC only use signing
5543           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
5544
5545 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5546
5547         * Rewrote the notify handling in Irssi SILC client to not call
5548           the events as signals.  Fixes problems with Perl support.
5549           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5550
5551         * Send the auto-nicking NICK command in client library with
5552           little timeout after connecting.  The affected file is
5553           lib/silcclient/client.c.
5554
5555         * Added following new config file settings:
5556           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5557           key_exchange_timeout, conn_auth_timeout, connections_max,
5558           links_max.
5559
5560           Implemented all the new config settings handling in the server.
5561
5562           Optimized the use of SKE Mutual flag usage.  Use it only
5563           if connection authentication protocol is not based in public
5564           key authentication.
5565
5566           Renamed all SilcServerConfigSection* to SilcServerConfig*
5567           to have a bit shorter names.
5568
5569           Affected files silcd/serverconfig.[ch], server.[ch], and
5570           protocol.[ch].
5571
5572 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5573
5574         * Cleaned up the listening sockets code, preparing for the rehash
5575           support.  Affected file is silcd/server.c.
5576
5577         * Fixed some output messages.  Affected files are silcd/silcd.c,
5578           and silcd/server.c.
5579
5580 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5581
5582         * Create lib/doc/silcrng_intro.html document as introduction
5583           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5584
5585 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5586
5587         * Fixes to the silcd config template.  Affected file is
5588           doc/example_silcd.conf.in.
5589
5590         * Removed type casts from silc_calloc(), conforming to the
5591           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5592
5593         * Removed param_name member from client, server, and router
5594           section structs, now identifying the param directly.
5595
5596           Added CONFIG_FREE_AUTH macro in config file parsing.
5597
5598           Affected files are silcd/serverconfig.[ch].
5599
5600 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5601
5602         * Fixed command line parameter handling. All SILC initialization
5603           is now done in silc_core_init() which also fixes autoconnecting
5604           to servers.
5605
5606           Affected files irssi/src/silc/core/silc-core.c,
5607           irssi/src/fe-text/silc.c.
5608
5609 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5610
5611         * Added new configuration options and blocks:
5612           keepalive_secs, reconnect_count, reconnect_interval,
5613           reconnect_interval_max, reconnect_keep_trying and
5614           require_reverser_lookup.  Added ConnectionParam block, and
5615           implemented the connection parameters when connecting as
5616           initiator and when accepting connections as responder.
5617
5618           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5619           whether given configuration value has been given already.
5620
5621           Affected files silcd/serverconfig.[c], server.[c].
5622
5623         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5624           algorithm parts and created new file silcalgs.conf, that
5625           is now included from the example_silcd.conf.in.
5626
5627         * Optimized the silc_server_connect_to_router_second to take
5628           the connection configuration object from the SilcServerConnection
5629           object instead of finding it during the connecting phase.
5630           Added the configuration object to SilcServerConnection struct.
5631           Affected files silcd/server_internal.h, server.c.
5632
5633 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5634
5635         * Add the client on channel after it was resolved at the
5636           channel message receiving, and it was not already on the
5637           channel.  Affected file lib/silcclient/client_channel.c.
5638
5639 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5640
5641         * Fixed the public key authentication to allocate always the
5642           destination signature buffer instead of using static buffer.
5643           Affected file silcd/protocol.c.
5644
5645 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5646
5647         * Unified the serverconfig.[ch]'s helper function interface.
5648           Affected file silcd/serverconfig.[ch].
5649
5650         * Removed doc/example_silc.conf.in since it is redundant.
5651           The make install will now install irssi/silc.conf file.
5652
5653         * Added new Passphrase and Publickey authentication methods to
5654           config file, allowing both public key and passphrase based
5655           authentication to be set at the same time.
5656
5657           Added `prefer_passphrase_auth' setting in config file which
5658           can be used to set to prefer passwd auth if both passwd and
5659           public key is set.  If not set, public key is preferred.
5660           This has effect only when being initiator (responder will try
5661           both anyway).
5662
5663           Added support for authentication with passphrase and public key
5664           at the same time.  The passphrase is tried first always since
5665           it is faster to check.
5666
5667           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5668
5669 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5670
5671         * Merged the new SILC Config library, with the server parsing
5672           support.  Read the header file silcconfig.h or the toolkit
5673           documentation for the news.  Affected files are
5674           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5675           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5676           silcd/protocol.c silcd/server.c silcd/server_backup.c
5677           silcd/serverconfig.[ch] silcd/silcd.c.
5678
5679         * Fixed some silclog documentation.  Affected file is
5680           lib/silcutil/silclog.h.
5681
5682 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5683
5684         * The silc_cipher_register, silc_hash_register and
5685           silc_hmac_register now checks if the object to be registered
5686           is registered already.  Affected files are
5687           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5688
5689 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5690
5691         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5692
5693 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5694
5695         * Allow zero length channel messages inside the Channel Message
5696           Payload.  Affected file lib/silccore/silcchannel.c.
5697
5698         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5699           as header filenames.
5700
5701         * Removed lib/silcclient/README and created HTML file
5702           lib/silcclient/silcclient_using.html, which is now included
5703           as part of Toolkit documentation.
5704
5705 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5706
5707         * Fixed CUMODE_CHANGE notify handling to change the mode of
5708           correct client.  Affected file lib/silcclient/client_notify.c.
5709
5710         * Make silc_rng_alloc fail if it cannot allocate the sha1
5711           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5712
5713 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5714
5715         * Fixed the file transfer's key agreement payload to include
5716           zero port also if the hostname is NULL because it could not
5717           be bound.
5718
5719           Call file transfer monitor callback now also if error occurs
5720           during key agreement protocol.
5721
5722           Changed the silc_client_file_send interface to return the
5723           SilcClientFileError instead of session id.  The session ID
5724           is returned into pointer provided as argument.
5725
5726           Check that the file exists locally before sending the
5727           file transfer request at all.
5728
5729           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5730
5731         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5732           error than can occur while key agreement protocol.  Affected
5733           file lib/silcclient/silcapi.h.
5734
5735         * Fixed the event_mode CMODE handler to not crash when mode
5736           is changed and +k mode is set in the channel.  Affected file
5737           irssi/src/silc/core/silc-channels.c.
5738
5739         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5740           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5741           file lib/silcutil/silclog.c.
5742
5743         * Fixed the channel message payload decryption in the function
5744           silc_channel_message_payload_decrypt to not modify the original
5745           buffer before it is verified that the message decrypted
5746           correctly.  Otherwise, next time it is called with correct
5747           channel key it won't encrypt since the payload is corrupted.
5748           Affected file lib/silccore/silcchannel.c.
5749
5750 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5751
5752         * Do not constantly resize the window.  A fix patch by cras.
5753           Affected file irssi/src/fe-text/screen.c.
5754
5755 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5756
5757         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5758           Affected file lib/silcutil/silcnet.c.
5759
5760 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5761
5762         * Fixed a bug in hash table internal routine for traversing
5763           the table with foreach callback.  The current entry may
5764           become invalid in the callback but it was referenced after
5765           the callback returned.
5766
5767           Do not allow auto rehashing of hash table during the
5768           silc_hash_table_foreach operation, for same reasons as it is
5769           not allowed for SilcHashTableList.  Affected files are
5770           lib/silcutil/silchashtable.[ch].
5771
5772 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5773
5774         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5775           Win32 DLL.  extern's in header files are now declared with
5776           DLLAPI.
5777
5778 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5779
5780         * Fixed private message handling.  It used some old code that
5781           caused the client to crash.  Affecte file is
5782           lib/silcclient/client_prvmsg.c.
5783
5784 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5785
5786         * Added function silc_client_add_channel,
5787           silc_client_replace_channel_id, and removed functions
5788           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5789           from client library.
5790
5791         * Added cross reference of the joined channels to the
5792           SilcClientEntry, and changed the SilcChannelEntry's
5793           users list to SilcHashTable.  The affected files are
5794           lib/silcclient/idlist.[ch].
5795
5796         * Fixed a bug in hash table tarversing.  While the hash table
5797           is traversed with SilcHashTableList the table must not be
5798           rehashed.  It is now guaranteed that auto rehashable tables
5799           are not rehashed while tarversing the list.  Also defined that
5800           silc_hash_table_rehash must not be called while tarversing
5801           the table.  Added function silc_hash_table_list_reset that must
5802           be called after the tarversing is over.  The affected files are
5803           lib/silcutil/silchashtable.[ch].
5804
5805         * Changed all hash table traversing to call the new
5806           silc_hash_table_list_reset in server and in client library.
5807
5808         * Added function silc_client_on_channel to return the
5809           SilcChannelUser entry if the specified client entry is joined
5810           on the specified channel.  This is exported to application as
5811           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5812
5813 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5814
5815         * Fixed founder regaining problem with JOIN command on normal
5816           server.  The notify for mode change must be sent always and
5817           not only if !cmd->pending.  Affected file silcd/command.c.
5818
5819         * Fixed the WHOWAS command's reply sending to support the
5820           lists correctly.  Affected file silcd/command.c.
5821
5822 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5823
5824         * When sending JOIN command to router for processing the
5825           sender's old command identifier was not saved back to the
5826           sender's command context, fixed now.  The affected file is
5827           silcd/command.c.
5828
5829         * Create the key in JOIN command of the router did not return
5830           the channel key, added check for this.  Affected file is
5831           silcd/command.c.
5832
5833         * Fixed a channel ID update bug in JOIN command reply.  Do
5834           not directly upgrade the ID but call the function
5835           silc_idlist_replace_channel_id if the ID was changed.
5836           Affected file silcd/command_reply.c.
5837
5838         * Fixed memory leaks from command calling if it would fail.
5839           Affected file silcd/command.c.
5840
5841 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5842
5843         * Applied patches from cras:
5844
5845           Memory leak fixes around libaries, irssi window resize fix,
5846           new silclist.h and silcdlist.h, all extern inline changed to
5847           static inline.
5848
5849         * Removed dotconf from lib/dotconf, not needed anymore.
5850
5851         * Removed TRQ from lib/trq, not needed anymore.
5852
5853         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
5854           with server connections.  Later this will be configurable
5855           in config file after new config file is done.  Affected file
5856           silcd/server.c.
5857
5858 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5859
5860         * Fixed a crash in server related to channel announcements.
5861           Affected file silcd/server.c.
5862
5863 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5864
5865         * Fixed memory leaks in silc_server_create_new_channel*
5866           functions.  Affected file silcd/server.c.
5867
5868         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
5869           which ID was changed.  This way the router will send the
5870           user list for the channel again, and server won't be in
5871           desync in some rare circumstances.  Affected file is
5872           silcd/packet_receive.c.
5873
5874 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5875
5876         * Check for NULL socket pointer in the function
5877           silc_server_packet_send_to_channel_real.  Affected file
5878           silcd/packet_send.c.
5879
5880         * Fixed the BAN notify handling to correctly remove ban
5881           list.  Affected file silcd/packet_receive.c.
5882
5883 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5884
5885         * Fixed some header addition to Toolkit distribution in
5886           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
5887
5888         * Added lib/silcclient/client_ops_example.h as an template
5889           file for application programmers to quickly start using
5890           the SilcClientOperation functions in their application.
5891           Updated the lib/silcclient/README as well to tell about this
5892           nice file made available.
5893
5894 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5895
5896         * Call silc_server_remove_from_channels when removing client
5897           entry when NO_SUCH_CLIENT_ID was received.  Affected file
5898           is silcd/command_reply.c.
5899
5900 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5901
5902         * Added server & router operator statistics updating.  Affected
5903           file silcd/packet_receive.c and silcd/command.c.
5904
5905         * Fixed the SERVER_SIGNOFF notify handling on normal server
5906           not to save the history information for clients.  Same was
5907           fixed earlier in remove_clients_by_server function, but not
5908           here.  Affected file silcd/packet_receive.c.
5909
5910         * Raised the default connection-retry count from 4 to 7 in
5911           server.  Affected file silcd/server.h.
5912
5913         * Cancel any possible reconnect timeouts when we start the
5914           key exchange.  Affected file silcd/server.c.
5915
5916         * Do not reconnect on connection failure when SCONNECT was
5917           given.  Affected files silcd/server.[ch].
5918
5919 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5920
5921         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
5922
5923         * Fixed the NICK command to always give the unformatted
5924           nickname to the one giving the NICK command.  If unformatted
5925           nickname is cached already it will be formatted and the
5926           local entry will always get the unformatted nickname.
5927           Affected file lib/silcclient/idlist.c.
5928
5929         * Fixed some double frees from client library commands.
5930           Affected file is lib/silcclient/command.c.
5931
5932         * Fixed CUMODE command in server to assure that no one can
5933           change founder's mode than the founder itself, there was a
5934           little bug.  Affected file silcd/command.c.
5935
5936 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5937
5938         * Removed the SilcClientCommandDestructor from the client
5939           libary, it is not needed anymore.  Affected files are
5940           lib/silcclient/silcapi.h, command[_reply].[ch],
5941           client_notify, idlist.c.
5942
5943         * Fixed GETKEY command to first resolve client, and then
5944           resolve the server only if the client was not found, instead
5945           of resolving both at the same time.  Affected file is
5946           lib/silcclient/command.c.
5947
5948         * Added silc_client_start_key_exchange_cb and lookup the
5949           remote hostname and IP address before starting the key
5950           exchange with server.  The affected file is
5951           lib/silcclient/client.c.
5952
5953         * The server's public key is now saved using the IP address
5954           of the server and not the servername for the filename.
5955           The hostname public key filename is checked as an fall back
5956           method if the IP address based filename is not found.
5957
5958           Fixed the GETKEY command to save the fetched server key
5959           in correct filename.
5960
5961           Print the remote server's hostname now when new key is
5962           received during connection process.  Affected file is
5963           irssi/src/silc/core/client_ops.c.
5964
5965         * Return always our own public key to the client if it asks
5966           for it with GETKEY command.  Affected file silcd/command.c.
5967
5968         * Removed the use_auto_addr variable from default config
5969           file since it was in wrong section.  Affected file is
5970           irssi/src/config.
5971
5972         * Fixed TOPIC_CHANGE notification to not route it when it
5973           was sent using silc_server_send_notify_to_channel function.
5974           Affected file silcd/command.c.
5975
5976         * Fixed silc_server_send_notify_kicked to send the kicker's
5977           Client ID also, it was missing.  Affected files are
5978           silcd/command.c, silcd/packet_send.[ch].
5979
5980 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5981
5982         * Do not save client history information in SERVER_SIGNOFF.
5983           Fixes the bug in normal server that it does not detect
5984           the client becoming valid after the server becomes back
5985           online.  Affected file silcd/server_util.c.
5986
5987         * Added `sock_error' field  into the SilcSocketConnection
5988           context.  When error occurs during socket operation (read
5989           or write) the error is saved.  Added also new function
5990           silc_socket_get_error to return human readable socket error
5991           message.  Affected files are lib/silcutil/silcsockconn.[ch],
5992           lib/silcutil/unix/silcunixsockconn.c, and
5993           lib/silcutil/win32/silcwin32sockconn.c.
5994
5995         * The server now prints the socket error message in the
5996           signoff for client.  Affected file silcd/server.c.
5997
5998         * Fixed the `created' channel information sending from router
5999           to server in JOIN command.  Checks now whether the channel
6000           really was created or not and set it according that.
6001
6002           Fixed the JOIN command to use the client entry's current
6003           ID during the joining procedure instead of the one it sent
6004           in the command (it is checked though), since it can change
6005           between the packet processing and command processing, and
6006           would just case unnecessary pain in the client end.  Affected
6007           file silcd/command.c.
6008
6009         * Fixed a channel key payload sending to use correct channel
6010           ID when the server was forced to change the channel's ID by
6011           router.  Router sent the key payload with the old Channel ID.
6012           Affected file silcd/packet_receive.c.
6013
6014 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6015
6016         * Call silc_server_save_channel_key only if the key payload
6017           was provided in the JOIN command's command reply.  Affected
6018           file silcd/command_reply.c.
6019
6020 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6021
6022         * Fixed silc_mp_sizeinbase to return the value correctly with
6023           MPI.  Affected file lib/silcmath/mp_mpi.c.
6024
6025         * Fixed the stop_server signal to correctly stop the scheduler
6026           and gracefully stop the server when SIGTERM or SIGINT signals
6027           are received.  Affected file silcd/silcd.c.
6028
6029 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
6030
6031         * Simple handling of TERM and HUP signals. Also added some log
6032           flushing call around.  Affected file is
6033           silcd/silcd.c.
6034
6035         * Fixed small bugs in silclog.c. Now buffering output will take
6036           effect after 10 seconds since startup: This will ensure that
6037           no important startup messages are lost. Also output redirection
6038           will preserve original format ([Date] [Type] message).
6039           Affected file is lib/silcutil/silclog.c.
6040
6041         * Added two options to the config file, in the logging section:
6042           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
6043           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
6044
6045 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6046
6047         * Do not print the warning about log files not being initialized
6048           more than once to avoid excess logging.  Affected file is
6049           lib/silcutil/silclog.c.
6050
6051         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
6052           the SIM copying in make install in Makefile.am.pre.
6053
6054 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6055
6056         * Rewritten silclog APIs. Globally interesting changes follows:
6057           silc_log_set_files() changed to silc_log_set_file().
6058           silc_log_set_callbacks() changed to silc_log_set_callback().
6059           ROBOdoc documented silclog header file.
6060           SilcLogCb now returns bool to wether inihibit the default
6061           handler or not (to keep the old behaviour return always TRUE).
6062           The new APIs should also fix the problem of the
6063           silcd_error.log file that was written in the current directory.
6064
6065           New features:
6066           Log files streams will remain opened after silc_log_set_file()
6067           call, means less CPU usage notably on high traffic servers.
6068           File streams are now full buffered, and flushed to the disk
6069           every 5 minutes, lesses HD activity and CPU usage.
6070           Messages can be redirected, allowing admins to configure
6071           one single logfile for all server messages.
6072           the silc_log_quick global variable to activate fast-logging.
6073           Affected files lib/silcutil/silclog.[ch]
6074
6075         * Changed some code to conform new silclog APIs. Affected
6076           files are doc/example_silcd.conf.in, silcd/server.c
6077           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
6078           silcd/silcd.c.
6079
6080         * Fixed a memory leak that could occur in some situations.
6081           Affected file silcd/serverconfig.c.
6082
6083 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6084
6085         * Added the silc_client_del_client to remove the client from
6086           all channels as well.  Affected file lib/silcclient/idlist.c.
6087
6088         * Fixed the client library to correctly remove the client
6089           from all channels when the client entry is being destroyed.
6090           Affected file lib/silcclient/client_notify.c, command.c.
6091
6092         * Added auto-nicking support to the client library.  If the
6093           applicatio now sets client->nickname it will be sent to the
6094           server after connecting by the library.  This way for example
6095           SILCNICK (or IRCNICK) environment variables will have effect
6096           and always change the nickname automatically to whatever
6097           it is wanted.  Affected file lib/silcclient/client.[ch].
6098
6099         * Renamed silc_server_command_bad_chars to the
6100           silc_server_name_bad_chars and moved it to the
6101           silcd/server_util.[ch].  Added also new function
6102           silc_server_name_modify_bad to return nickname that
6103           includes bad characters as new nickname without those
6104           bad characters.  This check and modify is now used in
6105           silc_server_new_client when the username is initially set
6106           as nickname, so it must be checked to be valid nickname.
6107           Affected file silcd/packet_receive.c.
6108
6109         * The nickname length is now taken from the packet for real
6110           and not trusted to strlen() since it clearly can return
6111           wrong length for nickname including bad characters.  This
6112           also applies to channel names.  Affected file silcd/command.c.
6113
6114         * Removed the lib/silcsilm/modules directory.  Modules are now
6115           compiled into the lib/silcsim.  Fixed the copying of the
6116           modules to follow symbolic links in Makefile.am.pre.
6117
6118 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
6119
6120         * Fixed silc_string_regexify list creation.  Fixes bugs with
6121           BAN and INVITE commands in server.  The affected file is
6122           lib/silcutil/unix/silcunixutil.c.
6123
6124 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6125
6126         * Removed the command destructor entirely from the server's
6127           command and command reply routines.  It is not needed, and
6128           its usage was buggy and caused crashes.  Affected files are
6129           silcd/command[_reply].[ch].
6130
6131 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6132
6133         * Cancel protocol and NULL sock->protocol if timeout
6134           occurred during protocol.  Affected file silcd/server.c.
6135
6136         * Cancel protocol timeouts always before calling the final
6137           callback, to assure that after final callback is called
6138           no other state will be called for the protocol anymore.
6139           Affected file silcd/protocol.c.
6140
6141         * Print error log if incoming connection configuration could
6142           not be found.  Affected file silcd/server.c.
6143
6144         * Fixed JOIN command to correctly save the founder mode
6145           to the client on normal SILC server, when the channel
6146           was created by the router.  Affected file silcd/command.c.
6147
6148         * Fixed LIST command (hopefully) to send correct reply
6149           packets.  Affected file silcd/command.c.
6150
6151 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6152
6153         * The silc_packet_receive_process now returns FALSE if the
6154           read data was invalid packet, and TRUE if it was ok.
6155
6156           The server now checks that if unauthenticated connection
6157           sends data and its processing fails the server will close
6158           the connection since it could be a malicious flooder.
6159
6160           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
6161
6162 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6163
6164         * Make sure the warning about error opening a log file is
6165           printed only once and not everytime it fails (produces
6166           too much useless log).  Affected file lib/silcutil/silclog.c.
6167
6168 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6169
6170         * Made the silc_server_daemonise() function more readable.
6171           Affected file silcd/server.c.
6172
6173         * Pid file is now optional, the user may comment it out from
6174           the config file. Removed define SILC_SERVER_PID_FILE, we
6175           don't need a default any longer.  Affected file
6176           configure.in.pre, lib/Makefile.am.pre.
6177
6178         * Make some use of the pid file. The server now dies at startup
6179           if it detects a valid pid file on his path. The server would
6180           die anyway in this circumstance, because of the bind() failure.
6181           Affected file silcd/silcd.c.
6182
6183         * No longer compiling lib/dotconf.
6184
6185 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6186
6187         * Fixed JOIN command parsing not to crash.  Affected file
6188           lib/silcclient/command.c.
6189
6190         * Fied the NICK_CHANGE notify to add the new client entry
6191           even it is resolved.  This removes an <[unknown]> nick
6192           thingy bug in the client.  Affected file is
6193           lib/silcclient/client_notify.c.
6194
6195         * Do not try to allocate 0 bytes (efence does not like it)
6196           in lib/silccore/silccomand.c when encoding payload.
6197
6198         * Do not take IRCNICK as nickname in Irssi SILC client since
6199           it is not possible to set nickname before hand connecting
6200           the server (TODO has an entry about adding auto-nicking
6201           support).
6202
6203         * Changed the silc_server_command_pending to check whether
6204           there already exists an pending entry with the specified
6205           command, command identifier and pending callback.  This is
6206           to fix IDENTIFY and WHOIS related crashes that may register
6207           multiple pending commands with same identifier.  Affected
6208           file silcd/command.c.
6209
6210         * Fixed the server to reconnect to the router even if it
6211           was already reconnecting and EOF was received.  This to
6212           fix a possibility that the server wouldn't ever try to
6213           auto-reconnect to the router.  Affected file silcd/server.c.
6214
6215 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6216
6217         * Fixed the server's password authentication to use the
6218           length of the locally saved password, and not the one
6219           sent in the packet.  Affected file silcd/protocol.c.
6220
6221         * Fixed same password authentication problem in the
6222           Authentication Payload handling routines in
6223           lib/silccore/silcauth.c.
6224
6225         * Yet another password authentication problem fixed with
6226           channel password handling in silcd/command.c.
6227
6228 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6229
6230         * If first character of string in silc_parse_userfqdn is '@'
6231           then do not parse it.  Affected file is
6232           lib/silcutil/silcutil.c.
6233
6234 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6235
6236         * Fixed minor bug in IDENTIFY command reply sending, which
6237           caused various weird problems during JOIN when it was
6238           resolving names for users.  Affected file silcd/command.c.
6239
6240 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6241
6242         * Fixed the IDENTIFY command reply sending to chech better valid
6243           clients.  It was possible to send incomplete list of replies.
6244           Affected file silcd/command.c.
6245
6246 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6247
6248         * Added silc_client_command[s]_[un]register functions now to
6249           dynamically register the commands in client library.  Removed
6250           the static table of commands.  This allows the client library
6251           to call commands without causing the application to know about
6252           what commands library has called.
6253
6254           Removed the INFO command reply kludge to detect when the command
6255           was called by library.  Now library use its own command reply
6256           function for INFO command.
6257
6258           Added function silc_client_command_call to call a command.
6259           Application can use it to call command, not access the structure
6260           directly.
6261
6262           Now all commands that are sent by the client library (not
6263           explicitly sent by application) use own command reply functions.
6264
6265           Affected files around lib/silcclient/ and in
6266           irssi/src/silc/core/.
6267
6268         * Fixed the WHOIS command reply sending to chech better valid
6269           clients.  It was possible to send incomplete list of replies.
6270
6271           Fixed the WHOIS and IDENTIFY to send the request to router
6272           if normal server did not do it and did not find any results.
6273
6274           Affected file silcd/command.c.
6275
6276 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6277
6278         * Moved the internal data from SilcClient context into its
6279           own file, not accesible to application.  Affected files
6280           lib/silcclient/client.h and lib/silcclient/client_internal.h,
6281           and other files in client library.
6282
6283 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6284
6285         * Added doc/examples installation target in Makefile.am.pre.
6286           A patch by salo.
6287
6288 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6289
6290         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
6291           commands the found client entry will be removed from the
6292           cache, after notifying application about the error.  Affected
6293           file lib/silcclient/command_reply.c.
6294
6295         * Changed the /MSG to check for exact nickname user gave, and
6296           not let `nick' match `nick@host' if it is only one found.  Now,
6297           user must type the exact nickname (like nick@host2) even if
6298           there are no more than one same nicks found.  This is to avoid
6299           a possibility of sending nickname to wrong nickname since
6300           `nick' could match `nick@host'.  Affected file is
6301           irssi/src/core/silc-servers.c.
6302
6303 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6304
6305         * Do not print "you are now server operator" or similar when
6306           giving /away command.  Affected files are
6307           irssi/src/silc/core/client_ops.c, silc-servers.h.
6308
6309         * Made the silc_server_command_pending_error_check to send
6310           the same command reply payload it received back to the
6311           original sender of the command.  This way all arguments
6312           that was received by the server will be received by the
6313           client too.  Affected file silcd/command.c.
6314
6315         * Added the silc_idcache_add to return the created cache entry
6316           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
6317
6318         * Add global clients to expire if they are not on any channel.
6319           This is because normal server will never know if they signoff
6320           if they are not on any channel.  The cache expiry will take
6321           case of these entries.  This is done by normal servers only.
6322           The affected files are silcd/command_reply.c,
6323           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
6324
6325         * If server receives invalid ID notification for WHOIS or
6326           IDENTIFY and the ID exists in the lists, it is removed.
6327           Affected file silcd/command_reply.c.
6328
6329         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
6330           in client then client entry that it matches is searched and
6331           the nickname is printed on the screen for user.  Affected
6332           file irssi/src/silc/core/client_ops.c.
6333
6334 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6335
6336         * Use cache entry expire time in the LIST command reply to
6337           purge old entries from the cache after the LIST command
6338           reply has been received.  This way we don't have non-existent
6339           entries in the cache for too long.  Affected file is
6340           silcd/command_reply.c.
6341
6342 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6343
6344         * If we are normal server, and we've not resolved client info
6345           in WHOIS or IDENTIFY from router, and it is global client,
6346           we'll check whether it is on some channel.  If it is not
6347           then we cannot be sure about its validity and will resolve it
6348           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
6349           file silcd/command.c.
6350
6351         * Search channel by name (if possible) rather than by ID
6352           in IDENTIFY command's command reply.  Affected file is
6353           silcd/command_reply.c.
6354
6355 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6356
6357         * Distribute to the channel passphrase in CMODE_CHANGE notify.
6358           Updated specs and implemented it.  Affected file silcd/command.c,
6359           silcd/packet_send.c and silcd/packet_receive.c.
6360
6361         * Implemented the <founder auth> payload handling in the JOIN
6362           command.  If provided all conditions for channel joining
6363           except requirement to provide correct passphrase can be
6364           overrided by the channel founder.  Updated the protocol specs.
6365           Affected file silcd/command.c.
6366
6367           Added support for founder auth in JOIN command in client
6368           library.  Fixed the parsing of the JOIN command now to support
6369           all options as they should be.  The affected file is
6370           lib/silcclient/command.c.
6371
6372         * Optimized the WHOIS and IDENTIFY commands to send the request
6373           to router only if it includes nicknames or other names.  If
6374           they include only IDs then check the local cache first before
6375           routing.  Affected file is silcd/command.c.
6376
6377         * Added channels topic announcements.  Affected file is
6378           silcd/packet_receive.c and silcd/server.c.
6379
6380         * Fixed the silc_server_send_notify_topic_set to really destine
6381           the packet to channel.  Affected file silcd/packet_send.c.
6382
6383         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
6384           library.  Affected file lib/silcclient/client_notify.c.
6385
6386         * Added UMODE announcements.  Affected file silcd/server.c.
6387
6388 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6389
6390         * Memory leak fixes in:
6391
6392           lib/silcutil/silcsockconn.c
6393           lib/silcske/silcske.c
6394           lib/silcske/groups.c
6395           lib/silccrypt/rsa.c
6396           lib/silccrypt/silcpkcs.c
6397           lib/silccore/silccommand.c
6398           lib/silccore/silcidcache.c
6399           silcd/idlist.c
6400           silcd/packet_send.c
6401           silcd/command.c
6402
6403         * ROBOdoc documented the lib/silcske/groups.h file and a
6404           bit changed the interface for better.
6405
6406 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6407
6408         * Update the client entry context in the ID cache after
6409           nick change.  Affected file lib/silcclient/command.c.
6410           Fixes the CUMODE command when regaining founder privileges,
6411           and a little WHOIS problem.
6412
6413         * Fixed silc_net_gethostbyname to correctly call the
6414           inet_ntop.  Affected file lib/silcutil/silcnet.c.
6415
6416 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6417
6418         * Added IPv6 support checking to the configure.in.pre, added
6419           also --enable-ipv6 option to override the check.  Affected
6420           file configure.in.pre.
6421
6422         * The silc_thread_create now calls the start function
6423           directly if threads support is not compiled in.  Removes
6424           ugly #ifdef's from generic code.  Affected files are
6425           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
6426
6427         * Added silc_net_gethostby[name/addr]_async to asynchronously
6428           resolve.  Affected files are lib/silcutil/silcnet.[ch].
6429
6430         * Added support for rendering IPv6 based server, client and
6431           channel IDs.  Affected file lib/silcutil/silcutil.c.
6432
6433         * Added support for creating IPv6 based server IDs.  Affected
6434           file is silcd/serverid.c.
6435
6436 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6437
6438         * Added silc_net_gethostby[addr/name] into the
6439           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
6440           routines.  Added silc_net_is_ip[4/6].  Affected file is
6441           lib/silcutil/unix/silcunixnet.c.  All routines that take
6442           address as argument now supports both IPv4 and IPv6 addresses.
6443
6444 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6445
6446         * Fixed LIST command reply sending in server.  Affected file
6447           silcd/command.c.
6448
6449         * Server now sends the kicker's client ID in the KICK notify
6450           to the kicked client.  Affected file silcd/command.c.
6451
6452         * The client library now parses the kickers client ID and
6453           UI displays it.  Affected files lib/silcclient/client_notify.c
6454           and irssi/src/silc/core/silc-channels.c, module-formats.c.
6455
6456         * Made all payload parsing function prototypes consistent.
6457           They all take now const unsigned char * and uint32 pair as
6458           the payload data instead of SilcBuffer.  Changes all around
6459           the source tree.  Other unsigned char* -> const unsigned char*
6460           changes around the tree as well.
6461
6462         * Optimized SFTP client and server packet sending not to
6463           allocate new buffer for each packet but to recycle the
6464           first allocated buffer.  Affected files are
6465           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
6466
6467         * Optimized the SFTP client to use SilcList instead of
6468           SilcDList for requests, because it is faster.  Affected file
6469           is lib/silcsftp/sftp_client.c.
6470
6471         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
6472           into lib/silccore/silcid.[ch].
6473
6474           Renamed silcpayload.[ch] into silcargument.[ch].
6475
6476 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6477
6478         * If client entry is deleted with active key agreement
6479           session, abort the session.
6480
6481           The silc_client_abort_key_agreement now calls the completion
6482           callback with new SILC_KEY_AGREEMENT_ABORTED status.
6483
6484           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
6485           idlist.c.
6486
6487 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6488
6489         * Don't use __restrict in older GCC's.  Affected file is
6490           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
6491
6492         * silc_net_localhost now attempts to reverse lookup the
6493           IP/hostname.  Affected file lib/silcutil/silcnet.c.
6494
6495         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
6496           command.  It can be used to gain founder privileges at
6497           the same time when joining the channel.
6498
6499           Defined that the SILC_NOTIFY_TYPE_KICKED send the
6500           kicker's client ID as well.  Updated protocol specs.
6501
6502           Defined that the server must send SILC_COMMAND_IDENTIFY
6503           command reply with error status to client who sent
6504           private message with invalid client ID.
6505
6506           Updated the protocol specification.
6507
6508         * Added silc_server_send_command_reply to send any
6509           command reply.  Affected file silcd/packet_send.[ch].
6510
6511         * Added silc_id_payload_encode_data to encode ID payload
6512           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
6513
6514         * The server now send IDENTIFY command reply with error
6515           status if client ID in private message is invalid.  Affected
6516           file silcd/packet_receive.c.
6517
6518         * Save the server key file with server's IP address in
6519           the filename instead of hostname.  The affected file is
6520           irssi/src/silc/core/client_ops.c.
6521
6522 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6523
6524         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
6525           A patch by Sunfall.
6526
6527         * Added libtool support for compiling shared objects in
6528           lib/silcsim.  Affected file configure.in.pre and
6529           lib/silcsim/Makefile.am.  Original patch by cras.
6530
6531 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6532
6533         * Pid file configuration, and server's config file fixes
6534           patch by toma.  Updated CREDITS file.
6535
6536 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6537
6538         * Fixed silc_client_channel_message to not try to decrypt
6539           the message twice if it resolved the destination client
6540           information.  This could cause of dropping one channel
6541           message.  Affected file lib/silcclient/client_channel.c.
6542
6543 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6544
6545         * Added silc_client_run_one into lib/silcclient/silcapi.h and
6546           lib/silcclient/client.c. This function is used when the SILC
6547           Client is run under some other scheduler, or event loop or
6548           main loop.  On GUI applications, for example this may be
6549           desired to used to run the client under the GUI application's
6550           main loop.  Typically the GUI application would register an
6551           idle task that calls this function multiple times in a second
6552           to quickly process the SILC specific data.
6553
6554 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6555
6556         * Fixed silc_server_drop() for dropping the supplementary
6557           groups as well, this could cause a security hole on some
6558           systems.
6559
6560 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6561
6562         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6563           johnny.
6564
6565         * Write PID file after dropping privileges.  Added -F option
6566           to run server on foreground.  A patch by debolaz.
6567           Affected files silcd/server.c, silcd/silcd.c.
6568
6569         * Fixed MOTD to return the MOTD file server name.  Affected
6570           file silcd/command.c.
6571
6572         * Added INFO command reply handling to the Irssi SILC Client.
6573           Affected file irssi/src/silc/core/client_ops.c.
6574
6575 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6576
6577         * Fixed the silc_idcache_list_* routines to really support
6578           the dynamic list.  Fixes a crash.  Affected file is
6579           lib/silccore/silcidcache.c.
6580
6581         * Fixed the LIST command reply to really call LIST command's
6582           pending callbacks.  Affected file silcd/command_reply.c.
6583
6584 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6585
6586         * Update conn->local_entry->nickname after giving NICK
6587           command.  Affected file lib/silcclient/command.c.
6588
6589 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6590
6591         * Added the [pid] option to the silcd configuration file
6592
6593           Affected files: serverconfig.[ch] and silcd.c
6594
6595 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6596
6597         * Save fingerprint in WHOIS command reply in server.
6598           Affected file silcd/command_reply.c.
6599
6600         * Fixed NICK commands pending callback registration.
6601           Affected file lib/silcclient/command.c.
6602
6603 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6604
6605         * Use ++server->cmd_ident when sending commands in server,
6606           instead of random number.  Affected file silcd/command.c.
6607
6608         * Fixed GETKEY command reply to call actually GETKEY pending
6609           command callbacks.  Affected file silcd/command_reply.c.
6610
6611         * A bit stricter check for nicknames.  Check for same nickname
6612           in NICK command also.  Affected file silcd/command.c.
6613
6614         * Do not call INFO command everytime client ID changes, only
6615           during first connecting.  Affected file lib/silcclient/client.c.
6616
6617         * Set the new nickname only after successful command reply for
6618           NICK command is returned by server.  Affected file
6619           lib/silcclient/command.c.
6620
6621         * Remove nicknames from nicklist during server_signoff notify.
6622           Should fix /NAMES bit more.  The affected file is
6623           irssi/src/silc/core/silc-channels.c.
6624
6625         * Added `fingerprint' field to the SilcIDListData in the
6626           silcd/idlist.h to hold the fingerprint of the client's
6627           public key.
6628
6629           Send the fingerprint of the client's public key in WHOIS
6630           command reply.
6631
6632           Affected files silcd/command.c, and silcd/idlist.[ch].
6633
6634         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6635           create fingerprint from given data.
6636
6637         * Show the fingerprint of the client's public key in WHOIS.
6638           Affected files irssi/src/module-formats.[ch] and
6639           irssi/src/silc/core/client_ops.c.
6640
6641         * Format the multiple same nicknames also during JOIN and
6642           NICK_CHANGE notifys.  Affected file is
6643           lib/silcclient/client_notify.c.
6644
6645         * Do not print error on screen for invalid private message
6646           payload since it can come if someone is sending private
6647           messages with wrong key.  Affected file
6648           lib/silccore/silcprivate.c.
6649
6650         * Fixed multiple concurrent /PING crash.  Affected file
6651           lib/silcclient/command.c.
6652
6653         * Changed the wrong ID encoding.  All IP addresses must be
6654           in MSB first order in encoded format.  They were encoded
6655           wrong and was in LSB format.  Affected files are
6656           silcd/serverid.c, lib/silcutil/silcutil.c.
6657
6658         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6659
6660         * Call the `connect' client operation through the scheduler
6661           in case of error.  Affected file lib/silcclient/client.c.
6662
6663         * Call the `failure' client operation even if the error
6664           occurred locally during a protocol.  Affected file is
6665           lib/silcclient/protocol.c.
6666
6667         * Added support of sending LIST command to router from normal
6668           server.  This way normal server can get list of all channels
6669           in the network too.  Fixed the channel list sending in the
6670           server too.  Affected files are silcd/command.c, and
6671           silcd/command_reply.[ch].
6672
6673         * Added silc_server_update_channels_by_server and
6674           silc_server_remove_channels_by_server.  They are used during
6675           disconnection of primary router and in backup router protocol.
6676           Affected file silcd/server_util.[ch], silcd/server.c and
6677           silcd/server_backup.c.
6678
6679         * Fixed channel adding to global list in IDENTIFY command
6680           reply in server.  Affected file silcd/command_reply.c.
6681
6682 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6683
6684         * If the incoming packet type is REKEY or REKEY_DONE process
6685           that packet always synchronously.  Fixes yet another MAC
6686           failed error on slow (dialup) connections.  Affected file
6687           lib/silcclient/client.c and silcd/server.c.
6688
6689 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6690
6691         * Call check_version SKE callback for initiator too.  Affected
6692           file lib/silcske/silcske.c.
6693
6694         * Implemented fix for security hole found in the SKE that was
6695           fixed in the specification few days back; the initiator's
6696           public key is now added to the HASH value computation.
6697           Added backwards support for the old way of doing it too, for
6698           old clients and old servers.  Affected file is
6699           lib/silcske/silcske.c.
6700
6701         * Enabled mutual authentication by default in SKE.  If initiator
6702           is not providing mutual authentication the responder will
6703           force it.  This will provide the proof of posession of the
6704           private key for responder.  The affected files are
6705           lib/silcclient/protocol.c and silcd/protocol.c.
6706
6707         * Do not cache anymore the server's public key during SKE.
6708           We do mutual authentication so the proof of posession of
6709           private key is done, and if the server is authenticated in
6710           conn auth protocol with public key we must have the public
6711           key already.  Affected file silcd/protocol.c.
6712
6713         * Added new global debug variable: silc_debug_hexdump.  If
6714           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6715           file lib/silcutil/silclog.[ch].
6716
6717         * Fixed compilation warning due to char * -> const char *.
6718           Affected files lib/silcutil/silcnet.h, and
6719           lib/silccore/silcauth.[ch].
6720
6721 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6722
6723         * Fixed CMODE command when new channel key was created.  If
6724           the creation failed the old key was removed.  Next time giving
6725           same command would crash the server since the old key was
6726           freed already.  Affected file silcd/command.c.
6727
6728         * Fixed the silc_server_announce_get_channels to not crash
6729           on reconnect.  Affected file silcd/server.c.
6730
6731 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6732
6733         * Added silc_log_set_debug_string function to set a regex
6734           string to match for debug output.  Only the function names,
6735           or filenames matching the given debug string is actually
6736           printed.  This way it is possible to filter out those debug
6737           strings that user is not interested in.
6738
6739           Fixed a bug in silc_string_regexify.
6740
6741           Affected files lib/silcutil/silclog.[ch], and
6742           lib/silcutil/unix/silcunixutil.c.
6743
6744         * Changed the -d options in both server and Irssi SILC client
6745           to take the debug string as argument.  Affected files
6746           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6747
6748 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6749
6750         * Added silc_hash_babbleprint to create a Bubble Babble
6751           Encoded fingerprint.  The encoding is developed by Antti
6752           Huima (draft-huima-babble-01.txt), and it creates human
6753           readable strings out of binary data.  Affected file
6754           lib/silccrypt/silchash.[ch].
6755
6756         * Print the babble print now in addition of fingerprint as well
6757           in Irssi SILC client.  Affected files are
6758           irssi/src/fe-common/silc/module-formats.[ch],
6759           irssi/src/fe-common/silc/core/client_ops.c.
6760
6761 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6762
6763         * Fixed a security problem found in SKE.  The initiator's
6764           public key too is now added to the HASH hash value creation
6765           which is signed by the responder to create the SIGN value.
6766           This will prevent anyone in the middle to lie to the responder
6767           about the initiator's public key.  If this is done now, the
6768           man in the middle will get caught.  Updated the protocol
6769           specification.
6770
6771 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6772
6773         * Better installation directory handling.  Configure module
6774           paths and other paths automatically to example_silc* files
6775           in doc/.  A patch by toma.
6776
6777         * Fixed compiler warning from MPI library, and from SILC RNG.
6778           A patch by johnny.
6779
6780         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6781           It can be configured with ./configure.  A patch by toma.
6782
6783 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6784
6785         * Find correct make to use in prepare-clean.  A patch by
6786           toma.  Affected file prepare-clean.
6787
6788 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6789
6790         * Added irssi variables use_auto_addr, auto_bind_ip,
6791           auto_bind_port and auto_public_ip.
6792
6793         * Changed the interface for silc_client_send_key_agreement
6794           in lib/silcclient/silcapi.h
6795
6796         Affected files:
6797
6798          irssi/src/silc/core/silc-core.c
6799          irssi/config
6800          lib/silcclient/silcapi.h
6801          irssi/src/silc/core/silc-channels.c
6802          lib/silcclient/client_keyagr.c
6803          irssi/docs/help/key
6804
6805 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6806
6807         * Added silc_pkcs_public_key_compare to compare two
6808           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6809
6810         * Check that the client who set the founder mode on the
6811           channel is the same client that is giving the founder
6812           mode to itself.  It is done by comparing the saved public
6813           key (it is saved even in the authentication is passphrase).
6814           Affected file silcd/command.c.
6815
6816 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6817
6818         * Do not process packet for disconnected socket connection.
6819           Affected file lib/silccore/silcpacket.c.
6820
6821         * Process the DISCONNECT packet through scheduler in the
6822           client library.  Affected file lib/silcclient/client.c.
6823
6824         * Fixed the silc_client_packet_parse to not to increase
6825           the packet sequence number if the conn->sock and the
6826           current socket connection is not same.  This can happen
6827           for example during key agreement when the conn includes
6828           multiple socket connections (listeners).  Affected file
6829           lib/silcclient/client.c.
6830
6831         * The sender of the file transfer request now provides also
6832           the pointer (listener) for the key exchange protocol.  If
6833           the listener cannot be created then it sends empty key
6834           agreement and lets the receiver provide the listener.
6835
6836           Added `local_ip' and `local_port' arguments to the
6837           silc_client_file_send.  If they are provided they are used,
6838           if not then it will attempt to find local IP address, if
6839           not found or bind fails then the remote client will provide
6840           the listener.
6841
6842           Affected files are lib/silcclient/client_ftp.c and
6843           lib/silcclient/silcapi.h.
6844
6845         * Extended the FILE SEND command to support defining the
6846           local IP and port for key exchange listener.  They are
6847           optional.  Affected file irssi/src/silc/core/silc-servers.c.
6848
6849 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6850
6851         * Defined to WHOIS command reply the sending of fingerprint
6852           of the client's public key (if the proof of posession of the
6853           corresponding private key is verified by the server).
6854           Updated to the protocol specification.
6855
6856         * Added support of receiving the client's public key's
6857           fingerprint in command reply in client library.  Affected
6858           file is lib/silcclient/command_reply.c, and
6859           lib/silcclient/idlist.[ch].
6860
6861 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6862
6863         * Do not send over 128 chars long nickname to the server
6864           in NICK command.  Affected file lib/silcclient/command.c.
6865
6866         * Do not send over 256 chars long channel names to the server
6867           in JOIN command.  Affected file lib/silcclient/command.c.
6868
6869 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6870
6871         * Assure that silc_server_close_connection cannot be called
6872           twice for same socket context.  Affected file is
6873           silcd/server.c.
6874
6875 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6876
6877         * Send error message to application if opening file for
6878           writing during file transfer fails.  Affected file is
6879           lib/silcclient/client_ftp.c.
6880
6881           Remove all file transfer sessions for a client that we're
6882           removing from ID cache.
6883
6884           Affected file is lib/silcclient/client_ftp.c.
6885
6886         * Fixed silc_net_addr2bin to return correct address.  Affected
6887           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6888
6889         * Fixed file transfer session removing on signoff notify.
6890           Affected file irssi/src/silc/core/silc-servers.c.
6891
6892         * Added the SilcClientFileError to be returned in the monitor
6893           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
6894           Affected file lib/silcclient/silcapi.h.
6895
6896 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6897
6898         * Fixed a crash in silc_client_ftp_free_sessions and
6899           silc_client_ftp_session_free_client.  Affected file
6900           lib/silcclient/client_ftp.c.
6901
6902         * Added `disabled' field in the SilcChannelEntry in the server
6903           to indicate if the server entry is disabled.  Affected file
6904           silcd/idlist.h, silcd/command[_reply].c.
6905
6906         * SILC server adds now /var/run/silcd.pid everytime it is
6907           started.  Affected file silcd/silcd.c.
6908
6909         * Added silc_server_packet_send_clients to send a packet to
6910           the provided table of client entries.  Affected file
6911           silcd/packet_send.[ch].
6912
6913         * Fixed a crash in client resolving in client_prvmsg.c in
6914           client library.  Affected file lib/silcclient/client_prvmsg.c.
6915
6916         * Do not actually remove the client directly from ID cache
6917           during SERVER_SIGNOFF, but invalidate it.  This way we
6918           preserve the WHOWAS info for the client.  Affected file
6919           silcd/server_util.c.
6920
6921         * Fixed SERVER_SIGNOFF notify handling in the server.  The
6922           server is now able to process incoming SERVER_SIGNOFF notify
6923           for a server that it doesn't even know about.  It will remove
6924           the clients provided in the notify.  Affected file
6925           silcd/packet_receive.c.
6926
6927         * Check for partial packet in data queue after every packet that
6928           was found from the queue.  Return and wait for more data if
6929           there is partial data in queue.  Affected file is
6930           lib/silccore/silcpacket.c.
6931
6932 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6933
6934         * Added SilcClietFileError enum to indicate error in
6935           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
6936           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
6937           Affected files lib/silcclient/silcapi.h and
6938           lib/silcclient/client_ftp.c.
6939
6940         * Check that newsize in silc_buffer_realloc is larger than
6941           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
6942
6943         * Added better monitor of file transfers.  It now monitors
6944           key agreement protocol during the file transfer too.  Added
6945           error reporting too.  Affected files
6946           irssi/src/silc/core/silc-servers.c,
6947           irssi/src/fe-common/silc/module-formats.[ch].
6948
6949         * Wrote a help file for FILE command.
6950
6951         * Added silc_rng_global_get_byte_fast to get not-so-secure
6952           random data as fast as possible.  Random data is read from
6953           /dev/urandom if available and from the SILC RNG if not
6954           available.  It is used in padding generation.  Affected file
6955           lib/silccrypt/silcrng.[ch].
6956
6957         * All packets in client library are now processed synchronously.
6958           Optimized packet processing a lot.  Affected file
6959           lib/silcclient/client.c.
6960
6961         * All server connection packets are processing synchronously
6962           now in server, to optimize packet processing.  Affected file
6963           silcd/server.c.
6964
6965         * Include files are installed now only in Toolkit distribution
6966           if make install is given.  Affected files: all Makefile.am's.
6967
6968 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6969
6970         * Assure that silc_client_notify_by_server_resolve does not
6971           resolve the client information multiple times.  If it cannot
6972           be found by the first it cannot be found at all.  Affected
6973           file lib/silcclient/client_notify.c.
6974
6975         * Fixed WHOWAS command reply calling.  Affected file
6976           lib/silcclient/command_reply.c.
6977
6978         * Removed all references to silc_idlist_get_client from the
6979           Irssi SILC client since that call is internal call used by
6980           the library.  The Irssi SILC client will use now client
6981           retrieval functions found in silcapi.h.
6982
6983         * Fixed a bug in resolving nickname info before sending
6984           private message.  It used freed memory.  Affected file
6985           irssi/src/silc/core/silc-servers.c.
6986
6987 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6988
6989         * Assure my_channels statistics cannot go negative in server.
6990           Affected files silcd/server.c, silcd/server_util.c.
6991
6992 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6993
6994         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
6995
6996 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6997
6998         * Win32 Toolkit changes.  Affected files
6999           win32/silc.dsw, win32/libsilc/libsilc.def,
7000           win32/libsilcclient/libsilc.def,
7001           lib/silcutil/silcutil.c, and
7002           lib/sftp/sftp_fs_memory.c.
7003
7004 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7005
7006         * Added silc_net_localip to return local host's IP address.
7007           Affected file lib/silcutil/silcnet.[ch].
7008
7009         * If key exchange or rekey protocol is active for a connection
7010           parse all packets syncronously since there might be packets
7011           in packet queue that we are not able to process without first
7012           processing packets before them.  Affected file silcd/server,
7013           lib/silcclient/client.c.
7014
7015         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
7016           whether library should continue processing the packet.
7017           Affected file lib/silccore/silcpacket.h.
7018
7019         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
7020           SilcSFTPMonitorData to SFTP server to monitor various
7021           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
7022           lib/silcsftp/sftp_server.c.
7023
7024         * Added silc_file_size to return file size.  Affected file
7025           lib/silcutil/silcutil.[ch].
7026
7027         * Implemented the file transfer support for the client library.
7028           Added preliminary support for simple client to client one-file
7029           transmission.  Affected file lib/silcclient/client_ftp.c,
7030           lib/silccilent/client.[ch].
7031
7032         * Added new local command FILE to the Irssi SILC Client.
7033           It is used to perform the file transfer.  It has subcommands
7034           SEND, RECEIVE, SHOW and CLOSE.  Affected files
7035           irssi/src/silc/core/client_ops.c,
7036           irssi/src/silc/core/silc-server.[ch].
7037
7038 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7039
7040         * Relay the SILC_PACKET_FTP in the server.  Affected files
7041           silcd/server.c and silcd/packet_receive.c.
7042
7043 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7044
7045         * Renamed silc_file_read and silc_file_write to functions
7046           silc_file_readfile and silc_file_writefile.  Added function
7047           silc_file_open and silc_file_close.  Affected files
7048           lib/silcutil/silcutil.[ch].
7049
7050 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7051
7052         * Resolve the client info when received private message or
7053           channel message for a client which nickname we don't know.
7054           Affected files lib/silcclient/client_prvmsg.c and
7055           lib/silcclient/client_channel.c.
7056
7057         * Do not crash in /KEY if client is not connected.  Affected
7058           file irssi/src/silc/core/silc-channels.c.
7059
7060         * Added SilcClientStatus field to the SilcClientEntry in the
7061           lib/silcclient/idlist.h.
7062
7063           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
7064           is incomplete and is being resolved, it won't be resolved
7065           twice.
7066
7067           Make sure also that USERS command reply does not resolve
7068           twice information.  Affected file is
7069           lib/silcclient/command_reply.c.
7070
7071           Make sure that silc_client_get_clients_by_list does not
7072           resolve twice same information.
7073
7074         * Check for valid client->id in the silc_server_free_client_data.
7075           Affected file silcd/server.c.
7076
7077         * Fixed /GETKEY nick@server not to crash if the server entry
7078           is not found.  Affected file lib/silcclient/command.c.
7079
7080         * Fixed the silc_server_check_cmode_rights to check the
7081           requested modes correctly.  Affected file silcd/command.c.
7082
7083 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7084
7085         * Better checks for non-printable chars in nick added.
7086           Affected file silcd/command.c.
7087
7088 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7089
7090         * Call the silc_server_udpate_servers_by_server in the
7091           primary router that comes back online in the backup resuming
7092           protocol.  Otherwise it routes packets wrong.  Affected file
7093           silcd/server_util.[ch], silcd/server_backup.c.
7094
7095 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7096
7097         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
7098           lib/silcutil/silcbuffmt.[ch].
7099
7100         * Redefined the SILC packet header to include the padding
7101           length.  Affected file lib/silccore/silcpacket.[ch].
7102
7103         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
7104           length for maximum padding up to 128 bytes).  Affected
7105           file lib/silccore/silcpacket.h.
7106
7107         * Removed all backwards support for old 0.5.x MAC thingies.
7108           The SILC packet header change makes it impossible to be
7109           backwards compatible.
7110
7111         * Send the ENDING packet with timeout in the backup resuming
7112           protocol.  This is to assure that all routers has connected
7113           to the primary router.  Affected file silcd/server_backup.c.
7114
7115         * Changed the RNG to take the first IV from random data.  It
7116           used to take it from zero actually.  Changed the RNG also
7117           to use /dev/urandom during session.  /dev/random is used
7118           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
7119
7120 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7121
7122         * Changed the SILC packet header to have the first two bytes
7123           (the packet length) encrypted.  Affected files aroung the
7124           code tree, lib/silccore/silcpacket.[ch].  Removed the
7125           SilcPacketCheckDecrypt callback.  It is not needed anymore
7126           since the silc_packet_receive_process will determine now
7127           whether the packet is normal or special.
7128
7129         * Implemented the unidirectional MAC keys.  Affected files
7130           lib/silcske/silcske.c, silcd/protocol.c and
7131           lib/silcclient/protocol.c.
7132
7133         * Implemented the packet sequence number to the MAC computation.
7134           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
7135           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
7136           lib/silcclient/protocol.c.
7137
7138 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7139
7140         * Allow backup router to announce servers.  All servers
7141           announced by backup router are added to the global list
7142           automatically.  Update hte server's socket to our primary
7143           router also when backup router announces a server.
7144           Affected file silcd/packet_receive.c.
7145
7146         * Do not update the client->router in the function
7147           silc_server_udpate_clients_by_server if the client is on
7148           global list.  We might fail to find any specific server
7149           for locally connected clients and local cell clients.  They
7150           should still use the `from' and not `to' as client->router.
7151           This fixes backup router resuming protocol.  Affected file
7152           silcd/server_util.c.
7153
7154         * Decrease channel statistics count only if the channel
7155           deletion worked.  Affected files are silcd/server.c and
7156           silcd/server_util.c.
7157
7158         * Added silc_server_update_servers_by_server to update origin
7159           of all server entries.  Used during backup router protocol.
7160           Affected files silcd/server_util.[ch], silcd/server.c. and
7161           silcd/backup_router.c.
7162
7163         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
7164           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
7165           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
7166           lib/silccrypt/silchmac.c.
7167
7168 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7169
7170         * Assure that router cannot reroute the same channel message
7171           to the sender.  Affected file silcd/packet_receive.c.
7172
7173 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7174
7175         * Made better checks that the channel message is not sent
7176           to the router it came from.  Affected file is
7177           silcd/packet_send.c.  Fixed memory leak too.
7178
7179         * Announce informations for incoming router connection, but
7180           only after checking if it is replaced by backup router.
7181           Affected file silcd/packet_receive.c.
7182
7183 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7184
7185         * Fixed the backup resuming protocol to work in multiple
7186           router environment.  Affected file silcd/server_backup.c.
7187
7188         * Route packet only to one router in the function
7189           silc_server_packet_send_to_channel.  Affected file is
7190           silcd/packet_send.c.
7191
7192         * Fixed silc_server_send_notify_dest to set the broadcast
7193           flag.  Fixed the silc_server_send_notify_topic to actually
7194           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
7195           Affected file silcd/packet_send.c.
7196
7197         * Changed the SFTP Filesystem interface.  Changed the
7198           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
7199           the filesystem operation function.  The SilcSFTPFilesystem
7200           is now a context that is allocated by all filesystem allocation
7201           functions and it already includes the operations structure
7202           and filesystem specific context.  It is given as argument
7203           now to the silc_sftp_server_start.  This made the interface
7204           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
7205           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
7206
7207 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7208
7209         * Changed the backup router adding and getting interfaces
7210           in the server.  The router that will be replaced by the
7211           specified backup router is now sent as argument.  Affected
7212           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
7213           silcd/server.c.
7214
7215         * Added silc_net_addr2bin_ne to return the binary form of
7216           the IP address in network byte order.  Affected files
7217           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
7218
7219 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7220
7221         * Check for existing server ID in silc_server_new_server
7222           and in silc_server_connect_to_router_final and remove the
7223           old entry if it exists.  Affected file silcd/packet_receive.c,
7224           silcd/server.c.
7225
7226         * Send the channel message always to only one router, either
7227           in upstream or downstream.  Affected file is
7228           silcd/packet_send.c.
7229
7230 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7231
7232         * Wrote the definition of the backup resuming protocol to the
7233           protocol specification.
7234
7235         * Removed one redundant channel key generation from normal
7236           server during joining procedure.  Removed one redundant
7237           channel key sending from server to router during joining
7238           procedure.  Affected file silcd/command.c.
7239
7240         * Made minor bugfixes to the backup router resuming protocol.
7241           Affected file silcd/server_backup.c, server.c.
7242
7243 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7244
7245         * Added --disable-asm configuration option.  Affected files
7246           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
7247           by salo.
7248
7249         * Implemented the backup resuming protocol that is used to
7250           resume the primary router position in the cell after the
7251           primary router comes back online.  Affected files
7252           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
7253           and silcd/server_util.[ch].
7254
7255 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7256
7257         * Sleep two (2) seconds after sending QUIT command to server.
7258           Affected file lib/silcclient/command.c.
7259
7260         * Assure that if outgoing data buffer is pending do not force
7261           send any data.  Affected file silcd/packet_send.c.
7262
7263         * Assure that if outgoing data buffer is pending do not force
7264           send any data.  Affected file lib/silcclient/client.c.
7265
7266         * Implemented the backup router support when the primary router
7267           goes down.  The servers and routers can now use the backup
7268           router as new primary router without loosing connectivity.
7269
7270 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7271
7272         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
7273           in the server to indicate disabled entry.  All data read
7274           from the connection will be ignored and no data is sent
7275           for entry that is disabled.  Affected files are
7276           silcd/idlist.h, silcd/server.c.
7277
7278 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7279
7280         * Created SFTP client and server test programs in the
7281           lib/silcsftp/tests directory.
7282
7283 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
7284
7285         * Implemented memory filesystem (virtual filesystem) for
7286           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
7287           sftp_fs_memory.c.
7288
7289 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7290
7291         * Implemented the SFTP (SSH File Transfer Protocol) to the
7292           lib/silcsftp.  It includes SFTP client and SFTP server
7293           implementations.
7294
7295 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7296
7297         * Moved lib/silccore/silcprotocol.[ch] to the
7298           lib/silcutil library.
7299
7300         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
7301           take variable argument list pointer as argument.  Affected
7302           file lib/silcutil/silcbuffmt.[ch].
7303
7304         * Added silc_buffer_set function that is used to set data
7305           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
7306           Affected file lib/silcutil/silcbuffer.h.
7307
7308         * Changed various routines in the core library to use the new
7309           silc_buffer_set instead of allocating new buffer only for
7310           temporary purposes.
7311
7312         * Added 64-bit value formatting and unformatting support to the
7313           silc_buffer_[un]format routines.  Affected file is
7314           lib/silcutil/silcbuffmt.[ch].
7315
7316           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
7317           to includes/bitmove.h.
7318
7319 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7320
7321         * Fixed channel user mode saving in client library.  Affected
7322           file lib/silcclient/command[_reply].c.
7323
7324 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7325
7326         * Defined the file transfer to the SILC Protocol.  Added
7327           new packet type SILC_PACKET_FTP and defined File Transfer
7328           Payload.  The mandatory file transfer protocol is SFTP
7329           (SSH File Transfer Protocol).  Affected file in addition
7330           of the internet draft is lib/silccore/silcpacket.h.
7331
7332         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
7333           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
7334           is used as part of backup router protocol when the primary
7335           router of the cell is back online and wishes to resume
7336           the position as primary router.
7337
7338         * Redefined the MAC generation keys in the protocol.  The
7339           same key is not used anymore in both direction.  Both
7340           direction will now use different keys for sending and
7341           receiving.  This fixes a potential security flaw.  This
7342           change causes incompatibilities in the protocol.
7343
7344         * Redefined also the MAC computation from the packet.
7345           An packet sequence number is now added to the MAC
7346           computation.  This prevents possible replay attacks against
7347           the protocol.  This change too causes incompatibilities
7348           in the protocol.
7349
7350           Added `sequence' field to the SilcPacketContext to hold
7351           the current sequence number for the packet.
7352
7353 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7354
7355         * Added `created' field to the SilcIDListData in the file
7356           silcd/idlist.h to indicate the time when the entry was
7357           created.
7358
7359         * Added `created' field to the SilcChannelEntry too.  Affected
7360           file silcd/idlist.h.
7361
7362         * Added `creation_time' aguments to all the announcement functions
7363           in the server.  If it is provided then only the entries that
7364           was created after the provided time frame are actually
7365           announced.  Affected file silcd/server.[ch].
7366
7367         * The protocol says that the Channel ID's IP address must be
7368           based on the router's IP address.  Added check for this in
7369           the silc_server_new_channel when processing incoming New Channel
7370           Payload.  Affected file silcd/packet_receive.c.
7371
7372         * Print out the correct version with --version in SILC client.
7373           Affected file irssi/src/silc/core/silc-core.c.
7374
7375 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7376
7377         * Fixed WHOWAS command to check for completnes of the client
7378           entry always, not just when the command is coming from client.
7379           Affected file silcd/command.c.
7380
7381         * Added new function silc_server_packet_queue_purge to purge the
7382           outgoing data queue to the network.  After the function returns
7383           it is guaranteed that the outgoing packet queue is empty.
7384           Affected file silcd/packet_send.[ch].
7385
7386         * Purge the outgoing packet queue in the rekey protocol's final
7387           callback to assure that all rekey packets go to the network
7388           before quitting the protocol.  Affected file silcd/server.c.
7389
7390         * Added silc_client_packet_queue_parse as similar function as
7391           in server to the client library.  The affected file is
7392           lib/silcclient/client.c.
7393
7394 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7395
7396         * Splitted silcd/server.c and created silcd/server_util.[ch]
7397           for utility functions.
7398
7399         * Added new socket flag SILC_SF_DISABLED to indicate that the
7400           connection is open but nothing can be sent to or received from
7401           the connection.  Affected file lib/silcutil/silsockconn.[ch].
7402           The checking for disabled socket is checked in the low level
7403           silc_socket_write and silc_socket_read functions.
7404
7405 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7406
7407         * Allow only nicknames and channel names that fits into the
7408           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
7409
7410 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7411
7412         * When processing JOIN command reply in server check that if
7413           the channel exists in our global list we'll move it the local
7414           list.  Affected file silcd/command_reply.c.
7415
7416         * Fixed the check whether client is joined on the channel already
7417           in JOIN command.  Affected file lib/silcclient/command.c.
7418
7419         * Fixed the JOIN command reply to check whether the channel
7420           already exists.  Affected file lib/silcclient/command_reply.c.
7421
7422 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7423
7424         * Added silc_ske_status_string to map the SKE error numbers
7425           to readable strings.  The affected files are
7426           lib/silcske/silcske[_status].[ch].
7427
7428 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7429
7430         * Do not show the private channels on the WHOIS channel list
7431           as it is not allowed by the protocol.  The affected file is
7432           silcd/server.c.
7433
7434 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7435
7436         * Assure that the packet length digged from the actual packet
7437           is something sensible in the silc_packet_decrypt_rest_special
7438           in lib/silccrypt/silcpacket.c.
7439
7440         * Free and NULL the allocated pointer in silc_hmac_alloc if
7441           the HMAC allocation fails.  The affected file is
7442           lib/silccrypt/silchmac.c.
7443
7444         * Print the selected security properties to the log files in
7445           the server.  Affected file silcd/protocol.c.
7446
7447         * Add SKE's reference counter even if calling the completion
7448           callback manually.  Otherwise it goes negative, although it
7449           does not cause any problems.  The affected file is
7450           lib/silcske/silcske.c.
7451
7452         * Remove the client entry with short timeout after giving the
7453           KILL command.  Affected file lib/silcclient/command.c.
7454
7455         * Fixed to send error reply in WHOIS and IDENTIFY commands in
7456           case all found clients are already disconnected (WHOWAS would
7457           found them) in the server.  Affected file silcd/command.c.
7458
7459         * Update the last_receive (time of last data received) to be
7460           updated only when received private or channel message so that
7461           the idle time showed in WHOIS makes more sense.
7462
7463         * Added boolean field `valid' in to the SilcClientEntry in the
7464           client library to indicate whether the entry is valid or not.
7465           This fixes the nickname change bug on channel when changing
7466           the nickname to be same than the old (like nick to Nick) the
7467           nickname formatter doesn't set the new nick anymore to Nick@host.
7468           Affected file lib/silcclient/idlist.[ch].
7469
7470         * Now actually fixed the nickname changing on disconnection.
7471           Added new function silc_change_nick to the Irssi SILC Client.
7472           Affected file irssi/src/silc/core/client_ops.c,
7473           irssi/src/silc/core/silc-nicklist.[ch].
7474
7475 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7476
7477         * Check that the public key exists in the GETKEY command before
7478           trying to encode it.  Affected file silcd/command.c.
7479
7480         * Print some notifications on received public keys with GETKEY
7481           command in the Irssi SILC Client.  Affected files are
7482           irssi/src/fe-common/silc/module-formats.[ch],
7483           irssi/src/silc/core/client_ops.c.
7484
7485         * Use IDENTIFY command to resolve the server information in the
7486           GETKEY command instead of INFO command.  Affected file
7487           lib/silcclient/command.c.
7488
7489         * All command reply functions in the client library now calls
7490           the pending command reply callbacks even if an error has
7491           occurred.  The server has done this a long time and now it was
7492           time to move the client library to this as well.  Now all
7493           errors can be delivered back to the pending command reply
7494           callbacks if necessary.  Affected files are
7495           lib/silcclient/command[_reply].[ch].
7496
7497         * Change the nickname on disconnection back to the username
7498           because in reconnect the server will enforce it to it anyway.
7499           Affected file irssi/src/silc/core/silc-servers.c.
7500
7501         * Fixed a config file parsing bug in the Irssi SILC client.
7502           Affected file irssi/src/silc/core/clientconfig.c.
7503
7504 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7505
7506         * When printing the channel mode on JOIN, verify that the
7507           channel key and channel's HMAC are valid.  Affected file
7508           irssi/src/silc/core/client_ops.c.
7509
7510 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7511
7512         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
7513           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
7514           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
7515
7516         * Removed channel key rekey task deleting from the function
7517           silc_server_save_channel_key.  Affected file silcd/server.c.
7518           Added explicit timeout task context instead that is used to
7519           delete the task if we are registering a new task before the
7520           new task has elapsed.
7521
7522         * When channel key rekey occurs the client library now saves
7523           the old channel key for a short period of time (10 seconds) and
7524           is able to use it in case some is still sending channel
7525           messages encrypted with the old key after the rekey.  Affected
7526           file lib/silcclient/[idlist.h|client_channel.c].
7527
7528 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7529
7530         * Added check to the silc_server_new_id_real to not accept
7531           new ID if it is the sender's own ID.  Affected file is
7532           silcd/packet_receive.c.
7533
7534         * Assure that we do not announce ourself or the one we've
7535           sending our announcements when we're router and are announcing
7536           servers to our primary router.  Affected file silcd/server.c.
7537
7538         * Fixed silc_server_command_identify_check_client to assemble
7539           correct WHOIS packet.  It send corrupted WHOIS packet and
7540           caused problem with router to router connections.  Affected
7541           file silcd/command.c.
7542
7543           Fixed also silc_server_command_whois_check the same way
7544           as for the IDENTIFY command.
7545
7546         * Added new SilcIDListStatus to the server in the SilcIDListData
7547           structure.   The status now includes the current status of
7548           the entry (like registered, resolved etc.).  Affected file
7549           silcd/idlist.[ch].  Defined a bunch of different status types
7550           as well.  This replaced the old boolean registered field as well.
7551
7552           Added resolve_cmd_ident field to the SilcClientEntry structure
7553           too so that if the entry is for example being resolved so
7554           another command may attach to the same pending command reply
7555           without requiring to resolve the same entry again.  This concept
7556           should optimize the WHOIS and the IDENTIFY resolving under
7557           heavy load by taking away unnecessary resolving for entries
7558           that are being resolved already.
7559
7560           Added support for adding multiple pending commands for one
7561           command idenfier.  Affected file silcd/command[_reply].[ch].
7562
7563         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7564           before deleting the data.  Otherwise the hash table will have
7565           freed data in comparison functions.  Affected file is
7566           silcd/command_reply.c.
7567
7568         * Fixed silc_idlist_replace_client_id to add the new entry to
7569           the cache with NULL nickname.  Otherwise there will be invalid
7570           memory as the nickname after the nickname is freed.  Affected
7571           file silcd/packet_receive.c.
7572
7573         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7574           saved into wrong slots because the previous number of entries
7575           was not taken into account.  Affected file silcd/idlist.c.
7576           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7577
7578         * If we are router and we receive JOIN notify to a channel that
7579           does not have any users then notified client is marked as the
7580           channel founder, as it is it.  The affected file is
7581           silcd/packet_receive.c
7582
7583         * Added to the extended hash table API's table_del_*ext functions
7584           the destructor as argument too, so that the caller can decide
7585           which destructor to use or whether to use destructor at all.
7586           Affected file lib/silcutil/silchashtable.[ch].
7587
7588         * Fixed ID Cache purging.  It actually deleted the entries from
7589           the hash table after the data was freed.  The hash table ended
7590           up comparing freed memory.  The affected file is
7591           lib/silccore/silcidcache.c.
7592
7593 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7594
7595         * Fixed Irssi SILC client's KILL command's HELP syntax.
7596
7597         * The USERS command now resolves the detailed user information
7598           if the userinfo field is missing.  Affected file is
7599           lib/silcclient/command_reply.c.
7600
7601         * Do not print error in silc_file_read if the read file does
7602           not exist.  Just silently return NULL.  Affected file is
7603           lib/silcutil/silcutil.c.
7604
7605         * Fixed the silc_log_output to not wine about NULL filename
7606           and to not create some bogus " " filename.  Affected file is
7607           lib/silcutil/silclog.c.
7608
7609 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7610
7611         * Fixed various printing bugs on the user interface in the
7612           Irssi SILC Client.  Minor changes that were forgotten from
7613           the release.
7614
7615 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7616
7617         * Fixed the configure.in.pre and the compilation and distribution
7618           environment to support the new autoconf 2.52.  That version is
7619           now required to compile the CVS trunk.
7620
7621 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7622
7623         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7624           to generally parse user@fqdn format strings.  Affected file
7625           lib/silcutil/silcutil.c.
7626
7627         * Added nickname_format and nickname_force_format fields to the
7628           SilcClientParams structure.  The first one defines the format
7629           for the nicknames that the library will enforce if the receives
7630           multiple same nicknames.  The second one is boolean value and
7631           can be used to force the library to always enforce the format
7632           to the nicknames regardles whether there are multiple nicknames
7633           or not.  This configurable formatting was employed to flexibly
7634           support accessing multiple nicknames from the user interface.
7635           The userinterface can now set the nicknames to what ever format
7636           they prefer.  Affected file lib/silcclient/silcapi.h.
7637
7638           Added function silc_client_nickname_format to the file
7639           lib/silcclient/idlist.c.  It performs the nickname formatting.
7640
7641           Added new field `hostname´ to the SilcClientEntry context.
7642           It holds the hostname of the client.  Affected file is
7643           lib/silcclient/idlist.h.
7644
7645         * Irssi SILC Client sets the nicknames in nick@hostn format.
7646           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7647           irssi/src/silc/core/silc-core.c.
7648
7649           The WHOIS printing now also shows both the real nickname and
7650           the formatted nickname so that user knows how to access the
7651           user if there are multiple same nicknames cached.  Affected
7652           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7653           printing formatting too to take the hostname now as a separate
7654           argument.  The Affected file is
7655           irssi/src/fe-common/silc/modules-formats.[ch].
7656
7657         * Changed the silc_client_get_clients_local to accept the formatted
7658           nickname as argument.  It accepts the real nickname too but the
7659           formatted nickname can be used to find the true entry from
7660           multiple entries.  Affected file lib/silcclient/silcapi.h and
7661           lib/silcclient/idlist.c.
7662
7663         * Added nickname_format_parse field to the SilcClientParams.
7664           It is a callback function provided by the application to parse
7665           the nickname out of the formatted nickname string. The library
7666           calls it to get the nickname from the formatted string. Since
7667           the application generally knows better the format of the nickname
7668           string it parses it instead of the library, even though library
7669           encodes the formatted string.  If the callback function is not
7670           provided then the library will use the string as is.  The
7671           affected file is lib/silcclient/silcapi.h.
7672
7673         * All the nickname strings passed to the client library in
7674           commands are now expected to be formatted nickname strings.
7675           If the command does not support the formatted nickname string
7676           it will assume that the sent string is the actual nickname.
7677           Affected file lib/silcclient/command.c.
7678
7679 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7680
7681         * Added public key authentication support to OPER and SILCOPER
7682           commands in the client library.  Affected file is
7683           lib/silcclient/command.c.
7684
7685 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7686
7687         * Changed the get_auth_methdod client operation to be asynchronous.
7688           It can be async if the application resolves the authentication
7689           method from the server during the negotiation.  Added new
7690           SilcGetAuthMeth completion callback that the application will
7691           call after resolving the authentication method.
7692
7693           Added function silc_client_request_authentication_method that
7694           the application can use to resolve the authentication method
7695           from the server.  Added also SilcConnectionAuthRequest callback
7696           that the library will call after the server has replied.  The
7697           application can call this function if it does not know the
7698           current authentication method.
7699
7700           Affected files are lib/silcclient/client.c and
7701           lib/silcclient/silcapi.h.
7702
7703         * The Irssi SILC client now automatically resolves the authentication
7704           method incase any configuration information is not present (and
7705           currently there never is).  The affected file is
7706           irssi/src/silc/core/client_ops.c.
7707
7708         * Fixed public key authentication from the client library.
7709           Affected file lib/silcclient/protocol.c.  Changed also the
7710           protocol specification about the public key authentication in
7711           the connection authentication protocol.  The actual data to be
7712           signed is now computed with a hash function before signing.
7713
7714         * Fixed the public key authentication from the server as well.
7715           Affected file silcd/protocol.c.
7716
7717         * Removed the mlock()'s from the memory allocation routines.
7718           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7719           not check anymore for the mlock().  Affected file is
7720           configure.in.pre.
7721
7722         * Fixed USERS command in server to allow the execution of the
7723           command for private and secret channels if the client sending
7724           the command is on the channel.  Affected file silcd/command.c.
7725
7726         * Fixed silc_client_get_clients_local to return the clients
7727           count correctly.  It could return wrong value.  Affected file
7728           lib/silcclient/idlist.c.
7729
7730 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7731
7732         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7733           types.  The assembler optimizations seemed not to like 64-bit
7734           data types.  The assmebler optimizations thus are now enabled
7735           also for BSD systems as opposed to only enable them for Linux.
7736
7737         * Do not check for threads at all on BSD systems.  Affected
7738           file configure.in.pre.
7739
7740         * Removed -n and -h options from the Irssi SILC Client since
7741           they are not used in silc.
7742
7743         * Fixed the prime generation to assure that the first digit
7744           of the generated random number is not zero since our conversion
7745           routines does not like number strings that starts with zero
7746           digit.  If zero digit is seen the random number is regenerated.
7747           This caused some corrupted RSA keys when the zero first digit
7748           was met.  Affected file lib/silcmath/silcprimegen.c.
7749
7750 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7751
7752         * Fixed WIN32 configuration in the ./configure script.
7753           Fixed to include xti.h on environments that has it.
7754           Patches by Carsten Ilchmann and andrew.
7755
7756 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7757
7758         * Changed the silc_id_create_client_id to be collision
7759           resistant.  It is now assured that there cannot be created
7760           two same client ID's.  I suspect that some weird bugs in
7761           the server were actually caused by duplicate Client IDs.
7762           Affected file silcd/serverid.[ch].  A router receiving
7763           new ID now also assures and informs the sending server
7764           if the ID caused collision.
7765
7766         * Changed the silc_id_create_channel_id to also assure that
7767           there are no collisions.
7768
7769 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7770
7771         * Statement about ignoring the Mutual Authentication flag when
7772           performing rekey with PFS was a bit misleading.  It is ignored
7773           if it was set in the initial negotiation, it cannot be even
7774           set in the rekey.  Fixed in the ke-auth draft.  Started the
7775           new versions of the protocol drafts in the doc/.
7776
7777 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7778
7779         * Fixed a bug in silc_client_command_identify_save when saving
7780           new channel information.  The channel name was no duplicated
7781           and caused crash on exit.  Affected file is
7782           lib/silcclient/command_reply.c.
7783
7784 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7785
7786         * Fixed the getkey command handling in the server.  Send just
7787           empty OK reply to the sender if the key could not be fetched
7788           (but everything else was ok, like the key just was not available).
7789           Changed the public key parameter to optional in the protocol
7790           specs so that empty OK reply can be sent.  Affected file
7791           silcd/command.c.
7792
7793           Added a message to Irssi SILC client to tell to user if the
7794           server did not return a public key.
7795
7796 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7797
7798         * Fixed a channel key regeneration bug.  It registered new
7799           timeout tasks exponentially until all system resources were
7800           used.  Affected file silcd/server.c.
7801
7802 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7803
7804         * Added the SILC Document generator to the scripts/silcdoc.
7805           It can be used to generate the Toolkit Reference Manual out
7806           of the source tree.  Internally it will also use the RoboDoc
7807           generator now imported in util/robodoc.
7808
7809 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7810
7811         * Added couple of return's in rekey protocol if error orccurred
7812           during the protocol.  The execution must be terminated.
7813           Affected file silcd/protocol.c.  Also, terminate the protocol
7814           always with timeout.
7815
7816 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7817
7818         * The client's Client ID was created initally from the wrong
7819           nickname (it could have been in format nick@host) in the
7820           silc_server_new_client.  Affected file silcd/packet_receive.c
7821
7822 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7823
7824         * Added some SILC_LOG_ERROR's to various error conditions
7825           if client could not be added to ID cache.  Affected files
7826           silcd/packet_receive.c and silcd/server.c.
7827
7828         * When client's sock->user_data is freed, NULL also the
7829           client->router and client->connection pointers.  Added check
7830           for these pointers being NULL to various places around the
7831           code.  Affected file silcd/server.c.
7832
7833         * Added client->data.registered == TRUE checks to various
7834           places around the code to assure that unregistered client's
7835           are not handled when it is not allowed.  Affected file
7836           silcd/server.c.
7837
7838         * Added `bool registered' fields to all
7839           silc_idlist_[server|client]_get_* routines to indicate whether
7840           the fetched client needs to be registered or not.  Affected
7841           file silcd/idlist.[ch].
7842
7843         * Add your own entry as registered to the ID cache in the
7844           server.  Affected file server.c.
7845
7846         * Fixed a bug in silc_server_new_server.  The SilcServer was
7847           set as the new server's context instead of SilcServerEntry.
7848           This naturally caused some weird bugs.
7849
7850         * Added "updated" field the SilcChannelEntry which indicates
7851           the time since the channel entry was last accessed.  This
7852           can be used to determine whether it is necessary to
7853           announce the channel after backup resuming protocol.
7854           Affected files silcd/idlist.[ch].
7855
7856 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7857
7858         * Do not delete the channel rekey task when adding it
7859           for in silc_server_create_channel_key.
7860
7861         * Changed the silc_server_create_channel_key to return
7862           TRUE or FALSE to indicate the success of the channel key
7863           creation.
7864
7865 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7866
7867         * Fixed MSVC++ project files and added missing files to
7868           Makefiles under win32/.
7869
7870 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7871
7872         * Do not add TCP_NODELAY flag if the operating system
7873           does not have it defined.  Affected files are
7874           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7875
7876         * Fixed buffer overflow from Irssi SILC Client.  Affected
7877           file irssi/src/fe-common/core/themes.c.
7878
7879         * Fixed double free in client library in the file
7880           lib/silcclient/client.c when disconnecting from server.
7881
7882         * Applied double free patch from cras to Irssi SILC client.
7883           Affected files irssi/src/core/[modules/expandos].c
7884
7885         * Fixed the disconnection handling to Irssi SILC Client.
7886           The application must call silc_client_close_connection
7887           in ops->connect client operation in case of failure of
7888           the connection.  Affected file is
7889           irssi/src/silc/core/client_ops.c.
7890
7891         * Do not set sock->protocol to NULL in the function
7892           silc_client_close_connection after executing the protocol's
7893           final callback since the sock might not be valid anymore.
7894           Affected file lib/silcclient/client.c.
7895
7896 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7897
7898         * Do not enable SILC_THREADS if the linking with libpthread
7899           did not happen.  Affected file configure.in.pre.
7900
7901         * Added notion to protocol specification that server must
7902           verify the sent authentication payload with CMODE when
7903           setting the channel founder key.  Implemented it to the
7904           server.  Affected file silcd/command.c.
7905
7906 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7907
7908         * Added _EXTRA_DIST SILC distribution variable to the
7909           distributions file.  It is used to conditionally add extra
7910           files or directories to the specific distribution.  Affected
7911           files ./prepare, Makefile.am.pre and distributions.
7912
7913           Removed the `_' from the start of the distribution names.
7914           It is redundant.
7915
7916         * Added README.WIN32 for instructions to compile the Toolkit
7917           under WIN32.
7918
7919 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7920
7921         * Fixed a double free in disconnection in the server.  Affected
7922           file is silcd/server.c.
7923
7924         * Fixed the lib/silcske/groups.c to work now also with GMP
7925           MP library.  The string conversion did not work when using
7926           specific base and the base is indicated in the string as well.
7927
7928         * Created win32/ directory which now includes MSVC++ specific
7929           stuff so that toolkit (DLLs) may be compiled with MSVC++.
7930           It will appear only in the toolkit distribution
7931
7932 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7933
7934         * Changed the key material distribution function in case when
7935           the hash output is too short.  The data is now concatenated
7936           a bit differently than it used to.  Made the change to the
7937           SKE protocol specification.
7938
7939         * Added better GMP detection to configure.in.pre.  A patch
7940           by salo.
7941
7942 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7943
7944         * Fixed a minor bug in SKE that might cause some problem on
7945           some platforms.  Affected file lib/silcske/silcske.c.
7946
7947         * Added the cookie checking for initiator in the SKE.  It checks
7948           that the responder returns the sent cookie unmodified.  The
7949           affected file is lib/silcske/silcske.c.  Added new SKE
7950           error type INVALID_COOKIE that can be sent during the
7951           negotiation.  Fixed some memory leaks as well.
7952
7953         * Added the "invalid cookie" error message to Irssi SILC client's
7954           message formats.
7955
7956 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7957
7958         * Added `task_max' field to the SilcClientParams to indicate
7959           the maximum tasks the scheduler can handle.  If set to zero,
7960           default values are used.  Affected file lib/silcclient/silcapi.h.
7961
7962         * Fixed memory leaks in silc_client_close_connection.  Affected
7963           file lib/silcclient/client.c.
7964
7965         * Added silc_client_del_client_entry to client library to free
7966           all memory of given client entry.  Affected file is
7967           lib/silcclient/idlist.[ch].
7968
7969         * Added new functions silc_client_del_channel and
7970           silc_client_del_server to delete channel and server entries.
7971           Affected file lib/silcclient/[silcapi.h/idlist.c].
7972
7973         * Removed silc_client_del_client_by_id from silcapi.h.
7974
7975         * Fixed the INFO command to return the server's own info
7976           correctly when querying by Server ID.  Affected file is
7977           silcd/command.c.
7978
7979 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7980
7981         * Removed the non-blocking settings in WIN32 code in the
7982           silc_sock_[read/write] and added SleepEx instead.  Affected
7983           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
7984           of input data is now checked with FIONREAD and ioctlsocket.
7985
7986 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7987
7988         * Call silc_schedule_task_del_by_context in the
7989           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
7990           Affected file lib/silccore/silcprotocol.c.
7991
7992         * Call silc_protocol_cancel for active protocols in the
7993           silc_server_close_connection if the funtion
7994           silc_server_free_sock_user_data has not been called.
7995           Affected file silcd/server.c.
7996
7997         * Generic tasks cannot be deleted using the del_by_fd
7998           task deleting function since generic tasks does not match
7999           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
8000
8001         * Added a notion to SILCOPER help file that the SILCOPER works
8002           only on router server, not on normal server.
8003
8004 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8005
8006         * Added for WIN32 support for the new scheduler as well.
8007           Affected file lib/silcutil/win32/silcwin32schedule.c.
8008
8009         * Fixed the SHA1 implementation to work on various platforms.
8010
8011 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8012
8013         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
8014           API.  It is part of the scheduler now.  Everything else is
8015           as previously but some functions has changed their names.
8016           Checkout the lib/silcutil/silcschedule.h for the interface.
8017           Updated all applications to use the new interface.  Affected
8018           files are lib/silcutil/silcschedule.[ch].
8019
8020 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8021
8022         * Found a bug in the SKE implementation.  The HASH value,
8023           specified by the protocol, was not computed correctly.  The
8024           public key of the responder was not added to the computation
8025           even though it is mandatory.  Affected file lib/silcske/silcske.c.
8026           This unfortunately causes incompatibilities with older
8027           clients and servers.
8028
8029         * Added WIN32 specific network init and uninit functions:
8030           silc_net_win32_init and silc_net_win32_uninit to init and uninit
8031           the Winsock2.  Affected file lib/silcutil/silcnet.h and
8032           lib/silcutil/win32/silcwin32net.c.
8033
8034         * Set the socket always to nonblocking mode on WIN32 after
8035           reading data or writing data.  Affected file is
8036           lib/silcutil/win32/silcwin32sockconn.c.
8037
8038 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8039
8040         * Fixed various compilation problems under WIN32.  Affected
8041           files lib/silcutil/win32/silcwin32thread.c and
8042           lib/silcutil/win32/silcwin32schedule.c.
8043
8044         * Removed all _internal.h #includes from public header
8045           files.  Internal headers must never be included from
8046           public headers.
8047
8048           Removed also the lib/silcske/payload_internal.h file.
8049
8050         * All include files that may be needed (public and some others
8051           included by the public headers) by application developers are
8052           now copied to the ./includes directory.  It does not copy any
8053           internal headers.  Affected file Makefile.defines.pre and all
8054           Makefile.am's under lib/ and subdirs.
8055
8056 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8057
8058         * Do not change the ~/.silc directory's permissions automatically.
8059           Affected file irssi/src/silc/core/clientutil.c.
8060
8061 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8062
8063         * Do not cancel the protocol in silc_server_close_connection
8064           it might cause recursion.  Now cancelled in the function
8065           silc_server_free_sock_user_data.  Affected file silcd/server.c.
8066
8067         * Fixed the silc_server_remove_clients_by_server to regenerate
8068           the channel keys correctly finally.  Added also new function
8069           silc_server_remove_clients_channels to actually do it.
8070           Affected file silcd/server.c.
8071
8072         * Fixed the silc_server_new_channel to not crash by giving
8073           wrong router to the new channel.  Affected file is
8074           silcd/packet_receive.c.
8075
8076 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8077
8078         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
8079           which is given as argument to the silc_client_alloc now.
8080           It can be used to configure the client and set various parameters
8081           that affect the function of the client.
8082
8083         * The USERS command in server did not check whether the channel
8084           is private or secret.  Affected file silcd/command.c.
8085
8086         * Added new argument to the USERS command in protocol specification.
8087           The USERS command now can take the channel name as argument
8088           as well.  Added support for this in client and server and
8089           updated the protocol specs.
8090
8091         * Completed the GETKEY command in client. It can be now used
8092           to fetch also servers public key not only some clients.
8093           Affected files lib/silcclient/command[_reply].c.
8094
8095         * Added silc_client_get_server to return server entry by the
8096           server name.  Affected files lib/silcclient/silcapi.h and
8097           idlist.c.
8098
8099         * Redefined the IDENTIFY command in protocol specification to be
8100           more generic.  It now can be used to query information about
8101           any entity in the SILC Network, including clients, servers and
8102           channels.  The query may be based either the entity's name
8103           or the ID.  Added support for this in both client and server.
8104
8105           Affected files silcd/command.c and lib/silcclient/command.c
8106           and command_reply.c.
8107
8108         * Optimized the WHOIS and WHOWAS commands in the server. Removed
8109           the _from_client and _from_server functions.  Affected file
8110           silcd/command.c.
8111
8112         * Added silc_client_get_channel_by_id_resolve to the file
8113           lib/silcclient/silcapi.h to resolve channel information by
8114           its ID.  Added also silc_client_get_channel_by_id that
8115           does not resolve it from the server.
8116
8117 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8118
8119         * Added SilcServerEntry context into the client library
8120           to represent one server.  The INFO command now allocates
8121           these to save the resolved server info.  For now on the
8122           client library will also keep information about servers,
8123           connected and resolved with INFO.
8124
8125           The INFO command now allocates the SilcServerEntry context
8126           and saves the server info there.  The COMMAND_REPLY in
8127           the INFO now returns the parameters to application in
8128           same order as defined in the protocol specification.
8129
8130           The entries are cached in the client->server_cache.
8131
8132         * The INFO command is now issued after received the Client ID
8133           from the server.  Affected file lib/silcclient/client.c.
8134
8135         * The CMODE_CHANGE notify may now return also an SilcServerEntry
8136           to the application as the mode changer might be server.
8137           It is guaranteed that NULL is not returned anymore to the
8138           application.  Affected file lib/silcclient/client_notify.c.
8139
8140           The ID Type is now also passed to the application so that
8141           it can check whether the returned entry is SilcClientEntry
8142           or SilcServerEntry.
8143
8144           Added new function silc_client_get_server_by_id to return
8145           the server entry by ID.  Affected files are the
8146           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
8147
8148         * Do not create the channel in the Irssi SILC Client when issuing
8149           the JOIN command but when received the sucessful JOIN command
8150           reply.  Otherwise the channel might get created even though we
8151           could not join it.  The Affected file is
8152           irssi/src/silc/core/[silc-channels.c/client_ops.c].
8153
8154         * Fixed a channel joining bug in router.  The router must also
8155           check the channel modes, invite and ban lists etc. when serving
8156           the JOIN command sent by normal server.  Affected file is
8157           silcd/command.c.  The router now resolves the client's
8158           information from the server who sent the JOIN command if it
8159           does not know it, and processes the JOIN command only after
8160           that.
8161
8162         * Changed the SilcCommandCb to take new argument; void *context2.
8163           Affected file lib/silccore/silccommand.h
8164
8165           The second argument in the command callbacks in the server now
8166           includes the SilcServerCommandReplyContext if the command was
8167           called as pending command callback from the command reply.
8168           Otherwise it is NULL. When called as pending the status of the
8169           command reply will be checked and if it was erronous the
8170           error will be sent to the original sender of the command.
8171           This way the client always receives the error messages even
8172           though the server was actually the one who received the error
8173           when it resent the command to router, for example.  Affected
8174           files silcd/command[_reply].[ch].
8175
8176         * Fixed sending WHOWAS command's error message to client if
8177           the requested client could not be found.  It was missing.
8178           silcd/command.c.
8179
8180         * Changed the CMODE and CUMODE commands reply arguments in the
8181           protocol specification.  The Channel ID is now sent in both
8182           of the commands to identify the channel.  Implemented this
8183           new feature to the client and server.  Affected files
8184           lib/silcclient/command_reply.c and silcd/command.c.
8185
8186         * Made better checks for invite and ban lists in the JOIN
8187           command in server.  Affected file silcd/command.c.
8188
8189 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8190
8191         * The server now performs the incoming host IP/DNS lookup
8192           using the silc_socket_host_lookup and thus does not block
8193           the server anymore.  Affected file silcd/server.c.
8194
8195         * Completed the multi-thread support for SILC Scheduler in
8196           the lib/silcutil/silcschedule.c.
8197
8198         * Fixed the configure.in.pre to detect the pthread correctly
8199           on various systems.
8200
8201         * Fixed a deadlock in silc_task_queue_wakeup in the file
8202           lib/silcutil/silctask.c.
8203
8204 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8205
8206         * Added new function silc_schedule_wakeup that is used in
8207           multi-threaded environment to wakeup the main thread's
8208           schduler. It needs to be used when a thread adds a new task
8209           or removes a task from task queues. After waking up, the
8210           scheduler will detect the task queue changes. If threads
8211           support is not compiled in this function has no effect.
8212           Implemented the wakeup mechanism to both Unix and WIN32
8213           systems.  Affected files are lib/silcutil/silcschedule.[ch],
8214           lib/silcutil/unix/silcunixschedule.c and the
8215           lib/silcutil/win32/silcwin32schedule.c.
8216
8217         * Added new function silc_task_queue_wakeup to wakeup the
8218           scheduler by the specified task queue.  Affected file
8219           lib/silcutil/silctask.[ch].
8220
8221         * The silc_socket_host_lookup_start now wakes up the scheduler
8222           after adding the timeout task.  Affected file is
8223           lib/silcutil/silcsockconn.c.
8224
8225         * The silc_socket_host_lookup is synchronous now if the threads
8226           support is not compiled in.  However, the callback is still
8227           called asyncronously through the scheduler, anyway.  Affected
8228           file lib/silcutil/silcsockconn.c.
8229
8230 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8231
8232         * Added new function silc_socket_host_lookup to perform
8233           asynchronous IP and FQDN lookups for the socket connection.
8234           Affected files lib/silcutil/silcsockconn.[ch].
8235
8236 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8237
8238         * Added SILC_MUTEX_DEFINE to define the mutex on environments
8239           that may or may not compile the mutex support in.
8240
8241           Changed the silc_mutex_alloc interface. It allocates the
8242           mutex now to the sent pointer and returns TRUE or FALSE.
8243
8244           Affected file lib/silcutil/silcmutex.h.
8245
8246         * Wrote the SILC Task Queue interface to support multi-threads.
8247           Affected file lib/silcutil/silctask.[ch].
8248
8249         * Wrote the SILC Scheduler to support multi-threads.  Affected
8250           file lib/silcutil/silcschedule.c.
8251
8252 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8253
8254         * Implemented the SILC Mutex API and SILC Thread API for WIN32
8255           in lib/silcutil/win32/.
8256
8257 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8258
8259         * Defined SILC Mutex API and SILC Thread API and implemented
8260           them for Unix.  Affected files are
8261           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
8262           lib/silcutil/unix/silcunixmutex.c and
8263           lib/silcutil/unix/silcunixthread.c.
8264
8265 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8266
8267         * Fixed the silc_server_remove_clients_by_server's channel
8268           key re-generation.  The hash table handling was incorrect
8269           and would not work with many channels.  Affected file is
8270           silcd/server.c.
8271
8272         * Fixed some memory leaks around the server code.
8273
8274         * Rewrote the silc_server_get_users_on_channel to support IPv6
8275           based Client ID's.  Affected file silcd/server.c.
8276
8277         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
8278           specification.  However, a separate document must be written
8279           to define the detailed signing procedure and the payload
8280           associated with the flag.  Defined the flag to the
8281           lib/silccore/silcchannel.h as well.
8282
8283 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8284
8285         * Changed the dynamic tables to static size tables in the
8286           lib/silccrypt/silchmac.c.
8287
8288         * Removed GCC dependencies from the code.  A patch by cras.
8289
8290 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8291
8292         * Do not show the error "Error receiving packet bla bla"
8293           in server if it really was not an error (-2 means that reading
8294           is pending).  Affected file silcd/server.c.
8295
8296 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8297
8298         * Fixed a possible crash in silc_server_remove_clients_by_server
8299           in silcd/server.c.  Fixed there also some memory leaks.
8300
8301         * Fixed the silc_idlist_replace_client_id.  It could replace
8302           wrong key in the hash table.  Affected file silcd/idlist.c.
8303
8304         * Do not check whether there are global users on the channel
8305           if the channel->global_users is FALSE.  Affected functions
8306           silc_server_remove_from_one_channel and
8307           silc_server_remove_from_channels in silcd/server.c.  Also,
8308           do not check if the removed client is local as we can be
8309           sure that global client was not removed from the channel
8310           and checking for global users is not needed.
8311
8312         * The silc_server_remove_clients_by_server now re-generates
8313           the channel keys correctly for those channels that had
8314           clients removed from them.  Affected file silcd/server.c.
8315
8316 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8317
8318         * Found the reason of random crashes in the server.  We weren't
8319           ignoring the SIGPIPE signal (which can be sent in write())
8320           and it crashed the server.  Affected file silcd/silcd.c.
8321
8322 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8323
8324         * Assure that sock->user_data is not NULL in the function
8325           silc_server_packet_send in silcd/packet_send.c.
8326
8327         * Disconnect the remote connection if it could not be added
8328           to any ID lists in the server.  The affected file is
8329           silcd/server.c.
8330
8331         * Check in silc_server_packet_send[_real/dest] that the
8332           socket is not disconnecting and ignore the data if it is.
8333           Affected file silcd/packet_send.c.
8334
8335         * Define inline to __inline on native WIN32 compilation.
8336           Affected file includes/silcwin32.h.
8337
8338         * Added some explicit type casts for inline code since MSVC
8339           require them.  Affected files lib/silcutil/silcbuffer.h,
8340           lib/trq/silcdlist.h and lib/trq/silclist.h.
8341
8342         * Print warning in log files from now on if the packet
8343           decryption fails.  Affected file silcd/server.c.
8344
8345 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8346
8347         * Changed the `say' client operation's interface to accept
8348           new `type' argument to indicate the type of the message sent
8349           by the library.  The application may filter the library's
8350           messages according the type.  The affected file is the
8351           lib/silcclient/silcapi.h.
8352
8353         * Added two new functions to lib/silcclient/silcapi.h:
8354           silc_client_del_client and silc_client_del_client_by_id.
8355           Affected file lib/silcclient/idlist.c.
8356
8357         * Moved the clientincludes.h from includes/ to silc/ and
8358           serverincludes.h from includes/ to silcd/.
8359
8360         * The modes for the CMODE and CUMODE are now passed as
8361           uint32 for application with COMMAND_REPLY.  The affected
8362           file is lib/silcclient/command_reply.c.
8363
8364 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8365
8366         * /WHOIS without arguments shows client's own information.
8367           Affected file lib/silcclient/command.c.
8368
8369         * Changed PING to not accept any arguments.  The specs
8370           says that client can ping only the connected server so
8371           requiring an argument is not needed.  Affected file is
8372           lib/silcclient/command.c.
8373
8374 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8375
8376         * Fixed a fatal bug in private message sending and reception
8377           encryption and decryption when using private message keys.
8378           The implementation was incorrect and did not follow the
8379           specification.  It causd that some of the message were
8380           lost since it did not use the sending and receiving keys
8381           as the protocol suggests.  This has been fixed and will cause
8382           incompatibilities with older clients when sending private
8383           message encrypted with private message keys.  Affected files
8384           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
8385           and various other in Irssi SILC Client.
8386
8387           Added `responder' boolean argument to the functions
8388           silc_client_add_private_message_key[_ske] to indicate when
8389           the key is added as responder or initiator of the key
8390           negotiation.
8391
8392 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8393
8394         * Removed the silc_ske_check_version function and created
8395           a SilcSKECheckVersion callback.  Added also a function
8396           silc_ske_set_callbacks that is now used to set all SKE
8397           callbacks.  The callback functions are not given to
8398           the SKE functions anymore, but this function is used to
8399           set the callbacks.
8400
8401         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
8402
8403         * Added `silc_version' argument to the silc_client_alloc
8404           to define the version of the application for the library.
8405           The library will use the version string to compare it
8406           against the remote host's (usually a server) version
8407           string.  Affected file lib/silcclient/silcapi.h
8408
8409         * Added the KE protocol context to Key Agreement context
8410           in client library so that we can abort the SKE if it
8411           is in process when we get timeout.  Affected file is
8412           lib/silcclient/client_keyagr.c.
8413
8414         * Do not resolve the client ID forever if it returns in the
8415           first time that such client does not exist.  This was done
8416           for example with private message.  Affected file is
8417           lib/silcclient/client_prvmsg.c.
8418
8419 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8420
8421         * Do not add regex.h for WIN32.  The affected file
8422           includes/silcincludes.h.
8423
8424         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
8425           not work yet 100%.  It generates the DLL's automatically
8426           when compiling with --with-win32 under cygwin.
8427
8428 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8429
8430         * lib/contrib/regex.c is not compiled on WIN32.
8431
8432         * Added silc_net_get_socket_opt function to the
8433           lib/silcutil/silcnet.h.
8434
8435         * Added includes/silcwin32.h for WIN32 specific includes
8436           and definitions.
8437
8438         * Do not use ptime structure or any of the posix process
8439           functions on WIN32 in lib/silccrypt/silrng.c.
8440
8441         * Added silc_gettimeofday to provide generic function
8442           for struct timeval on all platforms.  Added the function
8443           to lib/silcutil/silcutil.h.
8444
8445 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8446
8447         * Moved the lib/silccore/silcsockconn.[ch] to the utility
8448           library as they clearly belong there.  As a plus side we
8449           can make the actual socket connection routines platform
8450           specific.
8451
8452           Added also new generic function silc_socket_read and
8453           silc_socket_write (that used to be silc_packet_[read/write].
8454           The implementation of these are platform specific.
8455
8456         * Added WIN32 specific routines of silc_socket_[read/write]
8457           to lib/silcutil/win32/silcwin32sockconn.c.
8458
8459 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8460
8461         * Added preliminary support for native WIN32 compilation under
8462           cygwin (using the -mno-cygwin option for GCC) to the
8463           ./configure.in.pre.  The --with-win32 now prepares the
8464           compilation for native WIN32.
8465
8466         * Rewrote the SILC Scheduler interface in the file
8467           lib/silcutil/silcschedule.h.  The scheduler is now context
8468           based and does not have anymore any global static scheduler.
8469           Moved the Unix scheduler to the lib/silcutil/unix/ directory
8470           and created lib/silcutil/win32 directory for WIN32 based
8471           scheduler.
8472
8473         * Added Unix specific network routines to the
8474           lib/silcutil/unix/silcunixnet.c and the old
8475           lib/silcutil/silcnet.c includes now only generic routines.
8476
8477           Added WIN32 specific network routines to the
8478           lib/silcutil/win32/silcwin32net.c.
8479
8480         * Added Unix specific utility functions from the
8481           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
8482
8483         * Added WIN32 SILC Scheduler to the file
8484           lib/silcutil/win32/silcwin32schedule.c. The code is of course
8485           untested.
8486
8487 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8488
8489         * Do not handle JOIN notify in the server if the target client
8490           is not registered (idata->registered == FALSE).  The affected
8491           file is silcd/packet_receive.c.
8492
8493         * Update the nickrec->founder in event_cumode in the Irssi SILC
8494           client.  Affected file irssi/src/silc/core/silc-channels.c.
8495
8496         * Fixed the CUMODE_CHANGE notify handling in the server when
8497           server and router are announcing their clients on channels.
8498           Now the mode changes are saved and notified correctly.  The
8499           affected file is /silcd/packet_receive.c.
8500
8501         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
8502           They really did not replace the cache entry in the ID Cache.
8503           Now they do that.  Affected file silcd/idlist.c.
8504
8505         * Fixed the KICK notify handling in the Irssi SILC client to
8506           update the channel records so that the kicked client does not
8507           appear to be on the channel.  The affected file is
8508           irssi/src/silc/core/silc-channels.c.
8509
8510         * Always update the conn->current_channel when executing command
8511           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
8512
8513         * Fixed the KILL notify handling in Irssi SILC client to remove
8514           the killed client on all channels.
8515
8516 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8517
8518         * Fixed the silc_parse_command_line to remove extra spaces
8519           from the start and end of the arguments.  Affected file is
8520           lib/silcutil/silcutil.c.
8521
8522         * Cancel and free any active protocol in the function
8523           silc_server_close_connection.  Affected file silcd/server.c.
8524
8525         * Cancel and free any active protocol in the function
8526           silc_client_close_connction.  Affected file is
8527           lib/silcclient/client.c.
8528
8529         * Do not execute the KILL command for clients that are in
8530           history (ie. they are not in the network).  Affected file is
8531           silcd/command.c.
8532
8533         * Fixed KILL notify handling, client does not crash anymore.
8534           Affected file irssi/src/silc/core/silc-channels.c.
8535
8536         * Reduced the default packet buffer size from 2048 to 1024 in
8537           lib/silccore/silcpacket.c.
8538
8539         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
8540           counter to the SKE context that is incresed when the SKE library
8541           performs async operation outside the library.  If the outside
8542           process frees the SKE context and FREED status will be set
8543           and the library will detect after the sync operation that the
8544           libary is freed.  The affected files are
8545           lib/silcske/silcske[_status].[ch].
8546
8547         * Resolve the client entry information in the function
8548           silc_client_channel_message to assure that NULL pointer is not
8549           passed as client entry to the application. */
8550
8551         * Fixed the task timeout calculation to assure that there is
8552           never negative timeouts.  The affected file is
8553           lib/silcutil/silcschedule.c.
8554
8555         * Fixed the channel user mode notification sending in server.
8556           It was sent point-to-point to the router (or to server by router)
8557           but it needs to be destined to a channel.  The routines now
8558           supports sending the channel user mode notifys to the channels
8559           when announcing clients and channels.  Affected files are
8560           silcd/server.c and silcd/packet_receive.c.
8561
8562         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8563           It did not actually replace the old channel entry in the cache.
8564           Affected file lib/silcclient/client_notify.c.
8565
8566 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8567
8568         * Fixed a possible crash in silc_packet_send_prepare.  It now
8569           assures always that there is enough space in the buffer and
8570           at the tail area of the buffer (for MAC).
8571
8572           Fixed the inbound buffer reallocation in silc_packet_read.
8573           It was old code and did not handle the reallocation correctly.
8574           Affected
8575
8576           The affected file is lib/silccore/silcpacket.c.
8577
8578         * Fixed buffer overflow in silc_parse_nickname in the file
8579           lib/silcutil/silcutil.c.
8580
8581 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8582
8583         * make install generates new server keys only if there is not
8584           keys already.
8585
8586 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8587
8588         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8589           Added check that if the NOREPLY is set then we will not send
8590           the away message.  This avoids infinite loop of away messages
8591           if both clients are away.  The affected file is
8592           lib/silcclient/client_prvmsg.c.
8593
8594         * Fixed client crash if /NICK was given without arguments.
8595           Affected file lib/silcclient/command.c.
8596
8597         * Server does not send the invite list in INVITE command back
8598           to the client if the list was not altered.  Added this notion
8599           to the protocol spec as well.  Affected file silcd/command.c.
8600
8601           Fixed possible crash in INVITE command by checking the
8602           value of silc_server_get_client_route command.
8603
8604         * Fixed the INVITE notify type handling.  The arguments are now
8605           taken in correct order and client does not crash.  The affected
8606           file is irssi/src/silc/core/silc-channels.c.
8607
8608           Removed the "Inviting xxx to channel" message from the
8609           client library away and let the application handle it.
8610           Affected file lib/silcclient/command.c.  Added that message
8611           to Irssi SILC client's message formats.
8612
8613         * Fixed CMODE command crash in client.  It now checks the
8614           amount of arguments correctly and does not crash.  The affected
8615           file is lib/silcclient/command.c.
8616
8617         * Do not create new channel automatically in silc_channels_join
8618           but check whether the channel by that name already exists.
8619           Affected file irssi/silc/core/silc-channels.c.
8620
8621         * Do not send the SERVER_SIGNOFF to router if the disconnected
8622           entity was the router.  Affected file silcd/server.c.
8623
8624         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8625           SILC client as it was missing from there.
8626
8627           Added the handling of the KICK notify to the Irssi SILC client
8628           as it was missing.  Added "you have been kicked" message to
8629           Irssi SILC client's message modules formats.
8630
8631           Added the handing of the KILL notify to the Irssi SILC client
8632           as it was missing.  Added the kill message module formats
8633           as well.
8634
8635           The affected file is irssi/src/silc/core/silc-channels.c.
8636
8637         * The router did not save the channel mode the server announced.
8638           Affected file silcd/packet_receive.c.
8639
8640         * Fixed a possible crash in INFO command in server.  If the
8641           server did not provide the server info it crashed.  Affected
8642           file silcd/command.c.
8643
8644 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8645
8646         * Fixed the GETKEY command in the server to check also the
8647           global list.  Otherwise the GETKEY would not work correctly
8648           in normal SILC server.  Affected file silcd/command.c.
8649
8650 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8651
8652         * Fixed GETKEY crash, it crashed if the command did not succseed.
8653
8654 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8655
8656         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8657           is now real and not just an macro interface to GMP.
8658
8659           Removed the entire GMP from the source tree and imported new
8660           NSS MPI library instead.  Reason for removing GMP is that it is
8661           extremely large and compiles extremely slow.  The NSS MPI
8662           is only a few files and compiles in less than 10 seconds.
8663           The speed is also about the same as GMP.  The MPI is imported
8664           to lib/silcmath/mpi.
8665
8666           If the system has GMP installed we will still use the GMP.
8667           If it is not then the NSS MPI will be compiled.
8668
8669 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8670
8671         * Merged a long nickname (127 characters long) crash bugfix from
8672           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8673
8674         * Merged a freed memory reference bugfix from Irssi CVS tree.
8675           Affected file irssi/src/core/commands.c.
8676
8677 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8678
8679         * Added the server's public key sving and verification to the
8680           server when performing the SKE.  This was missing and the
8681           remote server's (or router's) public key was accepted without
8682           checking whether we have it previously or trust it at all.
8683           Affected file silcd/protocol.c.
8684
8685 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8686
8687         * Check in the silc_server_timeout_remote if protocol is active
8688           and make sure that the protocol's final callback is called so
8689           that all memory if freed.  Affected file silcd/server.c.
8690
8691 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8692
8693         * silc_server_whois_send_reply crashed the server if the nickname
8694           was 127 characters long.  Affected file silcd/command.c.
8695
8696 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8697
8698         * Added sanity check to the silc_server_new_client. If the hostname
8699           is provided inside username then check that the provided hostname
8700           really is the same as the resolved one.  If the hostname was not
8701           resolved then check it from the public key.  Affected file is
8702           silcd/packet_receive.c.
8703
8704         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8705           if the server disconnected us and the connection is not valid
8706           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8707
8708         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8709           the library to the lib/silcutil/silcutil.[ch].
8710
8711 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8712
8713         * Close log file after open.  Affected file
8714           lib/silcutil/silclog.c.
8715
8716         * Check whether sock == NULL in silc_client_send_packet and return
8717           if it is.  Affected file lib/silcclient/silcclient.c.
8718
8719         * Check rec->entry == NULL in the Irssi SILC Client before
8720           sending the channel message.  Affecte file is
8721           irssi/src/silc/core/silc-servers.c.
8722
8723 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8724
8725         * Merged a splitted window bugfix from Irssi CVS tree.  The
8726           affected file is irssi/src/fe-text/textbuffer-view.c.
8727
8728         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8729           It did not print nickname.
8730
8731         * Improved the distributions system a bit.
8732
8733 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8734
8735         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8736           irssi/src/fe-text/gui-window.c.
8737
8738         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8739           to in-active server.  The affected file is
8740           irssi/src/silc/core/client_ops.c.
8741
8742         * Resolve the client in USERS command reply if the entry does
8743           not have username resolved.  The affected file is
8744           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8745           command to WHOIS command to really resolve stuff.  The USERS
8746           is not used any more in any critical section so WHOIS can
8747           be used even though it might be slower than IDENTIFY.
8748
8749         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8750           format.
8751
8752 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8753
8754         * Changed the protocol API a bit more consistent in the
8755           lib/silccore/silcprotocol.[ch].
8756
8757         * Changed the following headers to ROBODoc format:
8758
8759                 lib/silccore/silcpayload.h
8760                 lib/silccore/silcprotocol.h
8761                 lib/silccore/silcsockconn.h
8762
8763           All core library headers are now formatted.
8764
8765 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8766
8767         * Fixed a bug in Irssi SILC client; do not show that you are
8768           server/router operator if you really are not.  Affected file is
8769           irssi/src/silc/core/client_ops.c.
8770
8771         * Renamed silc_command_free_payload to silc_command_payload_free.
8772           Affected file lib/silccore/silccommand.h
8773
8774         * Added silcmath.h to include the prototoypes of various routines
8775           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8776           silcprimegen.h.
8777
8778         * Changed the following headers to ROBODoc format:
8779
8780                 lib/silccore/silcchannel.h
8781                 lib/silccore/silccommand.h
8782                 lib/silccore/silcid.h
8783                 lib/silccore/silcidcache.h
8784                 lib/silccore/silcmode.h
8785                 lib/silccore/silcnotify.h
8786                 lib/silccore/silcpacket.h
8787                 lib/silcmath/silcmath.h
8788
8789 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8790
8791         * Added checking to the server code not to start the server if
8792           ciphers and stuff are not configured properly.  Affected files
8793           silcd/serverconfig.[h] and silcd/server.c.
8794
8795         * Changed the layout of the header files of the public interfaces
8796           in the SILC libraries.  The new layout supports ROBODoc
8797           documentation tool (and some others) so that it is easy to create
8798           a library reference manual.  All the other headers and source
8799           code must still follow the CodingStyle document.  Also source
8800           code must not include these ROBODoc stuffs, only the headers.
8801           Furthermore, all public interface headers must now be named
8802           by using `silc' prefix, example: silcapi.h, silccipher.h.
8803           Some files were renamed due to this.  All the other headers
8804           must not be used as public interfaces.  I will update the
8805           CodingStyle document later.  Changed following headers, so far:
8806
8807                 lib/silcclient/silcapi.h
8808                 lib/silccore/silcauth.h
8809                 lib/silccore/silcprivate.h
8810                 lib/silccrypt/silcdh.h
8811
8812 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8813
8814         * Updated TODO.
8815
8816         * Removed silc_client_packet_send_flush from the client library
8817           as it is not needed.  Affected file lib/silcclient/client.[ch].
8818
8819         * Added printing of message of unresolved authentication method
8820           to the Irssi SILC client.  Added it to the module formats.
8821           Removed the same message from the client library.
8822
8823 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8824
8825         * Added new distribution feature, DISTLABEL.  Every distribution
8826           can define own preprocessor label that can be used in the
8827           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8828           file distributions, acconfig.h.pre and prepare.
8829
8830 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8831
8832         * Added Makefile.defines_int to include the actual definitions
8833           for Makefile.defines.in.  Tested the new distribution system,
8834           created distributions and tested installation.
8835
8836         * Added AWAY message printing to the Irssi SILC client.  Added
8837           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
8838
8839         * Added SCONNECT command to call the SILC's CONNECT command.
8840           Cannot use CONNECT directly since Irssi uses that internally.
8841           Affected file irssi/src/silc/core/silc-servers.c.
8842
8843           Added ACTION local command.  It is same as ME command but takes
8844           the channel as mandatory argument.
8845
8846           Rewrote some of the Irssi's help files to suite for SILC
8847           protocol.
8848
8849 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8850
8851         * Added Makefile.defines[.in] that should for now on be included
8852           in all Makefile.am file in the source tree.  That file includes
8853           all common compilation definitions for SILC source tree.
8854
8855 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8856
8857         * Minor changes to the ./prepare script to change the package
8858           name according the distribution name to the configure.in.
8859
8860 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8861
8862         * Created new distribution system.  Added file `distributions'
8863           that defines all the distributions that can be created out of
8864           the SILC source tree.  The ./prepare script now reads that
8865           file to determine how to prepare the distributions.  The
8866           first argument to the ./prepare is the name of the distribution
8867           and second is the version of the distribution.  If given
8868           without arguments it creates the default (toolkit) distribution
8869           with the default version (defined in ./prepare).
8870
8871           All Makefile.am files that are subject to the distributions
8872           are now named as Makefile.am.pre.  These are ./Makefile.am
8873           and lib/Makefile.am.  Others may be changed later.
8874
8875 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8876
8877         * Added invite list, ban list, some key management and connection
8878           error message printing to module formats in the Irssi SILC client.
8879
8880         * Added new silc_client_set_away_message to set the away message
8881           that is back to the person who sent private message.  The
8882           affected file lib/silcclient/silcapi.h and the
8883           lib/silcclient/client_prvmsg.c.
8884
8885 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8886
8887         * Fixed the private message sending in the Irssi SILC client,
8888           added local command KEY to the Irssi SILC client.
8889
8890           Added key management and key agreement message formats to the
8891           irssi/src/fe-common/silc/module-formats.[ch].
8892
8893           Added USERS (alias WHO) printing, server/router operator
8894           indication and LIST command printing to the module formats.
8895
8896 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8897
8898         * Fixed channel joining notify handling, cumode notify handling
8899           from Irssi SILC client.
8900
8901         * Added SILC specific module-formats to the Irssi SILC client so
8902           that SILC specific message hilighting, colors etc is possible.
8903           Affected file irssi/src/fe-common/silc/module-formats.[ch].
8904
8905           Added channel mode, channel user mode, actions, notices,
8906           whois and whowas printing to the the module-formats.c.
8907
8908         * Fixed a bug in channel deletion in the server.  The channel
8909           is not left to the cache even if the channel founder auth mode
8910           is set when there are no users anymore on the channel.  Affected
8911           file silcd/server.c.
8912
8913         * The silc_net_localhost now resolves the entire hostname including
8914           the domain name.  Affected file lib/silcutil/silcnet.c.
8915
8916 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8917
8918         * Changed the ask_passphrase client operation to be ascynchronous.
8919           It has now a completion callback and a context that the
8920           application must call after it has got the passphrase from
8921           the user.  Affected files lib/silcclient/silcapi.h,
8922           lib/silcclient/protocol.c, lib/silcclient/command.c and
8923           silc/client_ops.c.
8924
8925           Added SilcAskPassphrase callback that the application calls
8926           to deliver the passphrase to the library.
8927
8928         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
8929           The public key verification and especially a certificate
8930           verification is asynchronous procedure.
8931
8932           Added new SILC_SKE_STATUS_PENDING status to indicate the
8933           request is pending and a callback will be called to finalize
8934           the request.
8935
8936           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
8937           indicate that remote end did not send its public key (or
8938           certificate), even though we require it.  Added check for this
8939           condition in the SKE.  This was a security bug, now fixed.
8940
8941           Defined new SilcSKEVerifyCbCompletion callback that is called
8942           when the verification process is completed.
8943
8944           The affected files lib/silcske/silcske_status.h and
8945           lib/silcske/silcske.[ch].
8946
8947         * Changed the verify_public_key client operation to be async
8948           as well.  Defined SilcVerifyPublicKey callback that is used to
8949           indicate the success of the public key verification process.
8950
8951           Changed the server and client to use the new async client
8952           operations.
8953
8954         * Changed the Irssi SILC client's internal scheduler to be called
8955           twice as many times as it used to be.  As a result the client
8956           should be a bit faster now.  Affected file is
8957           irssi/src/silc/core/silc-core.c.
8958
8959         * Added support to Irssi SILC client of asynchronous public key
8960           verification and passphrase inquiry.  Affected file is
8961           irssi/src/silc/core/silc-core.c.
8962
8963 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8964
8965         * Do not say "You have left channel %s" in client library.
8966           Moved it to the application.  Affected files are
8967           lib/silcclient/command.c and silc/client_ops.c.
8968
8969         * Fixed silc_client_get_clients.  Command context was not
8970           duplicated and was freed memory in the callback.  Affected
8971           file lib/silcclient/idlist.c.
8972
8973         * Do not say "you are now talking..." on JOIN command in the
8974           client library.  The appliation must handle it.
8975
8976         * Do not say ".. changed topic to" in command reply in the
8977           client libary.  The application must handle it.
8978
8979         * Fixed TOPIC command sending in the client library.
8980
8981         * Fixed a memory leak in silc_client_command_free in the file
8982           lib/silcclient/command.c.
8983
8984 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8985
8986         * Imported a modified version of Irssi client to the source tree.
8987           The Irssi will be used to create a new client called
8988           Irssi SILC.  Imported to irssi/.
8989
8990           Added silc_core_init_finish function to the Irssi.  Affected
8991           file irssi/configure.in.
8992
8993           A lot changes in the Makefile.ams around the irssi tree.
8994
8995 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8996
8997         * Do not rehash if the new size is same as the old size of the
8998           hash table, in the silc_hash_table_rehash*.  The affected file
8999           lib/silcutil/silchashtable.c.
9000
9001         * Replaced hash_table_del_by_context calls from the server
9002           (when channel->user_list and client->channels) to the
9003           hash_table_del as it is sufficient and faster.
9004
9005 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9006
9007         * Added silc_hash_table_list, silc_hash_table_get and the
9008           SilcHashTableList structure to provide an alternative way to
9009           traverse the hash table.  The affected files are
9010           lib/silcutil/silchashtable.[ch].
9011
9012         * Changed the server's idlist routines to use the hash table
9013           routines to optimize the code.
9014
9015 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9016
9017         * Replaced the client entry's `channel' list and channel entry's
9018           `user_list' list to hash tables for optimized lookup.  Changed
9019           the code to use the hash table interface around the code.
9020           Affected file lib/silcd/idlist.[ch].
9021
9022         * Added `auto_rehash' boolean argument to the function
9023           silc_hash_table_alloc to indicate whether the hash table should
9024           auto-rehash when it thinks is appropriate time.  It will
9025           increase the hash table size if the there is twice as much
9026           entries in the table than the size of the table, and will
9027           decrease the size if there are twice as less entries than
9028           the size of the table.
9029
9030 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9031
9032         * Fixed silc_xxx_get_supported to not crash at some circumstances.
9033
9034 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9035
9036         * silc_idcache_purge_by_context deletes the entry now by context
9037           as it is supposed to do.  Affected file lib/silccore/idcache.c.
9038
9039         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
9040           client is not anymore valid (WHOWAS givens the info) and not
9041           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
9042
9043 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9044
9045         * Removed the `data' and `data_len' arguments from the ID Cache
9046           interfaces and added `name' argument.  ID Cache does not handle
9047           anymore the binary data only a names associated with given ID.
9048
9049         * When hashing a Client ID with silc_hash_id the entire ID is
9050           not hashed anymore, instead only the hash of the Client ID is
9051           hashed.  This way we can access the Client ID from the cache
9052           with Client ID but with the hash of the ID (which is a hash of
9053           the nickname) as well without any difference in performance.
9054
9055           Added also silc_idcache_find_by_id_one_ext to do one on one
9056           searching when we have the actual ID.  Added also function
9057           silc_hash_client_id_compare.  The affected files are
9058           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
9059
9060         * When hashing the name associated with a ID it is always done
9061           in lowercase.  This way we can access the cache without worrying
9062           about case-sensitivity, even though, for example nicknames are
9063           case sensitive.
9064
9065         * Fixed a bug in server with channel message sending.  It put
9066           wrong ID type as destination ID.  The affected file
9067           silcd/packet_send.c.
9068
9069         * silc_idcache_del_by_context now deletes from all hash tables
9070           by context.  Affected file lib/silccore/idcache.c.
9071
9072 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9073
9074         * Changed the client library to use the new ID Cache interface.
9075           Changes around the source tree.
9076
9077         * Added silc_hash_table_rehash_ext to rehash with specific
9078           hash function.  Affected file lib/silcutil/silchashtable.[ch].
9079
9080         * Added silc_hash_string_compare to compare two strings in the
9081           hash table.  Affected file lib/silcutil/silcutil.[ch].
9082
9083 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9084
9085         * Added new function silc_idcache_del_by_context into the
9086           lib/silccore/idcache.[ch].
9087
9088         * Changed the server's ID list routines to use the new ID Cache
9089           interface.  Changes around the source tree.
9090
9091 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9092
9093         * Added silc_hash_table_del[_by_context]_ext functions in to the
9094           lib/silcutil/silchashtable.[ch].
9095
9096           Removed silc_hash_table_find_all* routines and added new
9097           silc_hash_table_find_foreach to replace them.
9098
9099           Added silc_hash_table_replace_ext function as extended
9100           replacing function.  Separated the simple hash table interface
9101           from the extended hash table interface in the file
9102           lib/silcutil/silchashtable.h.
9103
9104         * Fixed minor bugs and changed it to use some of the new
9105           hash table functions in lib/silccore/idcache.c
9106
9107 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9108
9109         * Added new function silc_hash_table_find_all to return all keys
9110           in the hash table by the specified key.  As the hash table is
9111           collision resistant it also makes it possible to have several
9112           duplicate keys in the hash table.  This function may be used to
9113           find all of the keys from the hash.
9114
9115           Added user_context arguments to the SilcHashFunction,
9116           SilcHashCompare and SilcHashDestructor to deliver user specified
9117           context.
9118
9119           Added new fuctions silc_hash_table_find[_all]_ext to do
9120           extended lookup with specified hash and compare functions and
9121           specified user contexts.
9122
9123           Added new function silc_hash_table_add_ext to add the key
9124           with specified hash function and user context.
9125
9126           Added new function silc_hash_table_foreach to traverse all
9127           entrys in the hash table.  Added SilcHashForeach callback
9128           function.
9129
9130           Added new function silc_hash_table_del_by_context to delete
9131           the entry only if the context associated with the key matches.
9132
9133           Affected files are lib/silcutil/silchashtable.[ch].
9134
9135         * Removed silc_hash_[server/client/channel]_id and added just
9136           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
9137           silc_hash_id_compare to compare two ID's using as the hash table
9138           comparison function.  Added also silc_hash_data to hash
9139           binary data and silc_hash_data_compare to compare it.
9140
9141         * Removed silc_idlist_find_client_by_hash as it is not needed
9142           anymore.  Affected file silcd/idlist.[ch].
9143
9144         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
9145           to use internally the SilcHashTable.  The new ID Cache is a lot
9146           faster than the old one.  Some of the ID Cache interface was also
9147           rewritten and obsolete and stupid functions were removed.
9148
9149 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9150
9151         * Added entry_count field to the SilcHashTable to keep the number
9152           of the entries in the table.  Implemented the function
9153           silc_hash_table_rehash.  Added new function
9154           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
9155
9156           Fixed a minor bug in silc_hash_table_free.
9157
9158         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
9159           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
9160           into the lib/silcutil/silcutil.[ch].
9161
9162 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9163
9164         * Implemented a collision resistant hash table into the
9165           lib/silcutil/silchashtable[ch].  See the header and the source
9166           for the SilcHashTable API.
9167
9168 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9169
9170         * Merged dotconf version 1.0.2 into lib/dotconf.
9171
9172 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9173
9174         * Do not compile anything in lib/silcsim/* if the SIM support
9175           is not enabled.  The tree should now compile without problems
9176           under cygwin.
9177
9178 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9179
9180         * Compiled the SILC under cygwin.  Compiled and tested briefly
9181           without problems.  More tests needed.  The SIMs didn't compile
9182           though.
9183
9184         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
9185
9186         * Fixed possible crash in silc_get_username in the
9187           lib/silcutil/silcutil.c.
9188
9189 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9190
9191         * Fixed a va_arg in silc/client_ops.c.
9192
9193         * Oops, RC5 routines were named AES and caused some problems
9194           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
9195
9196 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9197
9198         * Added new SilcIDIP structure into the lib/silccore/id.h and
9199           replaced the old `ip' fields from all SILC ID's to that type.
9200           This is a step towards IPv6 support.
9201
9202           The silc_id_get_len takes now the ID as an extra argument.
9203           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
9204           both IPv4 and IPv6 based ID's.
9205
9206           The affected files are lib/silccore/id.[ch] and other files
9207           around the tree using these routines.
9208
9209         * Removed the ID length arguments in server from various
9210           silc_server_send_notify_* routines -> they are not needed
9211           anymore.
9212
9213 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9214
9215         * Fixed memory leak in silc_encode_pem_file in the file
9216           lib/silcutil/silcutil.c.
9217
9218 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9219
9220         * Check minor version as well in the SKE.  Affected files are
9221           silcd/protocol.c and lib/silcclient/protocol.c.
9222
9223         * Added --identifier option to the server so that an identifier
9224           can be when creating the public key for the server.  Affected
9225           file is silcd/silcd.c.
9226
9227         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
9228           lib/silccrypt/silcpkcs.c.
9229
9230 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9231
9232         * Register default ciphers and stuff when using -C option with
9233           the server.  Affected file sildc/silcd.c.
9234
9235         * Put back the servers public key filename format, it is better
9236           than the new one.  For now, the client keys are saved with the
9237           new filename format.  The affected file silc/client_ops.c.
9238
9239         * Implemented the Cipher API for the rest of the ciphers that
9240           did not implement it or implemented it the wrong way.
9241
9242 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9243
9244         * Register default ciphers and stuff when using the -S option
9245           in the client.  Affected file silc/silc.c.  Same also when
9246           creating new key pair with -C option.
9247
9248 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9249
9250         * Fixed the silc_verify_public_key client operation function to
9251           save the public keys differently.  The fingerprint is now
9252           used as filename and not the hostname.  This way also the
9253           client keys are saved uniquely and not with hostnames.  The
9254           affected file is silc/client_ops.c.
9255
9256         * Trimmed the silc_hash_fingerprint function to remove extra
9257           whitespaces from the end of the fingerprint.  The affected
9258           file is lib/silccrypt/silchash.c.
9259
9260         * Updated TODO.
9261
9262         * Added silc_cipher_register_default function to register all
9263           default ciphers.  It can be used when configuration files
9264           does not exist and the application does not want any specific
9265           ciphers in any specific order.
9266
9267           The SilcDList is now used as silc_cipher_list dynamically
9268           allocated cipher list.  Removed the static list all together
9269           and now all ciphers must be allocated to the dynamic list.
9270           The silc_cipher_alloc routine was changed to check only the
9271           dynamic list.
9272
9273           All silc_cipher_* routines that used to return int returns
9274           now bool.
9275
9276           The affected files lib/silccrypt/silccrypt.[ch].
9277
9278         * The same thing was done to silc_hash_* as for silc_cipher_*
9279           routines.  Affected files lib/silccrypt/silchash.[ch].
9280
9281         * The same thing was done to silc_pkcs_* as for silc_cipher_*
9282           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
9283           Added also silc_pkcs_[un]register[_default] functions.
9284           Removed the data_context from the PKCS API.
9285
9286         * Added silc_hmac_register_default function to register default
9287           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
9288           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
9289           to unregister all hmacs at once.
9290
9291         * Register the default ciphers, hash functions, PKCSs and HMACs
9292           if client's configuration file does not exist.  The affected
9293           file silc/silc.c.
9294
9295         * The client did not load the hash functions from the SIM
9296           modules at all.  Added support for this.  Affected file is
9297           silc/clientconfig.c.
9298
9299         * When decoding public key with silc_pkcs_public_key_decode, check
9300           the supported algorithm only if PKCS are registered.  Affected
9301           file lib/silccrypt/silcpkcs.c.  The same was done with the
9302           silc_pkcs_private_key_decode.
9303
9304         * Fixed the SILC List routines to keep the list always in order.
9305           It used to change the list's order when traversing the list but
9306           not it preserves the order.  Affected file lib/trq/silclist.h.
9307
9308 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9309
9310         * Added the client library to use the SilcSocketConnection's
9311           reference counter (by silc_socket_dup) to prevent the bug that
9312           the socket object may be freed underneath async operation.
9313
9314         * The name resolv library checking fixes in the configure.in.pre.
9315           The patch by salo.
9316
9317         * Created new version of the protocol drafts for future
9318           development. The -03 drafts are the ones that will be changed
9319           in the trunk now and the -02 will remain as they are.
9320
9321         * Send list of CUMODE notifys to the router when announcing
9322           the channel users to the router.  Affected file silcd/server.c.
9323           If the router receiving channel founder CUMODE for a channel
9324           that already has channel founder it will send CUMODE notify
9325           to the sender to remove the channel founder rights from the
9326           announced client.  Affected file silcd/packet_receive.c.
9327
9328         * The CUMODE notify may now use Server ID as well as the entity
9329           who changes the mode.  Updated protocool specs.
9330
9331         * Updated INSTALL and README files.
9332
9333 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9334
9335         * New web pages in the http://silc.pspt.fi.  The pages was
9336           designed by salo.
9337
9338         * Updated CREDITS.
9339
9340 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9341
9342         * Implemented the [DenyConnectin] config section in the server.
9343           Added silc_server_config_denied_conn to check whether incoming
9344           connection is denied.  Affected file silcd/serverconfig.[ch].
9345
9346         * Do not check the ports when checking the incoming configuration
9347           data if the port is 0, meaning any.  Affected file is
9348           silcd/serverconfig.c.
9349
9350 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9351
9352         * Fixed buffer overflow in silc_string_compare in the file
9353           lib/silcutil/silcutil.c.
9354
9355         * Fixed double free in silc_server_command_leave in the file
9356           silcd/command.c.
9357
9358 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9359
9360         * Fixed the version checking in the server.  Affected file is
9361           silcd/protocol.c.
9362
9363 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9364
9365         * Fixed the configuration data fetching when accepting new
9366           connections in the server.  Affected file silcd/server.c.
9367
9368 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9369
9370         * Added `sender_entry' argument to the function
9371           silc_server_packet_relay_to_channel so that we can check
9372           whether some destination actually belongs to the same route
9373           the sender belongs (ie, we must not resend the packet to the
9374           sender).  Affected file silcd/packet_send.[ch].
9375
9376         * Added `servername' field to the SilcClientEntry in the server
9377           to hold the name of the server where client is from.  Affected
9378           file is silcd/idlist.h.
9379
9380 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9381
9382         * Moved the channel message encrypting in the router betwen
9383           router connections from silc_server_channel_message to the
9384           silc_server_packet_relay_to_channel since we want to check
9385           whether we have anybody channel before encrypting anything.
9386           Affected files silcd/packet_[receive/send].c.
9387
9388 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9389
9390         * Fixed the [AdminConnection] server config section to support
9391           multiple entries.  Affected file silcd/serverconfig.c.
9392
9393         * Added support into the server to check the validity of the
9394           incoming connection before executing any KE or authentication
9395           protocols.
9396
9397         * The connection configuration is now saved to the KE and
9398           connection auth protocol contexts and not fetched anymore in
9399           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
9400
9401         * The local hosts listenning address and port is also resolved
9402           now when starting the server.  We want to have the socket object
9403           to include the real address and port for the listener.  Added
9404           new function silc_net_check_local_by_sock into the files
9405           lib/silcutil/silcnet.[ch].
9406
9407         * Fixed a broadcast bug in server -> do not broadcast if we
9408           are standalone.
9409
9410         * Fixed a routing bug.  Do not route broadcast packets ever.
9411           Broadcast packets must be processed always and not routed since
9412           they may be destined to some other host than yourself and thus
9413           would get routed without no good reason.  Affected file is
9414           silcd/server.c.
9415
9416         * Added function silc_server_config_is_primary_route to check
9417           whether primary router connection has been configured (a router
9418           configuration that we are initiating).  If there is not, we
9419           will assume that there is only two routers in the SILC network
9420           and we will use the incoming router connection as our primary
9421           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
9422
9423         * Changed the order of the broadcasting.  Broadcast _after_ the
9424           packet has been processed not before.  Affected file is
9425           silcd/server.c.
9426
9427         * Fixed a [ClientConnection] parsing bug.  The port was never
9428           parsed correctly thus resulting to port 0.  Affected file
9429           silcd/serverconfig.c.
9430
9431         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
9432           argument and did not set the broadcast packet flag.  Affected
9433           file silcd/packet_send.c.  Fixed same bug in the function
9434           silc_server_send_notify as well.
9435
9436         * If we receive NEW_ID packet for our own ID in the server, ignore
9437           the packet.
9438
9439 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9440
9441         * Updated TODO.
9442
9443         * Removed the nickname from the Private Message Payload.
9444           Updated the code and the protocol specs.
9445
9446         * Updated protocol specs for submitting to the IETF.
9447
9448         * Tweaked the Random Number Generator a bit.  Affected file
9449           lib/silccrypt/silcrng.c.  Exported a new function
9450           silc_rng_[global]_add_noise which can be used to add more
9451           noise to the RNG.
9452
9453 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9454
9455         * Do not parse packets with different timeout when protocol
9456           is active -> may cause problem with rekey.  Affected file
9457           silcd/server.c.
9458
9459         * When server receives signoff notify it must not create
9460           new channel key if the client is on any channels since the
9461           sender of the signoff notify will create it.
9462
9463 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9464
9465         * Added printing of error messages during SKE protocol from the
9466           failure packet sent by server during SKE.  Affected file
9467           silc/client_ops.c.
9468
9469         * Removed the client's failure_callback handling with timeout
9470           and handle it immediately when received.
9471
9472         * The SKE library returned wrong type in SUCCESS and FAILURE
9473           packets.  They must be 32 bit MSB not 16 bit MSB.
9474
9475 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9476
9477         * Ok, rewrote the logic of the re-key and now it seems to work.
9478           I tested it on high traffic with frequent re-keys without
9479           problems.  Added hmac_receive (and renamed hmac to hmac_send)
9480           in SilcClientConnection in lib/silcclient/client.h and
9481           in SilcIDListData in silcd/idlist.h.  Also, removed the
9482           SilcPacketParserContext's cipher and hmac fields as they are
9483           not needed anymore and actually caused some problems when
9484           the ciphers and hmac's changed underneath the packet parser.
9485
9486 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9487
9488         * If re-key protocol is active then process the incoming packets
9489           synchronously since we must assure that icoming packets encrypted
9490           with the old key is processed before the new keys is set to
9491           use.  This is true other packets than for REKEY packets.
9492           Affected file silcd/server.c.  The same was done to client library
9493           as well, affected file lib/silcclient/client.c.
9494
9495 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9496
9497         * Fixed bug in client and server to accept the force send if
9498           the packet is send from silc_[server/client]_packet_process
9499           function.  Otherwise the packets are never delivered, oops.
9500
9501 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9502
9503         * Disable force sending of packets when REKEY protocol is active.
9504           We must assure that no packet is sent directly when rekey is
9505           performed.  All packets must be sent through packet queue.
9506           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
9507           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
9508           function is silc_[server/client]_packet_send_real to check
9509           the situation.
9510
9511         * Replaced the SIM paths from example config files to
9512           /usr/local/modules.  Also, make install creates now
9513           /usr/local/silc/logs directory to hold all the SILC server
9514           logs.
9515
9516 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9517
9518         * Made the configure.in.pre work on Solaris.  Patch by salo.
9519
9520         * Made all ciphers compatible with non-x86 machines.  Defined
9521           CBC mode macros into lib/silccrypt/ciphers_def.h.
9522
9523 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9524
9525         * Fixed the make install.
9526
9527 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9528
9529         * When MAC computation fails the silc_packet_decrypt returned 0
9530           even though it was supposed to return -1.  Fixed this.  The
9531           affected file is lib/silccore/silcpacket.c.
9532
9533         * Do not replace the config files in /etc/silc (in make install)
9534           if they already exist.  Affected file ./Makefile.am.
9535
9536         * Do not send re-key packets immediately but through packet queue.
9537           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
9538
9539         * Changed silc_net_check_host_by_sock to return FALSE if the
9540           IP/DNS could not be resolved.  Though, it returns the IP address
9541           now even if it could not resolve it (but returns also FALSE).
9542           Affected file lib/silcutil/silcnet.[ch].
9543
9544 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9545
9546         * Added silc_pkcs_decode_identifier to decode the public key's
9547           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
9548           Added also silc_pkcs_free_identifier.  Added also new context
9549           SilcPublicKeyIdentifier.
9550
9551         * Added -S option to the silc client.  It is used to dump the
9552           contents of the specified public key file.
9553
9554         * Changed the PKCS api to return the public key length when
9555           setting the public key.
9556
9557         * Fixed a fatal bug in the public and private key file loading.
9558           Affected file lib/silccrypt/silcpkcs.c.
9559
9560         * Execute the packet parsing for client with zero (0) timeout
9561           if the protocol is active.  Affected file silcd/server.c.
9562
9563 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9564
9565         * Made the key generation options to the silcd program.  Added
9566           -C option, equivalent to client's option.
9567
9568         * Added new [ServerKeys] config section to the server.  It
9569           configures the server's public and private key.
9570
9571         * Defined generic Public Key Payload into the protocol
9572           specification to send specific type of public keys and
9573           certificates.
9574
9575         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9576           public key or certificate.
9577
9578         * Implemented the GETKEY command to the server and to the
9579           client library and on user interface.
9580
9581 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9582
9583         * Made preliminary `make install' work.
9584
9585 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9586
9587         * Added SilcServerRekey context into silcd/idlist.h.
9588
9589         * Added the PFS support as defined in the specification to the
9590           SKE protocol.  Affected files lib/silcske/*.c.
9591
9592         * Added `ske_group' field to the SilcServerRekey context to hold
9593           the number of the SKE group that is used with PFS in re-key.
9594           Affected file silcd/idlist.h.
9595
9596         * Added PFS re-key support to the server.  Affected file is
9597           silcd/protocol.c.
9598
9599         * Added silc_protocol_cancel to cancel execution of the next
9600           state of the protocol.  Affected file is
9601           lib/silccore/silcprotocol.[ch].
9602
9603         * Added the re-key support with and without PFS to the client
9604           library.  Re-key is performed once in an hour, by default.
9605
9606           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9607           Added silc_client_rekey_callback and silc_client_rekey_final.
9608           Affected files are lib/silcclient/protocol.[ch] and
9609           lib/silcclient/client.[ch].
9610
9611         * Removed the `hmac_key' and `hmac_key_len' fields from the
9612           SilcClientConnection structure; not needed.  Affected file is
9613           lib/silcclient/client.h.
9614
9615         * Updated TODO.
9616
9617 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9618
9619         * Do not ask whether user wants to use the negotiated private key
9620           for private messages, just use it.  Affected file is
9621           silc/local_command.c.
9622
9623         * Added `send_enc_key' and `enc_key_len' fields to the
9624           SilcIDListData structure since they are needed in the re-key
9625           phase.  Affected file is silcd/idlist.[ch].
9626
9627         * Implemented the simple re-key protocol into the server.
9628           Affected files silcd/server.c and silcd/protocol.[ch].  The
9629           re-key will be performed once in an hour, by default.
9630
9631           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9632           Added silc_server_rekey, silc_server_rekey_callback and
9633           silc_server_rekey_final.
9634
9635         * Removed Tunneled flag from the protocol.  Updated the code
9636           and the specifications.
9637
9638         * Adde `pfs' field to the SilcIDListData to indicate whether
9639           the PFS is to be performed in the re-key.  Affected file is
9640           silcd/idlist.h.
9641
9642 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9643
9644         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9645           int64 of at least the xintXX size.  If void * is less that 4
9646           bytes uint32 * will be used.  Defined bool as boolean.
9647
9648         * Changed _ALL_ unsigned long and unsigned int to uint32,
9649           unsgined short to uint16 in the source tree.
9650
9651         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9652           not handle clients that has entry->data.registered == FALSE.
9653           They are not in the network anymore.  Affected file is
9654           silcd/server.c.
9655
9656 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9657
9658         * Implemented the sending of the SERVER_SIGNOFF notify in the
9659           server.  Affected file is silcd/server.c.
9660
9661         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9662           Added also silc_notify_payload_encode_args into the
9663           lib/silccore/silcnotify.[ch].
9664
9665         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9666           Affected file silcd/packet_receive.c.
9667
9668         * Implemented the SERVER_SIGNOFF notify handling in the client
9669           library.  Affected file lib/silcclient/client_notify.c.  Also,
9670           implemnted the printing of the SERVER_SIGNOFF info to the
9671           application.  Affected file silc/client_ops.c.
9672
9673         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9674           if the deleting was successful.  Affected file silcd/idlist.[ch].
9675
9676         * Added support for public key authentication in the connection
9677           authentication protocol in the client library.  Affected file
9678           lib/silcclient/protocol.c.
9679
9680         * Changed the server's silc_idlist_get_clients_by_* interface
9681           to support already allocated array so that new entries may be
9682           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9683           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9684           and command replies.
9685
9686         * All command reply functions in the server now calls the
9687           pending command callback even if error occured.  This way the
9688           error will be delivered to the client as well.  Affected files
9689           silcd/command.c and silcd/command_reply.c.
9690
9691         * Fixed INFO command to return local server's info if no server
9692           was provided.  Affected file lib/silcclient/command.c.
9693
9694         * Removed RESTART command for good.  Updated the code and the
9695           protocol specs.
9696
9697         * Rewrote parts of the task system.  It is a bit simpler now.
9698           Removed unsued task priorities. The affected files are
9699           lib/silcutil/silctask.[ch].
9700
9701 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9702
9703         * Moved the USERS printing from the library to the application.
9704           Affected files lib/silcclient/command.c and silc/client_ops.c.
9705
9706 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9707
9708         * Updated TODO.
9709
9710         * Added channel key re-key support.  The re-key is perfomed
9711           only by the router and is done once in an hour.  Added `rekey'
9712           field to the SilcChannelEntry in the server.  Affected files
9713           silcd/server.c and silcd/idlist.h.
9714
9715         * Added silc_task_unregister_by_context into the file
9716           lib/silcutil/silctask.[ch].
9717
9718 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9719
9720         * Added SILC_UMODE_GONE mode to indicate when the client is not
9721           present in the SILC network.  Added also support to the local
9722           command AWAY that will set this mode.  Added support of showing
9723           "xxx is gone" in WHOIS command.  The USERS command shows the
9724           gone status as well.
9725
9726         * Fixed setting server and router operator privileges in the
9727           server's UMODE command.  Affected file silcd/command.c.
9728
9729         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9730           new KE payload is equivalent to the old KE2 payload.
9731
9732           Cleaned up the SKE Start Payload parsing.  It now uses the
9733           simple buffer unformatting to do the parsing.  A lot faster
9734           now.
9735
9736           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9737           to the SKE that is used to indicate whether both of the SKE
9738           parties should perform authentication.  By default only the
9739           responder performs authentication.  By setting this flag also
9740           the initiator must do authentication.  By default it is unset
9741           since in normal SKE case, client to server connection, only
9742           the responder should do authentication.  When doing SKE between
9743           two clients both should perform authentication.  Updated the
9744           code and the protocol specs.
9745
9746         * A little fix to IDENTIFY command in the server.  Search the
9747           client first by hash not nickname.  Affected file is
9748           silcd/command.c.
9749
9750         * Fixed the silc_client_close_connection to support closing
9751           the client to client connections wihtout deleting too much
9752           data.  Affected file lib/silcclient/client.c.
9753
9754         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9755           are received if protocol used to be active but is not anymore
9756           the application would crash due to NULL pointer dereference.
9757           Affected files silcd/server.c and lib/silcclient/client.c.
9758
9759         * Added `hash' field to the SilcClientConnection to include
9760           the hash function negotiated in the SKE protocol.
9761
9762         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9763           to set the channel founder authentication data.  A client can
9764           claim the founder rights later by providing the authentication
9765           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9766           This way the channel founder can regain the channel founder
9767           privileges even it is left the channel.  This works only on
9768           local server and the client must be connected to the same
9769           server to be able to regain the founder rights.  Updated the
9770           protocol specs accordingly.
9771
9772           Added support to the CMODE command in the client to set the
9773           founder auth data.  Read the README to see how to set it.
9774
9775           Added support to the CUMODE command to claim the founder
9776           rights.  Read the README to see how to do it.
9777
9778           Added support for the founder authentication to the Channel
9779           Entry in the server.  Affected file silcd/idlist.h.
9780
9781           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9782           server's CMODE command.  Affected file silcd/command.c.
9783
9784         * Added the following new functions into lib/silccore/silcauth.[ch]:
9785           silc_auth_get_method and silc_auth_get_data.
9786
9787         * The server now saves the remote hosts public key to the
9788           SilcIDListData pointer.  Affected file silcd/protocol.c.
9789
9790         * The normal server now does not remove the channel entry from
9791           the cache if the founder authentication data is set.  It used
9792           to remove it if the founder was the last one on the channel on
9793           the server and left the channel.  The auth data is saved and
9794           if the channel is re-joined later the old entry is used with
9795           the old auth data.  Affected files silcd/command_reply.c and
9796           silcd/server.c.
9797
9798         * Removed the `pkcs' field from the SilcIDListData structure
9799           in the server; it is not used.  Affected file silcd/idlist.h.
9800
9801 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9802
9803         * Fixed packet processing on slow links.  Partial packets were
9804           never re-processed because the incoming data buffer was cleared
9805           by the application.  Application must not directly clear the
9806           sock->inbuf, the packet processing routines handle it.  Fixed
9807           this in client library and in server.
9808
9809 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9810
9811         * Fixed the WHOIS and IDENTIFY send reply function to really
9812           check whether to send list or just one entry.  Affected file
9813           silcd/command.c.
9814
9815         * Cleaned up the LEAVE command's channel key distribution.  The
9816           affected file silcd/command.c.
9817
9818         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9819           can enforce the channel mode as well.  In that case the ID
9820           includes the ID of the server.  The code now enforces the
9821           mode change if the router have different mode than the server.
9822
9823         * The notify client operation with CMODE_CHANGE notify can now
9824           return NULL client_entry pointer if the CMODE was not changed
9825           by client.  Application must check for this.
9826
9827         * Added <Server ID> argument to INFO command to support server
9828           info fetching by Server ID.
9829
9830         * Added silc_server_announce_get_channel_users to get assembled
9831           packets of channel users of the specified channel.  Affected
9832           file silcd/server.[ch].
9833
9834         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9835           was freed underneath the ID Cache.
9836
9837         * Re-announce clients when the server received CHANNEL_CHANGE
9838           notify from the router.  Affected file silcd/packet_send.c.
9839
9840 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9841
9842         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
9843           crashed since it did not handle the fact that there is no cipher
9844           called "3" and didn't check the error condition.  Now fixed.
9845
9846         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
9847           flag.  It can be used to send message requests.
9848
9849 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9850
9851         * Implemented the RESTART command in the client.
9852
9853         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
9854           notice type messages.  Added notice printing to the user
9855           interface.
9856
9857         * The channel keys are not re-generated if the channel's mode
9858           is PRIVKEY, ie private key on the channel exists.  Affected
9859           files silcd/server.c and silcd/command.c.
9860
9861         * Fixed a little bug in channel message delivery when channel
9862           private keys are set in the server.  Affected file is
9863           silcd/packet_send.c.
9864
9865         * Changed the setting on channel->on_channel = TRUE from the
9866           silc_client_save_channel_key to the JOIN command reply.  The
9867           key payload is not received if the private channel key is set.
9868           Affected file lib/silcclient/command_reply.c and the
9869           lib/silcclient/client_channel.c.
9870
9871         * When the CMODE_CHANGE notify is sent and the channel private
9872           key mode is removed the channel key must be re-generated in
9873           other cells as well.  Added this support for the router in the
9874           silcd/packet_receive.c.
9875
9876         * Added new local command NOTICE to send notice message on
9877           channel.  Affected file silc/local_command.[ch].
9878
9879 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9880
9881         * Added new local command ME to the client.  It is used to send
9882           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
9883           some action.  Affected file silc/local_command.[ch].
9884
9885         * Changed channel_message and private_message client operations
9886           to deliver the message flags to the application.  Added also
9887           the `flags' arguments to the silc_client_send_channel_message
9888           and silc_client_send_private_message functions.  Affected file
9889           silcapi.h.
9890
9891 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9892
9893         * Redefined the Private Message Payload to support private message
9894           keys and to support the new private message flags.  Updated
9895           the protocol specs.  Flags makes it possible to have for example
9896           CTCP style messages.
9897
9898         * Added new type SilcPrivateMessagePayload and defined an API
9899           for it in the lib/silcclient/silcprivate.[ch].
9900
9901         * Tested private message private keys successfully.  Tested the
9902           private message key set, unset and list commands with the new
9903           KEY command.
9904
9905         * Redefined the Channel Message Payload to include the channel
9906           message flags (equal with private message flags) to support
9907           for example CTCP style messages.
9908
9909         * Defined some of the message (for channel and private message)
9910           flags.  Updated the protocol specs and added the flags to the
9911           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
9912
9913 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9914
9915         * Added SilcKeyAgreementStatus type to the key agreement routines
9916           to indicate the current status and error if one occured.
9917           The status types are defined in the lib/silcclient/silcapi.h.
9918
9919         * Added new local command KEY that is used to set and unset private
9920           keys for channels, set and unset private keys for private messages
9921           with remote clients and to send key agreement requests and
9922           negotiate the key agreement protocol with remote client.  The
9923           key agreement is supported only to negotiate private message keys,
9924           it currently cannot be used to negotiate private keys for channels,
9925           as it is not convenient for that purpose.
9926
9927         * Fixed a minor pending callback setting bug in the function
9928           silc_client_get_client_by_id_resolve, now the function works.
9929           Affected file lib/silcclient/idlist.c.
9930
9931         * Added function silc_net_get_local_port to get local bound
9932           port by socket.  Added to lib/silcutil/silcnet.[ch].
9933
9934         * Added `sockets' and `sockets_count' fields to the SilcClient
9935           object.  They hold the sockets of the listenning sockets in
9936           the client.  Listenning sockets may be for example the key
9937           agreement server.  Affected file lib/silcclient/client.[ch].
9938           Added functions the silc_client_add_socket and the
9939           silc_client_del_socket.  They are exported to the application
9940           as well.
9941
9942         * Added ~./silc/clientkeys to support other client's public keys.
9943
9944         * Renamed verify_server_key client operation to verify_public_key
9945           and added one argument to indicate the type of the connection
9946           (server, client etc.).
9947
9948 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9949
9950         * Added silc_server_connection_auth_request to handle the
9951           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
9952           silcd/packet_receive.[ch].
9953
9954         * Added silc_server_send_connection_auth_request into the
9955           silcd/packet_send.c to send the connection auth request packet.
9956
9957         * Cleaned up the silcd/protocol.c a bit and fixed some memory
9958           leaks.
9959
9960         * Fixed the public key authentication in responder side in the
9961           server.  The `auth_data' pointer includes the SilcPublicKey
9962           not the path to the public key.  Affected file silcd/protocol.c.
9963
9964         * Implemented the public key authentication in the initiator side
9965           in the server.  Affected file silcd/protocol.c.
9966
9967         * Removed the [RedirectClient] config section from the server
9968           configuration.  Is not needed and I don't want to implement it.
9969
9970 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9971
9972         * Cleaned up the CMODE command in the server.  It now works
9973           correctly and supports all the modes defined in the protocol.
9974           Affected file is silcd/command.c.
9975
9976         * Added `hmac_name' field to the SilcChannelEntry in the server
9977           to hold the default HMAC of the channel.  It can be set when
9978           creating the channel (with JOIN command).  Affected files
9979           silcd/idlist.[ch].
9980
9981         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
9982           type to indicate the change of the current cipher and hmac
9983           on the channel.  Client can safely ignore the <cipher> argument
9984           (if it chooses to do so) since the CHANNEL_KEY packet will
9985           force the channel key change anyway.  The <hmac> argument is
9986           important since the client is responsible of setting the new
9987           HMAC and the hmac key into use.
9988
9989         * Fixed the CMODE command in the client library as well.
9990
9991         * Tested CMODE command in router environment successfully.
9992
9993 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9994
9995         * Show the version of the remote client (or server) when connecting
9996           to the server.  It is logged to the log file.  Affected file
9997           is silcd/protocol.c.
9998
9999         * Fixed the KILLED notify handling in the client library.  The
10000           client must be removed from all channels when receiving the
10001           KILLED notify.
10002
10003           Also, do not remove the client entry when giving the KILL
10004           command but when the KILLED notify is received.
10005
10006         * Removed silc_idlist_find_client_by_nickname from the server.
10007           Not needed anymore.  Affected files silcd/idlist.[ch].
10008
10009         * Implemented the CHANNEL_CHANGE notify type handling to the
10010           server.  Affected file silcd/server.c.
10011
10012         * Updated TODO.
10013
10014 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10015
10016         * Added silc_server_send_notify_invite to send the INVITE
10017           notify between routers.
10018
10019         * Implemented the INVITE command correctly to the server.
10020
10021         * Implemented the INVITE notify type handling in the server.
10022
10023         * Implemented the INVITE command to the client library and on the
10024           user interface.
10025
10026 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10027
10028         * Added function silc_server_get_client_resolve to find the
10029           client entry by ID from all ID lists and then resolve it
10030           (using WHOIS) if it cannot be found.  Affected file is
10031           silcd/server.[ch].
10032
10033 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10034
10035         * Implemented the BAN command to the client library.
10036
10037         * The JOIN command in the server now checks the invite list
10038           and the ban list.
10039
10040         * Changed the silc_command_reply_payload_encode_va and the
10041           silc_command_payload_encode_va to support that if argument is
10042           NULL it ignores and checks the next argument.  Affected file
10043           lib/silccore/silccommand.c.
10044
10045         * Added silc_server_send_notify_ban to send the BAN notify
10046           type between routers.
10047
10048         * Chaned the silc_notify_payload_encode to support that if
10049           argument is NULL it ignores and checks the next argument.
10050           Affected file lib/silccore/silcnotify.c.
10051
10052         * Tested ban lists in router environment successfully.
10053
10054 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10055
10056         * Implemented BAN command to the server, in silcd/command.[ch].
10057
10058         * Removed the BAN and INVITE_LIST modes from the CMODE command
10059           in the server code.
10060
10061         * Added function silc_string_match to regex match two strings.
10062           Affected files lib/silcutil/silcutil.[ch].
10063
10064 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10065
10066         * Redefined parts of the SilcChannelEntry in the server to support
10067           the new ban and invite lists.
10068
10069 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10070
10071         * Redefined the INVITE command.  The same command can be used to
10072           invite individuals to the channel but also to manage the invite
10073           list of the channel (to add to and remove from the invite list).
10074           Updated the protocol specs.
10075
10076         * Added new command SILC_COMMAND_BAN that can be used to manage
10077           the ban list of the channel.  Updated the protocol specs.
10078
10079         * Removed the channel modes: the SILC_CMODE_BAN and the
10080           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
10081           in the CMODE command.  The equivalent features are now available
10082           using INVITE and BAN commands.  Updated the protocol specs.
10083
10084         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
10085           in the network about change in the current ban list.  The notify
10086           type is not used by the client.
10087
10088         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
10089           support the invite lists.
10090
10091 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10092
10093         * Added new function silc_string_regexify that converts string
10094           including wildcard characters into regex string that can
10095           be used by the GNU regex library.  Added into the file
10096           lib/silcutil/silcutil.[ch].
10097
10098           Added silc_string_regex_combine to combine to regex strings
10099           into one so that they can be used as one regex string by
10100           the GNU regex library.  Added into the file
10101           lib/silcutil/silcutil.[ch].
10102
10103           Added silc_string_regex_match to match two strings.  It returns
10104           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
10105
10106 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10107
10108         * Imported GNU regex to the soruce tree into lib/contrib.
10109           Fixed some compiler warning from the regex.c.
10110
10111 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10112
10113         * Fixed MOTD command in the server to work in router environment.
10114
10115         * Fixed the MOTD command in the client library to support
10116           the server argument in the command.
10117
10118         * Added `nickname_len' argument to the silc_idlist_add_client
10119           in the server, as the `nickname' argument may be binary data
10120           (it may be hash).
10121
10122         * Added silc_idlist_get_channels to return all channels from
10123           the ID list.
10124
10125         * Implemented LIST command to the server.  Affected file is
10126           silcd/command.c.
10127
10128         * Implemented the LIST command to the client library and on the
10129           user interface.
10130
10131         * Added [<user count>] argument to the LIST command reply.
10132           With private channels the user count is not shown.
10133
10134         * Updated TODO and README.
10135
10136 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10137
10138         * The client entry's data.registered must be TRUE even with
10139           global client entry on global client list.  The data.registered
10140           is used to check whether the client is anymore in the network,
10141           for example with WHOWAS command so it must be valid.
10142
10143         * Fixed the WHOWAS command in the server.  It now actually works
10144           in router environment.  Added function into silcd/command_reply.c
10145           silc_server_command_reply_whowas_save.
10146
10147         * Added silc_idlist_purge function to the silcd/idlist.c
10148           to periodically purge the ID Cache.
10149
10150         * Fixed INFO command in the server.  It works now in router
10151           environment.  Added <server name> argument to the INFO command
10152           reply.  Updated the protocol specs.
10153
10154         * Fixed minor bug in silc_idcache_purge to not purge if the
10155           expire value is zero.
10156
10157         * Fixed various bugs in WHOIS and IDENTIFY command handling as
10158           they were buggy because of the WHOWAS information.
10159
10160         * Fixed local command MSG to handle the async resolving of
10161           the remote client properly.  It used to fail the first MSG.
10162           Affected file silc/local_command.c.
10163
10164         * Added `data_len' field to SilcIDCache context.
10165
10166 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10167
10168         * Update TODO.  Todo in commands in the server.
10169
10170 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10171
10172         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
10173           used by routers as broadcast packet to inform other routers
10174           about the changed user mode.
10175
10176           Implemented the notify handling in the server.  Affected file is
10177           silcd/packet_receive.c.  Added the function
10178           silc_server_send_notify_umode to the silcd/packet_send.[ch].
10179
10180         * Added new generic Channel Payload and deprecated the New Channel
10181           Payload.  The New Channel Payload is now the generic Channel
10182           Payload.
10183
10184         * Added new argument `mode' to the silc_server_send_new_channel
10185           as it is required in the Channel Payload now.
10186
10187         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
10188           and created a new and real SilChannelPayload to represent the
10189           new generic Channel Payload.  Implemented the encode/decode
10190           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
10191
10192         * Added silc_server_get_client_channel_list to return the list
10193           of channels the client has joined for WHOIS command reply.
10194           Affected file silcd/server.[ch].
10195
10196         * Implemented the channel list sending in the WHOIS command reply
10197           in server and in the client.
10198
10199           Implemented the channel list displaying on the user interface
10200           as well.  Affected file silc/client_ops.c.
10201
10202         * Added silc_channel_payload_parse_list to parse list of Channel
10203           Payloads.  It returns SilcDList list of SilcChannelPayloads.
10204           Client for example can use this function to parse the list of
10205           channels it receives in the WHOIS command reply.  The caller
10206           must free the list by calling silc_channel_payload_list_free.
10207           Affected files lib/silccore/silcchannel.[ch].
10208
10209 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10210
10211         * Added one new argument <user mode> to the WHOIS command reply
10212           to return the mode of the user in SILC.  Updated the protocol
10213           specs.
10214
10215           Implemented it to the server and client.
10216
10217 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10218
10219         * Fixed the mode printing on the user interface on joining.
10220           Affected file silc/client_ops.c.
10221
10222         * Implemented the UMODE command and user modes in general to the
10223           client library and to the user interface.
10224
10225         * Implemented the UMODE command to the server.
10226
10227         * The server now sends UNKNOWN_COMMAND error status if client sends
10228           unknown command.  Affected file silcd/command.c.
10229
10230         * All server commands now handle the command identifier the right
10231           way when sending the command reply to the client.  The client can
10232           use to identify the command replies with the identifier.
10233
10234 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10235
10236         * Added silc_server_get_client_route to resolve the route to
10237           the client indicated by the client ID.  Affected file is
10238           silcd/server.[ch].
10239
10240         * Added silc_server_relay_packet as general function to relay
10241           packet to arbitrary destination.  This deprecates functions
10242           like _send_private_message_key, _relay_notify etc.  Affected
10243           file is silcd/packet_send.[ch].
10244
10245           Removed silc_server_send_key_agreement,
10246           silc_server_send_private_message_key and
10247           silc_server_packet_relay_notify functions from the file
10248           silcd/packet_send.[ch].
10249
10250         * Updated TODO.
10251
10252         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
10253           server.  Affected file silcd/packet_receive.[ch].
10254
10255         * Implemented the KILL command to the client.  Implemented the
10256           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
10257           Affected files lib/silcclient/command[_reply].c and
10258           lib/silcclient/client_notify.c.  Implemented the KILL notify
10259           printing in the user inteface.
10260
10261         * Fixed a lot silc_parse_nick memory leaks from the client
10262           library in the file lib/silcclient/command.c.
10263
10264         * Changed the silc_server_send_notify_on_channels's `sender'
10265           argument from SilcSocketConnection to SilcClientEntry to
10266           check the sender as entry and not as connection object and not
10267           to send to the client provided as argument.  The affected file
10268           is silcd/packet_send.[ch].
10269
10270         * The notify packets that are destined directly to the client used
10271           to not to be processed by the server.  Now changed that and the
10272           server processes all notify packets.  After relaying the packet
10273           to the client the notify packet is processed in the server.
10274
10275         * The silc_server_free_client_data now checks whether there is
10276           pending outgoing traffic for the client and purges the data to
10277           the network before removing the client entry.
10278
10279 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10280
10281         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
10282           an client is killed from the SILC Network.  Updated the protocol
10283           specs accordingly.
10284
10285           Added new function silc_server_send_notify_killed to the
10286           silcd/packet_send.[ch].
10287
10288         * Added function silc_server_packet_relay_notify to relay notify
10289           packets that are destined directly to a client.  In this case
10290           the server does not process the notify packets but merely relays
10291           it to the client.  Affected file silcd/packet_send.[ch].
10292
10293           Added also silc_server_packet_process_relay_notify to check
10294           whereto relay the notify.  Affected file is
10295           silcd/packet_receive.[ch].
10296
10297         * Implemented the KILL command to the server.
10298
10299         * Updated TODO.
10300
10301         * Added the backup schema desgined last fall to the protocol
10302           specs for everyone to see.  The specification is in the
10303           *-spec-xx.txt draft and the packet type definitions for the
10304           backup routers is in *-pp-xx.txt draft.  Thusly, added also
10305           new packet type SILC_PACKET_CELL_ROUTERS.
10306
10307         * A big security problem in the implementation discovered.  The
10308           signoff of an client did not cause new channel key generation
10309           which it of course should've done.  The channel keys must be
10310           always re-generated when client leaves (or signoffs) the channel.
10311           The silc_server_remove_from_channels funtion now handles
10312           the channel key re-generation.
10313
10314         * Added `sender' argument to the silc_server_send_notify_on_channels
10315           to not to send the client provided as argument.  Affected file
10316           silcd/packet_send.[ch].
10317
10318 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10319
10320         * Implemented OPER and SILCOPER commands into the server and
10321           the client library.
10322
10323         * Added silc_auth_verify and silc_auth_verify_data to verify
10324           the authentication directly from the authentication payload.
10325           It supports verifying both passphrase and public key based
10326           authentication.  Affected file lib/silccore/silcauth.[ch].
10327
10328         * Added `hash' field to the SilcIDListData structure.  It is the
10329           hash negotiated in the SKE protocol.  Affected file is
10330           silcd/idlist.[ch].
10331
10332         * Slight redesigning of the SilcAuthPayload handling routines.
10333           Do not send SilcPKCS but SilcPublicKey as argument.
10334
10335         * Implemented the public key authentication support to the
10336           serverconfig.  The public key is loaded from the provided path
10337           and saved as authentication data to void * pointer.  Thus,
10338           changed the unsigned char *auth_data to void *auth_data;
10339
10340         * Fixed SHUTDOWN command to send the reply before the server
10341           is shutdown. :)  Affected file silcd/command.c.
10342
10343         * Fixed fatal bug in CONNECT command.  The hostname was invalid
10344           memory and server crashed.  Affected file silcd/command.c.
10345
10346         * Fixed fatal bug in CLOSE command.  The server_entry became
10347           invalid but was referenced later in the command.  Affected file
10348           silcd/command.c.
10349
10350 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10351
10352         * Fixed fatal bug in failure packet handling.  Server ignored
10353           the failure and thus crashed when it came.
10354
10355         * Updated TODO.
10356
10357 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10358
10359         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
10360           that the command may be executed only once in (about) 2 seconds.
10361           The old SILC_CF_LAG flag is same but allows command bursts up
10362           to five before limiting.
10363
10364           Added the support for CF_LAG and CF_LAG_STRICT flags to the
10365           server code.  Various commands now includes the CF_LAG_STRICT
10366           flag to disallow any kind of miss-use of the command.
10367
10368         * Fixed the silc_buffer_unformat to not to allocate any data
10369           if the length of the data is zero.  It used to allocate the
10370           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
10371
10372 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10373
10374         * Changed the format of AdminConnection configuration section
10375           in the server.  Added username of the admin to the format.
10376           Affected files silcd/serverconfig.[ch].
10377
10378           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
10379           to return admin configuration data by host, username and/or
10380           nickname.
10381
10382 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10383
10384         * Implemented WHOWAS command to the server.  Added the functions:
10385
10386           silc_server_command_whowas_parse,
10387           silc_server_command_whowas_send_reply,
10388           silc_server_command_whowas_from_client and
10389           silc_server_command_whowas_from_server
10390
10391         * Added <Client ID> argument to the WHOWAS command reply.  Updated
10392           the protocol specs accordingly.
10393
10394         * Implemented WHOWAS command and command_reply to the client
10395           library.
10396
10397           Implemented the WHOWAS printing on the user interface.
10398
10399 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10400
10401         * Added new argument to the WHOWAS command reply, the real name.
10402           It is an optional argument.  Updated the protocol specs.
10403
10404         * Added SilcIDCacheDestructor callback that is registered when
10405           the SilcIDCache is allocated.  The callback is called when
10406           an cache entry in the ID Cache expires, or is purged from the
10407           cache.  Added into lib/silccore/idcache.[ch].
10408
10409           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
10410           to destruct the client entries when the cache entry expires.
10411           Other ID Cache's in server and in the client library ignores
10412           the destructor.
10413
10414         * If the ID Cache entry's `expire' field is zero then the entry
10415           never expires.  Added boolean `expire' argument to the
10416           silc_idcache_add function in the lib/silccore/idcache.[ch].
10417           If it is TRUE the default expiry value is used.
10418
10419         * Added silc_server_free_client_data_timeout that is registered
10420           when client disconnects.  By default for 5 minutes we preserve
10421           the client entry for history - for WHOWAS command.
10422
10423 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10424
10425         * Added support to the server to enforce that commands are not
10426           executed more than once in 2 seconds.  If server receives
10427           commands from client more frequently, timeout is registered
10428           to process the commands.  Affected file silcd/command.c.
10429           Added new function silc_server_command_process_timeout.
10430
10431         * Changed NICK_NOTIFY handling in client library to check that
10432           if the client's nickname was changed, so there is no need to
10433           resolve anything from the server.
10434
10435         * Removed error printing from the WHOIS and IDENTIFY commands.
10436           If error occurs then it is ignored silently in the client library.
10437           The application, however, may map the received error to
10438           human readable error string.  The application currently maps
10439           the NO_SUCH_NICKNAME error to string.
10440
10441         * Made the command status message public to the application.  Moved
10442           them from lib/silcclient/command_reply.c to
10443           lib/silcclient/command_reply.h.  The application can map the
10444           received command status to the string with the
10445           silc_client_command_status_message function.
10446
10447         * Added check to the server to check that client's ID is same
10448           as the Source ID in the packet the client sent.  They must
10449           match.
10450
10451 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10452
10453         * Added dist-bzip hook to the Makefile.am to make bzip2
10454           compressed distributions.
10455
10456 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10457
10458         * Server now enforces the maximum length for the nickname and
10459           the channel as protocol specification dictates.  128 bytes for
10460           nickname and 256 bytes for channel name.
10461
10462         * Moved the WHOIS printing to the application.  The client libary
10463           does not print out the WHOIS information anymore, the application
10464           must do it.  Renamed silc_client_command_reply_whois_print to
10465           the silc_client_command_reply_whois_save.
10466
10467           The client's idle time is also sent to the application now, and
10468           the idle is shown on screen.
10469
10470         * Added silc_client_command_reply_identify_save to save the
10471           received IDENTIFY entries.
10472
10473         * Do not check for channel private keys in message sending and
10474           reception if the channel does not have the PRIVKEY mode set.
10475           Affected file lib/silclient/client_channel.c.
10476
10477 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10478
10479         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
10480           just surfaced after chaning the JOIN procedure.
10481
10482 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10483
10484         * Added silc_client_get_clients_by_list to get client entries
10485           from Client ID list, that is returned for example by JOIN
10486           and USERS command replies.  The application should use this
10487           function for example when JOIN command reply is received to
10488           resolve the clients already on the channel (library does not
10489           do that anymore as USERS command reply is not used in the JOIN
10490           procedure anymore).  Affected files lib/silcclient/silcapi.h and
10491           lib/silcclient/idlist.c.
10492
10493         * JOIN command reply and USERS command reply returns now SilcBuffer
10494           pointers instead of unsigned char pointers when returning
10495           the client list and mode list.
10496
10497         * Added <Client ID> argument to the JOIN command reply, mainly
10498           for the server to identify for which client the command was
10499           originally sent.  Updated protocol specs accordingly.
10500
10501         * Added SilcDlist private_key pointer to the SilcChannelEntry
10502           in the client to support the channel private keys.  Affected
10503           file is lib/silcclient/idlist.h.
10504
10505         * Added SilcChannelPrivateKey argument to the function
10506           silc_client_send_channel_message so that application can choose
10507           to use specific private ke if it wants to.  If it is not provided,
10508           the normal channel key is used, unless private keys are set.
10509           In this case the first (key that was added first) is used
10510           as the encryption key.
10511
10512         * Implemented the support for channel private key handling.
10513           Implemented the following functions:
10514
10515           silc_client_add_channel_private_key,
10516           silc_client_del_channel_private_keys,
10517           silc_client_del_channel_private_key,
10518           silc_client_list_channel_private_keys and
10519           silc_client_free_channel_private_keys
10520
10521           Affected file lib/silcclient/client_channel.c.
10522
10523         * Added the support for the private keys in the channel message
10524           sending and encryption and in the message reception and
10525           decryption.  Affected funtions are
10526           silc_client_send_channel_message and silc_client_channel_message.
10527
10528 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10529
10530         * Added SKE's key verify callback to the client library's
10531           KE protocol context. Affected files lib/silcclient/protocol.[ch].
10532
10533         * Removed the statement that server (or router) must send USERS
10534           command reply when joining to the channel so that the client
10535           knows who are on the channel.  Instead, the client list and
10536           client's mode list is now sent in the JOIN command reply to the
10537           client who joined channel.  This is better solution.
10538
10539         * Added function silc_server_get_users_on_channel and function
10540           silc_server_save_users_on_channel to the silcd/server.[ch].
10541
10542         * Removed function silc_server_command_send_users from the
10543           silcd/command.c.
10544
10545         * Do not show topic on the client library anymore.  The topic is
10546           sent in the command reply notify to the application and the
10547           application must show the topic now.
10548
10549 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10550
10551         * Added client searching by nickname hash into the IDENTIFY and
10552           WHOIS commands in the server as they were clearly missing from
10553           them.  Affected file is silcd/command.c.
10554
10555         * Fixed a bug in private message receiving in the client library.
10556           The remote ID was freed and it wasn't supposed, now it is
10557           duplicated.
10558
10559 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10560
10561         * Minor fix to the channel payload; allocate the data area, as it
10562           needs to be of specific length.
10563
10564         * If the key agreement port is zero then the operating
10565           system will define the bound port.  Affected files are
10566           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10567
10568         * Added new function silc_channel_payload_decrypt into the file
10569           lib/silccore/silcchannel.[ch].
10570
10571         * Moved the channel message etc, check from silc_packet_decrypt
10572           to applications.  The library calls now a generic
10573           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10574           when the packet is either normal or special.  This was done to
10575           allow more wide range of checking that was not allowed when
10576           the code was in library.  Now applications can do virtually any
10577           checks to the packet and return to the library the decision how
10578           the packet should be processed.  Affected files are
10579           lib/silccore/silcpacket.[ch].
10580
10581           Added silc_server_packet_decrypt_check to the server and
10582           silc_client_packet_decrypt_check to the client library.
10583
10584         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10585           to send with specified source and destination information.
10586
10587         * Channel message delivery between routers was broken after the
10588           channel key distribution was fixed earlier.  The channel key
10589           was used be to distributed to other routers as well which is not
10590           allowed by the protocol.  Now this is fixed and channel keys
10591           really are cell specific and the channel message delivery between
10592           routers comply with the protocol specification.
10593
10594         * Fixed various commands in server to check also the global list
10595           for the channel entry and not just the local list.  The affected
10596           file silcd/command.c.
10597
10598 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10599
10600         * Added assert()s to buffer formatting and unformatting routines
10601           to assert (if --enable-debug) when error occurs.  Affected
10602           file: lib/silcutil/silcbuffmt.c.
10603
10604         * Changed to auto-reconnect to check whether the remote host is
10605           router and register the re-connect timeout if it is.  It used
10606           to check that whether we are normal server, but router must do
10607           auto-reconnect with another router as well.  Affected file
10608           silcd/server.c.
10609
10610         * Removed the [<key len>] option from CMODE command as the cipher
10611           name decides the key length, nowadays.  See the defined ciphers
10612           from the protocol specification.
10613
10614         * Added [<hmac>] option to the CMODE command to define the HMAC
10615           for the channel.  Added SILC_CMODE_HMAC channel mode.
10616
10617         * Added [<hmac>] option for the JOIN command so that user can
10618           select which HMAC is used to compute the MACs of the channel
10619           messages.
10620
10621         * Added Hmac field to the Channel Message Payload.  The integrity
10622           of plaintext channel messages are now protected by computing
10623           MAC of the message and attaching the MAC to the payload.  The
10624           MAC is encrypted.  Now, it is clear that this causes some
10625           overhead to the size of the packet but rationale for this is that
10626           now the receiver can verify whether the channel message decrypted
10627           correctly and also when private keys are set for the channel the
10628           receiver can decrypt the packet with several keys and check from
10629           the MAC which key decrypted the message correctly.
10630
10631         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10632           lib/silccrypt/silccipher.[ch].
10633
10634         * Added silc_hash_len to return the digest length into the
10635           lib/silcrypt/silchash.[ch].
10636
10637         * Rewrote parts of Silc Channel Payload interface in the
10638           lib/silccore/silcchannel.[ch].  The encode function now also
10639           encrypts the packet and parse function decrypts it.
10640
10641 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10642
10643         * Fixed a minor formatting bug in the SKE's key material processing.
10644           It actually might have processed the keys wrong way resulting
10645           into wrong keys.
10646
10647         * Redefined the mandatory HMAC algorithms and added new algorithms.
10648           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10649           and hmac-md5 truncated to 96 bits.  The mandatory is now
10650           hmac-sha1-96.  Rest are optional (including the one that used
10651           to be mandatory).  Rationale for this is that the truncated HMAC
10652           length is sufficient from security point of view and can actually
10653           make the attack against the HMAC harder.  Also, the truncated
10654           HMAC causes less overhead to the packets.  See the RFC2104 for
10655           more information.
10656
10657         * Added new [hmac] configuration section.  The SKE used to use
10658           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10659           is of course wrong.  The official names that must be proposed in
10660           the SKE are the ones defined in the protocol specification
10661           (hmac-sha1-96 for example).  The user can configure any hmac
10662           using any hash function configured in the [hash] section.  At
10663           least, the mandatory must be configured.
10664
10665           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10666
10667         * Added HMAC list to the SKE proposal list.  It has now both
10668           hash algorithm list and HMAC list.  This makes the protocol
10669           incompatible with previous versions.  The SKE now seems to work
10670           the way it is supposed to work, for the first time actually.
10671
10672         * Defined plain Hash algorithms to the protocol specification.
10673           Added sha1 and md5.
10674
10675 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10676
10677         * Implemented support for key agreement packets into the server.
10678           Added functions silc_server_key_agreement and
10679           silc_server_send_key_agreement.  Other than these functions,
10680           server has nothing to do with this packet.
10681
10682         * Added support for private message key packets into the server.
10683           Added functions silc_server_private_message_key and
10684           silc_server_send_private_message_key.
10685
10686         * Updated TODO.
10687
10688         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10689           called in the protocol's final callback instead in the END
10690           protocol state.  This makes a little more sense and in the same
10691           time in client we can use the same protocol routines for normal
10692           key exchange and to key agreement packet handling as well.
10693
10694         * Added to both client's and server's KE protocol context the
10695           SilcSKEKeyMaterial pointer to save the key material.  We will
10696           bring the key material to the protocol's final callback by doing
10697           this.  The final callback must free the key material.
10698
10699         * Added SKE's packet_send callback into client's KE protocol
10700           context so that the caller can choose what packet sending function
10701           is used.  This way we can use different packet sending when
10702           doing normal SKE when doing key agreement packet handling (in
10703           the key agreement packet handling we do not want to encrypt
10704           the packets).
10705
10706         * Implemented the responder side of the key agreement routines
10707           in the client.  The client can now bind to specified port and
10708           accept incoming key negotiation.  The key material is passed
10709           to the application after the protocol is over.
10710
10711         * Implemented the processing of incoming Key Agreement packet
10712           in the client.  Added function silc_client_key_agreement to
10713           process the packet.
10714
10715         * Implemented the intiator side of the key agreement routines
10716           in the client.  The client can now initiate key agreement with
10717           another remote client.  The key material is passed to the
10718           application after the protocol is over.
10719
10720         * Created client_keyagr.c to include all the key agreement
10721           routines.
10722
10723         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10724           SILC_TASK_CALLBACK except that it is not static.
10725
10726         * Created client_notify.c and moved the Notify packet handling
10727           from the client.[ch] into that file.
10728
10729         * Created client_prvmsg.c and moved all private message and
10730           private message key routines from the client.[ch] into that file.
10731
10732         * Create client_channel.c and moved all channel message and
10733           channel private key routines from the client.[ch] into that file.
10734
10735         * Changed silc_client_get_client_by_id_resolve to resolve with
10736           WHOIS command instead of IDENTIFY command, in the file
10737           lib/silclient/idlist.c.
10738
10739 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10740
10741         * Implemented the SKE's responder side to the Client library.
10742
10743         * When FAILURE is received to the protocol do not trust it
10744           blindly.  Register a timeout to wait whether the remote closes
10745           the connection as it should do it, only after that process the
10746           actual failure.  This was changed to both client and server.
10747
10748         * Added client_internal.h to include some of the structures
10749           there instead of client.h in lib/silcclient/.
10750
10751         * Added function silc_task_unregister_by_callback to unregister
10752           timeouts by the callback function.
10753
10754 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10755
10756         * Some "Incomplete WHOIS info" errors has been appearing on the
10757           log files.  Took away the entry->userinfo check from WHOIS
10758           reply sending.  The entry->userinfo is now " " if client did not
10759           provide one.  I thought this was fixed earlier but something
10760           is wrong still.  Let's see if the error still appears.
10761
10762 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10763
10764         * Fixed a minor bug in the login when the channel key is
10765           re-generated in the server.  It used to generate the key in
10766           wrong order and thus caused problems in the channel traffic.
10767
10768         * Fixed a minor bug in channel key distsribution after
10769           KICK command.  The key was not sent to the router even though
10770           it should've been.
10771
10772 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10773
10774         * Added silc_ske_process_key_material_data as generic routine
10775           to process any key material as the SILC protocol dictates.  The
10776           function is used by the actual SKE library but can be used by
10777           applications as well.  This relates to the private message keys
10778           and the channel private keys since they must be processed the
10779           same way the normal SILC session keys.  The protocol dictates
10780           this.  Affected files: lib/silcske/silcske.[ch].
10781
10782           Added also silc_ske_free_key_material to free the
10783           SilcSKEKeyMaterial structure.
10784
10785         * Defined silc_cipher_set_key function to set the key for
10786           cipher without using the object's method function.  The affected
10787           files: lib/silccrypt/silccipher.[ch].
10788
10789         * Implemented silc silc_client_add_private_message_key,
10790           silc_client_add_private_message_key_ske,
10791           silc_client_del_private_message_key,
10792           silc_client_list_private_message_keys and
10793           silc_client_free_private_message_keys functions in the
10794           client library.
10795
10796           Added functions silc_client_send_private_message_key to send
10797           the Private Message Key payload and silc_client_private_message_key
10798           to handle incoming Private Message Key payload.
10799
10800         * Added Cipher field to the Private Message Key payload to set
10801           the cipher to be used.  If ignored, the default cipher defined
10802           in the SILC protocol (aes-256-cbc) is used.
10803
10804 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10805
10806         * Removed lib/silcclient/ops.h file.
10807
10808           Redefined parts of the SILC Client Library API. Created new
10809           file silcapi.h that deprecates the ops.h file and defines the
10810           published Client Library API.  Defined also private message key
10811           API and channel private key API into the file.
10812
10813           This is the file that the application must include from the
10814           SILC Client Library.  Other files need not be included by
10815           the application anymore.
10816
10817         * Added new key_agreement client operation callback and also
10818           defined the Key Agreement library API for the application.
10819
10820 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10821
10822         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10823           is used by clients to request key negotiation  between another
10824           client in the SILC network.  If the negotiation is started it
10825           is performed using the SKE protocol.  The result of the
10826           negotiation, the secret key material, can be used for example
10827           as private message key.
10828
10829           Implemented the Key Agreement payload into the files
10830           lib/silccore/silauth.[ch].
10831
10832 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10833
10834         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10835           and defined the key lengths for the algorithms.  Changed the
10836           code accordingly.  The default key length is now 256 bits.
10837
10838         * Fixed SKE key distribution function silc_ske_process_key_material
10839           when the key length is more than 128 bits.  The default key
10840           length in SILC is now 256 bits.
10841
10842         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
10843           to indicate unsupported algorithm.
10844
10845         * Renamed rijndael.c to aes.c and all functions as well.
10846
10847         * Fixed a long standing channel key setting bug in client library.
10848           Weird that it has never surfaced before.
10849
10850         * Fixed bug in channel deletion.  If the entire channel is removed
10851           then it must also delete the references of the channel entry
10852           from the client's channel list as the client's channel entry and
10853           the channel's client entry share same memory.
10854
10855 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10856
10857         * Implemented CONNECT and SHUTDOWN commands in the client.
10858
10859         * Implemented CLOSE command to the client.
10860
10861         * Added the function silc_idlist_find_server_by_name into the
10862           files silcd/idlist.[ch].
10863
10864           Added the function silc_idlist_find_server_by_conn into the
10865           files silcd/idlist.[ch].
10866
10867 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10868
10869         * DIE command was renamed to SHUTDOWN.  Updated the both code
10870           and protocol specs.
10871
10872         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
10873           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
10874
10875         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
10876           side.
10877
10878         * Added function silc_server_create_connection function to create
10879           connection to remote router.  My server implementation actually
10880           does not allow router to connect to normal server (it expects
10881           that normal server always initiates the connection to the router)
10882           so the CONNECT command is only good for connecting to another
10883           router.
10884
10885 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10886
10887         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
10888           or some other client was kicked from the channel.
10889
10890           Implemented the handling of the notify type to both client
10891           and server.
10892
10893           Implemented silc_server_send_notify_kicked to send the KICKED
10894           notify.  It is used to send it to the server's primary router.
10895
10896         * Implemented the KICK command into server and client.
10897
10898         * Added `query' argument to the silc_idlist_get_client function
10899           to indicate whether to query the client from server or not if
10900           it was not found.
10901
10902         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
10903           to indicate that the client is not channel founder.
10904
10905         * Updated TODO.
10906
10907 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10908
10909         * Removed the rng context from SilcPacketContext structure and
10910           changed that the packet routine uses the Global RNG API.
10911
10912 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10913
10914         * Added support for quit message that client can "leave" on the
10915           channel when it quits the SILC.  It is ditributed inside the
10916           SILC_NOTIFY_TYPE_SIGNOFF notify type.
10917
10918           Added silc_server_free_client_data that will take the
10919           signoff message as argument.
10920
10921         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
10922
10923 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10924
10925         * Updated parts of the protocol specification to keep it up
10926           to date.
10927
10928 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10929
10930         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
10931           payloads in one packet.
10932
10933         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
10934           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
10935           use now the new List flag.
10936
10937         * Also deprecated the following packet types: REPLACE_ID,
10938           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
10939
10940         * Added list support for Notify packet in server.
10941
10942         * Added silc_server_send_notify_channel_change to send the
10943           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
10944           the silc_server_send_replace_id.
10945
10946         * Added silc_server_send_notify_nick_change to send the
10947           NICK_CHANGE notify type.  Deprecates the function
10948           silc_server_send_replace_id.
10949
10950         * Added silc_server_send_notify_join to send the JOIN notify type.
10951           Deprecates the function silc_server_send_new_channel_user.
10952
10953         * Added silc_server_send_notify_leave to send LEAVE notify type.
10954           Deprecates the function silc_server_send_remove_channel_user.
10955
10956         * Added silc_server_send_notify_cmode and
10957           silc_server_send_notify_cumode to send CMODE and CUMODE notify
10958           types.  Deprecates the silc_server_send_set_mode function.
10959
10960         * Added SERVER_SIGNOFF notify type to indicate that server has
10961           quit.  This means that all clients on the channel from that
10962           server will drop.  This can be also used when netsplit happens.
10963
10964           Deprecated REMOVE_ID packet type since it is not needed anymore
10965           even from server.
10966
10967           Added silc_server_send_notify_server_signoff to send the
10968           SERVER_SIGNOFF notify type.  Deprecates the function
10969           silc_server_send_remove_id.
10970
10971           Added also silc_server_send_notify_signoff to send the
10972           SIGNOFF notify type.
10973
10974         * Employed the PKCS #1. It is the mandatory way to do RSA in the
10975           SILC protocol from this day on.  Changed the protocol
10976           specification as well.
10977
10978         * Added silc_server_send_notify_topic_set to send TOPIC_SET
10979           notify type.  It is used between routers to notify about
10980           topic changes on a channel.
10981
10982         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
10983           ID data.
10984
10985         * Partly updated the protocol specification to comply with the
10986           changes now made.  It is still though a bit outdated.
10987
10988         * The JOIN notify type now takes one extra argument <Channel ID>.
10989           The packet used to be destined to the channel but now the
10990           JOIN type may be sent as list thus it is impossible to
10991           destine it to any specific channel.  By adding this argument
10992           it is again possible.
10993
10994 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10995
10996         * Added CREDITS file.  The CHANGES and CREDITS file will appear
10997           in the distribution as well.
10998
10999 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11000
11001         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
11002           types in the server's silcd/packet_receive.c.
11003
11004         * Implemented CMODE and CUMODE to work in router environment.
11005
11006         * Fixed minor encoding and decoding buglet from the
11007           lib/silccore/silcmode.c.
11008
11009         * Fixed buffer overflow from lib/silcclient/command.c in USERS
11010           command parsing.
11011
11012 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
11013
11014         * Changed all SilcConfigServer* and silc_config_server* to
11015           SilcServerConfig* and silc_server_config*, respectively.
11016           Patch by Bostik.
11017
11018 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11019
11020         * Associated the ID (client or server ID) to the Authentication
11021           Payload to avoid any possibility of forging.  Updated the
11022           protocol specification and the code accordingly.
11023
11024 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11025
11026         * The RSA key length is now save to the RsaKey context in the
11027           key generation process in lib/silccrypt/rsa.c.  The key length
11028           is now used to figure out the maximum size of the block allowed
11029           to be encrypted/signed.
11030
11031         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
11032           is equivalent to the silc_mp_mp2bin but does not allocate any
11033           memory.
11034
11035         * Changed silc_mp_mp2bin API to take length argument.  If it is
11036           non-zero then the buffer is allocated that large.  If zero, then
11037           the size is approximated using silc_mp_sizeinbase, which however
11038           is not relieable.
11039
11040         * Created Global RNG API which is global RNG that application can
11041           initialize.  After initializing, any routine anywhere in the
11042           code (including library) can use RNG without allocating a new
11043           RNG object.  This was done to allow this sort of use of the
11044           RNG in code that has no chance to allocate RNG object.  All
11045           applications currently allocate this and many routines in the
11046           library use this.  Affected file lib/silccrypt/silcrng.[ch].
11047
11048         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
11049           it to use the Global RNG API.
11050
11051         * Defined Authentication Payload into protocol specification that
11052           is used during SILC session to authenticate entities.  It is
11053           used for example by client to authenticate itself to the server
11054           to obtain server operator privileges.
11055
11056           Implemented this payload into the lib/silccore/silcauth.[ch].
11057           Implemented also routines for public key based authentication
11058           as the new protocol specification dictates.
11059
11060           Moved definitions of different authentication methods from
11061           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
11062
11063         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
11064           silc_pkcs_verify and silc_pkcs_sign_with_hash and
11065           silc_pkcs_verify_with_hash functions into the file
11066           lib/silccrypt/silcpkcs.[ch].
11067
11068 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11069
11070         * The client entry's userinfo pointer must be always valid.
11071           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
11072           will fail since it requires the userinfo.  Now, the userinfo
11073           is allocated as "" if actual userinfo does not exist.  Actually,
11074           it must exist and it is totally Ok to drop client connections
11075           that does not announce the userinfo.  However, we will make
11076           this workaround for now.
11077
11078         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
11079           to return the remote port by socket.
11080
11081 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11082
11083         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
11084           SILC_SERVER_PENDING_EXEC and added an new macro
11085           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
11086           data or when error occurs while processing the pending command.
11087
11088           Added new argument `destructor' into silc_server_command_pending
11089           and to the SilcServerCommandPending object.  This destructor is
11090           now called after calling the pending callback or if error occurs
11091           immediately.  If error occurs the actual pending callback won't
11092           be called at all - only the destructor.  The destructor may be
11093           NULL if destructor is not needed.
11094
11095           All this applies for client library code as well.  Similar
11096           changes were made there as well for the pending commands.
11097
11098           In the client, the application must now allocate the
11099           SilcClientCommandContext with the silc_client_command_alloc
11100           function.
11101
11102         * Added reference counter to the SilcServerCommandContext.  Added
11103           function silc_server_command_alloc and silc_server_command_dup
11104           functions.
11105
11106           Same type of functions added to the client library for the same
11107           purpose as well.
11108
11109         * Removed the cmd_ident from IDListData away since it is now
11110           global for all connections.  It is the command identifier used
11111           in command sending and with pending commands.  The affected file
11112           is silcd/idlist.h.
11113
11114         * Added reference counter to the SilcSocketConnection objecet to
11115           indicate the usage count of the object.  The object won't be
11116           freed untill the reference counter hits zero.  Currently only
11117           server uses this, and client ignores it.  The client must be
11118           set to use this too later.  The affected files are
11119           lib/silccore/silcsockconn.[ch].  Added also the function
11120           silc_socket_dup to increase the reference counter.
11121
11122           This was mainly added because it is possible that the socket
11123           is removed underneath of pending command or other async
11124           operation.  Now it won't be free'd and proper DISCONNECTING
11125           flags, etc. can be set to avoid sending data to connection that
11126           is not valid anymore.
11127
11128         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
11129           the connection.  After that it sets SILC_SET_DISCONNECTED.
11130           It is, however, possible that the socket data is not still freed.
11131           The silc_server_packet_process now checks that data is not
11132           read or written to connection that is DISCONNECTED.  The socket
11133           get's freed when the reference counter hits zero.
11134
11135 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11136
11137         * Changed the client operation API: channel_message operation's
11138           `sender' is now the client entry of the sender, not the nickname
11139           and the `channel' is the channel entry, not the channel name.
11140
11141           In the private_message operation the `sender' is now also the
11142           client entry of the sender not the nickname.
11143
11144           Affected file is lib/silcclient/ops.h and all applications
11145           using the client operations.
11146
11147 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11148
11149         * Moved the calling of ops->connect() from connect_to_server_final
11150           into receive_new_id functin since that is the point when the
11151           client is actually allowed to send traffic to network.  The
11152           affected file is lib/silcclient/client.c.
11153
11154 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11155
11156         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
11157           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
11158           (if needs broadcasting) instead of broadcasting the packets one
11159           by one which would make a burst in the network traffic.
11160
11161         * Added `broadcast' argument to the functions in silcd/server.[ch]
11162           silc_server_create_new_channel[_with_id] to indicate whether
11163           to send New Channel packet to primary router.
11164
11165 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11166
11167         * Added new function into the silcd/server.[ch] files:
11168           silc_server_create_new_channel_with_id to create new channel with
11169           already existing Channel ID.
11170
11171         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
11172           lib/silccore/silcpacket.h.  This packet is used t send list of
11173           Set Mode payloads inside one packet.  Server uses this to set
11174           the modes for the channels and clients on those channels, that it
11175           announced to the router when it connected to it.  The protocol
11176           specification has been updated accordingly.
11177
11178         * The silc_server_new_channel did not handle the packet coming
11179           from normal server as it normally does not send that.  However,
11180           when it announces its channels it does send it.  Implemented
11181           the support for that.
11182
11183         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
11184           into the file lib/silccore/id.h.
11185
11186 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11187
11188         * Fixed memory leaks in the functions silc_idlist_del_client,
11189           silc_idlist_del_channel and silc_idlist_del_server in the file
11190           silcd/idlist.c.  All of those leaked like a sieve.
11191
11192         * Fixed some small memory leaks in the client's function
11193           silc_client_notify_by_server.
11194
11195         * Added functions into silcd/server.c: silc_server_announce_clients,
11196           silc_server_announce_channels and silc_server_announce_server.
11197           These functions are used by normal and router server to announce
11198           to its primary router about clients, channels and servers (when
11199           router) that we own.  This is done after we've connected to the
11200           router.
11201
11202           These functions effectively implements the following packet types:
11203           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
11204           and SILC_PACKET_NEW_ID_LIST.
11205
11206         * Added new functions into the silcd/packet_receive.[ch]:
11207           silc_server_new_id_list, silc_server_new_channel_list and
11208           silc_server_new_channel_user_list to handle the incoming
11209           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
11210
11211         * Added support of changing Channel ID in the function
11212           silc_server_replace_id.  If the server that announces a channel
11213           to the router already exists in the router (with same name but
11214           with different Channel ID), router is responsible to send
11215           Replace ID packet to the server and force the server to change
11216           the Channel ID to the one router has.
11217
11218         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
11219           client that the Channel ID has been changed by the router.  The
11220           normal server sends this to the client.  Client must start using
11221           the new Channel ID as the channel's ID.
11222
11223           Implemented handling of this new type into lib/silcclient/client.c
11224           into the function silc_client_notify_by_server.
11225
11226         * Added new function silc_idlist_replace_channel_id into the files
11227           silcd/idlist.[ch] to replace the Channel ID.
11228
11229 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11230
11231         * Call silc_server_command_identify_check always when processing
11232           the IDENTIFY command in silcd/command.c
11233
11234 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11235
11236         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
11237           send keepalive packets.  The packet can be sent by clients,
11238           servers and routers.
11239
11240           Added function silc_socket_set_heartbeat into the file
11241           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
11242           If not set, the heartbeat is not performed.  The actual
11243           heartbeat is implemented in the low level socket connection
11244           library.  However, application is responsible of actually
11245           sending the packet.
11246
11247           Added silc_server_send_heartbeat to send the actual heartbeat
11248           packet into silcd/packet_send.[ch].  Server now performs
11249           keepalive with all connections.
11250
11251         * Added silc_task_get_first function into lib/silcutil/silctask.c
11252           to return the timeout task with shortest timeout.  There was a bug
11253           in task unregistration that caused problems.  TODO has been
11254           updated to include that task system must be rewritten.
11255
11256         * The client library will now resolve the client information when
11257           receiving JOIN notify from server for client that we know but
11258           have incomplete information.
11259
11260         * Rewrote parts of silc_server_remove_from_channels and
11261           silc_server_remove_from_one_channel as they did not remove the
11262           channel in some circumstances even though they should've.
11263
11264         * Encryption problem encountered in server:
11265
11266           The LEAVE command used to send the Channel Key packet to the
11267           router immediately after generating it.  However, the code
11268           had earlier sent Remove Channel user packet but not immediately,
11269           ie. it was put to queue.  The order of packets in the router
11270           was that Channel Key packet was first and Remove Channel User
11271           packet was second, even though they were encrypted in the
11272           reverse order.  For this reason, MAC check failed.  Now, this
11273           is fixed by not sending the Channel Key packet immediately but
11274           putting it to queue.  However, this is more fundamental problem:
11275           packets that are in queue should actually not be encrypted
11276           because packets that are sent immediately gets encrypted
11277           actually with wrong IV (and thus MAC check fails).  So, packets
11278           that are in queue should be encrypted when they are sent to
11279           the wire and not when they put to the queue.
11280
11281           However, the problem is that the current system has not been
11282           designed to work that way.  Instead, the packet is encrypted
11283           as soon as possible and left to the queue.  The queue is then
11284           just purged into wire.  There won't be any fixes for this
11285           any time soon.  So, the current semantic for packet sending
11286           is as follows:
11287
11288           o If you send packet to remote host and do not force the send
11289           (the packet will be in queue) then all subsequent packets to the
11290           same remote host must also be put to the queue.  Only after the
11291           queue has been purged is it safe again to force the packet
11292           send immediately.
11293
11294           o If you send all packets immediately then it safe to send
11295           any of subsequent packets through the queue, however, after
11296           the first packet is put to queue then any subsequent packets
11297           must also be put to the queue.
11298
11299           Follow these rules and everything works fine.
11300
11301 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11302
11303         * Added new function silc_server_remove_clients_by_server to
11304           remove all client entries from ID list when the server connection
11305           is lost.  In this case it is also important to invalidate all
11306           client entires as they hold the invalid server entry.  This
11307           fixes fatal bug when server has lost connection and will reconnect
11308           again.
11309
11310 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11311
11312         * Made some sanity checks to silc_server_daemonise like to check
11313           whether the requested user and group actually exists.
11314
11315         * Added sanity check to SKE's silc_ske_responder_finish to check
11316           that the public and private key actually is valid.
11317
11318         * Invalidate the client's nickname when receiving Replace ID
11319           packet and the Client ID is being replaced.  This means that the
11320           server will query the nickname if someone needs it (client)
11321           a bit later.
11322
11323         * Sort the ID Cache in client library when the ID Cache data
11324           has changed (needs sorting).
11325
11326         * Do not allow for SILC client to create several connections to
11327           several servers.  The client does not support windows right now
11328           and generating multiple connections causes weird behaviour.
11329
11330           Irssi-silc client does support windows and can handle several
11331           connections without problems, see: www.irssi.org and SILC plugin.
11332
11333         * Fixed some places where client was added to the IDList.  The
11334           rule of thumb is following (in order to get everything right):
11335           If the client is directly connected local client then the
11336           `connection' argument must be set and `router' argument must be
11337           NULL to silc_idlist_add_client function.  If the client is not
11338           directly connected client then the `router' argument must
11339           bet set and the `connection' argument must be NULL to the
11340           silc_idlist_add_client function.
11341
11342         * The funtion silc_server_packet_send_local_channel actually did
11343           not check whether the client was locally connected or not.  It
11344           does that now.  Fixed a bug related to LEAVE command.
11345
11346         * Fixed Remove Channel User payload parsing bug in server's
11347           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
11348
11349         * The server's silc_server_save_channel_key now checks also the
11350           global ID list for the channel as it might not be in the local
11351           list.  Fixed a bug related to LEAVE command.
11352
11353         * Is this the end of the [<unknown>] buglet that has been lurking
11354           around for a long time?  A little for loop fix in server's
11355           silc_server_command_whois_parse that is used by both IDENTIFY
11356           and WHOIS command.  At least, this was a clear bug and a cause
11357           of one type of [<unknown>] buglet.
11358
11359         * WHOIS and IDENTIFY commands call the function
11360           silc_server_command_[whois/identify]_check function even if
11361           we are not router server.
11362
11363 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11364
11365         * Added --with-gmp configuration option.  If set the GMP
11366           is always compiled in the SILC source tree.  If not set then
11367           it is checked whether the system has the GMP3 installed.  If
11368           it has then the GMP won't be compiled (the system's headers
11369           and library is used), if it doesn't have it then the GMP is
11370           compiled in the SILC source tree.
11371
11372 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11373
11374         * Changed RSA private exponent generation to what PKCS #1
11375           suggests.  We try to find the smallest possible d by doing
11376           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
11377           not security fix but optimization.
11378
11379 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11380
11381         * Added new config entry [Identity] to fork the server and run
11382           it as specific user and group.  A patch from Bostik.
11383
11384         * Imported Dotconf configuration library into lib/dotconf.
11385           This will be used to create the SILC configuration files later.
11386           It will appear in the distsribution after this commit.
11387
11388 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11389
11390         * A big code auditing weekend happening.  Auditing code for
11391           obvious mistakes, bugs and errors.  Also, removing any code
11392           that is obsolete.
11393
11394           Removed files for being obsolete:
11395
11396           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
11397           inline in the file lib/silcutil/silcbuffer.h)
11398
11399           o lib/silcutil/silcbufutil.c (the header has inline versions)
11400
11401           Changed code to fix possible error conditions:
11402
11403           o The buffer formatting routines now check that the destination
11404           buffer really has enough space to add the data.  This applies for
11405           both buffer formatting and unformatting
11406           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
11407           unformatting was changed to accomodate following rules:
11408           XXX_*STRING_ALLOC will allocate space for the data into the pointer
11409           sent to the function while XXX_*STRING will not allocate or copy
11410           the data into the buffer.  Instead it sets the pointer from the
11411           buffer into the pointer sent as argument (XXX_*STRING used to
11412           require that the pointer must be allocated already).  This change
11413           makes this whole thing a bit more consistent and more optimized
11414           (note that the data returned in the unformatting with XXX_*STRING
11415           must not be freed now).  The routines return now -1 on error.
11416
11417           o Tried to find all code that use buffer_format and buffer_unformat
11418           and added return value checking to prevent formatting and
11419           especially unformatting errors and possible subsequent fatal
11420           errors.
11421
11422           o Changed ske->x and ske->KEY to mallocated pointers in
11423           lib/silcske/silcske.h.  Fixed possible data and memory leak.
11424
11425           o Added return value checking to all *_parse* functions.  Fixed
11426           many memory leaks as well.
11427
11428           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
11429           so that buffer overflows would not happen.  All code now also
11430           checks the return value as it can fail.
11431
11432 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11433
11434         * Added reconnection support to server if the normal server looses
11435           its connection to the router (for example if router is rebooted).
11436           The server performs normal reconnection strategy implemented
11437           to the server.  Affected file silcd/server.c.
11438
11439 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11440
11441         * Added new packet type SILC_PACKET_SET_MODE that is used to
11442           distribute the information about changed modes (for clients,
11443           channels and clients channel modes) to all routers in the
11444           network.  Updated the protocol specification accordingly.
11445
11446           Added functions into silcd/packet_send.c and
11447           silcd/packet_receive.c: silc_server_send_set_mode,
11448           silc_server_set_mode.
11449
11450           Added new files silcmode.[ch] into lib/silccore that implements
11451           the encoding and decoding of Set Mode Payload.  Added new type
11452           SilcSetModePayload.  Moved the definitions of different modes
11453           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
11454
11455 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11456
11457         * Oops, a little mistake in server's connection authentication
11458           protocol.  The protocol is not ended with FAILURE but with
11459           SUCCESS if the authentication is Ok. :)  Affected file is
11460           silcd/protocol.c.
11461
11462         * Implemented NICK_CHANGE notify handling in server in the file
11463           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
11464           the local clients on the channel.  After the changing nickname
11465           in router environment snhould work and the [<unknown>] nickname
11466           should appear no more.
11467
11468           The silc_server_replace_id function that receives the Replace ID
11469           payload now sends the NICK_CHANGE notify type also in the file
11470           silcd/packet_receive.c
11471
11472         * Changed WHOIS and IDENTIFY command to support the maximum amount
11473           of arguments defined in protocol specs (3328 arguments).  This
11474           fixed a bug that caused problems when there were more than three
11475           users on a channel.
11476
11477 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11478
11479         * Added extra parameter, command identifier, to the
11480           silc_client_send_command so that explicit command identifier
11481           can be defined.
11482
11483           Changed that ID list routines uses specific command identifier
11484           when sending WHOIS/IDENTIFY requests to the server so that they
11485           can be identified when the reply comes back.
11486
11487           Affected files lib/silcclient/command.[ch],
11488           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
11489
11490         * Added `sender' argument to silc_server_packet_send_to_channel
11491           to indicaet the sender who originally sent the packet to us
11492           that we are now re-sending.  Ignored if NULL.  Affected file
11493           silcd/packet_send.[ch].
11494
11495         * Added some server statistics support in silcd/server_internal.h
11496           SilcServerStatistics structure and around the server code.  Also
11497           send some nice statistics information when client is connecting
11498           to the client.
11499
11500 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11501
11502         * Fixed channel ID decoding in server's JOIN command reply in
11503           silcd/command_reply.c
11504
11505         * Fixed braodcasting of replace ID payload to not to send it if
11506           we are standalone server in silcd/packet_receive.c.
11507
11508         * Fixed all channel message sending routines to not to send
11509           packets to clients that has router set, since they are routed
11510           separately in the same function earlier.  Affects file
11511           silcd/packet_send.c and all channel packet sending functions.
11512
11513         * In USERS reply, res_argv[i] are not allocated, the table
11514           is allocated.  Thus changed that free the table, not its
11515           internals.
11516
11517         * In server's whois_check and identify_check if the client is
11518           locally connected do not send any WHOIS commands - they are not
11519           needed.
11520
11521 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11522
11523         * Fixed some minor bugs in client when sending WHOIS command.  The
11524           arguments was in wrong order.
11525
11526         * Removed statis function add_to_channel from server in
11527           silcd/command.c that was previously used with the joining but
11528           is obsolete now.
11529
11530         * Tested USERS command in router environment successfully with two
11531           routers, two servers and two clients.
11532
11533 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11534
11535         * Reorganized the USERS command and command reply in client library
11536           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
11537           When the command is given by user we register a pending command
11538           callback that will reprocess the command after the reply has been
11539           received from the server.  When reprocessing the packet we then
11540           display the information.  Thus, the USERS information is displayed
11541           now in the command callback instead of in the command reply
11542           callback.  The processing of the command is same as previously
11543           when server has sent the command reply in the JOINing process.
11544
11545         * Added to USERS command in silcd/command_reply.c to join the client,
11546           we didn't use to know about, to the channel after we've created
11547           a client entry for it.  Also, for clienet we did know already still
11548           check whether it is on the channel or not and add it if not.
11549
11550         * Removed silc_server_command_join_notify as the function and its
11551           use was obsolete.
11552
11553 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11554
11555         * Changed the client's pending command handling to the same as the
11556           server's pending command handling.  It is also now possible to
11557           execute command reply functions from other command reply
11558           function as the function callbacks for commands and command
11559           replies are one and same.  The pending commands are not static
11560           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11561           in client connection context.  Thus, pending commands are server
11562           connection specific as it is convenient.
11563
11564           Changed the function silc_client_command_pending and
11565           silc_client_command_pending_del and added new function
11566           silc_client_command_pending_check.  Removed the
11567           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11568           macros.
11569
11570         * Added cmd_ident, current command identifier, to the client
11571           connection context in lib/silcclient/client.h to keep track on
11572           command identifiers used in command sending.  Client's command reply
11573           function handling now supports the mandatory command identifiers.
11574
11575         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11576           funtions in client to fully support pending command callbacks.
11577
11578         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11579           as one of the arguments to the application in the command reply
11580           client operation.
11581
11582         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11583           before first releasing SILC but came back.  Now it is removed again
11584           and should come back nomore.  The FORWARDED flag was used only
11585           by the JOINing procedure by forwarding the command packet to router.
11586           Now, the JOINing procedure has been changed to more generic (due
11587           to various router environment issues) and FORWARDED is not needed
11588           anymore for anything.  The protocol specification is yet to be
11589           updated.
11590
11591           Now, removed silc_server_packet_forward from server and the flag
11592           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11593
11594 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11595
11596         * Renamed NAMES command to USERS command.  The NAMES was named that
11597           due to historical reasons.  Now it is renamed.  Also, rewrote
11598           parts of the USERS command.  The nickname list is not sent anymore
11599           by the server.  Only Client ID and mode lists are sent in the USERS
11600           command.  Changed this also to the protocol specification.
11601
11602           The client now resolves the names and stuff after it receives
11603           the USERS list from the server when joining to the channel.
11604
11605         * WHOIS and IDENTIFY commands has been changed to support multiple
11606           Client ID's per command.  One can now search for multiple users
11607           in the network by sending only one WHOIS or IDENTIFY command.
11608           Changed the code and the protocol specifications.
11609
11610         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11611           uses silc_server_command_whois_parse to parse the request. */
11612
11613         * If normal server, do not parse the WHOIS and IDENTIFY requests
11614           before sending it to the router.  Saves some time.
11615
11616 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11617
11618         * Fixed JOIN command on client library.  Wrong number of arguments
11619           used to crash the client.
11620
11621         * Added silc_server_channel_has_global function to check whether
11622           channel has global users or not.
11623
11624         * Added silc_server_channel_has_local function to check whether channel
11625           has locally connected clients on the channel.
11626
11627         * The silc_server_remove_from_one_channel now checks whether the
11628           channel has global users or not after given client was removed from
11629           the channel.  It also checks whether the channel has local clients
11630           on the channel anymore.  If it does not have then the channel entry
11631           is removed as it is not needed anymore.
11632
11633         * The silc_server_notify now checks on JOIN notify whether the joining
11634           client is one of locally connected or global.  If it is global then
11635           the channel has now global users on the channel and that is marked
11636           to the channel entry.  Also, it now saves the global client to
11637           global list who is joining and JOINs it to the channel.  This is
11638           for normal server, that is.
11639
11640           Changed silc_server_send_notify_on_channel,
11641           silc_server_packet_relay_to_channel and
11642           silc_server_packet_send_to_channel check if we are normal server
11643           and client has router set (ie. global client) do not send the
11644           message to that client, as it is already routed to our router.
11645
11646         * Implemented LEAVE notify type handling in silc_server_notify
11647           function.
11648
11649         * Tested LEAVE command in router environment successfully.  Tested
11650           with two routers, two servers and two clients.
11651
11652         * Updated TODO.
11653
11654         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11655
11656         * Implemented SIGNOFF notify type handling in silc_server_notify
11657           function.
11658
11659         * silc_server_remove_id now removes the client entry from all channels
11660           it has joined and thusly sends SIGNOFF notify type.
11661
11662         * Rewrote the NAMES list generation in server by removing two excess
11663           loops.  The lists are created now inside one loop.
11664
11665 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11666
11667         * silc_server_remove_channel_user checks now also global list
11668           for channel and client.
11669
11670         * silc_server_new_channel_user checks now both local and global
11671           list for channel and client.  Fixed a bug in client id decoding.
11672           Used to decode wrong buffer.
11673
11674         * silc_server_channel_message checks now both local and global
11675           list for channel entry.
11676
11677         * Tested channel joining (hence JOIN) in router environment
11678           successfully.  Tested with two routers, two servers and two
11679           clients.
11680
11681         * Tested channel message sending in router environment successfully.
11682
11683 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11684
11685         * Added silc_server_save_channel_key into server.[ch] to save the
11686           received channel key in Channel Key payload processing. It is
11687           also used in JOIN command reply handling.
11688
11689           Equivalent function silc_client_save_channel_key added into
11690           client.[ch] into client library.
11691
11692         * Changed JOIN command reply to send information whether the channel
11693           was created or not (is existing already) and the channel key
11694           payload.  Changed protocol specs accordingly.
11695
11696         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11697           the request was sent by ID and not by nickname.  Crashed on
11698           NULL dereference.
11699
11700 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11701
11702         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11703           now correctly save the received data.
11704
11705         * silc_server_free_sock_user_data now notifies routers in the
11706           network about entities leaving the network.
11707
11708           At the same time implemented functions silc_server_remove_id
11709           and silc_server_send_remove_id to receive and send REMOVE_ID
11710           packets.  The packet is used to notify routers in the network
11711           about leaving entities.  The ID removed will become invalid in
11712           the network.
11713
11714         * Added function silc_idlist_del_server into server. Removes and
11715           free's server entry from ID list.
11716
11717         * silc_server_private_message function now checks, if we are router,
11718           that the destination ID really is valid ID, naturally.
11719
11720         * In router when NEW_ID packet is received (for new client) the
11721           hash of the Client ID is saved in the ID Cache but the
11722           client->nickname is set to NULL, instead of putting the hash
11723           to it as well.
11724
11725           IDENTIFY command now also checks that client->nickname must be
11726           valid. If it is not if will request the data from the server who
11727           owns the client.  Added new function
11728           silc_server_command_identify_check.
11729
11730         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11731           to set the command to already allocated Command Payload.
11732
11733         * Tested private message sending in router environment with two
11734           routers, two servers and two clients.  Fixed minor bugs and now
11735           it works fine.
11736
11737         * Fixed segfault from client's NAMES command. Used to crash if
11738           not on any channel.
11739
11740         * Forwarded packets must not be routed even if it is not destined
11741           to the receiver.  Changed server code comply with this.
11742
11743 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11744
11745         * Added `require_reverse_mapping' boolean value to ServerParams
11746           structure. If TRUE (not default) the server will require that
11747           the connecting host has fully qualified domain name.
11748
11749           If the reverse mapping is not required and hostname could not be
11750           found the IP address is used as hostname.
11751
11752 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11753
11754         * Implemented version string checking to both client and server.
11755           The check is incomplete currently due to the abnormal version
11756           strings used in development version of SILC.
11757
11758         * Changed all command functions in server to use the new
11759           CHECK_ARGS macro.
11760
11761 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11762
11763         * Changed char *data to unsigned char *data in ID Cache system to
11764           support binary data as ID Cache data. Changed code to support
11765           binary data in lib/silccore/idcache.c.
11766
11767         * Renamed silc_server_packet_relay_command_reply to
11768           silc_server_command_reply as it is normal packet receiving
11769           function. Rewrote the function to accept command replys for
11770           servers and not only for clients.
11771
11772         * Mark remote router always as registered server if we are connecting
11773           to it.  Otherwise, commands sent by the router to us are ignored.
11774
11775         * All ID List find routines now returns the ID Cache Entry pointer
11776           as well if requested.
11777
11778         * WHOIS command works now in router environment, tested with two
11779           routers, two servers and two clients.
11780
11781         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11782           in router environment (as it is almost equivalent to WHOIS) but
11783           hasn't been tested thoroughly.  Added new functions:
11784
11785           silc_server_command_identify_parse
11786           silc_server_command_identify_send_reply
11787           silc_server_command_identify_from_client
11788           silc_server_command_identify_from_server
11789
11790         * Disabled route cache adding because adding two different ID's with
11791           same IP replaces the old cache entry thus giving wrong route.
11792           The entry->router->connection is always the fastest route anyway
11793           so route cache may not be needed.  Of course, new routes maybe
11794           established after receiving the ID when the entry->router->connection
11795           might not be anymore the most optimal.
11796
11797 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11798
11799         * Add route cache for received ID for fast routing.
11800
11801         * Added silc_server_packet_route to route received packet on router
11802           that is not destined to us.
11803
11804         * Renamed silc_server_get_route to silc_server_route_get.
11805
11806         * Added id_string and id_string_len fields into SilcServer to
11807           include encoded ServerID for fast comparing without excess
11808           encoding of the ID's.
11809
11810         * Cleaned up WHOIS command on server side. Added following static
11811           functions:
11812
11813           silc_server_command_whois_parse
11814           silc_server_command_whois_check
11815           silc_server_command_whois_send_reply
11816           silc_server_command_whois_from_client
11817           silc_server_command_whois_from_server
11818
11819         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11820           arguments in command replies. All command functions should be
11821           updated to use this macro.
11822
11823 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11824
11825         * Minor typo fixes on command reply handling on server.
11826
11827 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11828
11829         * Added silc_server_command_add_to_channel internal routine to add
11830           the client to the channel after router has created the channel and
11831           sent command reply to the server.
11832
11833         * Added generic silc_server_send_command to send any command from
11834           server.
11835
11836         * Use static buffer with ID rendering instead of duplicating data.
11837
11838 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11839
11840         * Fixed a channel user mode bug when joining to a channel server gave
11841           everybody channel founder rights, oops.
11842
11843         * We mark ourselves as the router of the incoming server connection
11844           if we are router ourselves.  This way we can check in some packet
11845           sending functions whether it is locally connected server.  For
11846           incoming router connections we put NULL.
11847
11848         * For router sending packets locally means now always sending the
11849           packet cell wide; to local clients and local servers.  For normal
11850           server sending packet locally means sending it to only local
11851           clients.
11852
11853         * Fixed the JOIN command to really work in router environment.  If the
11854           channel is created it is always created by the router.  Router is
11855           also responsible of making the initial joining to the channel,
11856           sending JOIN notify to the sending server and distributing
11857           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
11858           does not exist server doesn't do anything else but forward the
11859           command to the router which performs everything.
11860
11861         * Added silc_server_send_channel_key function to send the Channel Key
11862           payload.
11863
11864         * Added silc_server_create_channel_key to create new channel key.  The
11865           channel key is now re-generated everytime someone joins or leaves
11866           a channel, as protocol dictates.  Note: channel->key_len is the
11867           key length in bits.
11868
11869 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11870
11871         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
11872           packet_receive.[ch] to separate packet sending and receiving
11873           routines.  The server.[ch] now includes everything else including
11874           actual packet processing (writing and reading data) and other
11875           server issues.
11876
11877           Renamed silc_server_private_message_send_internal to
11878           silc_server_send_private_message.  The routine is still though
11879           used only to relay private messages as server does not send
11880           private messages itself.
11881
11882           Renamed silc_server_new_channel to silc_server_create_new_channel
11883           and added new function sicl_server_new_channel that handles the
11884           incoming New Channel packet.  Added also new sending function
11885           silc_server_send_new_channel to send New Channel Payload.
11886
11887         * Added new function silc_server_notify to process incoming notify
11888           packet to the server/router. Server may then relay the notify
11889           to clients if needed.
11890
11891         * Added new function silc_server_new_channel_user to process incoming
11892           New Channel User packet.  Router will redistribute the packet and
11893           send JOIN notify to its local clients and locally connected servers
11894           if needed.  Normal server will send JOIN notify to its local client
11895           on same channel when received this packet.  Added also corresponding
11896           sending function silc_server_send_new_channel_user to sent the
11897           payload.
11898
11899         * Added boolean route argument to send_notif_to_channel and
11900           packet_send_to_channel functions to attempt to route the packet
11901           if it is TRUE and send only locally if it is FALSE.
11902
11903 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11904
11905         * silc_server_replace_id now broadcasts the received replace ID
11906           packet if it is not broadcast packet already. The router must
11907           broadcast to inform other routers about changed ID.
11908
11909         * Added backpointer to server's router into SilcServer context in
11910           silcd/server_internal.h.
11911
11912         * Fixed silc_server_packet_broadcast to send correct broadcast
11913           packets.
11914
11915         * The channel key is now distributed to the local client as soon
11916           as it is received from the router (in router environment) so that
11917           no other packet may be sent for the channel until client has
11918           received the key.
11919
11920         * silc_server_remove_channel_user now broadcasts the received
11921           Remove Channel User packet if it is not broadcast packet already.
11922           The router must broadcast to inform other routers about removed
11923           channel user.
11924
11925         * Added users field into SilcPacketContext that is a reference count
11926           of the context.  One can increase the reference count by calling
11927           silc_packet_context_dup which is now changed to just increase the
11928           reference count instead of duplicating the data.  The reference
11929           count is decresed by calling silc_packet_context_free that will
11930           free the data after the reference count hits zero.
11931
11932           For now on the packet context and everything allocated into it
11933           (including the raw packet from network) must be freed by calling
11934           the new silc_packet_context_free function.  Added also new function
11935           silc_packet_context_alloc that must be used now to allocate the
11936           context.  This also means that if a routine is asynchronous from
11937           silc_[client/server]_packet_parse_type the packet context must
11938           be duplicated by calling silc_packet_context_dup.  Otherwise it
11939           gets free'd after silc_[client/server]_packet_parse_type returns.
11940           Also, one must remember that if packet is duplicated then its
11941           reference count must be decresed by calling the free function as
11942           many times as it was duplicated.
11943
11944         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
11945           from both client and server.
11946
11947 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11948
11949         * Made joining to a channel working in router environment.
11950
11951         * Cleaned up JOIN command on server side and create function
11952           silc_server_command_join_channel internal routine to make the
11953           joining happen.
11954
11955 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11956
11957         * Changed silc_command_pending list to SilcDList.  Also, added
11958           `ident' field to SilcServerCommandPending structure to identify
11959           the reply and to call correct callback.
11960
11961           Added silc_server_command_pending_check function to replace the
11962           corresnponding macro.  The silc_command_pending list is not
11963           extern anymore.
11964
11965         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
11966           to set identifier to previously allocated Command Payload.  It
11967           is used to set identifier for command when resending Command
11968           Payload.
11969
11970         * Added silc_command_payload_encode_payload to encode Command
11971           Payload buffer from SilcCommandPayload structure.
11972
11973         * Added silc_argument_payload_encode_payload to encode Argument
11974           payload buffer from SilcArgumentPayload structure.
11975
11976 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11977
11978         * Changed WHOIS command to support router connection on server side.
11979           The whois request is always sent to router unless the server is
11980           standalone server.  After server has received the reply from the
11981           router will it send the reply to the client.
11982
11983         * Added silc_server_packet_broadcast into silcd/server.[ch] to
11984           broadcast received broadcast packet.  The function is used only
11985           by router.  The broadcast packet is always sent to the router's
11986           primary route.
11987
11988         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
11989           render given ID to printable string, for log files for example.
11990
11991 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11992
11993         * Made basic router to router connections working.  At least they
11994           can now connect to each other but nothing really works the way
11995           they are supposed - yet.
11996
11997         * Added new initiator token to RouterConnection configuration
11998           file in silcd/serverconfig.[ch].  It is used to tell whether we
11999           are the initiator to the remote router or whether we'll expect
12000           the other end to connect.
12001
12002         * Moved registering of listener task to silc_server_init, hence
12003           the server starts listenning as soon as it is run, even if it
12004           does not have connections to other routers.  Let's see how well
12005           this will work.
12006
12007         * Changed default connection retry timeouts for more suitable in
12008           silcd/server.h.
12009
12010         * Removed cipher and such arguments from silc_idlist_add_client
12011           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
12012           Added new function silc_idlist_add_data to add the keys and stuff
12013           to any ID entry.
12014
12015         * Added SilcIDListData structure and added it to SilcClientEntry
12016           and SilcServerEntry as their first field in the structure.  This
12017           way we can explicitly cast the ID entries to the SilcIDListData
12018           structure and get common data for the entries.  In past, we had
12019           to first check what type of connection it is and then cast it to
12020           correct ID entry type.  Now, we can directly cast the opaque
12021           pointer to the SilcIDListData (no matter what ID entry it actually
12022           is) and get the data needed.
12023
12024 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12025
12026         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
12027           in some circumstances even if threre were timeout tasks, though not
12028           IO tasks, but tasks anyway.  Now fixed.
12029
12030         * Defined SilcServerConnection structure to hold connection specific
12031           stuff about directly connected servers and routers.  The definition
12032           is currently in silcd/server_internal.h.  I thought about having
12033           a bit more important role fro this struct but for now it is used
12034           only when connecting to other server (or router actually).
12035
12036         * Added connecting retry support in server when connecting to
12037           router(s).  The retry feature implement exponential backoff
12038           algorithm.  Also, added SilcServerParams structure to hold default
12039           parameters for server.  For now, it include these retry settings
12040           and are hard coded.  After server is moded to be as Silc Server
12041           Library this structure will be more important.
12042
12043 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12044
12045         * Changed client librarys channel->clients table to SilcList and
12046           changed code accordingly.
12047
12048 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12049
12050         * Changed client's channel table to SilcList and changed code
12051           accordingly.  Also changed SilcChannelClientEntry to include back-
12052           pointer to the channel so that client entry can use that structure
12053           as list as well and we have fast cross-reference to the channel.
12054           This change dramatically decreased the complexity of channel
12055           handling with client entry and vice versa (removed one extra
12056           loop when searching for channel entry from many functions).
12057
12058         * Changed server->sim from table to SilcDList and changed code
12059           accordingly.
12060
12061         * NAMES command can now be used from user interface.  It will show
12062           the user list on the channel, neatly.
12063
12064         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
12065           Code now saves realname of the user if it becomes available.
12066
12067         * Renamed configure.in to configure.in.pre and made ./prepare
12068           script to automatically add correct version string to
12069           configure.in which it creates from configure.in.pre.
12070
12071 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12072
12073         * NAMES command reply now shows users mode with the nickname when
12074           joining to channel.
12075
12076         * Moved silc_client_ch[u]mode[_char] functions from
12077           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
12078           place sucks, they are utility functions and should be in some
12079           other file.
12080
12081         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
12082
12083         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
12084           cras.
12085
12086 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12087
12088         * Updated README.
12089
12090         * Added TRQ (efficient deque and list library) into lib/trq.  This is
12091           a very good list library that is currently used in the SILC.  Defined
12092           SilcList API over the library because I didn't like the API very
12093           much.  See lib/trq/silclist.h for the API and examples of how to
12094           use the API.  Fixed various places in the code to use the new
12095           SilcList API. The SilcList is meant for lists that has a structure
12096           already defined as a list.  It is not suitable to add just some
12097           context to the list (in TRQ, the context is the list actually).
12098
12099           So, I defined SilcDList that can be used for the purpose where
12100           predefined list structure does not exit.  This can be used as
12101           such list.  Now some context just can be added to the SilcDList.
12102           Currently this list is not used in the SILC just yet, though there
12103           are a lot places where this can replace dynamically allocated
12104           tables and I will fix these places, later, to use SilcDList.
12105           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
12106           and use TRQ internally).
12107
12108           Also fixed some annoying warning messages that the original TRQ
12109           code generated.  Also minor changes to TRQ's Makefile.in.
12110
12111         * Added support for querying by Client ID to both WHOIS and
12112           IDENTIFY commands into server, as required by the protocol.
12113
12114         * Removed method function pointers from SilcBuffer structure. They
12115           weren't used to anything and just increased the context size for
12116           no good reason.  This change also made silc_buffer_alloc and
12117           silc_buffer_free functions inline functions.
12118
12119         * Disabled command flooding detection support until it's fixed so
12120           that it accepts commands in but does not execute them more than once
12121           in two seconds.
12122
12123         * Added silc_net_localhost(), to return local hostname, into
12124           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
12125           that must be initialized before calling silc_client_init.
12126
12127         * Added new function: silc_server_send_notify_on_channels to send
12128           notify messages to all channels client has joined.  It is assured
12129           that the message is sent only once per client.
12130
12131         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
12132           lib/silcutil/silcutil.[ch] as silc_format function.  The new
12133           function is generic and is used by server as well, not only by
12134           the logging routines.
12135
12136         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
12137           the provided version string was not acceptable.  Added new function:
12138           silc_ske_check_version into lib/silcske/silcske.h.  The function
12139           must be implemented by the application (client or server) and it
12140           does not reside in the SKE library.  The function checks the version
12141           string remote end sent.
12142
12143         * Added back pointers (to opaque context and to SilcSocketConnection)
12144           into SilcPacketContext structure into lib/silccore/silcpacket.h.
12145
12146         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
12147           duplicate packet context structure.
12148
12149         * Changed `notify' client operation to send same arguments as client
12150           receives from server except for ID's.  ID's are mapped to correct
12151           ID entry and that is returned.  Also, if channel entry is not sent
12152           by server but the notify is for channel the channel entry is sent
12153           to application (otherwise application doesn't know that it is for
12154           channel (library gets it from packet's Destination ID)).
12155
12156         * Added silc_client_remove_from_channels into client library to
12157           remove a client from all channels it has joined to.  Used when
12158           received SIGNOFF notify from server.  Added also new function
12159           silc_client_replace_from_channels to replace old ID entry with
12160           new ID entry on all channels.  Used when received NICK_CHANGE
12161           notify from server.
12162
12163         * Fixed ID Cache list handling in silc_idlist_get_client in
12164           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
12165           to get (or query) client by ID.
12166
12167         * Updated TODO list.
12168
12169         * Added connection authentication status message defined by the
12170           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
12171           support for these into the code in client and server side.
12172
12173         * Added generic function silc_client_send_command to send any command
12174           with variable argument list.  Application should use this function
12175           to send commands if the command functions provided by the library
12176           does not suite for the application's user interface needs.
12177
12178         * Added new `failure' client operation.  Application is notified about
12179           received failure packet if client is executing a protocol.  In this
12180           case the protocol's execution has failed.
12181
12182         * Added SKE's end notify to send the SKE_SUCCESS notify message that
12183           is required by the protocol.
12184
12185         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
12186           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
12187           error at our end.
12188
12189         * Added status flag to SilcSKE object to indicate realtime status
12190           of the SKE protocol.
12191
12192         * Application receives now exactly same command reply arguments as
12193           the library receives from server.  However, if ID is received the
12194           corresponding ID entry is returned to the application (eg. Client
12195           ID is mapped to correct SilcClientEntry entry and that is returned).
12196           Changed command_reply client operation due to this change.
12197
12198         * Changed all ID's in commands and in command replys as ID Payloads.
12199           Change affected both client and server side codes.
12200
12201           All ID's sent in SILC network (with execption of ID's in SILC
12202           Packet header) are sent in ID Payload to support variable length
12203           ID's.
12204
12205         * Server now notifies nick changes and notifies all clients on
12206           the channels about the new nickname (about the new Client ID,
12207           actually).
12208
12209         * Implemented CMODE command to change channel modes. Supports all
12210           channel modes defined by the protocol specs except ban and invite
12211           lists. (Also, private channel key mode is supported but support for
12212           setting private channel key in client is missing, thus, this mode
12213           has no effect on client side (except that server requires that the
12214           client uses private channel key and normal channel traffic does not
12215           work anymore)).
12216
12217           Also, invite mode works per se, but INVITE command does not work
12218           yet correctly, so you can set channel as invite only channel but
12219           inviting clients to the channel does not work (it is yet to be
12220           thought what's the best way to do it).
12221
12222         * Added new command SILC_COMMAND_CUMODE to change user mode on the
12223           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
12224           Implemented CUMODE command to change user's mode on the channel.
12225           Supports all modes defined by the protocol specs.
12226
12227         * Added NAMES command reply to return users modes on the channel.
12228
12229         * Removed unnecessary and slow ciphers from lib/silccrypt.
12230
12231         * Set SO_KEEPALIVE option to connection sockets by default.
12232
12233         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
12234
12235         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
12236           redefined the Notify Payload into protocol specs.
12237
12238         * Added silc_id_payload_parse_id to get ID directly from raw
12239           ID payload data.
12240
12241 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12242
12243         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
12244           accept searching by Client ID as well.
12245
12246         * Added support for LEAVE and SIGNOFF notify types in client library.
12247
12248         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
12249           to parse ID Payload from raw data.
12250
12251 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12252
12253         * Added flags parameter into silc_ske_assemble_security_properties
12254           function in lib/silcske/silcske.[ch].
12255
12256         * Changed notify client operation to fit better for notify messages
12257           sent by server.  The notify payload received from server is now
12258           passed to the application (after parsing it to SilcNotifyPayload).
12259           It is application's responsibility to retrieve the arguments
12260           from the payload and show the message the way it wants.  The message
12261           sent by server is implementation specific.
12262
12263         * Changed public keys to comply with the protocol specification.
12264           Old public keys are not supported anymore and are not compatible.
12265
12266         * Removed nickname from Channel Payload as the latest draft removed
12267           it.  The client must resolve the nickname from the NAMES command
12268           reply received when it joined the channel.
12269
12270           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
12271
12272 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12273
12274         * Fixed some errors in protocol specification drafts.
12275
12276         * Created lib/silccore/silcnotify.c to implement Notify Payload
12277           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
12278           generic payloads described by protocol specifications.  The file
12279           includes implementations for ID Payload and Argument Payload.
12280
12281         * Changed Command Payload implementation to use the new Argument
12282           Payload.  Changed command_xxxx_payload to command_payload_xxxx
12283           to comply with SILC coding conventions.
12284
12285         * Added suppport for Argument Payload handling in Notify Payload
12286           implementation as protocol requires it.  Added the new support
12287           into server and client lib as well.
12288
12289 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12290
12291         * Added support for multiple nicknames on same channel.  [n] is
12292           added locally to the nickname if there are more than one same
12293           nicknames on the channel.
12294
12295         * Server now sends all nicknames that matched WHOIS request.
12296           Client also shows the list received from server.
12297
12298         * Added TOPIC command to client side.  User can now set and show
12299           current topic on channel.
12300
12301         * Added MOTD command to client and server.  Also, server sends the
12302           motd when client connects to the server.
12303
12304         * Changed version strings to comply ISO 8601.
12305
12306 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12307
12308         * Fixed protocol error handling in client library.  It should now
12309           cope even if the SKE fails for some reason.
12310
12311         * Made new protocol specification drafts for submitting to IETF.
12312
12313         * Implemented TOPIC command to server in silcd/command.c.
12314
12315         * Added two new notify types into lib/silccore/silcnotify.h:
12316           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
12317           notify nickname change and topic setting/change on a channel.
12318
12319         * API change of command_reply operation in client library.  The
12320           application gets now the status type received from server as well.
12321
12322 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12323
12324         * Removed the function just added to lib/silcutil/silcschedule.[ch].
12325
12326         * Cras fixed and optimized the packet handling even further and
12327           it should work now.  Minor change to the prototype of function
12328           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
12329
12330 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12331
12332         * Added new function into lib/silcutil/silcschedule.[ch]:
12333           silc_schedule_with_fd to select() a specified fd.  The function
12334           returns after timeout expires or data arrives or goes.  The
12335           function is used by packet routines to wait that all data is
12336           received from network.
12337
12338         * Fixed data reading from network in lib/silccore/silcpacket.c.
12339           The code now assures that all data is read from the fd and then
12340           continues packet processing.  This was a bug fix since the code
12341           used to drop some data in some circumstances.
12342
12343         * Added new function into lib/silcclient/client.[ch]:
12344           silc_client_start_key_exchange to start key exchange after
12345           connection has been established to server.  The code internally
12346           now uses this funtion but its main purpose was to provide it
12347           for applications that perform their own connecting.  After
12348           application has created a connection it merely calls this
12349           function to start the key exchange between client and server.
12350           The library takes care of everything else after that.
12351
12352           Updated also lib/silcclient/README to explain the usage of
12353           this new function.
12354
12355         * Do not send to application information that connection has
12356           been established.  Application gets notified it by connect
12357           operation anyway.
12358
12359 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12360
12361         * Applied cras's patch to add silc_schedule_one function.  The
12362           function runs scheduler once and returns.
12363
12364         * Fixed the scheduler after cras messed it up.  The timeout
12365           handling works now as it's supposed to work.
12366
12367         * Added into lib/silccore/ silcnotify.h to include notify
12368           message types support.  Changed silc_server_send_notify*
12369           functions, in server.[ch], to support those new notify types.
12370           Added the support for the notify types into client library,
12371           as well.  Added new notify client operation into ops.h in
12372           lib/silcclient/.
12373
12374         * Changed silc_server_packet_send_to_channel to send normal
12375           packets instead of just channel message packets.  The function
12376           is now used to send the notify packets to channels.  It is not
12377           used to send channel message packets anymore, as server never
12378           sends them anymore.
12379
12380         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
12381           va_arg()s as it seems to require it nowadays.  I guess, if SILC
12382           is compiled with older va_arg() the new code should work anyway.
12383
12384 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12385
12386         * Splitted core library.  Core library (lib/silccore) includes
12387           now only SILC protocol specific core (and common) components.
12388           Created new utility library (lib/silcutil) that includes more
12389           generic purpose stuff.  The stuff for util library was taken
12390           from the old core library.  This was minor and easy split.
12391
12392         * Created SILC Client Library (lib/silcclient) that includes
12393           implementation of the SILC client without user interface.  This
12394           was major move from silc/ directory.  The code has been changed
12395           so that it is transparent towards the user interface.  The
12396           silc/ directory includes now the same user interface as before
12397           and it uses the new client library.  Read lib/silcclient/README.
12398           Basicly, the client library performs everything else related
12399           to SILC except user interface handling.  Also, configuration
12400           files are considered to be part of user interface and library
12401           does not handle them.
12402
12403           This change also changed a lot of structures, function naming etc.
12404           Most important change was that SilcClientWindow object was
12405           renamed to SilcClientConnection in the client library.  Created
12406           also new file lib/silcclient/ops.h.  Also added new files
12407           silc/local_command.[ch] and silc/client_ops.[ch].
12408
12409           All these changes were made to make it easier for user interface
12410           designers to create what ever user interface for the SILC client
12411           they want.
12412
12413           It is also expected that the server will be moved to lib
12414           directory as well and SILC Server Library will be created;
12415           sometimes in the future.
12416
12417         * Removed Local commands from lib/silccore/silccommand.h as
12418           they are application specific and new client library does not
12419           handle any of those anymore.
12420
12421         * Several functions moved to lib/silcutil/silcutilc.[ch] from
12422           old client implementation in silc/.
12423
12424         * Added support for callback functions in SILC_LOG_* macros.
12425           Application can now set its own callbacks that will be called
12426           instead of using the default functions that will always print
12427           the debug messages to stderr (or stdout).  Also, debugging can
12428           now be disabled by setting silc_debug to FALSE and re-enabled by
12429           setting it to TRUE.  Note, that logging will still work even
12430           if debugging is disabled.
12431
12432           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
12433           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
12434           silc_log_reset_debug_callbacks.
12435
12436         * To enable debugging in silc client one must give now -d
12437           option on command line.
12438
12439         * Changed silc_schedule_init to automatically allocate task queues
12440           if they are not allocated before calling it.
12441
12442 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12443
12444         * Added GMP 3.1 into math library.
12445
12446 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12447
12448         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
12449           a channel in SILC network.  The packet is used by servers and
12450           routers to notify other routers that user has left a channel.
12451           This little feature was missing until now.  Added the feature
12452           to protocol specification as well.
12453
12454           Added functions: silc_server_send_remove_channel_user and
12455           silc_server_remove_channel_user into server.[ch].
12456
12457         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
12458           lib/silccore/silcpacket.h.  However, they are not implemented
12459           yet.
12460
12461 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12462
12463         * Fixed joining to a channel and sending channel messages
12464           between server and router.  The channel message sending should
12465           now work inside a cell.
12466
12467 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12468
12469         * Fixed the private message sending between server and router.
12470           The private message sending should now work inside a cell.
12471
12472         * Added silc_server_replace_id into server.[ch] to replace
12473           existing ID in the SILC network.
12474
12475         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
12476           and silc_idlist_replace_server_id into idlist.[ch] in server.
12477
12478 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12479
12480         * Fixed the server to server connections.  Server can again now
12481           connect to router.  Router to router connections probably does
12482           not work just yet.
12483
12484 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12485
12486         * Added dynamic protocol registering support.  Now protocols can
12487           registered and unregistered on the fly.  Patch by cras.
12488
12489 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12490
12491         * Added lib/contrib directory to hold routines that some platforms
12492           don't have but are needed by SILC.
12493
12494         * Added getopt.c, getopt1.c and getopt.h from GNU C library
12495           into lin/contrib to provide getopt() and getopt_long() for
12496           those who don't have it.
12497
12498 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12499
12500         * Added AWAY command to client.  When away message is set and
12501           client receives a private message packet the client automatically
12502           replies to the sender with the away message.
12503
12504         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
12505           bug seemed to be the cause of recent problems when compiling
12506           with gcc-2.95.
12507
12508         * Added version detection support to SKE protocol specification
12509           and added the new changes to the SKE implementation as well.
12510           There were other minor changes in the SKE protocol as well.
12511
12512           Many changes in lib/silcske/silcske.[ch] and in
12513           lib/silcske/payload.[ch].
12514
12515         * Added ^U functionality, clear input line.  Patch from cras.
12516
12517 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12518
12519         * Mainly small bugfixes on core library.  Fixed some debugging
12520           logging and buffer overflow in silclog.c.
12521
12522         * Updated config.sub and config.guess on the distribution tree.
12523
12524 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12525
12526         * Added command lagging support in server. Client may execute
12527           commands now only once in two seconds.
12528
12529 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12530
12531         * Optimized packet reception. MAC computation and checking is now
12532           also more optimized.  A lot previously duplicated code is now
12533           used as generic by both client and server.
12534
12535         * Fixed key pair generation in clientutil.c
12536
12537 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12538
12539         * Added into lib/silccore/silcbufutil.[ch] new function;
12540           silc_buffer_realloc.
12541
12542         * Moved generic packet sending/encryption functions to
12543           lib/silccore/silcpacket.[ch] from client and server.  Some
12544           rewriting of the functions.
12545
12546         * Moved all generic packet reception/decryption functions to
12547           lib/silccore/silcpacket.[ch] from client and server.  The
12548           packet processing is now much cleaner in both client and server.
12549           These were major changes in both client and server.
12550
12551         * Created many common functions in server to do packet sending.
12552           Previously code were duplicated a lot, this has been removed
12553           with these changes.
12554
12555 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12556
12557         * Rewrote major parts of the ID cache system.  Don't know
12558           whether it is better now or not but at least the API is more
12559           cleaner now.
12560
12561         * Major rewrite on ID cache stuff on client because of the ID
12562           cache API changes.  Added idlist.c to client.
12563
12564         * Also major rewrite on ID cache stuff on server as well.
12565           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12566           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12567           in hand, instead they are all put into the ID cache system now.
12568           All server_idlist_* routines uses ID cache now instead of
12569           traversing its own lists (those lists does not exist anymore).
12570           SilcIDList though still exists.  Also, SilcXXXEntry's are
12571           now pointers.
12572
12573 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12574
12575         * Finally made the SKE implementation compliant to the protocol
12576           specification.  All mp integers are now binary encoded as
12577           opposed being HEX encoded.
12578
12579         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12580           from binary data.
12581
12582         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12583           functions: silc_[encode/decode]_pem.  Also added function
12584           silc_encode_pem_file to PEM encode with newlines ('\n') for
12585           saving into a file.
12586
12587         * SILC public keys are now encoded either PEM or binary.  Same
12588           option is for private keys as well.  By default private keys
12589           are binary encoded and public keys PEM encoded.  Silly HEX
12590           encoding were removed.
12591
12592         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12593           function to create fingerprints.
12594
12595         * Fixed a bug in SHA1; does not change the original data anymore.
12596
12597         * Partly implemented INFO command on client and server side.
12598           Fixed CLEAR command.  Changes to SERVER command; show current
12599           server(s) when giving command without arguments.  Added
12600           VERSION command to client.
12601
12602         * Added check to server that unregistered connections cannot
12603           execute commands (unless it is specificly allowed).
12604
12605 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12606
12607         * Fixed screen refresh.
12608
12609         * Fixed channel joining bug from client.  On some circumstances
12610           client tried to join to a channel it had already joined.
12611
12612         * Added public key verification process into client's protocol.c.
12613           The client now verifies the public key from user and saves
12614           it into ~./silc/serverkeys/ directory.
12615
12616           Added into: clientutil.[ch]: silc_client_verify_server_key.
12617
12618         * Changed SKE protocol's silc_ske_initiator_finish function
12619           to accept callback function that verifies the received public
12620           key.  Removed old silc_ske_verify_public_key function.
12621
12622 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12623
12624         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12625           silc_pkcs_private_key[_data]_set.
12626
12627         * Made the password and public authentication more cleaner in
12628           server's protocol.c.
12629
12630         * Removed historic and obsolete protocol `channel_auth' from
12631           both client and server.
12632
12633         * Removed wrong way of sending command status messages from
12634           server to client in server's command.c.  The old way violated
12635           protocol specification.
12636
12637           Changes to silccore/silccommand.[ch]: removed
12638           silc_command_encode_status_payload -> not needed anymore,
12639           changed silc_command_encode_payload_va to accept extra
12640           argument on variable argument list.  The argument type must
12641           now be provided to the function.  Also, added new function:
12642           silc_command_encode_reply_payload_va which is same as
12643           normal command_encode_payload_va except command status type
12644           is provided as extra argument.
12645
12646 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12647
12648         * Added ~./silc directory handling.  The directory includes the
12649           public and private keys for the client.
12650
12651           Added silc_client_check_silc_dir, silc_client_create_identifier
12652           and silc_client_load_keys.
12653
12654         * Implemented SILC protocol compliant public key.  Added public
12655           and private key saving to and loading from files.
12656
12657           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12658           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12659           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12660           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12661           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12662
12663           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12664           silc_pkcs_load_[public/private]_key.
12665
12666 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12667
12668         * Added silc_server_get_route (route.[ch]) to get connection
12669           data for the fastest route for given ID.
12670
12671         * Implemented INVITE command on client and server.  The command
12672           were re-defined in the SILC Protocol Specification and the
12673           implementation now complies with the specification.
12674
12675         * Implemented PING command on client and server.
12676
12677         * Implemented NAMES command on client and server.  The server side
12678           supports currently only normal server not router server yet.
12679           Some changes to NAMES definition in SILC protocol specification.
12680
12681 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12682
12683         * Implemented LEAVE command on client and server.
12684
12685         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12686           again.  This change was made to the protocol as well.  Server
12687           should not violate the protocol specification anymore.
12688
12689 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12690
12691         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12692           was tested.  SOCKS4 was not but should work anyway.