updates.
[silc.git] / CHANGES
1 Thu May 17 18:05:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Fixed silc_show_public_key to not free public key in case of
4           failure.  Affected file is lib/silcapputil/silcapputil.c.
5
6 Thu May 17 17:09:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
7
8         * SILC Toolkit 1.1 Beta3.
9
10         * Porting Toolkit to Symbian.  It should work while some sporadic
11           odd crashes remain.  However I was able to run mybot on SILCNet.
12           Basically tested scheduler, net routines, socket  routines,
13           threads and some other utility routines.  Affected files are
14           in lib/silcutil/symbian/.
15
16 Thu May 17 11:57:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
17
18         * Show realname and email address from public key when verifying
19           cached public keys with GETKEY.  Affected files are
20           apps/irssi/src/fe-common/module-formats.[ch] and
21           apps/irssi/src/silc/core/client_ops.c.
22
23 Wed May 16 20:41:04 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
24
25         * Include SILC Plugin theme.  Affected file is apps/irssi/plugin.theme
26
27         * Include SILC Plugin /silc command help.  Affected file is
28           apps/irssi/docs/help/silc
29
30         * Create channels before joining them.  Affected file is
31           apps/irssi/src/silc/core/client_ops.c
32
33 Wed May 16 18:59:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
34
35         * Fixed channel private key listing with /key.  Affected file
36           is apps/irssi/src/silc/core/silc-channels.c.
37
38         * Fixed the public headers from anonymous structures.  Affected
39           files are lib/.
40
41         * Changed silc_buffer_*len macros to inline functions.  Affected
42           file is lib/silcutil/silcbuffer.h.
43
44 Wed May 16 10:21:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
45
46         * Fixed nickname format parsing in JOIN notify handling and
47           in WHOIS command reply.  Affected file is
48           apps/irssi/src/silc/core/client_ops.c.
49
50 Wed May 16 09:34:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
51
52         * SILC Client 1.1 Beta4.
53
54 Tue May 15 23:55:41 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
55
56         * Added SILC_VERIFY macro which is equivalent to SILC_ASSERT
57           but is compiled always in.  Affected file is 
58           lib/silcutil/silclog.h.
59
60         * Use SILC_VERIFY in FSM macros instead of SILC_ASSERT which is
61           not there in release builds.  Affected file is
62           lib/silcutil/silcfsm.h.
63
64 Tue May 15 21:19:09 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
65
66         * SILC Client 1.1-beta3
67
68 Mon May 14 23:20:59 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
69
70         * Added silc_utf8_c2w and silc_utf8_w2c to do UTF-8 to widechar
71           and widechar to UTF-8 conversions.  Affected files are
72           lib/silcutil/silcutf8.[ch].
73
74 Mon May 14 19:45:14 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
75
76         * Include a README for the SILC Plugin
77
78 Sun May 13 22:08:59 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
79
80         * Adopt perl Makefiles for SILC Plugin.
81
82 Sun May 13 18:27:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
83
84         * Fixed client library initialization when the running callback
85           is not given to silc_client_init.  Affected file is
86           lib/silcclient/client.c.
87
88         * Fixed Symbian compilation problems around the tree.  Added
89           new Carbide.c++ project files to symbian/ directory.
90
91         * Fixed SilcLog API to work on Symbian.  On Symbian it doesn't
92           use any globals.  Affected files are lib/silcutil/silclog.c
93           and silclog_i.h.
94
95 Sun May 13 16:54:35 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
96
97         * Fix several warnings in Irssi's Makefiles.
98
99 Sun May 13 12:16:30 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
100
101         * Disable ASM if --with-pic was given.  Affected file is
102           lib/silccrypt/configure.ad
103
104 Fri May 11 19:10:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
105
106         * Wakeup scheduler in silc_fsm_continue and silc_fsm_next_later
107           in case they are called from a thread.  Affected file is
108           lib/silcutil/silcfsm.c.
109
110         * Fixed WIN32 thread creation to handle the Tls correctly.
111           Affected file is lib/silcutil/win32/silcwin32thread.c.
112
113 Thu May 10 18:29:18 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
114
115         * SILC Toolkit 1.1-beta2.
116
117 Thu May 10 18:21:10 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
118
119         * Fixed silc_net_tcp_connect crash on Unix and Win32.  Handle
120           the socket async operation correctly.  Changed that DNS lookup
121           is now done during connecting.  Affected files are
122           lib/silcutil/[unix|win32]/silc[unix|win32]net.c.
123
124         * Changed also silc_net_tcp_connect on Symbian to do DNS lookup.
125           Affected file is lib/silcutil/symbian/silcsymbiannet.c.
126
127         * Optimize silc_net_gethostbyname to check if the name is already
128           IP address.  Affected file is lib/silcutil/silcnet.c.
129
130 Wed May  9 19:51:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
131
132         * Print filename instead of empty function name in debug output
133           on WIN32.  Affected files are lib/silcutil/silclog_i.h and
134           silclog.c.
135
136         * Rewrote WIN32 SILC Scheduler.  It now handles non-blocking file 
137           descriptors and sockets better.  Though, room for optimization
138           remains.  Affected file is lib/silcutil/win32/silcwin32schedule.c.
139
140         * Removed silc_net_win32_[init|uninit].  They are called now
141           automatically when SILC Scheduler is allocated.  Wrote IPv4
142           address parser because inet_addr seemed not to work on my WIN32.
143           Affected file is lib/silcutil/win32/silcwin32net.c.
144
145         * Improved socketstream.h and stream.h documentation.
146
147 Tue May  8 18:13:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
148
149         * Changed private message waiting API in client library to make
150           it work better with multiple waiting threads.  The waiting is
151           not always per client entry instead of per connection.  Affected
152           files are lib/silcclient/client_prvmsg.c, client.h and
153           silcclient.h.
154
155         * Changed silc_packet_wait_init function to accept the the expected
156           Source ID of the packet as argument.  If specified only packets
157           with the specified types and Source ID are delivered.  Affected
158           files are lib/silccore/silcpacket.[ch].
159
160         * Fixed file transfer disconnection crash when closing the session
161           directly in the monitor callback after disconnection.  Affected
162           file is lib/silcclient/client_ftp.c.
163
164         * Make Toolkit compile on WIN32.  Affected files in win32/
165           and in lib/silcutil/win32/.
166
167         * Changed silc_compare_timeval to return negative, zero or
168           positive instead of just TRUE or FALSE.  This fixes 0 timeout
169           task dispatching on Windows.  Affected files are
170           lib/silcutil/silctime.[ch] and silcschedule.c.
171
172 Mon May  7 18:18:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
173
174         * Fixed CMODE channel auth public key retrieval.  Affected
175           file is lib/silcclient/command.c.
176
177         * Fixed CMODE command reply to return channel public keys
178           correctly.  Affected files are lib/silcclient/command_reply.c
179           and client_channel.c.
180
181 Sun May  6 12:43:19 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
182
183         * Added current channel key cipher name and HMAC name to
184           SilcChannelEntry.  Fixed channel private key creation.
185           Affected files are lib/silcclient/client_channel.c,
186           client_entry and silcclient_entry.h.
187
188         * Allow formatted nicknames as input to silc_client_get_clients
189           and silc_client_get_clients_whois.  Affected file is
190           lib/silcclient/client_entry.c.
191
192         * Fixed silc_message_payload_free crash.  Affected file is
193           lib/silccore/silcmessage.c.
194
195         * Added SILC_STATUS_ERR_NO_SUCH_PUBLIC_KEY to
196           lib/silccore/silcstatus.h.
197
198 Thu May  3 18:07:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
199
200         * Imported libtommath 0.41.  Renamed all mp_* functions to
201           tma_mp_* functions to avoid rare linking problems on systems
202           with mp_* functions.  Affected files are in lib/silcmath/.
203
204 Wed May  2 17:46:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
205
206         * SILC Toolkit 1.1 Beta1.
207
208 Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
209
210         * Set the server and router operator modes to local entry after
211           successful OPER or SILCOPER commands.  Affected file is
212           lib/silcclient/command_reply.c.
213
214 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
215
216         * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
217           and other smaller APIs to WIN32.  Affected files are in
218           lib/silcutil/win32/.
219
220         * Changed the various regex APIs as generic code in util library.
221           Affected files are lib/silcutil/silcstrutil.[ch].
222
223 Sat Apr 28 13:47:47 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
224
225         * Ported SILC Server to the new Toolkit API, working towards
226           SILC Server 1.1.  Affected files are in apps/silcd/.
227
228         * Added silc_skr_del_public_key, silc_skr_[ref|unref]_public_key
229           to lib/silcskr/silcskr.[ch].
230
231         * Fixed SILC public key copying to copy the identifier also.
232           Affected file is lib/silccrypt/silcpk.c.
233
234         * Added silc_packet_error_string to lib/silccore/silcpacket.[ch].
235
236         * Fixed OPER and SILCOPER passphrase asking in Client library.
237           Affected file is lib/silcclient/command.c.
238
239 Tue Apr 24 17:55:24 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
240
241         * Fixed command queue enabling after connecting to server.
242           The comparisons was from after changing to silc_utf8_strcasecmp.
243           Affected file is apps/irssi/src/silc/core/silc-servers.c.
244
245         * Fixed nickname setting with own client entry with 1.3 protocol
246           version server.  Affected file lib/silcclient/client_register.c.
247
248         * Ignore error notify for local client entry.  Affected file is
249           lib/silcclient/client_notify.c.
250
251         * Implemented responder rekey to SKE library.  Affected files are
252           lib/silcske/silcske.[ch].
253
254         * Fixed connection auth protocol completion sending.  Affected
255           file lib/silcske/silcconnauth.c.
256
257 Mon Apr 23 17:20:01 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
258
259         * Do not call TCP network listener callback with any error
260           status, as documented.  Affected file is
261           lib/silcutil/unix/silcunixnet.c.
262
263 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
264
265         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
266
267         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
268           Changed silc_skr_find to have SilcSchedule argument and removed
269           it from silc_skr_[alloc|init].  Affected files are
270           lib/silcskr/silcskr.[ch].
271
272         * Allow NULL id for silc_idcache_add.  Affected file is
273           lib/silcapputil/silcidcache.c.
274
275         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
276           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
277           Fixed also channel message encryption with router-to-router
278           packets.
279
280         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
281
282         * Added silc_net_get_error_string, silc_net_listener_get_ip and
283           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
284
285 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
286
287         * Add option --enable-silc-plugin.  Affected files are
288           apps/irssi/configure.{ad,in}
289
290         * Only compile the SILC Plugin if required.  Affected files are
291           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
292
293         * Conditionally build the SILC Plugin.  Affected files are
294           apps/irssi/src/silc/core/Makefile.am,
295           apps/irssi/src/fe-common/silc/Makefile.am
296
297         * Backout delayed protocol exit and replace with a lame busy
298           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
299           apps/irssi/src/silc/core/silc-core.c
300
301         * Fix key generation for SILC Plugin.  Affected file
302           apps/irssi/src/silc/core/clientutil.c
303
304 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
305
306         * Only pass -rpath to libtool when building shared libraries.
307           Affected file lib/Makefile.ad
308
309         * Removing the stray "s" in configure.ad
310
311 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
312
313         * Redraw the screen after creating a new key.  Affected file
314           apps/irssi/src/silc/core/clientutil.c
315
316 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
317
318         * Added SILC Client setting /set nickname_format that specifies
319           the nickname format string.  Changed default nickname format
320           string to "%n#%a".  Affected file is
321           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
322
323         * Fixed nickname parsing with WHOIS command to accept formatted
324           nicknames.  Changed the silc_client_get_clients_local to allow
325           the searched nickname to be formatted nickname.  Removed %s and
326           %S nickname formatters.  Affected files are in lib/silcclient/.
327
328         * Added silc_client_nickname_parse to Client library API.  Affected
329           file is lib/silcclient/silcclient.h.
330
331         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
332           commands.  Affected file are
333           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
334
335 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
336
337         * Incorporate SILC Plugin patches.  Affected files are
338           apps/irssi/src/fe-common/silc/module-formats.{c,h},
339           apps/irssi/src/silc/core/clientutil.{c,h},
340           apps/irssi/src/silc/core/silc-core.c,
341           apps/irssi/src/silc/core/silc-chatnets.{c,h},
342           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
343           apps/irssi/src/fe-common/silc/module.h
344
345 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
346
347         * In notify handling resolve user entries many times if the
348           resolving timedout.  Affected file lib/silcclient/client_notify.c.
349
350         * silc_client_get_clients_local do not return any invalid entries.
351           Affected file is lib/silcclient/client_entry.c.
352
353         * Do not print "there are now xx user on this channel" for users
354           that actually aren't anymore on the channel.  Affected file
355           is apps/irssi/src/client_ops.c.
356
357 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
358
359         * When joining channels with a password given in the config file,
360           use it.  Also use it when cycling (it would be better to get
361           the password from the server, but this isn't possible in SILC).
362           Affected files apps/irssi/src/silc/core/silc-servers.c,
363           apps/irssi/src/silc/core/silc-channels.c
364
365 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
366
367         * Import perl script for sign_messages from silc-plugin.  Affected
368           file apps/irssi/scripts/silc.pl
369
370 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
371
372         * Only wait for a nick on connecting, when it differs
373           (not counting case) from the username.  Affected file
374           is apps/irssi/src/silc/core/silc-servers.c
375
376 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
377
378         * Use time settings for lag settings.  Affected file is
379           apps/irssi/src/silc/core/silc-lag.c
380
381 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
382
383         * Added silc_thread_yield.  Affected file is
384           lib/silcutil/silcmutex.h.
385
386 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
387
388         * Fixed WHOIS command and requested attributes handling in
389           client library.  Affected files are lib/silcclient/command.c
390           and lib/silcclient/client_attrs.c.
391
392         * Fixed silc_time_value to actually work.  Added new function
393           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
394
395 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
396
397         * SILC Client 1.1 beta2.
398
399 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
400
401         * Fixed client to properly abort TCP stream creation when
402           giving /QUIT.  Affected file
403           apps/irssi/src/silc/core/silc-servers.c.
404
405         * Fixed several connecting aborting crashes from the client
406           library, packet engine and socket stream.  Affected files
407           are in lib/silclient/, lib/silccore/silcpacket.c and
408           lib/silcutil/unix/silcunixsocketstream.c.
409
410         * Fixed private key export double free crash in key generation.
411           Affected file is lib/silccrypt/silcpk.c.
412
413         * Fixed FSM event waiting when there are multiple signallers
414           and the waiter goes away after the first signal.  Affected
415           file in lib/silcutil/silcfsm.c.
416
417 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
418
419         * Fixed FSM event signalling to check if the waiter has gone
420           away already.  Affected file is lib/silcutil/silcfsm.c.
421
422         * Fixed counter mode encryption/decryption to handle non-padded
423           SILC packets correctly.  The silc_cipher_set_iv now
424           in counter mode resets for a new block.  Affected files are
425           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
426
427 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
428
429         * SILC Client 1.1 beta1.
430
431         * Memory leak fixes around the libraries.
432
433 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
434
435         * Added better check for epoll() in configure.  Affected file
436           is lib/configure.ad.
437
438 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
439
440         * Fixed per scheduler data input buffer in packet engine.  Use
441           list of inbufs instead of just one so that multiple streams
442           can do partial reads to different buffers.  Affected file is
443           lib/silccore/silcpacket.c.
444
445         * Fixed WATCH notify handling in client library.  Affected file
446           is lib/silcclient/client_notify.c.
447
448 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
449
450         * Fixed packet wrapper stream API to support encoder/decoder
451           for packets, and to handle partial reading correctly.  Fixed
452           also inbuf size checking in reading to have enough space before
453           reading.  Affected files are lib/silccore/silcpacket.[ch].
454
455         * Rewrote file transfer in client library.  Affected files are
456           in lib/silcclient/.
457
458         * Added TCP/UDP listener (internal) API to client library to have
459           generic way of dealing with listeners.  Fixed Key Agreement and
460           file transfer to use it.  Affected files are in lib/silcclient/.
461
462         * Fixed SKE to process SUCCESS packets synchronously and to call
463           completion synchronously.  Affected file is lib/silcske/silske.c.
464
465         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
466
467         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
468           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
469
470 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
471
472         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
473           to client library.  Affected file is
474           lib/silcclient/client_register.c.
475
476         * Serialize NICK and JOIN commands to avoid problems locally
477           with changing ID while joining to channel.  Affected file is
478           lib/silcclient/command.c.
479
480         * Fixed entry resolving while handling incoming JOIN notify.
481           Handle properly cases, in re-processing of notify packets, where
482           the IDs may become invalid while resolving the entry (like nick
483           change).  Entry is invalid if it doesn't have nickname, and such
484           entries are not delivered to application anymore.  These fixes
485           problems of not seeing JOINs when remote user changes nickname
486           at the same time.  Affected files are in lib/silcclient/.
487
488 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
489
490         * Added support for computing message payload MAC in new way
491           (SILC Protocol version 1.3).  Bakcwards support for old way
492           remains.  Affected files are lib/silccore/silcmessage.[ch].
493
494 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
495
496         * Added SilcRwLock API, a read/write lock.  Affected files are
497           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
498
499 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
500
501         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
502
503 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
504
505         * The silc_schedule_set_listen_fd now returns boolean value.
506           Fixed FD task adding to check correctly for already added
507           FD tasks.  Added stricter error checking for FD scheduling
508           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
509           and lib/silcutil/unix/silcunixschedule.c.
510
511         * The silc_stream_set_notifier now returns boolean value.  Changed
512           all streams to support and check for the error condition.
513           Affected files are in lib/silcutil/.
514
515         * Fixed SKE library session aborting and deletion.  Affected
516           file are lib/silcske/silcske.c.
517
518 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
519
520         * Implemented PKCS #1 with appendix with hash OID in the
521           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
522           lib/silccrypt/silchash.[ch] and
523           lib/silcasn1/silcasn1[_encode|decode].[ch].
524
525 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
526
527         * Added support for Version (V) SILC public key identifier.
528           Affected files are lib/silccrypt/silcpk.[ch].
529
530 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
531
532         * Rewrote connection auth request in client library.  It is now
533           done automatically by the library and the resolved method given
534           as a hint to get_auth_method client operation.  Affected files
535           are lib/silcclient/.
536
537 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
538
539         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
540           It can be used to wrap SilcPacketStream into SilcStream.
541
542         * Fixed %p formatting from silc_snprintf.  Affected file is
543           lib/silcutil/silcsnprintf.c.
544
545         * Ported SFTP library to new utility library.  Ported also
546           the SFTP testers.  Affected files in lib/silcsftp/.
547
548 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
549
550         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
551           of silc_snprintf, silc_vsnprintf, silc_asprintf and
552           silc_vasprintf.
553
554 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
555
556         * Added preliminary Symbian support.  Changes around the source
557           tree.  The symbian/ directory now includes Carbide.c++ project
558           files to compile the sources.
559
560         * Added silc_snprintf.  Affected files are
561           lib/silcutil/silcstrutil.[ch].
562
563 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
564
565         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
566           macros.  SILC_FSM_CONTINUE macro now immediately calls the
567           next state instead of first returning back to FSM.  Helps
568           in debugging crashes etc.
569
570           Removed FSM Semaphores.  Introduced FSM Event which is
571           asynchronous event.   Affected files are in lib/.
572
573         * Added epoll(7) support to SILC Scheduler.  It is used by default
574           if it is available.  Affected files are
575           lib/silcutil/silcschedule.[ch],
576           lib/silcutil/unix/silcunixschedule.c.
577
578 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
579
580         * Added CTR mode to AES.  Simplified cipher implementation API
581           more.  Affected files are in lib/silccrypt/.
582
583 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
584
585         * Removed `detach' client operation.  The detachment data is
586           now delivered in SILC_COMMAND_DETACH command reply to
587           application.  Affected file in lib/silcclient/.
588
589         * Rewrote resuming/detaching in client library.
590
591         * Added boolean encryption indicator for silc_cipher_set_key.
592           Affected files lib/silccrypt/silccipher.[ch].
593
594 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
595
596         * Added silc_likely and silc_unlikely macros for GCC branch
597           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
598
599         * Added assembler AES optimization.  Cleaned up the SILC Cipher
600           implementation API.  Affected files are in lib/silccrypt/.
601
602 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
603
604         * Changed back the SILC_FSM_THREAD_WAIT operation to not
605           continue to next state if thread is finished already.  That
606           check is not done anymore.  Affected files are
607           lib/silcutil/silcfsm.[ch].
608
609 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
610
611         * Removed silc_packet_[get|set]_ciphers and
612           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
613           handle REKEY_DONE packet sending in rekey.  Affected files
614           are lib/silccore/silcpacket.[ch].
615
616         * Added silc_fsm_is_started.  Affected files are
617           lib/silcutil/silcfsm.[ch].
618
619         * Added settings sign_channel_message, sign_private_message
620           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
621           support for key agreement in /KEY command. Affected files
622           in apps/irssi/src/silc/core/.
623
624         * During SILC Client initialization forward log messages to
625           stderr.   Affected files in apps/irssi/src/silc/core/.
626
627 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
628
629         * Added silc_ske_get_key_material.  Affected files are
630           lib/silcske/silcske.[ch].
631
632         * Added silc_packet_stream_is_udp.  Affected files are
633           lib/silccore/silcpacket.[ch].
634
635         * Added SKE packet retransmission support with UDP transport.
636           Affected file is lib/silcske/silcske.c.
637
638 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
639
640         * Added silc_socket_stream_is_udp.  Affected file is
641           lib/silcutil/silcsocketstream.[ch].
642
643         * Added UDP transport support to packet engine.  Affected file
644           is lib/silccore/silcpacket.c.
645
646         * Added silc_socket_stream_is_udp.  Affected file is
647           lib/silcutil/silcsocketstream.[ch].
648
649 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
650
651         * Added silc_packet_send_va[_ext] to send variable argument
652           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
653
654         * Timeout freelist garbage collection added to scheduler.
655           Affected file lib/silcutil/silcschedule.c.
656
657 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
658
659         * Added silc_show_public_key_file to
660           lib/silcapputil/silcapputil.[ch].
661
662         * Added SILC_STR_ADVANCE support for buffer unformatting.
663           Affected file lib/silcutil/silcbuffmt.c.
664
665 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
666
667         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
668
669         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
670
671         * silc_fsm_continue[_sync] now cancels erlier timeout set with
672           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
673
674 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
675
676         * Added SILC_STR_FUNC to buffer format API.  Affected files
677           are lib/silcutil/silcbuffmt.[ch].
678
679         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
680
681         * No more memory allocation for message payload parsing.
682           Pre-allocated buffer can be used with message payload encoding.
683           Affected files lib/silccore/silcmessage.[ch].
684
685 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
686
687         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
688           to silcutil/silcbuffmt.[ch].
689
690 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
691
692         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
693           Affected file lib/silcutil/silcbuffmt.[ch].
694
695         * Removed silc_schedule_signal_[un]register and
696           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
697           to add signal task.  Only one callback per signal may be
698           added.  The signals are now automatically called back to
699           caller.  Affected files lib/silcutil/silcschedule.[ch] and
700           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
701
702         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
703
704         * Added SilcSKEParams for SKE parameters and simplied even more
705           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
706           Added support for IV included and session port handling with
707           UDP/IP connections.
708
709         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
710           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
711           which is called after every rekey when IV Included flag is used.
712           See SILC specifications for details.
713
714 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
715
716         * Added lib/silcapputil and moved SILC application specific
717           utility routines from the generic util library lib/silcutil
718           to the new library.  Removed lib/silcidcache and moved that
719           to lib/silcapputil as well.
720
721 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
722
723         * Added SILC_STR_ADVANCE.  Affected file is
724           lib/silcutil/silcbuffmt.[ch].
725
726         * The silc_buffer_strformat preserves buffer locations now.
727
728         * Added lib/silcutil/silcatomic.h for atomic operations.
729
730 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
731
732         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
733           server.
734
735         * Fixed MIME deocing when data portion is not present.
736           Affected file lib/silcutil/silcmime.c.
737
738 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
739
740         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
741
742         * Added IV Included support to packet routines, to allow
743           packet sending and receiving on UDP/IP.  Affected files are
744           lib/silccore/silcpacket.[ch].
745
746         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
747
748 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
749
750         * Added UDP support to network and socket stream library.
751
752 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
753
754         * Added conditional variables.  New files are
755           lib/silcutil/silcondvar.h and platform specific implementations.
756
757 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
758
759         * make sure session->hostname and session->port are valid before the
760           application callback is done, since things will go wrong if the
761           application immediately calls silc_client_file_receive. Affected
762           file lib/silcclient/client_ftp.c.
763           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
764
765 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
766
767         * New SILC PKCS API enabling support for other public keys
768           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
769
770         * Separated SILC Public Key Payload routines from the PKCS API
771           to lib/silccore/silcpubkey.[ch].
772
773 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
774
775         * Added SILC Key Repository library, lib/silcskr.
776
777         * Added SILC Server library, lib/silcserver.
778
779 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
780
781         * MIME objects in attributes now use SilcMime.  Affected files
782           are lib/silccore/silcattrs.[ch].
783
784 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
785
786         * Synchronize semaphore posting for real threads in FSM.
787           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
788
789 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
790
791         * Added silc_file_set_nonblock.  Affected file is
792           lib/silcutil/silcfileutil.h.
793
794         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
795
796 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
797
798         * FSM based implementation of SILC SKE.  Simpler interface also.
799           Affected files are in lib/silcske/.
800
801         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
802
803 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
804
805         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
806           silc_mime_parse is available but deprecated.
807
808         * Check that packet is valid when processing key exchange,
809           authentication and rekey protocols.  Fixes a crashbug.
810           Affected files are apps/silcd/protocol.c and
811           lib/silcclient/protocol.c.
812
813         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
814           all hash buffers to use that instead of fixed values.
815
816 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
817
818         * Added SHA-256 to crypto library.  The SHA-256 takes now
819           precedence over SHA-1.
820
821 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
822
823         * Check for valid return value from regcomp.  Affected file
824           lib/silcutil/unix/silcunixutil.c.
825
826 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
827
828         * Fixed silc_hash_uint to work with integers.  Affected
829           file lib/silcutil/silcutil.c.
830
831 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
832
833         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
834
835 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
836
837         * Fixed channel public key list saving on JOIN command reply
838           on backup router.  Affected file apps/silcd/command_reply.c.
839
840 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
841
842         * Added default limit how many channels client can join,
843           default is 50.  Added 'channel_join_limit' configuration
844           option to server too.  Affected files are apps/silcd/command.c
845           and serverconfig.[ch].
846
847 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
848
849         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
850           On Toolkit the server and client are not compiled by default.
851           Affected file configure.ad.
852
853 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
854
855         * Added lib/contrib/getopt.[ch] for platforms that don't
856           have it (it is not GPL implementation).
857
858         * Fixed compilation when pkg-config is used.
859
860 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
861
862         * A comma in invite/ban string is invalid, check for it.
863           Affected file apps/silcd/server_util.c.
864
865         * Added SERVICE command to the server.  It parses the command
866           request but SILC Server does not support services for the
867           time being.  Affected file apps/silcd/command.[ch].
868
869         * Added SERVICE command and command reply to client library.
870           It is however incomplete.  Updated Toolkit documentation.
871           Affected files are lib/silcclient/command[_reply].[ch].
872
873         * Fixed IDENTIFY/WHOWAS command reply to send the username
874           correctly (uninitialized buffer).  Affected file is
875           apps/silcd/server_query.c.
876
877 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
878
879         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
880           finalizes the major restructuring of the CVS tree.
881
882 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
883
884         * Send empty MOTD reply if MOTD file cannot be read.
885           Affected file silcd/command.c.
886
887 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
888
889         * Optimized primer number generator to use simpler conversion
890           routines.  Also assure that the prime number will have the
891           highest bit set after modifying it.  Affected file is
892           lib/silcmath/silcprimegen.c.
893
894         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
895
896         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
897           for now only for testing purposes, it will not be delivered
898           in any distribution for now.
899
900         * Removed NSS MPI from the source tree.  Due to upcoming
901           license change for the SILC Toolkit, we cannot deliver the
902           NSS MPI anymore.  I decided to replace it in all distributions
903           with public domain library.
904
905         * Removed GNU regex from lib/contrib and introduced free
906           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
907           GNU regex compatible API to it (only partial).
908
909         * Removed getopt routines from lib/contrib.
910
911 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
912
913         * Use silc_server_send_command_reply to send replies instead
914           of encoding packet itself.  Affected file silcd/command.c.
915
916         * Added command sending and receiving statistics to server.
917           Affected files in silcd/.
918
919         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
920           with GCC, for it not to warn about pointer signedness.
921
922 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
923
924         * Added context to the SilcIDCache destructor.  Affected
925           files are lib/silccore/silcidcache.[ch],
926           lib/silcclient/client.c and silcd/server.c.
927
928 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
929
930         * Added pkg-config check to configure.
931
932         * The PublicKeyDir must not be used with Admin block in server
933           config.  Affected file silcd/serverconfig.c.
934
935 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
936
937         * Added Autodist.
938
939 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
940
941         * Handle empty LIST command reply correcttly in server.  Affected
942           file silcd/command_reply.c.
943
944         * Handle empty LIST command reply correctly in client library.
945           The application will now receive one LIST command reply with
946           all arguments set to NULL if there are no channels.  Updated
947           Client Library documentation accordingly.  Affected file
948           lib/silcclient/command_reply.c.
949
950 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
951
952         * Added channel name string stringprep profile to the protocol
953           and implementation to allow a little free'er channel name
954           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
955
956         * Added silc_channel_name_[check|verify] to check and verify
957           channel name strings.  Affected files are
958           lib/silcutil/silcstrutil.[ch].
959
960         * Added support for the new channel name preparation in client
961           library and server.  Affected files in lib/silcclient and
962           silcd/.
963
964 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
965
966         * Added the Autodist into the source tree.  It replaces the
967           old ./prepare.  It can be used to create distributions as
968           previously.  See README.CVS and README.DIST.  See
969           distributions in distdir/.
970
971 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
972
973         * Make sure query sends at least an error back if nothing
974           more is sent.  Affected file silcd/server_query.c.
975
976 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
977
978         * During query, check if the original command caller goes
979           away.  If it does, stop the query.  Affected file
980           silcd/server_query.c.
981
982         * Check for valid channel creation in JOIN command reply.
983           Affected file lib/silcclient/command_reply.c.
984
985         * Handle the resolver counter in silc_client_get_users_by_channel
986           callback correctly.  Fixed auto-join bug in Gaim.  Affected
987           file lib/silcclient/idlist.c.
988
989 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
990
991         * Added some better error messages.  Affected file
992           silcd/command_reply.c and packet_receive.c.
993
994         * Handle error in WATCH command propely on backup router.
995           Affected file silcd/command.c.
996
997         * Fixed freeing of unfreeable variable in WHOIS command reply.
998           Affected file silcd/command_reply.c.
999
1000 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
1001
1002         * Added pkg-config .pc file creation for silc core library
1003           and silcclient library.  A patch by c0ffee.
1004
1005         * Removed the need for GNU Libidn.  Added the simple stringprep
1006           from libidn into lib/contrib/.  It is now used also on Windows
1007           build.
1008
1009 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1010
1011         * Simplified the invite and ban string handling in the
1012           server.  Check for valid invite and ban arguments also.
1013           Affected file silcd/server_util.c.
1014
1015 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1016
1017         * Added WATCH list announcing in backup router protocol.
1018           Affected files are silcd/command.c, server.c, server_backup.c.
1019
1020         * Do not change users mode to founder on normal server/backup
1021           if the founder mode is set, and user is first one to join.
1022           Affected file silcd/pcaket_receive.c.
1023
1024         * Do not send CUMODE_CHANGE notify back to sender.  Affected
1025           file silcd/packet_receive.c.
1026
1027         * Added getrusage() to take noise in SILC RNG.  A patch by
1028           Mika Boström.  Affected files are configure.in.pre,
1029           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
1030
1031 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1032
1033         * Splitted the SILC libraries configuration into a configure
1034           fragment into lib/configure.ad.  It is now possible, once
1035           this feature is added, to specify whether to compile or not
1036           compile included SILC libraries.  Affected files are
1037           configure.in.pre, lib/silcmath/mpi/configure.ad,
1038           lib/configure.ad, Makefile.defines.pre and
1039           Makefile.defines_int.pre.
1040
1041         * Added --with-silc-includes and --with-silc-libs to configure.
1042           If specified the included libs are not compiled, but the
1043           specified libs are used.  Pkg-config is not yet supported.
1044           Affected file configure.in.pre.
1045
1046         * Fixed WATCH command handling on backup router.  Router does not
1047           send the watch command any more to backup if it originates from
1048           backup.  Affected file silcd/command.c.
1049
1050 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1051
1052         * Changed announcing to not announce unregistered clients.
1053           Affected file silcd/server.c.
1054
1055         * Fixed username handling in command reply.  Affected file
1056           silcd/command_reply.c.
1057
1058         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
1059
1060 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
1061
1062         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
1063           Affected file: includes/silcincludes.h.in
1064
1065         * bool is defined as _Bool on Mac OS X now.
1066           Affected file: lib/silcutil/silctypes.h
1067
1068 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1069
1070         * Added support for UTF-8 nicknames, channel names and
1071           server names in client library.  Affected files in
1072           lib/silcclient/.
1073
1074         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
1075           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
1076           software to check how Toolkit has been compiled.
1077
1078 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1079
1080         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
1081
1082         * Use silc_utf8_str[n]casecmp instead of strcmp routines
1083           in library and in SILC Client when dealing with nicknames
1084           and other identifier strings.  Affected file in client lib
1085           and irssi.
1086
1087         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
1088           irssi/src/silc/core/silc-servers.c.
1089
1090 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1091
1092         * Fixed idcache to work with the new identifier strings.
1093           Affected file lib/silccore/silcidcache.c.
1094
1095         * Added UTF-8 hash and compare function for SilcHashTable.
1096           Affected file lib/silcutil/silcutil.[ch].
1097
1098         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
1099           Affected file lib/silcutil/silcstringprep.[ch].
1100
1101         * Changed the identifier string handling to include the original
1102           format in client, server, channel entries and normalized
1103           format in cache.  Affected files in silcd/.
1104
1105 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1106
1107         * Added support for the new identifier strings and their
1108           validity checking.  Nicknames, channel names and usernames
1109           can now include practically any kind of letters and various
1110           other characters.  Affected files in silcd/ and in libraries.
1111
1112           NOTE: comparing these strings should now be done with memcmp()
1113           to check binary compatibility.  All these strings are normalized
1114           and casing is irrelevant.
1115
1116         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
1117           as easy function for applications to check whether identifier
1118           strings are valid.
1119
1120 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1121
1122         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
1123           file lib/silcutil/silcutf8.c.
1124
1125         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
1126
1127 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1128
1129         * Make public key in getkey reply mandatory.  Affected file
1130           lib/silcclient/command_reply.c
1131
1132 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
1133
1134         * Added Parameter dont_register_crypto_library to
1135           SilcClientParam. If set to TRUE, silcclient library will
1136           not initalize the Crypto Libraries and application
1137           will need to do it. Affected file lib/silcclient/silcclient.h,
1138           lib/silcclient/client.c.
1139
1140 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
1141
1142         * Imported new silc_utf8_[encode|decode] routines from
1143           my internal SILC 1.1 source tree.  New encodings added:
1144           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
1145           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
1146           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
1147           SILC_STRING_LDAP_DN.
1148
1149         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
1150
1151         * Implemented stringprep (RFC 3454) API.  Internally we use
1152           GNU Libidn's stringprep, for now, so it is required now to
1153           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
1154
1155         * Added checking for GNU Libidn and --with-libidn to configure.
1156
1157 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1158
1159         * If the passphrases entered do not match while generating a new key,
1160           completly start over instead of going into an infinite loop asking
1161           the user to re-enter the passphrase correctly.  Affected file
1162           lib/silcutil/silcapputil.c
1163
1164 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
1165
1166         * Make sure server is removed from backup list when it is
1167           deleted.  Affected files silcd/command.c, server.c,
1168           server_util.c.
1169
1170         * Close socket when connecting to router fails.  Affected
1171           file silcd/server.c.
1172
1173 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1174
1175         * Adopt configuration toolchain to current auto-tools.
1176           Affected files prepare, irssi/configure.in
1177         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
1178           redo that.  Affected files irssi/src/silc/core/client_ops.c,
1179           irssi/src/fe-common/silc/fe-silc-channels.c
1180         * Take over command line options into silcclient data structure.
1181           Affected file irssi/src/silc/core/silc-core.c
1182
1183 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1184
1185         * Do not try to initiate backup resuming protocol forever.
1186           Affected file silcd/server_backup.c.
1187
1188 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1189
1190         * ID change in resuming has to be done before changing
1191           detached client's modes, since the ID change may fail and
1192           leave ghosts on the network.  Affected file is
1193           silcd/packet_receive.c.
1194
1195 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1196
1197         * Fixed Win32 scheduler to not stuck anymore.  A patch from
1198           Juha Räsänen.  Affected file is
1199           lib/silcutil/win32/silcwin32schedule.c.
1200
1201         * Fixed QoS parsing for connection blocks in server.  Affected
1202           file is silcd/serverconfig.c.
1203
1204         * Fixed server statistics increasing in server.  Affected file
1205           is silcd/server.c.
1206
1207         * The CLOSE command now marks backup router as self disconnected
1208           to avoid resuming problems.  Affected file silcd/command.c.
1209
1210 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
1211
1212         * When using silc_net_create_connection[_async], and your system can
1213           create IPv6 sockets, it will try to connect to the IPv6 host.
1214           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
1215           file lib/silcutil/unix/silcunixnet.c
1216
1217 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
1218
1219         * Check for valid route when receiving packet from router and
1220           when routing it to local server in the cell.  A patch from
1221           Matt Miller.  Affected files silcd/router.c and server.c.
1222
1223 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
1224
1225         * Couldn't detach and reattach twice, because of the previous
1226           commit. Affected file silcd/packet_receive.c
1227
1228 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
1229
1230         * Added check to ignore Port value if Initiator is FALSE.
1231           Remote router coudln't connect if Port was set. Affected file
1232           silcd/serverconfig.c
1233
1234         * If some client tries to resume more than once at the same time,
1235           server crashed. Router didn't crash, but showed odd behaviour
1236           (didn't allow clients to join anymore, ..). Affected files
1237           silcd/packet_receive.c silcd/idlist.h
1238
1239 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1240
1241         * Destroy the file transfer session in silc_client_file_close
1242           with timeout.  Affected file lib/silcclient/client_ftp.c.
1243
1244         * Call SFTP server monitor in READ and WRITE after the actual
1245           operations.  Affected file lib/silcsftp/sftp_server.c.
1246
1247 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1248
1249         * Create one configure script from configure fragments
1250           (configure.ad).  This is a first step towards new distribution
1251           system.  Affected files prepare, configure.in.pre,
1252           lib/silcmath/mpi/configure.ad.
1253
1254 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1255
1256         * Removed expiring of client key pair.  Affected file is
1257           irssi/src/silc/core/clientutil.c
1258
1259 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1260
1261         * Check the number of connections from real number of
1262           connections instead of socket number, when deciding if
1263           server is full.  Affected files are silcd/server.c,
1264           server_internal.h and silcd.c.
1265
1266         * Clarified the connections_max meaning in General section
1267           in doc/example_silcd.conf.in.
1268
1269         * The reconnect_keep_trying default value set to TRUE
1270           if it is not defined in the config file.  Affected file
1271           silcd/serverconfig.c.
1272
1273 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1274
1275         * Fixed crashbug in connection closing, after a protocol
1276           completion callback, which might have closed it already.
1277           Affected file silcd/server.c.
1278
1279         * Fixed rekey with PFS in backup router.  It did not allow
1280           rekeys with PFS, and when the rekey protocol timedout
1281           it crashed the backup router without the above fix.  Affected
1282           file silcd/packet_send.c and server.c.
1283
1284 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1285
1286         * The silc_client_add_channel_private_key now returns the
1287           private key context if pointer is given as argument.
1288           Affected files are lib/silcclient/silcclient.h and
1289           client_channel.c.
1290
1291         * Added support for using channel private keys in SILC
1292           Client Library even if the private key mode is not set
1293           on the channel.  Affected file lib/silcclient/client_channel.c.
1294
1295         * The channel private key used to decrypt message is now
1296           delivered to the application in the 'channel_messageÃ' client
1297           operation.  Affected files are lib/silcclient/silcclient.h
1298           and client_channel.c.
1299
1300         * Fixed wrong arg type for user limit in CMODE command reply.
1301           Affected file silcd/command.c.
1302
1303         * The user limit is now taken and saved to SilcClientEntry in
1304           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1305           Affected files lib/silcclient/silcclient.h, command_reply.c
1306           and client_notify.c.
1307
1308         * Added support to the new private message key indicator
1309           packet.  Added a new function to the client library:
1310           silc_client_send_private_message_key_request.  The sender
1311           indicates to be initiator, and receiver is responder.
1312           Added the indicator to the SilcClientEntry as 'prv_resp'
1313           boolean.  Affected files are lib/silcclient/silcclient.h
1314           client.[ch], and client_prvmsg.c.
1315
1316 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1317
1318         * Fixed the JOIN command calling when called with both
1319          -auth and -founder.  Affected file is lib/silcclien/command.c.
1320
1321 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1322
1323         * Check watcher list for resumed clients as well.  Affected
1324           file is silcd/packet_receive.c.
1325
1326 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1327
1328         * Implemented the user limit to the CMODE_CHANGE notify,
1329           CMODE command reply and JOIN command reply in server.
1330           Affected files are silcd/server.c, command.c, command_reply.c,
1331           packet_send.c and packet_receive.c.
1332
1333 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1334
1335         * Defined SILC_STRFMT_END that must be used now with
1336           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1337           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1338           lib/silcclient/silcvcard.c, silcd/server_util.c.
1339
1340         * Fixed the adding of public key to the WATCH list in server.
1341           Fixed the WATCH notify sending to client.  Affected files
1342           are silcd/packet_send.[ch], command.c, server_util.c.
1343
1344         * Implemented the watching by public key in the SILC Client
1345           Library and SILC Client.  Affected files are
1346           lib/silcclient/command.c and client_notify.c.
1347
1348 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1349
1350         * Added support for public key watching in server.  Affected
1351           files are silcd/server.c, server_internal.h, command.c,
1352           server_util.c.
1353
1354 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1355
1356         * Added public key to the SIlcClientEntry.  Affected files
1357           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1358
1359         * Fixed the get_clients_whois reply processing to return
1360           exactly same entries server returned.  Makes it possible
1361           to search using attributes.  Affected file is
1362           lib/silcclient/idlist.c.
1363
1364 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1365
1366         * Save founder key to SilcChannelEntry.  Affected files are
1367           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1368
1369 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1370
1371         * Call the monitor callback with _CLOSED status from the
1372           silc_client_file_close.  Affected files are
1373           lib/silcclient/client_fpt.c, silcclient.h
1374
1375         * Added silc_client_get_clients_whois which resolves using
1376           WHOIS, and supports requested attributes as well.
1377           Affected files are lib/silcclient/silcclient.h, idlist.c.
1378
1379 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1380
1381         * Added support for asking the destination filename where
1382           the downloaded file is saved in the file transfer.  Affected
1383           files are lib/silccilent/silcclient.h, client_ftp.c.
1384
1385 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1386
1387         * Fixed error handling in resuming data processing.  Affected
1388           files are lib/silcclient/client_resume.c and client.c.
1389
1390 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1391
1392         * Fixed silc_client_send_private_message to return TRUE correctly.
1393           Affected file lib/silcclient/client_prvmsg.c.
1394
1395         * Added topic to the SilcChannelEntry.  Affected files are
1396           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1397
1398 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1399
1400         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1401           file lib/silcclient/command.c
1402
1403 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1404
1405         * Convert all commands to UTF-8 before passing them to the
1406           client library.  Still need to convert replies from UTF-8 to
1407           the locale encoding.  Affected file
1408           irssi/src/silc/core/silc-cmdqueue.c
1409
1410 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1411
1412         * redirect all silc_client_command_calls through a queueing framework.
1413           This fixes /CYCLE and the annoying "nick change after auto-joining
1414           a channel".  Furthermore it defines one central point where
1415           command parameters can be UTF-8-ified.  Affected files
1416           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1417           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1418
1419 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1420
1421         * use asynchronous connect() to establish router connections.
1422           Fixes problem when the primary router goes down.  Affected files
1423           silcd/server.c, silcd/server_backup.c
1424
1425 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1426
1427         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1428           Fixed various compilation warnings when type casting ints
1429           to pointers or vice versa, of different size.  Updates around
1430           the source free.
1431
1432 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1433
1434         * Surrogates not allowed in UTF-8 strings, updated decoder.
1435           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1436           testers in lib/silcutil/tests/ directory.
1437
1438 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1439
1440         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1441           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1442           files are lib/silcclient/silcclient.h, client.c.
1443
1444 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1445
1446         * When resuming a session fails, notify the user that the session
1447           file needs to be removed eventually.  Affected files
1448           irssi/src/fe-common/silc/module-formats.[ch],
1449           irssi/src/silc/core/client_ops.c.
1450
1451 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1452
1453         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1454           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1455
1456         * Typofix in Irssi::Silc module.  Affected file
1457           irssi/src/perl/silc/Silc.xs.
1458
1459 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1460
1461         * Changed the way NOTICE flagged messages are treated. Added support
1462           for notices in queries and signing notices.  Affected files
1463           irssi/default.theme; irssi/docs/help/in/notice.in;
1464           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1465           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1466
1467         * Fixed typo in /ACTION help.  Affected file
1468           irssi/docs/help/in/action.in
1469
1470 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1471
1472         * Fixed typo in perl module.  Affected file
1473           irssi/src/perl/silc/Server.xs
1474
1475         * Changed the way ACTION flagged messages are treated. Added support
1476           for actions in queries and signing actions.  Affected files
1477           irssi/default.theme; irssi/docs/help/in/action.in;
1478           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1479           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1480           silc-servers.[ch]
1481
1482 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1483
1484         * Incorrectly reported error when client had to be resolved from
1485           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1486
1487 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1488
1489         * Fixed whois public key hash table deleting and adding in
1490           detached client case.  Affected file silcd/packet_receive.c.
1491
1492 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1493
1494         * Changed filenames of silc/fe module not to collide with filenames
1495           from core/fe.  Also seperated public messages printing from
1496           query messages printing.  Affected files are all in
1497           irssi/src/fe-common/silc.
1498
1499 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1500
1501         * Fixed the invite process handling during joining to use
1502           correct server name for the client that is matched against
1503           the invite string for the channel.  Wrong server name caused
1504           inability to join the channel.  Affected file is
1505           silcd/command.c.
1506
1507 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1508
1509         * Fixed the CUMODE channel founder authentication on normal
1510           server to not remove the founder rights on existing founder
1511           before checking that router accepts the mode change.  Affected
1512           files are silcd/command.c and silcd/packet_receive.c.
1513
1514         * Remove the server entry correctly when rekey timeouts and
1515           remote router connection on normal server is closed.  Fixes
1516           a crash where server uses the freed server entry.  Affected
1517           file silcd/server.c.
1518
1519 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1520
1521         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1522           networks.  This is the first step in solving the bug about
1523           /SERVER ADD -silcnet <silcnet>.  Affected files
1524           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1525           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1526           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1527
1528 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1529
1530         * /SMSG and /MMSG now correctly create new queries. Affected files
1531           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1532
1533         * Add basic support for SILC protocol specific variables in perl.
1534           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1535           irssi/src/perl/Makefile.am
1536
1537 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1538
1539         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1540           issue when the current key expires.  Affect file
1541           irssi/src/silc/core/clientutils.c
1542
1543         * Make the session data filename configurable.  This makes it
1544           possible to have different session files for different
1545           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1546           client_ops.[ch], silc-servers.c,
1547           irssi/src/silc/fe-common/silc/module-formats.[ch]
1548
1549         * Use the same set of libtool files for the MPI lib as for the
1550           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
1551           config.sub, configure.in, install-sh, missing, mkinstalldirs
1552
1553 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1554
1555         * Fixed server statistics decrementing error to not go to
1556           negative.  Affected file silcd/packet_receive.c.
1557
1558 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1559
1560         * Use silc_server_query_add_error to add error in public key
1561           search error.  Added support in send_reply to send errors
1562           without specific argument.  Affected file silcd/server_query.c.
1563
1564         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
1565           Client for NO_SUCH_NICK.  It was against the protocol specs.
1566           Affected file irssi/src/silc/core/client_ops.c.
1567
1568         * Added backwards support for the wrong NO_SUCH_NICK error sending
1569           in server.  To be removed in SILC Server 1.0.  Both old clients
1570           and clients with fixed error handling now works.  Affected file
1571           silcd/server_query.c.
1572
1573 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
1574
1575         * fixed a bug in the whois using attributes function where no
1576           error was sent if no nickname and client id but the attributes were
1577           given to whois. Affected file silcd/server_query.c
1578
1579 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
1580
1581         * remove public key from public key hashtable on detach. Affected
1582           file silcd/packet_receive.c
1583
1584         * free public key hashtable before removing clients on server
1585           shutdown. Affected file silcd/server.c
1586
1587         * remove public key prior deleting client-data on killing a client.
1588           Affected file silcd/server_util.c
1589
1590 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
1591
1592         * Getting the MOTD from other servers works now. Affected
1593           files are silcd/command.c and silcd/command_reply.c
1594
1595 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1596
1597         * Initialize the variable idletag, since it is tested in
1598           silc_core_deinit for its default value.  Affected file
1599           irssi/src/silc/core/silc-core.c
1600
1601 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
1602
1603         * Fixed signed channel messages across cells. Affected file
1604           silcd/packet_send.c
1605
1606 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1607
1608         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
1609           is not defined.  They can now be safely used in if-statements
1610           without braces.  Affected file lib/silcutil/silclog.h.
1611
1612         * Added the checks for backup closing connection due to error
1613           (local or remote) and thus not allow the resuming to occur
1614           in reconnect.  Affected files are silcd/packet_send.c
1615           and server.c.
1616
1617 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1618
1619         * Help file updates.  Affected files in irssi/src/docs/help/in/.
1620
1621 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
1622
1623         * Fixed channel messages across cells. Affected file
1624           silcd/packet_send.c
1625
1626 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1627
1628         * Fixed file transmission accepting in client library to not
1629           start the negotiation if user hasn't accepted the transfer,
1630           instead create new session for resent transfer.  Affected
1631           file lib/silcclient/client_ftp.c.
1632
1633         * Show the session ID in the file transmision list.  Remove
1634           session from list that failed to transfer.  Switch the current
1635           session automatically after transmission, and in errors, to new
1636           session if other sessions exists in the transfer list.  Affected
1637           files are irssi/src/silc/core/silc-servers.c,
1638           irssi/src/fe-common/silc/modfule-formats.c.
1639
1640 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1641
1642         * Fixed MIME header parsing for the hopefully last time.  Affected
1643           file lib/silcutil/silcstrutil.c
1644
1645 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1646
1647         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
1648
1649         * The SILC RNG is now gauranteed to return non-zero random
1650           values.  Affected files are lib/silccrypt/silcrng.[ch].
1651
1652 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1653
1654         * Fixed nickname formatting when changing only case of the
1655           nickname.  Affected file lib/silcclient/idlist.c.
1656
1657 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1658
1659         * Fixed a memory leak and incorrect printing of the "appears as"
1660           message.  Affected file irssi/src/silc/core/client_ops.c
1661
1662 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1663
1664         * Added CRT (Chinese Remainder Theorem) supported RSA
1665           private keys and private key operations.  This significantly
1666           increases private key operation efficiency.  No compatibility
1667           issues with new or old private keys.  Affected files are
1668           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
1669
1670 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1671
1672         * Fixed GCC-3.3.2 related compilation warnings from the
1673           source tree.
1674
1675 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1676
1677         * Removed RC6 from distributions.
1678
1679 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1680
1681         * Added some better comments to lib/silccrypt/silcpkcs.h,
1682           optimized some routines in lib/silccrypt/silcpkcs.c.
1683           Added test_silcpkcs into lib/silccrypt/tests/.
1684
1685         * Fixed silc_rng_global_init to actually init the global RNG
1686           if RNG wasn't provided for it.  Affected file is
1687           lib/silccrypt/silrng.c.
1688
1689 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1690
1691         * Added silc_hash_table_find_by_context_ext.  Affected files
1692           lib/silcutil/silchashtable.[ch].
1693
1694         * Save the public key on normal server in WHOIS command reply
1695           from attributes, if present, and add it to public key hash
1696           table.  Fixes WHOIS resolving by public key on normal server.
1697
1698           Optimized the attributes resolving on normal server to not
1699           resolve if we resolved them already from router.
1700
1701           Affected files are silcd/server_query.c, command_reply.c.
1702
1703 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
1704
1705         * Added support for whois using attributes.
1706           Affected files silcd/command_reply.c, silcd/packet_receive.c,
1707           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
1708           silcd/server_util.c
1709
1710         * Added support for whois using public key attribute to /WHOIS i
1711           client command. Affected files irssi/docs/help/in/whois.in,
1712           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
1713
1714 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1715
1716         * Fixed UMODE setting in server when the client has anonymous
1717           mode set.  The mode setting was not working.  Affected file
1718           silcd/command.c.
1719
1720 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1721
1722         * Fixed some bugs and typos related to sending split messages.
1723           Print notification when sending messages with /MMSG.  Affected
1724           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
1725
1726 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1727
1728         * Optimized the socket referencing in packet routines, client
1729           library and server.  Affected files are lib/silccore/silcpacket.c,
1730           lib/silcclient/client.c and silcd/server.c.
1731
1732         * If silc_socket_set_qos is given with NULL arguments the QoS is
1733           reset from the socket.  Affected files are
1734           lib/silcutil/silcsockconn.[ch].
1735
1736 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1737
1738         * Add a /LISTKEYS command which lists the locally cached
1739           client and server keys.  Affected files
1740           irssi/src/fe-common/module-formats.[ch],
1741           irssi/src/silc/core/silc-{channels,servers}.c
1742           irssi/docs/help/in/listkeys.in
1743
1744 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1745
1746         * Check that packet queue purging was successful.  Affected
1747           files lib/silcclient/client.c and silcd/packet_send.c.  Related
1748           to MAC failed errors.
1749
1750         * Do not clear the inbuf even if it is empty if QoS was applied
1751           to it.  Otherwise the QoS data is cleared and MAC failed error
1752           will occur.  Affected file lib/silccore/silcpacket.c.
1753
1754         * Use the rekey period time as rekey protocol timeout value.
1755           If the rekey does not succeed during the rekey period there's
1756           something very wrong, and we most likely end up with wrong keys,
1757           do graceful reconnect then.   Affected file silcd/server.c.
1758
1759         * Take reference of the socket in the parser context, as it's
1760           possible to have the parsers in queue after the socket is
1761           disconnected and this may cause crash.  Affected files are
1762           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1763           silcd/server.c.
1764
1765 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1766
1767         * Fixed KICK command reply sending, it sent to replies.
1768           Affected file silcd/command.c.
1769
1770 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1771
1772         * Finish the silc-mime.pl script. It now supports MIME type
1773           guessing using magic files, signing data messages, executing
1774           MIME handlers in background. Affected files
1775           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1776
1777         * Changed MIME signal handler to make things easier for the perl
1778           script. Affected files irssi/src/silc/core/client_ops.c,
1779           silc-servers.c, and irssi/docs/signals.txt
1780
1781         * Cleaned up the silc_mime_parse function and fixed detection
1782           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1783
1784 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1785
1786         * Resolve the IP for file transfer listener from the connection
1787           socket.  Affected file lib/silcclient/client_ftp.c.
1788
1789         * Accept NULL hostname parameter in the functions
1790           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1791           if hostname is not wanted.
1792
1793 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1794
1795         * Fixed race condition between silc_client_init and
1796           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1797
1798 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1799
1800         * Fixed file transfer connection closing when SIGNOFF for
1801           the client is received from server.  Affected file is
1802           lib/silcclient/client_ftp.c.
1803
1804 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1805
1806         * Check for disconnected socket in QUIT callback.  Affected
1807           file silcd/command.c.
1808
1809 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1810
1811         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1812           Affected files lib/silcutil/silcstrutil.c
1813
1814         * Cleaned up the escape/unescape functions for correctness and
1815           speed. Affected file irssi/src/silc/core/client_ops.c
1816
1817         * Removed handling for data messages with Content-Type: text/*,
1818           moved parsing of MIME headers to the signal handler, added
1819           support for signing and verifying data messages. Affected
1820           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1821           irssi/src/silc/core/silc-{servers,channels}.c
1822
1823         * Added a perl script for handling data messages based on
1824           information read from Mailcap files. New file
1825           irssi/scripts/silc-mime.pl
1826
1827 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1828
1829         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1830           acknowledge recepetion of a message to the sender.  Updated
1831           protocol specs.
1832
1833 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1834
1835         * Unregister channel key saving callback when deleting channel.
1836           Affected file lib/silcclient/idlist.c.
1837
1838         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1839           before calling notify client operation.  Affected file is
1840           lib/silcclient/client_notify.c.
1841
1842         * Unregister QoS tasks when deleting the socket connection.
1843           Affected files lib/silcutil/silcsockconn.[ch],
1844           unix/silcunixsockconn.c.
1845
1846         * Implemented latest presence-attrs draft changes.  Affected
1847           files lib/silccore/silcattrs.h and
1848           irssi/src/silc/core/silc-queries.c.
1849
1850 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1851
1852         * Save old channel keys in list to allow more rapid change
1853           of channel keys if server for some reason does that.  This
1854           avoids loosing so many channel messages due to not having
1855           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1856           idlist.c and client_channel.c.
1857
1858 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1859
1860         * Continued backup router tests and fixes.  Affected files
1861           silcd/server_backup, server_util.c, server.c.  See TODO.
1862
1863 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1864
1865         * Fixed SERVER_SIGNOFF handling in servers.  The client
1866           was removed from wrong list thus not removing the client
1867           at all.  Affected file silcd/packet_receive.c.
1868
1869         * Do not execute rekey protocol for disabled connections as
1870           it would never go through.  Affected file silcd/server.c.
1871
1872         * Added timeout for rekey protocol to catch if the protocol
1873           never executes successfully.  Affected files silcd/server.c
1874           and protocol.h.
1875
1876 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1877
1878         * Abandon packet processing for disconnected sockets.  Check
1879           this always after calling packet processing callback.
1880           Affected file lib/silccore/silcpacket.c.
1881
1882         * Fixed double registration disconnection code in server.
1883           Closed wrong connection.  Affected file silcd/packet_receive.c.
1884
1885 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1886
1887         * On normal server reconnect to primary during resuming 4
1888           times, then give up.  Affected file silcd/server_backup.c.
1889
1890         * If during reconnecting to routers we notice we have router
1891           connection but no primary router set, the server is in desync.
1892           Reconnect to primary to restore network.  Affected file
1893           silcd/server.c.
1894
1895         * Assure that only one protocol is exeucting at the same time.
1896           Added checks for all protocols.  Affected files are
1897           silcd/server.c and server_backup.c.
1898
1899 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1900
1901         * Check that a string is not already part on invite/ban
1902           string when processing it.  Affected file silcd/server_util.c.
1903
1904 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1905
1906         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1907           with 1.2 version of the protocol.  Affected file is
1908           silcd/packet_receive.c.
1909
1910 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1911
1912         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1913           where the passphrase was given.  Affected file is
1914           silcd/command.c.
1915
1916 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1917
1918         * INVITE and BAN notifys are now delivered from routers to
1919           servers (but not clients) on the channel.  Updated specs and
1920           code.  Affected files silcd/packet_[send|receive].[ch],
1921           command.c, server.c and server_util.c.
1922
1923         * Implemented INVITE and BAN announcing.  Affected files are
1924           silcd/server.[ch], server_util.c.
1925
1926         * Implemented SilcStatus error type argument returning in
1927           command reply error in server.  Affected file silcd/command.c.
1928
1929         * Implemented SilcStatus argument returning in comand reply
1930           in client library.  The command_reply client operation now
1931           returns error specific arguments as well.  Affected files
1932           are lib/silcclient/command_reply.[ch], client_resume.c,
1933           lib/silccore/silcstatus.[ch].
1934
1935 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1936
1937         * Backup router protocol version 1.2 implemented.  Testing still
1938           required.  Affected files in silcd/server_backup.[ch], server.c,
1939           packet_receive.c and server_internal.h.
1940
1941 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1942
1943         * silc_client_send_[channel|private]_message now return TRUE
1944           or FALSE.  Affected file lib/silcclien/client_channel.c and
1945           client_prvmsg.c.
1946
1947 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1948
1949         * Check for explicit nickname in INVITE and BAN processing
1950           during join as well (and don't expect only wildcards in
1951           invite/ban strings).  Affected file silcd/command.c.
1952
1953         * Fixed the INVITE and BAN by public key.  The public key saved
1954           is the PK payload (as specified) not the raw data.  Affected
1955           file silcd/server_util.c.
1956
1957 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1958
1959         * UTF-8 text message support for actions and notices in SILC
1960           Client.  Affected file irssi/src/silc/core/client_ops.c.
1961
1962         * silc_get_username and silc_get_real_name now returns sensible
1963           data on Win32.  Patch by Toni Willberg.  Affected file is
1964           lib/silcutil/win32/silcwin32util.c.
1965
1966 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1967
1968         * Provide a signal handler to send MIME encoded messages and emit
1969           a signal when a MIME encoded message is received. Also document
1970           the signals for usage with the perl interface.
1971
1972           A sample perl script will be supplied at a later point.
1973
1974           Affected files are irssi/docs/signals.txt,
1975           irssi/src/silc/core/client_ops.[ch],
1976           irssi/src/silc/core/silc-{channels,servers}.c
1977
1978 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1979
1980         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1981           server. Use this time to display a lag and disconnect when it
1982           exceeds a specified limit.
1983
1984           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1985
1986 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1987
1988         * Remove the channel auth list in normal server if router
1989           encofrces its list during connecting.  Send notify to channel
1990           to remove the mode to remove the list.  Affected files are
1991           silcd/server_util.c and silcd/packet_receive.c.
1992
1993 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1994
1995         * Added support for channel public keys.  Updated protocol specs
1996           and implemented it.  Affected files are
1997           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1998           lib/silcclient/command_reply.c.
1999
2000 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2001
2002         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
2003           terminate the process on Linux.  Affected file silcd/silcd.c.
2004
2005 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2006
2007         * Check for NULL buffer in silc_buffer_clear.  Affected file
2008           is lib/silcutil/silcbuffer.h.
2009
2010         * Simplified the backup router protocol by removing the _GLOBAL
2011           types.  Updated protocol specs and the code.  Affected files
2012           are silcd/server_backup.[ch].
2013
2014 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2015
2016         * Deny '@' and '!' from nicknames since they are reserved
2017           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
2018           Updated protocol specs and the code.
2019
2020           Affected files are silcd/server_util.[ch].
2021
2022 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
2023
2024         * Fixed stack overflow in Irssi SILC client.  Affected
2025           file irssi/src/silc/core/client_ops.c.
2026
2027         * Check that Host is set in ServerConnection and RouterConnection
2028           in silcd.conf.  Affected file silcd/serverconfig.c.
2029
2030         * Fixed crash in server with protocol completion callbacks,
2031           namely rekey and backup resuming protocols.  Affected files
2032           are silcd/server_backup.c and silcd/server.c.
2033
2034         * Fixed rekey protocol to not restart if it is started already.
2035           Affected files are lib/silcclient/client.c and
2036           silcd/server.c.c
2037
2038 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2039
2040         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
2041
2042         * Fixed EOF handling in SILC Config, affected file
2043           lib/silcutil/silcconfig.c.
2044
2045         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
2046
2047         * Fixed RESOLVING flag handling in JOIN notify and other
2048           notifys to handle the resolvings correctly in client library.
2049           Affected file lib/silcclient/client_notify.c.
2050
2051         * Do not send full INVITE and BAN lists in INVITE and BAN
2052           notifys, only the changed information.  Affected file
2053           silcd/command.c.
2054
2055         * Fixed INVITE notify sending in INVITE command, send it
2056           only when needed.  Affected file silcd/command.c.
2057
2058         * Handle the founder key change properly in CMODE_CHANGE
2059           notify.  Bug #122.  Affected file silcd/packet_receive.c.
2060
2061 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2062
2063         * Remove the mark for output (mark it only for input) after
2064           purging outgoing queue.  Prevents the "Error in select()"
2065           floods.  Affected file silcd/packet_send.c.
2066
2067         * Fixed incorrect connection deletion from client library
2068           after calling "connect" client operation.  Could cause
2069           crashes for example during reconnect timeouts.  Affected
2070           files are lib/silcclient/client.c and
2071           irssi/src/silc/core/client_ops.c.
2072
2073         * Check server private key file permissions before starting
2074           the server.  Affected file silcd/serverconfig.c.
2075
2076 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2077
2078         * NULL terminate allocated string in silc_buffer_strformat.
2079           Affected file lib/silcutil/silcbuffmt.c.
2080
2081         * Rewrote the invite/ban list string handling in server to
2082           use SilcBuffer instead.  Affected files are silcd/command.c
2083           and silcd/server_util.c.
2084
2085 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2086
2087         * Fixed double free in CMODE command when setting new HMAC
2088           for channel.  Affected file silcd/command.c.
2089
2090         * Added couple of missing memset's to zero sensitive memory.
2091           Affected files silcd/command.c, lib/silcclient/command.c.
2092
2093 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2094
2095         * Fixed a double free in INVITE command error handling in
2096           server.  Affected file silcd/command.c.
2097
2098         * Added macros SILC_SWAB_[16|32] to swab byte order of
2099           16-bit and 32-bit unsigned integers.  Affected file
2100           lib/silcutil/silctypes.h.
2101
2102         * Use the SILC_SWAB_16 instead of htons() in server when
2103           handling ports since the ports in structures are always
2104           in little-endian order (regardless of platform).  Affected
2105           file silcd/serverid.c and silcd/server_backup.c.
2106
2107 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2108
2109         * Send DISCONNECT in close admin command in server.  Affected
2110           file silcd/command.c.
2111
2112         * Check whether we are already connecting to a remote router
2113           (in addition of checking whether we are already connected)
2114           before creating new connection.  Affected file silcd/server.c.
2115
2116 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2117
2118         * Added better compiler and compiler flags checking in
2119           configure.
2120
2121         * Check that socket is valid after QoS is applied to data.
2122           Affected file lib/silcutil/unix/silcunixsockconn.c.
2123
2124         * Make sure the socket connecetion is not closed to early
2125           when closing connection in server.  Also make sure the
2126           connection is always closed after error in a protocol.
2127           Affected file silcd/server.c.
2128
2129 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2130
2131         * Removed --session and --dummy options from Irssi SILC Client.
2132           -d option is available only if --enable-debug was given.
2133           Affected files are irssi/src/silc/core/silc-core,
2134           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
2135
2136 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
2137
2138         * Added silc_buffer_steal to steal the data from the buffer.
2139           Affected file lib/silcutil/silcbuffer.h.
2140
2141 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
2142
2143         * Fixed server crash with double Primary block in config file.
2144
2145           Fixed also various memory leaks around the config file
2146           parser.  Affected files lib/silcutil/silcconfig.c,
2147           silcd/serverconfig.c.
2148
2149         * Changed my nickname (Johnny Mnemonic) to my real name, this
2150           means that bugs introduced by him were actually introduced
2151           by me!
2152
2153 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2154
2155         * Don't display "foo appears as foo\nYou're now known as foo"
2156           messages.  Affected file irssi/src/silc/core/client_ops.c
2157
2158 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2159
2160         * Fixed error handling of invalid client entry when calling
2161           commands in server.  Fixes a crash.  Affected file
2162           silcd/command.c.
2163
2164 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2165
2166         * Added some sanity checks in server for correctness of the
2167           server configuration.  Affected file silcd/serverconfig.c.
2168
2169 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2170
2171         * Prevent endless resolving of user informations in USERS
2172           command by checking the command reply status correctly.
2173           Affected file lib/silcclient/command_reply.c.
2174
2175 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2176
2177         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
2178           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
2179           Aldous <Matthew@Aldous.com>.
2180
2181         * Added better implementation using CriticalSection of
2182           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
2183           <mikko.lahteenmaki@pikabaana.net>.
2184
2185         * Added some Winsock WIN32 compatiblity defines into
2186           includes/silcwin32.h.
2187
2188 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2189
2190         * Fixed double free in async host lookup code.  Affected file
2191           lib/silcutil/silcsockconn.c.
2192
2193         * On backup router handle now the SERVER_SIGNOFF from router
2194           for local connected servers too, and close the connections.
2195
2196           Do not process them as normally signing off servers when they
2197           really signoff by sending EOF fe, but always assume that
2198           router sends the SERVER_SIGNOFF.
2199
2200           Affected files silcd/server.c and silcd/packet_receive.c.
2201
2202         * Fixed socket unsetting when closing connections.  Affected
2203           files silcd/server.c and silcd/packet_send.c.
2204
2205         * Do not print the nickname in SERVER_SIGNOFF if we do not
2206           have it.  Prevents asserts in Irssi core.  It is possible we
2207           don't have the nick if it was just being resolved when server
2208           signoff.  Affected file irssi/src/silc/core/client_ops.c.
2209
2210 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2211
2212         * Fixed autonick crashbug in client library.  Affected file
2213           lib/silcclient/client.c.
2214
2215         * Fixed Unix implementation of SilcMutex to really assert if
2216           the mutex is locked/unlcoked already.  Affected file
2217           lib/silcutil/unix/silcunixmutex.c.
2218
2219         * Fixed locking in silc_schedule_uninit.  It didn't lock
2220           when dispatching timeout tasks.  Affected file is
2221           lib/silcutil/silcschedule.c.
2222
2223         * Changed Win32 implementation of SilcThread to use modern
2224           Win32 interface.  Affected file is
2225           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
2226
2227 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2228
2229         * Don't print signed messages when sending failed.  Affected files
2230           irssi/src/silc/core/silc-[servers.c/commands.h]
2231
2232         * Send adquate signal when founding a channel by joing it.  Affect
2233           file irssi/src/silc/core/client_ops.c
2234
2235 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2236
2237         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
2238           irssi/src/fe-common/core/themes.c
2239
2240 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2241
2242         * Fixed close command to use the port correctly when closing
2243           server connections.  Affected file silcd/idlist.c.
2244
2245         * Check for NULL outbuf in silc_socket_write.  It is possible
2246           that it is NULL is some odd case.  Affected files are
2247           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
2248
2249         * Do not call final protocol callback for backup router
2250           resuming protocol when closing connection.  It is closed
2251           by timeout in case of error.  Affected file silcd/server.c.
2252
2253         * Backup reconnect to router if backup resuming protocol
2254           failed.  Affected file silcd/server_backup.c.
2255
2256 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
2257
2258         * Fixed double free in SKE library error hadling when signature
2259           error occurred.  Affected file lib/silcske/silcske.c.
2260
2261         * Save the fingerprint to new SilcClientEntry after changing
2262           nickname.  Affected file lib/silcclient/client_notify.c.
2263
2264         * Print SIGNOFF in Irssi SILC client only if the nickname is
2265           known.  Prevents asserts in Irssi core.  It is possible we
2266           don't have the nick if it was just being resolved when it
2267           quit.  Affected file irssi/src/silc/core/client_ops.c.
2268
2269 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2270
2271         * Fixed double free in invite list adding code when adding
2272           invite strings.  Affected file silcd/server_util.c.
2273
2274 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2275
2276         * More log printing during backup router protocol.  Affected
2277           file silcd/server_backup.c.
2278
2279         * Removed backwards support for old private key file format.
2280           Affected file lib/silccrypt/silcpkcs.c.
2281
2282         * Removed backwards support for not-so-strict decryption length
2283           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2284
2285         * GETKEY to update the client entrys fingerprint too.
2286           Affected file lib/silcclient/command_reply.c.
2287
2288         * Added --without-libtoolfix for package builders using weird
2289           wrappers around libtool (BSD at least).
2290
2291 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2292
2293         * Fixed backup router bugs:  When backup resumes router and
2294           receives a CHANNEL_MESSAGE packet the backup must not act
2295           as router since the packet header decryption would be
2296           different.  Also, when relaying packets to channel, do
2297           not re-encrypt packets on backup that came from the primary
2298           since the connection isn't really router-router connection.
2299           Affected files silcd/server.c, silcd/packet_send.c.
2300
2301         * Added checks in encryption/decryption that encryption/decryption
2302           length sent as argument really is multiple by block size.  Helps
2303           catching really weird bugs like the above backup router bugs
2304           when packets are being decrypted in wrong way.  Affected files
2305           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2306
2307         * Fixed padding generation in private key file encryption.
2308           Affected file lib/silccrypt/silcpkcs.c.
2309
2310 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2311
2312         * Added ignore_message_signatures setting which can be used
2313           to ignore signatures in messages.  Affected files are
2314           irssi/src/silc/core/client_ops.c, silc-core.c.
2315
2316         * Fixed the libtoolfix to use command line options instead of
2317           environment variables.  They didn't work as expected.  Now,
2318           the libtool is fully run-time configurable.
2319
2320 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2321
2322         * Verify signature payload for signed messages. Affected files
2323           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2324           irssi/src/silc/core/silc-core.h
2325
2326         * Display signature verification result in public and private
2327           messages using theme abstracts. See irssi/default.theme for
2328           examples on their usage. Affected files
2329           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2330           irssi/src/fe-common/silc/module-formats.[ch],
2331           irssi/src/fe-common/silc/fe-common-silc.c,
2332           irssi/src/fe-common/silc/Makefile.am
2333           irssi/src/fe-common/core/fe-messages.[ch]
2334
2335         * Fixed bugs in Irssi's theme parsing. Affected files
2336           irssi/src/fe-common/core/themes.c
2337
2338 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2339
2340         * Calculate the correct length for signed messages before
2341           encrypting, it must be multiple by block size.  Affected
2342           file lib/silccore/silcmessage.c.
2343
2344         * silc_message_signed_get_public_key returns now both
2345           decoded and encoded public key.  Affected files are
2346           lib/silccore/silcmessage.[ch].
2347
2348         * Added libtoolfix script that makes the libtool more generic
2349           and configurable in run-time.  Now we can specify in run-time
2350           if what kind of libraries we want to create, regardless of
2351           configuration.  SIMs are now creates even if --disable-shared
2352           was explicitly given.
2353
2354 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2355
2356         * Fixed founder key sending in CMODE command in client.
2357           Affected file lib/silcclient/command.c.
2358
2359         * Fixed CUMODE founder authentication in server to not check
2360           for client's public key since it's not supposed to do that.
2361           Affected file silcd/command.c.
2362
2363 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2364
2365         * Set realname and hostname in NICK_REC records. Affected file
2366           irssi/src/silc/core/silc-nicklist.c
2367
2368 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2369
2370         * Remove 1.0 protocol backwards compat code from client
2371           library.
2372
2373         * Added more reliable check for whether nickname did change
2374           or not, or whether only Client ID changed in NICK_CHANGE
2375           notify.  Affected file lib/silcclient/client_notify.c.
2376           Fixes bug in '@' character handling in a nickname.
2377
2378         * Added support for automatically parsing signature from
2379           the message payload.  Added new function
2380           silc_message_get_signature to return the payload to
2381           application.  Affected files lib/silccore/silcmessage.[ch].
2382
2383         * Changed the private_message and channel_message client
2384           operations to deliver the SilcMessagePayload to the
2385           application too.  Application can use it fe. to get the
2386           signature from the message for verification.  Affected
2387           file lib/silcclient/silcclient.h, client_channel.c and
2388           client_prvmsg.c.
2389
2390         * Redefined the signed payload for message payloads.
2391           Updated protocol specs and implemented.
2392
2393 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2394
2395         * Fixed wrong invite and ban list handling in server command
2396           reply.  Affected files are silcd/command_reply.c,
2397           silcd/server_util.[ch].
2398
2399 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2400
2401         * Fixed CMODE setting in server when founder mode was set.
2402           Affected file silcd/command.c.  Bug #95.
2403
2404         * Added support to setting specific public key in CMODE in
2405           Irssi SILC client.  Affected file lib/silcclient/command.c.
2406
2407         * Added support to use specific public key in CUMODE in
2408           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2409
2410         * Added support for inviting and banning by public key in
2411           Irssi SILC client.  Affected file lib/silcclient/command.c.
2412
2413         * Fixed fingerprint/babbleprint showing in invite and ban
2414           list command replys.  Affected file is
2415           irssi/src/silc/core/client_ops.c.
2416
2417 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2418
2419         * Format CMODE +c and +h to display both the mode and the argument
2420
2421 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2422
2423         * Added test vectors and test programs for SHA-1, MD5,
2424           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2425           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2426           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2427
2428         * Changed the channel private key and private message key
2429           generation (with static keys) to use SHA1 instead of MD5,
2430           as SHA1 is the mandatory hash function in SILC.  Affected
2431           file lib/silcclient/client_[channel/prvmsg].c.
2432
2433         * Changed the private key file encryption to use SHA1 instead
2434           of MD5.  Added support for the old generation and added
2435           automatic change of the key (to be removed later).  Affected
2436           files lib/silccrypt/silcpkcs.c.
2437
2438 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2439
2440         * Load only files with .pub suffix in PublicKeyDir.  Affected
2441           file silcd/serverconfig.c.
2442
2443 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2444
2445         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2446           channels.  Affected files silcd/silcd.c, silcd/server.h.
2447
2448         * Added the config directive PublicKeyDir for the client block.
2449           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2450
2451 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2452
2453         * Merged Toni's irssi/silc.conf patch.
2454
2455         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2456
2457         * Max alloc tests in allocation routines.  Affected file
2458           lib/silcutil/silcmemory.c.
2459
2460 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2461
2462         * Fixed a typo in resuming code that fixed detach/resume code
2463           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2464
2465 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2466
2467         * Do reverse lookups for server when /connecting. Affected files
2468           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2469           irssi/src/core/net-nonblock.*
2470
2471 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2472
2473         * Added library versioning for shared libraries.  Affected
2474           files configure.in.pre and lib/Makefile.am.pre.
2475
2476 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2477
2478         * Display INVITE and BAN lists as specified by SILC 1.2
2479
2480 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2481
2482         * Do not send invite list back unless asked (when sending
2483           no arguments) or when list was modified.  Affected file
2484           silcd/command.c.
2485
2486         * Remove client from invite list in KILLED notify and in
2487           KILL command.  Affected file silcd/command.c and
2488           silcd/server.[ch].
2489
2490         * Fixed bugs in invite list handling in INVITE command.
2491           Affected files silcd/command.c and silcd/server_util.c.
2492
2493         * Merged with Irssi 0.8.6.
2494
2495         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2496           Affected file irssi/src/fe-text/silc.c.
2497
2498 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2499
2500         * The silc_argument_get_[first/next] now return the argument
2501           type to caller.  Added silc_argument_payload_encode_one.
2502
2503           Affected files are lib/silccore/silcargument.[ch].
2504
2505         * Added support for the SILC 1.2 INVITE command and new
2506           invite lists to server.  Affected files are silcd/command.c,
2507           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2508
2509         * Added support for the SILC 1.2 BAN command and new
2510           ban lists to server.  Affected files are silcd/command.c,
2511           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2512
2513         * Added support to client sending new INVITE command.  Affected
2514           file is lib/silcclient/command.c.
2515
2516         * Added support to client sending new BAN command.  Affected
2517           file is lib/silcclient/command.c.
2518
2519         * Added support for removing client from invite list when kicked
2520           from channel, as SILC 1.2 dictates.  Affected files are
2521           silcd/packet_receive.c and silcd/command.c.
2522
2523 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2524
2525         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2526           automatically the cipher's internal IV.  Affected files
2527           lib/silccrypt/silccipher.[ch].
2528
2529         * Assure the RESUME_CLIENT packet is not sent to twice to
2530           backup router if the detached client was originated from
2531           the backup.  Affected file silcd/server.c.  Bug #76.
2532
2533         * Changed silc_sim_symname to not allocate memory.  Affected
2534           file lib/silcsim/silcsimutil.c.
2535
2536         * Fixed memory leaks with SIMs in server.  Affected files
2537           silcd/serverconfig.c, silcd/server.c.
2538
2539         * Fixed channel key distribution after resuming detached
2540           client.  Affected files silcd/packet_receive.c.
2541
2542         * Fixed channel's global_user boolean checking after detaching.
2543           Check it after changing the owner of the client not before.
2544           Affected file silcd/packet_receive.c.
2545
2546         * Fixed few double frees from client library.  Fixes at least
2547           Bug #81, possibly others too.
2548
2549         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2550           notifys in Irssi SILC Client.  Affected file is
2551           irssi/src/silc/core/client_ops.c.  Bug #82.
2552
2553         * Applied Ville Räsänen's manual page and --mandir bugfix
2554           patch.  Affected files are configure.in.pre and Makefile.am.pre.
2555           Bug #88.
2556
2557 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2558
2559         * Added support to backup router protocol for backup to tell
2560           normal server that it cannot use the backup router as primary
2561           because the primary isn't really down.  Updated protocol
2562           specs.
2563
2564         * Added support for primary router to tell backup router that
2565           resuming is not possible because the backup really isn't primary
2566           in the cell.  For example if backup disconnected itself the
2567           resuming is not allowed since the primary really did not
2568           go down.  Updated protocol specs.
2569
2570         * Removed MARS from crypto library.
2571
2572         * Defined the CTR mode and Randomized CBC mode in SILC.  The
2573           CTR mode is RECOMMENDED now in specification.  Defined also
2574           Serpent cipher as optional cipher.  Updated the protocol specs.
2575
2576 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2577
2578         * Added support for inviting/banning by IP/MASK, public key,
2579           and explicit Client ID.  Redefined the command and notify
2580           types to allow easier forwards support for other methods
2581           of inviting/banning.  Updated protocol specs.
2582
2583         * Remove the client from channel's invite lists if the client
2584           is kicked or killed.  Updated protocol specs.
2585
2586         * Unified the Channel Message Payload and Private Message
2587           into one Message Payload.  Updated protocol specs and
2588           implemented.
2589
2590 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2591
2592         * Don't wait for EOF after socket error has occurred, but
2593           close the connection.  Affected file is silcd/server.c.
2594
2595 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2596
2597         * Added support for setting FOUNDER mode on channel with
2598           specific public key which can be set with CMODE command.
2599           Updated protocol specs and implemented in client and server.
2600
2601         * Fixed the Irssi SILC client to correctly shutdown the client
2602           library to avoid memory leaks.  Affected files are
2603           irssi/src/silc/core/silc-core.c and silc-servers.c.
2604
2605         * Deprecated the No Reply flag in SKE protocol and introduced
2606           "IV Included" flag which can be used to indicate that the IV
2607           is included in the ciphertext.  This makes it possible to use
2608           SILC on unreliable transport, such as UDP which may cause
2609           packet reordering and losses.  Updated protocol specs, did
2610           not implement yet.
2611
2612 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2613
2614         * Fixed the MPI implementation of silc_mp_sizeinbase to return
2615           < 32 bit values in correct size.  Affected file is
2616           lib/silcmath/mp_mpi.c.
2617
2618 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2619
2620         * Fixed the KE Start Payload parsing to check that mandatory
2621           fields are present.  Affected file lib/silcske/payload.c.
2622
2623         * Fixed compilation warnigs in Irssi SILC Client.  Affected
2624           files are irssi/src/silc/core/silc-query.c. client_ops.c.
2625
2626 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2627
2628         * Print "nick now appears as newnick" and update Irssi's nicklist
2629           when you change your nick to "nick". Closes #62
2630
2631         * Never format your own nick. Closes #63
2632
2633 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2634
2635         * SILC_UMODE_GONE changes are now propagated correctly to the
2636           Irssi client. Closes #54
2637
2638 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2639
2640         * Fixed example in /HELP KEY
2641
2642         * Added expando $j which expands to current SILC Client version
2643
2644 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2645
2646         * Fixed public key decoding in crypto library.
2647
2648         * Added better error printing to SKE library.
2649
2650 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2651
2652         * Fixed NICK command to not crash if nickname was not sent.
2653
2654 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2655
2656         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
2657           Deprecated the old Encrypt-And-MAC order.  Updated protocol
2658           specs and implemented.
2659
2660         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
2661           generation.  Updated specs and implemented.
2662
2663 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2664
2665         * Added support for rekey before 2^32 sequence number wraps.
2666           Affected files in server and client library.
2667
2668         * Padding must be at least 8 bytes now.  Implemented and updated
2669           protocol specs.
2670
2671         * Compute maximum padding for authentication packets to make
2672           passphrase approximation attacks impossible.  Affected files
2673           in client library and in server.
2674
2675         * Fixed PING command sending in client library and handling in
2676           server.  The server ID must be ID Payload, not raw ID data.
2677           Affected files in server and client library.
2678
2679         * Defined that all public keys sent in commands and notify
2680           payloads are actually Public Key Payloads not raw public key
2681           data.  Updated protocol specs and implemented.
2682
2683         * Updated protocol version to 1.2.  Updated specs and code.
2684
2685         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
2686           status types.  Updated specs and the code.
2687
2688         * Added support for normal client to kill its own entries from
2689           the network.  Updated protocol specs and the code.
2690
2691         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
2692           and added initial implementation.
2693
2694         * Added MAC field to the Private Message Payload to protect
2695           against chosen ciphertext attacks.  Updated the protocol specs
2696           and implemented.
2697
2698         * Added idle and signon fields to the ATTRIBUTE_SERVICE
2699           attribute to indicate the user's current idle and signon time
2700           of a service.  Updated protocol specs and implemented.
2701
2702 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2703
2704         * Added "do_not_bind" argument to silc_client_file_send what
2705           can be used to not bind locally but assume the file receiver
2706           provides the point of connect.  Usefull when sender is behind
2707           NAT device.  Affected file lib/silcclient/silcclient.h and
2708           client_ftp.c.
2709
2710         * Added -no-listener option to FILE SEND command in Irssi SILC
2711           client.  Affected file irssi/src/silc/core/silc-servers.c.
2712           Renamed FILE RECEIVE to FILE ACCEPT.
2713
2714         * Confirm passphrase for private key encryption in
2715           silc_create_key_pair and silc_change_private_key_passphrase.
2716           Affected files are lib/silcutil/silcapputil.c.
2717
2718 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2719
2720         * Move silc_client_packet_send back to internal, added
2721           silc_client_send_packet, a bit simpler function for application.
2722           Affected files lib/silcclient/silcclient.h, client.c and
2723           client_internal.h.
2724
2725         * Moved the SilcClientEntry, SilcChannelEntry and
2726           SilcServerEntry to silcclient.h to be public and documented
2727           them for application.  Affected files are
2728           lib/silcclient/silcclient.h and idlist.h.
2729
2730 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2731
2732         * Fixed manual page installation patch by Ville Räsänen.
2733           USERS help page fix patch by Ville Räsänen
2734
2735         * Changed the silc_client_command_call interface to make
2736           the command call simpler for the application.  The library
2737           now handles the command line parsing, command finding and
2738           execution.  Application only needs to call the function
2739           with the command line.  Affected files are
2740           lib/silcclient/silcclient.h, command.[ch].
2741
2742         * Fixed silc_get_input to NULL-terminate the returned input.
2743           Affected file lib/silcutil/silcutil.c.
2744
2745         * Resolve the client's public key in JOIN command if the
2746           founder auth data is being requested but we don't know the
2747           client's public key.  Affected file silcd/command.c.
2748           Bug #53.
2749
2750 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2751
2752         * Print notify for server opers when backup router comes
2753           online.  Affected file silcd/server.c.
2754
2755         * Fixed the INVITE command to send the invite list in
2756           command reply.  Affected file silcd/command_reply.c.
2757
2758         * Fixed MOTD command reply sending.  Affected file
2759           silcd/command.c.
2760
2761         * UTF-8 decode the topic in TOPIC command reply and LIST
2762           command reply in Irssi SILC client.  Affected file is
2763           irssi/src/silc/core/client_ops.c.
2764
2765 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2766
2767         * Fixed the INVITE command to not crash Irssi SILC client
2768           when given without nickname argument.  AFfected file
2769           irssi/src/silc/core/client_ops.c.
2770
2771         * Fixed double free in WHOIS query on normal server when
2772           forwarding query to router.  Affected file is
2773           silcd/server_query.c.
2774
2775         * Fixed WATCH command reply handling on normal server which
2776           was missing altogether.  Affected file silcd/command_reply.c.
2777           Bug #44.
2778
2779 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2780
2781         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2782           Included yodl sources for each of these. Also modified
2783           Makefile.am prototype to install these files to proper
2784           locations. Updated CREDITS. Affected file Makefile.am.pre,
2785           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2786           doc/silcd.8.
2787
2788 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2789
2790         * Added support for encrypted private key files.  Now
2791           passphrase must be provided when new key pair is created
2792           (can be empty though), and prompted when loading the
2793           private key.  Added support for loading the old-style
2794           non-encrypted private keys as well.  Affected files
2795           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2796           SILC Server.
2797
2798         * Fixed silc_get_input to accept input on all terminals.
2799           Affected file lib/silcutil/silcutil.c.
2800
2801         * Moved the Irssi SILC client key loading and other stuff
2802           to be called after the arguments and UI is initialized.
2803           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2804
2805         * Added -P option to Irssi SILC client which can be used
2806           to change the passphrase of the private key.  Affected
2807           file irssi/src/silc/core/silc-core.c.
2808
2809         * Added silc_change_private_key_passphrase apputil routine
2810           to lib/silcutil/silcapputil.[ch].
2811
2812 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2813
2814         * Fixed connection closing in client library to not crash.
2815           Moved the connection freeing totally to function
2816           silc_clinet_del_connection.  Affected file
2817           lib/silcclinet/client.c.
2818
2819 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2820
2821         * Changed includes/silcincludes.h to silcincludes.h.in to
2822           include configuration specific information.  The silcdefs.h
2823           is not included in to installation anymore (it's only
2824           compilation time header).
2825
2826 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2827
2828         * Moved the SilcClient and SilcClientConnection from client.h
2829           to the public lib/silcclient/silcclient.h.  Changed the
2830           structures a bit.
2831
2832 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2833
2834         * If version string in silc_clinet_alloc is NULL the library
2835           puts it automatically.  Affected file lib/silcclient/client.c.
2836
2837         * Changed the version strings from variables to #define's
2838           in includes/silcversion.h.
2839
2840 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2841
2842         * Added shared library complation support.
2843
2844 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2845
2846         * Added lib/silcutil/silcapputil.[ch] for application
2847           utility functions.  It includes routines for applications'
2848           convenience.  Added silc_create_key_pair, silc_show_public_key
2849           and silc_load_key_pair functions.
2850
2851 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2852
2853         * Send RESUME_CLIENT packet from router to backup routers
2854           to in resuming.  Affected file silcd/packet_receive.c.
2855
2856 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2857
2858         * In IDENTIFY command parsing, send all other IDs except
2859           Client IDs explicitly to router for resolving on normal
2860           server.  Also check that ID received in WHOIS command is
2861           always Client ID, others are not allowed.  Affected file
2862           silcd/server_query.c.
2863
2864         * Merged latest changes from irssi.org CVS.
2865
2866 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2867
2868         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2869           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2870
2871         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2872           the silc_client_packet_send to silcclient.h for application
2873           usage.  Affected files lib/silcclient/client_internal.h
2874           lib/silcclient/silcclient.h.
2875
2876         * Fixed a bug in query resolving in server.  Used wrong
2877           variable in a for loop and crashed.  Affected file is
2878           silcd/server_query.c.
2879
2880         * Server constructs requested attributes only to locally
2881           connected clients.  Affected file silcd/server_query.c.
2882           Bug #36.
2883
2884         * Fixed a bug when sending resolving from router to server
2885           with requested attributes.  The constructed WHOIS command
2886           was incorrect.  Affected file silcd/server_query.c.
2887           Bug #38.
2888
2889         * Fixed Requested Attributes saving in WHOIS command reply.
2890           The length of the data buffer must be saved too.  Affected
2891           file silcd/command_reply.c.
2892
2893         * Update the client entry's servername after detaching is
2894           over.  Affected file silcd/packet_receive.c.  Bug #37.
2895
2896         * Resolve incomplete client entrys in CUMODE_CHANGE and
2897           CMODE_CHANGE notifys.  Affected file is
2898           lib/silcclient/client_notify.c.  Bug #42.
2899
2900 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2901
2902         * Fixed channel key packet processing bug on backup router
2903           during backup resuming protocol.  Affected file is
2904           silcd/packet_receive.c.
2905
2906         * Fixed memory leaks in server.  Affected files are
2907           silcd/server.c and silcd/packet_receive.c.
2908
2909         * Fixed packet decryption problem when backup router encrypted
2910           channel message with wrong key during backup resuming
2911           protocol.  Affected file silcd/packet_send.c.
2912
2913         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2914           Toni Willberg (toniw@iki.fi)
2915
2916         * Changed the SilcCipher context to be private.  Changed the
2917           silc_cipher_get_iv to just return pointer to the IV.  Added
2918           silc_cipher_get_name to return the name of the cipher.
2919           Fixed code all around to support these changes.  Affected
2920           files are lib/silccrypt/silccipher.[ch], client library and
2921           server.
2922
2923 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2924
2925         * Fixed unaligned access in lib/silccore/silcattrs.c.
2926
2927         * Fixed libtool linking in lib/silcsim/Makefile.am.
2928
2929         * Fixed services attribute printing.  Affected files is
2930           irssi/src/silc/core/silc-queries.c.
2931
2932 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2933
2934         * Fixed a crashbug in incoming server accepting.  Affected
2935           file silcd/server.c.
2936
2937 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2938
2939         * Added automatically generated index to Toolkit Reference
2940           Manual.
2941
2942         * Added support for Postscript Toolkit Reference Manual.
2943
2944 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2945
2946         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2947           CVS.
2948
2949 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2950
2951         * Added 'send_events' boolean argument to the function
2952           silc_schedule_set_listen_fd which sends the set events to
2953           the application explicitly if set to TRUE.  Default action
2954           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2955           lib/silcclient/client_internal.h and silcd/server_internal.h.
2956
2957         * Added silc_compare_timeval to determine which time values
2958           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2959
2960         * Added sort-of "Quality of Service" (QoS) support to
2961           SilcSocketConnection.  Data reception can be controlled with
2962           rate limit per second and/or read data length limit.
2963           Added silc_socket_set_qos.  Affected files are
2964           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2965
2966         * Added the QoS configuration to SILC Server configuration
2967           file.  Affected files are silcd/serverconfig.[ch] and
2968           server.c.
2969
2970 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2971
2972         * Merged with irssi.org CVS.
2973
2974         * Failed OPER and SILCOPER authentications are now logged.
2975           Affected file silcd/command.c.  Bugs #25.
2976
2977 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2978
2979         * ROBODoc documented lib/silcutil/silcbuffer.h and
2980           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2981           <ville.rasanen@iki.fi>.
2982
2983 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2984
2985         * Added support for auto-passphrase authentication from the
2986           config file during connecting which was not implemented
2987           yet.  Affected file irssi/src/silc/core/client_ops.c.
2988
2989         * Fixed a bug in authentication protocol failure handling which
2990           was processing wrong callback context.  Affected files
2991           are lib/silcclient/client.c and protocol.c.
2992
2993         * Fixed the /ATTR allow off to actually work.  Affected file
2994           is irssi/src/silc/core/silc-queries.c.
2995
2996         * Fixed the /ATTR -del to work.  Affected file is
2997           irssi/src/silc/core/silc-queries.c.
2998
2999 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3000
3001         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
3002
3003         * Fixed mask attribute adding in Irssi SILC client.  Affected
3004           file irssi/src/silc/core/silc-queries.c.
3005
3006 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3007
3008         * Added support for saving the requested attributes in
3009           WHOIS to directory.  Affected file is
3010           irssi/src/silc/core/silc-queries.c.
3011
3012 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3013
3014         * Added support for parsing VCard fields that do not have
3015           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
3016
3017         * Fixed a double free bug in hash table foreach function
3018           if the entry was deleted in the foreach callback.  Affected
3019           file lib/silcutil/silchashtable.c.
3020
3021 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3022
3023         * Added silc_attribute_get_verify_data to return the signature
3024           verification data for either user digital signature or
3025           server digital signature in Requested Attributes.  Affected
3026           files are lib/silccore/silcattrs.[ch].
3027
3028         * Added silc_vcard_alloc which is used to allocated dynamic
3029           SilcVCard context.  The silc_vcard_free now checks whether
3030           the context is dynamically allocated or not.  Affected files
3031           are lib/silcutil/silcvcard.[ch].
3032
3033 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3034
3035         * Periodically remove the NOATTR status from client entry
3036           so that the client may take the attributes in use even after
3037           server has resolved them unsuccessfully earlier.  Affected
3038           file silcd/server_query.c and idlist.h.
3039
3040         * Moved sha1hash and md5hash from client->internal to
3041           SilcClient for application usage.  Affected files are
3042           lib/silcclient/client.h and client_internal.h.
3043
3044         * Fixed attribute encoding and decoding bugs.  Affected
3045           files lib/silccore/silcattrs.[ch].
3046
3047         * Added ATTR command to Irssi SILC Client which is used to
3048           manage user's Requested Attributes sending and values for
3049           WHOIS command.  Affected files around Irssi SILC client.
3050
3051 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3052
3053         * Added silc_buffer_strformat which can be used to format
3054           strings into a buffer which size is automatically increased.
3055           Affected file lib/silcutil/silcbuffmt.[ch].
3056
3057         * Added implementation of VCard (RFC 2426) which can be used
3058           as part of Requested Attributes in WHOIS command.  Affected
3059           file lib/silcutil/silcvcard.[ch].
3060
3061 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3062
3063         * Some strncat -> silc_strncat changes our the core and
3064           client library.
3065
3066         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
3067           errors.  Added better error printing to SKE library.
3068           Affected files lib/silcske/silcske.c, silcske_status.h and
3069           payload.c.
3070
3071         * Save the PKCS key length even if only private key is set to
3072           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
3073
3074         * Fixed the usage of silc_pkcs_get_key_len since it returns the
3075           length in bits not in bytes.  Affected files are
3076           lib/silcske/silcske.c, lib/silccore/silcauth.c and
3077           silcd/server_query.c.
3078
3079 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3080
3081         * Added silc_attribute_payload_encode_data to directly encode
3082           the data into the attributes buffer.  Renamed function
3083           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
3084           Affected files are lib/silccore/silcattrs.[ch].
3085
3086         * silc_hash_table_find_foreach calls the foreach function now
3087           once even if the nothing was found with context set to NULL.
3088           Affected file lib/silcutil/silchashtable.[ch].
3089
3090         * Remove the RESOLVING flag from client entry after received
3091           the Requested Attributes from the client.  Fixed memory leak
3092           in client entry freeing.  Affected files silcd/server_query.c
3093           and idlist.c.
3094
3095         * Added Requested Attributes support into SILC Client Library.
3096           It is not able to send requested attributes in WHOIS command,
3097           and also receive and process requested attributes.  Added
3098           silc_client_attribute_[add|del] and silc_client_attributes_get
3099           functions.  Added also `ignore_requested_attributes' to the
3100           SilcClientParams to not use attributes in client.  Affected
3101           files are lib/silcclient/command.c, client_attrs.[ch],
3102           silcclient.h, client_internal and client.[ch].
3103
3104         * Changed the silc_client_get_client_by_id to support Requested
3105           Attributes, it takes them as argument now.  Affected file
3106           is lib/silcclient/silcclient.h, and idlist.c.
3107
3108         * Added -details option to WHOIS command in Irssi SILC Client
3109           to support the requested attributes.  By default it requests
3110           all attributes.  Affected file lib/silcclient/command.c and
3111           irssi/doc/help/in/whois.in.
3112
3113 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3114
3115         * Add also SERVICE attribute for server-constructed attribute
3116           data.  Also digitally sign the attributes and add
3117           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
3118           silcd/server_query.c.
3119
3120 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3121
3122         * Changed the silc_attribute_payload_encode to support list
3123           of attributes (function may be called several times to add
3124           a new attribute).  Removed the silc_attribute_payload_encode_list
3125           function.  The encoding function now also automatically encodes
3126           the data, so the caller does not need to do that.  Affected
3127           files lib/silccore/silcattrs.[ch].
3128
3129         * Added support for replying on behalf of the user to the
3130           Requested Attributes in WHOIS command in the server.  Affected
3131           file silcd/server_query.c.
3132
3133         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
3134           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
3135
3136 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3137
3138         * Don't swtich to become primary router if we are backup if
3139           decryption error has occurred.  Affected file silcd/server.c.
3140
3141         * Fixed a bug in backup router IP address comparison in
3142           silc_server_backup_get.
3143
3144           Save now also the port of the server/router and use that
3145           in comparison as well.  Affected file silcd/server_backup.c.
3146
3147         * Normal server now reconnects to backup router automatically
3148           if connection is lost to it.  Affected file silcd/server.c.
3149
3150 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3151
3152         * If packet processing fails (like integrity check fails)
3153           the connection is closed now.  Affected files are
3154           lib/silccore/silcpacket.c and silcd/server.c.
3155
3156 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3157
3158         * Fixed double free in RSA public key set function
3159           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
3160           Bug #29.
3161
3162 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3163
3164         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
3165           Added server_query.[ch] which provides one interface for
3166           querying information using all three commands.
3167
3168         * Changed all "typedef unsigned char" in core library to
3169           "typedef SilcUInt8".
3170
3171 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3172
3173         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
3174
3175         * Renamed silc_server_get_client_resolve to
3176           silc_server_query_resolve and moved to server_query.[ch].
3177
3178 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3179
3180         * Resumed client packet handling from server put the resumed
3181           client on wrong list on router and caused the client not
3182           be present on the network anymore.  Now fixed to put the
3183           client to correct list.  Affected file silcd/packet_receive.c.
3184
3185 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3186
3187         * Various cleanup in error message output in config parsing code
3188           and in server init code.  Fixed error log files containing
3189           too many newlines ('\n') in some situations.  Affected files are
3190           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
3191
3192 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3193
3194         * Use the reverse lookupped hostname in client internals
3195           instead of one user provided us as remote server name.
3196           Affected file lib/silcclient/client.c.
3197
3198 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3199
3200         * Added 'app_context' to silc_schedule_init.  It is an
3201           application specific context that is delivered to application
3202           in task callback functions.  Affected files are
3203           lib/silcutil/silcutil.[ch].
3204
3205         * The hb_context in SilcSocketConnection is not freed
3206           automatically anymore (application must free it).  Freeing
3207           it automatic is inconsistent.  Affected files are
3208           lib/silcutil/silcsockconn.[ch].
3209
3210 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3211
3212         * Added support for removing explicitly added client connections
3213           in rehash and closing the client connections if they were
3214           unconfigured in the rehash.  Affected file silcd/server.c.
3215
3216         * Added support for aborting automatically pending commands
3217           that never receives the reply (to avoid memory leaks).
3218           Added also silc_server_command_pending_timed to set the
3219           specific timeout for pending command.  Affected files are
3220           silcd/command[_reply].[ch].
3221
3222         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
3223           specs and lib/silccore/silcstatus.h.
3224
3225 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3226
3227         * Changed the silc_get_time to accept time value as argument
3228           or if zero is sent return current local time.  Affected
3229           file lib/silcutil/silcutil.[ch].
3230
3231         * Added STATS command to client library and Irssi SILC client.
3232           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
3233
3234 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3235
3236         * Assure that channel key is set before sending it.  May
3237           crash server otherwise.  Affected file silcd/packet_send.c.
3238
3239 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3240
3241         * Assure that endless loop cannot happen with detached client
3242           resolving on normal server.  Added idlist status
3243           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
3244           silcd/idlist.h and silcd/packet_receive.c.
3245
3246 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3247
3248         * Incoming file transfer request cannot use same session as
3249           the sending session.  This can happen when sending file to
3250           yourself.  Crashed the client on quit.  Affected file
3251           lib/silcclient/client_ftp.c.  Bug #24.
3252
3253 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3254
3255         * Implemented the draft-riikonen-precense-attrs draft and
3256           the Attribute Payload into the lib/silccore/silcattrs.[ch].
3257
3258 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3259
3260         * Distribute the SERVER_SIGNOFF notify also to local backup
3261           routers from the primary router.  The backup router may not
3262           have the signing of local server directly connected and need
3263           to know about the signoff.  Affected file silcd/server_util.c.
3264
3265         * Use the primary router as the origin of the locally connected
3266           server when it is disconnecting from the backup router since
3267           that's where it really is coming from.  Now the clients from
3268           the disconnecting server are removed correctly and "shadow"
3269           clients are not left to the backup router.  Affected file
3270           silcd/server.c.
3271
3272 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3273
3274         * If normal server is standalone and found existing but disabled
3275           channel, do not re-create the channel since it creates
3276           duplicate same channels.  Affected file silcd/server.c.
3277
3278         * Added anonymous client connections support to server.  New
3279           "anonymous" configuration option to ConnectionParams section
3280           added.  If set to true, the username and hostname information
3281           of the client will be scrambled and anonymous user mode is
3282           set automatically to the user.  Affected files are
3283           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3284
3285 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3286
3287         * In JOIN notify handling, mark that the cache entry of the
3288           client cannot be expired.  Can cause crashes on normal
3289           server (asserts client->channels).  Affected file is
3290           silcd/packet_receive.c.
3291
3292         * From now on distribution versions are used as protocol versions
3293           instead of by default using the Toolkit base version as protocol
3294           version.  Affected file prepare.
3295
3296         * Do not set the locally resolved hostname for local client
3297           entry but take what server sends.  This way the real hostname
3298           is showed in WHOIS for yourself.  Affected file is
3299           lib/silcclient/idlist.c and lib/silcclient/client.c.
3300
3301         * Resolve local info with IDENTIFY when connecting to server.y
3302
3303 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3304
3305         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3306           for implied search (not needed on platforms which has native
3307           pthreads library).  Use --without-pthreads to disable threads.
3308           Affected file is configure.in.pre
3309
3310         * Fixed --with-iconv on platforms which need to bypass (broken)
3311           native iconv().  Affected file is configure.in.pre
3312
3313 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3314
3315         * Moved -C option parsing in Irssi SILC client at same time
3316           as other options.  The UI was initialized earlier and caused
3317           problems on command line.  Bug #16.  Affected file is
3318           irssi/src/silc/core/silc-core.c.
3319
3320 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3321
3322         * Added global variable silc_log_timestamp that tells silclog
3323           wether to print or not the timestamp in the logging files.
3324           Affected file lib/silcutil/silclog.[ch].
3325
3326         * Added silcd configuration option Timestamp in the Logging
3327           section.  Affected file silcd/serverconfig.[ch],
3328           doc/example_silcd.conf.in.
3329
3330 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3331
3332         * Fixed fingerprint checking to check for entirely empty
3333           fingerprint instead of two first bytes when determining
3334           if it is set.  Bug #18.  Affected file silcd/command.c.
3335
3336         * Fixed duplicate PKCS name registering to not allow it.
3337           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3338
3339 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3340
3341         * Conditionalize non-gcc compiler optimizations for various
3342           platforms, enable those commented out.  Cleanups.
3343           Affected file lib/silcmath/mpi/configure.in
3344
3345 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3346
3347         * silc_rng_exec_command() left zombie processes if command
3348           didn't generate any output.  Affected file
3349           lib/silccrypt/silcrng.c
3350
3351 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3352
3353         * Rewrote iconv checking, introduce --with-iconv for systems
3354           which rely on libiconv.  Check if iconv() provided by libc
3355           is good enough, otherwise demand libiconv.  Affected file
3356           configure.in.pre
3357
3358 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3359
3360         * Search for ldopen() also in libc.  This enables SIM support
3361           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3362           file configure.in.pre
3363
3364 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3365
3366         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3367           This fixes prepare on *BSD systems.  Affected file
3368           configure.in.pre
3369
3370 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3371
3372         * More fixed for not having purge timeout for global clients
3373           that are on channel.  Affected files silcd/command_reply.c
3374           and server_util.c.
3375
3376         * Fixed the rekey protocol to work with backup router connections.
3377           Rekey packets are now allowed on disabled connections as
3378           well.  Affected files silcd/packet_send.c and server.c.
3379
3380         * Do not switch to be as backup router when shutting down and
3381           closing the primary connection.  Affected file silcd/server.c.
3382
3383         * Fixed memory leaks in backup router deleting.  Added
3384           silc_server_backup_free to free all data during shutdown of
3385           server.  Affected files silcd/server_backup.[ch].
3386
3387 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3388
3389         * Do not process commands if the sock->user_data is NULL.
3390           Affected file silcd/command.c.
3391
3392 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3393
3394         * Fixed buffer overflow and security problems (loosing bits
3395           in CFB encryption) in SILC RNG.  Problems reported by
3396           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3397
3398 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3399
3400         * Added yet more checks that client is not expired on global
3401           list if it is on channels.  Affected file is
3402           silcd/command_reply.c.
3403
3404 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3405
3406         * Merged c0ffee's MIME signal patch which adds support for
3407           sending also MIME messages in Irssi SILC Client, and handling
3408           received MIME messages in a signal (and perhaps doing something
3409           to non-textual MIME messages).
3410
3411 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3412
3413         * Fixed pending command deletion in server and client library
3414           to check the whole list instead of breaking after first found.
3415           The affected files are silcd/command.[ch] and
3416           lib/silcclient/command.[ch].
3417
3418 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3419
3420         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3421           secret or private, otherwise it's possible to find out
3422           whether a secret channel exists or not.  Affected file
3423           silcd/command.c.
3424
3425         * If CMODE change fails during the mode setting, assure that
3426           the old mode mask is set for the channel back.  Affected
3427           file silcd/command.c.
3428
3429         * Fixed passphrase saving on +a channel on normal server
3430           after successful JOIN command.  Affected file silcd/command.c.
3431
3432 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3433
3434         * Remove server/router operator privileges in DETACH command,
3435           since it's possible to resume to server where these
3436           privileges would not be allowed for the client.  Affected
3437           file silcd/command.c.
3438
3439         * Do not set to wait for backup in rehash of the server.
3440           Affected file silcd/server.c.
3441
3442         * Do not check listener sockets when counting how many
3443           socket connections we have.  Affected file is
3444           silcd/server_util.c.
3445
3446         * Do not announce disconnected clients that are remaining
3447           in history (for WHOWAS).  This is because SIGNOFF notify
3448           for these has been sent earlier already.  Affected file
3449           silcd/server.c.
3450
3451 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3452
3453         * Buffer overflow with CUMODE command's mode->mode character
3454           conversion.  Reported by Ville Räsänen.  Affected file
3455           lib/silcutil/silcutil.c.
3456
3457 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3458
3459         * Allow heartbeat packets to go disabled connections anyway.
3460           Affected files silcd/server.c and silcd/packet_send.c.
3461
3462         * Do not broadcast New Channel packets with List flag set
3463           in the packet to backup routers.  The router must check
3464           for the correctness of the packets before sending them.
3465           It is possible that router will have enforce Channel ID
3466           change and this would cause desync in the backup router.
3467           Affected file silcd/packet_receive.c.
3468
3469         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3470           are handled in list parsing.  They are not list packets
3471           anymore.  Affected file silcd/packet_receive.c.
3472
3473 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3474
3475         * Stop waiting for backup router through the timeout, not
3476           directly after backup router has arrived.  Affected file
3477           silcd/server.c.
3478
3479         * Do not re-create channel keys and send them when removing
3480           clients in server shutdown.  Affected files are
3481           silcd/server_internal.h and silcd/server_util.c.
3482
3483         * Notify distribution to backup routers was missing from
3484           the silc_server_send_notify_dest function which caused
3485           desyncing problems with backup router.  Affected file is
3486           silcd/packet_send.c.
3487
3488         * The client's channel removing was working wrong on
3489           backup router.  It assumed that it doesn't know global
3490           information but backup router does know.  For this reason
3491           it could remove channel when it wasn't supposed to do that.
3492           Affected file silcd/server.c and silcd/server_util.c.
3493
3494 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3495
3496         * Stop for a couple seconds after badkup router has become
3497           primary router.  Affected file silcd/server.c.
3498
3499         * Added silc_server_remove_servers_by_server, which is used
3500           to remove servers originated from some other server.  Also
3501           clients of those servers can be removed too.  Affected file
3502           silcd/server_util.[ch].
3503
3504         * When removing clients after a server has signed of remove
3505           also all servers behind that server (unless they are known
3506           to be available locally), and send SERVER_SIGNOFF for each
3507           of the server separately.  Also the signed off clients are
3508           sent now separately per signed off server.  The affected files
3509           are silcd/server.c and silcd/server_util.[ch].
3510
3511         * All servers added with silc_idlist_add_server must always
3512           have both "router" and "connection" pointers set.  Otherwise,
3513           bad server entries may be left around in the cache.
3514           Affected file silcd/command_reply.c.
3515
3516         * Do not create the channel key in NEW_CHANNEL packet
3517           processing if the channel is empty.  Affected file
3518           silcd/packet_receive.c.
3519
3520         * Completed backup router support for standalone routers.
3521           Supports also servers in the cell that do not use the backup
3522           at all.
3523
3524 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3525
3526         * Fixed a bug in silc_string_regexify which did not add '^'
3527           at the start of each string, and thus the matching was
3528           not explicit.  For example ban list iikone@*!*@* would
3529           match also "priikone", which is wrong, it would have to be
3530           *iikone@*!*@* to match also "priikone".  Affected
3531           file lib/silcutil/unix/silcunixutil.c.
3532
3533 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3534
3535         * Enable all local server connections before updating client
3536           caches when we've become backup router.  Otherwise, signoff
3537           packets may not reach the clients.  Affected files are
3538           silcd/server.c and silcd/server_util.[ch].
3539
3540         * Fixed a bug in version string parsing which could crash
3541           the program with specially formatted version string.
3542           Bug reported and patch provided by Ville Räsänen.  Affected
3543           file lib/silcutil/silcutil.c.
3544
3545         * Handle the disconnection immediately when DISCONNECT
3546           packet is received in server.  Affected file silcd/server.c.
3547
3548         * Primary router now waits a short time (10 seconds) for
3549           backup router connection before accepting any other
3550           connection (except local).  Affected file silcd/server.c,
3551           serverconfig.[ch].
3552
3553         * Fixed a crash in client libary in NICK_CHANGE notify when
3554           NICK_CHANGE arrived for client entry we are resolving
3555           currently.  Affected file lib/silcclient/client_notify.c.
3556
3557         * Call the sconn->callback completion even if error had
3558           occurred.  Start reconnecting always if connection to
3559           primary router fails during backup router protocol.
3560           Affected files silcd/server.c and server_backup.c.
3561
3562 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3563
3564         * Added functions silc_server_send_opers and
3565           silc_server_send_opers_notify to send packets stricly
3566           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
3567           to send variable argument notify to operators.
3568           Affected files silcd/packet_send.[ch] and silcd/server.h.
3569
3570         * Removed UMODE rights checking with UMODE_CHANGE notify.
3571           Affected file silcd/packet_receive.c.
3572
3573         * Server/router operator now receives notify when network
3574           switches to backup router and when it resumes the use of
3575           primary router.  Affected file silcd/server.c and
3576           silcd/server_backup.c.
3577
3578         * Fixed the updating of client information after backup
3579           resuming protocol is over; update all except local clients
3580           to the new primary router.  The affected file is
3581           silcd/server_util.c.
3582
3583         * Added support for closing active connections in rehash
3584           that were unconfigured by the user.  Supports currently
3585           closing server and router connections.  Affected file
3586           silcd/server.c.
3587
3588         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
3589
3590 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3591
3592         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
3593           is NULL since seems that on some platforms NULL is allowed
3594           and on some it's not.  Fallback encoding is used instead.
3595           Affected file lib/silcutil/silcstrutil.c.
3596
3597         * Fixed statistics updating for incoming server connection
3598           which could cause problems when re-connecting.  Affected
3599           file silcd/server.c.
3600
3601         * Preliminary backup router support for standalone router
3602           added.  Affected files in silcd/.
3603
3604         * Mark server connections in backup router disabled before
3605           and after backup protocol.  Affected file is
3606           silcd/server_backup.c.
3607
3608         * Added support for reconnecting to remote server connection
3609           even if the protocol fails, and if the configuration wants
3610           us to keep trying to connect anyway.
3611
3612           Server connection is not allowed to backup router if
3613           backup router does not have connection to primary router yet.
3614
3615           Affected file is silcd/server.c.
3616
3617 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3618
3619         * Added silc_client_udpate_server function to update changed
3620           server info.  Affected file lib/silcclient/idlist.[ch].
3621
3622         * Added check for server entries that are being resolved when
3623           notify is received.  If being resolved, handle the received
3624           notify only after it's resolved so that all notifys are
3625           handled in same order as received from the server.
3626
3627           Added similar resolver check to channel entries.  Every
3628           notify that cause resolving of any information that affects
3629           channel entry marks the channel entry in waiting state.
3630           After whatever resolving is over the waiters are signalled
3631           and only then the notifys are handled in the same order
3632           as delivered from the server.
3633
3634           Affected files are lib/silcclient/idlist.[ch], and
3635           client_notify.c.
3636
3637         * Fixed KILLED notify handling in normal server.  Affected
3638           file silcd/packet_receive.c.
3639
3640         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
3641           is locally connected, or was locally connected (but may
3642           be detached and connection is not active).  Added also
3643           SILC_IS_LOCAL for checking this status.  Affected files
3644           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
3645           silcd/server.c and silcd/server_internal.h.
3646
3647 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3648
3649         * Don't send or handle TOPIC_SET if topic is already set and
3650           is same as being set.  Affected files silcd/command.c and
3651           silcd/packet_receive.c.
3652
3653         * Fixed CMODE change rights checking to work correctly when
3654           removing modes by operator.  Affected file is
3655           silcd/server_util.c.
3656
3657         * Fixed some handling with New Channel packet in router and
3658           fixed some CMODE_CHANGE notify handling in server and router.
3659           Affected file is silcd/packet_receive.c.
3660
3661         * Changed "disconnect" client operation to include the
3662           reason of the disconnection and optional disconnection
3663           message.  Affected file lib/silcclient/silcclient.h.
3664
3665         * Made the compilation of lib/contrib/ stuff conditional.
3666           Affected files configure.in.pre, lib/contrib/Makefile.am.
3667
3668 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3669
3670         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
3671           to the sender of the notify too, to avoid situation where two
3672           notifys are in the network at the same time going to oppsite
3673           directions.  Affected file silcd/packet_receice.c.
3674
3675 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3676
3677         * Delete the client from channel even if the cilent->id is
3678           NULL.  It was possible that client was deleted without
3679           removing from channels (theoretically at least).  Affected
3680           file silcd/server.c and silcd/server_util.c.
3681
3682         * Free the client data too when resuming is not successful.
3683           Affected file silcd/packet_receive.c.
3684
3685         * Merged some code from c0ffee's silc-plugin.  Affected files
3686           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
3687
3688         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
3689           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
3690           to the primary router connection, the other one returns
3691           TRUE if packet must be broadcasted to network.
3692
3693         * All notifys that are destined to primary router (to network)
3694           are now automatically sent to backup routers even if the
3695           router is standalone (and has backup router).  Affected files
3696           in silcd/.
3697
3698         * Added --without-irssi and --without-silcd configuration
3699           options for disabling the compilation of these applications.
3700           Affected file configure.in.pre and prepare.
3701
3702 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3703
3704         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
3705           UTF-8 encoding and decoding.  Added also new encodings
3706           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
3707
3708           Added also SILC_STRING_LANGUAGE which is language and charset
3709           specific encoder and decoer for those platforms that support
3710           iconv().  It can convert the UTF-8 to and from the locale
3711           specific character set.
3712
3713           Affected file lib/silcutil/silcstrutil.[ch].
3714
3715         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
3716
3717         * Added function silc_get_command_name to the file
3718           lib/silcutil/silcutil.[ch].
3719
3720         * Improved the server debug output a bit.  Affected files are
3721           in silcd/.
3722
3723 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3724
3725         * Save the channel passphrase when received succesful JOIN
3726           command reply from router, on normal server.  Otherwise
3727           joinig +a channels from normal server is not possible.
3728           Affected file silcd/command.c.
3729
3730         * Fixed a bug in TOPIC_SET notify handling.  The notifier
3731           may be other than client too, like server or channel.
3732           It expected it to always be only client and ignored the
3733           notify.  Affected file silcd/packet_recieve.c.
3734
3735         * Removed some (unnecessary) debug printing from
3736           lib/silccore/silcid.c and lib/silccore/silcargument.c.
3737
3738         * Do not force CMODE_CHANGE when server is announcing new
3739           channel.
3740
3741           Router announces stuff only after server reannounces channel
3742           after CHANNEL_CHANGE notify.
3743
3744           These fixes optimizes the announcing procedure, and perhaps
3745           fixes some problems too.  Affected file silcd/packet_receive.c.
3746
3747         * Fixed SERVER_SIGNOFF sending to local clients.  It was
3748           totally broken and sent the notify to all local clients,
3749           instead of only to those that was on same channel as the
3750           signing off clients.  Affected file silcd/server_util.c.
3751
3752         * Added -D option to server.  It can be used to give debug
3753           level.  The levels are from 0 - 99, and are predefined for
3754           smooth server debugging.  (see silcd.c for the predefined
3755           levels).  Affected file silcd/server.c.
3756
3757 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3758
3759         * Fixed a bug in Irssi SILC client to close the connection
3760           properly when disconnecting from server.  Affected file
3761           irssi/src/silc/core/client_ops.c.
3762
3763 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3764
3765         * When authenticating as founder during JOIN command, check
3766           that the one authenticating becomes the only founder on the
3767           channel.  Affected file silcd/command.c.
3768
3769         * Better checking for founder mode setting when CUMODE_CHANGE
3770           notify is received.  Affected file silcd/packet_receive.c.
3771
3772         * Close all connections when shutting down the server by sending
3773           DISCONNECT packet.  Close all listeners too when shutting
3774           down the server.  Affected file silcd/server.c.
3775
3776         * Handle DISCONNECT packet correctly in client library by
3777           calling the "disconnect" client operation.  Affected file
3778           lib/silcclient/client.c.
3779
3780         * Handle local errors correctly during resuming.  Affected
3781           file lib/silcclient/client.c.
3782
3783 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3784
3785         * The log file is not dupped internally anymore in
3786           lib/silcutil/silclog.c.  Fixed memory leaks too.
3787
3788         * The scheduler now dispatches all pending timeout tasks
3789           when it is uninitialized with silc_schedule_uninit.
3790           Affected file lib/silcutil/silcschedule.c.
3791
3792 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3793
3794         * Added --enable-stack-trace option to configure.  Added
3795           memory allocation stack trace support.  Added files
3796           lib/silcutil/stacktrace.[ch].  Affected files are
3797           lib/silcutil/silcmemory.[ch].
3798
3799         * Fixed memory leaks from libraries and server.  Affected
3800           files around the tree.
3801
3802         * Reverted back a fix made to CUMODE which broke it.
3803           Affected file silcd/command.c.
3804
3805 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3806
3807         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3808           core library, and implemented it.  All textual messages SHOULD
3809           use this flag and the message MUST be UTF-8 encoded.
3810           All text messages sent by Irssi SILC client are now UTF-8
3811           encoded (regardless whether the terminal supports UTF-8 or not).
3812           Affected files are lib/silccore/silcchannel.h,
3813           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3814           client_ops.c.
3815
3816 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3817
3818         * Added lots of new statistics updating that was missing from
3819           the server and router code.  Affected files in silcd/.
3820
3821         * Sending SIGUSR1 signal to server now dumps the current
3822           server statistics into /tmp directory.  Affected file is
3823           silcd/silcd.c.
3824
3825         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3826           the SILC Hash Interface also.  Added new functions
3827           silc_hash_get_name, silc_hash_init, silc_hash_update and
3828           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3829
3830 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3831
3832         * Added some better info printing for client during connecting.
3833           Affected file silcd/server_util.c.
3834
3835         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3836           to silence a user on a channel.  Affected files are
3837           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3838           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3839           and silcd/packet_receive.c.
3840
3841         * Fixed a fatal bug in handling of malformed command payload.
3842           Affected file silcd/command.c.
3843
3844         * Fixed a double free when announcing channel users to router.
3845           Affected file silcd/server.c.
3846
3847         * After successful authentication to channel founder mode, check
3848           that there isn't anyone else with founder mode on the channel.
3849           The one that authenticated will become founder and anyone
3850           else is demoted.  Affected file silcd/command.c.
3851
3852         * Added error printing of any error that has occurred during
3853           any command in client library.  Affected file is
3854           irssi/src/silc/core/client_ops.c.
3855
3856         * Removed some error printing from the client library and left
3857           it for the application to worry (from the error status it
3858           receives in 'command' client operation.  Affected file is
3859           lib/silcclient/command.c.
3860
3861 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3862
3863         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3864           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3865           Starting key agreement with itself is denied.  Affected file
3866           is lib/silcclient/client_keyagr.c.
3867
3868         * Fixed some error checkings from the SFTP library which caused
3869           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3870           and lib/silcsftp/sftp_util.c.
3871
3872         * Added new "debug" and "debug_string" settings to Irssi SILC
3873           client which can be used to print runtime debugging on the
3874           Irssi's screen.  Available when compiled with --enable-debug
3875           option.  Affected file irssi/src/silc/core/silc-core.c.
3876
3877 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3878
3879         * Fixed a missing variadic parameter in a function call that
3880           caused server crash when a non-allowed connection arrived.
3881           Reported by Richard Becker.  Affected file silcd/server.c.
3882
3883 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3884
3885         * Added WATCH list sending to backup routers from router.
3886           The WATCH command is sent by the router to the backup
3887           router.  Affected file silcd/command.c.
3888
3889         * Mark the backup_router flag for RouterConnection entry
3890           if the backup router stuff is defined in the config file.
3891           Affected file silcd/serverconfig.c.
3892
3893         * Fixed some backup data sending around the code to work better
3894           if the router is standalone router.  Not all places were fixed.
3895           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3896           silcd/server.c.
3897
3898         * Fixed the router connecting when connecting to multiple
3899           routers.  It ignored every other router except the first
3900           one.  Affected file silcd/server.c.
3901
3902 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3903
3904         * Made the private key generation after expiration optional.
3905           If not created after expiration the old key will re-expire
3906           at a later time (and thus key pair is not necessary to
3907           change).  Affected file irssi/src/silc/core/clientutil.c.
3908
3909 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3910
3911         * The length arguments in bind() and connect() were wrong
3912           and fixed now to used SIZEOF_SOCKADDR in the
3913           lib/silcutil/unix/silcunixutil.c.
3914
3915 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3916
3917         * Fixed detach timeout handling to use Client ID and not
3918           the actual client entry which may be freed in the callback.
3919           Affected file silcd/command.c.
3920
3921 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3922
3923         * Merged c0ffee's multiple interface support patch.
3924           Affected files in silcd/.
3925
3926 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3927
3928         * Cleanup keys properly.  Affected file is
3929           irssi/src/silc/core/clientutil.c.
3930
3931 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3932
3933         * Display the user mode on the status bar.  Affected file
3934           irssi/src/silc/core/silc-expandos.c.
3935
3936 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3937
3938         * If private message key is not set, but the flag is set in
3939           the packet, ignore the packet since it cannot be decrypted.
3940           Affected file lib/silcclient/client_prvmsg.c.
3941
3942 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3943
3944         * When resuming client, remove the old client entry from
3945           the watcher list too.  Affected file silcd/packet_receive.c.
3946
3947         * Do not allow normal server to force founder mode away
3948           from router if the founder mode is already set.  Affected
3949           file silcd/packet_receive.c.
3950
3951         * Remove the client entry with watch notify types with short
3952           timeout, and not directly, so that other notifys can be
3953           retrieved too.  Affected file lib/silcclient/client_notify.c.
3954
3955         * Display notification about data messages that cannot be
3956           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3957           irssi/src/fe-common/silc/module-formats.[ch].
3958
3959 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3960
3961         * Fixed the CHANNEL_CHANGE notify handling in client libary
3962           to not use freed memory.  Affected file is
3963           lib/silcclient/client_notify.c.
3964
3965         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3966           file silcd/packet_receive.c.
3967
3968         * Fixed USERS command to support empty channels.  Affected
3969           file silcd/command.c.
3970
3971 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3972
3973         * Allow multiple identical pending commands to be registered
3974           in client library.  Affected file is lib/silcclient/command.c.
3975
3976         * Call the completion for resolving client information only
3977           after all resolvers has finished.  This fixes a crash in
3978           the client.  Added support for checking when the resolvers
3979           are finished.  Affected file is lib/silcclient/idlist.c.
3980
3981         * Wait by default 3 seconds before reconnecting to the server
3982           after being disconnected.  Makes the /detach command a bit
3983           more usable.
3984
3985 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3986
3987         * Check the watcher list before sending signoff notifys
3988           when closing client connection.  Affected file is
3989           silcd/server.c.
3990
3991         * Added better CMODE command rights checking.  Affected file
3992           silcd/server_util.c.
3993
3994 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3995
3996         * Fixed watcher list checking during server signoff.  It
3997           crashed the server.  Affected file silcd/server_util.c.
3998
3999         * The JOIN command reply returns now the founder's public
4000           key.  Affected file is silcd/command.c.
4001
4002         * Announce the channel mode, and the mode properties with
4003           CMODE_CHANGE notify.  Affected file silcd/server.c.
4004
4005         * Mark new channels by default disabled, untill at least
4006           one user joins the channel.  Affected file is
4007           silcd/packet_receive.c.
4008
4009 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4010
4011         * The nickname argument to watch notify can be optional.
4012           Fixes a crash in server.  Affected file silcd/packet_send.c.
4013
4014         * Remove the client entry from cache if the WATCH notify type
4015           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
4016           lib/silcclient/client_notify.c.
4017
4018         * Check the watcher list before and after changing nickname
4019           when the NICK_CHANGE notify is received.  Affected file is
4020           silcd/idlist.c.
4021
4022         * Fixed a crash in OPER and SILCOPER command sending.  Empty
4023           passphrase caused the crash.  Affected file is
4024           lib/silcclient/command.c.
4025
4026 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4027
4028         * Merged with Irssi CVS for Irssi SILC client.
4029
4030 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4031
4032         * Completed the protocol specifications.
4033
4034 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4035
4036         * Merged with Irssi CVS for Irssi SILC client.
4037
4038 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4039
4040         * Added the founder's public key delivery to the
4041           CUMODE_CHANGE notify type as well.  Updated the protocol
4042           specs and the code.  Affected files are silcd/packet_send.[ch],
4043           silcd/packet_receive.c and silcd/command.c.
4044
4045 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4046
4047         * Added silc_pkcs_public_key_copy function into the
4048           lib/silccrypt/silcpkcs.[ch].
4049
4050         * Remove the `iv' from the SilcChannelEntry since we can
4051           live without it.  Affected files are silcd/idlist.h and
4052           silcd/packet_receive.c.
4053
4054         * Added support for sending the founder's public key in
4055           the CMODE_CHANGE notify packet in the server.  Affected
4056           files are silcd/packet_send.[ch], silcd/packet_receive.c,
4057           silcd/command.c and silcd/server.c.
4058
4059         * Changed the FOUNDER_AUTH authentication to use only
4060           public key authentication as defined by new protocol
4061           specs.  Passphrase authentication with that mode cannot
4062           be used anymore.  It is now possible to reclaim founder
4063           mode from any server in the network.  Affected files are
4064           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
4065
4066         * Added permanent channels support by making the channel
4067           permanent when FOUNDER_AUTH mode is set on the channel.
4068           The channel will not be destroyed even if channel is empty
4069           when that mode is set.  Protocol TODO #17.  Affected
4070           files are silcd/server.[ch], server_util.[ch],
4071           silcd/command.c, silcd/packet_receive.c and
4072           lib/silcclient/command.c.
4073
4074 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4075
4076         * Added reference counter to the command reply context in
4077           the client library.  Affected files are
4078           lib/silcclient/command_reply.[ch].
4079
4080 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
4081
4082         * Fixed rekey protocol with PFS in the client library.
4083           Affected file is lib/silcclient/protocol.c.
4084
4085         * Added support for list of errors in client library
4086           command reply handling.  Affected file is
4087           lib/silcclient/command_reply.c.
4088
4089         * Defined that the WHOIS and IDENTIFY commands can send
4090           list of errors.  Updated the protocol specs.  Protocol
4091           TODO #2.
4092
4093         * Added support for sending list of errors to WHOIS and
4094           IDENTIFY commands in server.  Added support for receiving
4095           list of errors in server.  Affected files are
4096           silcd/command.c and silcd/command_reply.c.
4097
4098         * Fixed client info resolving on LEAVE command in client
4099           library to not crash.  Affected file is
4100           lib/silcclient/client_notify.c.
4101
4102 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
4103
4104         * Defined that the NICK command replies with thew changed
4105           nickname too, to make the nickname changing simpler at
4106           the client's end.  Updated protocol specs and the code
4107           in client and server.  Affected files are
4108           silcd/command.c, lib/silcclient/command_reply.c and
4109           lib/silcclient/command.c.
4110
4111 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4112
4113         * Added `Compressed' packet flag to indicate that the packet
4114           payload is compressed by the sender.  Updated the protocol
4115           specs and the core library.  The compression still is not
4116           implemented in the sources.  Affected file is
4117           lib/silccore/silcpacket.h.
4118
4119 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4120
4121         * Remove pending command callbacks also if the connection
4122           to the server is destroyed.  Affected file is
4123           lib/silcclient/client.c.
4124
4125 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4126
4127         * Added new QUIET channel user mode that can be used to
4128           quiet a user in a channel.  Updated the protocol specs but
4129           it wasn't implemented yet.  Protocol TODO #27.  Affected
4130           file is lib/silccore/silcmode.h.
4131
4132 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4133
4134         * Added BLOCK_INVITE user mode to be able to block incoming
4135           invite notifications.  Protoocol TODO #26.  Affected files
4136           are lib/silccore/silcmode.h, lib/silcclient/command.c and
4137           silcd/command.c.
4138
4139         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
4140           the protocol specs and the code.  Affected file is
4141           lib/silccrypt/silcpkcs.c.
4142
4143 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4144
4145         * Disconnect Payload includes now the status type.  Updated
4146           the protocol specs and the code.  Protocol TODO #25.
4147           Affected files are silcd/server.c, lib/silcclient/client.c.
4148
4149         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
4150           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
4151           Moved the silc_client_command_status_messages table to the
4152           lib/silcutil/silcutil.c and added new funtion
4153           silc_get_status_message, which deprecates function
4154           silc_client_status_message.  Affected files are
4155           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
4156           lib/silcutil/silcutil.[ch].
4157
4158 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4159
4160         * Defined that the nickname hash in Client ID MUST be from
4161           lowercase nickname.  This effectively changes nicknames in
4162           SILC to case-insensitive.  Updated the protocol specs and
4163           the code.  Affected files are lib/silcutil/silcutil.[ch],
4164           silcd/serverid.c, and silcd/idlist.c.
4165
4166         * Added new channel user modes BLOCK_MESSAGES_USERS and
4167           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
4168           code.  Affected files are lib/silccore/silcmode.h,
4169           lib/silcclient/command.c, and silcd/packet_send.c.
4170
4171         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
4172           specs and code.  Affected file lib/silccore/silcstatus.h.
4173
4174         * Added support for watch list.  It is possible to add nicknames
4175           to be watched, and when they come to network, leave network
4176           or user mode changes the watcher will be notified of this
4177           change.  Added SILC_COMMAND_WATCH command, added new
4178           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
4179           notifications.  Updated the protocol specs and implemented
4180           this to library, client and server.  Protocol TODO #21.
4181           Affected files are lib/silccore/silccomand.h,
4182           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
4183           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
4184           silcd/packet_send.[ch], silcd/packet_receive.c, and
4185           irssi/src/silc/core/client_ops.c.
4186
4187         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
4188           somebody watching you.  Updated the protocol specs and the
4189           code.  Affected files are lib/silccore/silcmode.h, and
4190           lib/silcclient/command.c.
4191
4192 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4193
4194         * Added service support to SILC protocol.  Added new command
4195           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
4196           core library.  Services are not implemented in server or
4197           client for now.  Protocol TODO #20.  Affected files are
4198           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
4199
4200         * Added SilcStatus argument to `command' client operation
4201           to return the error status when command sending fails
4202           locally.  Changed all command in client library to return
4203           correct command status.  Affected files are
4204           lib/silcclient/command.c, lib/silcclient/silcclient.h and
4205           irssi/src/silc/core/client_ops.c.
4206
4207 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4208
4209         * Added silc_mime_parse function to parse MIME headers.
4210           Affected files are lib/silcutil/silcstruti.[ch].
4211
4212         * Added MIME header parsing in Irssi SILC Client.  It displays
4213           all textual MIME objects, others it ignores.  Affected file
4214           is irssi/src/silc/core/clien_ops.c.
4215
4216 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4217
4218         * Fixed a bug in the pid writing function, which couldn't be
4219           written in a root-owned directory.
4220
4221 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4222
4223         * Defined that channel message to unknown Channel ID must
4224           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
4225           Updated the protocol specs and the code in server.  The
4226           affected file is silcd/packet_receive.c.
4227
4228 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4229
4230         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
4231           that it is used to send error notifys if error occurs during
4232           some SILC packet processing, except commands.  The error
4233           types are same as for command reply types.  Defined that
4234           if private message is sent to unknown Client ID the error
4235           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
4236           Updated the protocol specs and code.  Affected files are
4237           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
4238           lib/silcclient/client_notify.c, silcd/packet_receive.c,
4239           and irssi/src/silc/core/client_ops.c.  Renamed the
4240           SilcCommandStatus to SilcStatus.
4241
4242         * Defined the use of extra WHOIS attributes in WHOIS command.
4243           The <Requested Attributes> (defined in a separate document)
4244           can be used to request additional information about user
4245           not returned by standard WHOIS command.  Defined that server
4246           can send WHOIS command directly to client.  Client provides
4247           the requested attributes to the server.  Updated the protocol
4248           specs.  Protocol TODO #4.  Implementation is not done yet
4249           (Protocol TODO #24).
4250
4251         * Renamed function silc_client_command_status_message to
4252           silc_client_status_message.  Affected files are
4253           lib/silcclient/command_reply.[ch].
4254
4255 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4256
4257         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
4258           32 bit integers.  Updated the protcol specs and the code.
4259           Affected files are silcd/command.c and
4260           lib/silcclient/command.c.
4261
4262 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4263
4264         * Fixed a bug in library where sending a bogus authentication
4265           payload would lead to a crash.  Affected file is
4266           lib/silccore/silcauth.c.
4267
4268 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4269
4270         * Added detach_disabled and detach_timeout server config
4271           options to the server.  Affected files silcd/serverconfig.[ch],
4272           silcd/command.c and silcd/packet_receive.c.
4273
4274 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4275
4276         * Added resolve_cmd_ident field to the SilcClientEntry structure
4277           too so that if the entry is for example being resolved so
4278           another command may attach to the same pending command reply
4279           without requiring to resolve the same entry again.  Added
4280           support for adding multiple pending commands for one
4281           command idenfier.  Affected files lib/silcclient/command.[ch],
4282           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4283
4284 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4285
4286         * Defined that server receives WHOIS command reply for private
4287           and secret channels too.  Updated protocol specs and the
4288           code in server.  Affected file silcd/command.c.
4289
4290         * Defined <channel user mode list> argument to WHOIS command
4291           reply for returning user modes on the channels.  The
4292           channel list now doesn't include the user mode anymore but the
4293           actual channel mode.  Updated protocol specs and the code in
4294           client and server.  Affected files are silcd/command_reply.c,
4295           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4296           and lib/silcclient/command_reply.c.
4297
4298         * Save the channels list in WHOIS command reply in normal server
4299           so that WHOIS always shows joined channels also in normal
4300           server and not just on router.  Affected file is
4301           silcd/command_reply.c.
4302
4303 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4304
4305         * Defined that server receives USERS command reply for private
4306           and secret channels too.  Updated protocol specs and the
4307           code in server.  Affected file silcd/command.c.
4308
4309 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4310
4311         * Changed the UMODE's mode mask argument to be optional.  If
4312           not provided then the command merely returns the current mode
4313           mask to the client.  Updated protocol specs and the server.
4314           Affected file is silcd/command.c.
4315
4316         * Added SILC session detachment/resuming support.  It is possible
4317           to detach by closing the network connection and then re-connect
4318           and resume to the old client session.  Added DETACHED user
4319           mode that server will set for detached client.  Added new
4320           packet RESUME_CLIENT which is used to perform the resuming
4321           process.  Added DETACH command.  Updated the protocol specs,
4322           core library, client and server.  Protocol TODO #22.  Very
4323           many affected files around the tree.
4324
4325 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4326
4327         * Changed the CMODE's mode mask argument to be optional.  If
4328           not provided then the command merely returns the current mode
4329           mask to the client.  Updated protocol specs and the server.
4330           Affected file is silcd/command.c.
4331
4332         * Changed the Killer's Client ID in KILLED notify to be just
4333           any ID payload since router server is allowed to kill as well.
4334           Updated protocol specs, client libary and server.  Affected
4335           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4336           and irssi/src/silc/core/client_ops.c.
4337
4338 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4339
4340         * Added new user modes ANONYMOUS for special anonymous servers
4341           that may set the mode for client, and BLOCK_PRIVMSG which
4342           client may set to block incoming private messages unless the
4343           Private Message Key flag is set (using private keys to protect
4344           private messages).  Updated protocol specs and code in client
4345           and server and core library.  Protocol TODO #23.  Affected
4346           files are lib/silccore/silcmode.h, silcd/server.[ch],
4347           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4348           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4349
4350         * Added new channel user mode BLOCK_MESSAGES which the client
4351           may set to itself to tell server not send channel messages.
4352           Other packets such as channel key packets are still sent.
4353           Protocol TODO #23.  Updated the protocol specs, client and
4354           server.  Affected files are lib/silccore/silcmode.h,
4355           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4356           lib/silcutil/silcutil.c, silcd/command.c, and
4357           silcd/packet_send.c.
4358
4359 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4360
4361         * Redefined the Status Payload to include now two 8 bit fields,
4362           instead of one 16 bit field.  This now makes it possible to
4363           send list of errors.  Updated the protocol specs and the code
4364           in core library, client library and server.  Protocol TODO #1.
4365           Affected files are lib/silccore/silccommand.[ch],
4366           lib/silcclient/command_reply.[ch], silcd/command.c,
4367           silcd/command_reply.c and silcd/packet_receive.[ch].
4368
4369 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4370
4371         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4372           must be handled by the application and should tell the application
4373           that an error message was already printed, and it should print the
4374           config coords (line, filename, ...).  Affected files are
4375           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4376
4377         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4378           server config parsing code more readable.
4379
4380           Fixed a bug in the fetch_logging() config callback.
4381
4382           Affected files is silcd/serverconfig.c.
4383
4384         * Drop root privileges when started in foreground.  Don't drop them
4385           if debugging also.  Affected file is silcd/silcd.c.
4386
4387 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4388
4389         * Added more IM-like features by introducing new user modes
4390           for setting various presence information.  Added new modes:
4391           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4392           specs and code.  Protocol TODO #19. Affected files are
4393           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4394           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4395
4396 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4397
4398         * Added STATS command to the protocol after all, to return
4399           various statistical information about the network.  It can
4400           be used by clients to retrieve statistical information, and
4401           servers may use it to to fetch cell and network wide
4402           statistics from router.  Updated the protocol specs and
4403           implemented it to the server.  Protocol TODO #16.
4404           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4405           silcd/command_reply.[ch].
4406
4407 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4408
4409         * The LIST command reply in client libary now adds new channel
4410           entry if the returned channel doesn't exist yet in cache,
4411           and returns the channel entry to the application in the
4412           command_reply client operation.  Affected file is
4413           lib/silcclient/command_reply.c.
4414
4415         * Changed the channel message payload's MAC generation to
4416           include the IV in the MAC as well.  This way all relevant
4417           parts of the channel message payload are authenticated also
4418           with the channel message MAC (and not only by packet MAC).
4419           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4420           Affected file is lib/silccore/silcchannel.c.
4421
4422         * Fixed the SKE to save the remote version, since the
4423           silc_ske_parse_version mistakenly checked wrong version,
4424           after it replaced the start payload.  Affected files are
4425           lib/silcske/silcske.[ch].
4426
4427 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4428
4429         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4430           string utility functions.  Added there also new functions
4431           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4432           Affected files lib/silcutil/silcstrutil.[ch].
4433
4434         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4435           files are lib/silcutil/silcstrutil.[ch].
4436
4437         * Defined that the security property fields in SKE SHOULD be
4438           UTF-8 encoded, defined that version string MUST be US-ASCII
4439           encoded, defined that passphrases sent in connection
4440           authentication protocol MUST be UTF-8 encoded.  Implemented
4441           these to the client and server.  Defined also that other
4442           passphrases sent in the protocol MUST be UTF-8 encoded.
4443           Affected files are lib/silcske/silcske.c,
4444           lib/silcclient/protocol.c, silcd/protocol.c,
4445           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4446
4447         * Changed the silc_client_close_connection interface to not
4448           need the SilcSocketConnection which should not be visible
4449           to application.  Affected files are lib/silcclient/client.c
4450           and lib/silcclient/silcclient.h.
4451
4452         * Rewrote the text for Private Message Key Payload in the
4453           protocol specification.  Protocol TODO #11.
4454
4455 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4456
4457         * Upgraded the protocol version to 1.1, updated protocol specs
4458           and software.
4459
4460         * Added the nickname as new argument to NICK_CHANGE notify and
4461           added it to protocol specs and implemented it to client and
4462           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4463           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4464           lib/silcclient/client_notify.c.
4465
4466         * Added the killer's client ID to the KILLED notify and added
4467           it to protocol specs and implemented it to client and server.
4468           Protocol TODO #13.  Affected files are silcd/command.c,
4469           silcd/packet_receive.c, packet_send.[ch],
4470           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4471           The killer's client entry is now returned to application in
4472           the `notify' client operation.
4473
4474         * Fixed the Max Argument fields that had too large value set
4475           in the protocol specs.  Protocol TODO #14.
4476
4477         * Added the LEAVE command reply to return the ID of parted
4478           channel.  Updated protocol specs and implemented it to the
4479           client and server.  Protocol TODO #15.  Affected files are
4480           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4481           entry is now returned to application in the `command_reply'
4482           client operation.
4483
4484         * Rewrote the version SKE version checking in client libary
4485           and in server to use the silc_parse_version_string.  Affected
4486           files are lib/silcclient/protocol.c, silcd/protocol.c.
4487
4488         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4489           commands that was missing it, and updated protocol specs and
4490           the server implementation.  Protocol TODO #10.  The affected
4491           file is silcd/command.c.
4492
4493         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4494           generic reply to a generic request (REQUEST flag), and
4495           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4496           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4497           to define the payload for DATA flag.  Added the flags to
4498           the implementation.  Protocol TODO #9.  Affected file is
4499           lib/silccore/silcchannel.h.
4500
4501           Changed the client library to return the message length
4502           to application as well in the channel_message and private_message
4503           client operations.  Affected files are
4504           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4505           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4506           and lib/silcclient/client_ops_example.c.
4507
4508         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4509           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4510           the channel.  Updated protocol specs and impelemented this
4511           to client and server.  Protocol TODO #6.  Affected files are
4512           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4513           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4514
4515           Added new options m and M to CMODE command in Irssi SILC
4516           client to set these modes.
4517
4518         * Deprecated all administrative commands from SILC protocol
4519           since they are highly implementation specific commands.
4520           Updated protocol specs.  Moved the old commands in
4521           implementations to private range of command types.  Affected
4522           files are silcd/command.c, lib/silcclient/command.c and
4523           lib/silcclient/command_reply.c.  Protocol TODO #8.
4524
4525         * Fixed a bug in server where sending unknown command crashes
4526           the server.  Affected file silcd/command.c.
4527
4528 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4529
4530         * Added SILC_PROTOCOLVERSION macro to check protocol version
4531           of a socket connection.  The affected file is
4532           lib/silcutil/silcsockconn.h.
4533
4534         * Added better error logging in rekey protocol.  Affected file
4535           silcd/protocol.c.
4536
4537         * Do not check public key types in SKE during rekey.  Affected
4538           file lib/silcske/payload.c.
4539
4540         * Fixed the rekey protocol with PFS, which was totally broken.
4541           Affected file silcd/protocol.c.
4542
4543 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4544
4545         * Some client implementations quit network by doing first LEAVE
4546           and then immediately SIGNOFF (like Bombyx).  We now do check
4547           after a short time after LEAVE notify and check whether the
4548           client is still valid after LEAVE, and if not we remove it from
4549           cache.  Affected file is lib/silcclient/client_notify.c.
4550
4551 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4552
4553         * Merged version 1.1.4 of zlib. Even if it not currently in use,
4554           it's good not to have security holes here.
4555
4556         * Fixed a negative refcount situtuation for the config context.
4557           Affected file is silcd/serverconfig.c.
4558
4559 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4560
4561         * ROBOdoc documented lib/silcutil/silcutil.h.
4562
4563 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4564
4565         * Optimized even more the SilcPacketContext structure.  Now
4566           totally saved 16 bytes of memory per context after optimization.
4567           Affected files are lib/silccore/silcpacket.[ch].
4568
4569         * Made strict checks for valid SILC IDs.  Affected file is
4570           lib/silccore/silcid.c.
4571
4572 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4573
4574         * Changed the object argument for silc_cipher_register,
4575           silc_hash_register, silc_hmac_register and silc_pkcs_register
4576           to const.  Affected files are lib/silccrypt/silccipher.[ch],
4577           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
4578
4579         * Changed the silc_get_username and silc_get_real_name to
4580           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
4581
4582         * Fixed the Irssi SILC Client to use the silc_get_username and
4583           silc_get_real_name insted of glib routines since the glib
4584           routines only corrupt stack.  Fixes the Irssi SILC to work in
4585           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
4586
4587         * Fixed the Irssi to not use g_get_home_dir since it crashes
4588           or returns garbage on cygwin and corrupts stack.  Added function
4589           get_home_dir to Irssi routines.  Affected files are
4590           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
4591
4592 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4593
4594         * Made some structure optimizations.  SFTP memory FS MemFSEntry
4595           entry structure.  Optimized SilcTask structure.  Optimized
4596           SilcPacketContext structure.
4597
4598           Affected files lib/silcsftp/sftp_fs_memory.c,
4599           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
4600
4601 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4602
4603         * And yet again reverted back the config thing since Johnny
4604           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
4605           and silcd.c.
4606
4607         * Fixed memory leaks from config object.  Affected files are
4608           silcd/serverconfig.[ch].
4609
4610         * Added support for adding new connections to the server in rehash.
4611           After rehash they take effect.
4612
4613           Added support for changing the maximum allowed connections in
4614           rehash.  The number can grow but going smaller is not supported.
4615
4616           Added function silc_server_num_sockets_by_remote to the
4617           silcd/server_util.[ch].
4618
4619           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
4620
4621 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
4622
4623         * Added preliminary checking during config parsing for a valid
4624           public/private key and removed further checks in the code.
4625           Affected files are silcd/serverconfig.[ch], server.c.
4626
4627         * Moved functions silc_server_drop() and silc_server_daemonise()
4628           from server.c to silcd.c since they are stricly related to
4629           the application activity.
4630
4631         * Reverted a small part of the automatic ref/unref since
4632           it caused a double unref in some situations.  Affected
4633           files are silcd/silcd.[ch], server.c, serverconfig.c.
4634
4635         * Added some .cvsignore files in the lib directory.
4636
4637 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4638
4639         * Fixed silc_net_gethostbyaddr to correctly resolve by
4640           address.  Affected file lib/silcutil/silcnet.c.
4641
4642         * Fixed the notify relaying to client.  The HMAC to be used
4643           with relayed packets ws wrong and caused decryption failure
4644           at the client end.  Affected file is silcd/packet_receive.c.
4645
4646 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4647
4648         * Created new branch silc_protocol_1_0_branch.
4649
4650         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
4651
4652         * Changed the silc_server_config_* routines to be SilcServer
4653           independent.  They are now officially application specific code
4654           and not part of generic server implementation.  Affected files
4655           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
4656
4657 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4658
4659         * Added automatic referencing of config context in the
4660           silc_server_config_alloc, and automatic unreferencing in the
4661           silc_server_config_destroy.  Affected files are
4662           silcd/serverconfig.[ch], silcd/silcd.c.
4663
4664         * Fixed the silc_log_quick handling in the logging routines.
4665           It didn't log quickly when it was TRUE.  Affected file is
4666           lib/silcutil/silclog.c.  Also the flush delay was set even
4667           if it was 0 in config file.  Affected file is
4668           silcd/serverconfig.c.
4669
4670         * Added support for changing key pair of the server in rehash.
4671           Affected file silcd/server.c.
4672
4673 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4674
4675         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
4676           too early, before getting the channel entry.  Affected file
4677           is silcd/packet_receive.c.
4678
4679 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4680
4681         * Added functions silc_server_config_[ref/unref], these are used
4682           to prevent that the config object is destroyed.
4683
4684           No longer directly affect global variables silc_log_quick and
4685           silc_log_delay, they are first cached inside the config object
4686           and then applied with silc_server_config_setlogfiles().
4687
4688           silc_server_config_set_defaults() is now internal to
4689           serverconfig.c, there are no reasons to show this internal stuff
4690           to the server.
4691
4692           Affected files are silcd/serverconfig.[ch].
4693
4694         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
4695           fprintf's to stderr, since some code may be executed again after
4696           the server went into the background.  Affected files are
4697           silcd/server.[ch].
4698
4699         * Added rehash support. Added function silc_server_rehash() that
4700           will perform all the basic tasks of the rehashing procedure.
4701
4702         * Added command line option `-x, --hexdump'. This will enable the
4703           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
4704           The option `--hexdump' implies `--debug'.
4705
4706         * Fixed a bad bug in the logging APIs (silcutil library) where
4707           the application would crash after calling silc_log_reset_all().
4708
4709 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4710
4711         * Fixed the KICKED notify handling in client library to
4712           correctly remove the channel and all entries from the
4713           channel when I was kicked.  This bug crashed the client.
4714
4715           Fixed yet another but in KICKED notify handling to remove
4716           the kicked client correctly from the channel.
4717
4718           Affected file is lib/silcclient/client_notify.c.
4719
4720         * Fixed a minor bug in looking up correct client entry
4721           in KICKED notify in server.  Affected file is
4722           silcd/packet_receive.c.
4723
4724         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
4725           sources correctly to distribution.  Fixes --with-gmp option.
4726
4727         * Removed the manual rehashing from ID Cache, and changed it
4728           to use the SILC Hash Table's auto rehash feature.  Affected
4729           file is lib/silccore/silcidcache.c.
4730
4731 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4732
4733         * Fixed a bug in the silc_client_nickname_format function that
4734           handles the multiple same nickname formatting.  Two clients
4735           with same nickname caused problems after the first one left
4736           and rejoined.  It didn't format the nickname correctly.
4737           Affected file is lib/silcclient/idlist.c.
4738
4739 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4740
4741         * Don't change the topic if olod topic is same as new one.
4742           Affected file is silcd/packet_receive.c.
4743
4744 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4745
4746         * Added cross-reference support to the SILC Documentation
4747           generator.  All types across all HTML files are now cross-
4748           referenced.  Affected files util/robodoc/generator.c and
4749           scripts/silcdoc/silcdoc.
4750
4751         * Added file lib/silcutil/silctypes.h to include all the
4752           arithmetic type definitions and some macros.  Removed
4753           includes/bitmove.h and moved macros to silctypes.h.
4754
4755 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4756
4757         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
4758
4759 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4760
4761         * Added `type' argument to silc_id_payload_parse_id function which
4762           now returns the type of the ID to the sent pointer.  Affected
4763           file is lib/silccore/silcid.[ch].
4764
4765         * Added check for CMODE_CHANGE notify type that mode change is
4766           allowed by the sender.  Affected file silcd/packet_receive.c.
4767
4768         * Added check for CUMODE_CHANGE notify type that mode change is
4769           allowed by the sender.  Affected file silcd/packet_receive.c.
4770           Added the ID type as CUMODE_CHANGE notify type as argument
4771           to the `notify' client operation.  Affected files are
4772           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4773
4774         * Added function silc_client_add_server to the client library.
4775           Added support for resolving also channel and server info when
4776           received unknown entity in notify packet.  Affected files are
4777           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4778
4779         * Added function silc_command_get_status to return the command
4780           status from the command reply's argument payload.  Affected files
4781           are lib/silccore/silccommand.[ch].
4782
4783         * Added check for KICKED notify type that the kicking is
4784           allowed by the client.  Affected file silcd/packet_receive.c.
4785
4786         * Created function silc_get_input which can be used to get input
4787           (echo on or off) from user on command line.  Affected files are
4788           lib/silcutil/silcutil.[ch].
4789
4790 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4791
4792         * Optimized silc_server_packet_relay_to_channel function.
4793           Added new function silc_channel_message_payload_encrypt which
4794           can be called directly if channel message payload needs to
4795           be encrypted and is already encoded (no need to call _encode
4796           function).  Packet relaying is now done by router without any
4797           extra memory allocations.  Affected files are
4798           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4799           silcd/packet_send.c.
4800
4801         * Fixed the INVITE notify handling.  It took wrong arguments
4802           as invite list and invite delete.  Affected file is
4803           silcd/packet_receive.c.
4804
4805         * Added check for TOPIC_SET notify type that the topic change is
4806           allowed by the client.  Affected file silcd/packet_receive.c.
4807
4808         * Added check for INVITE notify type that inviting is allowed by
4809           the client.  Affected file silcd/packet_receive.c.
4810
4811         * Changed the silc_server_client_on_channel to return the
4812           SilcChannelClientEntry as well.  Moved the function
4813           silc_server_check_cmode_rights to server_util.[ch].
4814           Affected files are silcd/server_util.[ch], silcd/command.c.
4815
4816         * Added function silc_server_check_umode_rights to check whether
4817           changing client's user mode is allowed.  Added check for
4818           UMODE_CHANGE notify type that the umode change is allowed
4819           by the client.  Affected files are silcd/server_util.[ch],
4820           silcd/packet_receive.c and silcd/command.c.
4821
4822 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4823
4824         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4825           ID length.  It ignored that ID can be IPv6 based as well.
4826           Affected file lib/silccore/silcpacket.h.
4827
4828         * Fixed the silc_id_id2str and silc_id_str2id to take the
4829           IPv6 address offset's into consideration.  Affecte file is
4830           lib/silccore/silcid.c.
4831
4832 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4833
4834         * Fixed the internal Unix scheduler functions to check for
4835           NULL context they may receive.  The affected file is
4836           lib/silcutil/unix/silcunixschedule.c.
4837
4838 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4839
4840         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4841           can specify different directory with --home command line
4842           parameter. Affected files irssi/src/silc/core/client_ops.c,
4843           clientutil.c
4844
4845         * SILC-specific commands aren't now executed if the active server
4846           isn't of SILC-type, so there won't be problems with having
4847           IRC and SILC protocol support in same client. Affected files
4848           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4849           silc-commands.h
4850
4851 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4852
4853         * Improved the signal support in SILC Schedule.  Added new
4854           function silc_schedule_signal_call which is used by application
4855           to mark a signal to be called.  It is now safe to perform
4856           any kind of tasks in signal callbacks since it is guaranteed
4857           that the application specified signal callback is called
4858           after the signal is over.  Affected files are
4859           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4860
4861 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4862
4863         * Added `name' field to SilcChannelPrivateKey to represent
4864           application given name for the key.  Moved also the context from
4865           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4866           Added the `name' argument also to the function
4867           silc_client_add_channel_private_key.
4868
4869           Added function silc_client_current_channel_private_key to set the
4870           current channel private key in use.
4871
4872           Added "change" command to KEY command which can be used to change
4873           the current channel private key.  Bound the command also to
4874           alt+K (Alt+Shift+k).
4875
4876           Also affected files lib/silcclient/client_channel.c,
4877           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4878
4879 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4880
4881         * Added silc_rng_get_byte_fast function in to the
4882           lib/silccrypt/silcrng.[ch].
4883
4884         * Changed the interface of silc_packet_assemble and the
4885           silc_packet_send_prepare.  If silc_packet_assmble is now
4886           called the application does not call silc_packet_send_prepare
4887           because the library will call it automatically.  These
4888           interfaces now also return a reference to the outgoing buffer
4889           which includes the assembled packet, which the application can
4890           use to encrypt the packet.
4891
4892           Affected files are lib/silccore/silcpacket.[ch],
4893           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4894           silcd/packet_send.c, server_backup.c and packet_receive.c.
4895
4896         * Fixed a packet sending bug on very high load, where outgoing
4897           packet queue wasn't handled correctly and packets got corrupted.
4898           Affected files are lib/silcutil/*/silc*sockconn.c,
4899           lib/silcclient/client.c and silcd/server.c.
4900
4901 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4902
4903         * Added macro SILC_PACKET_DATALEN which can be used during
4904           packet assembling to check whether the data to be added to
4905           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4906           len is truncated until it fits it.
4907
4908           Added checks for maximum length of channel message payload and
4909           private message payload also.
4910
4911           Added checks for maximum packet length in server and in
4912           client library.
4913
4914           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4915           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4916           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4917           lib/silcclient/client_prvmsg.c.
4918
4919 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4920
4921         * Added silc_server_packet_queue_purge call to the
4922           silc_server_disconnect_remote to assure that all data in the
4923           queue before disconnecting is sent to the network.  Affected
4924           file silcd/server.c.
4925
4926 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4927
4928         * Added the deleting of server's own ID cache entry to the
4929           silc_server_free function.  Free also everything else that
4930           has been allocated in silc_server_init.  The affected file
4931           is silcd/server.c.
4932
4933 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4934
4935         * Added functions silc_parse_version_string, silc_version_to_num,
4936           and silc_ske_parse_version to parse SILC protocol style version
4937           strings.  Affected files lib/silcutil/silcutil.[ch] and
4938           lib/silcske/silcske.[ch].
4939
4940         * Added new configuration params: version_protocol, version_software
4941           and version_software_vendor to specify what version the remote
4942           host must at least be to be able to connect to server.  The vendor
4943           string can be regex matched too.  Added new function
4944           silc_server_connection_allowed to check maximum number of allowed
4945           connections, and allowed versions for incoming connections.
4946           Affected files are silcd/server.c, server_util.[ch] and
4947           serverconfig.[ch].
4948
4949 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4950
4951         * Added preliminary support for signals in scheduler.  The
4952           signals we care about are now blocked always when the scheduler
4953           is locked.  This way we can synchronise the use of signal with
4954           scheduler.  It is guaranteed that when signal occurs the scheduler
4955           is not locked, and thus new tasks can be safely added to the
4956           scheduler.
4957
4958           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4959           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4960           Added new platform specific routines
4961           silc_schedule_internal_signals_[un]block and
4962           silc_schedule_internal_signal_[un]register.
4963
4964           Added new functions to SILC Schedule API:
4965           silc_schedule_signal_[un]register.  Each signal that application
4966           is going to use should be registered to the scheduler.
4967
4968           Affected files are lib/silcutil/silcschedule.[ch],
4969           lib/silcutil/*/silc*schedule.c.
4970
4971 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4972
4973         * Check for unauthenticated client and server in the
4974           silc_server_new_client and silc_server_new_server functions.
4975           Affected file silcd/packet_receive.c.
4976
4977         * Added function silc_string_is_ascii to check whether given
4978           string is 7-bit ASCII string.  Affected files are
4979           lib/silcutil/silcutil.[ch].
4980
4981         * Added function silc_id_is_valid_server_id into the
4982           silcd/serverid.c and added checking for valid Server ID's in
4983           silc_server_new_server.  The Server ID must always be based
4984           on the server's public IP address.
4985
4986         * Added logging of DISCONNECT packet message in the server.
4987           Affected file silcd/server.c.
4988
4989 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4990
4991         * Changed all library interfaces that use Global RNG to also
4992           accept SilcRng as argument.  Affected files are
4993           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4994           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4995           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4996           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4997           lib/silccrypt/rsa.c.
4998
4999         * Added function silc_pkcs_generate_key to the
5000           lib/silccrypt/silcpkcs.[ch] for applications so that they
5001           don't need to do pkcs->pkcs->init calls anymore.
5002
5003         * Remove SilcSocketConnection from the SFTP API since it really
5004           wasn't needed there.  The application has the information
5005           saved in its contexts anyway and the SFTP layer doesn't need
5006           know about it.  Affected files lib/silcsft/silcsftp.h and
5007           lib/silcsftp/sftp_[server/client].c.
5008
5009         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
5010           The SilcSimContext is not SilcSim.
5011
5012         * Fixed possible buffer overflows in silc_id_render in the
5013           lib/silcutil/silcutil.c.
5014
5015         * On EPOC the global crypto module lists are not used at all
5016           in the crypto library.  Added support for using the constant
5017           algorithm list on EPOC.  Affected files are
5018           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
5019           silcpkcs.c.
5020
5021         * Fixed the handling of third parameter of KICKED notify, since
5022           it was mistakenly updated to SILC Protocol 1.0 even though it
5023           is to be included in 1.1.  Since it is not in 1.0 it is not
5024           mandatory, and this fix now handles it only if it is provided,
5025           and it is not error if it is not provided.  Affected file
5026           lib/silcclient/client_notify.c.
5027
5028 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5029
5030         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
5031           client.  Affected file irssi/src/silc/core/client_ops.c.
5032
5033         * Merged with Irssi 0.8.4 from irssi.org CVS.
5034
5035 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5036
5037         * Check for valid socket connection in client entries before
5038           sending any messages.  Fixes a crash, but doesn't fix some
5039           other underlaying bug that is lurking there.  Affected
5040           file silcd/packet_send.c.
5041
5042 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
5043
5044         * $usermode, $cumode and $cumode_space expandos shouldn't do
5045           anything with non-SILC server records. Affected file
5046           irssi/src/silc/core/silc-expandos.c
5047
5048 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5049
5050         * Fixed the silc_net_check_[host/local]_by_sock to support
5051           IPv6 bound sockets as well.  Now they can return IPv6 addresses
5052           as well.  Affected file lib/silcutil/silcnet.c.
5053
5054         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
5055           Affected lib/silcutil/unix/silcunixnet.c.
5056
5057         * Fixed ID rendering (at least on some platforms, not NetBSD)
5058           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
5059
5060 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5061
5062         * Added silc_hash_public_key and silc_hash_public_key_compare
5063           functions to be used with SilcHashTable.  They can be used to
5064           hash public keys and compare public keys in hash table.  Affected
5065           file lib/silcutil/silcutil.[ch].
5066
5067         * Added support for specifying multiple public keys for Client
5068           connection section in server configuration file.  This makes it
5069           possible to accept multiple public keys from same host, or to
5070           make a section that accepts any incoming host, and have the
5071           accepted public keys listed in the section.
5072
5073           Added functions silc_sever_[find/get]_public_key,  added the
5074           support for this actually to all connection sections but only
5075           the Client section is currently allowed to specify multiple
5076           public keys.
5077
5078           Affected files are silcd/server.c, server_internal.h,
5079           command.c, protocol.c, server_util.[ch], packet_receive.c.
5080
5081 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5082
5083         * Merged Irssi 0.8.2 from irssi.org CVS.
5084
5085 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5086
5087         * If silc_debug is TRUE, also output standard logging messages
5088           to stderr with the debug output.
5089
5090           Made silc_log_reset_all() flushing all channels before returning.
5091           Also fixed some documentation typos.
5092
5093           Affected files are lib/silcutil/silclog.[ch].
5094
5095 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5096
5097         * Fixed the server to check correctly the amount of connections
5098           from single host, by checking also the type of the connection.
5099           Fixed also the comparison of number of connections and number
5100           of allowed connections.  Affected files are silcd/server.c,
5101           server_util.[ch].
5102
5103 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5104
5105         * Fixed the USERS command reply to save the user's mode on the
5106           channel as well.  Fixed JOIN command reply to check whether a
5107           client is on channel already and not join it twice.  Affected
5108           file lib/silcclient/command_reply.c.
5109
5110         * Added new file silc-expandos.c into irssi/silc/core/ to return
5111           various stuff for various signal for the statusbar etc. updating.
5112           Now Irssi SILC client prints channel user modes etc. on the
5113           statusbar.
5114
5115         * The user mode (like server/router operator changes) is now shown
5116           on the Irssi SILC client's statusbar.  The affected files are
5117           irssi/src/silc/core/client_ops.c, silc-expandos.c.
5118
5119 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5120
5121         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
5122           to SILC_SCHEDULE_[UN]LOCK macros.
5123
5124         * Added more error printing to logs in server code.  Affected
5125           files silcd/server.c and silcd/protocol.c.
5126
5127         * Fixed -S option parsing in Irssi SILC Client.  Affected file
5128           irssi/src/silc/core/silc-core.c.
5129
5130         * Added silc_buffer_alloc_size function.  Affected file is
5131           lib/silcutil/silcbuffer.h.
5132
5133 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5134
5135         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
5136           constants.  Affected files in
5137           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
5138           silccipher.[ch].
5139
5140         * Changed the internal SFTP Memory FS table to const.  Affected
5141           file lib/silcsftp/sftp_fs_memory.c.
5142
5143 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5144
5145         * Fixed the buffer formatting and unformatting routines to
5146           check the size of 64 bits types with sizeof().  Affected
5147           file is lib/silcutil/silcbuffmt.c.
5148
5149 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5150
5151         * Removed 0.6.x backwards support.
5152
5153 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5154
5155         * Changed all integer type names:
5156           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
5157           to avoid collisions with other libraries using same type names
5158           as we did.
5159
5160 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5161
5162         * Added `prefer_ipv6' argument to the functions
5163           silc_net_gethostbyname[_async].  If it is TRUE it will return
5164           IPv6 address over IPv4.  If FALSE IPv4 address is returned
5165           even if IPv6 address was found.  Affected files
5166           lib/silcutil/silcnet.[ch].
5167
5168         * Added support silc_net_create_connection[_async] to fallback
5169           to IPv4 address if IPv6 address could not be used (like if
5170           it doesn't work on a specific system).  Affected file in
5171           lib/silcutil/unix/silcunixnet.c.
5172
5173 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5174
5175         * Added silc_schedule_reinit function to do the enlarging
5176           of the max tasks handling capabilities of the scheduler.
5177           Affected files lib/silcutil/silcschedule.[ch].
5178
5179 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5180
5181         * Added automatic extern "C" { ... } for C++ compilers so the
5182           application does not need to define them.  Affected file
5183           includes/silcincludes.h.
5184
5185         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
5186           old name went against naming convention.  Applications now
5187           include "silcclient.h" instead of "clientlibincludes.h".
5188           Removed includes/clientlibincludes.h, it is redundant now.
5189
5190         * Renamed includes/version.h to silcversion.h.
5191
5192         * Added really preliminary support for OS/2 into the util
5193           library.  Only thread & mutex API is implemented, others
5194           are still to be implemented.  Created the lib/silcutil/os2/
5195           directory.  Created also file includes/silcos2.h.
5196
5197 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5198
5199         * Added preliminary BeOS support into the util library.
5200           Created lib/silcutil/beos/, and implemented all the needed
5201           functions to support SILC on BeOS.  Created also file
5202           includes/silcbeos.h.
5203
5204 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
5205
5206         * Added proper initializations to silc's irssi code, so it's
5207           now possible to load it as module.  Affected files
5208           irssi/src/silc/core/silc-core.c,
5209           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
5210
5211 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5212
5213         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
5214           the SILC tree.
5215
5216         * Fixed the silcdoc document generator to correct generate
5217           docs from all kinds of filenames.  Affected files are
5218           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
5219
5220         * ROBOdoc documented lib/silcutil/silcmemory.h.
5221           Added also new function silc_memdup.
5222
5223         * Removed lib/silcutil/silcbufutil.h and moved those routines
5224           to the lib/silcutil/silcbuffer.h.
5225
5226 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5227
5228         * Added `user_count' to the SilcChannelEntry which now tells the
5229           number of users on the channel.  The user count is now saved
5230           in normal server of global channels as well.  Affected files
5231           silcd/server.c, idlist.h, packet_receive.c and command.c.
5232
5233         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
5234           include file utility functions.
5235
5236         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
5237           instead of calling directly OS routines.
5238
5239         * Fixed NICK change printing in Irssi SILC Client. Fixed
5240           KICKED notify printing in Irssi SILC Client.  Affected file
5241           irssi/src/silc/core/client_ops.c.
5242
5243         * Fixed a NICK change bug in client library, to not recreate the
5244           client_entry->channels hash table everytime nick is changed.
5245           Affected file lib/silcclient/client.c.
5246
5247 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5248
5249         * ROBOdoc documented the lib/silcske/silcske.h, and improved
5250           the SKE interface a bit.
5251
5252         * Fixed padding problem in PKCS#1. The padding was not actually
5253           random since the random number generator was used incorrectly.
5254           This security bug affects only when encrypting with PKCS#1, and
5255           it is not currently used at all in SILC. SILC only use signing
5256           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
5257
5258 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5259
5260         * Rewrote the notify handling in Irssi SILC client to not call
5261           the events as signals.  Fixes problems with Perl support.
5262           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5263
5264         * Send the auto-nicking NICK command in client library with
5265           little timeout after connecting.  The affected file is
5266           lib/silcclient/client.c.
5267
5268         * Added following new config file settings:
5269           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5270           key_exchange_timeout, conn_auth_timeout, connections_max,
5271           links_max.
5272
5273           Implemented all the new config settings handling in the server.
5274
5275           Optimized the use of SKE Mutual flag usage.  Use it only
5276           if connection authentication protocol is not based in public
5277           key authentication.
5278
5279           Renamed all SilcServerConfigSection* to SilcServerConfig*
5280           to have a bit shorter names.
5281
5282           Affected files silcd/serverconfig.[ch], server.[ch], and
5283           protocol.[ch].
5284
5285 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5286
5287         * Cleaned up the listening sockets code, preparing for the rehash
5288           support.  Affected file is silcd/server.c.
5289
5290         * Fixed some output messages.  Affected files are silcd/silcd.c,
5291           and silcd/server.c.
5292
5293 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5294
5295         * Create lib/doc/silcrng_intro.html document as introduction
5296           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5297
5298 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5299
5300         * Fixes to the silcd config template.  Affected file is
5301           doc/example_silcd.conf.in.
5302
5303         * Removed type casts from silc_calloc(), conforming to the
5304           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5305
5306         * Removed param_name member from client, server, and router
5307           section structs, now identifying the param directly.
5308
5309           Added CONFIG_FREE_AUTH macro in config file parsing.
5310
5311           Affected files are silcd/serverconfig.[ch].
5312
5313 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5314
5315         * Fixed command line parameter handling. All SILC initialization
5316           is now done in silc_core_init() which also fixes autoconnecting
5317           to servers.
5318
5319           Affected files irssi/src/silc/core/silc-core.c,
5320           irssi/src/fe-text/silc.c.
5321
5322 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5323
5324         * Added new configuration options and blocks:
5325           keepalive_secs, reconnect_count, reconnect_interval,
5326           reconnect_interval_max, reconnect_keep_trying and
5327           require_reverser_lookup.  Added ConnectionParam block, and
5328           implemented the connection parameters when connecting as
5329           initiator and when accepting connections as responder.
5330
5331           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5332           whether given configuration value has been given already.
5333
5334           Affected files silcd/serverconfig.[c], server.[c].
5335
5336         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5337           algorithm parts and created new file silcalgs.conf, that
5338           is now included from the example_silcd.conf.in.
5339
5340         * Optimized the silc_server_connect_to_router_second to take
5341           the connection configuration object from the SilcServerConnection
5342           object instead of finding it during the connecting phase.
5343           Added the configuration object to SilcServerConnection struct.
5344           Affected files silcd/server_internal.h, server.c.
5345
5346 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5347
5348         * Add the client on channel after it was resolved at the
5349           channel message receiving, and it was not already on the
5350           channel.  Affected file lib/silcclient/client_channel.c.
5351
5352 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5353
5354         * Fixed the public key authentication to allocate always the
5355           destination signature buffer instead of using static buffer.
5356           Affected file silcd/protocol.c.
5357
5358 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5359
5360         * Unified the serverconfig.[ch]'s helper function interface.
5361           Affected file silcd/serverconfig.[ch].
5362
5363         * Removed doc/example_silc.conf.in since it is redundant.
5364           The make install will now install irssi/silc.conf file.
5365
5366         * Added new Passphrase and Publickey authentication methods to
5367           config file, allowing both public key and passphrase based
5368           authentication to be set at the same time.
5369
5370           Added `prefer_passphrase_auth' setting in config file which
5371           can be used to set to prefer passwd auth if both passwd and
5372           public key is set.  If not set, public key is preferred.
5373           This has effect only when being initiator (responder will try
5374           both anyway).
5375
5376           Added support for authentication with passphrase and public key
5377           at the same time.  The passphrase is tried first always since
5378           it is faster to check.
5379
5380           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5381
5382 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5383
5384         * Merged the new SILC Config library, with the server parsing
5385           support.  Read the header file silcconfig.h or the toolkit
5386           documentation for the news.  Affected files are
5387           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5388           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5389           silcd/protocol.c silcd/server.c silcd/server_backup.c
5390           silcd/serverconfig.[ch] silcd/silcd.c.
5391
5392         * Fixed some silclog documentation.  Affected file is
5393           lib/silcutil/silclog.h.
5394
5395 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5396
5397         * The silc_cipher_register, silc_hash_register and
5398           silc_hmac_register now checks if the object to be registered
5399           is registered already.  Affected files are
5400           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5401
5402 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5403
5404         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5405
5406 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5407
5408         * Allow zero length channel messages inside the Channel Message
5409           Payload.  Affected file lib/silccore/silcchannel.c.
5410
5411         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5412           as header filenames.
5413
5414         * Removed lib/silcclient/README and created HTML file
5415           lib/silcclient/silcclient_using.html, which is now included
5416           as part of Toolkit documentation.
5417
5418 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5419
5420         * Fixed CUMODE_CHANGE notify handling to change the mode of
5421           correct client.  Affected file lib/silcclient/client_notify.c.
5422
5423         * Make silc_rng_alloc fail if it cannot allocate the sha1
5424           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5425
5426 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5427
5428         * Fixed the file transfer's key agreement payload to include
5429           zero port also if the hostname is NULL because it could not
5430           be bound.
5431
5432           Call file transfer monitor callback now also if error occurs
5433           during key agreement protocol.
5434
5435           Changed the silc_client_file_send interface to return the
5436           SilcClientFileError instead of session id.  The session ID
5437           is returned into pointer provided as argument.
5438
5439           Check that the file exists locally before sending the
5440           file transfer request at all.
5441
5442           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5443
5444         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5445           error than can occur while key agreement protocol.  Affected
5446           file lib/silcclient/silcapi.h.
5447
5448         * Fixed the event_mode CMODE handler to not crash when mode
5449           is changed and +k mode is set in the channel.  Affected file
5450           irssi/src/silc/core/silc-channels.c.
5451
5452         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5453           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5454           file lib/silcutil/silclog.c.
5455
5456         * Fixed the channel message payload decryption in the function
5457           silc_channel_message_payload_decrypt to not modify the original
5458           buffer before it is verified that the message decrypted
5459           correctly.  Otherwise, next time it is called with correct
5460           channel key it won't encrypt since the payload is corrupted.
5461           Affected file lib/silccore/silcchannel.c.
5462
5463 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5464
5465         * Do not constantly resize the window.  A fix patch by cras.
5466           Affected file irssi/src/fe-text/screen.c.
5467
5468 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5469
5470         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5471           Affected file lib/silcutil/silcnet.c.
5472
5473 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5474
5475         * Fixed a bug in hash table internal routine for traversing
5476           the table with foreach callback.  The current entry may
5477           become invalid in the callback but it was referenced after
5478           the callback returned.
5479
5480           Do not allow auto rehashing of hash table during the
5481           silc_hash_table_foreach operation, for same reasons as it is
5482           not allowed for SilcHashTableList.  Affected files are
5483           lib/silcutil/silchashtable.[ch].
5484
5485 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5486
5487         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5488           Win32 DLL.  extern's in header files are now declared with
5489           DLLAPI.
5490
5491 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5492
5493         * Fixed private message handling.  It used some old code that
5494           caused the client to crash.  Affecte file is
5495           lib/silcclient/client_prvmsg.c.
5496
5497 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5498
5499         * Added function silc_client_add_channel,
5500           silc_client_replace_channel_id, and removed functions
5501           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5502           from client library.
5503
5504         * Added cross reference of the joined channels to the
5505           SilcClientEntry, and changed the SilcChannelEntry's
5506           users list to SilcHashTable.  The affected files are
5507           lib/silcclient/idlist.[ch].
5508
5509         * Fixed a bug in hash table tarversing.  While the hash table
5510           is traversed with SilcHashTableList the table must not be
5511           rehashed.  It is now guaranteed that auto rehashable tables
5512           are not rehashed while tarversing the list.  Also defined that
5513           silc_hash_table_rehash must not be called while tarversing
5514           the table.  Added function silc_hash_table_list_reset that must
5515           be called after the tarversing is over.  The affected files are
5516           lib/silcutil/silchashtable.[ch].
5517
5518         * Changed all hash table traversing to call the new
5519           silc_hash_table_list_reset in server and in client library.
5520
5521         * Added function silc_client_on_channel to return the
5522           SilcChannelUser entry if the specified client entry is joined
5523           on the specified channel.  This is exported to application as
5524           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5525
5526 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5527
5528         * Fixed founder regaining problem with JOIN command on normal
5529           server.  The notify for mode change must be sent always and
5530           not only if !cmd->pending.  Affected file silcd/command.c.
5531
5532         * Fixed the WHOWAS command's reply sending to support the
5533           lists correctly.  Affected file silcd/command.c.
5534
5535 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5536
5537         * When sending JOIN command to router for processing the
5538           sender's old command identifier was not saved back to the
5539           sender's command context, fixed now.  The affected file is
5540           silcd/command.c.
5541
5542         * Create the key in JOIN command of the router did not return
5543           the channel key, added check for this.  Affected file is
5544           silcd/command.c.
5545
5546         * Fixed a channel ID update bug in JOIN command reply.  Do
5547           not directly upgrade the ID but call the function
5548           silc_idlist_replace_channel_id if the ID was changed.
5549           Affected file silcd/command_reply.c.
5550
5551         * Fixed memory leaks from command calling if it would fail.
5552           Affected file silcd/command.c.
5553
5554 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5555
5556         * Applied patches from cras:
5557
5558           Memory leak fixes around libaries, irssi window resize fix,
5559           new silclist.h and silcdlist.h, all extern inline changed to
5560           static inline.
5561
5562         * Removed dotconf from lib/dotconf, not needed anymore.
5563
5564         * Removed TRQ from lib/trq, not needed anymore.
5565
5566         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
5567           with server connections.  Later this will be configurable
5568           in config file after new config file is done.  Affected file
5569           silcd/server.c.
5570
5571 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5572
5573         * Fixed a crash in server related to channel announcements.
5574           Affected file silcd/server.c.
5575
5576 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5577
5578         * Fixed memory leaks in silc_server_create_new_channel*
5579           functions.  Affected file silcd/server.c.
5580
5581         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
5582           which ID was changed.  This way the router will send the
5583           user list for the channel again, and server won't be in
5584           desync in some rare circumstances.  Affected file is
5585           silcd/packet_receive.c.
5586
5587 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5588
5589         * Check for NULL socket pointer in the function
5590           silc_server_packet_send_to_channel_real.  Affected file
5591           silcd/packet_send.c.
5592
5593         * Fixed the BAN notify handling to correctly remove ban
5594           list.  Affected file silcd/packet_receive.c.
5595
5596 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5597
5598         * Fixed some header addition to Toolkit distribution in
5599           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
5600
5601         * Added lib/silcclient/client_ops_example.h as an template
5602           file for application programmers to quickly start using
5603           the SilcClientOperation functions in their application.
5604           Updated the lib/silcclient/README as well to tell about this
5605           nice file made available.
5606
5607 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5608
5609         * Call silc_server_remove_from_channels when removing client
5610           entry when NO_SUCH_CLIENT_ID was received.  Affected file
5611           is silcd/command_reply.c.
5612
5613 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5614
5615         * Added server & router operator statistics updating.  Affected
5616           file silcd/packet_receive.c and silcd/command.c.
5617
5618         * Fixed the SERVER_SIGNOFF notify handling on normal server
5619           not to save the history information for clients.  Same was
5620           fixed earlier in remove_clients_by_server function, but not
5621           here.  Affected file silcd/packet_receive.c.
5622
5623         * Raised the default connection-retry count from 4 to 7 in
5624           server.  Affected file silcd/server.h.
5625
5626         * Cancel any possible reconnect timeouts when we start the
5627           key exchange.  Affected file silcd/server.c.
5628
5629         * Do not reconnect on connection failure when SCONNECT was
5630           given.  Affected files silcd/server.[ch].
5631
5632 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5633
5634         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
5635
5636         * Fixed the NICK command to always give the unformatted
5637           nickname to the one giving the NICK command.  If unformatted
5638           nickname is cached already it will be formatted and the
5639           local entry will always get the unformatted nickname.
5640           Affected file lib/silcclient/idlist.c.
5641
5642         * Fixed some double frees from client library commands.
5643           Affected file is lib/silcclient/command.c.
5644
5645         * Fixed CUMODE command in server to assure that no one can
5646           change founder's mode than the founder itself, there was a
5647           little bug.  Affected file silcd/command.c.
5648
5649 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5650
5651         * Removed the SilcClientCommandDestructor from the client
5652           libary, it is not needed anymore.  Affected files are
5653           lib/silcclient/silcapi.h, command[_reply].[ch],
5654           client_notify, idlist.c.
5655
5656         * Fixed GETKEY command to first resolve client, and then
5657           resolve the server only if the client was not found, instead
5658           of resolving both at the same time.  Affected file is
5659           lib/silcclient/command.c.
5660
5661         * Added silc_client_start_key_exchange_cb and lookup the
5662           remote hostname and IP address before starting the key
5663           exchange with server.  The affected file is
5664           lib/silcclient/client.c.
5665
5666         * The server's public key is now saved using the IP address
5667           of the server and not the servername for the filename.
5668           The hostname public key filename is checked as an fall back
5669           method if the IP address based filename is not found.
5670
5671           Fixed the GETKEY command to save the fetched server key
5672           in correct filename.
5673
5674           Print the remote server's hostname now when new key is
5675           received during connection process.  Affected file is
5676           irssi/src/silc/core/client_ops.c.
5677
5678         * Return always our own public key to the client if it asks
5679           for it with GETKEY command.  Affected file silcd/command.c.
5680
5681         * Removed the use_auto_addr variable from default config
5682           file since it was in wrong section.  Affected file is
5683           irssi/src/config.
5684
5685         * Fixed TOPIC_CHANGE notification to not route it when it
5686           was sent using silc_server_send_notify_to_channel function.
5687           Affected file silcd/command.c.
5688
5689         * Fixed silc_server_send_notify_kicked to send the kicker's
5690           Client ID also, it was missing.  Affected files are
5691           silcd/command.c, silcd/packet_send.[ch].
5692
5693 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5694
5695         * Do not save client history information in SERVER_SIGNOFF.
5696           Fixes the bug in normal server that it does not detect
5697           the client becoming valid after the server becomes back
5698           online.  Affected file silcd/server_util.c.
5699
5700         * Added `sock_error' field  into the SilcSocketConnection
5701           context.  When error occurs during socket operation (read
5702           or write) the error is saved.  Added also new function
5703           silc_socket_get_error to return human readable socket error
5704           message.  Affected files are lib/silcutil/silcsockconn.[ch],
5705           lib/silcutil/unix/silcunixsockconn.c, and
5706           lib/silcutil/win32/silcwin32sockconn.c.
5707
5708         * The server now prints the socket error message in the
5709           signoff for client.  Affected file silcd/server.c.
5710
5711         * Fixed the `created' channel information sending from router
5712           to server in JOIN command.  Checks now whether the channel
5713           really was created or not and set it according that.
5714
5715           Fixed the JOIN command to use the client entry's current
5716           ID during the joining procedure instead of the one it sent
5717           in the command (it is checked though), since it can change
5718           between the packet processing and command processing, and
5719           would just case unnecessary pain in the client end.  Affected
5720           file silcd/command.c.
5721
5722         * Fixed a channel key payload sending to use correct channel
5723           ID when the server was forced to change the channel's ID by
5724           router.  Router sent the key payload with the old Channel ID.
5725           Affected file silcd/packet_receive.c.
5726
5727 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5728
5729         * Call silc_server_save_channel_key only if the key payload
5730           was provided in the JOIN command's command reply.  Affected
5731           file silcd/command_reply.c.
5732
5733 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5734
5735         * Fixed silc_mp_sizeinbase to return the value correctly with
5736           MPI.  Affected file lib/silcmath/mp_mpi.c.
5737
5738         * Fixed the stop_server signal to correctly stop the scheduler
5739           and gracefully stop the server when SIGTERM or SIGINT signals
5740           are received.  Affected file silcd/silcd.c.
5741
5742 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5743
5744         * Simple handling of TERM and HUP signals. Also added some log
5745           flushing call around.  Affected file is
5746           silcd/silcd.c.
5747
5748         * Fixed small bugs in silclog.c. Now buffering output will take
5749           effect after 10 seconds since startup: This will ensure that
5750           no important startup messages are lost. Also output redirection
5751           will preserve original format ([Date] [Type] message).
5752           Affected file is lib/silcutil/silclog.c.
5753
5754         * Added two options to the config file, in the logging section:
5755           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
5756           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
5757
5758 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5759
5760         * Do not print the warning about log files not being initialized
5761           more than once to avoid excess logging.  Affected file is
5762           lib/silcutil/silclog.c.
5763
5764         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5765           the SIM copying in make install in Makefile.am.pre.
5766
5767 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5768
5769         * Rewritten silclog APIs. Globally interesting changes follows:
5770           silc_log_set_files() changed to silc_log_set_file().
5771           silc_log_set_callbacks() changed to silc_log_set_callback().
5772           ROBOdoc documented silclog header file.
5773           SilcLogCb now returns bool to wether inihibit the default
5774           handler or not (to keep the old behaviour return always TRUE).
5775           The new APIs should also fix the problem of the
5776           silcd_error.log file that was written in the current directory.
5777
5778           New features:
5779           Log files streams will remain opened after silc_log_set_file()
5780           call, means less CPU usage notably on high traffic servers.
5781           File streams are now full buffered, and flushed to the disk
5782           every 5 minutes, lesses HD activity and CPU usage.
5783           Messages can be redirected, allowing admins to configure
5784           one single logfile for all server messages.
5785           the silc_log_quick global variable to activate fast-logging.
5786           Affected files lib/silcutil/silclog.[ch]
5787
5788         * Changed some code to conform new silclog APIs. Affected
5789           files are doc/example_silcd.conf.in, silcd/server.c
5790           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5791           silcd/silcd.c.
5792
5793         * Fixed a memory leak that could occur in some situations.
5794           Affected file silcd/serverconfig.c.
5795
5796 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5797
5798         * Added the silc_client_del_client to remove the client from
5799           all channels as well.  Affected file lib/silcclient/idlist.c.
5800
5801         * Fixed the client library to correctly remove the client
5802           from all channels when the client entry is being destroyed.
5803           Affected file lib/silcclient/client_notify.c, command.c.
5804
5805         * Added auto-nicking support to the client library.  If the
5806           applicatio now sets client->nickname it will be sent to the
5807           server after connecting by the library.  This way for example
5808           SILCNICK (or IRCNICK) environment variables will have effect
5809           and always change the nickname automatically to whatever
5810           it is wanted.  Affected file lib/silcclient/client.[ch].
5811
5812         * Renamed silc_server_command_bad_chars to the
5813           silc_server_name_bad_chars and moved it to the
5814           silcd/server_util.[ch].  Added also new function
5815           silc_server_name_modify_bad to return nickname that
5816           includes bad characters as new nickname without those
5817           bad characters.  This check and modify is now used in
5818           silc_server_new_client when the username is initially set
5819           as nickname, so it must be checked to be valid nickname.
5820           Affected file silcd/packet_receive.c.
5821
5822         * The nickname length is now taken from the packet for real
5823           and not trusted to strlen() since it clearly can return
5824           wrong length for nickname including bad characters.  This
5825           also applies to channel names.  Affected file silcd/command.c.
5826
5827         * Removed the lib/silcsilm/modules directory.  Modules are now
5828           compiled into the lib/silcsim.  Fixed the copying of the
5829           modules to follow symbolic links in Makefile.am.pre.
5830
5831 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5832
5833         * Fixed silc_string_regexify list creation.  Fixes bugs with
5834           BAN and INVITE commands in server.  The affected file is
5835           lib/silcutil/unix/silcunixutil.c.
5836
5837 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5838
5839         * Removed the command destructor entirely from the server's
5840           command and command reply routines.  It is not needed, and
5841           its usage was buggy and caused crashes.  Affected files are
5842           silcd/command[_reply].[ch].
5843
5844 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5845
5846         * Cancel protocol and NULL sock->protocol if timeout
5847           occurred during protocol.  Affected file silcd/server.c.
5848
5849         * Cancel protocol timeouts always before calling the final
5850           callback, to assure that after final callback is called
5851           no other state will be called for the protocol anymore.
5852           Affected file silcd/protocol.c.
5853
5854         * Print error log if incoming connection configuration could
5855           not be found.  Affected file silcd/server.c.
5856
5857         * Fixed JOIN command to correctly save the founder mode
5858           to the client on normal SILC server, when the channel
5859           was created by the router.  Affected file silcd/command.c.
5860
5861         * Fixed LIST command (hopefully) to send correct reply
5862           packets.  Affected file silcd/command.c.
5863
5864 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5865
5866         * The silc_packet_receive_process now returns FALSE if the
5867           read data was invalid packet, and TRUE if it was ok.
5868
5869           The server now checks that if unauthenticated connection
5870           sends data and its processing fails the server will close
5871           the connection since it could be a malicious flooder.
5872
5873           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5874
5875 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5876
5877         * Make sure the warning about error opening a log file is
5878           printed only once and not everytime it fails (produces
5879           too much useless log).  Affected file lib/silcutil/silclog.c.
5880
5881 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5882
5883         * Made the silc_server_daemonise() function more readable.
5884           Affected file silcd/server.c.
5885
5886         * Pid file is now optional, the user may comment it out from
5887           the config file. Removed define SILC_SERVER_PID_FILE, we
5888           don't need a default any longer.  Affected file
5889           configure.in.pre, lib/Makefile.am.pre.
5890
5891         * Make some use of the pid file. The server now dies at startup
5892           if it detects a valid pid file on his path. The server would
5893           die anyway in this circumstance, because of the bind() failure.
5894           Affected file silcd/silcd.c.
5895
5896         * No longer compiling lib/dotconf.
5897
5898 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5899
5900         * Fixed JOIN command parsing not to crash.  Affected file
5901           lib/silcclient/command.c.
5902
5903         * Fied the NICK_CHANGE notify to add the new client entry
5904           even it is resolved.  This removes an <[unknown]> nick
5905           thingy bug in the client.  Affected file is
5906           lib/silcclient/client_notify.c.
5907
5908         * Do not try to allocate 0 bytes (efence does not like it)
5909           in lib/silccore/silccomand.c when encoding payload.
5910
5911         * Do not take IRCNICK as nickname in Irssi SILC client since
5912           it is not possible to set nickname before hand connecting
5913           the server (TODO has an entry about adding auto-nicking
5914           support).
5915
5916         * Changed the silc_server_command_pending to check whether
5917           there already exists an pending entry with the specified
5918           command, command identifier and pending callback.  This is
5919           to fix IDENTIFY and WHOIS related crashes that may register
5920           multiple pending commands with same identifier.  Affected
5921           file silcd/command.c.
5922
5923         * Fixed the server to reconnect to the router even if it
5924           was already reconnecting and EOF was received.  This to
5925           fix a possibility that the server wouldn't ever try to
5926           auto-reconnect to the router.  Affected file silcd/server.c.
5927
5928 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5929
5930         * Fixed the server's password authentication to use the
5931           length of the locally saved password, and not the one
5932           sent in the packet.  Affected file silcd/protocol.c.
5933
5934         * Fixed same password authentication problem in the
5935           Authentication Payload handling routines in
5936           lib/silccore/silcauth.c.
5937
5938         * Yet another password authentication problem fixed with
5939           channel password handling in silcd/command.c.
5940
5941 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5942
5943         * If first character of string in silc_parse_userfqdn is '@'
5944           then do not parse it.  Affected file is
5945           lib/silcutil/silcutil.c.
5946
5947 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5948
5949         * Fixed minor bug in IDENTIFY command reply sending, which
5950           caused various weird problems during JOIN when it was
5951           resolving names for users.  Affected file silcd/command.c.
5952
5953 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5954
5955         * Fixed the IDENTIFY command reply sending to chech better valid
5956           clients.  It was possible to send incomplete list of replies.
5957           Affected file silcd/command.c.
5958
5959 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5960
5961         * Added silc_client_command[s]_[un]register functions now to
5962           dynamically register the commands in client library.  Removed
5963           the static table of commands.  This allows the client library
5964           to call commands without causing the application to know about
5965           what commands library has called.
5966
5967           Removed the INFO command reply kludge to detect when the command
5968           was called by library.  Now library use its own command reply
5969           function for INFO command.
5970
5971           Added function silc_client_command_call to call a command.
5972           Application can use it to call command, not access the structure
5973           directly.
5974
5975           Now all commands that are sent by the client library (not
5976           explicitly sent by application) use own command reply functions.
5977
5978           Affected files around lib/silcclient/ and in
5979           irssi/src/silc/core/.
5980
5981         * Fixed the WHOIS command reply sending to chech better valid
5982           clients.  It was possible to send incomplete list of replies.
5983
5984           Fixed the WHOIS and IDENTIFY to send the request to router
5985           if normal server did not do it and did not find any results.
5986
5987           Affected file silcd/command.c.
5988
5989 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5990
5991         * Moved the internal data from SilcClient context into its
5992           own file, not accesible to application.  Affected files
5993           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5994           and other files in client library.
5995
5996 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5997
5998         * Added doc/examples installation target in Makefile.am.pre.
5999           A patch by salo.
6000
6001 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6002
6003         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
6004           commands the found client entry will be removed from the
6005           cache, after notifying application about the error.  Affected
6006           file lib/silcclient/command_reply.c.
6007
6008         * Changed the /MSG to check for exact nickname user gave, and
6009           not let `nick' match `nick@host' if it is only one found.  Now,
6010           user must type the exact nickname (like nick@host2) even if
6011           there are no more than one same nicks found.  This is to avoid
6012           a possibility of sending nickname to wrong nickname since
6013           `nick' could match `nick@host'.  Affected file is
6014           irssi/src/core/silc-servers.c.
6015
6016 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6017
6018         * Do not print "you are now server operator" or similar when
6019           giving /away command.  Affected files are
6020           irssi/src/silc/core/client_ops.c, silc-servers.h.
6021
6022         * Made the silc_server_command_pending_error_check to send
6023           the same command reply payload it received back to the
6024           original sender of the command.  This way all arguments
6025           that was received by the server will be received by the
6026           client too.  Affected file silcd/command.c.
6027
6028         * Added the silc_idcache_add to return the created cache entry
6029           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
6030
6031         * Add global clients to expire if they are not on any channel.
6032           This is because normal server will never know if they signoff
6033           if they are not on any channel.  The cache expiry will take
6034           case of these entries.  This is done by normal servers only.
6035           The affected files are silcd/command_reply.c,
6036           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
6037
6038         * If server receives invalid ID notification for WHOIS or
6039           IDENTIFY and the ID exists in the lists, it is removed.
6040           Affected file silcd/command_reply.c.
6041
6042         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
6043           in client then client entry that it matches is searched and
6044           the nickname is printed on the screen for user.  Affected
6045           file irssi/src/silc/core/client_ops.c.
6046
6047 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6048
6049         * Use cache entry expire time in the LIST command reply to
6050           purge old entries from the cache after the LIST command
6051           reply has been received.  This way we don't have non-existent
6052           entries in the cache for too long.  Affected file is
6053           silcd/command_reply.c.
6054
6055 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6056
6057         * If we are normal server, and we've not resolved client info
6058           in WHOIS or IDENTIFY from router, and it is global client,
6059           we'll check whether it is on some channel.  If it is not
6060           then we cannot be sure about its validity and will resolve it
6061           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
6062           file silcd/command.c.
6063
6064         * Search channel by name (if possible) rather than by ID
6065           in IDENTIFY command's command reply.  Affected file is
6066           silcd/command_reply.c.
6067
6068 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6069
6070         * Distribute to the channel passphrase in CMODE_CHANGE notify.
6071           Updated specs and implemented it.  Affected file silcd/command.c,
6072           silcd/packet_send.c and silcd/packet_receive.c.
6073
6074         * Implemented the <founder auth> payload handling in the JOIN
6075           command.  If provided all conditions for channel joining
6076           except requirement to provide correct passphrase can be
6077           overrided by the channel founder.  Updated the protocol specs.
6078           Affected file silcd/command.c.
6079
6080           Added support for founder auth in JOIN command in client
6081           library.  Fixed the parsing of the JOIN command now to support
6082           all options as they should be.  The affected file is
6083           lib/silcclient/command.c.
6084
6085         * Optimized the WHOIS and IDENTIFY commands to send the request
6086           to router only if it includes nicknames or other names.  If
6087           they include only IDs then check the local cache first before
6088           routing.  Affected file is silcd/command.c.
6089
6090         * Added channels topic announcements.  Affected file is
6091           silcd/packet_receive.c and silcd/server.c.
6092
6093         * Fixed the silc_server_send_notify_topic_set to really destine
6094           the packet to channel.  Affected file silcd/packet_send.c.
6095
6096         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
6097           library.  Affected file lib/silcclient/client_notify.c.
6098
6099         * Added UMODE announcements.  Affected file silcd/server.c.
6100
6101 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6102
6103         * Memory leak fixes in:
6104
6105           lib/silcutil/silcsockconn.c
6106           lib/silcske/silcske.c
6107           lib/silcske/groups.c
6108           lib/silccrypt/rsa.c
6109           lib/silccrypt/silcpkcs.c
6110           lib/silccore/silccommand.c
6111           lib/silccore/silcidcache.c
6112           silcd/idlist.c
6113           silcd/packet_send.c
6114           silcd/command.c
6115
6116         * ROBOdoc documented the lib/silcske/groups.h file and a
6117           bit changed the interface for better.
6118
6119 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6120
6121         * Update the client entry context in the ID cache after
6122           nick change.  Affected file lib/silcclient/command.c.
6123           Fixes the CUMODE command when regaining founder privileges,
6124           and a little WHOIS problem.
6125
6126         * Fixed silc_net_gethostbyname to correctly call the
6127           inet_ntop.  Affected file lib/silcutil/silcnet.c.
6128
6129 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6130
6131         * Added IPv6 support checking to the configure.in.pre, added
6132           also --enable-ipv6 option to override the check.  Affected
6133           file configure.in.pre.
6134
6135         * The silc_thread_create now calls the start function
6136           directly if threads support is not compiled in.  Removes
6137           ugly #ifdef's from generic code.  Affected files are
6138           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
6139
6140         * Added silc_net_gethostby[name/addr]_async to asynchronously
6141           resolve.  Affected files are lib/silcutil/silcnet.[ch].
6142
6143         * Added support for rendering IPv6 based server, client and
6144           channel IDs.  Affected file lib/silcutil/silcutil.c.
6145
6146         * Added support for creating IPv6 based server IDs.  Affected
6147           file is silcd/serverid.c.
6148
6149 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6150
6151         * Added silc_net_gethostby[addr/name] into the
6152           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
6153           routines.  Added silc_net_is_ip[4/6].  Affected file is
6154           lib/silcutil/unix/silcunixnet.c.  All routines that take
6155           address as argument now supports both IPv4 and IPv6 addresses.
6156
6157 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6158
6159         * Fixed LIST command reply sending in server.  Affected file
6160           silcd/command.c.
6161
6162         * Server now sends the kicker's client ID in the KICK notify
6163           to the kicked client.  Affected file silcd/command.c.
6164
6165         * The client library now parses the kickers client ID and
6166           UI displays it.  Affected files lib/silcclient/client_notify.c
6167           and irssi/src/silc/core/silc-channels.c, module-formats.c.
6168
6169         * Made all payload parsing function prototypes consistent.
6170           They all take now const unsigned char * and uint32 pair as
6171           the payload data instead of SilcBuffer.  Changes all around
6172           the source tree.  Other unsigned char* -> const unsigned char*
6173           changes around the tree as well.
6174
6175         * Optimized SFTP client and server packet sending not to
6176           allocate new buffer for each packet but to recycle the
6177           first allocated buffer.  Affected files are
6178           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
6179
6180         * Optimized the SFTP client to use SilcList instead of
6181           SilcDList for requests, because it is faster.  Affected file
6182           is lib/silcsftp/sftp_client.c.
6183
6184         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
6185           into lib/silccore/silcid.[ch].
6186
6187           Renamed silcpayload.[ch] into silcargument.[ch].
6188
6189 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6190
6191         * If client entry is deleted with active key agreement
6192           session, abort the session.
6193
6194           The silc_client_abort_key_agreement now calls the completion
6195           callback with new SILC_KEY_AGREEMENT_ABORTED status.
6196
6197           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
6198           idlist.c.
6199
6200 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6201
6202         * Don't use __restrict in older GCC's.  Affected file is
6203           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
6204
6205         * silc_net_localhost now attempts to reverse lookup the
6206           IP/hostname.  Affected file lib/silcutil/silcnet.c.
6207
6208         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
6209           command.  It can be used to gain founder privileges at
6210           the same time when joining the channel.
6211
6212           Defined that the SILC_NOTIFY_TYPE_KICKED send the
6213           kicker's client ID as well.  Updated protocol specs.
6214
6215           Defined that the server must send SILC_COMMAND_IDENTIFY
6216           command reply with error status to client who sent
6217           private message with invalid client ID.
6218
6219           Updated the protocol specification.
6220
6221         * Added silc_server_send_command_reply to send any
6222           command reply.  Affected file silcd/packet_send.[ch].
6223
6224         * Added silc_id_payload_encode_data to encode ID payload
6225           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
6226
6227         * The server now send IDENTIFY command reply with error
6228           status if client ID in private message is invalid.  Affected
6229           file silcd/packet_receive.c.
6230
6231         * Save the server key file with server's IP address in
6232           the filename instead of hostname.  The affected file is
6233           irssi/src/silc/core/client_ops.c.
6234
6235 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6236
6237         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
6238           A patch by Sunfall.
6239
6240         * Added libtool support for compiling shared objects in
6241           lib/silcsim.  Affected file configure.in.pre and
6242           lib/silcsim/Makefile.am.  Original patch by cras.
6243
6244 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6245
6246         * Pid file configuration, and server's config file fixes
6247           patch by toma.  Updated CREDITS file.
6248
6249 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6250
6251         * Fixed silc_client_channel_message to not try to decrypt
6252           the message twice if it resolved the destination client
6253           information.  This could cause of dropping one channel
6254           message.  Affected file lib/silcclient/client_channel.c.
6255
6256 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6257
6258         * Added silc_client_run_one into lib/silcclient/silcapi.h and
6259           lib/silcclient/client.c. This function is used when the SILC
6260           Client is run under some other scheduler, or event loop or
6261           main loop.  On GUI applications, for example this may be
6262           desired to used to run the client under the GUI application's
6263           main loop.  Typically the GUI application would register an
6264           idle task that calls this function multiple times in a second
6265           to quickly process the SILC specific data.
6266
6267 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6268
6269         * Fixed silc_server_drop() for dropping the supplementary
6270           groups as well, this could cause a security hole on some
6271           systems.
6272
6273 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6274
6275         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6276           johnny.
6277
6278         * Write PID file after dropping privileges.  Added -F option
6279           to run server on foreground.  A patch by debolaz.
6280           Affected files silcd/server.c, silcd/silcd.c.
6281
6282         * Fixed MOTD to return the MOTD file server name.  Affected
6283           file silcd/command.c.
6284
6285         * Added INFO command reply handling to the Irssi SILC Client.
6286           Affected file irssi/src/silc/core/client_ops.c.
6287
6288 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6289
6290         * Fixed the silc_idcache_list_* routines to really support
6291           the dynamic list.  Fixes a crash.  Affected file is
6292           lib/silccore/silcidcache.c.
6293
6294         * Fixed the LIST command reply to really call LIST command's
6295           pending callbacks.  Affected file silcd/command_reply.c.
6296
6297 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6298
6299         * Update conn->local_entry->nickname after giving NICK
6300           command.  Affected file lib/silcclient/command.c.
6301
6302 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6303
6304         * Added the [pid] option to the silcd configuration file
6305
6306           Affected files: serverconfig.[ch] and silcd.c
6307
6308 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6309
6310         * Save fingerprint in WHOIS command reply in server.
6311           Affected file silcd/command_reply.c.
6312
6313         * Fixed NICK commands pending callback registration.
6314           Affected file lib/silcclient/command.c.
6315
6316 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6317
6318         * Use ++server->cmd_ident when sending commands in server,
6319           instead of random number.  Affected file silcd/command.c.
6320
6321         * Fixed GETKEY command reply to call actually GETKEY pending
6322           command callbacks.  Affected file silcd/command_reply.c.
6323
6324         * A bit stricter check for nicknames.  Check for same nickname
6325           in NICK command also.  Affected file silcd/command.c.
6326
6327         * Do not call INFO command everytime client ID changes, only
6328           during first connecting.  Affected file lib/silcclient/client.c.
6329
6330         * Set the new nickname only after successful command reply for
6331           NICK command is returned by server.  Affected file
6332           lib/silcclient/command.c.
6333
6334         * Remove nicknames from nicklist during server_signoff notify.
6335           Should fix /NAMES bit more.  The affected file is
6336           irssi/src/silc/core/silc-channels.c.
6337
6338         * Added `fingerprint' field to the SilcIDListData in the
6339           silcd/idlist.h to hold the fingerprint of the client's
6340           public key.
6341
6342           Send the fingerprint of the client's public key in WHOIS
6343           command reply.
6344
6345           Affected files silcd/command.c, and silcd/idlist.[ch].
6346
6347         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6348           create fingerprint from given data.
6349
6350         * Show the fingerprint of the client's public key in WHOIS.
6351           Affected files irssi/src/module-formats.[ch] and
6352           irssi/src/silc/core/client_ops.c.
6353
6354         * Format the multiple same nicknames also during JOIN and
6355           NICK_CHANGE notifys.  Affected file is
6356           lib/silcclient/client_notify.c.
6357
6358         * Do not print error on screen for invalid private message
6359           payload since it can come if someone is sending private
6360           messages with wrong key.  Affected file
6361           lib/silccore/silcprivate.c.
6362
6363         * Fixed multiple concurrent /PING crash.  Affected file
6364           lib/silcclient/command.c.
6365
6366         * Changed the wrong ID encoding.  All IP addresses must be
6367           in MSB first order in encoded format.  They were encoded
6368           wrong and was in LSB format.  Affected files are
6369           silcd/serverid.c, lib/silcutil/silcutil.c.
6370
6371         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6372
6373         * Call the `connect' client operation through the scheduler
6374           in case of error.  Affected file lib/silcclient/client.c.
6375
6376         * Call the `failure' client operation even if the error
6377           occurred locally during a protocol.  Affected file is
6378           lib/silcclient/protocol.c.
6379
6380         * Added support of sending LIST command to router from normal
6381           server.  This way normal server can get list of all channels
6382           in the network too.  Fixed the channel list sending in the
6383           server too.  Affected files are silcd/command.c, and
6384           silcd/command_reply.[ch].
6385
6386         * Added silc_server_update_channels_by_server and
6387           silc_server_remove_channels_by_server.  They are used during
6388           disconnection of primary router and in backup router protocol.
6389           Affected file silcd/server_util.[ch], silcd/server.c and
6390           silcd/server_backup.c.
6391
6392         * Fixed channel adding to global list in IDENTIFY command
6393           reply in server.  Affected file silcd/command_reply.c.
6394
6395 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6396
6397         * If the incoming packet type is REKEY or REKEY_DONE process
6398           that packet always synchronously.  Fixes yet another MAC
6399           failed error on slow (dialup) connections.  Affected file
6400           lib/silcclient/client.c and silcd/server.c.
6401
6402 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6403
6404         * Call check_version SKE callback for initiator too.  Affected
6405           file lib/silcske/silcske.c.
6406
6407         * Implemented fix for security hole found in the SKE that was
6408           fixed in the specification few days back; the initiator's
6409           public key is now added to the HASH value computation.
6410           Added backwards support for the old way of doing it too, for
6411           old clients and old servers.  Affected file is
6412           lib/silcske/silcske.c.
6413
6414         * Enabled mutual authentication by default in SKE.  If initiator
6415           is not providing mutual authentication the responder will
6416           force it.  This will provide the proof of posession of the
6417           private key for responder.  The affected files are
6418           lib/silcclient/protocol.c and silcd/protocol.c.
6419
6420         * Do not cache anymore the server's public key during SKE.
6421           We do mutual authentication so the proof of posession of
6422           private key is done, and if the server is authenticated in
6423           conn auth protocol with public key we must have the public
6424           key already.  Affected file silcd/protocol.c.
6425
6426         * Added new global debug variable: silc_debug_hexdump.  If
6427           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6428           file lib/silcutil/silclog.[ch].
6429
6430         * Fixed compilation warning due to char * -> const char *.
6431           Affected files lib/silcutil/silcnet.h, and
6432           lib/silccore/silcauth.[ch].
6433
6434 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6435
6436         * Fixed CMODE command when new channel key was created.  If
6437           the creation failed the old key was removed.  Next time giving
6438           same command would crash the server since the old key was
6439           freed already.  Affected file silcd/command.c.
6440
6441         * Fixed the silc_server_announce_get_channels to not crash
6442           on reconnect.  Affected file silcd/server.c.
6443
6444 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6445
6446         * Added silc_log_set_debug_string function to set a regex
6447           string to match for debug output.  Only the function names,
6448           or filenames matching the given debug string is actually
6449           printed.  This way it is possible to filter out those debug
6450           strings that user is not interested in.
6451
6452           Fixed a bug in silc_string_regexify.
6453
6454           Affected files lib/silcutil/silclog.[ch], and
6455           lib/silcutil/unix/silcunixutil.c.
6456
6457         * Changed the -d options in both server and Irssi SILC client
6458           to take the debug string as argument.  Affected files
6459           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6460
6461 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6462
6463         * Added silc_hash_babbleprint to create a Bubble Babble
6464           Encoded fingerprint.  The encoding is developed by Antti
6465           Huima (draft-huima-babble-01.txt), and it creates human
6466           readable strings out of binary data.  Affected file
6467           lib/silccrypt/silchash.[ch].
6468
6469         * Print the babble print now in addition of fingerprint as well
6470           in Irssi SILC client.  Affected files are
6471           irssi/src/fe-common/silc/module-formats.[ch],
6472           irssi/src/fe-common/silc/core/client_ops.c.
6473
6474 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6475
6476         * Fixed a security problem found in SKE.  The initiator's
6477           public key too is now added to the HASH hash value creation
6478           which is signed by the responder to create the SIGN value.
6479           This will prevent anyone in the middle to lie to the responder
6480           about the initiator's public key.  If this is done now, the
6481           man in the middle will get caught.  Updated the protocol
6482           specification.
6483
6484 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6485
6486         * Better installation directory handling.  Configure module
6487           paths and other paths automatically to example_silc* files
6488           in doc/.  A patch by toma.
6489
6490         * Fixed compiler warning from MPI library, and from SILC RNG.
6491           A patch by johnny.
6492
6493         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6494           It can be configured with ./configure.  A patch by toma.
6495
6496 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6497
6498         * Find correct make to use in prepare-clean.  A patch by
6499           toma.  Affected file prepare-clean.
6500
6501 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6502
6503         * Added irssi variables use_auto_addr, auto_bind_ip,
6504           auto_bind_port and auto_public_ip.
6505
6506         * Changed the interface for silc_client_send_key_agreement
6507           in lib/silcclient/silcapi.h
6508
6509         Affected files:
6510
6511          irssi/src/silc/core/silc-core.c
6512          irssi/config
6513          lib/silcclient/silcapi.h
6514          irssi/src/silc/core/silc-channels.c
6515          lib/silcclient/client_keyagr.c
6516          irssi/docs/help/key
6517
6518 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6519
6520         * Added silc_pkcs_public_key_compare to compare two
6521           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6522
6523         * Check that the client who set the founder mode on the
6524           channel is the same client that is giving the founder
6525           mode to itself.  It is done by comparing the saved public
6526           key (it is saved even in the authentication is passphrase).
6527           Affected file silcd/command.c.
6528
6529 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6530
6531         * Do not process packet for disconnected socket connection.
6532           Affected file lib/silccore/silcpacket.c.
6533
6534         * Process the DISCONNECT packet through scheduler in the
6535           client library.  Affected file lib/silcclient/client.c.
6536
6537         * Fixed the silc_client_packet_parse to not to increase
6538           the packet sequence number if the conn->sock and the
6539           current socket connection is not same.  This can happen
6540           for example during key agreement when the conn includes
6541           multiple socket connections (listeners).  Affected file
6542           lib/silcclient/client.c.
6543
6544         * The sender of the file transfer request now provides also
6545           the pointer (listener) for the key exchange protocol.  If
6546           the listener cannot be created then it sends empty key
6547           agreement and lets the receiver provide the listener.
6548
6549           Added `local_ip' and `local_port' arguments to the
6550           silc_client_file_send.  If they are provided they are used,
6551           if not then it will attempt to find local IP address, if
6552           not found or bind fails then the remote client will provide
6553           the listener.
6554
6555           Affected files are lib/silcclient/client_ftp.c and
6556           lib/silcclient/silcapi.h.
6557
6558         * Extended the FILE SEND command to support defining the
6559           local IP and port for key exchange listener.  They are
6560           optional.  Affected file irssi/src/silc/core/silc-servers.c.
6561
6562 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6563
6564         * Defined to WHOIS command reply the sending of fingerprint
6565           of the client's public key (if the proof of posession of the
6566           corresponding private key is verified by the server).
6567           Updated to the protocol specification.
6568
6569         * Added support of receiving the client's public key's
6570           fingerprint in command reply in client library.  Affected
6571           file is lib/silcclient/command_reply.c, and
6572           lib/silcclient/idlist.[ch].
6573
6574 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6575
6576         * Do not send over 128 chars long nickname to the server
6577           in NICK command.  Affected file lib/silcclient/command.c.
6578
6579         * Do not send over 256 chars long channel names to the server
6580           in JOIN command.  Affected file lib/silcclient/command.c.
6581
6582 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6583
6584         * Assure that silc_server_close_connection cannot be called
6585           twice for same socket context.  Affected file is
6586           silcd/server.c.
6587
6588 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6589
6590         * Send error message to application if opening file for
6591           writing during file transfer fails.  Affected file is
6592           lib/silcclient/client_ftp.c.
6593
6594           Remove all file transfer sessions for a client that we're
6595           removing from ID cache.
6596
6597           Affected file is lib/silcclient/client_ftp.c.
6598
6599         * Fixed silc_net_addr2bin to return correct address.  Affected
6600           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6601
6602         * Fixed file transfer session removing on signoff notify.
6603           Affected file irssi/src/silc/core/silc-servers.c.
6604
6605         * Added the SilcClientFileError to be returned in the monitor
6606           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
6607           Affected file lib/silcclient/silcapi.h.
6608
6609 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6610
6611         * Fixed a crash in silc_client_ftp_free_sessions and
6612           silc_client_ftp_session_free_client.  Affected file
6613           lib/silcclient/client_ftp.c.
6614
6615         * Added `disabled' field in the SilcChannelEntry in the server
6616           to indicate if the server entry is disabled.  Affected file
6617           silcd/idlist.h, silcd/command[_reply].c.
6618
6619         * SILC server adds now /var/run/silcd.pid everytime it is
6620           started.  Affected file silcd/silcd.c.
6621
6622         * Added silc_server_packet_send_clients to send a packet to
6623           the provided table of client entries.  Affected file
6624           silcd/packet_send.[ch].
6625
6626         * Fixed a crash in client resolving in client_prvmsg.c in
6627           client library.  Affected file lib/silcclient/client_prvmsg.c.
6628
6629         * Do not actually remove the client directly from ID cache
6630           during SERVER_SIGNOFF, but invalidate it.  This way we
6631           preserve the WHOWAS info for the client.  Affected file
6632           silcd/server_util.c.
6633
6634         * Fixed SERVER_SIGNOFF notify handling in the server.  The
6635           server is now able to process incoming SERVER_SIGNOFF notify
6636           for a server that it doesn't even know about.  It will remove
6637           the clients provided in the notify.  Affected file
6638           silcd/packet_receive.c.
6639
6640         * Check for partial packet in data queue after every packet that
6641           was found from the queue.  Return and wait for more data if
6642           there is partial data in queue.  Affected file is
6643           lib/silccore/silcpacket.c.
6644
6645 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6646
6647         * Added SilcClietFileError enum to indicate error in
6648           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
6649           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
6650           Affected files lib/silcclient/silcapi.h and
6651           lib/silcclient/client_ftp.c.
6652
6653         * Check that newsize in silc_buffer_realloc is larger than
6654           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
6655
6656         * Added better monitor of file transfers.  It now monitors
6657           key agreement protocol during the file transfer too.  Added
6658           error reporting too.  Affected files
6659           irssi/src/silc/core/silc-servers.c,
6660           irssi/src/fe-common/silc/module-formats.[ch].
6661
6662         * Wrote a help file for FILE command.
6663
6664         * Added silc_rng_global_get_byte_fast to get not-so-secure
6665           random data as fast as possible.  Random data is read from
6666           /dev/urandom if available and from the SILC RNG if not
6667           available.  It is used in padding generation.  Affected file
6668           lib/silccrypt/silcrng.[ch].
6669
6670         * All packets in client library are now processed synchronously.
6671           Optimized packet processing a lot.  Affected file
6672           lib/silcclient/client.c.
6673
6674         * All server connection packets are processing synchronously
6675           now in server, to optimize packet processing.  Affected file
6676           silcd/server.c.
6677
6678         * Include files are installed now only in Toolkit distribution
6679           if make install is given.  Affected files: all Makefile.am's.
6680
6681 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6682
6683         * Assure that silc_client_notify_by_server_resolve does not
6684           resolve the client information multiple times.  If it cannot
6685           be found by the first it cannot be found at all.  Affected
6686           file lib/silcclient/client_notify.c.
6687
6688         * Fixed WHOWAS command reply calling.  Affected file
6689           lib/silcclient/command_reply.c.
6690
6691         * Removed all references to silc_idlist_get_client from the
6692           Irssi SILC client since that call is internal call used by
6693           the library.  The Irssi SILC client will use now client
6694           retrieval functions found in silcapi.h.
6695
6696         * Fixed a bug in resolving nickname info before sending
6697           private message.  It used freed memory.  Affected file
6698           irssi/src/silc/core/silc-servers.c.
6699
6700 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6701
6702         * Assure my_channels statistics cannot go negative in server.
6703           Affected files silcd/server.c, silcd/server_util.c.
6704
6705 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6706
6707         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
6708
6709 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6710
6711         * Win32 Toolkit changes.  Affected files
6712           win32/silc.dsw, win32/libsilc/libsilc.def,
6713           win32/libsilcclient/libsilc.def,
6714           lib/silcutil/silcutil.c, and
6715           lib/sftp/sftp_fs_memory.c.
6716
6717 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6718
6719         * Added silc_net_localip to return local host's IP address.
6720           Affected file lib/silcutil/silcnet.[ch].
6721
6722         * If key exchange or rekey protocol is active for a connection
6723           parse all packets syncronously since there might be packets
6724           in packet queue that we are not able to process without first
6725           processing packets before them.  Affected file silcd/server,
6726           lib/silcclient/client.c.
6727
6728         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
6729           whether library should continue processing the packet.
6730           Affected file lib/silccore/silcpacket.h.
6731
6732         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
6733           SilcSFTPMonitorData to SFTP server to monitor various
6734           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
6735           lib/silcsftp/sftp_server.c.
6736
6737         * Added silc_file_size to return file size.  Affected file
6738           lib/silcutil/silcutil.[ch].
6739
6740         * Implemented the file transfer support for the client library.
6741           Added preliminary support for simple client to client one-file
6742           transmission.  Affected file lib/silcclient/client_ftp.c,
6743           lib/silccilent/client.[ch].
6744
6745         * Added new local command FILE to the Irssi SILC Client.
6746           It is used to perform the file transfer.  It has subcommands
6747           SEND, RECEIVE, SHOW and CLOSE.  Affected files
6748           irssi/src/silc/core/client_ops.c,
6749           irssi/src/silc/core/silc-server.[ch].
6750
6751 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6752
6753         * Relay the SILC_PACKET_FTP in the server.  Affected files
6754           silcd/server.c and silcd/packet_receive.c.
6755
6756 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6757
6758         * Renamed silc_file_read and silc_file_write to functions
6759           silc_file_readfile and silc_file_writefile.  Added function
6760           silc_file_open and silc_file_close.  Affected files
6761           lib/silcutil/silcutil.[ch].
6762
6763 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6764
6765         * Resolve the client info when received private message or
6766           channel message for a client which nickname we don't know.
6767           Affected files lib/silcclient/client_prvmsg.c and
6768           lib/silcclient/client_channel.c.
6769
6770         * Do not crash in /KEY if client is not connected.  Affected
6771           file irssi/src/silc/core/silc-channels.c.
6772
6773         * Added SilcClientStatus field to the SilcClientEntry in the
6774           lib/silcclient/idlist.h.
6775
6776           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6777           is incomplete and is being resolved, it won't be resolved
6778           twice.
6779
6780           Make sure also that USERS command reply does not resolve
6781           twice information.  Affected file is
6782           lib/silcclient/command_reply.c.
6783
6784           Make sure that silc_client_get_clients_by_list does not
6785           resolve twice same information.
6786
6787         * Check for valid client->id in the silc_server_free_client_data.
6788           Affected file silcd/server.c.
6789
6790         * Fixed /GETKEY nick@server not to crash if the server entry
6791           is not found.  Affected file lib/silcclient/command.c.
6792
6793         * Fixed the silc_server_check_cmode_rights to check the
6794           requested modes correctly.  Affected file silcd/command.c.
6795
6796 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6797
6798         * Better checks for non-printable chars in nick added.
6799           Affected file silcd/command.c.
6800
6801 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6802
6803         * Call the silc_server_udpate_servers_by_server in the
6804           primary router that comes back online in the backup resuming
6805           protocol.  Otherwise it routes packets wrong.  Affected file
6806           silcd/server_util.[ch], silcd/server_backup.c.
6807
6808 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6809
6810         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6811           lib/silcutil/silcbuffmt.[ch].
6812
6813         * Redefined the SILC packet header to include the padding
6814           length.  Affected file lib/silccore/silcpacket.[ch].
6815
6816         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6817           length for maximum padding up to 128 bytes).  Affected
6818           file lib/silccore/silcpacket.h.
6819
6820         * Removed all backwards support for old 0.5.x MAC thingies.
6821           The SILC packet header change makes it impossible to be
6822           backwards compatible.
6823
6824         * Send the ENDING packet with timeout in the backup resuming
6825           protocol.  This is to assure that all routers has connected
6826           to the primary router.  Affected file silcd/server_backup.c.
6827
6828         * Changed the RNG to take the first IV from random data.  It
6829           used to take it from zero actually.  Changed the RNG also
6830           to use /dev/urandom during session.  /dev/random is used
6831           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6832
6833 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6834
6835         * Changed the SILC packet header to have the first two bytes
6836           (the packet length) encrypted.  Affected files aroung the
6837           code tree, lib/silccore/silcpacket.[ch].  Removed the
6838           SilcPacketCheckDecrypt callback.  It is not needed anymore
6839           since the silc_packet_receive_process will determine now
6840           whether the packet is normal or special.
6841
6842         * Implemented the unidirectional MAC keys.  Affected files
6843           lib/silcske/silcske.c, silcd/protocol.c and
6844           lib/silcclient/protocol.c.
6845
6846         * Implemented the packet sequence number to the MAC computation.
6847           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6848           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6849           lib/silcclient/protocol.c.
6850
6851 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6852
6853         * Allow backup router to announce servers.  All servers
6854           announced by backup router are added to the global list
6855           automatically.  Update hte server's socket to our primary
6856           router also when backup router announces a server.
6857           Affected file silcd/packet_receive.c.
6858
6859         * Do not update the client->router in the function
6860           silc_server_udpate_clients_by_server if the client is on
6861           global list.  We might fail to find any specific server
6862           for locally connected clients and local cell clients.  They
6863           should still use the `from' and not `to' as client->router.
6864           This fixes backup router resuming protocol.  Affected file
6865           silcd/server_util.c.
6866
6867         * Decrease channel statistics count only if the channel
6868           deletion worked.  Affected files are silcd/server.c and
6869           silcd/server_util.c.
6870
6871         * Added silc_server_update_servers_by_server to update origin
6872           of all server entries.  Used during backup router protocol.
6873           Affected files silcd/server_util.[ch], silcd/server.c. and
6874           silcd/backup_router.c.
6875
6876         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6877           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6878           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6879           lib/silccrypt/silchmac.c.
6880
6881 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6882
6883         * Assure that router cannot reroute the same channel message
6884           to the sender.  Affected file silcd/packet_receive.c.
6885
6886 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6887
6888         * Made better checks that the channel message is not sent
6889           to the router it came from.  Affected file is
6890           silcd/packet_send.c.  Fixed memory leak too.
6891
6892         * Announce informations for incoming router connection, but
6893           only after checking if it is replaced by backup router.
6894           Affected file silcd/packet_receive.c.
6895
6896 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6897
6898         * Fixed the backup resuming protocol to work in multiple
6899           router environment.  Affected file silcd/server_backup.c.
6900
6901         * Route packet only to one router in the function
6902           silc_server_packet_send_to_channel.  Affected file is
6903           silcd/packet_send.c.
6904
6905         * Fixed silc_server_send_notify_dest to set the broadcast
6906           flag.  Fixed the silc_server_send_notify_topic to actually
6907           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6908           Affected file silcd/packet_send.c.
6909
6910         * Changed the SFTP Filesystem interface.  Changed the
6911           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6912           the filesystem operation function.  The SilcSFTPFilesystem
6913           is now a context that is allocated by all filesystem allocation
6914           functions and it already includes the operations structure
6915           and filesystem specific context.  It is given as argument
6916           now to the silc_sftp_server_start.  This made the interface
6917           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6918           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6919
6920 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6921
6922         * Changed the backup router adding and getting interfaces
6923           in the server.  The router that will be replaced by the
6924           specified backup router is now sent as argument.  Affected
6925           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6926           silcd/server.c.
6927
6928         * Added silc_net_addr2bin_ne to return the binary form of
6929           the IP address in network byte order.  Affected files
6930           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6931
6932 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6933
6934         * Check for existing server ID in silc_server_new_server
6935           and in silc_server_connect_to_router_final and remove the
6936           old entry if it exists.  Affected file silcd/packet_receive.c,
6937           silcd/server.c.
6938
6939         * Send the channel message always to only one router, either
6940           in upstream or downstream.  Affected file is
6941           silcd/packet_send.c.
6942
6943 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6944
6945         * Wrote the definition of the backup resuming protocol to the
6946           protocol specification.
6947
6948         * Removed one redundant channel key generation from normal
6949           server during joining procedure.  Removed one redundant
6950           channel key sending from server to router during joining
6951           procedure.  Affected file silcd/command.c.
6952
6953         * Made minor bugfixes to the backup router resuming protocol.
6954           Affected file silcd/server_backup.c, server.c.
6955
6956 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6957
6958         * Added --disable-asm configuration option.  Affected files
6959           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6960           by salo.
6961
6962         * Implemented the backup resuming protocol that is used to
6963           resume the primary router position in the cell after the
6964           primary router comes back online.  Affected files
6965           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6966           and silcd/server_util.[ch].
6967
6968 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6969
6970         * Sleep two (2) seconds after sending QUIT command to server.
6971           Affected file lib/silcclient/command.c.
6972
6973         * Assure that if outgoing data buffer is pending do not force
6974           send any data.  Affected file silcd/packet_send.c.
6975
6976         * Assure that if outgoing data buffer is pending do not force
6977           send any data.  Affected file lib/silcclient/client.c.
6978
6979         * Implemented the backup router support when the primary router
6980           goes down.  The servers and routers can now use the backup
6981           router as new primary router without loosing connectivity.
6982
6983 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6984
6985         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6986           in the server to indicate disabled entry.  All data read
6987           from the connection will be ignored and no data is sent
6988           for entry that is disabled.  Affected files are
6989           silcd/idlist.h, silcd/server.c.
6990
6991 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6992
6993         * Created SFTP client and server test programs in the
6994           lib/silcsftp/tests directory.
6995
6996 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6997
6998         * Implemented memory filesystem (virtual filesystem) for
6999           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
7000           sftp_fs_memory.c.
7001
7002 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7003
7004         * Implemented the SFTP (SSH File Transfer Protocol) to the
7005           lib/silcsftp.  It includes SFTP client and SFTP server
7006           implementations.
7007
7008 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7009
7010         * Moved lib/silccore/silcprotocol.[ch] to the
7011           lib/silcutil library.
7012
7013         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
7014           take variable argument list pointer as argument.  Affected
7015           file lib/silcutil/silcbuffmt.[ch].
7016
7017         * Added silc_buffer_set function that is used to set data
7018           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
7019           Affected file lib/silcutil/silcbuffer.h.
7020
7021         * Changed various routines in the core library to use the new
7022           silc_buffer_set instead of allocating new buffer only for
7023           temporary purposes.
7024
7025         * Added 64-bit value formatting and unformatting support to the
7026           silc_buffer_[un]format routines.  Affected file is
7027           lib/silcutil/silcbuffmt.[ch].
7028
7029           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
7030           to includes/bitmove.h.
7031
7032 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7033
7034         * Fixed channel user mode saving in client library.  Affected
7035           file lib/silcclient/command[_reply].c.
7036
7037 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7038
7039         * Defined the file transfer to the SILC Protocol.  Added
7040           new packet type SILC_PACKET_FTP and defined File Transfer
7041           Payload.  The mandatory file transfer protocol is SFTP
7042           (SSH File Transfer Protocol).  Affected file in addition
7043           of the internet draft is lib/silccore/silcpacket.h.
7044
7045         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
7046           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
7047           is used as part of backup router protocol when the primary
7048           router of the cell is back online and wishes to resume
7049           the position as primary router.
7050
7051         * Redefined the MAC generation keys in the protocol.  The
7052           same key is not used anymore in both direction.  Both
7053           direction will now use different keys for sending and
7054           receiving.  This fixes a potential security flaw.  This
7055           change causes incompatibilities in the protocol.
7056
7057         * Redefined also the MAC computation from the packet.
7058           An packet sequence number is now added to the MAC
7059           computation.  This prevents possible replay attacks against
7060           the protocol.  This change too causes incompatibilities
7061           in the protocol.
7062
7063           Added `sequence' field to the SilcPacketContext to hold
7064           the current sequence number for the packet.
7065
7066 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7067
7068         * Added `created' field to the SilcIDListData in the file
7069           silcd/idlist.h to indicate the time when the entry was
7070           created.
7071
7072         * Added `created' field to the SilcChannelEntry too.  Affected
7073           file silcd/idlist.h.
7074
7075         * Added `creation_time' aguments to all the announcement functions
7076           in the server.  If it is provided then only the entries that
7077           was created after the provided time frame are actually
7078           announced.  Affected file silcd/server.[ch].
7079
7080         * The protocol says that the Channel ID's IP address must be
7081           based on the router's IP address.  Added check for this in
7082           the silc_server_new_channel when processing incoming New Channel
7083           Payload.  Affected file silcd/packet_receive.c.
7084
7085         * Print out the correct version with --version in SILC client.
7086           Affected file irssi/src/silc/core/silc-core.c.
7087
7088 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7089
7090         * Fixed WHOWAS command to check for completnes of the client
7091           entry always, not just when the command is coming from client.
7092           Affected file silcd/command.c.
7093
7094         * Added new function silc_server_packet_queue_purge to purge the
7095           outgoing data queue to the network.  After the function returns
7096           it is guaranteed that the outgoing packet queue is empty.
7097           Affected file silcd/packet_send.[ch].
7098
7099         * Purge the outgoing packet queue in the rekey protocol's final
7100           callback to assure that all rekey packets go to the network
7101           before quitting the protocol.  Affected file silcd/server.c.
7102
7103         * Added silc_client_packet_queue_parse as similar function as
7104           in server to the client library.  The affected file is
7105           lib/silcclient/client.c.
7106
7107 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7108
7109         * Splitted silcd/server.c and created silcd/server_util.[ch]
7110           for utility functions.
7111
7112         * Added new socket flag SILC_SF_DISABLED to indicate that the
7113           connection is open but nothing can be sent to or received from
7114           the connection.  Affected file lib/silcutil/silsockconn.[ch].
7115           The checking for disabled socket is checked in the low level
7116           silc_socket_write and silc_socket_read functions.
7117
7118 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7119
7120         * Allow only nicknames and channel names that fits into the
7121           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
7122
7123 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7124
7125         * When processing JOIN command reply in server check that if
7126           the channel exists in our global list we'll move it the local
7127           list.  Affected file silcd/command_reply.c.
7128
7129         * Fixed the check whether client is joined on the channel already
7130           in JOIN command.  Affected file lib/silcclient/command.c.
7131
7132         * Fixed the JOIN command reply to check whether the channel
7133           already exists.  Affected file lib/silcclient/command_reply.c.
7134
7135 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7136
7137         * Added silc_ske_status_string to map the SKE error numbers
7138           to readable strings.  The affected files are
7139           lib/silcske/silcske[_status].[ch].
7140
7141 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7142
7143         * Do not show the private channels on the WHOIS channel list
7144           as it is not allowed by the protocol.  The affected file is
7145           silcd/server.c.
7146
7147 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7148
7149         * Assure that the packet length digged from the actual packet
7150           is something sensible in the silc_packet_decrypt_rest_special
7151           in lib/silccrypt/silcpacket.c.
7152
7153         * Free and NULL the allocated pointer in silc_hmac_alloc if
7154           the HMAC allocation fails.  The affected file is
7155           lib/silccrypt/silchmac.c.
7156
7157         * Print the selected security properties to the log files in
7158           the server.  Affected file silcd/protocol.c.
7159
7160         * Add SKE's reference counter even if calling the completion
7161           callback manually.  Otherwise it goes negative, although it
7162           does not cause any problems.  The affected file is
7163           lib/silcske/silcske.c.
7164
7165         * Remove the client entry with short timeout after giving the
7166           KILL command.  Affected file lib/silcclient/command.c.
7167
7168         * Fixed to send error reply in WHOIS and IDENTIFY commands in
7169           case all found clients are already disconnected (WHOWAS would
7170           found them) in the server.  Affected file silcd/command.c.
7171
7172         * Update the last_receive (time of last data received) to be
7173           updated only when received private or channel message so that
7174           the idle time showed in WHOIS makes more sense.
7175
7176         * Added boolean field `valid' in to the SilcClientEntry in the
7177           client library to indicate whether the entry is valid or not.
7178           This fixes the nickname change bug on channel when changing
7179           the nickname to be same than the old (like nick to Nick) the
7180           nickname formatter doesn't set the new nick anymore to Nick@host.
7181           Affected file lib/silcclient/idlist.[ch].
7182
7183         * Now actually fixed the nickname changing on disconnection.
7184           Added new function silc_change_nick to the Irssi SILC Client.
7185           Affected file irssi/src/silc/core/client_ops.c,
7186           irssi/src/silc/core/silc-nicklist.[ch].
7187
7188 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7189
7190         * Check that the public key exists in the GETKEY command before
7191           trying to encode it.  Affected file silcd/command.c.
7192
7193         * Print some notifications on received public keys with GETKEY
7194           command in the Irssi SILC Client.  Affected files are
7195           irssi/src/fe-common/silc/module-formats.[ch],
7196           irssi/src/silc/core/client_ops.c.
7197
7198         * Use IDENTIFY command to resolve the server information in the
7199           GETKEY command instead of INFO command.  Affected file
7200           lib/silcclient/command.c.
7201
7202         * All command reply functions in the client library now calls
7203           the pending command reply callbacks even if an error has
7204           occurred.  The server has done this a long time and now it was
7205           time to move the client library to this as well.  Now all
7206           errors can be delivered back to the pending command reply
7207           callbacks if necessary.  Affected files are
7208           lib/silcclient/command[_reply].[ch].
7209
7210         * Change the nickname on disconnection back to the username
7211           because in reconnect the server will enforce it to it anyway.
7212           Affected file irssi/src/silc/core/silc-servers.c.
7213
7214         * Fixed a config file parsing bug in the Irssi SILC client.
7215           Affected file irssi/src/silc/core/clientconfig.c.
7216
7217 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7218
7219         * When printing the channel mode on JOIN, verify that the
7220           channel key and channel's HMAC are valid.  Affected file
7221           irssi/src/silc/core/client_ops.c.
7222
7223 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7224
7225         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
7226           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
7227           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
7228
7229         * Removed channel key rekey task deleting from the function
7230           silc_server_save_channel_key.  Affected file silcd/server.c.
7231           Added explicit timeout task context instead that is used to
7232           delete the task if we are registering a new task before the
7233           new task has elapsed.
7234
7235         * When channel key rekey occurs the client library now saves
7236           the old channel key for a short period of time (10 seconds) and
7237           is able to use it in case some is still sending channel
7238           messages encrypted with the old key after the rekey.  Affected
7239           file lib/silcclient/[idlist.h|client_channel.c].
7240
7241 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7242
7243         * Added check to the silc_server_new_id_real to not accept
7244           new ID if it is the sender's own ID.  Affected file is
7245           silcd/packet_receive.c.
7246
7247         * Assure that we do not announce ourself or the one we've
7248           sending our announcements when we're router and are announcing
7249           servers to our primary router.  Affected file silcd/server.c.
7250
7251         * Fixed silc_server_command_identify_check_client to assemble
7252           correct WHOIS packet.  It send corrupted WHOIS packet and
7253           caused problem with router to router connections.  Affected
7254           file silcd/command.c.
7255
7256           Fixed also silc_server_command_whois_check the same way
7257           as for the IDENTIFY command.
7258
7259         * Added new SilcIDListStatus to the server in the SilcIDListData
7260           structure.   The status now includes the current status of
7261           the entry (like registered, resolved etc.).  Affected file
7262           silcd/idlist.[ch].  Defined a bunch of different status types
7263           as well.  This replaced the old boolean registered field as well.
7264
7265           Added resolve_cmd_ident field to the SilcClientEntry structure
7266           too so that if the entry is for example being resolved so
7267           another command may attach to the same pending command reply
7268           without requiring to resolve the same entry again.  This concept
7269           should optimize the WHOIS and the IDENTIFY resolving under
7270           heavy load by taking away unnecessary resolving for entries
7271           that are being resolved already.
7272
7273           Added support for adding multiple pending commands for one
7274           command idenfier.  Affected file silcd/command[_reply].[ch].
7275
7276         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7277           before deleting the data.  Otherwise the hash table will have
7278           freed data in comparison functions.  Affected file is
7279           silcd/command_reply.c.
7280
7281         * Fixed silc_idlist_replace_client_id to add the new entry to
7282           the cache with NULL nickname.  Otherwise there will be invalid
7283           memory as the nickname after the nickname is freed.  Affected
7284           file silcd/packet_receive.c.
7285
7286         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7287           saved into wrong slots because the previous number of entries
7288           was not taken into account.  Affected file silcd/idlist.c.
7289           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7290
7291         * If we are router and we receive JOIN notify to a channel that
7292           does not have any users then notified client is marked as the
7293           channel founder, as it is it.  The affected file is
7294           silcd/packet_receive.c
7295
7296         * Added to the extended hash table API's table_del_*ext functions
7297           the destructor as argument too, so that the caller can decide
7298           which destructor to use or whether to use destructor at all.
7299           Affected file lib/silcutil/silchashtable.[ch].
7300
7301         * Fixed ID Cache purging.  It actually deleted the entries from
7302           the hash table after the data was freed.  The hash table ended
7303           up comparing freed memory.  The affected file is
7304           lib/silccore/silcidcache.c.
7305
7306 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7307
7308         * Fixed Irssi SILC client's KILL command's HELP syntax.
7309
7310         * The USERS command now resolves the detailed user information
7311           if the userinfo field is missing.  Affected file is
7312           lib/silcclient/command_reply.c.
7313
7314         * Do not print error in silc_file_read if the read file does
7315           not exist.  Just silently return NULL.  Affected file is
7316           lib/silcutil/silcutil.c.
7317
7318         * Fixed the silc_log_output to not wine about NULL filename
7319           and to not create some bogus " " filename.  Affected file is
7320           lib/silcutil/silclog.c.
7321
7322 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7323
7324         * Fixed various printing bugs on the user interface in the
7325           Irssi SILC Client.  Minor changes that were forgotten from
7326           the release.
7327
7328 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7329
7330         * Fixed the configure.in.pre and the compilation and distribution
7331           environment to support the new autoconf 2.52.  That version is
7332           now required to compile the CVS trunk.
7333
7334 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7335
7336         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7337           to generally parse user@fqdn format strings.  Affected file
7338           lib/silcutil/silcutil.c.
7339
7340         * Added nickname_format and nickname_force_format fields to the
7341           SilcClientParams structure.  The first one defines the format
7342           for the nicknames that the library will enforce if the receives
7343           multiple same nicknames.  The second one is boolean value and
7344           can be used to force the library to always enforce the format
7345           to the nicknames regardles whether there are multiple nicknames
7346           or not.  This configurable formatting was employed to flexibly
7347           support accessing multiple nicknames from the user interface.
7348           The userinterface can now set the nicknames to what ever format
7349           they prefer.  Affected file lib/silcclient/silcapi.h.
7350
7351           Added function silc_client_nickname_format to the file
7352           lib/silcclient/idlist.c.  It performs the nickname formatting.
7353
7354           Added new field `hostname´ to the SilcClientEntry context.
7355           It holds the hostname of the client.  Affected file is
7356           lib/silcclient/idlist.h.
7357
7358         * Irssi SILC Client sets the nicknames in nick@hostn format.
7359           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7360           irssi/src/silc/core/silc-core.c.
7361
7362           The WHOIS printing now also shows both the real nickname and
7363           the formatted nickname so that user knows how to access the
7364           user if there are multiple same nicknames cached.  Affected
7365           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7366           printing formatting too to take the hostname now as a separate
7367           argument.  The Affected file is
7368           irssi/src/fe-common/silc/modules-formats.[ch].
7369
7370         * Changed the silc_client_get_clients_local to accept the formatted
7371           nickname as argument.  It accepts the real nickname too but the
7372           formatted nickname can be used to find the true entry from
7373           multiple entries.  Affected file lib/silcclient/silcapi.h and
7374           lib/silcclient/idlist.c.
7375
7376         * Added nickname_format_parse field to the SilcClientParams.
7377           It is a callback function provided by the application to parse
7378           the nickname out of the formatted nickname string. The library
7379           calls it to get the nickname from the formatted string. Since
7380           the application generally knows better the format of the nickname
7381           string it parses it instead of the library, even though library
7382           encodes the formatted string.  If the callback function is not
7383           provided then the library will use the string as is.  The
7384           affected file is lib/silcclient/silcapi.h.
7385
7386         * All the nickname strings passed to the client library in
7387           commands are now expected to be formatted nickname strings.
7388           If the command does not support the formatted nickname string
7389           it will assume that the sent string is the actual nickname.
7390           Affected file lib/silcclient/command.c.
7391
7392 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7393
7394         * Added public key authentication support to OPER and SILCOPER
7395           commands in the client library.  Affected file is
7396           lib/silcclient/command.c.
7397
7398 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7399
7400         * Changed the get_auth_methdod client operation to be asynchronous.
7401           It can be async if the application resolves the authentication
7402           method from the server during the negotiation.  Added new
7403           SilcGetAuthMeth completion callback that the application will
7404           call after resolving the authentication method.
7405
7406           Added function silc_client_request_authentication_method that
7407           the application can use to resolve the authentication method
7408           from the server.  Added also SilcConnectionAuthRequest callback
7409           that the library will call after the server has replied.  The
7410           application can call this function if it does not know the
7411           current authentication method.
7412
7413           Affected files are lib/silcclient/client.c and
7414           lib/silcclient/silcapi.h.
7415
7416         * The Irssi SILC client now automatically resolves the authentication
7417           method incase any configuration information is not present (and
7418           currently there never is).  The affected file is
7419           irssi/src/silc/core/client_ops.c.
7420
7421         * Fixed public key authentication from the client library.
7422           Affected file lib/silcclient/protocol.c.  Changed also the
7423           protocol specification about the public key authentication in
7424           the connection authentication protocol.  The actual data to be
7425           signed is now computed with a hash function before signing.
7426
7427         * Fixed the public key authentication from the server as well.
7428           Affected file silcd/protocol.c.
7429
7430         * Removed the mlock()'s from the memory allocation routines.
7431           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7432           not check anymore for the mlock().  Affected file is
7433           configure.in.pre.
7434
7435         * Fixed USERS command in server to allow the execution of the
7436           command for private and secret channels if the client sending
7437           the command is on the channel.  Affected file silcd/command.c.
7438
7439         * Fixed silc_client_get_clients_local to return the clients
7440           count correctly.  It could return wrong value.  Affected file
7441           lib/silcclient/idlist.c.
7442
7443 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7444
7445         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7446           types.  The assembler optimizations seemed not to like 64-bit
7447           data types.  The assmebler optimizations thus are now enabled
7448           also for BSD systems as opposed to only enable them for Linux.
7449
7450         * Do not check for threads at all on BSD systems.  Affected
7451           file configure.in.pre.
7452
7453         * Removed -n and -h options from the Irssi SILC Client since
7454           they are not used in silc.
7455
7456         * Fixed the prime generation to assure that the first digit
7457           of the generated random number is not zero since our conversion
7458           routines does not like number strings that starts with zero
7459           digit.  If zero digit is seen the random number is regenerated.
7460           This caused some corrupted RSA keys when the zero first digit
7461           was met.  Affected file lib/silcmath/silcprimegen.c.
7462
7463 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7464
7465         * Fixed WIN32 configuration in the ./configure script.
7466           Fixed to include xti.h on environments that has it.
7467           Patches by Carsten Ilchmann and andrew.
7468
7469 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7470
7471         * Changed the silc_id_create_client_id to be collision
7472           resistant.  It is now assured that there cannot be created
7473           two same client ID's.  I suspect that some weird bugs in
7474           the server were actually caused by duplicate Client IDs.
7475           Affected file silcd/serverid.[ch].  A router receiving
7476           new ID now also assures and informs the sending server
7477           if the ID caused collision.
7478
7479         * Changed the silc_id_create_channel_id to also assure that
7480           there are no collisions.
7481
7482 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7483
7484         * Statement about ignoring the Mutual Authentication flag when
7485           performing rekey with PFS was a bit misleading.  It is ignored
7486           if it was set in the initial negotiation, it cannot be even
7487           set in the rekey.  Fixed in the ke-auth draft.  Started the
7488           new versions of the protocol drafts in the doc/.
7489
7490 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7491
7492         * Fixed a bug in silc_client_command_identify_save when saving
7493           new channel information.  The channel name was no duplicated
7494           and caused crash on exit.  Affected file is
7495           lib/silcclient/command_reply.c.
7496
7497 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7498
7499         * Fixed the getkey command handling in the server.  Send just
7500           empty OK reply to the sender if the key could not be fetched
7501           (but everything else was ok, like the key just was not available).
7502           Changed the public key parameter to optional in the protocol
7503           specs so that empty OK reply can be sent.  Affected file
7504           silcd/command.c.
7505
7506           Added a message to Irssi SILC client to tell to user if the
7507           server did not return a public key.
7508
7509 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7510
7511         * Fixed a channel key regeneration bug.  It registered new
7512           timeout tasks exponentially until all system resources were
7513           used.  Affected file silcd/server.c.
7514
7515 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7516
7517         * Added the SILC Document generator to the scripts/silcdoc.
7518           It can be used to generate the Toolkit Reference Manual out
7519           of the source tree.  Internally it will also use the RoboDoc
7520           generator now imported in util/robodoc.
7521
7522 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7523
7524         * Added couple of return's in rekey protocol if error orccurred
7525           during the protocol.  The execution must be terminated.
7526           Affected file silcd/protocol.c.  Also, terminate the protocol
7527           always with timeout.
7528
7529 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7530
7531         * The client's Client ID was created initally from the wrong
7532           nickname (it could have been in format nick@host) in the
7533           silc_server_new_client.  Affected file silcd/packet_receive.c
7534
7535 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7536
7537         * Added some SILC_LOG_ERROR's to various error conditions
7538           if client could not be added to ID cache.  Affected files
7539           silcd/packet_receive.c and silcd/server.c.
7540
7541         * When client's sock->user_data is freed, NULL also the
7542           client->router and client->connection pointers.  Added check
7543           for these pointers being NULL to various places around the
7544           code.  Affected file silcd/server.c.
7545
7546         * Added client->data.registered == TRUE checks to various
7547           places around the code to assure that unregistered client's
7548           are not handled when it is not allowed.  Affected file
7549           silcd/server.c.
7550
7551         * Added `bool registered' fields to all
7552           silc_idlist_[server|client]_get_* routines to indicate whether
7553           the fetched client needs to be registered or not.  Affected
7554           file silcd/idlist.[ch].
7555
7556         * Add your own entry as registered to the ID cache in the
7557           server.  Affected file server.c.
7558
7559         * Fixed a bug in silc_server_new_server.  The SilcServer was
7560           set as the new server's context instead of SilcServerEntry.
7561           This naturally caused some weird bugs.
7562
7563         * Added "updated" field the SilcChannelEntry which indicates
7564           the time since the channel entry was last accessed.  This
7565           can be used to determine whether it is necessary to
7566           announce the channel after backup resuming protocol.
7567           Affected files silcd/idlist.[ch].
7568
7569 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7570
7571         * Do not delete the channel rekey task when adding it
7572           for in silc_server_create_channel_key.
7573
7574         * Changed the silc_server_create_channel_key to return
7575           TRUE or FALSE to indicate the success of the channel key
7576           creation.
7577
7578 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7579
7580         * Fixed MSVC++ project files and added missing files to
7581           Makefiles under win32/.
7582
7583 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7584
7585         * Do not add TCP_NODELAY flag if the operating system
7586           does not have it defined.  Affected files are
7587           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7588
7589         * Fixed buffer overflow from Irssi SILC Client.  Affected
7590           file irssi/src/fe-common/core/themes.c.
7591
7592         * Fixed double free in client library in the file
7593           lib/silcclient/client.c when disconnecting from server.
7594
7595         * Applied double free patch from cras to Irssi SILC client.
7596           Affected files irssi/src/core/[modules/expandos].c
7597
7598         * Fixed the disconnection handling to Irssi SILC Client.
7599           The application must call silc_client_close_connection
7600           in ops->connect client operation in case of failure of
7601           the connection.  Affected file is
7602           irssi/src/silc/core/client_ops.c.
7603
7604         * Do not set sock->protocol to NULL in the function
7605           silc_client_close_connection after executing the protocol's
7606           final callback since the sock might not be valid anymore.
7607           Affected file lib/silcclient/client.c.
7608
7609 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7610
7611         * Do not enable SILC_THREADS if the linking with libpthread
7612           did not happen.  Affected file configure.in.pre.
7613
7614         * Added notion to protocol specification that server must
7615           verify the sent authentication payload with CMODE when
7616           setting the channel founder key.  Implemented it to the
7617           server.  Affected file silcd/command.c.
7618
7619 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7620
7621         * Added _EXTRA_DIST SILC distribution variable to the
7622           distributions file.  It is used to conditionally add extra
7623           files or directories to the specific distribution.  Affected
7624           files ./prepare, Makefile.am.pre and distributions.
7625
7626           Removed the `_' from the start of the distribution names.
7627           It is redundant.
7628
7629         * Added README.WIN32 for instructions to compile the Toolkit
7630           under WIN32.
7631
7632 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7633
7634         * Fixed a double free in disconnection in the server.  Affected
7635           file is silcd/server.c.
7636
7637         * Fixed the lib/silcske/groups.c to work now also with GMP
7638           MP library.  The string conversion did not work when using
7639           specific base and the base is indicated in the string as well.
7640
7641         * Created win32/ directory which now includes MSVC++ specific
7642           stuff so that toolkit (DLLs) may be compiled with MSVC++.
7643           It will appear only in the toolkit distribution
7644
7645 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7646
7647         * Changed the key material distribution function in case when
7648           the hash output is too short.  The data is now concatenated
7649           a bit differently than it used to.  Made the change to the
7650           SKE protocol specification.
7651
7652         * Added better GMP detection to configure.in.pre.  A patch
7653           by salo.
7654
7655 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7656
7657         * Fixed a minor bug in SKE that might cause some problem on
7658           some platforms.  Affected file lib/silcske/silcske.c.
7659
7660         * Added the cookie checking for initiator in the SKE.  It checks
7661           that the responder returns the sent cookie unmodified.  The
7662           affected file is lib/silcske/silcske.c.  Added new SKE
7663           error type INVALID_COOKIE that can be sent during the
7664           negotiation.  Fixed some memory leaks as well.
7665
7666         * Added the "invalid cookie" error message to Irssi SILC client's
7667           message formats.
7668
7669 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7670
7671         * Added `task_max' field to the SilcClientParams to indicate
7672           the maximum tasks the scheduler can handle.  If set to zero,
7673           default values are used.  Affected file lib/silcclient/silcapi.h.
7674
7675         * Fixed memory leaks in silc_client_close_connection.  Affected
7676           file lib/silcclient/client.c.
7677
7678         * Added silc_client_del_client_entry to client library to free
7679           all memory of given client entry.  Affected file is
7680           lib/silcclient/idlist.[ch].
7681
7682         * Added new functions silc_client_del_channel and
7683           silc_client_del_server to delete channel and server entries.
7684           Affected file lib/silcclient/[silcapi.h/idlist.c].
7685
7686         * Removed silc_client_del_client_by_id from silcapi.h.
7687
7688         * Fixed the INFO command to return the server's own info
7689           correctly when querying by Server ID.  Affected file is
7690           silcd/command.c.
7691
7692 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7693
7694         * Removed the non-blocking settings in WIN32 code in the
7695           silc_sock_[read/write] and added SleepEx instead.  Affected
7696           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
7697           of input data is now checked with FIONREAD and ioctlsocket.
7698
7699 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7700
7701         * Call silc_schedule_task_del_by_context in the
7702           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
7703           Affected file lib/silccore/silcprotocol.c.
7704
7705         * Call silc_protocol_cancel for active protocols in the
7706           silc_server_close_connection if the funtion
7707           silc_server_free_sock_user_data has not been called.
7708           Affected file silcd/server.c.
7709
7710         * Generic tasks cannot be deleted using the del_by_fd
7711           task deleting function since generic tasks does not match
7712           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
7713
7714         * Added a notion to SILCOPER help file that the SILCOPER works
7715           only on router server, not on normal server.
7716
7717 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7718
7719         * Added for WIN32 support for the new scheduler as well.
7720           Affected file lib/silcutil/win32/silcwin32schedule.c.
7721
7722         * Fixed the SHA1 implementation to work on various platforms.
7723
7724 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7725
7726         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
7727           API.  It is part of the scheduler now.  Everything else is
7728           as previously but some functions has changed their names.
7729           Checkout the lib/silcutil/silcschedule.h for the interface.
7730           Updated all applications to use the new interface.  Affected
7731           files are lib/silcutil/silcschedule.[ch].
7732
7733 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7734
7735         * Found a bug in the SKE implementation.  The HASH value,
7736           specified by the protocol, was not computed correctly.  The
7737           public key of the responder was not added to the computation
7738           even though it is mandatory.  Affected file lib/silcske/silcske.c.
7739           This unfortunately causes incompatibilities with older
7740           clients and servers.
7741
7742         * Added WIN32 specific network init and uninit functions:
7743           silc_net_win32_init and silc_net_win32_uninit to init and uninit
7744           the Winsock2.  Affected file lib/silcutil/silcnet.h and
7745           lib/silcutil/win32/silcwin32net.c.
7746
7747         * Set the socket always to nonblocking mode on WIN32 after
7748           reading data or writing data.  Affected file is
7749           lib/silcutil/win32/silcwin32sockconn.c.
7750
7751 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7752
7753         * Fixed various compilation problems under WIN32.  Affected
7754           files lib/silcutil/win32/silcwin32thread.c and
7755           lib/silcutil/win32/silcwin32schedule.c.
7756
7757         * Removed all _internal.h #includes from public header
7758           files.  Internal headers must never be included from
7759           public headers.
7760
7761           Removed also the lib/silcske/payload_internal.h file.
7762
7763         * All include files that may be needed (public and some others
7764           included by the public headers) by application developers are
7765           now copied to the ./includes directory.  It does not copy any
7766           internal headers.  Affected file Makefile.defines.pre and all
7767           Makefile.am's under lib/ and subdirs.
7768
7769 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7770
7771         * Do not change the ~/.silc directory's permissions automatically.
7772           Affected file irssi/src/silc/core/clientutil.c.
7773
7774 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7775
7776         * Do not cancel the protocol in silc_server_close_connection
7777           it might cause recursion.  Now cancelled in the function
7778           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7779
7780         * Fixed the silc_server_remove_clients_by_server to regenerate
7781           the channel keys correctly finally.  Added also new function
7782           silc_server_remove_clients_channels to actually do it.
7783           Affected file silcd/server.c.
7784
7785         * Fixed the silc_server_new_channel to not crash by giving
7786           wrong router to the new channel.  Affected file is
7787           silcd/packet_receive.c.
7788
7789 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7790
7791         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7792           which is given as argument to the silc_client_alloc now.
7793           It can be used to configure the client and set various parameters
7794           that affect the function of the client.
7795
7796         * The USERS command in server did not check whether the channel
7797           is private or secret.  Affected file silcd/command.c.
7798
7799         * Added new argument to the USERS command in protocol specification.
7800           The USERS command now can take the channel name as argument
7801           as well.  Added support for this in client and server and
7802           updated the protocol specs.
7803
7804         * Completed the GETKEY command in client. It can be now used
7805           to fetch also servers public key not only some clients.
7806           Affected files lib/silcclient/command[_reply].c.
7807
7808         * Added silc_client_get_server to return server entry by the
7809           server name.  Affected files lib/silcclient/silcapi.h and
7810           idlist.c.
7811
7812         * Redefined the IDENTIFY command in protocol specification to be
7813           more generic.  It now can be used to query information about
7814           any entity in the SILC Network, including clients, servers and
7815           channels.  The query may be based either the entity's name
7816           or the ID.  Added support for this in both client and server.
7817
7818           Affected files silcd/command.c and lib/silcclient/command.c
7819           and command_reply.c.
7820
7821         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7822           the _from_client and _from_server functions.  Affected file
7823           silcd/command.c.
7824
7825         * Added silc_client_get_channel_by_id_resolve to the file
7826           lib/silcclient/silcapi.h to resolve channel information by
7827           its ID.  Added also silc_client_get_channel_by_id that
7828           does not resolve it from the server.
7829
7830 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7831
7832         * Added SilcServerEntry context into the client library
7833           to represent one server.  The INFO command now allocates
7834           these to save the resolved server info.  For now on the
7835           client library will also keep information about servers,
7836           connected and resolved with INFO.
7837
7838           The INFO command now allocates the SilcServerEntry context
7839           and saves the server info there.  The COMMAND_REPLY in
7840           the INFO now returns the parameters to application in
7841           same order as defined in the protocol specification.
7842
7843           The entries are cached in the client->server_cache.
7844
7845         * The INFO command is now issued after received the Client ID
7846           from the server.  Affected file lib/silcclient/client.c.
7847
7848         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7849           to the application as the mode changer might be server.
7850           It is guaranteed that NULL is not returned anymore to the
7851           application.  Affected file lib/silcclient/client_notify.c.
7852
7853           The ID Type is now also passed to the application so that
7854           it can check whether the returned entry is SilcClientEntry
7855           or SilcServerEntry.
7856
7857           Added new function silc_client_get_server_by_id to return
7858           the server entry by ID.  Affected files are the
7859           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7860
7861         * Do not create the channel in the Irssi SILC Client when issuing
7862           the JOIN command but when received the sucessful JOIN command
7863           reply.  Otherwise the channel might get created even though we
7864           could not join it.  The Affected file is
7865           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7866
7867         * Fixed a channel joining bug in router.  The router must also
7868           check the channel modes, invite and ban lists etc. when serving
7869           the JOIN command sent by normal server.  Affected file is
7870           silcd/command.c.  The router now resolves the client's
7871           information from the server who sent the JOIN command if it
7872           does not know it, and processes the JOIN command only after
7873           that.
7874
7875         * Changed the SilcCommandCb to take new argument; void *context2.
7876           Affected file lib/silccore/silccommand.h
7877
7878           The second argument in the command callbacks in the server now
7879           includes the SilcServerCommandReplyContext if the command was
7880           called as pending command callback from the command reply.
7881           Otherwise it is NULL. When called as pending the status of the
7882           command reply will be checked and if it was erronous the
7883           error will be sent to the original sender of the command.
7884           This way the client always receives the error messages even
7885           though the server was actually the one who received the error
7886           when it resent the command to router, for example.  Affected
7887           files silcd/command[_reply].[ch].
7888
7889         * Fixed sending WHOWAS command's error message to client if
7890           the requested client could not be found.  It was missing.
7891           silcd/command.c.
7892
7893         * Changed the CMODE and CUMODE commands reply arguments in the
7894           protocol specification.  The Channel ID is now sent in both
7895           of the commands to identify the channel.  Implemented this
7896           new feature to the client and server.  Affected files
7897           lib/silcclient/command_reply.c and silcd/command.c.
7898
7899         * Made better checks for invite and ban lists in the JOIN
7900           command in server.  Affected file silcd/command.c.
7901
7902 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7903
7904         * The server now performs the incoming host IP/DNS lookup
7905           using the silc_socket_host_lookup and thus does not block
7906           the server anymore.  Affected file silcd/server.c.
7907
7908         * Completed the multi-thread support for SILC Scheduler in
7909           the lib/silcutil/silcschedule.c.
7910
7911         * Fixed the configure.in.pre to detect the pthread correctly
7912           on various systems.
7913
7914         * Fixed a deadlock in silc_task_queue_wakeup in the file
7915           lib/silcutil/silctask.c.
7916
7917 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7918
7919         * Added new function silc_schedule_wakeup that is used in
7920           multi-threaded environment to wakeup the main thread's
7921           schduler. It needs to be used when a thread adds a new task
7922           or removes a task from task queues. After waking up, the
7923           scheduler will detect the task queue changes. If threads
7924           support is not compiled in this function has no effect.
7925           Implemented the wakeup mechanism to both Unix and WIN32
7926           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7927           lib/silcutil/unix/silcunixschedule.c and the
7928           lib/silcutil/win32/silcwin32schedule.c.
7929
7930         * Added new function silc_task_queue_wakeup to wakeup the
7931           scheduler by the specified task queue.  Affected file
7932           lib/silcutil/silctask.[ch].
7933
7934         * The silc_socket_host_lookup_start now wakes up the scheduler
7935           after adding the timeout task.  Affected file is
7936           lib/silcutil/silcsockconn.c.
7937
7938         * The silc_socket_host_lookup is synchronous now if the threads
7939           support is not compiled in.  However, the callback is still
7940           called asyncronously through the scheduler, anyway.  Affected
7941           file lib/silcutil/silcsockconn.c.
7942
7943 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7944
7945         * Added new function silc_socket_host_lookup to perform
7946           asynchronous IP and FQDN lookups for the socket connection.
7947           Affected files lib/silcutil/silcsockconn.[ch].
7948
7949 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7950
7951         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7952           that may or may not compile the mutex support in.
7953
7954           Changed the silc_mutex_alloc interface. It allocates the
7955           mutex now to the sent pointer and returns TRUE or FALSE.
7956
7957           Affected file lib/silcutil/silcmutex.h.
7958
7959         * Wrote the SILC Task Queue interface to support multi-threads.
7960           Affected file lib/silcutil/silctask.[ch].
7961
7962         * Wrote the SILC Scheduler to support multi-threads.  Affected
7963           file lib/silcutil/silcschedule.c.
7964
7965 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7966
7967         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7968           in lib/silcutil/win32/.
7969
7970 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7971
7972         * Defined SILC Mutex API and SILC Thread API and implemented
7973           them for Unix.  Affected files are
7974           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7975           lib/silcutil/unix/silcunixmutex.c and
7976           lib/silcutil/unix/silcunixthread.c.
7977
7978 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7979
7980         * Fixed the silc_server_remove_clients_by_server's channel
7981           key re-generation.  The hash table handling was incorrect
7982           and would not work with many channels.  Affected file is
7983           silcd/server.c.
7984
7985         * Fixed some memory leaks around the server code.
7986
7987         * Rewrote the silc_server_get_users_on_channel to support IPv6
7988           based Client ID's.  Affected file silcd/server.c.
7989
7990         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7991           specification.  However, a separate document must be written
7992           to define the detailed signing procedure and the payload
7993           associated with the flag.  Defined the flag to the
7994           lib/silccore/silcchannel.h as well.
7995
7996 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7997
7998         * Changed the dynamic tables to static size tables in the
7999           lib/silccrypt/silchmac.c.
8000
8001         * Removed GCC dependencies from the code.  A patch by cras.
8002
8003 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8004
8005         * Do not show the error "Error receiving packet bla bla"
8006           in server if it really was not an error (-2 means that reading
8007           is pending).  Affected file silcd/server.c.
8008
8009 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8010
8011         * Fixed a possible crash in silc_server_remove_clients_by_server
8012           in silcd/server.c.  Fixed there also some memory leaks.
8013
8014         * Fixed the silc_idlist_replace_client_id.  It could replace
8015           wrong key in the hash table.  Affected file silcd/idlist.c.
8016
8017         * Do not check whether there are global users on the channel
8018           if the channel->global_users is FALSE.  Affected functions
8019           silc_server_remove_from_one_channel and
8020           silc_server_remove_from_channels in silcd/server.c.  Also,
8021           do not check if the removed client is local as we can be
8022           sure that global client was not removed from the channel
8023           and checking for global users is not needed.
8024
8025         * The silc_server_remove_clients_by_server now re-generates
8026           the channel keys correctly for those channels that had
8027           clients removed from them.  Affected file silcd/server.c.
8028
8029 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8030
8031         * Found the reason of random crashes in the server.  We weren't
8032           ignoring the SIGPIPE signal (which can be sent in write())
8033           and it crashed the server.  Affected file silcd/silcd.c.
8034
8035 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8036
8037         * Assure that sock->user_data is not NULL in the function
8038           silc_server_packet_send in silcd/packet_send.c.
8039
8040         * Disconnect the remote connection if it could not be added
8041           to any ID lists in the server.  The affected file is
8042           silcd/server.c.
8043
8044         * Check in silc_server_packet_send[_real/dest] that the
8045           socket is not disconnecting and ignore the data if it is.
8046           Affected file silcd/packet_send.c.
8047
8048         * Define inline to __inline on native WIN32 compilation.
8049           Affected file includes/silcwin32.h.
8050
8051         * Added some explicit type casts for inline code since MSVC
8052           require them.  Affected files lib/silcutil/silcbuffer.h,
8053           lib/trq/silcdlist.h and lib/trq/silclist.h.
8054
8055         * Print warning in log files from now on if the packet
8056           decryption fails.  Affected file silcd/server.c.
8057
8058 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8059
8060         * Changed the `say' client operation's interface to accept
8061           new `type' argument to indicate the type of the message sent
8062           by the library.  The application may filter the library's
8063           messages according the type.  The affected file is the
8064           lib/silcclient/silcapi.h.
8065
8066         * Added two new functions to lib/silcclient/silcapi.h:
8067           silc_client_del_client and silc_client_del_client_by_id.
8068           Affected file lib/silcclient/idlist.c.
8069
8070         * Moved the clientincludes.h from includes/ to silc/ and
8071           serverincludes.h from includes/ to silcd/.
8072
8073         * The modes for the CMODE and CUMODE are now passed as
8074           uint32 for application with COMMAND_REPLY.  The affected
8075           file is lib/silcclient/command_reply.c.
8076
8077 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8078
8079         * /WHOIS without arguments shows client's own information.
8080           Affected file lib/silcclient/command.c.
8081
8082         * Changed PING to not accept any arguments.  The specs
8083           says that client can ping only the connected server so
8084           requiring an argument is not needed.  Affected file is
8085           lib/silcclient/command.c.
8086
8087 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8088
8089         * Fixed a fatal bug in private message sending and reception
8090           encryption and decryption when using private message keys.
8091           The implementation was incorrect and did not follow the
8092           specification.  It causd that some of the message were
8093           lost since it did not use the sending and receiving keys
8094           as the protocol suggests.  This has been fixed and will cause
8095           incompatibilities with older clients when sending private
8096           message encrypted with private message keys.  Affected files
8097           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
8098           and various other in Irssi SILC Client.
8099
8100           Added `responder' boolean argument to the functions
8101           silc_client_add_private_message_key[_ske] to indicate when
8102           the key is added as responder or initiator of the key
8103           negotiation.
8104
8105 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8106
8107         * Removed the silc_ske_check_version function and created
8108           a SilcSKECheckVersion callback.  Added also a function
8109           silc_ske_set_callbacks that is now used to set all SKE
8110           callbacks.  The callback functions are not given to
8111           the SKE functions anymore, but this function is used to
8112           set the callbacks.
8113
8114         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
8115
8116         * Added `silc_version' argument to the silc_client_alloc
8117           to define the version of the application for the library.
8118           The library will use the version string to compare it
8119           against the remote host's (usually a server) version
8120           string.  Affected file lib/silcclient/silcapi.h
8121
8122         * Added the KE protocol context to Key Agreement context
8123           in client library so that we can abort the SKE if it
8124           is in process when we get timeout.  Affected file is
8125           lib/silcclient/client_keyagr.c.
8126
8127         * Do not resolve the client ID forever if it returns in the
8128           first time that such client does not exist.  This was done
8129           for example with private message.  Affected file is
8130           lib/silcclient/client_prvmsg.c.
8131
8132 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8133
8134         * Do not add regex.h for WIN32.  The affected file
8135           includes/silcincludes.h.
8136
8137         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
8138           not work yet 100%.  It generates the DLL's automatically
8139           when compiling with --with-win32 under cygwin.
8140
8141 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8142
8143         * lib/contrib/regex.c is not compiled on WIN32.
8144
8145         * Added silc_net_get_socket_opt function to the
8146           lib/silcutil/silcnet.h.
8147
8148         * Added includes/silcwin32.h for WIN32 specific includes
8149           and definitions.
8150
8151         * Do not use ptime structure or any of the posix process
8152           functions on WIN32 in lib/silccrypt/silrng.c.
8153
8154         * Added silc_gettimeofday to provide generic function
8155           for struct timeval on all platforms.  Added the function
8156           to lib/silcutil/silcutil.h.
8157
8158 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8159
8160         * Moved the lib/silccore/silcsockconn.[ch] to the utility
8161           library as they clearly belong there.  As a plus side we
8162           can make the actual socket connection routines platform
8163           specific.
8164
8165           Added also new generic function silc_socket_read and
8166           silc_socket_write (that used to be silc_packet_[read/write].
8167           The implementation of these are platform specific.
8168
8169         * Added WIN32 specific routines of silc_socket_[read/write]
8170           to lib/silcutil/win32/silcwin32sockconn.c.
8171
8172 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8173
8174         * Added preliminary support for native WIN32 compilation under
8175           cygwin (using the -mno-cygwin option for GCC) to the
8176           ./configure.in.pre.  The --with-win32 now prepares the
8177           compilation for native WIN32.
8178
8179         * Rewrote the SILC Scheduler interface in the file
8180           lib/silcutil/silcschedule.h.  The scheduler is now context
8181           based and does not have anymore any global static scheduler.
8182           Moved the Unix scheduler to the lib/silcutil/unix/ directory
8183           and created lib/silcutil/win32 directory for WIN32 based
8184           scheduler.
8185
8186         * Added Unix specific network routines to the
8187           lib/silcutil/unix/silcunixnet.c and the old
8188           lib/silcutil/silcnet.c includes now only generic routines.
8189
8190           Added WIN32 specific network routines to the
8191           lib/silcutil/win32/silcwin32net.c.
8192
8193         * Added Unix specific utility functions from the
8194           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
8195
8196         * Added WIN32 SILC Scheduler to the file
8197           lib/silcutil/win32/silcwin32schedule.c. The code is of course
8198           untested.
8199
8200 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8201
8202         * Do not handle JOIN notify in the server if the target client
8203           is not registered (idata->registered == FALSE).  The affected
8204           file is silcd/packet_receive.c.
8205
8206         * Update the nickrec->founder in event_cumode in the Irssi SILC
8207           client.  Affected file irssi/src/silc/core/silc-channels.c.
8208
8209         * Fixed the CUMODE_CHANGE notify handling in the server when
8210           server and router are announcing their clients on channels.
8211           Now the mode changes are saved and notified correctly.  The
8212           affected file is /silcd/packet_receive.c.
8213
8214         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
8215           They really did not replace the cache entry in the ID Cache.
8216           Now they do that.  Affected file silcd/idlist.c.
8217
8218         * Fixed the KICK notify handling in the Irssi SILC client to
8219           update the channel records so that the kicked client does not
8220           appear to be on the channel.  The affected file is
8221           irssi/src/silc/core/silc-channels.c.
8222
8223         * Always update the conn->current_channel when executing command
8224           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
8225
8226         * Fixed the KILL notify handling in Irssi SILC client to remove
8227           the killed client on all channels.
8228
8229 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8230
8231         * Fixed the silc_parse_command_line to remove extra spaces
8232           from the start and end of the arguments.  Affected file is
8233           lib/silcutil/silcutil.c.
8234
8235         * Cancel and free any active protocol in the function
8236           silc_server_close_connection.  Affected file silcd/server.c.
8237
8238         * Cancel and free any active protocol in the function
8239           silc_client_close_connction.  Affected file is
8240           lib/silcclient/client.c.
8241
8242         * Do not execute the KILL command for clients that are in
8243           history (ie. they are not in the network).  Affected file is
8244           silcd/command.c.
8245
8246         * Fixed KILL notify handling, client does not crash anymore.
8247           Affected file irssi/src/silc/core/silc-channels.c.
8248
8249         * Reduced the default packet buffer size from 2048 to 1024 in
8250           lib/silccore/silcpacket.c.
8251
8252         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
8253           counter to the SKE context that is incresed when the SKE library
8254           performs async operation outside the library.  If the outside
8255           process frees the SKE context and FREED status will be set
8256           and the library will detect after the sync operation that the
8257           libary is freed.  The affected files are
8258           lib/silcske/silcske[_status].[ch].
8259
8260         * Resolve the client entry information in the function
8261           silc_client_channel_message to assure that NULL pointer is not
8262           passed as client entry to the application. */
8263
8264         * Fixed the task timeout calculation to assure that there is
8265           never negative timeouts.  The affected file is
8266           lib/silcutil/silcschedule.c.
8267
8268         * Fixed the channel user mode notification sending in server.
8269           It was sent point-to-point to the router (or to server by router)
8270           but it needs to be destined to a channel.  The routines now
8271           supports sending the channel user mode notifys to the channels
8272           when announcing clients and channels.  Affected files are
8273           silcd/server.c and silcd/packet_receive.c.
8274
8275         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8276           It did not actually replace the old channel entry in the cache.
8277           Affected file lib/silcclient/client_notify.c.
8278
8279 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8280
8281         * Fixed a possible crash in silc_packet_send_prepare.  It now
8282           assures always that there is enough space in the buffer and
8283           at the tail area of the buffer (for MAC).
8284
8285           Fixed the inbound buffer reallocation in silc_packet_read.
8286           It was old code and did not handle the reallocation correctly.
8287           Affected
8288
8289           The affected file is lib/silccore/silcpacket.c.
8290
8291         * Fixed buffer overflow in silc_parse_nickname in the file
8292           lib/silcutil/silcutil.c.
8293
8294 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8295
8296         * make install generates new server keys only if there is not
8297           keys already.
8298
8299 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8300
8301         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8302           Added check that if the NOREPLY is set then we will not send
8303           the away message.  This avoids infinite loop of away messages
8304           if both clients are away.  The affected file is
8305           lib/silcclient/client_prvmsg.c.
8306
8307         * Fixed client crash if /NICK was given without arguments.
8308           Affected file lib/silcclient/command.c.
8309
8310         * Server does not send the invite list in INVITE command back
8311           to the client if the list was not altered.  Added this notion
8312           to the protocol spec as well.  Affected file silcd/command.c.
8313
8314           Fixed possible crash in INVITE command by checking the
8315           value of silc_server_get_client_route command.
8316
8317         * Fixed the INVITE notify type handling.  The arguments are now
8318           taken in correct order and client does not crash.  The affected
8319           file is irssi/src/silc/core/silc-channels.c.
8320
8321           Removed the "Inviting xxx to channel" message from the
8322           client library away and let the application handle it.
8323           Affected file lib/silcclient/command.c.  Added that message
8324           to Irssi SILC client's message formats.
8325
8326         * Fixed CMODE command crash in client.  It now checks the
8327           amount of arguments correctly and does not crash.  The affected
8328           file is lib/silcclient/command.c.
8329
8330         * Do not create new channel automatically in silc_channels_join
8331           but check whether the channel by that name already exists.
8332           Affected file irssi/silc/core/silc-channels.c.
8333
8334         * Do not send the SERVER_SIGNOFF to router if the disconnected
8335           entity was the router.  Affected file silcd/server.c.
8336
8337         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8338           SILC client as it was missing from there.
8339
8340           Added the handling of the KICK notify to the Irssi SILC client
8341           as it was missing.  Added "you have been kicked" message to
8342           Irssi SILC client's message modules formats.
8343
8344           Added the handing of the KILL notify to the Irssi SILC client
8345           as it was missing.  Added the kill message module formats
8346           as well.
8347
8348           The affected file is irssi/src/silc/core/silc-channels.c.
8349
8350         * The router did not save the channel mode the server announced.
8351           Affected file silcd/packet_receive.c.
8352
8353         * Fixed a possible crash in INFO command in server.  If the
8354           server did not provide the server info it crashed.  Affected
8355           file silcd/command.c.
8356
8357 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8358
8359         * Fixed the GETKEY command in the server to check also the
8360           global list.  Otherwise the GETKEY would not work correctly
8361           in normal SILC server.  Affected file silcd/command.c.
8362
8363 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8364
8365         * Fixed GETKEY crash, it crashed if the command did not succseed.
8366
8367 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8368
8369         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8370           is now real and not just an macro interface to GMP.
8371
8372           Removed the entire GMP from the source tree and imported new
8373           NSS MPI library instead.  Reason for removing GMP is that it is
8374           extremely large and compiles extremely slow.  The NSS MPI
8375           is only a few files and compiles in less than 10 seconds.
8376           The speed is also about the same as GMP.  The MPI is imported
8377           to lib/silcmath/mpi.
8378
8379           If the system has GMP installed we will still use the GMP.
8380           If it is not then the NSS MPI will be compiled.
8381
8382 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8383
8384         * Merged a long nickname (127 characters long) crash bugfix from
8385           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8386
8387         * Merged a freed memory reference bugfix from Irssi CVS tree.
8388           Affected file irssi/src/core/commands.c.
8389
8390 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8391
8392         * Added the server's public key sving and verification to the
8393           server when performing the SKE.  This was missing and the
8394           remote server's (or router's) public key was accepted without
8395           checking whether we have it previously or trust it at all.
8396           Affected file silcd/protocol.c.
8397
8398 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8399
8400         * Check in the silc_server_timeout_remote if protocol is active
8401           and make sure that the protocol's final callback is called so
8402           that all memory if freed.  Affected file silcd/server.c.
8403
8404 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8405
8406         * silc_server_whois_send_reply crashed the server if the nickname
8407           was 127 characters long.  Affected file silcd/command.c.
8408
8409 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8410
8411         * Added sanity check to the silc_server_new_client. If the hostname
8412           is provided inside username then check that the provided hostname
8413           really is the same as the resolved one.  If the hostname was not
8414           resolved then check it from the public key.  Affected file is
8415           silcd/packet_receive.c.
8416
8417         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8418           if the server disconnected us and the connection is not valid
8419           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8420
8421         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8422           the library to the lib/silcutil/silcutil.[ch].
8423
8424 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8425
8426         * Close log file after open.  Affected file
8427           lib/silcutil/silclog.c.
8428
8429         * Check whether sock == NULL in silc_client_send_packet and return
8430           if it is.  Affected file lib/silcclient/silcclient.c.
8431
8432         * Check rec->entry == NULL in the Irssi SILC Client before
8433           sending the channel message.  Affecte file is
8434           irssi/src/silc/core/silc-servers.c.
8435
8436 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8437
8438         * Merged a splitted window bugfix from Irssi CVS tree.  The
8439           affected file is irssi/src/fe-text/textbuffer-view.c.
8440
8441         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8442           It did not print nickname.
8443
8444         * Improved the distributions system a bit.
8445
8446 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8447
8448         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8449           irssi/src/fe-text/gui-window.c.
8450
8451         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8452           to in-active server.  The affected file is
8453           irssi/src/silc/core/client_ops.c.
8454
8455         * Resolve the client in USERS command reply if the entry does
8456           not have username resolved.  The affected file is
8457           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8458           command to WHOIS command to really resolve stuff.  The USERS
8459           is not used any more in any critical section so WHOIS can
8460           be used even though it might be slower than IDENTIFY.
8461
8462         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8463           format.
8464
8465 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8466
8467         * Changed the protocol API a bit more consistent in the
8468           lib/silccore/silcprotocol.[ch].
8469
8470         * Changed the following headers to ROBODoc format:
8471
8472                 lib/silccore/silcpayload.h
8473                 lib/silccore/silcprotocol.h
8474                 lib/silccore/silcsockconn.h
8475
8476           All core library headers are now formatted.
8477
8478 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8479
8480         * Fixed a bug in Irssi SILC client; do not show that you are
8481           server/router operator if you really are not.  Affected file is
8482           irssi/src/silc/core/client_ops.c.
8483
8484         * Renamed silc_command_free_payload to silc_command_payload_free.
8485           Affected file lib/silccore/silccommand.h
8486
8487         * Added silcmath.h to include the prototoypes of various routines
8488           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8489           silcprimegen.h.
8490
8491         * Changed the following headers to ROBODoc format:
8492
8493                 lib/silccore/silcchannel.h
8494                 lib/silccore/silccommand.h
8495                 lib/silccore/silcid.h
8496                 lib/silccore/silcidcache.h
8497                 lib/silccore/silcmode.h
8498                 lib/silccore/silcnotify.h
8499                 lib/silccore/silcpacket.h
8500                 lib/silcmath/silcmath.h
8501
8502 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8503
8504         * Added checking to the server code not to start the server if
8505           ciphers and stuff are not configured properly.  Affected files
8506           silcd/serverconfig.[h] and silcd/server.c.
8507
8508         * Changed the layout of the header files of the public interfaces
8509           in the SILC libraries.  The new layout supports ROBODoc
8510           documentation tool (and some others) so that it is easy to create
8511           a library reference manual.  All the other headers and source
8512           code must still follow the CodingStyle document.  Also source
8513           code must not include these ROBODoc stuffs, only the headers.
8514           Furthermore, all public interface headers must now be named
8515           by using `silc' prefix, example: silcapi.h, silccipher.h.
8516           Some files were renamed due to this.  All the other headers
8517           must not be used as public interfaces.  I will update the
8518           CodingStyle document later.  Changed following headers, so far:
8519
8520                 lib/silcclient/silcapi.h
8521                 lib/silccore/silcauth.h
8522                 lib/silccore/silcprivate.h
8523                 lib/silccrypt/silcdh.h
8524
8525 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8526
8527         * Updated TODO.
8528
8529         * Removed silc_client_packet_send_flush from the client library
8530           as it is not needed.  Affected file lib/silcclient/client.[ch].
8531
8532         * Added printing of message of unresolved authentication method
8533           to the Irssi SILC client.  Added it to the module formats.
8534           Removed the same message from the client library.
8535
8536 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8537
8538         * Added new distribution feature, DISTLABEL.  Every distribution
8539           can define own preprocessor label that can be used in the
8540           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8541           file distributions, acconfig.h.pre and prepare.
8542
8543 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8544
8545         * Added Makefile.defines_int to include the actual definitions
8546           for Makefile.defines.in.  Tested the new distribution system,
8547           created distributions and tested installation.
8548
8549         * Added AWAY message printing to the Irssi SILC client.  Added
8550           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
8551
8552         * Added SCONNECT command to call the SILC's CONNECT command.
8553           Cannot use CONNECT directly since Irssi uses that internally.
8554           Affected file irssi/src/silc/core/silc-servers.c.
8555
8556           Added ACTION local command.  It is same as ME command but takes
8557           the channel as mandatory argument.
8558
8559           Rewrote some of the Irssi's help files to suite for SILC
8560           protocol.
8561
8562 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8563
8564         * Added Makefile.defines[.in] that should for now on be included
8565           in all Makefile.am file in the source tree.  That file includes
8566           all common compilation definitions for SILC source tree.
8567
8568 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8569
8570         * Minor changes to the ./prepare script to change the package
8571           name according the distribution name to the configure.in.
8572
8573 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8574
8575         * Created new distribution system.  Added file `distributions'
8576           that defines all the distributions that can be created out of
8577           the SILC source tree.  The ./prepare script now reads that
8578           file to determine how to prepare the distributions.  The
8579           first argument to the ./prepare is the name of the distribution
8580           and second is the version of the distribution.  If given
8581           without arguments it creates the default (toolkit) distribution
8582           with the default version (defined in ./prepare).
8583
8584           All Makefile.am files that are subject to the distributions
8585           are now named as Makefile.am.pre.  These are ./Makefile.am
8586           and lib/Makefile.am.  Others may be changed later.
8587
8588 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8589
8590         * Added invite list, ban list, some key management and connection
8591           error message printing to module formats in the Irssi SILC client.
8592
8593         * Added new silc_client_set_away_message to set the away message
8594           that is back to the person who sent private message.  The
8595           affected file lib/silcclient/silcapi.h and the
8596           lib/silcclient/client_prvmsg.c.
8597
8598 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8599
8600         * Fixed the private message sending in the Irssi SILC client,
8601           added local command KEY to the Irssi SILC client.
8602
8603           Added key management and key agreement message formats to the
8604           irssi/src/fe-common/silc/module-formats.[ch].
8605
8606           Added USERS (alias WHO) printing, server/router operator
8607           indication and LIST command printing to the module formats.
8608
8609 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8610
8611         * Fixed channel joining notify handling, cumode notify handling
8612           from Irssi SILC client.
8613
8614         * Added SILC specific module-formats to the Irssi SILC client so
8615           that SILC specific message hilighting, colors etc is possible.
8616           Affected file irssi/src/fe-common/silc/module-formats.[ch].
8617
8618           Added channel mode, channel user mode, actions, notices,
8619           whois and whowas printing to the the module-formats.c.
8620
8621         * Fixed a bug in channel deletion in the server.  The channel
8622           is not left to the cache even if the channel founder auth mode
8623           is set when there are no users anymore on the channel.  Affected
8624           file silcd/server.c.
8625
8626         * The silc_net_localhost now resolves the entire hostname including
8627           the domain name.  Affected file lib/silcutil/silcnet.c.
8628
8629 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8630
8631         * Changed the ask_passphrase client operation to be ascynchronous.
8632           It has now a completion callback and a context that the
8633           application must call after it has got the passphrase from
8634           the user.  Affected files lib/silcclient/silcapi.h,
8635           lib/silcclient/protocol.c, lib/silcclient/command.c and
8636           silc/client_ops.c.
8637
8638           Added SilcAskPassphrase callback that the application calls
8639           to deliver the passphrase to the library.
8640
8641         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
8642           The public key verification and especially a certificate
8643           verification is asynchronous procedure.
8644
8645           Added new SILC_SKE_STATUS_PENDING status to indicate the
8646           request is pending and a callback will be called to finalize
8647           the request.
8648
8649           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
8650           indicate that remote end did not send its public key (or
8651           certificate), even though we require it.  Added check for this
8652           condition in the SKE.  This was a security bug, now fixed.
8653
8654           Defined new SilcSKEVerifyCbCompletion callback that is called
8655           when the verification process is completed.
8656
8657           The affected files lib/silcske/silcske_status.h and
8658           lib/silcske/silcske.[ch].
8659
8660         * Changed the verify_public_key client operation to be async
8661           as well.  Defined SilcVerifyPublicKey callback that is used to
8662           indicate the success of the public key verification process.
8663
8664           Changed the server and client to use the new async client
8665           operations.
8666
8667         * Changed the Irssi SILC client's internal scheduler to be called
8668           twice as many times as it used to be.  As a result the client
8669           should be a bit faster now.  Affected file is
8670           irssi/src/silc/core/silc-core.c.
8671
8672         * Added support to Irssi SILC client of asynchronous public key
8673           verification and passphrase inquiry.  Affected file is
8674           irssi/src/silc/core/silc-core.c.
8675
8676 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8677
8678         * Do not say "You have left channel %s" in client library.
8679           Moved it to the application.  Affected files are
8680           lib/silcclient/command.c and silc/client_ops.c.
8681
8682         * Fixed silc_client_get_clients.  Command context was not
8683           duplicated and was freed memory in the callback.  Affected
8684           file lib/silcclient/idlist.c.
8685
8686         * Do not say "you are now talking..." on JOIN command in the
8687           client library.  The appliation must handle it.
8688
8689         * Do not say ".. changed topic to" in command reply in the
8690           client libary.  The application must handle it.
8691
8692         * Fixed TOPIC command sending in the client library.
8693
8694         * Fixed a memory leak in silc_client_command_free in the file
8695           lib/silcclient/command.c.
8696
8697 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8698
8699         * Imported a modified version of Irssi client to the source tree.
8700           The Irssi will be used to create a new client called
8701           Irssi SILC.  Imported to irssi/.
8702
8703           Added silc_core_init_finish function to the Irssi.  Affected
8704           file irssi/configure.in.
8705
8706           A lot changes in the Makefile.ams around the irssi tree.
8707
8708 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8709
8710         * Do not rehash if the new size is same as the old size of the
8711           hash table, in the silc_hash_table_rehash*.  The affected file
8712           lib/silcutil/silchashtable.c.
8713
8714         * Replaced hash_table_del_by_context calls from the server
8715           (when channel->user_list and client->channels) to the
8716           hash_table_del as it is sufficient and faster.
8717
8718 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8719
8720         * Added silc_hash_table_list, silc_hash_table_get and the
8721           SilcHashTableList structure to provide an alternative way to
8722           traverse the hash table.  The affected files are
8723           lib/silcutil/silchashtable.[ch].
8724
8725         * Changed the server's idlist routines to use the hash table
8726           routines to optimize the code.
8727
8728 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8729
8730         * Replaced the client entry's `channel' list and channel entry's
8731           `user_list' list to hash tables for optimized lookup.  Changed
8732           the code to use the hash table interface around the code.
8733           Affected file lib/silcd/idlist.[ch].
8734
8735         * Added `auto_rehash' boolean argument to the function
8736           silc_hash_table_alloc to indicate whether the hash table should
8737           auto-rehash when it thinks is appropriate time.  It will
8738           increase the hash table size if the there is twice as much
8739           entries in the table than the size of the table, and will
8740           decrease the size if there are twice as less entries than
8741           the size of the table.
8742
8743 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8744
8745         * Fixed silc_xxx_get_supported to not crash at some circumstances.
8746
8747 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8748
8749         * silc_idcache_purge_by_context deletes the entry now by context
8750           as it is supposed to do.  Affected file lib/silccore/idcache.c.
8751
8752         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
8753           client is not anymore valid (WHOWAS givens the info) and not
8754           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
8755
8756 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8757
8758         * Removed the `data' and `data_len' arguments from the ID Cache
8759           interfaces and added `name' argument.  ID Cache does not handle
8760           anymore the binary data only a names associated with given ID.
8761
8762         * When hashing a Client ID with silc_hash_id the entire ID is
8763           not hashed anymore, instead only the hash of the Client ID is
8764           hashed.  This way we can access the Client ID from the cache
8765           with Client ID but with the hash of the ID (which is a hash of
8766           the nickname) as well without any difference in performance.
8767
8768           Added also silc_idcache_find_by_id_one_ext to do one on one
8769           searching when we have the actual ID.  Added also function
8770           silc_hash_client_id_compare.  The affected files are
8771           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8772
8773         * When hashing the name associated with a ID it is always done
8774           in lowercase.  This way we can access the cache without worrying
8775           about case-sensitivity, even though, for example nicknames are
8776           case sensitive.
8777
8778         * Fixed a bug in server with channel message sending.  It put
8779           wrong ID type as destination ID.  The affected file
8780           silcd/packet_send.c.
8781
8782         * silc_idcache_del_by_context now deletes from all hash tables
8783           by context.  Affected file lib/silccore/idcache.c.
8784
8785 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8786
8787         * Changed the client library to use the new ID Cache interface.
8788           Changes around the source tree.
8789
8790         * Added silc_hash_table_rehash_ext to rehash with specific
8791           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8792
8793         * Added silc_hash_string_compare to compare two strings in the
8794           hash table.  Affected file lib/silcutil/silcutil.[ch].
8795
8796 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8797
8798         * Added new function silc_idcache_del_by_context into the
8799           lib/silccore/idcache.[ch].
8800
8801         * Changed the server's ID list routines to use the new ID Cache
8802           interface.  Changes around the source tree.
8803
8804 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8805
8806         * Added silc_hash_table_del[_by_context]_ext functions in to the
8807           lib/silcutil/silchashtable.[ch].
8808
8809           Removed silc_hash_table_find_all* routines and added new
8810           silc_hash_table_find_foreach to replace them.
8811
8812           Added silc_hash_table_replace_ext function as extended
8813           replacing function.  Separated the simple hash table interface
8814           from the extended hash table interface in the file
8815           lib/silcutil/silchashtable.h.
8816
8817         * Fixed minor bugs and changed it to use some of the new
8818           hash table functions in lib/silccore/idcache.c
8819
8820 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8821
8822         * Added new function silc_hash_table_find_all to return all keys
8823           in the hash table by the specified key.  As the hash table is
8824           collision resistant it also makes it possible to have several
8825           duplicate keys in the hash table.  This function may be used to
8826           find all of the keys from the hash.
8827
8828           Added user_context arguments to the SilcHashFunction,
8829           SilcHashCompare and SilcHashDestructor to deliver user specified
8830           context.
8831
8832           Added new fuctions silc_hash_table_find[_all]_ext to do
8833           extended lookup with specified hash and compare functions and
8834           specified user contexts.
8835
8836           Added new function silc_hash_table_add_ext to add the key
8837           with specified hash function and user context.
8838
8839           Added new function silc_hash_table_foreach to traverse all
8840           entrys in the hash table.  Added SilcHashForeach callback
8841           function.
8842
8843           Added new function silc_hash_table_del_by_context to delete
8844           the entry only if the context associated with the key matches.
8845
8846           Affected files are lib/silcutil/silchashtable.[ch].
8847
8848         * Removed silc_hash_[server/client/channel]_id and added just
8849           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8850           silc_hash_id_compare to compare two ID's using as the hash table
8851           comparison function.  Added also silc_hash_data to hash
8852           binary data and silc_hash_data_compare to compare it.
8853
8854         * Removed silc_idlist_find_client_by_hash as it is not needed
8855           anymore.  Affected file silcd/idlist.[ch].
8856
8857         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8858           to use internally the SilcHashTable.  The new ID Cache is a lot
8859           faster than the old one.  Some of the ID Cache interface was also
8860           rewritten and obsolete and stupid functions were removed.
8861
8862 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8863
8864         * Added entry_count field to the SilcHashTable to keep the number
8865           of the entries in the table.  Implemented the function
8866           silc_hash_table_rehash.  Added new function
8867           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8868
8869           Fixed a minor bug in silc_hash_table_free.
8870
8871         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8872           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8873           into the lib/silcutil/silcutil.[ch].
8874
8875 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8876
8877         * Implemented a collision resistant hash table into the
8878           lib/silcutil/silchashtable[ch].  See the header and the source
8879           for the SilcHashTable API.
8880
8881 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8882
8883         * Merged dotconf version 1.0.2 into lib/dotconf.
8884
8885 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8886
8887         * Do not compile anything in lib/silcsim/* if the SIM support
8888           is not enabled.  The tree should now compile without problems
8889           under cygwin.
8890
8891 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8892
8893         * Compiled the SILC under cygwin.  Compiled and tested briefly
8894           without problems.  More tests needed.  The SIMs didn't compile
8895           though.
8896
8897         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8898
8899         * Fixed possible crash in silc_get_username in the
8900           lib/silcutil/silcutil.c.
8901
8902 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8903
8904         * Fixed a va_arg in silc/client_ops.c.
8905
8906         * Oops, RC5 routines were named AES and caused some problems
8907           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8908
8909 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8910
8911         * Added new SilcIDIP structure into the lib/silccore/id.h and
8912           replaced the old `ip' fields from all SILC ID's to that type.
8913           This is a step towards IPv6 support.
8914
8915           The silc_id_get_len takes now the ID as an extra argument.
8916           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8917           both IPv4 and IPv6 based ID's.
8918
8919           The affected files are lib/silccore/id.[ch] and other files
8920           around the tree using these routines.
8921
8922         * Removed the ID length arguments in server from various
8923           silc_server_send_notify_* routines -> they are not needed
8924           anymore.
8925
8926 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8927
8928         * Fixed memory leak in silc_encode_pem_file in the file
8929           lib/silcutil/silcutil.c.
8930
8931 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8932
8933         * Check minor version as well in the SKE.  Affected files are
8934           silcd/protocol.c and lib/silcclient/protocol.c.
8935
8936         * Added --identifier option to the server so that an identifier
8937           can be when creating the public key for the server.  Affected
8938           file is silcd/silcd.c.
8939
8940         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8941           lib/silccrypt/silcpkcs.c.
8942
8943 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8944
8945         * Register default ciphers and stuff when using -C option with
8946           the server.  Affected file sildc/silcd.c.
8947
8948         * Put back the servers public key filename format, it is better
8949           than the new one.  For now, the client keys are saved with the
8950           new filename format.  The affected file silc/client_ops.c.
8951
8952         * Implemented the Cipher API for the rest of the ciphers that
8953           did not implement it or implemented it the wrong way.
8954
8955 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8956
8957         * Register default ciphers and stuff when using the -S option
8958           in the client.  Affected file silc/silc.c.  Same also when
8959           creating new key pair with -C option.
8960
8961 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8962
8963         * Fixed the silc_verify_public_key client operation function to
8964           save the public keys differently.  The fingerprint is now
8965           used as filename and not the hostname.  This way also the
8966           client keys are saved uniquely and not with hostnames.  The
8967           affected file is silc/client_ops.c.
8968
8969         * Trimmed the silc_hash_fingerprint function to remove extra
8970           whitespaces from the end of the fingerprint.  The affected
8971           file is lib/silccrypt/silchash.c.
8972
8973         * Updated TODO.
8974
8975         * Added silc_cipher_register_default function to register all
8976           default ciphers.  It can be used when configuration files
8977           does not exist and the application does not want any specific
8978           ciphers in any specific order.
8979
8980           The SilcDList is now used as silc_cipher_list dynamically
8981           allocated cipher list.  Removed the static list all together
8982           and now all ciphers must be allocated to the dynamic list.
8983           The silc_cipher_alloc routine was changed to check only the
8984           dynamic list.
8985
8986           All silc_cipher_* routines that used to return int returns
8987           now bool.
8988
8989           The affected files lib/silccrypt/silccrypt.[ch].
8990
8991         * The same thing was done to silc_hash_* as for silc_cipher_*
8992           routines.  Affected files lib/silccrypt/silchash.[ch].
8993
8994         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8995           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8996           Added also silc_pkcs_[un]register[_default] functions.
8997           Removed the data_context from the PKCS API.
8998
8999         * Added silc_hmac_register_default function to register default
9000           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
9001           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
9002           to unregister all hmacs at once.
9003
9004         * Register the default ciphers, hash functions, PKCSs and HMACs
9005           if client's configuration file does not exist.  The affected
9006           file silc/silc.c.
9007
9008         * The client did not load the hash functions from the SIM
9009           modules at all.  Added support for this.  Affected file is
9010           silc/clientconfig.c.
9011
9012         * When decoding public key with silc_pkcs_public_key_decode, check
9013           the supported algorithm only if PKCS are registered.  Affected
9014           file lib/silccrypt/silcpkcs.c.  The same was done with the
9015           silc_pkcs_private_key_decode.
9016
9017         * Fixed the SILC List routines to keep the list always in order.
9018           It used to change the list's order when traversing the list but
9019           not it preserves the order.  Affected file lib/trq/silclist.h.
9020
9021 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9022
9023         * Added the client library to use the SilcSocketConnection's
9024           reference counter (by silc_socket_dup) to prevent the bug that
9025           the socket object may be freed underneath async operation.
9026
9027         * The name resolv library checking fixes in the configure.in.pre.
9028           The patch by salo.
9029
9030         * Created new version of the protocol drafts for future
9031           development. The -03 drafts are the ones that will be changed
9032           in the trunk now and the -02 will remain as they are.
9033
9034         * Send list of CUMODE notifys to the router when announcing
9035           the channel users to the router.  Affected file silcd/server.c.
9036           If the router receiving channel founder CUMODE for a channel
9037           that already has channel founder it will send CUMODE notify
9038           to the sender to remove the channel founder rights from the
9039           announced client.  Affected file silcd/packet_receive.c.
9040
9041         * The CUMODE notify may now use Server ID as well as the entity
9042           who changes the mode.  Updated protocool specs.
9043
9044         * Updated INSTALL and README files.
9045
9046 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9047
9048         * New web pages in the http://silc.pspt.fi.  The pages was
9049           designed by salo.
9050
9051         * Updated CREDITS.
9052
9053 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9054
9055         * Implemented the [DenyConnectin] config section in the server.
9056           Added silc_server_config_denied_conn to check whether incoming
9057           connection is denied.  Affected file silcd/serverconfig.[ch].
9058
9059         * Do not check the ports when checking the incoming configuration
9060           data if the port is 0, meaning any.  Affected file is
9061           silcd/serverconfig.c.
9062
9063 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9064
9065         * Fixed buffer overflow in silc_string_compare in the file
9066           lib/silcutil/silcutil.c.
9067
9068         * Fixed double free in silc_server_command_leave in the file
9069           silcd/command.c.
9070
9071 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9072
9073         * Fixed the version checking in the server.  Affected file is
9074           silcd/protocol.c.
9075
9076 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9077
9078         * Fixed the configuration data fetching when accepting new
9079           connections in the server.  Affected file silcd/server.c.
9080
9081 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9082
9083         * Added `sender_entry' argument to the function
9084           silc_server_packet_relay_to_channel so that we can check
9085           whether some destination actually belongs to the same route
9086           the sender belongs (ie, we must not resend the packet to the
9087           sender).  Affected file silcd/packet_send.[ch].
9088
9089         * Added `servername' field to the SilcClientEntry in the server
9090           to hold the name of the server where client is from.  Affected
9091           file is silcd/idlist.h.
9092
9093 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9094
9095         * Moved the channel message encrypting in the router betwen
9096           router connections from silc_server_channel_message to the
9097           silc_server_packet_relay_to_channel since we want to check
9098           whether we have anybody channel before encrypting anything.
9099           Affected files silcd/packet_[receive/send].c.
9100
9101 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9102
9103         * Fixed the [AdminConnection] server config section to support
9104           multiple entries.  Affected file silcd/serverconfig.c.
9105
9106         * Added support into the server to check the validity of the
9107           incoming connection before executing any KE or authentication
9108           protocols.
9109
9110         * The connection configuration is now saved to the KE and
9111           connection auth protocol contexts and not fetched anymore in
9112           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
9113
9114         * The local hosts listenning address and port is also resolved
9115           now when starting the server.  We want to have the socket object
9116           to include the real address and port for the listener.  Added
9117           new function silc_net_check_local_by_sock into the files
9118           lib/silcutil/silcnet.[ch].
9119
9120         * Fixed a broadcast bug in server -> do not broadcast if we
9121           are standalone.
9122
9123         * Fixed a routing bug.  Do not route broadcast packets ever.
9124           Broadcast packets must be processed always and not routed since
9125           they may be destined to some other host than yourself and thus
9126           would get routed without no good reason.  Affected file is
9127           silcd/server.c.
9128
9129         * Added function silc_server_config_is_primary_route to check
9130           whether primary router connection has been configured (a router
9131           configuration that we are initiating).  If there is not, we
9132           will assume that there is only two routers in the SILC network
9133           and we will use the incoming router connection as our primary
9134           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
9135
9136         * Changed the order of the broadcasting.  Broadcast _after_ the
9137           packet has been processed not before.  Affected file is
9138           silcd/server.c.
9139
9140         * Fixed a [ClientConnection] parsing bug.  The port was never
9141           parsed correctly thus resulting to port 0.  Affected file
9142           silcd/serverconfig.c.
9143
9144         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
9145           argument and did not set the broadcast packet flag.  Affected
9146           file silcd/packet_send.c.  Fixed same bug in the function
9147           silc_server_send_notify as well.
9148
9149         * If we receive NEW_ID packet for our own ID in the server, ignore
9150           the packet.
9151
9152 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9153
9154         * Updated TODO.
9155
9156         * Removed the nickname from the Private Message Payload.
9157           Updated the code and the protocol specs.
9158
9159         * Updated protocol specs for submitting to the IETF.
9160
9161         * Tweaked the Random Number Generator a bit.  Affected file
9162           lib/silccrypt/silcrng.c.  Exported a new function
9163           silc_rng_[global]_add_noise which can be used to add more
9164           noise to the RNG.
9165
9166 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9167
9168         * Do not parse packets with different timeout when protocol
9169           is active -> may cause problem with rekey.  Affected file
9170           silcd/server.c.
9171
9172         * When server receives signoff notify it must not create
9173           new channel key if the client is on any channels since the
9174           sender of the signoff notify will create it.
9175
9176 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9177
9178         * Added printing of error messages during SKE protocol from the
9179           failure packet sent by server during SKE.  Affected file
9180           silc/client_ops.c.
9181
9182         * Removed the client's failure_callback handling with timeout
9183           and handle it immediately when received.
9184
9185         * The SKE library returned wrong type in SUCCESS and FAILURE
9186           packets.  They must be 32 bit MSB not 16 bit MSB.
9187
9188 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9189
9190         * Ok, rewrote the logic of the re-key and now it seems to work.
9191           I tested it on high traffic with frequent re-keys without
9192           problems.  Added hmac_receive (and renamed hmac to hmac_send)
9193           in SilcClientConnection in lib/silcclient/client.h and
9194           in SilcIDListData in silcd/idlist.h.  Also, removed the
9195           SilcPacketParserContext's cipher and hmac fields as they are
9196           not needed anymore and actually caused some problems when
9197           the ciphers and hmac's changed underneath the packet parser.
9198
9199 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9200
9201         * If re-key protocol is active then process the incoming packets
9202           synchronously since we must assure that icoming packets encrypted
9203           with the old key is processed before the new keys is set to
9204           use.  This is true other packets than for REKEY packets.
9205           Affected file silcd/server.c.  The same was done to client library
9206           as well, affected file lib/silcclient/client.c.
9207
9208 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9209
9210         * Fixed bug in client and server to accept the force send if
9211           the packet is send from silc_[server/client]_packet_process
9212           function.  Otherwise the packets are never delivered, oops.
9213
9214 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9215
9216         * Disable force sending of packets when REKEY protocol is active.
9217           We must assure that no packet is sent directly when rekey is
9218           performed.  All packets must be sent through packet queue.
9219           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
9220           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
9221           function is silc_[server/client]_packet_send_real to check
9222           the situation.
9223
9224         * Replaced the SIM paths from example config files to
9225           /usr/local/modules.  Also, make install creates now
9226           /usr/local/silc/logs directory to hold all the SILC server
9227           logs.
9228
9229 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9230
9231         * Made the configure.in.pre work on Solaris.  Patch by salo.
9232
9233         * Made all ciphers compatible with non-x86 machines.  Defined
9234           CBC mode macros into lib/silccrypt/ciphers_def.h.
9235
9236 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9237
9238         * Fixed the make install.
9239
9240 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9241
9242         * When MAC computation fails the silc_packet_decrypt returned 0
9243           even though it was supposed to return -1.  Fixed this.  The
9244           affected file is lib/silccore/silcpacket.c.
9245
9246         * Do not replace the config files in /etc/silc (in make install)
9247           if they already exist.  Affected file ./Makefile.am.
9248
9249         * Do not send re-key packets immediately but through packet queue.
9250           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
9251
9252         * Changed silc_net_check_host_by_sock to return FALSE if the
9253           IP/DNS could not be resolved.  Though, it returns the IP address
9254           now even if it could not resolve it (but returns also FALSE).
9255           Affected file lib/silcutil/silcnet.[ch].
9256
9257 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9258
9259         * Added silc_pkcs_decode_identifier to decode the public key's
9260           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
9261           Added also silc_pkcs_free_identifier.  Added also new context
9262           SilcPublicKeyIdentifier.
9263
9264         * Added -S option to the silc client.  It is used to dump the
9265           contents of the specified public key file.
9266
9267         * Changed the PKCS api to return the public key length when
9268           setting the public key.
9269
9270         * Fixed a fatal bug in the public and private key file loading.
9271           Affected file lib/silccrypt/silcpkcs.c.
9272
9273         * Execute the packet parsing for client with zero (0) timeout
9274           if the protocol is active.  Affected file silcd/server.c.
9275
9276 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9277
9278         * Made the key generation options to the silcd program.  Added
9279           -C option, equivalent to client's option.
9280
9281         * Added new [ServerKeys] config section to the server.  It
9282           configures the server's public and private key.
9283
9284         * Defined generic Public Key Payload into the protocol
9285           specification to send specific type of public keys and
9286           certificates.
9287
9288         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9289           public key or certificate.
9290
9291         * Implemented the GETKEY command to the server and to the
9292           client library and on user interface.
9293
9294 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9295
9296         * Made preliminary `make install' work.
9297
9298 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9299
9300         * Added SilcServerRekey context into silcd/idlist.h.
9301
9302         * Added the PFS support as defined in the specification to the
9303           SKE protocol.  Affected files lib/silcske/*.c.
9304
9305         * Added `ske_group' field to the SilcServerRekey context to hold
9306           the number of the SKE group that is used with PFS in re-key.
9307           Affected file silcd/idlist.h.
9308
9309         * Added PFS re-key support to the server.  Affected file is
9310           silcd/protocol.c.
9311
9312         * Added silc_protocol_cancel to cancel execution of the next
9313           state of the protocol.  Affected file is
9314           lib/silccore/silcprotocol.[ch].
9315
9316         * Added the re-key support with and without PFS to the client
9317           library.  Re-key is performed once in an hour, by default.
9318
9319           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9320           Added silc_client_rekey_callback and silc_client_rekey_final.
9321           Affected files are lib/silcclient/protocol.[ch] and
9322           lib/silcclient/client.[ch].
9323
9324         * Removed the `hmac_key' and `hmac_key_len' fields from the
9325           SilcClientConnection structure; not needed.  Affected file is
9326           lib/silcclient/client.h.
9327
9328         * Updated TODO.
9329
9330 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9331
9332         * Do not ask whether user wants to use the negotiated private key
9333           for private messages, just use it.  Affected file is
9334           silc/local_command.c.
9335
9336         * Added `send_enc_key' and `enc_key_len' fields to the
9337           SilcIDListData structure since they are needed in the re-key
9338           phase.  Affected file is silcd/idlist.[ch].
9339
9340         * Implemented the simple re-key protocol into the server.
9341           Affected files silcd/server.c and silcd/protocol.[ch].  The
9342           re-key will be performed once in an hour, by default.
9343
9344           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9345           Added silc_server_rekey, silc_server_rekey_callback and
9346           silc_server_rekey_final.
9347
9348         * Removed Tunneled flag from the protocol.  Updated the code
9349           and the specifications.
9350
9351         * Adde `pfs' field to the SilcIDListData to indicate whether
9352           the PFS is to be performed in the re-key.  Affected file is
9353           silcd/idlist.h.
9354
9355 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9356
9357         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9358           int64 of at least the xintXX size.  If void * is less that 4
9359           bytes uint32 * will be used.  Defined bool as boolean.
9360
9361         * Changed _ALL_ unsigned long and unsigned int to uint32,
9362           unsgined short to uint16 in the source tree.
9363
9364         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9365           not handle clients that has entry->data.registered == FALSE.
9366           They are not in the network anymore.  Affected file is
9367           silcd/server.c.
9368
9369 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9370
9371         * Implemented the sending of the SERVER_SIGNOFF notify in the
9372           server.  Affected file is silcd/server.c.
9373
9374         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9375           Added also silc_notify_payload_encode_args into the
9376           lib/silccore/silcnotify.[ch].
9377
9378         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9379           Affected file silcd/packet_receive.c.
9380
9381         * Implemented the SERVER_SIGNOFF notify handling in the client
9382           library.  Affected file lib/silcclient/client_notify.c.  Also,
9383           implemnted the printing of the SERVER_SIGNOFF info to the
9384           application.  Affected file silc/client_ops.c.
9385
9386         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9387           if the deleting was successful.  Affected file silcd/idlist.[ch].
9388
9389         * Added support for public key authentication in the connection
9390           authentication protocol in the client library.  Affected file
9391           lib/silcclient/protocol.c.
9392
9393         * Changed the server's silc_idlist_get_clients_by_* interface
9394           to support already allocated array so that new entries may be
9395           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9396           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9397           and command replies.
9398
9399         * All command reply functions in the server now calls the
9400           pending command callback even if error occured.  This way the
9401           error will be delivered to the client as well.  Affected files
9402           silcd/command.c and silcd/command_reply.c.
9403
9404         * Fixed INFO command to return local server's info if no server
9405           was provided.  Affected file lib/silcclient/command.c.
9406
9407         * Removed RESTART command for good.  Updated the code and the
9408           protocol specs.
9409
9410         * Rewrote parts of the task system.  It is a bit simpler now.
9411           Removed unsued task priorities. The affected files are
9412           lib/silcutil/silctask.[ch].
9413
9414 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9415
9416         * Moved the USERS printing from the library to the application.
9417           Affected files lib/silcclient/command.c and silc/client_ops.c.
9418
9419 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9420
9421         * Updated TODO.
9422
9423         * Added channel key re-key support.  The re-key is perfomed
9424           only by the router and is done once in an hour.  Added `rekey'
9425           field to the SilcChannelEntry in the server.  Affected files
9426           silcd/server.c and silcd/idlist.h.
9427
9428         * Added silc_task_unregister_by_context into the file
9429           lib/silcutil/silctask.[ch].
9430
9431 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9432
9433         * Added SILC_UMODE_GONE mode to indicate when the client is not
9434           present in the SILC network.  Added also support to the local
9435           command AWAY that will set this mode.  Added support of showing
9436           "xxx is gone" in WHOIS command.  The USERS command shows the
9437           gone status as well.
9438
9439         * Fixed setting server and router operator privileges in the
9440           server's UMODE command.  Affected file silcd/command.c.
9441
9442         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9443           new KE payload is equivalent to the old KE2 payload.
9444
9445           Cleaned up the SKE Start Payload parsing.  It now uses the
9446           simple buffer unformatting to do the parsing.  A lot faster
9447           now.
9448
9449           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9450           to the SKE that is used to indicate whether both of the SKE
9451           parties should perform authentication.  By default only the
9452           responder performs authentication.  By setting this flag also
9453           the initiator must do authentication.  By default it is unset
9454           since in normal SKE case, client to server connection, only
9455           the responder should do authentication.  When doing SKE between
9456           two clients both should perform authentication.  Updated the
9457           code and the protocol specs.
9458
9459         * A little fix to IDENTIFY command in the server.  Search the
9460           client first by hash not nickname.  Affected file is
9461           silcd/command.c.
9462
9463         * Fixed the silc_client_close_connection to support closing
9464           the client to client connections wihtout deleting too much
9465           data.  Affected file lib/silcclient/client.c.
9466
9467         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9468           are received if protocol used to be active but is not anymore
9469           the application would crash due to NULL pointer dereference.
9470           Affected files silcd/server.c and lib/silcclient/client.c.
9471
9472         * Added `hash' field to the SilcClientConnection to include
9473           the hash function negotiated in the SKE protocol.
9474
9475         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9476           to set the channel founder authentication data.  A client can
9477           claim the founder rights later by providing the authentication
9478           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9479           This way the channel founder can regain the channel founder
9480           privileges even it is left the channel.  This works only on
9481           local server and the client must be connected to the same
9482           server to be able to regain the founder rights.  Updated the
9483           protocol specs accordingly.
9484
9485           Added support to the CMODE command in the client to set the
9486           founder auth data.  Read the README to see how to set it.
9487
9488           Added support to the CUMODE command to claim the founder
9489           rights.  Read the README to see how to do it.
9490
9491           Added support for the founder authentication to the Channel
9492           Entry in the server.  Affected file silcd/idlist.h.
9493
9494           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9495           server's CMODE command.  Affected file silcd/command.c.
9496
9497         * Added the following new functions into lib/silccore/silcauth.[ch]:
9498           silc_auth_get_method and silc_auth_get_data.
9499
9500         * The server now saves the remote hosts public key to the
9501           SilcIDListData pointer.  Affected file silcd/protocol.c.
9502
9503         * The normal server now does not remove the channel entry from
9504           the cache if the founder authentication data is set.  It used
9505           to remove it if the founder was the last one on the channel on
9506           the server and left the channel.  The auth data is saved and
9507           if the channel is re-joined later the old entry is used with
9508           the old auth data.  Affected files silcd/command_reply.c and
9509           silcd/server.c.
9510
9511         * Removed the `pkcs' field from the SilcIDListData structure
9512           in the server; it is not used.  Affected file silcd/idlist.h.
9513
9514 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9515
9516         * Fixed packet processing on slow links.  Partial packets were
9517           never re-processed because the incoming data buffer was cleared
9518           by the application.  Application must not directly clear the
9519           sock->inbuf, the packet processing routines handle it.  Fixed
9520           this in client library and in server.
9521
9522 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9523
9524         * Fixed the WHOIS and IDENTIFY send reply function to really
9525           check whether to send list or just one entry.  Affected file
9526           silcd/command.c.
9527
9528         * Cleaned up the LEAVE command's channel key distribution.  The
9529           affected file silcd/command.c.
9530
9531         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9532           can enforce the channel mode as well.  In that case the ID
9533           includes the ID of the server.  The code now enforces the
9534           mode change if the router have different mode than the server.
9535
9536         * The notify client operation with CMODE_CHANGE notify can now
9537           return NULL client_entry pointer if the CMODE was not changed
9538           by client.  Application must check for this.
9539
9540         * Added <Server ID> argument to INFO command to support server
9541           info fetching by Server ID.
9542
9543         * Added silc_server_announce_get_channel_users to get assembled
9544           packets of channel users of the specified channel.  Affected
9545           file silcd/server.[ch].
9546
9547         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9548           was freed underneath the ID Cache.
9549
9550         * Re-announce clients when the server received CHANNEL_CHANGE
9551           notify from the router.  Affected file silcd/packet_send.c.
9552
9553 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9554
9555         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
9556           crashed since it did not handle the fact that there is no cipher
9557           called "3" and didn't check the error condition.  Now fixed.
9558
9559         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
9560           flag.  It can be used to send message requests.
9561
9562 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9563
9564         * Implemented the RESTART command in the client.
9565
9566         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
9567           notice type messages.  Added notice printing to the user
9568           interface.
9569
9570         * The channel keys are not re-generated if the channel's mode
9571           is PRIVKEY, ie private key on the channel exists.  Affected
9572           files silcd/server.c and silcd/command.c.
9573
9574         * Fixed a little bug in channel message delivery when channel
9575           private keys are set in the server.  Affected file is
9576           silcd/packet_send.c.
9577
9578         * Changed the setting on channel->on_channel = TRUE from the
9579           silc_client_save_channel_key to the JOIN command reply.  The
9580           key payload is not received if the private channel key is set.
9581           Affected file lib/silcclient/command_reply.c and the
9582           lib/silcclient/client_channel.c.
9583
9584         * When the CMODE_CHANGE notify is sent and the channel private
9585           key mode is removed the channel key must be re-generated in
9586           other cells as well.  Added this support for the router in the
9587           silcd/packet_receive.c.
9588
9589         * Added new local command NOTICE to send notice message on
9590           channel.  Affected file silc/local_command.[ch].
9591
9592 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9593
9594         * Added new local command ME to the client.  It is used to send
9595           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
9596           some action.  Affected file silc/local_command.[ch].
9597
9598         * Changed channel_message and private_message client operations
9599           to deliver the message flags to the application.  Added also
9600           the `flags' arguments to the silc_client_send_channel_message
9601           and silc_client_send_private_message functions.  Affected file
9602           silcapi.h.
9603
9604 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9605
9606         * Redefined the Private Message Payload to support private message
9607           keys and to support the new private message flags.  Updated
9608           the protocol specs.  Flags makes it possible to have for example
9609           CTCP style messages.
9610
9611         * Added new type SilcPrivateMessagePayload and defined an API
9612           for it in the lib/silcclient/silcprivate.[ch].
9613
9614         * Tested private message private keys successfully.  Tested the
9615           private message key set, unset and list commands with the new
9616           KEY command.
9617
9618         * Redefined the Channel Message Payload to include the channel
9619           message flags (equal with private message flags) to support
9620           for example CTCP style messages.
9621
9622         * Defined some of the message (for channel and private message)
9623           flags.  Updated the protocol specs and added the flags to the
9624           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
9625
9626 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9627
9628         * Added SilcKeyAgreementStatus type to the key agreement routines
9629           to indicate the current status and error if one occured.
9630           The status types are defined in the lib/silcclient/silcapi.h.
9631
9632         * Added new local command KEY that is used to set and unset private
9633           keys for channels, set and unset private keys for private messages
9634           with remote clients and to send key agreement requests and
9635           negotiate the key agreement protocol with remote client.  The
9636           key agreement is supported only to negotiate private message keys,
9637           it currently cannot be used to negotiate private keys for channels,
9638           as it is not convenient for that purpose.
9639
9640         * Fixed a minor pending callback setting bug in the function
9641           silc_client_get_client_by_id_resolve, now the function works.
9642           Affected file lib/silcclient/idlist.c.
9643
9644         * Added function silc_net_get_local_port to get local bound
9645           port by socket.  Added to lib/silcutil/silcnet.[ch].
9646
9647         * Added `sockets' and `sockets_count' fields to the SilcClient
9648           object.  They hold the sockets of the listenning sockets in
9649           the client.  Listenning sockets may be for example the key
9650           agreement server.  Affected file lib/silcclient/client.[ch].
9651           Added functions the silc_client_add_socket and the
9652           silc_client_del_socket.  They are exported to the application
9653           as well.
9654
9655         * Added ~./silc/clientkeys to support other client's public keys.
9656
9657         * Renamed verify_server_key client operation to verify_public_key
9658           and added one argument to indicate the type of the connection
9659           (server, client etc.).
9660
9661 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9662
9663         * Added silc_server_connection_auth_request to handle the
9664           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
9665           silcd/packet_receive.[ch].
9666
9667         * Added silc_server_send_connection_auth_request into the
9668           silcd/packet_send.c to send the connection auth request packet.
9669
9670         * Cleaned up the silcd/protocol.c a bit and fixed some memory
9671           leaks.
9672
9673         * Fixed the public key authentication in responder side in the
9674           server.  The `auth_data' pointer includes the SilcPublicKey
9675           not the path to the public key.  Affected file silcd/protocol.c.
9676
9677         * Implemented the public key authentication in the initiator side
9678           in the server.  Affected file silcd/protocol.c.
9679
9680         * Removed the [RedirectClient] config section from the server
9681           configuration.  Is not needed and I don't want to implement it.
9682
9683 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9684
9685         * Cleaned up the CMODE command in the server.  It now works
9686           correctly and supports all the modes defined in the protocol.
9687           Affected file is silcd/command.c.
9688
9689         * Added `hmac_name' field to the SilcChannelEntry in the server
9690           to hold the default HMAC of the channel.  It can be set when
9691           creating the channel (with JOIN command).  Affected files
9692           silcd/idlist.[ch].
9693
9694         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
9695           type to indicate the change of the current cipher and hmac
9696           on the channel.  Client can safely ignore the <cipher> argument
9697           (if it chooses to do so) since the CHANNEL_KEY packet will
9698           force the channel key change anyway.  The <hmac> argument is
9699           important since the client is responsible of setting the new
9700           HMAC and the hmac key into use.
9701
9702         * Fixed the CMODE command in the client library as well.
9703
9704         * Tested CMODE command in router environment successfully.
9705
9706 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9707
9708         * Show the version of the remote client (or server) when connecting
9709           to the server.  It is logged to the log file.  Affected file
9710           is silcd/protocol.c.
9711
9712         * Fixed the KILLED notify handling in the client library.  The
9713           client must be removed from all channels when receiving the
9714           KILLED notify.
9715
9716           Also, do not remove the client entry when giving the KILL
9717           command but when the KILLED notify is received.
9718
9719         * Removed silc_idlist_find_client_by_nickname from the server.
9720           Not needed anymore.  Affected files silcd/idlist.[ch].
9721
9722         * Implemented the CHANNEL_CHANGE notify type handling to the
9723           server.  Affected file silcd/server.c.
9724
9725         * Updated TODO.
9726
9727 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9728
9729         * Added silc_server_send_notify_invite to send the INVITE
9730           notify between routers.
9731
9732         * Implemented the INVITE command correctly to the server.
9733
9734         * Implemented the INVITE notify type handling in the server.
9735
9736         * Implemented the INVITE command to the client library and on the
9737           user interface.
9738
9739 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9740
9741         * Added function silc_server_get_client_resolve to find the
9742           client entry by ID from all ID lists and then resolve it
9743           (using WHOIS) if it cannot be found.  Affected file is
9744           silcd/server.[ch].
9745
9746 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9747
9748         * Implemented the BAN command to the client library.
9749
9750         * The JOIN command in the server now checks the invite list
9751           and the ban list.
9752
9753         * Changed the silc_command_reply_payload_encode_va and the
9754           silc_command_payload_encode_va to support that if argument is
9755           NULL it ignores and checks the next argument.  Affected file
9756           lib/silccore/silccommand.c.
9757
9758         * Added silc_server_send_notify_ban to send the BAN notify
9759           type between routers.
9760
9761         * Chaned the silc_notify_payload_encode to support that if
9762           argument is NULL it ignores and checks the next argument.
9763           Affected file lib/silccore/silcnotify.c.
9764
9765         * Tested ban lists in router environment successfully.
9766
9767 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9768
9769         * Implemented BAN command to the server, in silcd/command.[ch].
9770
9771         * Removed the BAN and INVITE_LIST modes from the CMODE command
9772           in the server code.
9773
9774         * Added function silc_string_match to regex match two strings.
9775           Affected files lib/silcutil/silcutil.[ch].
9776
9777 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9778
9779         * Redefined parts of the SilcChannelEntry in the server to support
9780           the new ban and invite lists.
9781
9782 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9783
9784         * Redefined the INVITE command.  The same command can be used to
9785           invite individuals to the channel but also to manage the invite
9786           list of the channel (to add to and remove from the invite list).
9787           Updated the protocol specs.
9788
9789         * Added new command SILC_COMMAND_BAN that can be used to manage
9790           the ban list of the channel.  Updated the protocol specs.
9791
9792         * Removed the channel modes: the SILC_CMODE_BAN and the
9793           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9794           in the CMODE command.  The equivalent features are now available
9795           using INVITE and BAN commands.  Updated the protocol specs.
9796
9797         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9798           in the network about change in the current ban list.  The notify
9799           type is not used by the client.
9800
9801         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9802           support the invite lists.
9803
9804 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9805
9806         * Added new function silc_string_regexify that converts string
9807           including wildcard characters into regex string that can
9808           be used by the GNU regex library.  Added into the file
9809           lib/silcutil/silcutil.[ch].
9810
9811           Added silc_string_regex_combine to combine to regex strings
9812           into one so that they can be used as one regex string by
9813           the GNU regex library.  Added into the file
9814           lib/silcutil/silcutil.[ch].
9815
9816           Added silc_string_regex_match to match two strings.  It returns
9817           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9818
9819 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9820
9821         * Imported GNU regex to the soruce tree into lib/contrib.
9822           Fixed some compiler warning from the regex.c.
9823
9824 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9825
9826         * Fixed MOTD command in the server to work in router environment.
9827
9828         * Fixed the MOTD command in the client library to support
9829           the server argument in the command.
9830
9831         * Added `nickname_len' argument to the silc_idlist_add_client
9832           in the server, as the `nickname' argument may be binary data
9833           (it may be hash).
9834
9835         * Added silc_idlist_get_channels to return all channels from
9836           the ID list.
9837
9838         * Implemented LIST command to the server.  Affected file is
9839           silcd/command.c.
9840
9841         * Implemented the LIST command to the client library and on the
9842           user interface.
9843
9844         * Added [<user count>] argument to the LIST command reply.
9845           With private channels the user count is not shown.
9846
9847         * Updated TODO and README.
9848
9849 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9850
9851         * The client entry's data.registered must be TRUE even with
9852           global client entry on global client list.  The data.registered
9853           is used to check whether the client is anymore in the network,
9854           for example with WHOWAS command so it must be valid.
9855
9856         * Fixed the WHOWAS command in the server.  It now actually works
9857           in router environment.  Added function into silcd/command_reply.c
9858           silc_server_command_reply_whowas_save.
9859
9860         * Added silc_idlist_purge function to the silcd/idlist.c
9861           to periodically purge the ID Cache.
9862
9863         * Fixed INFO command in the server.  It works now in router
9864           environment.  Added <server name> argument to the INFO command
9865           reply.  Updated the protocol specs.
9866
9867         * Fixed minor bug in silc_idcache_purge to not purge if the
9868           expire value is zero.
9869
9870         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9871           they were buggy because of the WHOWAS information.
9872
9873         * Fixed local command MSG to handle the async resolving of
9874           the remote client properly.  It used to fail the first MSG.
9875           Affected file silc/local_command.c.
9876
9877         * Added `data_len' field to SilcIDCache context.
9878
9879 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9880
9881         * Update TODO.  Todo in commands in the server.
9882
9883 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9884
9885         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9886           used by routers as broadcast packet to inform other routers
9887           about the changed user mode.
9888
9889           Implemented the notify handling in the server.  Affected file is
9890           silcd/packet_receive.c.  Added the function
9891           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9892
9893         * Added new generic Channel Payload and deprecated the New Channel
9894           Payload.  The New Channel Payload is now the generic Channel
9895           Payload.
9896
9897         * Added new argument `mode' to the silc_server_send_new_channel
9898           as it is required in the Channel Payload now.
9899
9900         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9901           and created a new and real SilChannelPayload to represent the
9902           new generic Channel Payload.  Implemented the encode/decode
9903           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9904
9905         * Added silc_server_get_client_channel_list to return the list
9906           of channels the client has joined for WHOIS command reply.
9907           Affected file silcd/server.[ch].
9908
9909         * Implemented the channel list sending in the WHOIS command reply
9910           in server and in the client.
9911
9912           Implemented the channel list displaying on the user interface
9913           as well.  Affected file silc/client_ops.c.
9914
9915         * Added silc_channel_payload_parse_list to parse list of Channel
9916           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9917           Client for example can use this function to parse the list of
9918           channels it receives in the WHOIS command reply.  The caller
9919           must free the list by calling silc_channel_payload_list_free.
9920           Affected files lib/silccore/silcchannel.[ch].
9921
9922 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9923
9924         * Added one new argument <user mode> to the WHOIS command reply
9925           to return the mode of the user in SILC.  Updated the protocol
9926           specs.
9927
9928           Implemented it to the server and client.
9929
9930 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9931
9932         * Fixed the mode printing on the user interface on joining.
9933           Affected file silc/client_ops.c.
9934
9935         * Implemented the UMODE command and user modes in general to the
9936           client library and to the user interface.
9937
9938         * Implemented the UMODE command to the server.
9939
9940         * The server now sends UNKNOWN_COMMAND error status if client sends
9941           unknown command.  Affected file silcd/command.c.
9942
9943         * All server commands now handle the command identifier the right
9944           way when sending the command reply to the client.  The client can
9945           use to identify the command replies with the identifier.
9946
9947 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9948
9949         * Added silc_server_get_client_route to resolve the route to
9950           the client indicated by the client ID.  Affected file is
9951           silcd/server.[ch].
9952
9953         * Added silc_server_relay_packet as general function to relay
9954           packet to arbitrary destination.  This deprecates functions
9955           like _send_private_message_key, _relay_notify etc.  Affected
9956           file is silcd/packet_send.[ch].
9957
9958           Removed silc_server_send_key_agreement,
9959           silc_server_send_private_message_key and
9960           silc_server_packet_relay_notify functions from the file
9961           silcd/packet_send.[ch].
9962
9963         * Updated TODO.
9964
9965         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9966           server.  Affected file silcd/packet_receive.[ch].
9967
9968         * Implemented the KILL command to the client.  Implemented the
9969           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9970           Affected files lib/silcclient/command[_reply].c and
9971           lib/silcclient/client_notify.c.  Implemented the KILL notify
9972           printing in the user inteface.
9973
9974         * Fixed a lot silc_parse_nick memory leaks from the client
9975           library in the file lib/silcclient/command.c.
9976
9977         * Changed the silc_server_send_notify_on_channels's `sender'
9978           argument from SilcSocketConnection to SilcClientEntry to
9979           check the sender as entry and not as connection object and not
9980           to send to the client provided as argument.  The affected file
9981           is silcd/packet_send.[ch].
9982
9983         * The notify packets that are destined directly to the client used
9984           to not to be processed by the server.  Now changed that and the
9985           server processes all notify packets.  After relaying the packet
9986           to the client the notify packet is processed in the server.
9987
9988         * The silc_server_free_client_data now checks whether there is
9989           pending outgoing traffic for the client and purges the data to
9990           the network before removing the client entry.
9991
9992 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9993
9994         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9995           an client is killed from the SILC Network.  Updated the protocol
9996           specs accordingly.
9997
9998           Added new function silc_server_send_notify_killed to the
9999           silcd/packet_send.[ch].
10000
10001         * Added function silc_server_packet_relay_notify to relay notify
10002           packets that are destined directly to a client.  In this case
10003           the server does not process the notify packets but merely relays
10004           it to the client.  Affected file silcd/packet_send.[ch].
10005
10006           Added also silc_server_packet_process_relay_notify to check
10007           whereto relay the notify.  Affected file is
10008           silcd/packet_receive.[ch].
10009
10010         * Implemented the KILL command to the server.
10011
10012         * Updated TODO.
10013
10014         * Added the backup schema desgined last fall to the protocol
10015           specs for everyone to see.  The specification is in the
10016           *-spec-xx.txt draft and the packet type definitions for the
10017           backup routers is in *-pp-xx.txt draft.  Thusly, added also
10018           new packet type SILC_PACKET_CELL_ROUTERS.
10019
10020         * A big security problem in the implementation discovered.  The
10021           signoff of an client did not cause new channel key generation
10022           which it of course should've done.  The channel keys must be
10023           always re-generated when client leaves (or signoffs) the channel.
10024           The silc_server_remove_from_channels funtion now handles
10025           the channel key re-generation.
10026
10027         * Added `sender' argument to the silc_server_send_notify_on_channels
10028           to not to send the client provided as argument.  Affected file
10029           silcd/packet_send.[ch].
10030
10031 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10032
10033         * Implemented OPER and SILCOPER commands into the server and
10034           the client library.
10035
10036         * Added silc_auth_verify and silc_auth_verify_data to verify
10037           the authentication directly from the authentication payload.
10038           It supports verifying both passphrase and public key based
10039           authentication.  Affected file lib/silccore/silcauth.[ch].
10040
10041         * Added `hash' field to the SilcIDListData structure.  It is the
10042           hash negotiated in the SKE protocol.  Affected file is
10043           silcd/idlist.[ch].
10044
10045         * Slight redesigning of the SilcAuthPayload handling routines.
10046           Do not send SilcPKCS but SilcPublicKey as argument.
10047
10048         * Implemented the public key authentication support to the
10049           serverconfig.  The public key is loaded from the provided path
10050           and saved as authentication data to void * pointer.  Thus,
10051           changed the unsigned char *auth_data to void *auth_data;
10052
10053         * Fixed SHUTDOWN command to send the reply before the server
10054           is shutdown. :)  Affected file silcd/command.c.
10055
10056         * Fixed fatal bug in CONNECT command.  The hostname was invalid
10057           memory and server crashed.  Affected file silcd/command.c.
10058
10059         * Fixed fatal bug in CLOSE command.  The server_entry became
10060           invalid but was referenced later in the command.  Affected file
10061           silcd/command.c.
10062
10063 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10064
10065         * Fixed fatal bug in failure packet handling.  Server ignored
10066           the failure and thus crashed when it came.
10067
10068         * Updated TODO.
10069
10070 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10071
10072         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
10073           that the command may be executed only once in (about) 2 seconds.
10074           The old SILC_CF_LAG flag is same but allows command bursts up
10075           to five before limiting.
10076
10077           Added the support for CF_LAG and CF_LAG_STRICT flags to the
10078           server code.  Various commands now includes the CF_LAG_STRICT
10079           flag to disallow any kind of miss-use of the command.
10080
10081         * Fixed the silc_buffer_unformat to not to allocate any data
10082           if the length of the data is zero.  It used to allocate the
10083           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
10084
10085 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10086
10087         * Changed the format of AdminConnection configuration section
10088           in the server.  Added username of the admin to the format.
10089           Affected files silcd/serverconfig.[ch].
10090
10091           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
10092           to return admin configuration data by host, username and/or
10093           nickname.
10094
10095 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10096
10097         * Implemented WHOWAS command to the server.  Added the functions:
10098
10099           silc_server_command_whowas_parse,
10100           silc_server_command_whowas_send_reply,
10101           silc_server_command_whowas_from_client and
10102           silc_server_command_whowas_from_server
10103
10104         * Added <Client ID> argument to the WHOWAS command reply.  Updated
10105           the protocol specs accordingly.
10106
10107         * Implemented WHOWAS command and command_reply to the client
10108           library.
10109
10110           Implemented the WHOWAS printing on the user interface.
10111
10112 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10113
10114         * Added new argument to the WHOWAS command reply, the real name.
10115           It is an optional argument.  Updated the protocol specs.
10116
10117         * Added SilcIDCacheDestructor callback that is registered when
10118           the SilcIDCache is allocated.  The callback is called when
10119           an cache entry in the ID Cache expires, or is purged from the
10120           cache.  Added into lib/silccore/idcache.[ch].
10121
10122           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
10123           to destruct the client entries when the cache entry expires.
10124           Other ID Cache's in server and in the client library ignores
10125           the destructor.
10126
10127         * If the ID Cache entry's `expire' field is zero then the entry
10128           never expires.  Added boolean `expire' argument to the
10129           silc_idcache_add function in the lib/silccore/idcache.[ch].
10130           If it is TRUE the default expiry value is used.
10131
10132         * Added silc_server_free_client_data_timeout that is registered
10133           when client disconnects.  By default for 5 minutes we preserve
10134           the client entry for history - for WHOWAS command.
10135
10136 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10137
10138         * Added support to the server to enforce that commands are not
10139           executed more than once in 2 seconds.  If server receives
10140           commands from client more frequently, timeout is registered
10141           to process the commands.  Affected file silcd/command.c.
10142           Added new function silc_server_command_process_timeout.
10143
10144         * Changed NICK_NOTIFY handling in client library to check that
10145           if the client's nickname was changed, so there is no need to
10146           resolve anything from the server.
10147
10148         * Removed error printing from the WHOIS and IDENTIFY commands.
10149           If error occurs then it is ignored silently in the client library.
10150           The application, however, may map the received error to
10151           human readable error string.  The application currently maps
10152           the NO_SUCH_NICKNAME error to string.
10153
10154         * Made the command status message public to the application.  Moved
10155           them from lib/silcclient/command_reply.c to
10156           lib/silcclient/command_reply.h.  The application can map the
10157           received command status to the string with the
10158           silc_client_command_status_message function.
10159
10160         * Added check to the server to check that client's ID is same
10161           as the Source ID in the packet the client sent.  They must
10162           match.
10163
10164 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10165
10166         * Added dist-bzip hook to the Makefile.am to make bzip2
10167           compressed distributions.
10168
10169 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10170
10171         * Server now enforces the maximum length for the nickname and
10172           the channel as protocol specification dictates.  128 bytes for
10173           nickname and 256 bytes for channel name.
10174
10175         * Moved the WHOIS printing to the application.  The client libary
10176           does not print out the WHOIS information anymore, the application
10177           must do it.  Renamed silc_client_command_reply_whois_print to
10178           the silc_client_command_reply_whois_save.
10179
10180           The client's idle time is also sent to the application now, and
10181           the idle is shown on screen.
10182
10183         * Added silc_client_command_reply_identify_save to save the
10184           received IDENTIFY entries.
10185
10186         * Do not check for channel private keys in message sending and
10187           reception if the channel does not have the PRIVKEY mode set.
10188           Affected file lib/silclient/client_channel.c.
10189
10190 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10191
10192         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
10193           just surfaced after chaning the JOIN procedure.
10194
10195 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10196
10197         * Added silc_client_get_clients_by_list to get client entries
10198           from Client ID list, that is returned for example by JOIN
10199           and USERS command replies.  The application should use this
10200           function for example when JOIN command reply is received to
10201           resolve the clients already on the channel (library does not
10202           do that anymore as USERS command reply is not used in the JOIN
10203           procedure anymore).  Affected files lib/silcclient/silcapi.h and
10204           lib/silcclient/idlist.c.
10205
10206         * JOIN command reply and USERS command reply returns now SilcBuffer
10207           pointers instead of unsigned char pointers when returning
10208           the client list and mode list.
10209
10210         * Added <Client ID> argument to the JOIN command reply, mainly
10211           for the server to identify for which client the command was
10212           originally sent.  Updated protocol specs accordingly.
10213
10214         * Added SilcDlist private_key pointer to the SilcChannelEntry
10215           in the client to support the channel private keys.  Affected
10216           file is lib/silcclient/idlist.h.
10217
10218         * Added SilcChannelPrivateKey argument to the function
10219           silc_client_send_channel_message so that application can choose
10220           to use specific private ke if it wants to.  If it is not provided,
10221           the normal channel key is used, unless private keys are set.
10222           In this case the first (key that was added first) is used
10223           as the encryption key.
10224
10225         * Implemented the support for channel private key handling.
10226           Implemented the following functions:
10227
10228           silc_client_add_channel_private_key,
10229           silc_client_del_channel_private_keys,
10230           silc_client_del_channel_private_key,
10231           silc_client_list_channel_private_keys and
10232           silc_client_free_channel_private_keys
10233
10234           Affected file lib/silcclient/client_channel.c.
10235
10236         * Added the support for the private keys in the channel message
10237           sending and encryption and in the message reception and
10238           decryption.  Affected funtions are
10239           silc_client_send_channel_message and silc_client_channel_message.
10240
10241 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10242
10243         * Added SKE's key verify callback to the client library's
10244           KE protocol context. Affected files lib/silcclient/protocol.[ch].
10245
10246         * Removed the statement that server (or router) must send USERS
10247           command reply when joining to the channel so that the client
10248           knows who are on the channel.  Instead, the client list and
10249           client's mode list is now sent in the JOIN command reply to the
10250           client who joined channel.  This is better solution.
10251
10252         * Added function silc_server_get_users_on_channel and function
10253           silc_server_save_users_on_channel to the silcd/server.[ch].
10254
10255         * Removed function silc_server_command_send_users from the
10256           silcd/command.c.
10257
10258         * Do not show topic on the client library anymore.  The topic is
10259           sent in the command reply notify to the application and the
10260           application must show the topic now.
10261
10262 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10263
10264         * Added client searching by nickname hash into the IDENTIFY and
10265           WHOIS commands in the server as they were clearly missing from
10266           them.  Affected file is silcd/command.c.
10267
10268         * Fixed a bug in private message receiving in the client library.
10269           The remote ID was freed and it wasn't supposed, now it is
10270           duplicated.
10271
10272 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10273
10274         * Minor fix to the channel payload; allocate the data area, as it
10275           needs to be of specific length.
10276
10277         * If the key agreement port is zero then the operating
10278           system will define the bound port.  Affected files are
10279           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10280
10281         * Added new function silc_channel_payload_decrypt into the file
10282           lib/silccore/silcchannel.[ch].
10283
10284         * Moved the channel message etc, check from silc_packet_decrypt
10285           to applications.  The library calls now a generic
10286           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10287           when the packet is either normal or special.  This was done to
10288           allow more wide range of checking that was not allowed when
10289           the code was in library.  Now applications can do virtually any
10290           checks to the packet and return to the library the decision how
10291           the packet should be processed.  Affected files are
10292           lib/silccore/silcpacket.[ch].
10293
10294           Added silc_server_packet_decrypt_check to the server and
10295           silc_client_packet_decrypt_check to the client library.
10296
10297         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10298           to send with specified source and destination information.
10299
10300         * Channel message delivery between routers was broken after the
10301           channel key distribution was fixed earlier.  The channel key
10302           was used be to distributed to other routers as well which is not
10303           allowed by the protocol.  Now this is fixed and channel keys
10304           really are cell specific and the channel message delivery between
10305           routers comply with the protocol specification.
10306
10307         * Fixed various commands in server to check also the global list
10308           for the channel entry and not just the local list.  The affected
10309           file silcd/command.c.
10310
10311 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10312
10313         * Added assert()s to buffer formatting and unformatting routines
10314           to assert (if --enable-debug) when error occurs.  Affected
10315           file: lib/silcutil/silcbuffmt.c.
10316
10317         * Changed to auto-reconnect to check whether the remote host is
10318           router and register the re-connect timeout if it is.  It used
10319           to check that whether we are normal server, but router must do
10320           auto-reconnect with another router as well.  Affected file
10321           silcd/server.c.
10322
10323         * Removed the [<key len>] option from CMODE command as the cipher
10324           name decides the key length, nowadays.  See the defined ciphers
10325           from the protocol specification.
10326
10327         * Added [<hmac>] option to the CMODE command to define the HMAC
10328           for the channel.  Added SILC_CMODE_HMAC channel mode.
10329
10330         * Added [<hmac>] option for the JOIN command so that user can
10331           select which HMAC is used to compute the MACs of the channel
10332           messages.
10333
10334         * Added Hmac field to the Channel Message Payload.  The integrity
10335           of plaintext channel messages are now protected by computing
10336           MAC of the message and attaching the MAC to the payload.  The
10337           MAC is encrypted.  Now, it is clear that this causes some
10338           overhead to the size of the packet but rationale for this is that
10339           now the receiver can verify whether the channel message decrypted
10340           correctly and also when private keys are set for the channel the
10341           receiver can decrypt the packet with several keys and check from
10342           the MAC which key decrypted the message correctly.
10343
10344         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10345           lib/silccrypt/silccipher.[ch].
10346
10347         * Added silc_hash_len to return the digest length into the
10348           lib/silcrypt/silchash.[ch].
10349
10350         * Rewrote parts of Silc Channel Payload interface in the
10351           lib/silccore/silcchannel.[ch].  The encode function now also
10352           encrypts the packet and parse function decrypts it.
10353
10354 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10355
10356         * Fixed a minor formatting bug in the SKE's key material processing.
10357           It actually might have processed the keys wrong way resulting
10358           into wrong keys.
10359
10360         * Redefined the mandatory HMAC algorithms and added new algorithms.
10361           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10362           and hmac-md5 truncated to 96 bits.  The mandatory is now
10363           hmac-sha1-96.  Rest are optional (including the one that used
10364           to be mandatory).  Rationale for this is that the truncated HMAC
10365           length is sufficient from security point of view and can actually
10366           make the attack against the HMAC harder.  Also, the truncated
10367           HMAC causes less overhead to the packets.  See the RFC2104 for
10368           more information.
10369
10370         * Added new [hmac] configuration section.  The SKE used to use
10371           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10372           is of course wrong.  The official names that must be proposed in
10373           the SKE are the ones defined in the protocol specification
10374           (hmac-sha1-96 for example).  The user can configure any hmac
10375           using any hash function configured in the [hash] section.  At
10376           least, the mandatory must be configured.
10377
10378           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10379
10380         * Added HMAC list to the SKE proposal list.  It has now both
10381           hash algorithm list and HMAC list.  This makes the protocol
10382           incompatible with previous versions.  The SKE now seems to work
10383           the way it is supposed to work, for the first time actually.
10384
10385         * Defined plain Hash algorithms to the protocol specification.
10386           Added sha1 and md5.
10387
10388 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10389
10390         * Implemented support for key agreement packets into the server.
10391           Added functions silc_server_key_agreement and
10392           silc_server_send_key_agreement.  Other than these functions,
10393           server has nothing to do with this packet.
10394
10395         * Added support for private message key packets into the server.
10396           Added functions silc_server_private_message_key and
10397           silc_server_send_private_message_key.
10398
10399         * Updated TODO.
10400
10401         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10402           called in the protocol's final callback instead in the END
10403           protocol state.  This makes a little more sense and in the same
10404           time in client we can use the same protocol routines for normal
10405           key exchange and to key agreement packet handling as well.
10406
10407         * Added to both client's and server's KE protocol context the
10408           SilcSKEKeyMaterial pointer to save the key material.  We will
10409           bring the key material to the protocol's final callback by doing
10410           this.  The final callback must free the key material.
10411
10412         * Added SKE's packet_send callback into client's KE protocol
10413           context so that the caller can choose what packet sending function
10414           is used.  This way we can use different packet sending when
10415           doing normal SKE when doing key agreement packet handling (in
10416           the key agreement packet handling we do not want to encrypt
10417           the packets).
10418
10419         * Implemented the responder side of the key agreement routines
10420           in the client.  The client can now bind to specified port and
10421           accept incoming key negotiation.  The key material is passed
10422           to the application after the protocol is over.
10423
10424         * Implemented the processing of incoming Key Agreement packet
10425           in the client.  Added function silc_client_key_agreement to
10426           process the packet.
10427
10428         * Implemented the intiator side of the key agreement routines
10429           in the client.  The client can now initiate key agreement with
10430           another remote client.  The key material is passed to the
10431           application after the protocol is over.
10432
10433         * Created client_keyagr.c to include all the key agreement
10434           routines.
10435
10436         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10437           SILC_TASK_CALLBACK except that it is not static.
10438
10439         * Created client_notify.c and moved the Notify packet handling
10440           from the client.[ch] into that file.
10441
10442         * Created client_prvmsg.c and moved all private message and
10443           private message key routines from the client.[ch] into that file.
10444
10445         * Create client_channel.c and moved all channel message and
10446           channel private key routines from the client.[ch] into that file.
10447
10448         * Changed silc_client_get_client_by_id_resolve to resolve with
10449           WHOIS command instead of IDENTIFY command, in the file
10450           lib/silclient/idlist.c.
10451
10452 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10453
10454         * Implemented the SKE's responder side to the Client library.
10455
10456         * When FAILURE is received to the protocol do not trust it
10457           blindly.  Register a timeout to wait whether the remote closes
10458           the connection as it should do it, only after that process the
10459           actual failure.  This was changed to both client and server.
10460
10461         * Added client_internal.h to include some of the structures
10462           there instead of client.h in lib/silcclient/.
10463
10464         * Added function silc_task_unregister_by_callback to unregister
10465           timeouts by the callback function.
10466
10467 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10468
10469         * Some "Incomplete WHOIS info" errors has been appearing on the
10470           log files.  Took away the entry->userinfo check from WHOIS
10471           reply sending.  The entry->userinfo is now " " if client did not
10472           provide one.  I thought this was fixed earlier but something
10473           is wrong still.  Let's see if the error still appears.
10474
10475 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10476
10477         * Fixed a minor bug in the login when the channel key is
10478           re-generated in the server.  It used to generate the key in
10479           wrong order and thus caused problems in the channel traffic.
10480
10481         * Fixed a minor bug in channel key distsribution after
10482           KICK command.  The key was not sent to the router even though
10483           it should've been.
10484
10485 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10486
10487         * Added silc_ske_process_key_material_data as generic routine
10488           to process any key material as the SILC protocol dictates.  The
10489           function is used by the actual SKE library but can be used by
10490           applications as well.  This relates to the private message keys
10491           and the channel private keys since they must be processed the
10492           same way the normal SILC session keys.  The protocol dictates
10493           this.  Affected files: lib/silcske/silcske.[ch].
10494
10495           Added also silc_ske_free_key_material to free the
10496           SilcSKEKeyMaterial structure.
10497
10498         * Defined silc_cipher_set_key function to set the key for
10499           cipher without using the object's method function.  The affected
10500           files: lib/silccrypt/silccipher.[ch].
10501
10502         * Implemented silc silc_client_add_private_message_key,
10503           silc_client_add_private_message_key_ske,
10504           silc_client_del_private_message_key,
10505           silc_client_list_private_message_keys and
10506           silc_client_free_private_message_keys functions in the
10507           client library.
10508
10509           Added functions silc_client_send_private_message_key to send
10510           the Private Message Key payload and silc_client_private_message_key
10511           to handle incoming Private Message Key payload.
10512
10513         * Added Cipher field to the Private Message Key payload to set
10514           the cipher to be used.  If ignored, the default cipher defined
10515           in the SILC protocol (aes-256-cbc) is used.
10516
10517 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10518
10519         * Removed lib/silcclient/ops.h file.
10520
10521           Redefined parts of the SILC Client Library API. Created new
10522           file silcapi.h that deprecates the ops.h file and defines the
10523           published Client Library API.  Defined also private message key
10524           API and channel private key API into the file.
10525
10526           This is the file that the application must include from the
10527           SILC Client Library.  Other files need not be included by
10528           the application anymore.
10529
10530         * Added new key_agreement client operation callback and also
10531           defined the Key Agreement library API for the application.
10532
10533 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10534
10535         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10536           is used by clients to request key negotiation  between another
10537           client in the SILC network.  If the negotiation is started it
10538           is performed using the SKE protocol.  The result of the
10539           negotiation, the secret key material, can be used for example
10540           as private message key.
10541
10542           Implemented the Key Agreement payload into the files
10543           lib/silccore/silauth.[ch].
10544
10545 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10546
10547         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10548           and defined the key lengths for the algorithms.  Changed the
10549           code accordingly.  The default key length is now 256 bits.
10550
10551         * Fixed SKE key distribution function silc_ske_process_key_material
10552           when the key length is more than 128 bits.  The default key
10553           length in SILC is now 256 bits.
10554
10555         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
10556           to indicate unsupported algorithm.
10557
10558         * Renamed rijndael.c to aes.c and all functions as well.
10559
10560         * Fixed a long standing channel key setting bug in client library.
10561           Weird that it has never surfaced before.
10562
10563         * Fixed bug in channel deletion.  If the entire channel is removed
10564           then it must also delete the references of the channel entry
10565           from the client's channel list as the client's channel entry and
10566           the channel's client entry share same memory.
10567
10568 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10569
10570         * Implemented CONNECT and SHUTDOWN commands in the client.
10571
10572         * Implemented CLOSE command to the client.
10573
10574         * Added the function silc_idlist_find_server_by_name into the
10575           files silcd/idlist.[ch].
10576
10577           Added the function silc_idlist_find_server_by_conn into the
10578           files silcd/idlist.[ch].
10579
10580 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10581
10582         * DIE command was renamed to SHUTDOWN.  Updated the both code
10583           and protocol specs.
10584
10585         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
10586           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
10587
10588         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
10589           side.
10590
10591         * Added function silc_server_create_connection function to create
10592           connection to remote router.  My server implementation actually
10593           does not allow router to connect to normal server (it expects
10594           that normal server always initiates the connection to the router)
10595           so the CONNECT command is only good for connecting to another
10596           router.
10597
10598 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10599
10600         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
10601           or some other client was kicked from the channel.
10602
10603           Implemented the handling of the notify type to both client
10604           and server.
10605
10606           Implemented silc_server_send_notify_kicked to send the KICKED
10607           notify.  It is used to send it to the server's primary router.
10608
10609         * Implemented the KICK command into server and client.
10610
10611         * Added `query' argument to the silc_idlist_get_client function
10612           to indicate whether to query the client from server or not if
10613           it was not found.
10614
10615         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
10616           to indicate that the client is not channel founder.
10617
10618         * Updated TODO.
10619
10620 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10621
10622         * Removed the rng context from SilcPacketContext structure and
10623           changed that the packet routine uses the Global RNG API.
10624
10625 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10626
10627         * Added support for quit message that client can "leave" on the
10628           channel when it quits the SILC.  It is ditributed inside the
10629           SILC_NOTIFY_TYPE_SIGNOFF notify type.
10630
10631           Added silc_server_free_client_data that will take the
10632           signoff message as argument.
10633
10634         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
10635
10636 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10637
10638         * Updated parts of the protocol specification to keep it up
10639           to date.
10640
10641 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10642
10643         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
10644           payloads in one packet.
10645
10646         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
10647           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
10648           use now the new List flag.
10649
10650         * Also deprecated the following packet types: REPLACE_ID,
10651           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
10652
10653         * Added list support for Notify packet in server.
10654
10655         * Added silc_server_send_notify_channel_change to send the
10656           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
10657           the silc_server_send_replace_id.
10658
10659         * Added silc_server_send_notify_nick_change to send the
10660           NICK_CHANGE notify type.  Deprecates the function
10661           silc_server_send_replace_id.
10662
10663         * Added silc_server_send_notify_join to send the JOIN notify type.
10664           Deprecates the function silc_server_send_new_channel_user.
10665
10666         * Added silc_server_send_notify_leave to send LEAVE notify type.
10667           Deprecates the function silc_server_send_remove_channel_user.
10668
10669         * Added silc_server_send_notify_cmode and
10670           silc_server_send_notify_cumode to send CMODE and CUMODE notify
10671           types.  Deprecates the silc_server_send_set_mode function.
10672
10673         * Added SERVER_SIGNOFF notify type to indicate that server has
10674           quit.  This means that all clients on the channel from that
10675           server will drop.  This can be also used when netsplit happens.
10676
10677           Deprecated REMOVE_ID packet type since it is not needed anymore
10678           even from server.
10679
10680           Added silc_server_send_notify_server_signoff to send the
10681           SERVER_SIGNOFF notify type.  Deprecates the function
10682           silc_server_send_remove_id.
10683
10684           Added also silc_server_send_notify_signoff to send the
10685           SIGNOFF notify type.
10686
10687         * Employed the PKCS #1. It is the mandatory way to do RSA in the
10688           SILC protocol from this day on.  Changed the protocol
10689           specification as well.
10690
10691         * Added silc_server_send_notify_topic_set to send TOPIC_SET
10692           notify type.  It is used between routers to notify about
10693           topic changes on a channel.
10694
10695         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
10696           ID data.
10697
10698         * Partly updated the protocol specification to comply with the
10699           changes now made.  It is still though a bit outdated.
10700
10701         * The JOIN notify type now takes one extra argument <Channel ID>.
10702           The packet used to be destined to the channel but now the
10703           JOIN type may be sent as list thus it is impossible to
10704           destine it to any specific channel.  By adding this argument
10705           it is again possible.
10706
10707 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10708
10709         * Added CREDITS file.  The CHANGES and CREDITS file will appear
10710           in the distribution as well.
10711
10712 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10713
10714         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
10715           types in the server's silcd/packet_receive.c.
10716
10717         * Implemented CMODE and CUMODE to work in router environment.
10718
10719         * Fixed minor encoding and decoding buglet from the
10720           lib/silccore/silcmode.c.
10721
10722         * Fixed buffer overflow from lib/silcclient/command.c in USERS
10723           command parsing.
10724
10725 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
10726
10727         * Changed all SilcConfigServer* and silc_config_server* to
10728           SilcServerConfig* and silc_server_config*, respectively.
10729           Patch by Bostik.
10730
10731 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10732
10733         * Associated the ID (client or server ID) to the Authentication
10734           Payload to avoid any possibility of forging.  Updated the
10735           protocol specification and the code accordingly.
10736
10737 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10738
10739         * The RSA key length is now save to the RsaKey context in the
10740           key generation process in lib/silccrypt/rsa.c.  The key length
10741           is now used to figure out the maximum size of the block allowed
10742           to be encrypted/signed.
10743
10744         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
10745           is equivalent to the silc_mp_mp2bin but does not allocate any
10746           memory.
10747
10748         * Changed silc_mp_mp2bin API to take length argument.  If it is
10749           non-zero then the buffer is allocated that large.  If zero, then
10750           the size is approximated using silc_mp_sizeinbase, which however
10751           is not relieable.
10752
10753         * Created Global RNG API which is global RNG that application can
10754           initialize.  After initializing, any routine anywhere in the
10755           code (including library) can use RNG without allocating a new
10756           RNG object.  This was done to allow this sort of use of the
10757           RNG in code that has no chance to allocate RNG object.  All
10758           applications currently allocate this and many routines in the
10759           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10760
10761         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10762           it to use the Global RNG API.
10763
10764         * Defined Authentication Payload into protocol specification that
10765           is used during SILC session to authenticate entities.  It is
10766           used for example by client to authenticate itself to the server
10767           to obtain server operator privileges.
10768
10769           Implemented this payload into the lib/silccore/silcauth.[ch].
10770           Implemented also routines for public key based authentication
10771           as the new protocol specification dictates.
10772
10773           Moved definitions of different authentication methods from
10774           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10775
10776         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10777           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10778           silc_pkcs_verify_with_hash functions into the file
10779           lib/silccrypt/silcpkcs.[ch].
10780
10781 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10782
10783         * The client entry's userinfo pointer must be always valid.
10784           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10785           will fail since it requires the userinfo.  Now, the userinfo
10786           is allocated as "" if actual userinfo does not exist.  Actually,
10787           it must exist and it is totally Ok to drop client connections
10788           that does not announce the userinfo.  However, we will make
10789           this workaround for now.
10790
10791         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10792           to return the remote port by socket.
10793
10794 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10795
10796         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10797           SILC_SERVER_PENDING_EXEC and added an new macro
10798           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10799           data or when error occurs while processing the pending command.
10800
10801           Added new argument `destructor' into silc_server_command_pending
10802           and to the SilcServerCommandPending object.  This destructor is
10803           now called after calling the pending callback or if error occurs
10804           immediately.  If error occurs the actual pending callback won't
10805           be called at all - only the destructor.  The destructor may be
10806           NULL if destructor is not needed.
10807
10808           All this applies for client library code as well.  Similar
10809           changes were made there as well for the pending commands.
10810
10811           In the client, the application must now allocate the
10812           SilcClientCommandContext with the silc_client_command_alloc
10813           function.
10814
10815         * Added reference counter to the SilcServerCommandContext.  Added
10816           function silc_server_command_alloc and silc_server_command_dup
10817           functions.
10818
10819           Same type of functions added to the client library for the same
10820           purpose as well.
10821
10822         * Removed the cmd_ident from IDListData away since it is now
10823           global for all connections.  It is the command identifier used
10824           in command sending and with pending commands.  The affected file
10825           is silcd/idlist.h.
10826
10827         * Added reference counter to the SilcSocketConnection objecet to
10828           indicate the usage count of the object.  The object won't be
10829           freed untill the reference counter hits zero.  Currently only
10830           server uses this, and client ignores it.  The client must be
10831           set to use this too later.  The affected files are
10832           lib/silccore/silcsockconn.[ch].  Added also the function
10833           silc_socket_dup to increase the reference counter.
10834
10835           This was mainly added because it is possible that the socket
10836           is removed underneath of pending command or other async
10837           operation.  Now it won't be free'd and proper DISCONNECTING
10838           flags, etc. can be set to avoid sending data to connection that
10839           is not valid anymore.
10840
10841         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10842           the connection.  After that it sets SILC_SET_DISCONNECTED.
10843           It is, however, possible that the socket data is not still freed.
10844           The silc_server_packet_process now checks that data is not
10845           read or written to connection that is DISCONNECTED.  The socket
10846           get's freed when the reference counter hits zero.
10847
10848 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10849
10850         * Changed the client operation API: channel_message operation's
10851           `sender' is now the client entry of the sender, not the nickname
10852           and the `channel' is the channel entry, not the channel name.
10853
10854           In the private_message operation the `sender' is now also the
10855           client entry of the sender not the nickname.
10856
10857           Affected file is lib/silcclient/ops.h and all applications
10858           using the client operations.
10859
10860 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10861
10862         * Moved the calling of ops->connect() from connect_to_server_final
10863           into receive_new_id functin since that is the point when the
10864           client is actually allowed to send traffic to network.  The
10865           affected file is lib/silcclient/client.c.
10866
10867 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10868
10869         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10870           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10871           (if needs broadcasting) instead of broadcasting the packets one
10872           by one which would make a burst in the network traffic.
10873
10874         * Added `broadcast' argument to the functions in silcd/server.[ch]
10875           silc_server_create_new_channel[_with_id] to indicate whether
10876           to send New Channel packet to primary router.
10877
10878 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10879
10880         * Added new function into the silcd/server.[ch] files:
10881           silc_server_create_new_channel_with_id to create new channel with
10882           already existing Channel ID.
10883
10884         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10885           lib/silccore/silcpacket.h.  This packet is used t send list of
10886           Set Mode payloads inside one packet.  Server uses this to set
10887           the modes for the channels and clients on those channels, that it
10888           announced to the router when it connected to it.  The protocol
10889           specification has been updated accordingly.
10890
10891         * The silc_server_new_channel did not handle the packet coming
10892           from normal server as it normally does not send that.  However,
10893           when it announces its channels it does send it.  Implemented
10894           the support for that.
10895
10896         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10897           into the file lib/silccore/id.h.
10898
10899 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10900
10901         * Fixed memory leaks in the functions silc_idlist_del_client,
10902           silc_idlist_del_channel and silc_idlist_del_server in the file
10903           silcd/idlist.c.  All of those leaked like a sieve.
10904
10905         * Fixed some small memory leaks in the client's function
10906           silc_client_notify_by_server.
10907
10908         * Added functions into silcd/server.c: silc_server_announce_clients,
10909           silc_server_announce_channels and silc_server_announce_server.
10910           These functions are used by normal and router server to announce
10911           to its primary router about clients, channels and servers (when
10912           router) that we own.  This is done after we've connected to the
10913           router.
10914
10915           These functions effectively implements the following packet types:
10916           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10917           and SILC_PACKET_NEW_ID_LIST.
10918
10919         * Added new functions into the silcd/packet_receive.[ch]:
10920           silc_server_new_id_list, silc_server_new_channel_list and
10921           silc_server_new_channel_user_list to handle the incoming
10922           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10923
10924         * Added support of changing Channel ID in the function
10925           silc_server_replace_id.  If the server that announces a channel
10926           to the router already exists in the router (with same name but
10927           with different Channel ID), router is responsible to send
10928           Replace ID packet to the server and force the server to change
10929           the Channel ID to the one router has.
10930
10931         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10932           client that the Channel ID has been changed by the router.  The
10933           normal server sends this to the client.  Client must start using
10934           the new Channel ID as the channel's ID.
10935
10936           Implemented handling of this new type into lib/silcclient/client.c
10937           into the function silc_client_notify_by_server.
10938
10939         * Added new function silc_idlist_replace_channel_id into the files
10940           silcd/idlist.[ch] to replace the Channel ID.
10941
10942 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10943
10944         * Call silc_server_command_identify_check always when processing
10945           the IDENTIFY command in silcd/command.c
10946
10947 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10948
10949         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10950           send keepalive packets.  The packet can be sent by clients,
10951           servers and routers.
10952
10953           Added function silc_socket_set_heartbeat into the file
10954           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10955           If not set, the heartbeat is not performed.  The actual
10956           heartbeat is implemented in the low level socket connection
10957           library.  However, application is responsible of actually
10958           sending the packet.
10959
10960           Added silc_server_send_heartbeat to send the actual heartbeat
10961           packet into silcd/packet_send.[ch].  Server now performs
10962           keepalive with all connections.
10963
10964         * Added silc_task_get_first function into lib/silcutil/silctask.c
10965           to return the timeout task with shortest timeout.  There was a bug
10966           in task unregistration that caused problems.  TODO has been
10967           updated to include that task system must be rewritten.
10968
10969         * The client library will now resolve the client information when
10970           receiving JOIN notify from server for client that we know but
10971           have incomplete information.
10972
10973         * Rewrote parts of silc_server_remove_from_channels and
10974           silc_server_remove_from_one_channel as they did not remove the
10975           channel in some circumstances even though they should've.
10976
10977         * Encryption problem encountered in server:
10978
10979           The LEAVE command used to send the Channel Key packet to the
10980           router immediately after generating it.  However, the code
10981           had earlier sent Remove Channel user packet but not immediately,
10982           ie. it was put to queue.  The order of packets in the router
10983           was that Channel Key packet was first and Remove Channel User
10984           packet was second, even though they were encrypted in the
10985           reverse order.  For this reason, MAC check failed.  Now, this
10986           is fixed by not sending the Channel Key packet immediately but
10987           putting it to queue.  However, this is more fundamental problem:
10988           packets that are in queue should actually not be encrypted
10989           because packets that are sent immediately gets encrypted
10990           actually with wrong IV (and thus MAC check fails).  So, packets
10991           that are in queue should be encrypted when they are sent to
10992           the wire and not when they put to the queue.
10993
10994           However, the problem is that the current system has not been
10995           designed to work that way.  Instead, the packet is encrypted
10996           as soon as possible and left to the queue.  The queue is then
10997           just purged into wire.  There won't be any fixes for this
10998           any time soon.  So, the current semantic for packet sending
10999           is as follows:
11000
11001           o If you send packet to remote host and do not force the send
11002           (the packet will be in queue) then all subsequent packets to the
11003           same remote host must also be put to the queue.  Only after the
11004           queue has been purged is it safe again to force the packet
11005           send immediately.
11006
11007           o If you send all packets immediately then it safe to send
11008           any of subsequent packets through the queue, however, after
11009           the first packet is put to queue then any subsequent packets
11010           must also be put to the queue.
11011
11012           Follow these rules and everything works fine.
11013
11014 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11015
11016         * Added new function silc_server_remove_clients_by_server to
11017           remove all client entries from ID list when the server connection
11018           is lost.  In this case it is also important to invalidate all
11019           client entires as they hold the invalid server entry.  This
11020           fixes fatal bug when server has lost connection and will reconnect
11021           again.
11022
11023 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11024
11025         * Made some sanity checks to silc_server_daemonise like to check
11026           whether the requested user and group actually exists.
11027
11028         * Added sanity check to SKE's silc_ske_responder_finish to check
11029           that the public and private key actually is valid.
11030
11031         * Invalidate the client's nickname when receiving Replace ID
11032           packet and the Client ID is being replaced.  This means that the
11033           server will query the nickname if someone needs it (client)
11034           a bit later.
11035
11036         * Sort the ID Cache in client library when the ID Cache data
11037           has changed (needs sorting).
11038
11039         * Do not allow for SILC client to create several connections to
11040           several servers.  The client does not support windows right now
11041           and generating multiple connections causes weird behaviour.
11042
11043           Irssi-silc client does support windows and can handle several
11044           connections without problems, see: www.irssi.org and SILC plugin.
11045
11046         * Fixed some places where client was added to the IDList.  The
11047           rule of thumb is following (in order to get everything right):
11048           If the client is directly connected local client then the
11049           `connection' argument must be set and `router' argument must be
11050           NULL to silc_idlist_add_client function.  If the client is not
11051           directly connected client then the `router' argument must
11052           bet set and the `connection' argument must be NULL to the
11053           silc_idlist_add_client function.
11054
11055         * The funtion silc_server_packet_send_local_channel actually did
11056           not check whether the client was locally connected or not.  It
11057           does that now.  Fixed a bug related to LEAVE command.
11058
11059         * Fixed Remove Channel User payload parsing bug in server's
11060           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
11061
11062         * The server's silc_server_save_channel_key now checks also the
11063           global ID list for the channel as it might not be in the local
11064           list.  Fixed a bug related to LEAVE command.
11065
11066         * Is this the end of the [<unknown>] buglet that has been lurking
11067           around for a long time?  A little for loop fix in server's
11068           silc_server_command_whois_parse that is used by both IDENTIFY
11069           and WHOIS command.  At least, this was a clear bug and a cause
11070           of one type of [<unknown>] buglet.
11071
11072         * WHOIS and IDENTIFY commands call the function
11073           silc_server_command_[whois/identify]_check function even if
11074           we are not router server.
11075
11076 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11077
11078         * Added --with-gmp configuration option.  If set the GMP
11079           is always compiled in the SILC source tree.  If not set then
11080           it is checked whether the system has the GMP3 installed.  If
11081           it has then the GMP won't be compiled (the system's headers
11082           and library is used), if it doesn't have it then the GMP is
11083           compiled in the SILC source tree.
11084
11085 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11086
11087         * Changed RSA private exponent generation to what PKCS #1
11088           suggests.  We try to find the smallest possible d by doing
11089           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
11090           not security fix but optimization.
11091
11092 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11093
11094         * Added new config entry [Identity] to fork the server and run
11095           it as specific user and group.  A patch from Bostik.
11096
11097         * Imported Dotconf configuration library into lib/dotconf.
11098           This will be used to create the SILC configuration files later.
11099           It will appear in the distsribution after this commit.
11100
11101 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11102
11103         * A big code auditing weekend happening.  Auditing code for
11104           obvious mistakes, bugs and errors.  Also, removing any code
11105           that is obsolete.
11106
11107           Removed files for being obsolete:
11108
11109           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
11110           inline in the file lib/silcutil/silcbuffer.h)
11111
11112           o lib/silcutil/silcbufutil.c (the header has inline versions)
11113
11114           Changed code to fix possible error conditions:
11115
11116           o The buffer formatting routines now check that the destination
11117           buffer really has enough space to add the data.  This applies for
11118           both buffer formatting and unformatting
11119           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
11120           unformatting was changed to accomodate following rules:
11121           XXX_*STRING_ALLOC will allocate space for the data into the pointer
11122           sent to the function while XXX_*STRING will not allocate or copy
11123           the data into the buffer.  Instead it sets the pointer from the
11124           buffer into the pointer sent as argument (XXX_*STRING used to
11125           require that the pointer must be allocated already).  This change
11126           makes this whole thing a bit more consistent and more optimized
11127           (note that the data returned in the unformatting with XXX_*STRING
11128           must not be freed now).  The routines return now -1 on error.
11129
11130           o Tried to find all code that use buffer_format and buffer_unformat
11131           and added return value checking to prevent formatting and
11132           especially unformatting errors and possible subsequent fatal
11133           errors.
11134
11135           o Changed ske->x and ske->KEY to mallocated pointers in
11136           lib/silcske/silcske.h.  Fixed possible data and memory leak.
11137
11138           o Added return value checking to all *_parse* functions.  Fixed
11139           many memory leaks as well.
11140
11141           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
11142           so that buffer overflows would not happen.  All code now also
11143           checks the return value as it can fail.
11144
11145 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11146
11147         * Added reconnection support to server if the normal server looses
11148           its connection to the router (for example if router is rebooted).
11149           The server performs normal reconnection strategy implemented
11150           to the server.  Affected file silcd/server.c.
11151
11152 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11153
11154         * Added new packet type SILC_PACKET_SET_MODE that is used to
11155           distribute the information about changed modes (for clients,
11156           channels and clients channel modes) to all routers in the
11157           network.  Updated the protocol specification accordingly.
11158
11159           Added functions into silcd/packet_send.c and
11160           silcd/packet_receive.c: silc_server_send_set_mode,
11161           silc_server_set_mode.
11162
11163           Added new files silcmode.[ch] into lib/silccore that implements
11164           the encoding and decoding of Set Mode Payload.  Added new type
11165           SilcSetModePayload.  Moved the definitions of different modes
11166           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
11167
11168 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11169
11170         * Oops, a little mistake in server's connection authentication
11171           protocol.  The protocol is not ended with FAILURE but with
11172           SUCCESS if the authentication is Ok. :)  Affected file is
11173           silcd/protocol.c.
11174
11175         * Implemented NICK_CHANGE notify handling in server in the file
11176           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
11177           the local clients on the channel.  After the changing nickname
11178           in router environment snhould work and the [<unknown>] nickname
11179           should appear no more.
11180
11181           The silc_server_replace_id function that receives the Replace ID
11182           payload now sends the NICK_CHANGE notify type also in the file
11183           silcd/packet_receive.c
11184
11185         * Changed WHOIS and IDENTIFY command to support the maximum amount
11186           of arguments defined in protocol specs (3328 arguments).  This
11187           fixed a bug that caused problems when there were more than three
11188           users on a channel.
11189
11190 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11191
11192         * Added extra parameter, command identifier, to the
11193           silc_client_send_command so that explicit command identifier
11194           can be defined.
11195
11196           Changed that ID list routines uses specific command identifier
11197           when sending WHOIS/IDENTIFY requests to the server so that they
11198           can be identified when the reply comes back.
11199
11200           Affected files lib/silcclient/command.[ch],
11201           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
11202
11203         * Added `sender' argument to silc_server_packet_send_to_channel
11204           to indicaet the sender who originally sent the packet to us
11205           that we are now re-sending.  Ignored if NULL.  Affected file
11206           silcd/packet_send.[ch].
11207
11208         * Added some server statistics support in silcd/server_internal.h
11209           SilcServerStatistics structure and around the server code.  Also
11210           send some nice statistics information when client is connecting
11211           to the client.
11212
11213 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11214
11215         * Fixed channel ID decoding in server's JOIN command reply in
11216           silcd/command_reply.c
11217
11218         * Fixed braodcasting of replace ID payload to not to send it if
11219           we are standalone server in silcd/packet_receive.c.
11220
11221         * Fixed all channel message sending routines to not to send
11222           packets to clients that has router set, since they are routed
11223           separately in the same function earlier.  Affects file
11224           silcd/packet_send.c and all channel packet sending functions.
11225
11226         * In USERS reply, res_argv[i] are not allocated, the table
11227           is allocated.  Thus changed that free the table, not its
11228           internals.
11229
11230         * In server's whois_check and identify_check if the client is
11231           locally connected do not send any WHOIS commands - they are not
11232           needed.
11233
11234 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11235
11236         * Fixed some minor bugs in client when sending WHOIS command.  The
11237           arguments was in wrong order.
11238
11239         * Removed statis function add_to_channel from server in
11240           silcd/command.c that was previously used with the joining but
11241           is obsolete now.
11242
11243         * Tested USERS command in router environment successfully with two
11244           routers, two servers and two clients.
11245
11246 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11247
11248         * Reorganized the USERS command and command reply in client library
11249           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
11250           When the command is given by user we register a pending command
11251           callback that will reprocess the command after the reply has been
11252           received from the server.  When reprocessing the packet we then
11253           display the information.  Thus, the USERS information is displayed
11254           now in the command callback instead of in the command reply
11255           callback.  The processing of the command is same as previously
11256           when server has sent the command reply in the JOINing process.
11257
11258         * Added to USERS command in silcd/command_reply.c to join the client,
11259           we didn't use to know about, to the channel after we've created
11260           a client entry for it.  Also, for clienet we did know already still
11261           check whether it is on the channel or not and add it if not.
11262
11263         * Removed silc_server_command_join_notify as the function and its
11264           use was obsolete.
11265
11266 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11267
11268         * Changed the client's pending command handling to the same as the
11269           server's pending command handling.  It is also now possible to
11270           execute command reply functions from other command reply
11271           function as the function callbacks for commands and command
11272           replies are one and same.  The pending commands are not static
11273           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11274           in client connection context.  Thus, pending commands are server
11275           connection specific as it is convenient.
11276
11277           Changed the function silc_client_command_pending and
11278           silc_client_command_pending_del and added new function
11279           silc_client_command_pending_check.  Removed the
11280           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11281           macros.
11282
11283         * Added cmd_ident, current command identifier, to the client
11284           connection context in lib/silcclient/client.h to keep track on
11285           command identifiers used in command sending.  Client's command reply
11286           function handling now supports the mandatory command identifiers.
11287
11288         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11289           funtions in client to fully support pending command callbacks.
11290
11291         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11292           as one of the arguments to the application in the command reply
11293           client operation.
11294
11295         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11296           before first releasing SILC but came back.  Now it is removed again
11297           and should come back nomore.  The FORWARDED flag was used only
11298           by the JOINing procedure by forwarding the command packet to router.
11299           Now, the JOINing procedure has been changed to more generic (due
11300           to various router environment issues) and FORWARDED is not needed
11301           anymore for anything.  The protocol specification is yet to be
11302           updated.
11303
11304           Now, removed silc_server_packet_forward from server and the flag
11305           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11306
11307 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11308
11309         * Renamed NAMES command to USERS command.  The NAMES was named that
11310           due to historical reasons.  Now it is renamed.  Also, rewrote
11311           parts of the USERS command.  The nickname list is not sent anymore
11312           by the server.  Only Client ID and mode lists are sent in the USERS
11313           command.  Changed this also to the protocol specification.
11314
11315           The client now resolves the names and stuff after it receives
11316           the USERS list from the server when joining to the channel.
11317
11318         * WHOIS and IDENTIFY commands has been changed to support multiple
11319           Client ID's per command.  One can now search for multiple users
11320           in the network by sending only one WHOIS or IDENTIFY command.
11321           Changed the code and the protocol specifications.
11322
11323         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11324           uses silc_server_command_whois_parse to parse the request. */
11325
11326         * If normal server, do not parse the WHOIS and IDENTIFY requests
11327           before sending it to the router.  Saves some time.
11328
11329 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11330
11331         * Fixed JOIN command on client library.  Wrong number of arguments
11332           used to crash the client.
11333
11334         * Added silc_server_channel_has_global function to check whether
11335           channel has global users or not.
11336
11337         * Added silc_server_channel_has_local function to check whether channel
11338           has locally connected clients on the channel.
11339
11340         * The silc_server_remove_from_one_channel now checks whether the
11341           channel has global users or not after given client was removed from
11342           the channel.  It also checks whether the channel has local clients
11343           on the channel anymore.  If it does not have then the channel entry
11344           is removed as it is not needed anymore.
11345
11346         * The silc_server_notify now checks on JOIN notify whether the joining
11347           client is one of locally connected or global.  If it is global then
11348           the channel has now global users on the channel and that is marked
11349           to the channel entry.  Also, it now saves the global client to
11350           global list who is joining and JOINs it to the channel.  This is
11351           for normal server, that is.
11352
11353           Changed silc_server_send_notify_on_channel,
11354           silc_server_packet_relay_to_channel and
11355           silc_server_packet_send_to_channel check if we are normal server
11356           and client has router set (ie. global client) do not send the
11357           message to that client, as it is already routed to our router.
11358
11359         * Implemented LEAVE notify type handling in silc_server_notify
11360           function.
11361
11362         * Tested LEAVE command in router environment successfully.  Tested
11363           with two routers, two servers and two clients.
11364
11365         * Updated TODO.
11366
11367         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11368
11369         * Implemented SIGNOFF notify type handling in silc_server_notify
11370           function.
11371
11372         * silc_server_remove_id now removes the client entry from all channels
11373           it has joined and thusly sends SIGNOFF notify type.
11374
11375         * Rewrote the NAMES list generation in server by removing two excess
11376           loops.  The lists are created now inside one loop.
11377
11378 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11379
11380         * silc_server_remove_channel_user checks now also global list
11381           for channel and client.
11382
11383         * silc_server_new_channel_user checks now both local and global
11384           list for channel and client.  Fixed a bug in client id decoding.
11385           Used to decode wrong buffer.
11386
11387         * silc_server_channel_message checks now both local and global
11388           list for channel entry.
11389
11390         * Tested channel joining (hence JOIN) in router environment
11391           successfully.  Tested with two routers, two servers and two
11392           clients.
11393
11394         * Tested channel message sending in router environment successfully.
11395
11396 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11397
11398         * Added silc_server_save_channel_key into server.[ch] to save the
11399           received channel key in Channel Key payload processing. It is
11400           also used in JOIN command reply handling.
11401
11402           Equivalent function silc_client_save_channel_key added into
11403           client.[ch] into client library.
11404
11405         * Changed JOIN command reply to send information whether the channel
11406           was created or not (is existing already) and the channel key
11407           payload.  Changed protocol specs accordingly.
11408
11409         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11410           the request was sent by ID and not by nickname.  Crashed on
11411           NULL dereference.
11412
11413 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11414
11415         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11416           now correctly save the received data.
11417
11418         * silc_server_free_sock_user_data now notifies routers in the
11419           network about entities leaving the network.
11420
11421           At the same time implemented functions silc_server_remove_id
11422           and silc_server_send_remove_id to receive and send REMOVE_ID
11423           packets.  The packet is used to notify routers in the network
11424           about leaving entities.  The ID removed will become invalid in
11425           the network.
11426
11427         * Added function silc_idlist_del_server into server. Removes and
11428           free's server entry from ID list.
11429
11430         * silc_server_private_message function now checks, if we are router,
11431           that the destination ID really is valid ID, naturally.
11432
11433         * In router when NEW_ID packet is received (for new client) the
11434           hash of the Client ID is saved in the ID Cache but the
11435           client->nickname is set to NULL, instead of putting the hash
11436           to it as well.
11437
11438           IDENTIFY command now also checks that client->nickname must be
11439           valid. If it is not if will request the data from the server who
11440           owns the client.  Added new function
11441           silc_server_command_identify_check.
11442
11443         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11444           to set the command to already allocated Command Payload.
11445
11446         * Tested private message sending in router environment with two
11447           routers, two servers and two clients.  Fixed minor bugs and now
11448           it works fine.
11449
11450         * Fixed segfault from client's NAMES command. Used to crash if
11451           not on any channel.
11452
11453         * Forwarded packets must not be routed even if it is not destined
11454           to the receiver.  Changed server code comply with this.
11455
11456 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11457
11458         * Added `require_reverse_mapping' boolean value to ServerParams
11459           structure. If TRUE (not default) the server will require that
11460           the connecting host has fully qualified domain name.
11461
11462           If the reverse mapping is not required and hostname could not be
11463           found the IP address is used as hostname.
11464
11465 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11466
11467         * Implemented version string checking to both client and server.
11468           The check is incomplete currently due to the abnormal version
11469           strings used in development version of SILC.
11470
11471         * Changed all command functions in server to use the new
11472           CHECK_ARGS macro.
11473
11474 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11475
11476         * Changed char *data to unsigned char *data in ID Cache system to
11477           support binary data as ID Cache data. Changed code to support
11478           binary data in lib/silccore/idcache.c.
11479
11480         * Renamed silc_server_packet_relay_command_reply to
11481           silc_server_command_reply as it is normal packet receiving
11482           function. Rewrote the function to accept command replys for
11483           servers and not only for clients.
11484
11485         * Mark remote router always as registered server if we are connecting
11486           to it.  Otherwise, commands sent by the router to us are ignored.
11487
11488         * All ID List find routines now returns the ID Cache Entry pointer
11489           as well if requested.
11490
11491         * WHOIS command works now in router environment, tested with two
11492           routers, two servers and two clients.
11493
11494         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11495           in router environment (as it is almost equivalent to WHOIS) but
11496           hasn't been tested thoroughly.  Added new functions:
11497
11498           silc_server_command_identify_parse
11499           silc_server_command_identify_send_reply
11500           silc_server_command_identify_from_client
11501           silc_server_command_identify_from_server
11502
11503         * Disabled route cache adding because adding two different ID's with
11504           same IP replaces the old cache entry thus giving wrong route.
11505           The entry->router->connection is always the fastest route anyway
11506           so route cache may not be needed.  Of course, new routes maybe
11507           established after receiving the ID when the entry->router->connection
11508           might not be anymore the most optimal.
11509
11510 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11511
11512         * Add route cache for received ID for fast routing.
11513
11514         * Added silc_server_packet_route to route received packet on router
11515           that is not destined to us.
11516
11517         * Renamed silc_server_get_route to silc_server_route_get.
11518
11519         * Added id_string and id_string_len fields into SilcServer to
11520           include encoded ServerID for fast comparing without excess
11521           encoding of the ID's.
11522
11523         * Cleaned up WHOIS command on server side. Added following static
11524           functions:
11525
11526           silc_server_command_whois_parse
11527           silc_server_command_whois_check
11528           silc_server_command_whois_send_reply
11529           silc_server_command_whois_from_client
11530           silc_server_command_whois_from_server
11531
11532         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11533           arguments in command replies. All command functions should be
11534           updated to use this macro.
11535
11536 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11537
11538         * Minor typo fixes on command reply handling on server.
11539
11540 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11541
11542         * Added silc_server_command_add_to_channel internal routine to add
11543           the client to the channel after router has created the channel and
11544           sent command reply to the server.
11545
11546         * Added generic silc_server_send_command to send any command from
11547           server.
11548
11549         * Use static buffer with ID rendering instead of duplicating data.
11550
11551 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11552
11553         * Fixed a channel user mode bug when joining to a channel server gave
11554           everybody channel founder rights, oops.
11555
11556         * We mark ourselves as the router of the incoming server connection
11557           if we are router ourselves.  This way we can check in some packet
11558           sending functions whether it is locally connected server.  For
11559           incoming router connections we put NULL.
11560
11561         * For router sending packets locally means now always sending the
11562           packet cell wide; to local clients and local servers.  For normal
11563           server sending packet locally means sending it to only local
11564           clients.
11565
11566         * Fixed the JOIN command to really work in router environment.  If the
11567           channel is created it is always created by the router.  Router is
11568           also responsible of making the initial joining to the channel,
11569           sending JOIN notify to the sending server and distributing
11570           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
11571           does not exist server doesn't do anything else but forward the
11572           command to the router which performs everything.
11573
11574         * Added silc_server_send_channel_key function to send the Channel Key
11575           payload.
11576
11577         * Added silc_server_create_channel_key to create new channel key.  The
11578           channel key is now re-generated everytime someone joins or leaves
11579           a channel, as protocol dictates.  Note: channel->key_len is the
11580           key length in bits.
11581
11582 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11583
11584         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
11585           packet_receive.[ch] to separate packet sending and receiving
11586           routines.  The server.[ch] now includes everything else including
11587           actual packet processing (writing and reading data) and other
11588           server issues.
11589
11590           Renamed silc_server_private_message_send_internal to
11591           silc_server_send_private_message.  The routine is still though
11592           used only to relay private messages as server does not send
11593           private messages itself.
11594
11595           Renamed silc_server_new_channel to silc_server_create_new_channel
11596           and added new function sicl_server_new_channel that handles the
11597           incoming New Channel packet.  Added also new sending function
11598           silc_server_send_new_channel to send New Channel Payload.
11599
11600         * Added new function silc_server_notify to process incoming notify
11601           packet to the server/router. Server may then relay the notify
11602           to clients if needed.
11603
11604         * Added new function silc_server_new_channel_user to process incoming
11605           New Channel User packet.  Router will redistribute the packet and
11606           send JOIN notify to its local clients and locally connected servers
11607           if needed.  Normal server will send JOIN notify to its local client
11608           on same channel when received this packet.  Added also corresponding
11609           sending function silc_server_send_new_channel_user to sent the
11610           payload.
11611
11612         * Added boolean route argument to send_notif_to_channel and
11613           packet_send_to_channel functions to attempt to route the packet
11614           if it is TRUE and send only locally if it is FALSE.
11615
11616 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11617
11618         * silc_server_replace_id now broadcasts the received replace ID
11619           packet if it is not broadcast packet already. The router must
11620           broadcast to inform other routers about changed ID.
11621
11622         * Added backpointer to server's router into SilcServer context in
11623           silcd/server_internal.h.
11624
11625         * Fixed silc_server_packet_broadcast to send correct broadcast
11626           packets.
11627
11628         * The channel key is now distributed to the local client as soon
11629           as it is received from the router (in router environment) so that
11630           no other packet may be sent for the channel until client has
11631           received the key.
11632
11633         * silc_server_remove_channel_user now broadcasts the received
11634           Remove Channel User packet if it is not broadcast packet already.
11635           The router must broadcast to inform other routers about removed
11636           channel user.
11637
11638         * Added users field into SilcPacketContext that is a reference count
11639           of the context.  One can increase the reference count by calling
11640           silc_packet_context_dup which is now changed to just increase the
11641           reference count instead of duplicating the data.  The reference
11642           count is decresed by calling silc_packet_context_free that will
11643           free the data after the reference count hits zero.
11644
11645           For now on the packet context and everything allocated into it
11646           (including the raw packet from network) must be freed by calling
11647           the new silc_packet_context_free function.  Added also new function
11648           silc_packet_context_alloc that must be used now to allocate the
11649           context.  This also means that if a routine is asynchronous from
11650           silc_[client/server]_packet_parse_type the packet context must
11651           be duplicated by calling silc_packet_context_dup.  Otherwise it
11652           gets free'd after silc_[client/server]_packet_parse_type returns.
11653           Also, one must remember that if packet is duplicated then its
11654           reference count must be decresed by calling the free function as
11655           many times as it was duplicated.
11656
11657         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
11658           from both client and server.
11659
11660 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11661
11662         * Made joining to a channel working in router environment.
11663
11664         * Cleaned up JOIN command on server side and create function
11665           silc_server_command_join_channel internal routine to make the
11666           joining happen.
11667
11668 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11669
11670         * Changed silc_command_pending list to SilcDList.  Also, added
11671           `ident' field to SilcServerCommandPending structure to identify
11672           the reply and to call correct callback.
11673
11674           Added silc_server_command_pending_check function to replace the
11675           corresnponding macro.  The silc_command_pending list is not
11676           extern anymore.
11677
11678         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
11679           to set identifier to previously allocated Command Payload.  It
11680           is used to set identifier for command when resending Command
11681           Payload.
11682
11683         * Added silc_command_payload_encode_payload to encode Command
11684           Payload buffer from SilcCommandPayload structure.
11685
11686         * Added silc_argument_payload_encode_payload to encode Argument
11687           payload buffer from SilcArgumentPayload structure.
11688
11689 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11690
11691         * Changed WHOIS command to support router connection on server side.
11692           The whois request is always sent to router unless the server is
11693           standalone server.  After server has received the reply from the
11694           router will it send the reply to the client.
11695
11696         * Added silc_server_packet_broadcast into silcd/server.[ch] to
11697           broadcast received broadcast packet.  The function is used only
11698           by router.  The broadcast packet is always sent to the router's
11699           primary route.
11700
11701         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
11702           render given ID to printable string, for log files for example.
11703
11704 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11705
11706         * Made basic router to router connections working.  At least they
11707           can now connect to each other but nothing really works the way
11708           they are supposed - yet.
11709
11710         * Added new initiator token to RouterConnection configuration
11711           file in silcd/serverconfig.[ch].  It is used to tell whether we
11712           are the initiator to the remote router or whether we'll expect
11713           the other end to connect.
11714
11715         * Moved registering of listener task to silc_server_init, hence
11716           the server starts listenning as soon as it is run, even if it
11717           does not have connections to other routers.  Let's see how well
11718           this will work.
11719
11720         * Changed default connection retry timeouts for more suitable in
11721           silcd/server.h.
11722
11723         * Removed cipher and such arguments from silc_idlist_add_client
11724           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
11725           Added new function silc_idlist_add_data to add the keys and stuff
11726           to any ID entry.
11727
11728         * Added SilcIDListData structure and added it to SilcClientEntry
11729           and SilcServerEntry as their first field in the structure.  This
11730           way we can explicitly cast the ID entries to the SilcIDListData
11731           structure and get common data for the entries.  In past, we had
11732           to first check what type of connection it is and then cast it to
11733           correct ID entry type.  Now, we can directly cast the opaque
11734           pointer to the SilcIDListData (no matter what ID entry it actually
11735           is) and get the data needed.
11736
11737 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11738
11739         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
11740           in some circumstances even if threre were timeout tasks, though not
11741           IO tasks, but tasks anyway.  Now fixed.
11742
11743         * Defined SilcServerConnection structure to hold connection specific
11744           stuff about directly connected servers and routers.  The definition
11745           is currently in silcd/server_internal.h.  I thought about having
11746           a bit more important role fro this struct but for now it is used
11747           only when connecting to other server (or router actually).
11748
11749         * Added connecting retry support in server when connecting to
11750           router(s).  The retry feature implement exponential backoff
11751           algorithm.  Also, added SilcServerParams structure to hold default
11752           parameters for server.  For now, it include these retry settings
11753           and are hard coded.  After server is moded to be as Silc Server
11754           Library this structure will be more important.
11755
11756 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11757
11758         * Changed client librarys channel->clients table to SilcList and
11759           changed code accordingly.
11760
11761 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11762
11763         * Changed client's channel table to SilcList and changed code
11764           accordingly.  Also changed SilcChannelClientEntry to include back-
11765           pointer to the channel so that client entry can use that structure
11766           as list as well and we have fast cross-reference to the channel.
11767           This change dramatically decreased the complexity of channel
11768           handling with client entry and vice versa (removed one extra
11769           loop when searching for channel entry from many functions).
11770
11771         * Changed server->sim from table to SilcDList and changed code
11772           accordingly.
11773
11774         * NAMES command can now be used from user interface.  It will show
11775           the user list on the channel, neatly.
11776
11777         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11778           Code now saves realname of the user if it becomes available.
11779
11780         * Renamed configure.in to configure.in.pre and made ./prepare
11781           script to automatically add correct version string to
11782           configure.in which it creates from configure.in.pre.
11783
11784 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11785
11786         * NAMES command reply now shows users mode with the nickname when
11787           joining to channel.
11788
11789         * Moved silc_client_ch[u]mode[_char] functions from
11790           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11791           place sucks, they are utility functions and should be in some
11792           other file.
11793
11794         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11795
11796         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11797           cras.
11798
11799 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11800
11801         * Updated README.
11802
11803         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11804           a very good list library that is currently used in the SILC.  Defined
11805           SilcList API over the library because I didn't like the API very
11806           much.  See lib/trq/silclist.h for the API and examples of how to
11807           use the API.  Fixed various places in the code to use the new
11808           SilcList API. The SilcList is meant for lists that has a structure
11809           already defined as a list.  It is not suitable to add just some
11810           context to the list (in TRQ, the context is the list actually).
11811
11812           So, I defined SilcDList that can be used for the purpose where
11813           predefined list structure does not exit.  This can be used as
11814           such list.  Now some context just can be added to the SilcDList.
11815           Currently this list is not used in the SILC just yet, though there
11816           are a lot places where this can replace dynamically allocated
11817           tables and I will fix these places, later, to use SilcDList.
11818           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11819           and use TRQ internally).
11820
11821           Also fixed some annoying warning messages that the original TRQ
11822           code generated.  Also minor changes to TRQ's Makefile.in.
11823
11824         * Added support for querying by Client ID to both WHOIS and
11825           IDENTIFY commands into server, as required by the protocol.
11826
11827         * Removed method function pointers from SilcBuffer structure. They
11828           weren't used to anything and just increased the context size for
11829           no good reason.  This change also made silc_buffer_alloc and
11830           silc_buffer_free functions inline functions.
11831
11832         * Disabled command flooding detection support until it's fixed so
11833           that it accepts commands in but does not execute them more than once
11834           in two seconds.
11835
11836         * Added silc_net_localhost(), to return local hostname, into
11837           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11838           that must be initialized before calling silc_client_init.
11839
11840         * Added new function: silc_server_send_notify_on_channels to send
11841           notify messages to all channels client has joined.  It is assured
11842           that the message is sent only once per client.
11843
11844         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11845           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11846           function is generic and is used by server as well, not only by
11847           the logging routines.
11848
11849         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11850           the provided version string was not acceptable.  Added new function:
11851           silc_ske_check_version into lib/silcske/silcske.h.  The function
11852           must be implemented by the application (client or server) and it
11853           does not reside in the SKE library.  The function checks the version
11854           string remote end sent.
11855
11856         * Added back pointers (to opaque context and to SilcSocketConnection)
11857           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11858
11859         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11860           duplicate packet context structure.
11861
11862         * Changed `notify' client operation to send same arguments as client
11863           receives from server except for ID's.  ID's are mapped to correct
11864           ID entry and that is returned.  Also, if channel entry is not sent
11865           by server but the notify is for channel the channel entry is sent
11866           to application (otherwise application doesn't know that it is for
11867           channel (library gets it from packet's Destination ID)).
11868
11869         * Added silc_client_remove_from_channels into client library to
11870           remove a client from all channels it has joined to.  Used when
11871           received SIGNOFF notify from server.  Added also new function
11872           silc_client_replace_from_channels to replace old ID entry with
11873           new ID entry on all channels.  Used when received NICK_CHANGE
11874           notify from server.
11875
11876         * Fixed ID Cache list handling in silc_idlist_get_client in
11877           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11878           to get (or query) client by ID.
11879
11880         * Updated TODO list.
11881
11882         * Added connection authentication status message defined by the
11883           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11884           support for these into the code in client and server side.
11885
11886         * Added generic function silc_client_send_command to send any command
11887           with variable argument list.  Application should use this function
11888           to send commands if the command functions provided by the library
11889           does not suite for the application's user interface needs.
11890
11891         * Added new `failure' client operation.  Application is notified about
11892           received failure packet if client is executing a protocol.  In this
11893           case the protocol's execution has failed.
11894
11895         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11896           is required by the protocol.
11897
11898         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11899           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11900           error at our end.
11901
11902         * Added status flag to SilcSKE object to indicate realtime status
11903           of the SKE protocol.
11904
11905         * Application receives now exactly same command reply arguments as
11906           the library receives from server.  However, if ID is received the
11907           corresponding ID entry is returned to the application (eg. Client
11908           ID is mapped to correct SilcClientEntry entry and that is returned).
11909           Changed command_reply client operation due to this change.
11910
11911         * Changed all ID's in commands and in command replys as ID Payloads.
11912           Change affected both client and server side codes.
11913
11914           All ID's sent in SILC network (with execption of ID's in SILC
11915           Packet header) are sent in ID Payload to support variable length
11916           ID's.
11917
11918         * Server now notifies nick changes and notifies all clients on
11919           the channels about the new nickname (about the new Client ID,
11920           actually).
11921
11922         * Implemented CMODE command to change channel modes. Supports all
11923           channel modes defined by the protocol specs except ban and invite
11924           lists. (Also, private channel key mode is supported but support for
11925           setting private channel key in client is missing, thus, this mode
11926           has no effect on client side (except that server requires that the
11927           client uses private channel key and normal channel traffic does not
11928           work anymore)).
11929
11930           Also, invite mode works per se, but INVITE command does not work
11931           yet correctly, so you can set channel as invite only channel but
11932           inviting clients to the channel does not work (it is yet to be
11933           thought what's the best way to do it).
11934
11935         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11936           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11937           Implemented CUMODE command to change user's mode on the channel.
11938           Supports all modes defined by the protocol specs.
11939
11940         * Added NAMES command reply to return users modes on the channel.
11941
11942         * Removed unnecessary and slow ciphers from lib/silccrypt.
11943
11944         * Set SO_KEEPALIVE option to connection sockets by default.
11945
11946         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11947
11948         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11949           redefined the Notify Payload into protocol specs.
11950
11951         * Added silc_id_payload_parse_id to get ID directly from raw
11952           ID payload data.
11953
11954 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11955
11956         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11957           accept searching by Client ID as well.
11958
11959         * Added support for LEAVE and SIGNOFF notify types in client library.
11960
11961         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11962           to parse ID Payload from raw data.
11963
11964 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11965
11966         * Added flags parameter into silc_ske_assemble_security_properties
11967           function in lib/silcske/silcske.[ch].
11968
11969         * Changed notify client operation to fit better for notify messages
11970           sent by server.  The notify payload received from server is now
11971           passed to the application (after parsing it to SilcNotifyPayload).
11972           It is application's responsibility to retrieve the arguments
11973           from the payload and show the message the way it wants.  The message
11974           sent by server is implementation specific.
11975
11976         * Changed public keys to comply with the protocol specification.
11977           Old public keys are not supported anymore and are not compatible.
11978
11979         * Removed nickname from Channel Payload as the latest draft removed
11980           it.  The client must resolve the nickname from the NAMES command
11981           reply received when it joined the channel.
11982
11983           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11984
11985 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11986
11987         * Fixed some errors in protocol specification drafts.
11988
11989         * Created lib/silccore/silcnotify.c to implement Notify Payload
11990           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11991           generic payloads described by protocol specifications.  The file
11992           includes implementations for ID Payload and Argument Payload.
11993
11994         * Changed Command Payload implementation to use the new Argument
11995           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11996           to comply with SILC coding conventions.
11997
11998         * Added suppport for Argument Payload handling in Notify Payload
11999           implementation as protocol requires it.  Added the new support
12000           into server and client lib as well.
12001
12002 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12003
12004         * Added support for multiple nicknames on same channel.  [n] is
12005           added locally to the nickname if there are more than one same
12006           nicknames on the channel.
12007
12008         * Server now sends all nicknames that matched WHOIS request.
12009           Client also shows the list received from server.
12010
12011         * Added TOPIC command to client side.  User can now set and show
12012           current topic on channel.
12013
12014         * Added MOTD command to client and server.  Also, server sends the
12015           motd when client connects to the server.
12016
12017         * Changed version strings to comply ISO 8601.
12018
12019 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12020
12021         * Fixed protocol error handling in client library.  It should now
12022           cope even if the SKE fails for some reason.
12023
12024         * Made new protocol specification drafts for submitting to IETF.
12025
12026         * Implemented TOPIC command to server in silcd/command.c.
12027
12028         * Added two new notify types into lib/silccore/silcnotify.h:
12029           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
12030           notify nickname change and topic setting/change on a channel.
12031
12032         * API change of command_reply operation in client library.  The
12033           application gets now the status type received from server as well.
12034
12035 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12036
12037         * Removed the function just added to lib/silcutil/silcschedule.[ch].
12038
12039         * Cras fixed and optimized the packet handling even further and
12040           it should work now.  Minor change to the prototype of function
12041           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
12042
12043 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12044
12045         * Added new function into lib/silcutil/silcschedule.[ch]:
12046           silc_schedule_with_fd to select() a specified fd.  The function
12047           returns after timeout expires or data arrives or goes.  The
12048           function is used by packet routines to wait that all data is
12049           received from network.
12050
12051         * Fixed data reading from network in lib/silccore/silcpacket.c.
12052           The code now assures that all data is read from the fd and then
12053           continues packet processing.  This was a bug fix since the code
12054           used to drop some data in some circumstances.
12055
12056         * Added new function into lib/silcclient/client.[ch]:
12057           silc_client_start_key_exchange to start key exchange after
12058           connection has been established to server.  The code internally
12059           now uses this funtion but its main purpose was to provide it
12060           for applications that perform their own connecting.  After
12061           application has created a connection it merely calls this
12062           function to start the key exchange between client and server.
12063           The library takes care of everything else after that.
12064
12065           Updated also lib/silcclient/README to explain the usage of
12066           this new function.
12067
12068         * Do not send to application information that connection has
12069           been established.  Application gets notified it by connect
12070           operation anyway.
12071
12072 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12073
12074         * Applied cras's patch to add silc_schedule_one function.  The
12075           function runs scheduler once and returns.
12076
12077         * Fixed the scheduler after cras messed it up.  The timeout
12078           handling works now as it's supposed to work.
12079
12080         * Added into lib/silccore/ silcnotify.h to include notify
12081           message types support.  Changed silc_server_send_notify*
12082           functions, in server.[ch], to support those new notify types.
12083           Added the support for the notify types into client library,
12084           as well.  Added new notify client operation into ops.h in
12085           lib/silcclient/.
12086
12087         * Changed silc_server_packet_send_to_channel to send normal
12088           packets instead of just channel message packets.  The function
12089           is now used to send the notify packets to channels.  It is not
12090           used to send channel message packets anymore, as server never
12091           sends them anymore.
12092
12093         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
12094           va_arg()s as it seems to require it nowadays.  I guess, if SILC
12095           is compiled with older va_arg() the new code should work anyway.
12096
12097 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12098
12099         * Splitted core library.  Core library (lib/silccore) includes
12100           now only SILC protocol specific core (and common) components.
12101           Created new utility library (lib/silcutil) that includes more
12102           generic purpose stuff.  The stuff for util library was taken
12103           from the old core library.  This was minor and easy split.
12104
12105         * Created SILC Client Library (lib/silcclient) that includes
12106           implementation of the SILC client without user interface.  This
12107           was major move from silc/ directory.  The code has been changed
12108           so that it is transparent towards the user interface.  The
12109           silc/ directory includes now the same user interface as before
12110           and it uses the new client library.  Read lib/silcclient/README.
12111           Basicly, the client library performs everything else related
12112           to SILC except user interface handling.  Also, configuration
12113           files are considered to be part of user interface and library
12114           does not handle them.
12115
12116           This change also changed a lot of structures, function naming etc.
12117           Most important change was that SilcClientWindow object was
12118           renamed to SilcClientConnection in the client library.  Created
12119           also new file lib/silcclient/ops.h.  Also added new files
12120           silc/local_command.[ch] and silc/client_ops.[ch].
12121
12122           All these changes were made to make it easier for user interface
12123           designers to create what ever user interface for the SILC client
12124           they want.
12125
12126           It is also expected that the server will be moved to lib
12127           directory as well and SILC Server Library will be created;
12128           sometimes in the future.
12129
12130         * Removed Local commands from lib/silccore/silccommand.h as
12131           they are application specific and new client library does not
12132           handle any of those anymore.
12133
12134         * Several functions moved to lib/silcutil/silcutilc.[ch] from
12135           old client implementation in silc/.
12136
12137         * Added support for callback functions in SILC_LOG_* macros.
12138           Application can now set its own callbacks that will be called
12139           instead of using the default functions that will always print
12140           the debug messages to stderr (or stdout).  Also, debugging can
12141           now be disabled by setting silc_debug to FALSE and re-enabled by
12142           setting it to TRUE.  Note, that logging will still work even
12143           if debugging is disabled.
12144
12145           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
12146           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
12147           silc_log_reset_debug_callbacks.
12148
12149         * To enable debugging in silc client one must give now -d
12150           option on command line.
12151
12152         * Changed silc_schedule_init to automatically allocate task queues
12153           if they are not allocated before calling it.
12154
12155 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12156
12157         * Added GMP 3.1 into math library.
12158
12159 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12160
12161         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
12162           a channel in SILC network.  The packet is used by servers and
12163           routers to notify other routers that user has left a channel.
12164           This little feature was missing until now.  Added the feature
12165           to protocol specification as well.
12166
12167           Added functions: silc_server_send_remove_channel_user and
12168           silc_server_remove_channel_user into server.[ch].
12169
12170         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
12171           lib/silccore/silcpacket.h.  However, they are not implemented
12172           yet.
12173
12174 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12175
12176         * Fixed joining to a channel and sending channel messages
12177           between server and router.  The channel message sending should
12178           now work inside a cell.
12179
12180 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12181
12182         * Fixed the private message sending between server and router.
12183           The private message sending should now work inside a cell.
12184
12185         * Added silc_server_replace_id into server.[ch] to replace
12186           existing ID in the SILC network.
12187
12188         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
12189           and silc_idlist_replace_server_id into idlist.[ch] in server.
12190
12191 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12192
12193         * Fixed the server to server connections.  Server can again now
12194           connect to router.  Router to router connections probably does
12195           not work just yet.
12196
12197 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12198
12199         * Added dynamic protocol registering support.  Now protocols can
12200           registered and unregistered on the fly.  Patch by cras.
12201
12202 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12203
12204         * Added lib/contrib directory to hold routines that some platforms
12205           don't have but are needed by SILC.
12206
12207         * Added getopt.c, getopt1.c and getopt.h from GNU C library
12208           into lin/contrib to provide getopt() and getopt_long() for
12209           those who don't have it.
12210
12211 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12212
12213         * Added AWAY command to client.  When away message is set and
12214           client receives a private message packet the client automatically
12215           replies to the sender with the away message.
12216
12217         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
12218           bug seemed to be the cause of recent problems when compiling
12219           with gcc-2.95.
12220
12221         * Added version detection support to SKE protocol specification
12222           and added the new changes to the SKE implementation as well.
12223           There were other minor changes in the SKE protocol as well.
12224
12225           Many changes in lib/silcske/silcske.[ch] and in
12226           lib/silcske/payload.[ch].
12227
12228         * Added ^U functionality, clear input line.  Patch from cras.
12229
12230 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12231
12232         * Mainly small bugfixes on core library.  Fixed some debugging
12233           logging and buffer overflow in silclog.c.
12234
12235         * Updated config.sub and config.guess on the distribution tree.
12236
12237 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12238
12239         * Added command lagging support in server. Client may execute
12240           commands now only once in two seconds.
12241
12242 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12243
12244         * Optimized packet reception. MAC computation and checking is now
12245           also more optimized.  A lot previously duplicated code is now
12246           used as generic by both client and server.
12247
12248         * Fixed key pair generation in clientutil.c
12249
12250 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12251
12252         * Added into lib/silccore/silcbufutil.[ch] new function;
12253           silc_buffer_realloc.
12254
12255         * Moved generic packet sending/encryption functions to
12256           lib/silccore/silcpacket.[ch] from client and server.  Some
12257           rewriting of the functions.
12258
12259         * Moved all generic packet reception/decryption functions to
12260           lib/silccore/silcpacket.[ch] from client and server.  The
12261           packet processing is now much cleaner in both client and server.
12262           These were major changes in both client and server.
12263
12264         * Created many common functions in server to do packet sending.
12265           Previously code were duplicated a lot, this has been removed
12266           with these changes.
12267
12268 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12269
12270         * Rewrote major parts of the ID cache system.  Don't know
12271           whether it is better now or not but at least the API is more
12272           cleaner now.
12273
12274         * Major rewrite on ID cache stuff on client because of the ID
12275           cache API changes.  Added idlist.c to client.
12276
12277         * Also major rewrite on ID cache stuff on server as well.
12278           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12279           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12280           in hand, instead they are all put into the ID cache system now.
12281           All server_idlist_* routines uses ID cache now instead of
12282           traversing its own lists (those lists does not exist anymore).
12283           SilcIDList though still exists.  Also, SilcXXXEntry's are
12284           now pointers.
12285
12286 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12287
12288         * Finally made the SKE implementation compliant to the protocol
12289           specification.  All mp integers are now binary encoded as
12290           opposed being HEX encoded.
12291
12292         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12293           from binary data.
12294
12295         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12296           functions: silc_[encode/decode]_pem.  Also added function
12297           silc_encode_pem_file to PEM encode with newlines ('\n') for
12298           saving into a file.
12299
12300         * SILC public keys are now encoded either PEM or binary.  Same
12301           option is for private keys as well.  By default private keys
12302           are binary encoded and public keys PEM encoded.  Silly HEX
12303           encoding were removed.
12304
12305         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12306           function to create fingerprints.
12307
12308         * Fixed a bug in SHA1; does not change the original data anymore.
12309
12310         * Partly implemented INFO command on client and server side.
12311           Fixed CLEAR command.  Changes to SERVER command; show current
12312           server(s) when giving command without arguments.  Added
12313           VERSION command to client.
12314
12315         * Added check to server that unregistered connections cannot
12316           execute commands (unless it is specificly allowed).
12317
12318 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12319
12320         * Fixed screen refresh.
12321
12322         * Fixed channel joining bug from client.  On some circumstances
12323           client tried to join to a channel it had already joined.
12324
12325         * Added public key verification process into client's protocol.c.
12326           The client now verifies the public key from user and saves
12327           it into ~./silc/serverkeys/ directory.
12328
12329           Added into: clientutil.[ch]: silc_client_verify_server_key.
12330
12331         * Changed SKE protocol's silc_ske_initiator_finish function
12332           to accept callback function that verifies the received public
12333           key.  Removed old silc_ske_verify_public_key function.
12334
12335 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12336
12337         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12338           silc_pkcs_private_key[_data]_set.
12339
12340         * Made the password and public authentication more cleaner in
12341           server's protocol.c.
12342
12343         * Removed historic and obsolete protocol `channel_auth' from
12344           both client and server.
12345
12346         * Removed wrong way of sending command status messages from
12347           server to client in server's command.c.  The old way violated
12348           protocol specification.
12349
12350           Changes to silccore/silccommand.[ch]: removed
12351           silc_command_encode_status_payload -> not needed anymore,
12352           changed silc_command_encode_payload_va to accept extra
12353           argument on variable argument list.  The argument type must
12354           now be provided to the function.  Also, added new function:
12355           silc_command_encode_reply_payload_va which is same as
12356           normal command_encode_payload_va except command status type
12357           is provided as extra argument.
12358
12359 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12360
12361         * Added ~./silc directory handling.  The directory includes the
12362           public and private keys for the client.
12363
12364           Added silc_client_check_silc_dir, silc_client_create_identifier
12365           and silc_client_load_keys.
12366
12367         * Implemented SILC protocol compliant public key.  Added public
12368           and private key saving to and loading from files.
12369
12370           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12371           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12372           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12373           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12374           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12375
12376           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12377           silc_pkcs_load_[public/private]_key.
12378
12379 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12380
12381         * Added silc_server_get_route (route.[ch]) to get connection
12382           data for the fastest route for given ID.
12383
12384         * Implemented INVITE command on client and server.  The command
12385           were re-defined in the SILC Protocol Specification and the
12386           implementation now complies with the specification.
12387
12388         * Implemented PING command on client and server.
12389
12390         * Implemented NAMES command on client and server.  The server side
12391           supports currently only normal server not router server yet.
12392           Some changes to NAMES definition in SILC protocol specification.
12393
12394 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12395
12396         * Implemented LEAVE command on client and server.
12397
12398         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12399           again.  This change was made to the protocol as well.  Server
12400           should not violate the protocol specification anymore.
12401
12402 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12403
12404         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12405           was tested.  SOCKS4 was not but should work anyway.