updates.
[silc.git] / CHANGES
1 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
2
3         * Removed silc_packet_[get|set]_ciphers and
4           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
5           handle REKEY_DONE packet sending in rekey.  Affected files
6           are lib/silccore/silcpacket.[ch].
7
8         * Added silc_fsm_is_started.  Affected files are
9           lib/silcutil/silcfsm.[ch].
10
11         * Added settings sign_channel_message, sign_private_message
12           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
13           support for key agreement in /KEY command. Affected files
14           in apps/irssi/src/silc/core/.
15
16         * During SILC Client initialization forward log messages to
17           stderr.   Affected files in apps/irssi/src/silc/core/.
18
19 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
20
21         * Added silc_ske_get_key_material.  Affected files are
22           lib/silcske/silcske.[ch].
23
24         * Added silc_packet_stream_is_udp.  Affected files are
25           lib/silccore/silcpacket.[ch].
26
27         * Added SKE packet retransmission support with UDP transport.
28           Affected file is lib/silcske/silcske.c.
29
30 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
31
32         * Added silc_socket_stream_is_udp.  Affected file is
33           lib/silcutil/silcsocketstream.[ch].
34
35         * Added UDP transport support to packet engine.  Affected file
36           is lib/silccore/silcpacket.c.
37
38         * Added silc_socket_stream_is_udp.  Affected file is
39           lib/silcutil/silcsocketstream.[ch].
40
41 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
42
43         * Added silc_packet_send_va[_ext] to send variable argument
44           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
45
46         * Timeout freelist garbage collection added to scheduler.
47           Affected file lib/silcutil/silcschedule.c.
48
49 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
50
51         * Added silc_show_public_key_file to
52           lib/silcapputil/silcapputil.[ch].
53
54         * Added SILC_STR_ADVANCE support for buffer unformatting.
55           Affected file lib/silcutil/silcbuffmt.c.
56
57 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
58
59         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
60
61         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
62
63         * silc_fsm_continue[_sync] now cancels erlier timeout set with
64           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
65
66 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
67
68         * Added SILC_STR_FUNC to buffer format API.  Affected files
69           are lib/silcutil/silcbuffmt.[ch].
70
71         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
72
73         * No more memory allocation for message payload parsing.
74           Pre-allocated buffer can be used with message payload encoding.
75           Affected files lib/silccore/silcmessage.[ch].
76
77 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
78
79         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
80           to silcutil/silcbuffmt.[ch].
81
82 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
83
84         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
85           Affected file lib/silcutil/silcbuffmt.[ch].
86
87         * Removed silc_schedule_signal_[un]register and
88           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
89           to add signal task.  Only one callback per signal may be
90           added.  The signals are now automatically called back to
91           caller.  Affected files lib/silcutil/silcschedule.[ch] and
92           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
93
94         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
95
96         * Added SilcSKEParams for SKE parameters and simplied even more
97           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
98           Added support for IV included and session port handling with
99           UDP/IP connections.
100
101         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
102           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
103           which is called after every rekey when IV Included flag is used.
104           See SILC specifications for details.
105
106 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
107
108         * Added lib/silcapputil and moved SILC application specific
109           utility routines from the generic util library lib/silcutil
110           to the new library.  Removed lib/silcidcache and moved that
111           to lib/silcapputil as well.
112
113 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
114
115         * Added SILC_STR_ADVANCE.  Affected file is
116           lib/silcutil/silcbuffmt.[ch].
117
118         * The silc_buffer_strformat preserves buffer locations now.
119
120         * Added lib/silcutil/silcatomic.h for atomic operations.
121
122 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
123
124         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
125           server.
126
127         * Fixed MIME deocing when data portion is not present.
128           Affected file lib/silcutil/silcmime.c.
129
130 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
131
132         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
133
134         * Added IV Included support to packet routines, to allow
135           packet sending and receiving on UDP/IP.  Affected files are
136           lib/silccore/silcpacket.[ch].
137
138         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
139
140 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
141
142         * Added UDP support to network and socket stream library.
143
144 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
145
146         * Added conditional variables.  New files are
147           lib/silcutil/silcondvar.h and platform specific implementations.
148
149 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
150
151         * make sure session->hostname and session->port are valid before the
152           application callback is done, since things will go wrong if the
153           application immediately calls silc_client_file_receive. Affected
154           file lib/silcclient/client_ftp.c.
155           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
156
157 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
158
159         * New SILC PKCS API enabling support for other public keys
160           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
161
162         * Separated SILC Public Key Payload routines from the PKCS API
163           to lib/silccore/silcpubkey.[ch].
164
165 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
166
167         * Added SILC Key Repository library, lib/silcskr.
168
169         * Added SILC Server library, lib/silcserver.
170
171 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
172
173         * MIME objects in attributes now use SilcMime.  Affected files
174           are lib/silccore/silcattrs.[ch].
175
176 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
177
178         * Synchronize semaphore posting for real threads in FSM.
179           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
180
181 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
182
183         * Added silc_file_set_nonblock.  Affected file is
184           lib/silcutil/silcfileutil.h.
185
186         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
187
188 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
189
190         * FSM based implementation of SILC SKE.  Simpler interface also.
191           Affected files are in lib/silcske/.
192
193         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
194
195 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
196
197         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
198           silc_mime_parse is available but deprecated.
199
200         * Check that packet is valid when processing key exchange,
201           authentication and rekey protocols.  Fixes a crashbug.
202           Affected files are apps/silcd/protocol.c and
203           lib/silcclient/protocol.c.
204
205         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
206           all hash buffers to use that instead of fixed values.
207
208 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
209
210         * Added SHA-256 to crypto library.  The SHA-256 takes now
211           precedence over SHA-1.
212
213 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
214
215         * Check for valid return value from regcomp.  Affected file
216           lib/silcutil/unix/silcunixutil.c.
217
218 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
219
220         * Fixed silc_hash_uint to work with integers.  Affected
221           file lib/silcutil/silcutil.c.
222
223 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
224
225         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
226
227 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
228
229         * Fixed channel public key list saving on JOIN command reply
230           on backup router.  Affected file apps/silcd/command_reply.c.
231
232 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
233
234         * Added default limit how many channels client can join,
235           default is 50.  Added 'channel_join_limit' configuration
236           option to server too.  Affected files are apps/silcd/command.c
237           and serverconfig.[ch].
238
239 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
240
241         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
242           On Toolkit the server and client are not compiled by default.
243           Affected file configure.ad.
244
245 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
246
247         * Added lib/contrib/getopt.[ch] for platforms that don't
248           have it (it is not GPL implementation).
249
250         * Fixed compilation when pkg-config is used.
251
252 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
253
254         * A comma in invite/ban string is invalid, check for it.
255           Affected file apps/silcd/server_util.c.
256
257         * Added SERVICE command to the server.  It parses the command
258           request but SILC Server does not support services for the
259           time being.  Affected file apps/silcd/command.[ch].
260
261         * Added SERVICE command and command reply to client library.
262           It is however incomplete.  Updated Toolkit documentation.
263           Affected files are lib/silcclient/command[_reply].[ch].
264
265         * Fixed IDENTIFY/WHOWAS command reply to send the username
266           correctly (uninitialized buffer).  Affected file is
267           apps/silcd/server_query.c.
268
269 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
270
271         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
272           finalizes the major restructuring of the CVS tree.
273
274 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
275
276         * Send empty MOTD reply if MOTD file cannot be read.
277           Affected file silcd/command.c.
278
279 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
280
281         * Optimized primer number generator to use simpler conversion
282           routines.  Also assure that the prime number will have the
283           highest bit set after modifying it.  Affected file is
284           lib/silcmath/silcprimegen.c.
285
286         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
287
288         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
289           for now only for testing purposes, it will not be delivered
290           in any distribution for now.
291
292         * Removed NSS MPI from the source tree.  Due to upcoming
293           license change for the SILC Toolkit, we cannot deliver the
294           NSS MPI anymore.  I decided to replace it in all distributions
295           with public domain library.
296
297         * Removed GNU regex from lib/contrib and introduced free
298           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
299           GNU regex compatible API to it (only partial).
300
301         * Removed getopt routines from lib/contrib.
302
303 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
304
305         * Use silc_server_send_command_reply to send replies instead
306           of encoding packet itself.  Affected file silcd/command.c.
307
308         * Added command sending and receiving statistics to server.
309           Affected files in silcd/.
310
311         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
312           with GCC, for it not to warn about pointer signedness.
313
314 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
315
316         * Added context to the SilcIDCache destructor.  Affected
317           files are lib/silccore/silcidcache.[ch],
318           lib/silcclient/client.c and silcd/server.c.
319
320 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
321
322         * Added pkg-config check to configure.
323
324         * The PublicKeyDir must not be used with Admin block in server
325           config.  Affected file silcd/serverconfig.c.
326
327 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
328
329         * Added Autodist.
330
331 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
332
333         * Handle empty LIST command reply correcttly in server.  Affected
334           file silcd/command_reply.c.
335
336         * Handle empty LIST command reply correctly in client library.
337           The application will now receive one LIST command reply with
338           all arguments set to NULL if there are no channels.  Updated
339           Client Library documentation accordingly.  Affected file
340           lib/silcclient/command_reply.c.
341
342 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
343
344         * Added channel name string stringprep profile to the protocol
345           and implementation to allow a little free'er channel name
346           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
347
348         * Added silc_channel_name_[check|verify] to check and verify
349           channel name strings.  Affected files are
350           lib/silcutil/silcstrutil.[ch].
351
352         * Added support for the new channel name preparation in client
353           library and server.  Affected files in lib/silcclient and
354           silcd/.
355
356 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
357
358         * Added the Autodist into the source tree.  It replaces the
359           old ./prepare.  It can be used to create distributions as
360           previously.  See README.CVS and README.DIST.  See
361           distributions in distdir/.
362
363 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
364
365         * Make sure query sends at least an error back if nothing
366           more is sent.  Affected file silcd/server_query.c.
367
368 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
369
370         * During query, check if the original command caller goes
371           away.  If it does, stop the query.  Affected file
372           silcd/server_query.c.
373
374         * Check for valid channel creation in JOIN command reply.
375           Affected file lib/silcclient/command_reply.c.
376
377         * Handle the resolver counter in silc_client_get_users_by_channel
378           callback correctly.  Fixed auto-join bug in Gaim.  Affected
379           file lib/silcclient/idlist.c.
380
381 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
382
383         * Added some better error messages.  Affected file
384           silcd/command_reply.c and packet_receive.c.
385
386         * Handle error in WATCH command propely on backup router.
387           Affected file silcd/command.c.
388
389         * Fixed freeing of unfreeable variable in WHOIS command reply.
390           Affected file silcd/command_reply.c.
391
392 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
393
394         * Added pkg-config .pc file creation for silc core library
395           and silcclient library.  A patch by c0ffee.
396
397         * Removed the need for GNU Libidn.  Added the simple stringprep
398           from libidn into lib/contrib/.  It is now used also on Windows
399           build.
400
401 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
402
403         * Simplified the invite and ban string handling in the
404           server.  Check for valid invite and ban arguments also.
405           Affected file silcd/server_util.c.
406
407 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
408
409         * Added WATCH list announcing in backup router protocol.
410           Affected files are silcd/command.c, server.c, server_backup.c.
411
412         * Do not change users mode to founder on normal server/backup
413           if the founder mode is set, and user is first one to join.
414           Affected file silcd/pcaket_receive.c.
415
416         * Do not send CUMODE_CHANGE notify back to sender.  Affected
417           file silcd/packet_receive.c.
418
419         * Added getrusage() to take noise in SILC RNG.  A patch by
420           Mika Boström.  Affected files are configure.in.pre,
421           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
422
423 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
424
425         * Splitted the SILC libraries configuration into a configure
426           fragment into lib/configure.ad.  It is now possible, once
427           this feature is added, to specify whether to compile or not
428           compile included SILC libraries.  Affected files are
429           configure.in.pre, lib/silcmath/mpi/configure.ad,
430           lib/configure.ad, Makefile.defines.pre and
431           Makefile.defines_int.pre.
432
433         * Added --with-silc-includes and --with-silc-libs to configure.
434           If specified the included libs are not compiled, but the
435           specified libs are used.  Pkg-config is not yet supported.
436           Affected file configure.in.pre.
437
438         * Fixed WATCH command handling on backup router.  Router does not
439           send the watch command any more to backup if it originates from
440           backup.  Affected file silcd/command.c.
441
442 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
443
444         * Changed announcing to not announce unregistered clients.
445           Affected file silcd/server.c.
446
447         * Fixed username handling in command reply.  Affected file
448           silcd/command_reply.c.
449
450         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
451
452 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
453
454         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
455           Affected file: includes/silcincludes.h.in
456
457         * bool is defined as _Bool on Mac OS X now.
458           Affected file: lib/silcutil/silctypes.h
459
460 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
461
462         * Added support for UTF-8 nicknames, channel names and
463           server names in client library.  Affected files in
464           lib/silcclient/.
465
466         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
467           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
468           software to check how Toolkit has been compiled.
469
470 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
471
472         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
473
474         * Use silc_utf8_str[n]casecmp instead of strcmp routines
475           in library and in SILC Client when dealing with nicknames
476           and other identifier strings.  Affected file in client lib
477           and irssi.
478
479         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
480           irssi/src/silc/core/silc-servers.c.
481
482 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
483
484         * Fixed idcache to work with the new identifier strings.
485           Affected file lib/silccore/silcidcache.c.
486
487         * Added UTF-8 hash and compare function for SilcHashTable.
488           Affected file lib/silcutil/silcutil.[ch].
489
490         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
491           Affected file lib/silcutil/silcstringprep.[ch].
492
493         * Changed the identifier string handling to include the original
494           format in client, server, channel entries and normalized
495           format in cache.  Affected files in silcd/.
496
497 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
498
499         * Added support for the new identifier strings and their
500           validity checking.  Nicknames, channel names and usernames
501           can now include practically any kind of letters and various
502           other characters.  Affected files in silcd/ and in libraries.
503
504           NOTE: comparing these strings should now be done with memcmp()
505           to check binary compatibility.  All these strings are normalized
506           and casing is irrelevant.
507
508         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
509           as easy function for applications to check whether identifier
510           strings are valid.
511
512 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
513
514         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
515           file lib/silcutil/silcutf8.c.
516
517         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
518
519 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
520
521         * Make public key in getkey reply mandatory.  Affected file
522           lib/silcclient/command_reply.c
523
524 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
525
526         * Added Parameter dont_register_crypto_library to
527           SilcClientParam. If set to TRUE, silcclient library will
528           not initalize the Crypto Libraries and application
529           will need to do it. Affected file lib/silcclient/silcclient.h,
530           lib/silcclient/client.c.
531
532 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
533
534         * Imported new silc_utf8_[encode|decode] routines from
535           my internal SILC 1.1 source tree.  New encodings added:
536           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
537           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
538           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
539           SILC_STRING_LDAP_DN.
540
541         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
542
543         * Implemented stringprep (RFC 3454) API.  Internally we use
544           GNU Libidn's stringprep, for now, so it is required now to
545           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
546
547         * Added checking for GNU Libidn and --with-libidn to configure.
548
549 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
550
551         * If the passphrases entered do not match while generating a new key,
552           completly start over instead of going into an infinite loop asking
553           the user to re-enter the passphrase correctly.  Affected file
554           lib/silcutil/silcapputil.c
555
556 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
557
558         * Make sure server is removed from backup list when it is
559           deleted.  Affected files silcd/command.c, server.c,
560           server_util.c.
561
562         * Close socket when connecting to router fails.  Affected
563           file silcd/server.c.
564
565 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
566
567         * Adopt configuration toolchain to current auto-tools.
568           Affected files prepare, irssi/configure.in
569         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
570           redo that.  Affected files irssi/src/silc/core/client_ops.c,
571           irssi/src/fe-common/silc/fe-silc-channels.c
572         * Take over command line options into silcclient data structure.
573           Affected file irssi/src/silc/core/silc-core.c
574
575 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
576
577         * Do not try to initiate backup resuming protocol forever.
578           Affected file silcd/server_backup.c.
579
580 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
581
582         * ID change in resuming has to be done before changing
583           detached client's modes, since the ID change may fail and
584           leave ghosts on the network.  Affected file is
585           silcd/packet_receive.c.
586
587 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
588
589         * Fixed Win32 scheduler to not stuck anymore.  A patch from
590           Juha Räsänen.  Affected file is
591           lib/silcutil/win32/silcwin32schedule.c.
592
593         * Fixed QoS parsing for connection blocks in server.  Affected
594           file is silcd/serverconfig.c.
595
596         * Fixed server statistics increasing in server.  Affected file
597           is silcd/server.c.
598
599         * The CLOSE command now marks backup router as self disconnected
600           to avoid resuming problems.  Affected file silcd/command.c.
601
602 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
603
604         * When using silc_net_create_connection[_async], and your system can
605           create IPv6 sockets, it will try to connect to the IPv6 host.
606           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
607           file lib/silcutil/unix/silcunixnet.c
608
609 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
610
611         * Check for valid route when receiving packet from router and
612           when routing it to local server in the cell.  A patch from
613           Matt Miller.  Affected files silcd/router.c and server.c.
614
615 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
616
617         * Couldn't detach and reattach twice, because of the previous
618           commit. Affected file silcd/packet_receive.c
619
620 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
621
622         * Added check to ignore Port value if Initiator is FALSE.
623           Remote router coudln't connect if Port was set. Affected file
624           silcd/serverconfig.c
625
626         * If some client tries to resume more than once at the same time,
627           server crashed. Router didn't crash, but showed odd behaviour
628           (didn't allow clients to join anymore, ..). Affected files
629           silcd/packet_receive.c silcd/idlist.h
630
631 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
632
633         * Destroy the file transfer session in silc_client_file_close
634           with timeout.  Affected file lib/silcclient/client_ftp.c.
635
636         * Call SFTP server monitor in READ and WRITE after the actual
637           operations.  Affected file lib/silcsftp/sftp_server.c.
638
639 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
640
641         * Create one configure script from configure fragments
642           (configure.ad).  This is a first step towards new distribution
643           system.  Affected files prepare, configure.in.pre,
644           lib/silcmath/mpi/configure.ad.
645
646 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
647
648         * Removed expiring of client key pair.  Affected file is
649           irssi/src/silc/core/clientutil.c
650
651 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
652
653         * Check the number of connections from real number of
654           connections instead of socket number, when deciding if
655           server is full.  Affected files are silcd/server.c,
656           server_internal.h and silcd.c.
657
658         * Clarified the connections_max meaning in General section
659           in doc/example_silcd.conf.in.
660
661         * The reconnect_keep_trying default value set to TRUE
662           if it is not defined in the config file.  Affected file
663           silcd/serverconfig.c.
664
665 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
666
667         * Fixed crashbug in connection closing, after a protocol
668           completion callback, which might have closed it already.
669           Affected file silcd/server.c.
670
671         * Fixed rekey with PFS in backup router.  It did not allow
672           rekeys with PFS, and when the rekey protocol timedout
673           it crashed the backup router without the above fix.  Affected
674           file silcd/packet_send.c and server.c.
675
676 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
677
678         * The silc_client_add_channel_private_key now returns the
679           private key context if pointer is given as argument.
680           Affected files are lib/silcclient/silcclient.h and
681           client_channel.c.
682
683         * Added support for using channel private keys in SILC
684           Client Library even if the private key mode is not set
685           on the channel.  Affected file lib/silcclient/client_channel.c.
686
687         * The channel private key used to decrypt message is now
688           delivered to the application in the 'channel_messageÃ' client
689           operation.  Affected files are lib/silcclient/silcclient.h
690           and client_channel.c.
691
692         * Fixed wrong arg type for user limit in CMODE command reply.
693           Affected file silcd/command.c.
694
695         * The user limit is now taken and saved to SilcClientEntry in
696           JOIN and CMODE command replies and in CMODE_CHANGE notify.
697           Affected files lib/silcclient/silcclient.h, command_reply.c
698           and client_notify.c.
699
700         * Added support to the new private message key indicator
701           packet.  Added a new function to the client library:
702           silc_client_send_private_message_key_request.  The sender
703           indicates to be initiator, and receiver is responder.
704           Added the indicator to the SilcClientEntry as 'prv_resp'
705           boolean.  Affected files are lib/silcclient/silcclient.h
706           client.[ch], and client_prvmsg.c.
707
708 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
709
710         * Fixed the JOIN command calling when called with both
711          -auth and -founder.  Affected file is lib/silcclien/command.c.
712
713 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
714
715         * Check watcher list for resumed clients as well.  Affected
716           file is silcd/packet_receive.c.
717
718 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
719
720         * Implemented the user limit to the CMODE_CHANGE notify,
721           CMODE command reply and JOIN command reply in server.
722           Affected files are silcd/server.c, command.c, command_reply.c,
723           packet_send.c and packet_receive.c.
724
725 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
726
727         * Defined SILC_STRFMT_END that must be used now with
728           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
729           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
730           lib/silcclient/silcvcard.c, silcd/server_util.c.
731
732         * Fixed the adding of public key to the WATCH list in server.
733           Fixed the WATCH notify sending to client.  Affected files
734           are silcd/packet_send.[ch], command.c, server_util.c.
735
736         * Implemented the watching by public key in the SILC Client
737           Library and SILC Client.  Affected files are
738           lib/silcclient/command.c and client_notify.c.
739
740 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
741
742         * Added support for public key watching in server.  Affected
743           files are silcd/server.c, server_internal.h, command.c,
744           server_util.c.
745
746 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
747
748         * Added public key to the SIlcClientEntry.  Affected files
749           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
750
751         * Fixed the get_clients_whois reply processing to return
752           exactly same entries server returned.  Makes it possible
753           to search using attributes.  Affected file is
754           lib/silcclient/idlist.c.
755
756 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
757
758         * Save founder key to SilcChannelEntry.  Affected files are
759           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
760
761 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
762
763         * Call the monitor callback with _CLOSED status from the
764           silc_client_file_close.  Affected files are
765           lib/silcclient/client_fpt.c, silcclient.h
766
767         * Added silc_client_get_clients_whois which resolves using
768           WHOIS, and supports requested attributes as well.
769           Affected files are lib/silcclient/silcclient.h, idlist.c.
770
771 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
772
773         * Added support for asking the destination filename where
774           the downloaded file is saved in the file transfer.  Affected
775           files are lib/silccilent/silcclient.h, client_ftp.c.
776
777 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
778
779         * Fixed error handling in resuming data processing.  Affected
780           files are lib/silcclient/client_resume.c and client.c.
781
782 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
783
784         * Fixed silc_client_send_private_message to return TRUE correctly.
785           Affected file lib/silcclient/client_prvmsg.c.
786
787         * Added topic to the SilcChannelEntry.  Affected files are
788           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
789
790 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
791
792         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
793           file lib/silcclient/command.c
794
795 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
796
797         * Convert all commands to UTF-8 before passing them to the
798           client library.  Still need to convert replies from UTF-8 to
799           the locale encoding.  Affected file
800           irssi/src/silc/core/silc-cmdqueue.c
801
802 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
803
804         * redirect all silc_client_command_calls through a queueing framework.
805           This fixes /CYCLE and the annoying "nick change after auto-joining
806           a channel".  Furthermore it defines one central point where
807           command parameters can be UTF-8-ified.  Affected files
808           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
809           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
810
811 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
812
813         * use asynchronous connect() to establish router connections.
814           Fixes problem when the primary router goes down.  Affected files
815           silcd/server.c, silcd/server_backup.c
816
817 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
818
819         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
820           Fixed various compilation warnings when type casting ints
821           to pointers or vice versa, of different size.  Updates around
822           the source free.
823
824 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
825
826         * Surrogates not allowed in UTF-8 strings, updated decoder.
827           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
828           testers in lib/silcutil/tests/ directory.
829
830 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
831
832         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
833           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
834           files are lib/silcclient/silcclient.h, client.c.
835
836 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
837
838         * When resuming a session fails, notify the user that the session
839           file needs to be removed eventually.  Affected files
840           irssi/src/fe-common/silc/module-formats.[ch],
841           irssi/src/silc/core/client_ops.c.
842
843 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
844
845         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
846           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
847
848         * Typofix in Irssi::Silc module.  Affected file
849           irssi/src/perl/silc/Silc.xs.
850
851 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
852
853         * Changed the way NOTICE flagged messages are treated. Added support
854           for notices in queries and signing notices.  Affected files
855           irssi/default.theme; irssi/docs/help/in/notice.in;
856           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
857           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
858
859         * Fixed typo in /ACTION help.  Affected file
860           irssi/docs/help/in/action.in
861
862 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
863
864         * Fixed typo in perl module.  Affected file
865           irssi/src/perl/silc/Server.xs
866
867         * Changed the way ACTION flagged messages are treated. Added support
868           for actions in queries and signing actions.  Affected files
869           irssi/default.theme; irssi/docs/help/in/action.in;
870           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
871           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
872           silc-servers.[ch]
873
874 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
875
876         * Incorrectly reported error when client had to be resolved from
877           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
878
879 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
880
881         * Fixed whois public key hash table deleting and adding in
882           detached client case.  Affected file silcd/packet_receive.c.
883
884 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
885
886         * Changed filenames of silc/fe module not to collide with filenames
887           from core/fe.  Also seperated public messages printing from
888           query messages printing.  Affected files are all in
889           irssi/src/fe-common/silc.
890
891 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
892
893         * Fixed the invite process handling during joining to use
894           correct server name for the client that is matched against
895           the invite string for the channel.  Wrong server name caused
896           inability to join the channel.  Affected file is
897           silcd/command.c.
898
899 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
900
901         * Fixed the CUMODE channel founder authentication on normal
902           server to not remove the founder rights on existing founder
903           before checking that router accepts the mode change.  Affected
904           files are silcd/command.c and silcd/packet_receive.c.
905
906         * Remove the server entry correctly when rekey timeouts and
907           remote router connection on normal server is closed.  Fixes
908           a crash where server uses the freed server entry.  Affected
909           file silcd/server.c.
910
911 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
912
913         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
914           networks.  This is the first step in solving the bug about
915           /SERVER ADD -silcnet <silcnet>.  Affected files
916           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
917           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
918           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
919
920 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
921
922         * /SMSG and /MMSG now correctly create new queries. Affected files
923           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
924
925         * Add basic support for SILC protocol specific variables in perl.
926           Affected files irssi/src/perl/silc/*, irssi/configure.in,
927           irssi/src/perl/Makefile.am
928
929 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
930
931         * Don't use silc_get_input, it's obviously not reliable.  Fixes
932           issue when the current key expires.  Affect file
933           irssi/src/silc/core/clientutils.c
934
935         * Make the session data filename configurable.  This makes it
936           possible to have different session files for different
937           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
938           client_ops.[ch], silc-servers.c,
939           irssi/src/silc/fe-common/silc/module-formats.[ch]
940
941         * Use the same set of libtool files for the MPI lib as for the
942           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
943           config.sub, configure.in, install-sh, missing, mkinstalldirs
944
945 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
946
947         * Fixed server statistics decrementing error to not go to
948           negative.  Affected file silcd/packet_receive.c.
949
950 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
951
952         * Use silc_server_query_add_error to add error in public key
953           search error.  Added support in send_reply to send errors
954           without specific argument.  Affected file silcd/server_query.c.
955
956         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
957           Client for NO_SUCH_NICK.  It was against the protocol specs.
958           Affected file irssi/src/silc/core/client_ops.c.
959
960         * Added backwards support for the wrong NO_SUCH_NICK error sending
961           in server.  To be removed in SILC Server 1.0.  Both old clients
962           and clients with fixed error handling now works.  Affected file
963           silcd/server_query.c.
964
965 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
966
967         * fixed a bug in the whois using attributes function where no
968           error was sent if no nickname and client id but the attributes were
969           given to whois. Affected file silcd/server_query.c
970
971 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
972
973         * remove public key from public key hashtable on detach. Affected
974           file silcd/packet_receive.c
975
976         * free public key hashtable before removing clients on server
977           shutdown. Affected file silcd/server.c
978
979         * remove public key prior deleting client-data on killing a client.
980           Affected file silcd/server_util.c
981
982 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
983
984         * Getting the MOTD from other servers works now. Affected
985           files are silcd/command.c and silcd/command_reply.c
986
987 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
988
989         * Initialize the variable idletag, since it is tested in
990           silc_core_deinit for its default value.  Affected file
991           irssi/src/silc/core/silc-core.c
992
993 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
994
995         * Fixed signed channel messages across cells. Affected file
996           silcd/packet_send.c
997
998 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
999
1000         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
1001           is not defined.  They can now be safely used in if-statements
1002           without braces.  Affected file lib/silcutil/silclog.h.
1003
1004         * Added the checks for backup closing connection due to error
1005           (local or remote) and thus not allow the resuming to occur
1006           in reconnect.  Affected files are silcd/packet_send.c
1007           and server.c.
1008
1009 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1010
1011         * Help file updates.  Affected files in irssi/src/docs/help/in/.
1012
1013 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
1014
1015         * Fixed channel messages across cells. Affected file
1016           silcd/packet_send.c
1017
1018 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1019
1020         * Fixed file transmission accepting in client library to not
1021           start the negotiation if user hasn't accepted the transfer,
1022           instead create new session for resent transfer.  Affected
1023           file lib/silcclient/client_ftp.c.
1024
1025         * Show the session ID in the file transmision list.  Remove
1026           session from list that failed to transfer.  Switch the current
1027           session automatically after transmission, and in errors, to new
1028           session if other sessions exists in the transfer list.  Affected
1029           files are irssi/src/silc/core/silc-servers.c,
1030           irssi/src/fe-common/silc/modfule-formats.c.
1031
1032 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1033
1034         * Fixed MIME header parsing for the hopefully last time.  Affected
1035           file lib/silcutil/silcstrutil.c
1036
1037 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1038
1039         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
1040
1041         * The SILC RNG is now gauranteed to return non-zero random
1042           values.  Affected files are lib/silccrypt/silcrng.[ch].
1043
1044 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1045
1046         * Fixed nickname formatting when changing only case of the
1047           nickname.  Affected file lib/silcclient/idlist.c.
1048
1049 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1050
1051         * Fixed a memory leak and incorrect printing of the "appears as"
1052           message.  Affected file irssi/src/silc/core/client_ops.c
1053
1054 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1055
1056         * Added CRT (Chinese Remainder Theorem) supported RSA
1057           private keys and private key operations.  This significantly
1058           increases private key operation efficiency.  No compatibility
1059           issues with new or old private keys.  Affected files are
1060           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
1061
1062 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1063
1064         * Fixed GCC-3.3.2 related compilation warnings from the
1065           source tree.
1066
1067 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1068
1069         * Removed RC6 from distributions.
1070
1071 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1072
1073         * Added some better comments to lib/silccrypt/silcpkcs.h,
1074           optimized some routines in lib/silccrypt/silcpkcs.c.
1075           Added test_silcpkcs into lib/silccrypt/tests/.
1076
1077         * Fixed silc_rng_global_init to actually init the global RNG
1078           if RNG wasn't provided for it.  Affected file is
1079           lib/silccrypt/silrng.c.
1080
1081 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1082
1083         * Added silc_hash_table_find_by_context_ext.  Affected files
1084           lib/silcutil/silchashtable.[ch].
1085
1086         * Save the public key on normal server in WHOIS command reply
1087           from attributes, if present, and add it to public key hash
1088           table.  Fixes WHOIS resolving by public key on normal server.
1089
1090           Optimized the attributes resolving on normal server to not
1091           resolve if we resolved them already from router.
1092
1093           Affected files are silcd/server_query.c, command_reply.c.
1094
1095 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
1096
1097         * Added support for whois using attributes.
1098           Affected files silcd/command_reply.c, silcd/packet_receive.c,
1099           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
1100           silcd/server_util.c
1101
1102         * Added support for whois using public key attribute to /WHOIS i
1103           client command. Affected files irssi/docs/help/in/whois.in,
1104           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
1105
1106 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1107
1108         * Fixed UMODE setting in server when the client has anonymous
1109           mode set.  The mode setting was not working.  Affected file
1110           silcd/command.c.
1111
1112 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1113
1114         * Fixed some bugs and typos related to sending split messages.
1115           Print notification when sending messages with /MMSG.  Affected
1116           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
1117
1118 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1119
1120         * Optimized the socket referencing in packet routines, client
1121           library and server.  Affected files are lib/silccore/silcpacket.c,
1122           lib/silcclient/client.c and silcd/server.c.
1123
1124         * If silc_socket_set_qos is given with NULL arguments the QoS is
1125           reset from the socket.  Affected files are
1126           lib/silcutil/silcsockconn.[ch].
1127
1128 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1129
1130         * Add a /LISTKEYS command which lists the locally cached
1131           client and server keys.  Affected files
1132           irssi/src/fe-common/module-formats.[ch],
1133           irssi/src/silc/core/silc-{channels,servers}.c
1134           irssi/docs/help/in/listkeys.in
1135
1136 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1137
1138         * Check that packet queue purging was successful.  Affected
1139           files lib/silcclient/client.c and silcd/packet_send.c.  Related
1140           to MAC failed errors.
1141
1142         * Do not clear the inbuf even if it is empty if QoS was applied
1143           to it.  Otherwise the QoS data is cleared and MAC failed error
1144           will occur.  Affected file lib/silccore/silcpacket.c.
1145
1146         * Use the rekey period time as rekey protocol timeout value.
1147           If the rekey does not succeed during the rekey period there's
1148           something very wrong, and we most likely end up with wrong keys,
1149           do graceful reconnect then.   Affected file silcd/server.c.
1150
1151         * Take reference of the socket in the parser context, as it's
1152           possible to have the parsers in queue after the socket is
1153           disconnected and this may cause crash.  Affected files are
1154           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1155           silcd/server.c.
1156
1157 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1158
1159         * Fixed KICK command reply sending, it sent to replies.
1160           Affected file silcd/command.c.
1161
1162 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1163
1164         * Finish the silc-mime.pl script. It now supports MIME type
1165           guessing using magic files, signing data messages, executing
1166           MIME handlers in background. Affected files
1167           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1168
1169         * Changed MIME signal handler to make things easier for the perl
1170           script. Affected files irssi/src/silc/core/client_ops.c,
1171           silc-servers.c, and irssi/docs/signals.txt
1172
1173         * Cleaned up the silc_mime_parse function and fixed detection
1174           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1175
1176 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1177
1178         * Resolve the IP for file transfer listener from the connection
1179           socket.  Affected file lib/silcclient/client_ftp.c.
1180
1181         * Accept NULL hostname parameter in the functions
1182           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1183           if hostname is not wanted.
1184
1185 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1186
1187         * Fixed race condition between silc_client_init and
1188           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1189
1190 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1191
1192         * Fixed file transfer connection closing when SIGNOFF for
1193           the client is received from server.  Affected file is
1194           lib/silcclient/client_ftp.c.
1195
1196 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1197
1198         * Check for disconnected socket in QUIT callback.  Affected
1199           file silcd/command.c.
1200
1201 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1202
1203         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1204           Affected files lib/silcutil/silcstrutil.c
1205
1206         * Cleaned up the escape/unescape functions for correctness and
1207           speed. Affected file irssi/src/silc/core/client_ops.c
1208
1209         * Removed handling for data messages with Content-Type: text/*,
1210           moved parsing of MIME headers to the signal handler, added
1211           support for signing and verifying data messages. Affected
1212           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1213           irssi/src/silc/core/silc-{servers,channels}.c
1214
1215         * Added a perl script for handling data messages based on
1216           information read from Mailcap files. New file
1217           irssi/scripts/silc-mime.pl
1218
1219 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1220
1221         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1222           acknowledge recepetion of a message to the sender.  Updated
1223           protocol specs.
1224
1225 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1226
1227         * Unregister channel key saving callback when deleting channel.
1228           Affected file lib/silcclient/idlist.c.
1229
1230         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1231           before calling notify client operation.  Affected file is
1232           lib/silcclient/client_notify.c.
1233
1234         * Unregister QoS tasks when deleting the socket connection.
1235           Affected files lib/silcutil/silcsockconn.[ch],
1236           unix/silcunixsockconn.c.
1237
1238         * Implemented latest presence-attrs draft changes.  Affected
1239           files lib/silccore/silcattrs.h and
1240           irssi/src/silc/core/silc-queries.c.
1241
1242 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1243
1244         * Save old channel keys in list to allow more rapid change
1245           of channel keys if server for some reason does that.  This
1246           avoids loosing so many channel messages due to not having
1247           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1248           idlist.c and client_channel.c.
1249
1250 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1251
1252         * Continued backup router tests and fixes.  Affected files
1253           silcd/server_backup, server_util.c, server.c.  See TODO.
1254
1255 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1256
1257         * Fixed SERVER_SIGNOFF handling in servers.  The client
1258           was removed from wrong list thus not removing the client
1259           at all.  Affected file silcd/packet_receive.c.
1260
1261         * Do not execute rekey protocol for disabled connections as
1262           it would never go through.  Affected file silcd/server.c.
1263
1264         * Added timeout for rekey protocol to catch if the protocol
1265           never executes successfully.  Affected files silcd/server.c
1266           and protocol.h.
1267
1268 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1269
1270         * Abandon packet processing for disconnected sockets.  Check
1271           this always after calling packet processing callback.
1272           Affected file lib/silccore/silcpacket.c.
1273
1274         * Fixed double registration disconnection code in server.
1275           Closed wrong connection.  Affected file silcd/packet_receive.c.
1276
1277 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1278
1279         * On normal server reconnect to primary during resuming 4
1280           times, then give up.  Affected file silcd/server_backup.c.
1281
1282         * If during reconnecting to routers we notice we have router
1283           connection but no primary router set, the server is in desync.
1284           Reconnect to primary to restore network.  Affected file
1285           silcd/server.c.
1286
1287         * Assure that only one protocol is exeucting at the same time.
1288           Added checks for all protocols.  Affected files are
1289           silcd/server.c and server_backup.c.
1290
1291 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1292
1293         * Check that a string is not already part on invite/ban
1294           string when processing it.  Affected file silcd/server_util.c.
1295
1296 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1297
1298         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1299           with 1.2 version of the protocol.  Affected file is
1300           silcd/packet_receive.c.
1301
1302 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1303
1304         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1305           where the passphrase was given.  Affected file is
1306           silcd/command.c.
1307
1308 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1309
1310         * INVITE and BAN notifys are now delivered from routers to
1311           servers (but not clients) on the channel.  Updated specs and
1312           code.  Affected files silcd/packet_[send|receive].[ch],
1313           command.c, server.c and server_util.c.
1314
1315         * Implemented INVITE and BAN announcing.  Affected files are
1316           silcd/server.[ch], server_util.c.
1317
1318         * Implemented SilcStatus error type argument returning in
1319           command reply error in server.  Affected file silcd/command.c.
1320
1321         * Implemented SilcStatus argument returning in comand reply
1322           in client library.  The command_reply client operation now
1323           returns error specific arguments as well.  Affected files
1324           are lib/silcclient/command_reply.[ch], client_resume.c,
1325           lib/silccore/silcstatus.[ch].
1326
1327 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1328
1329         * Backup router protocol version 1.2 implemented.  Testing still
1330           required.  Affected files in silcd/server_backup.[ch], server.c,
1331           packet_receive.c and server_internal.h.
1332
1333 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1334
1335         * silc_client_send_[channel|private]_message now return TRUE
1336           or FALSE.  Affected file lib/silcclien/client_channel.c and
1337           client_prvmsg.c.
1338
1339 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1340
1341         * Check for explicit nickname in INVITE and BAN processing
1342           during join as well (and don't expect only wildcards in
1343           invite/ban strings).  Affected file silcd/command.c.
1344
1345         * Fixed the INVITE and BAN by public key.  The public key saved
1346           is the PK payload (as specified) not the raw data.  Affected
1347           file silcd/server_util.c.
1348
1349 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1350
1351         * UTF-8 text message support for actions and notices in SILC
1352           Client.  Affected file irssi/src/silc/core/client_ops.c.
1353
1354         * silc_get_username and silc_get_real_name now returns sensible
1355           data on Win32.  Patch by Toni Willberg.  Affected file is
1356           lib/silcutil/win32/silcwin32util.c.
1357
1358 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1359
1360         * Provide a signal handler to send MIME encoded messages and emit
1361           a signal when a MIME encoded message is received. Also document
1362           the signals for usage with the perl interface.
1363
1364           A sample perl script will be supplied at a later point.
1365
1366           Affected files are irssi/docs/signals.txt,
1367           irssi/src/silc/core/client_ops.[ch],
1368           irssi/src/silc/core/silc-{channels,servers}.c
1369
1370 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1371
1372         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1373           server. Use this time to display a lag and disconnect when it
1374           exceeds a specified limit.
1375
1376           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1377
1378 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1379
1380         * Remove the channel auth list in normal server if router
1381           encofrces its list during connecting.  Send notify to channel
1382           to remove the mode to remove the list.  Affected files are
1383           silcd/server_util.c and silcd/packet_receive.c.
1384
1385 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1386
1387         * Added support for channel public keys.  Updated protocol specs
1388           and implemented it.  Affected files are
1389           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1390           lib/silcclient/command_reply.c.
1391
1392 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1393
1394         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
1395           terminate the process on Linux.  Affected file silcd/silcd.c.
1396
1397 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1398
1399         * Check for NULL buffer in silc_buffer_clear.  Affected file
1400           is lib/silcutil/silcbuffer.h.
1401
1402         * Simplified the backup router protocol by removing the _GLOBAL
1403           types.  Updated protocol specs and the code.  Affected files
1404           are silcd/server_backup.[ch].
1405
1406 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1407
1408         * Deny '@' and '!' from nicknames since they are reserved
1409           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
1410           Updated protocol specs and the code.
1411
1412           Affected files are silcd/server_util.[ch].
1413
1414 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1415
1416         * Fixed stack overflow in Irssi SILC client.  Affected
1417           file irssi/src/silc/core/client_ops.c.
1418
1419         * Check that Host is set in ServerConnection and RouterConnection
1420           in silcd.conf.  Affected file silcd/serverconfig.c.
1421
1422         * Fixed crash in server with protocol completion callbacks,
1423           namely rekey and backup resuming protocols.  Affected files
1424           are silcd/server_backup.c and silcd/server.c.
1425
1426         * Fixed rekey protocol to not restart if it is started already.
1427           Affected files are lib/silcclient/client.c and
1428           silcd/server.c.c
1429
1430 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1431
1432         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
1433
1434         * Fixed EOF handling in SILC Config, affected file
1435           lib/silcutil/silcconfig.c.
1436
1437         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
1438
1439         * Fixed RESOLVING flag handling in JOIN notify and other
1440           notifys to handle the resolvings correctly in client library.
1441           Affected file lib/silcclient/client_notify.c.
1442
1443         * Do not send full INVITE and BAN lists in INVITE and BAN
1444           notifys, only the changed information.  Affected file
1445           silcd/command.c.
1446
1447         * Fixed INVITE notify sending in INVITE command, send it
1448           only when needed.  Affected file silcd/command.c.
1449
1450         * Handle the founder key change properly in CMODE_CHANGE
1451           notify.  Bug #122.  Affected file silcd/packet_receive.c.
1452
1453 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1454
1455         * Remove the mark for output (mark it only for input) after
1456           purging outgoing queue.  Prevents the "Error in select()"
1457           floods.  Affected file silcd/packet_send.c.
1458
1459         * Fixed incorrect connection deletion from client library
1460           after calling "connect" client operation.  Could cause
1461           crashes for example during reconnect timeouts.  Affected
1462           files are lib/silcclient/client.c and
1463           irssi/src/silc/core/client_ops.c.
1464
1465         * Check server private key file permissions before starting
1466           the server.  Affected file silcd/serverconfig.c.
1467
1468 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1469
1470         * NULL terminate allocated string in silc_buffer_strformat.
1471           Affected file lib/silcutil/silcbuffmt.c.
1472
1473         * Rewrote the invite/ban list string handling in server to
1474           use SilcBuffer instead.  Affected files are silcd/command.c
1475           and silcd/server_util.c.
1476
1477 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1478
1479         * Fixed double free in CMODE command when setting new HMAC
1480           for channel.  Affected file silcd/command.c.
1481
1482         * Added couple of missing memset's to zero sensitive memory.
1483           Affected files silcd/command.c, lib/silcclient/command.c.
1484
1485 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1486
1487         * Fixed a double free in INVITE command error handling in
1488           server.  Affected file silcd/command.c.
1489
1490         * Added macros SILC_SWAB_[16|32] to swab byte order of
1491           16-bit and 32-bit unsigned integers.  Affected file
1492           lib/silcutil/silctypes.h.
1493
1494         * Use the SILC_SWAB_16 instead of htons() in server when
1495           handling ports since the ports in structures are always
1496           in little-endian order (regardless of platform).  Affected
1497           file silcd/serverid.c and silcd/server_backup.c.
1498
1499 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1500
1501         * Send DISCONNECT in close admin command in server.  Affected
1502           file silcd/command.c.
1503
1504         * Check whether we are already connecting to a remote router
1505           (in addition of checking whether we are already connected)
1506           before creating new connection.  Affected file silcd/server.c.
1507
1508 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1509
1510         * Added better compiler and compiler flags checking in
1511           configure.
1512
1513         * Check that socket is valid after QoS is applied to data.
1514           Affected file lib/silcutil/unix/silcunixsockconn.c.
1515
1516         * Make sure the socket connecetion is not closed to early
1517           when closing connection in server.  Also make sure the
1518           connection is always closed after error in a protocol.
1519           Affected file silcd/server.c.
1520
1521 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1522
1523         * Removed --session and --dummy options from Irssi SILC Client.
1524           -d option is available only if --enable-debug was given.
1525           Affected files are irssi/src/silc/core/silc-core,
1526           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
1527
1528 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1529
1530         * Added silc_buffer_steal to steal the data from the buffer.
1531           Affected file lib/silcutil/silcbuffer.h.
1532
1533 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
1534
1535         * Fixed server crash with double Primary block in config file.
1536
1537           Fixed also various memory leaks around the config file
1538           parser.  Affected files lib/silcutil/silcconfig.c,
1539           silcd/serverconfig.c.
1540
1541         * Changed my nickname (Johnny Mnemonic) to my real name, this
1542           means that bugs introduced by him were actually introduced
1543           by me!
1544
1545 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1546
1547         * Don't display "foo appears as foo\nYou're now known as foo"
1548           messages.  Affected file irssi/src/silc/core/client_ops.c
1549
1550 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1551
1552         * Fixed error handling of invalid client entry when calling
1553           commands in server.  Fixes a crash.  Affected file
1554           silcd/command.c.
1555
1556 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1557
1558         * Added some sanity checks in server for correctness of the
1559           server configuration.  Affected file silcd/serverconfig.c.
1560
1561 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1562
1563         * Prevent endless resolving of user informations in USERS
1564           command by checking the command reply status correctly.
1565           Affected file lib/silcclient/command_reply.c.
1566
1567 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1568
1569         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
1570           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
1571           Aldous <Matthew@Aldous.com>.
1572
1573         * Added better implementation using CriticalSection of
1574           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
1575           <mikko.lahteenmaki@pikabaana.net>.
1576
1577         * Added some Winsock WIN32 compatiblity defines into
1578           includes/silcwin32.h.
1579
1580 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1581
1582         * Fixed double free in async host lookup code.  Affected file
1583           lib/silcutil/silcsockconn.c.
1584
1585         * On backup router handle now the SERVER_SIGNOFF from router
1586           for local connected servers too, and close the connections.
1587
1588           Do not process them as normally signing off servers when they
1589           really signoff by sending EOF fe, but always assume that
1590           router sends the SERVER_SIGNOFF.
1591
1592           Affected files silcd/server.c and silcd/packet_receive.c.
1593
1594         * Fixed socket unsetting when closing connections.  Affected
1595           files silcd/server.c and silcd/packet_send.c.
1596
1597         * Do not print the nickname in SERVER_SIGNOFF if we do not
1598           have it.  Prevents asserts in Irssi core.  It is possible we
1599           don't have the nick if it was just being resolved when server
1600           signoff.  Affected file irssi/src/silc/core/client_ops.c.
1601
1602 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1603
1604         * Fixed autonick crashbug in client library.  Affected file
1605           lib/silcclient/client.c.
1606
1607         * Fixed Unix implementation of SilcMutex to really assert if
1608           the mutex is locked/unlcoked already.  Affected file
1609           lib/silcutil/unix/silcunixmutex.c.
1610
1611         * Fixed locking in silc_schedule_uninit.  It didn't lock
1612           when dispatching timeout tasks.  Affected file is
1613           lib/silcutil/silcschedule.c.
1614
1615         * Changed Win32 implementation of SilcThread to use modern
1616           Win32 interface.  Affected file is
1617           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
1618
1619 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1620
1621         * Don't print signed messages when sending failed.  Affected files
1622           irssi/src/silc/core/silc-[servers.c/commands.h]
1623
1624         * Send adquate signal when founding a channel by joing it.  Affect
1625           file irssi/src/silc/core/client_ops.c
1626
1627 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1628
1629         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
1630           irssi/src/fe-common/core/themes.c
1631
1632 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1633
1634         * Fixed close command to use the port correctly when closing
1635           server connections.  Affected file silcd/idlist.c.
1636
1637         * Check for NULL outbuf in silc_socket_write.  It is possible
1638           that it is NULL is some odd case.  Affected files are
1639           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
1640
1641         * Do not call final protocol callback for backup router
1642           resuming protocol when closing connection.  It is closed
1643           by timeout in case of error.  Affected file silcd/server.c.
1644
1645         * Backup reconnect to router if backup resuming protocol
1646           failed.  Affected file silcd/server_backup.c.
1647
1648 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1649
1650         * Fixed double free in SKE library error hadling when signature
1651           error occurred.  Affected file lib/silcske/silcske.c.
1652
1653         * Save the fingerprint to new SilcClientEntry after changing
1654           nickname.  Affected file lib/silcclient/client_notify.c.
1655
1656         * Print SIGNOFF in Irssi SILC client only if the nickname is
1657           known.  Prevents asserts in Irssi core.  It is possible we
1658           don't have the nick if it was just being resolved when it
1659           quit.  Affected file irssi/src/silc/core/client_ops.c.
1660
1661 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1662
1663         * Fixed double free in invite list adding code when adding
1664           invite strings.  Affected file silcd/server_util.c.
1665
1666 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1667
1668         * More log printing during backup router protocol.  Affected
1669           file silcd/server_backup.c.
1670
1671         * Removed backwards support for old private key file format.
1672           Affected file lib/silccrypt/silcpkcs.c.
1673
1674         * Removed backwards support for not-so-strict decryption length
1675           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
1676
1677         * GETKEY to update the client entrys fingerprint too.
1678           Affected file lib/silcclient/command_reply.c.
1679
1680         * Added --without-libtoolfix for package builders using weird
1681           wrappers around libtool (BSD at least).
1682
1683 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1684
1685         * Fixed backup router bugs:  When backup resumes router and
1686           receives a CHANNEL_MESSAGE packet the backup must not act
1687           as router since the packet header decryption would be
1688           different.  Also, when relaying packets to channel, do
1689           not re-encrypt packets on backup that came from the primary
1690           since the connection isn't really router-router connection.
1691           Affected files silcd/server.c, silcd/packet_send.c.
1692
1693         * Added checks in encryption/decryption that encryption/decryption
1694           length sent as argument really is multiple by block size.  Helps
1695           catching really weird bugs like the above backup router bugs
1696           when packets are being decrypted in wrong way.  Affected files
1697           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
1698
1699         * Fixed padding generation in private key file encryption.
1700           Affected file lib/silccrypt/silcpkcs.c.
1701
1702 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1703
1704         * Added ignore_message_signatures setting which can be used
1705           to ignore signatures in messages.  Affected files are
1706           irssi/src/silc/core/client_ops.c, silc-core.c.
1707
1708         * Fixed the libtoolfix to use command line options instead of
1709           environment variables.  They didn't work as expected.  Now,
1710           the libtool is fully run-time configurable.
1711
1712 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1713
1714         * Verify signature payload for signed messages. Affected files
1715           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
1716           irssi/src/silc/core/silc-core.h
1717
1718         * Display signature verification result in public and private
1719           messages using theme abstracts. See irssi/default.theme for
1720           examples on their usage. Affected files
1721           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
1722           irssi/src/fe-common/silc/module-formats.[ch],
1723           irssi/src/fe-common/silc/fe-common-silc.c,
1724           irssi/src/fe-common/silc/Makefile.am
1725           irssi/src/fe-common/core/fe-messages.[ch]
1726
1727         * Fixed bugs in Irssi's theme parsing. Affected files
1728           irssi/src/fe-common/core/themes.c
1729
1730 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1731
1732         * Calculate the correct length for signed messages before
1733           encrypting, it must be multiple by block size.  Affected
1734           file lib/silccore/silcmessage.c.
1735
1736         * silc_message_signed_get_public_key returns now both
1737           decoded and encoded public key.  Affected files are
1738           lib/silccore/silcmessage.[ch].
1739
1740         * Added libtoolfix script that makes the libtool more generic
1741           and configurable in run-time.  Now we can specify in run-time
1742           if what kind of libraries we want to create, regardless of
1743           configuration.  SIMs are now creates even if --disable-shared
1744           was explicitly given.
1745
1746 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1747
1748         * Fixed founder key sending in CMODE command in client.
1749           Affected file lib/silcclient/command.c.
1750
1751         * Fixed CUMODE founder authentication in server to not check
1752           for client's public key since it's not supposed to do that.
1753           Affected file silcd/command.c.
1754
1755 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1756
1757         * Set realname and hostname in NICK_REC records. Affected file
1758           irssi/src/silc/core/silc-nicklist.c
1759
1760 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1761
1762         * Remove 1.0 protocol backwards compat code from client
1763           library.
1764
1765         * Added more reliable check for whether nickname did change
1766           or not, or whether only Client ID changed in NICK_CHANGE
1767           notify.  Affected file lib/silcclient/client_notify.c.
1768           Fixes bug in '@' character handling in a nickname.
1769
1770         * Added support for automatically parsing signature from
1771           the message payload.  Added new function
1772           silc_message_get_signature to return the payload to
1773           application.  Affected files lib/silccore/silcmessage.[ch].
1774
1775         * Changed the private_message and channel_message client
1776           operations to deliver the SilcMessagePayload to the
1777           application too.  Application can use it fe. to get the
1778           signature from the message for verification.  Affected
1779           file lib/silcclient/silcclient.h, client_channel.c and
1780           client_prvmsg.c.
1781
1782         * Redefined the signed payload for message payloads.
1783           Updated protocol specs and implemented.
1784
1785 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1786
1787         * Fixed wrong invite and ban list handling in server command
1788           reply.  Affected files are silcd/command_reply.c,
1789           silcd/server_util.[ch].
1790
1791 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1792
1793         * Fixed CMODE setting in server when founder mode was set.
1794           Affected file silcd/command.c.  Bug #95.
1795
1796         * Added support to setting specific public key in CMODE in
1797           Irssi SILC client.  Affected file lib/silcclient/command.c.
1798
1799         * Added support to use specific public key in CUMODE in
1800           Irssi SILC Client.  Affected file lib/silcclient/command.c.
1801
1802         * Added support for inviting and banning by public key in
1803           Irssi SILC client.  Affected file lib/silcclient/command.c.
1804
1805         * Fixed fingerprint/babbleprint showing in invite and ban
1806           list command replys.  Affected file is
1807           irssi/src/silc/core/client_ops.c.
1808
1809 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1810
1811         * Format CMODE +c and +h to display both the mode and the argument
1812
1813 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1814
1815         * Added test vectors and test programs for SHA-1, MD5,
1816           HMAC-SHA1 and HMAC-MD5.  New tests are located in
1817           lib/silccrypt/tests/.  Fixed also argument decoding bug in
1818           MD5 implementation.  Affected file lib/silccrypt/md5.c.
1819
1820         * Changed the channel private key and private message key
1821           generation (with static keys) to use SHA1 instead of MD5,
1822           as SHA1 is the mandatory hash function in SILC.  Affected
1823           file lib/silcclient/client_[channel/prvmsg].c.
1824
1825         * Changed the private key file encryption to use SHA1 instead
1826           of MD5.  Added support for the old generation and added
1827           automatic change of the key (to be removed later).  Affected
1828           files lib/silccrypt/silcpkcs.c.
1829
1830 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1831
1832         * Load only files with .pub suffix in PublicKeyDir.  Affected
1833           file silcd/serverconfig.c.
1834
1835 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1836
1837         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
1838           channels.  Affected files silcd/silcd.c, silcd/server.h.
1839
1840         * Added the config directive PublicKeyDir for the client block.
1841           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
1842
1843 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1844
1845         * Merged Toni's irssi/silc.conf patch.
1846
1847         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
1848
1849         * Max alloc tests in allocation routines.  Affected file
1850           lib/silcutil/silcmemory.c.
1851
1852 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1853
1854         * Fixed a typo in resuming code that fixed detach/resume code
1855           in server.  Bug #93.  Affected file silcd/packet_receive.c.
1856
1857 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1858
1859         * Do reverse lookups for server when /connecting. Affected files
1860           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
1861           irssi/src/core/net-nonblock.*
1862
1863 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1864
1865         * Added library versioning for shared libraries.  Affected
1866           files configure.in.pre and lib/Makefile.am.pre.
1867
1868 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1869
1870         * Display INVITE and BAN lists as specified by SILC 1.2
1871
1872 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1873
1874         * Do not send invite list back unless asked (when sending
1875           no arguments) or when list was modified.  Affected file
1876           silcd/command.c.
1877
1878         * Remove client from invite list in KILLED notify and in
1879           KILL command.  Affected file silcd/command.c and
1880           silcd/server.[ch].
1881
1882         * Fixed bugs in invite list handling in INVITE command.
1883           Affected files silcd/command.c and silcd/server_util.c.
1884
1885         * Merged with Irssi 0.8.6.
1886
1887         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
1888           Affected file irssi/src/fe-text/silc.c.
1889
1890 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1891
1892         * The silc_argument_get_[first/next] now return the argument
1893           type to caller.  Added silc_argument_payload_encode_one.
1894
1895           Affected files are lib/silccore/silcargument.[ch].
1896
1897         * Added support for the SILC 1.2 INVITE command and new
1898           invite lists to server.  Affected files are silcd/command.c,
1899           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
1900
1901         * Added support for the SILC 1.2 BAN command and new
1902           ban lists to server.  Affected files are silcd/command.c,
1903           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
1904
1905         * Added support to client sending new INVITE command.  Affected
1906           file is lib/silcclient/command.c.
1907
1908         * Added support to client sending new BAN command.  Affected
1909           file is lib/silcclient/command.c.
1910
1911         * Added support for removing client from invite list when kicked
1912           from channel, as SILC 1.2 dictates.  Affected files are
1913           silcd/packet_receive.c and silcd/command.c.
1914
1915 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1916
1917         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
1918           automatically the cipher's internal IV.  Affected files
1919           lib/silccrypt/silccipher.[ch].
1920
1921         * Assure the RESUME_CLIENT packet is not sent to twice to
1922           backup router if the detached client was originated from
1923           the backup.  Affected file silcd/server.c.  Bug #76.
1924
1925         * Changed silc_sim_symname to not allocate memory.  Affected
1926           file lib/silcsim/silcsimutil.c.
1927
1928         * Fixed memory leaks with SIMs in server.  Affected files
1929           silcd/serverconfig.c, silcd/server.c.
1930
1931         * Fixed channel key distribution after resuming detached
1932           client.  Affected files silcd/packet_receive.c.
1933
1934         * Fixed channel's global_user boolean checking after detaching.
1935           Check it after changing the owner of the client not before.
1936           Affected file silcd/packet_receive.c.
1937
1938         * Fixed few double frees from client library.  Fixes at least
1939           Bug #81, possibly others too.
1940
1941         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
1942           notifys in Irssi SILC Client.  Affected file is
1943           irssi/src/silc/core/client_ops.c.  Bug #82.
1944
1945         * Applied Ville Räsänen's manual page and --mandir bugfix
1946           patch.  Affected files are configure.in.pre and Makefile.am.pre.
1947           Bug #88.
1948
1949 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1950
1951         * Added support to backup router protocol for backup to tell
1952           normal server that it cannot use the backup router as primary
1953           because the primary isn't really down.  Updated protocol
1954           specs.
1955
1956         * Added support for primary router to tell backup router that
1957           resuming is not possible because the backup really isn't primary
1958           in the cell.  For example if backup disconnected itself the
1959           resuming is not allowed since the primary really did not
1960           go down.  Updated protocol specs.
1961
1962         * Removed MARS from crypto library.
1963
1964         * Defined the CTR mode and Randomized CBC mode in SILC.  The
1965           CTR mode is RECOMMENDED now in specification.  Defined also
1966           Serpent cipher as optional cipher.  Updated the protocol specs.
1967
1968 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1969
1970         * Added support for inviting/banning by IP/MASK, public key,
1971           and explicit Client ID.  Redefined the command and notify
1972           types to allow easier forwards support for other methods
1973           of inviting/banning.  Updated protocol specs.
1974
1975         * Remove the client from channel's invite lists if the client
1976           is kicked or killed.  Updated protocol specs.
1977
1978         * Unified the Channel Message Payload and Private Message
1979           into one Message Payload.  Updated protocol specs and
1980           implemented.
1981
1982 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1983
1984         * Don't wait for EOF after socket error has occurred, but
1985           close the connection.  Affected file is silcd/server.c.
1986
1987 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1988
1989         * Added support for setting FOUNDER mode on channel with
1990           specific public key which can be set with CMODE command.
1991           Updated protocol specs and implemented in client and server.
1992
1993         * Fixed the Irssi SILC client to correctly shutdown the client
1994           library to avoid memory leaks.  Affected files are
1995           irssi/src/silc/core/silc-core.c and silc-servers.c.
1996
1997         * Deprecated the No Reply flag in SKE protocol and introduced
1998           "IV Included" flag which can be used to indicate that the IV
1999           is included in the ciphertext.  This makes it possible to use
2000           SILC on unreliable transport, such as UDP which may cause
2001           packet reordering and losses.  Updated protocol specs, did
2002           not implement yet.
2003
2004 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2005
2006         * Fixed the MPI implementation of silc_mp_sizeinbase to return
2007           < 32 bit values in correct size.  Affected file is
2008           lib/silcmath/mp_mpi.c.
2009
2010 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2011
2012         * Fixed the KE Start Payload parsing to check that mandatory
2013           fields are present.  Affected file lib/silcske/payload.c.
2014
2015         * Fixed compilation warnigs in Irssi SILC Client.  Affected
2016           files are irssi/src/silc/core/silc-query.c. client_ops.c.
2017
2018 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2019
2020         * Print "nick now appears as newnick" and update Irssi's nicklist
2021           when you change your nick to "nick". Closes #62
2022
2023         * Never format your own nick. Closes #63
2024
2025 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2026
2027         * SILC_UMODE_GONE changes are now propagated correctly to the
2028           Irssi client. Closes #54
2029
2030 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2031
2032         * Fixed example in /HELP KEY
2033
2034         * Added expando $j which expands to current SILC Client version
2035
2036 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2037
2038         * Fixed public key decoding in crypto library.
2039
2040         * Added better error printing to SKE library.
2041
2042 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2043
2044         * Fixed NICK command to not crash if nickname was not sent.
2045
2046 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2047
2048         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
2049           Deprecated the old Encrypt-And-MAC order.  Updated protocol
2050           specs and implemented.
2051
2052         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
2053           generation.  Updated specs and implemented.
2054
2055 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2056
2057         * Added support for rekey before 2^32 sequence number wraps.
2058           Affected files in server and client library.
2059
2060         * Padding must be at least 8 bytes now.  Implemented and updated
2061           protocol specs.
2062
2063         * Compute maximum padding for authentication packets to make
2064           passphrase approximation attacks impossible.  Affected files
2065           in client library and in server.
2066
2067         * Fixed PING command sending in client library and handling in
2068           server.  The server ID must be ID Payload, not raw ID data.
2069           Affected files in server and client library.
2070
2071         * Defined that all public keys sent in commands and notify
2072           payloads are actually Public Key Payloads not raw public key
2073           data.  Updated protocol specs and implemented.
2074
2075         * Updated protocol version to 1.2.  Updated specs and code.
2076
2077         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
2078           status types.  Updated specs and the code.
2079
2080         * Added support for normal client to kill its own entries from
2081           the network.  Updated protocol specs and the code.
2082
2083         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
2084           and added initial implementation.
2085
2086         * Added MAC field to the Private Message Payload to protect
2087           against chosen ciphertext attacks.  Updated the protocol specs
2088           and implemented.
2089
2090         * Added idle and signon fields to the ATTRIBUTE_SERVICE
2091           attribute to indicate the user's current idle and signon time
2092           of a service.  Updated protocol specs and implemented.
2093
2094 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2095
2096         * Added "do_not_bind" argument to silc_client_file_send what
2097           can be used to not bind locally but assume the file receiver
2098           provides the point of connect.  Usefull when sender is behind
2099           NAT device.  Affected file lib/silcclient/silcclient.h and
2100           client_ftp.c.
2101
2102         * Added -no-listener option to FILE SEND command in Irssi SILC
2103           client.  Affected file irssi/src/silc/core/silc-servers.c.
2104           Renamed FILE RECEIVE to FILE ACCEPT.
2105
2106         * Confirm passphrase for private key encryption in
2107           silc_create_key_pair and silc_change_private_key_passphrase.
2108           Affected files are lib/silcutil/silcapputil.c.
2109
2110 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2111
2112         * Move silc_client_packet_send back to internal, added
2113           silc_client_send_packet, a bit simpler function for application.
2114           Affected files lib/silcclient/silcclient.h, client.c and
2115           client_internal.h.
2116
2117         * Moved the SilcClientEntry, SilcChannelEntry and
2118           SilcServerEntry to silcclient.h to be public and documented
2119           them for application.  Affected files are
2120           lib/silcclient/silcclient.h and idlist.h.
2121
2122 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2123
2124         * Fixed manual page installation patch by Ville Räsänen.
2125           USERS help page fix patch by Ville Räsänen
2126
2127         * Changed the silc_client_command_call interface to make
2128           the command call simpler for the application.  The library
2129           now handles the command line parsing, command finding and
2130           execution.  Application only needs to call the function
2131           with the command line.  Affected files are
2132           lib/silcclient/silcclient.h, command.[ch].
2133
2134         * Fixed silc_get_input to NULL-terminate the returned input.
2135           Affected file lib/silcutil/silcutil.c.
2136
2137         * Resolve the client's public key in JOIN command if the
2138           founder auth data is being requested but we don't know the
2139           client's public key.  Affected file silcd/command.c.
2140           Bug #53.
2141
2142 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2143
2144         * Print notify for server opers when backup router comes
2145           online.  Affected file silcd/server.c.
2146
2147         * Fixed the INVITE command to send the invite list in
2148           command reply.  Affected file silcd/command_reply.c.
2149
2150         * Fixed MOTD command reply sending.  Affected file
2151           silcd/command.c.
2152
2153         * UTF-8 decode the topic in TOPIC command reply and LIST
2154           command reply in Irssi SILC client.  Affected file is
2155           irssi/src/silc/core/client_ops.c.
2156
2157 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2158
2159         * Fixed the INVITE command to not crash Irssi SILC client
2160           when given without nickname argument.  AFfected file
2161           irssi/src/silc/core/client_ops.c.
2162
2163         * Fixed double free in WHOIS query on normal server when
2164           forwarding query to router.  Affected file is
2165           silcd/server_query.c.
2166
2167         * Fixed WATCH command reply handling on normal server which
2168           was missing altogether.  Affected file silcd/command_reply.c.
2169           Bug #44.
2170
2171 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2172
2173         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2174           Included yodl sources for each of these. Also modified
2175           Makefile.am prototype to install these files to proper
2176           locations. Updated CREDITS. Affected file Makefile.am.pre,
2177           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2178           doc/silcd.8.
2179
2180 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2181
2182         * Added support for encrypted private key files.  Now
2183           passphrase must be provided when new key pair is created
2184           (can be empty though), and prompted when loading the
2185           private key.  Added support for loading the old-style
2186           non-encrypted private keys as well.  Affected files
2187           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2188           SILC Server.
2189
2190         * Fixed silc_get_input to accept input on all terminals.
2191           Affected file lib/silcutil/silcutil.c.
2192
2193         * Moved the Irssi SILC client key loading and other stuff
2194           to be called after the arguments and UI is initialized.
2195           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2196
2197         * Added -P option to Irssi SILC client which can be used
2198           to change the passphrase of the private key.  Affected
2199           file irssi/src/silc/core/silc-core.c.
2200
2201         * Added silc_change_private_key_passphrase apputil routine
2202           to lib/silcutil/silcapputil.[ch].
2203
2204 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2205
2206         * Fixed connection closing in client library to not crash.
2207           Moved the connection freeing totally to function
2208           silc_clinet_del_connection.  Affected file
2209           lib/silcclinet/client.c.
2210
2211 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2212
2213         * Changed includes/silcincludes.h to silcincludes.h.in to
2214           include configuration specific information.  The silcdefs.h
2215           is not included in to installation anymore (it's only
2216           compilation time header).
2217
2218 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2219
2220         * Moved the SilcClient and SilcClientConnection from client.h
2221           to the public lib/silcclient/silcclient.h.  Changed the
2222           structures a bit.
2223
2224 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2225
2226         * If version string in silc_clinet_alloc is NULL the library
2227           puts it automatically.  Affected file lib/silcclient/client.c.
2228
2229         * Changed the version strings from variables to #define's
2230           in includes/silcversion.h.
2231
2232 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2233
2234         * Added shared library complation support.
2235
2236 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2237
2238         * Added lib/silcutil/silcapputil.[ch] for application
2239           utility functions.  It includes routines for applications'
2240           convenience.  Added silc_create_key_pair, silc_show_public_key
2241           and silc_load_key_pair functions.
2242
2243 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2244
2245         * Send RESUME_CLIENT packet from router to backup routers
2246           to in resuming.  Affected file silcd/packet_receive.c.
2247
2248 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2249
2250         * In IDENTIFY command parsing, send all other IDs except
2251           Client IDs explicitly to router for resolving on normal
2252           server.  Also check that ID received in WHOIS command is
2253           always Client ID, others are not allowed.  Affected file
2254           silcd/server_query.c.
2255
2256         * Merged latest changes from irssi.org CVS.
2257
2258 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2259
2260         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2261           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2262
2263         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2264           the silc_client_packet_send to silcclient.h for application
2265           usage.  Affected files lib/silcclient/client_internal.h
2266           lib/silcclient/silcclient.h.
2267
2268         * Fixed a bug in query resolving in server.  Used wrong
2269           variable in a for loop and crashed.  Affected file is
2270           silcd/server_query.c.
2271
2272         * Server constructs requested attributes only to locally
2273           connected clients.  Affected file silcd/server_query.c.
2274           Bug #36.
2275
2276         * Fixed a bug when sending resolving from router to server
2277           with requested attributes.  The constructed WHOIS command
2278           was incorrect.  Affected file silcd/server_query.c.
2279           Bug #38.
2280
2281         * Fixed Requested Attributes saving in WHOIS command reply.
2282           The length of the data buffer must be saved too.  Affected
2283           file silcd/command_reply.c.
2284
2285         * Update the client entry's servername after detaching is
2286           over.  Affected file silcd/packet_receive.c.  Bug #37.
2287
2288         * Resolve incomplete client entrys in CUMODE_CHANGE and
2289           CMODE_CHANGE notifys.  Affected file is
2290           lib/silcclient/client_notify.c.  Bug #42.
2291
2292 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2293
2294         * Fixed channel key packet processing bug on backup router
2295           during backup resuming protocol.  Affected file is
2296           silcd/packet_receive.c.
2297
2298         * Fixed memory leaks in server.  Affected files are
2299           silcd/server.c and silcd/packet_receive.c.
2300
2301         * Fixed packet decryption problem when backup router encrypted
2302           channel message with wrong key during backup resuming
2303           protocol.  Affected file silcd/packet_send.c.
2304
2305         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2306           Toni Willberg (toniw@iki.fi)
2307
2308         * Changed the SilcCipher context to be private.  Changed the
2309           silc_cipher_get_iv to just return pointer to the IV.  Added
2310           silc_cipher_get_name to return the name of the cipher.
2311           Fixed code all around to support these changes.  Affected
2312           files are lib/silccrypt/silccipher.[ch], client library and
2313           server.
2314
2315 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2316
2317         * Fixed unaligned access in lib/silccore/silcattrs.c.
2318
2319         * Fixed libtool linking in lib/silcsim/Makefile.am.
2320
2321         * Fixed services attribute printing.  Affected files is
2322           irssi/src/silc/core/silc-queries.c.
2323
2324 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2325
2326         * Fixed a crashbug in incoming server accepting.  Affected
2327           file silcd/server.c.
2328
2329 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2330
2331         * Added automatically generated index to Toolkit Reference
2332           Manual.
2333
2334         * Added support for Postscript Toolkit Reference Manual.
2335
2336 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2337
2338         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2339           CVS.
2340
2341 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2342
2343         * Added 'send_events' boolean argument to the function
2344           silc_schedule_set_listen_fd which sends the set events to
2345           the application explicitly if set to TRUE.  Default action
2346           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2347           lib/silcclient/client_internal.h and silcd/server_internal.h.
2348
2349         * Added silc_compare_timeval to determine which time values
2350           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2351
2352         * Added sort-of "Quality of Service" (QoS) support to
2353           SilcSocketConnection.  Data reception can be controlled with
2354           rate limit per second and/or read data length limit.
2355           Added silc_socket_set_qos.  Affected files are
2356           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2357
2358         * Added the QoS configuration to SILC Server configuration
2359           file.  Affected files are silcd/serverconfig.[ch] and
2360           server.c.
2361
2362 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2363
2364         * Merged with irssi.org CVS.
2365
2366         * Failed OPER and SILCOPER authentications are now logged.
2367           Affected file silcd/command.c.  Bugs #25.
2368
2369 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2370
2371         * ROBODoc documented lib/silcutil/silcbuffer.h and
2372           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2373           <ville.rasanen@iki.fi>.
2374
2375 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2376
2377         * Added support for auto-passphrase authentication from the
2378           config file during connecting which was not implemented
2379           yet.  Affected file irssi/src/silc/core/client_ops.c.
2380
2381         * Fixed a bug in authentication protocol failure handling which
2382           was processing wrong callback context.  Affected files
2383           are lib/silcclient/client.c and protocol.c.
2384
2385         * Fixed the /ATTR allow off to actually work.  Affected file
2386           is irssi/src/silc/core/silc-queries.c.
2387
2388         * Fixed the /ATTR -del to work.  Affected file is
2389           irssi/src/silc/core/silc-queries.c.
2390
2391 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2392
2393         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
2394
2395         * Fixed mask attribute adding in Irssi SILC client.  Affected
2396           file irssi/src/silc/core/silc-queries.c.
2397
2398 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2399
2400         * Added support for saving the requested attributes in
2401           WHOIS to directory.  Affected file is
2402           irssi/src/silc/core/silc-queries.c.
2403
2404 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2405
2406         * Added support for parsing VCard fields that do not have
2407           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
2408
2409         * Fixed a double free bug in hash table foreach function
2410           if the entry was deleted in the foreach callback.  Affected
2411           file lib/silcutil/silchashtable.c.
2412
2413 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2414
2415         * Added silc_attribute_get_verify_data to return the signature
2416           verification data for either user digital signature or
2417           server digital signature in Requested Attributes.  Affected
2418           files are lib/silccore/silcattrs.[ch].
2419
2420         * Added silc_vcard_alloc which is used to allocated dynamic
2421           SilcVCard context.  The silc_vcard_free now checks whether
2422           the context is dynamically allocated or not.  Affected files
2423           are lib/silcutil/silcvcard.[ch].
2424
2425 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2426
2427         * Periodically remove the NOATTR status from client entry
2428           so that the client may take the attributes in use even after
2429           server has resolved them unsuccessfully earlier.  Affected
2430           file silcd/server_query.c and idlist.h.
2431
2432         * Moved sha1hash and md5hash from client->internal to
2433           SilcClient for application usage.  Affected files are
2434           lib/silcclient/client.h and client_internal.h.
2435
2436         * Fixed attribute encoding and decoding bugs.  Affected
2437           files lib/silccore/silcattrs.[ch].
2438
2439         * Added ATTR command to Irssi SILC Client which is used to
2440           manage user's Requested Attributes sending and values for
2441           WHOIS command.  Affected files around Irssi SILC client.
2442
2443 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2444
2445         * Added silc_buffer_strformat which can be used to format
2446           strings into a buffer which size is automatically increased.
2447           Affected file lib/silcutil/silcbuffmt.[ch].
2448
2449         * Added implementation of VCard (RFC 2426) which can be used
2450           as part of Requested Attributes in WHOIS command.  Affected
2451           file lib/silcutil/silcvcard.[ch].
2452
2453 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2454
2455         * Some strncat -> silc_strncat changes our the core and
2456           client library.
2457
2458         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
2459           errors.  Added better error printing to SKE library.
2460           Affected files lib/silcske/silcske.c, silcske_status.h and
2461           payload.c.
2462
2463         * Save the PKCS key length even if only private key is set to
2464           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
2465
2466         * Fixed the usage of silc_pkcs_get_key_len since it returns the
2467           length in bits not in bytes.  Affected files are
2468           lib/silcske/silcske.c, lib/silccore/silcauth.c and
2469           silcd/server_query.c.
2470
2471 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2472
2473         * Added silc_attribute_payload_encode_data to directly encode
2474           the data into the attributes buffer.  Renamed function
2475           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
2476           Affected files are lib/silccore/silcattrs.[ch].
2477
2478         * silc_hash_table_find_foreach calls the foreach function now
2479           once even if the nothing was found with context set to NULL.
2480           Affected file lib/silcutil/silchashtable.[ch].
2481
2482         * Remove the RESOLVING flag from client entry after received
2483           the Requested Attributes from the client.  Fixed memory leak
2484           in client entry freeing.  Affected files silcd/server_query.c
2485           and idlist.c.
2486
2487         * Added Requested Attributes support into SILC Client Library.
2488           It is not able to send requested attributes in WHOIS command,
2489           and also receive and process requested attributes.  Added
2490           silc_client_attribute_[add|del] and silc_client_attributes_get
2491           functions.  Added also `ignore_requested_attributes' to the
2492           SilcClientParams to not use attributes in client.  Affected
2493           files are lib/silcclient/command.c, client_attrs.[ch],
2494           silcclient.h, client_internal and client.[ch].
2495
2496         * Changed the silc_client_get_client_by_id to support Requested
2497           Attributes, it takes them as argument now.  Affected file
2498           is lib/silcclient/silcclient.h, and idlist.c.
2499
2500         * Added -details option to WHOIS command in Irssi SILC Client
2501           to support the requested attributes.  By default it requests
2502           all attributes.  Affected file lib/silcclient/command.c and
2503           irssi/doc/help/in/whois.in.
2504
2505 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2506
2507         * Add also SERVICE attribute for server-constructed attribute
2508           data.  Also digitally sign the attributes and add
2509           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
2510           silcd/server_query.c.
2511
2512 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2513
2514         * Changed the silc_attribute_payload_encode to support list
2515           of attributes (function may be called several times to add
2516           a new attribute).  Removed the silc_attribute_payload_encode_list
2517           function.  The encoding function now also automatically encodes
2518           the data, so the caller does not need to do that.  Affected
2519           files lib/silccore/silcattrs.[ch].
2520
2521         * Added support for replying on behalf of the user to the
2522           Requested Attributes in WHOIS command in the server.  Affected
2523           file silcd/server_query.c.
2524
2525         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
2526           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
2527
2528 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2529
2530         * Don't swtich to become primary router if we are backup if
2531           decryption error has occurred.  Affected file silcd/server.c.
2532
2533         * Fixed a bug in backup router IP address comparison in
2534           silc_server_backup_get.
2535
2536           Save now also the port of the server/router and use that
2537           in comparison as well.  Affected file silcd/server_backup.c.
2538
2539         * Normal server now reconnects to backup router automatically
2540           if connection is lost to it.  Affected file silcd/server.c.
2541
2542 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2543
2544         * If packet processing fails (like integrity check fails)
2545           the connection is closed now.  Affected files are
2546           lib/silccore/silcpacket.c and silcd/server.c.
2547
2548 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2549
2550         * Fixed double free in RSA public key set function
2551           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
2552           Bug #29.
2553
2554 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2555
2556         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
2557           Added server_query.[ch] which provides one interface for
2558           querying information using all three commands.
2559
2560         * Changed all "typedef unsigned char" in core library to
2561           "typedef SilcUInt8".
2562
2563 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2564
2565         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
2566
2567         * Renamed silc_server_get_client_resolve to
2568           silc_server_query_resolve and moved to server_query.[ch].
2569
2570 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2571
2572         * Resumed client packet handling from server put the resumed
2573           client on wrong list on router and caused the client not
2574           be present on the network anymore.  Now fixed to put the
2575           client to correct list.  Affected file silcd/packet_receive.c.
2576
2577 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2578
2579         * Various cleanup in error message output in config parsing code
2580           and in server init code.  Fixed error log files containing
2581           too many newlines ('\n') in some situations.  Affected files are
2582           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
2583
2584 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2585
2586         * Use the reverse lookupped hostname in client internals
2587           instead of one user provided us as remote server name.
2588           Affected file lib/silcclient/client.c.
2589
2590 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2591
2592         * Added 'app_context' to silc_schedule_init.  It is an
2593           application specific context that is delivered to application
2594           in task callback functions.  Affected files are
2595           lib/silcutil/silcutil.[ch].
2596
2597         * The hb_context in SilcSocketConnection is not freed
2598           automatically anymore (application must free it).  Freeing
2599           it automatic is inconsistent.  Affected files are
2600           lib/silcutil/silcsockconn.[ch].
2601
2602 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2603
2604         * Added support for removing explicitly added client connections
2605           in rehash and closing the client connections if they were
2606           unconfigured in the rehash.  Affected file silcd/server.c.
2607
2608         * Added support for aborting automatically pending commands
2609           that never receives the reply (to avoid memory leaks).
2610           Added also silc_server_command_pending_timed to set the
2611           specific timeout for pending command.  Affected files are
2612           silcd/command[_reply].[ch].
2613
2614         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
2615           specs and lib/silccore/silcstatus.h.
2616
2617 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2618
2619         * Changed the silc_get_time to accept time value as argument
2620           or if zero is sent return current local time.  Affected
2621           file lib/silcutil/silcutil.[ch].
2622
2623         * Added STATS command to client library and Irssi SILC client.
2624           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
2625
2626 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2627
2628         * Assure that channel key is set before sending it.  May
2629           crash server otherwise.  Affected file silcd/packet_send.c.
2630
2631 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2632
2633         * Assure that endless loop cannot happen with detached client
2634           resolving on normal server.  Added idlist status
2635           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
2636           silcd/idlist.h and silcd/packet_receive.c.
2637
2638 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2639
2640         * Incoming file transfer request cannot use same session as
2641           the sending session.  This can happen when sending file to
2642           yourself.  Crashed the client on quit.  Affected file
2643           lib/silcclient/client_ftp.c.  Bug #24.
2644
2645 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2646
2647         * Implemented the draft-riikonen-precense-attrs draft and
2648           the Attribute Payload into the lib/silccore/silcattrs.[ch].
2649
2650 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2651
2652         * Distribute the SERVER_SIGNOFF notify also to local backup
2653           routers from the primary router.  The backup router may not
2654           have the signing of local server directly connected and need
2655           to know about the signoff.  Affected file silcd/server_util.c.
2656
2657         * Use the primary router as the origin of the locally connected
2658           server when it is disconnecting from the backup router since
2659           that's where it really is coming from.  Now the clients from
2660           the disconnecting server are removed correctly and "shadow"
2661           clients are not left to the backup router.  Affected file
2662           silcd/server.c.
2663
2664 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2665
2666         * If normal server is standalone and found existing but disabled
2667           channel, do not re-create the channel since it creates
2668           duplicate same channels.  Affected file silcd/server.c.
2669
2670         * Added anonymous client connections support to server.  New
2671           "anonymous" configuration option to ConnectionParams section
2672           added.  If set to true, the username and hostname information
2673           of the client will be scrambled and anonymous user mode is
2674           set automatically to the user.  Affected files are
2675           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
2676
2677 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2678
2679         * In JOIN notify handling, mark that the cache entry of the
2680           client cannot be expired.  Can cause crashes on normal
2681           server (asserts client->channels).  Affected file is
2682           silcd/packet_receive.c.
2683
2684         * From now on distribution versions are used as protocol versions
2685           instead of by default using the Toolkit base version as protocol
2686           version.  Affected file prepare.
2687
2688         * Do not set the locally resolved hostname for local client
2689           entry but take what server sends.  This way the real hostname
2690           is showed in WHOIS for yourself.  Affected file is
2691           lib/silcclient/idlist.c and lib/silcclient/client.c.
2692
2693         * Resolve local info with IDENTIFY when connecting to server.y
2694
2695 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2696
2697         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
2698           for implied search (not needed on platforms which has native
2699           pthreads library).  Use --without-pthreads to disable threads.
2700           Affected file is configure.in.pre
2701
2702         * Fixed --with-iconv on platforms which need to bypass (broken)
2703           native iconv().  Affected file is configure.in.pre
2704
2705 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2706
2707         * Moved -C option parsing in Irssi SILC client at same time
2708           as other options.  The UI was initialized earlier and caused
2709           problems on command line.  Bug #16.  Affected file is
2710           irssi/src/silc/core/silc-core.c.
2711
2712 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2713
2714         * Added global variable silc_log_timestamp that tells silclog
2715           wether to print or not the timestamp in the logging files.
2716           Affected file lib/silcutil/silclog.[ch].
2717
2718         * Added silcd configuration option Timestamp in the Logging
2719           section.  Affected file silcd/serverconfig.[ch],
2720           doc/example_silcd.conf.in.
2721
2722 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2723
2724         * Fixed fingerprint checking to check for entirely empty
2725           fingerprint instead of two first bytes when determining
2726           if it is set.  Bug #18.  Affected file silcd/command.c.
2727
2728         * Fixed duplicate PKCS name registering to not allow it.
2729           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
2730
2731 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2732
2733         * Conditionalize non-gcc compiler optimizations for various
2734           platforms, enable those commented out.  Cleanups.
2735           Affected file lib/silcmath/mpi/configure.in
2736
2737 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
2738
2739         * silc_rng_exec_command() left zombie processes if command
2740           didn't generate any output.  Affected file
2741           lib/silccrypt/silcrng.c
2742
2743 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2744
2745         * Rewrote iconv checking, introduce --with-iconv for systems
2746           which rely on libiconv.  Check if iconv() provided by libc
2747           is good enough, otherwise demand libiconv.  Affected file
2748           configure.in.pre
2749
2750 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2751
2752         * Search for ldopen() also in libc.  This enables SIM support
2753           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
2754           file configure.in.pre
2755
2756 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2757
2758         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
2759           This fixes prepare on *BSD systems.  Affected file
2760           configure.in.pre
2761
2762 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2763
2764         * More fixed for not having purge timeout for global clients
2765           that are on channel.  Affected files silcd/command_reply.c
2766           and server_util.c.
2767
2768         * Fixed the rekey protocol to work with backup router connections.
2769           Rekey packets are now allowed on disabled connections as
2770           well.  Affected files silcd/packet_send.c and server.c.
2771
2772         * Do not switch to be as backup router when shutting down and
2773           closing the primary connection.  Affected file silcd/server.c.
2774
2775         * Fixed memory leaks in backup router deleting.  Added
2776           silc_server_backup_free to free all data during shutdown of
2777           server.  Affected files silcd/server_backup.[ch].
2778
2779 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2780
2781         * Do not process commands if the sock->user_data is NULL.
2782           Affected file silcd/command.c.
2783
2784 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2785
2786         * Fixed buffer overflow and security problems (loosing bits
2787           in CFB encryption) in SILC RNG.  Problems reported by
2788           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
2789
2790 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2791
2792         * Added yet more checks that client is not expired on global
2793           list if it is on channels.  Affected file is
2794           silcd/command_reply.c.
2795
2796 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2797
2798         * Merged c0ffee's MIME signal patch which adds support for
2799           sending also MIME messages in Irssi SILC Client, and handling
2800           received MIME messages in a signal (and perhaps doing something
2801           to non-textual MIME messages).
2802
2803 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2804
2805         * Fixed pending command deletion in server and client library
2806           to check the whole list instead of breaking after first found.
2807           The affected files are silcd/command.[ch] and
2808           lib/silcclient/command.[ch].
2809
2810 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2811
2812         * Return NO_SUCH_CHANNEL error in USERS for channel that is
2813           secret or private, otherwise it's possible to find out
2814           whether a secret channel exists or not.  Affected file
2815           silcd/command.c.
2816
2817         * If CMODE change fails during the mode setting, assure that
2818           the old mode mask is set for the channel back.  Affected
2819           file silcd/command.c.
2820
2821         * Fixed passphrase saving on +a channel on normal server
2822           after successful JOIN command.  Affected file silcd/command.c.
2823
2824 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2825
2826         * Remove server/router operator privileges in DETACH command,
2827           since it's possible to resume to server where these
2828           privileges would not be allowed for the client.  Affected
2829           file silcd/command.c.
2830
2831         * Do not set to wait for backup in rehash of the server.
2832           Affected file silcd/server.c.
2833
2834         * Do not check listener sockets when counting how many
2835           socket connections we have.  Affected file is
2836           silcd/server_util.c.
2837
2838         * Do not announce disconnected clients that are remaining
2839           in history (for WHOWAS).  This is because SIGNOFF notify
2840           for these has been sent earlier already.  Affected file
2841           silcd/server.c.
2842
2843 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2844
2845         * Buffer overflow with CUMODE command's mode->mode character
2846           conversion.  Reported by Ville Räsänen.  Affected file
2847           lib/silcutil/silcutil.c.
2848
2849 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2850
2851         * Allow heartbeat packets to go disabled connections anyway.
2852           Affected files silcd/server.c and silcd/packet_send.c.
2853
2854         * Do not broadcast New Channel packets with List flag set
2855           in the packet to backup routers.  The router must check
2856           for the correctness of the packets before sending them.
2857           It is possible that router will have enforce Channel ID
2858           change and this would cause desync in the backup router.
2859           Affected file silcd/packet_receive.c.
2860
2861         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
2862           are handled in list parsing.  They are not list packets
2863           anymore.  Affected file silcd/packet_receive.c.
2864
2865 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2866
2867         * Stop waiting for backup router through the timeout, not
2868           directly after backup router has arrived.  Affected file
2869           silcd/server.c.
2870
2871         * Do not re-create channel keys and send them when removing
2872           clients in server shutdown.  Affected files are
2873           silcd/server_internal.h and silcd/server_util.c.
2874
2875         * Notify distribution to backup routers was missing from
2876           the silc_server_send_notify_dest function which caused
2877           desyncing problems with backup router.  Affected file is
2878           silcd/packet_send.c.
2879
2880         * The client's channel removing was working wrong on
2881           backup router.  It assumed that it doesn't know global
2882           information but backup router does know.  For this reason
2883           it could remove channel when it wasn't supposed to do that.
2884           Affected file silcd/server.c and silcd/server_util.c.
2885
2886 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2887
2888         * Stop for a couple seconds after badkup router has become
2889           primary router.  Affected file silcd/server.c.
2890
2891         * Added silc_server_remove_servers_by_server, which is used
2892           to remove servers originated from some other server.  Also
2893           clients of those servers can be removed too.  Affected file
2894           silcd/server_util.[ch].
2895
2896         * When removing clients after a server has signed of remove
2897           also all servers behind that server (unless they are known
2898           to be available locally), and send SERVER_SIGNOFF for each
2899           of the server separately.  Also the signed off clients are
2900           sent now separately per signed off server.  The affected files
2901           are silcd/server.c and silcd/server_util.[ch].
2902
2903         * All servers added with silc_idlist_add_server must always
2904           have both "router" and "connection" pointers set.  Otherwise,
2905           bad server entries may be left around in the cache.
2906           Affected file silcd/command_reply.c.
2907
2908         * Do not create the channel key in NEW_CHANNEL packet
2909           processing if the channel is empty.  Affected file
2910           silcd/packet_receive.c.
2911
2912         * Completed backup router support for standalone routers.
2913           Supports also servers in the cell that do not use the backup
2914           at all.
2915
2916 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2917
2918         * Fixed a bug in silc_string_regexify which did not add '^'
2919           at the start of each string, and thus the matching was
2920           not explicit.  For example ban list iikone@*!*@* would
2921           match also "priikone", which is wrong, it would have to be
2922           *iikone@*!*@* to match also "priikone".  Affected
2923           file lib/silcutil/unix/silcunixutil.c.
2924
2925 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2926
2927         * Enable all local server connections before updating client
2928           caches when we've become backup router.  Otherwise, signoff
2929           packets may not reach the clients.  Affected files are
2930           silcd/server.c and silcd/server_util.[ch].
2931
2932         * Fixed a bug in version string parsing which could crash
2933           the program with specially formatted version string.
2934           Bug reported and patch provided by Ville Räsänen.  Affected
2935           file lib/silcutil/silcutil.c.
2936
2937         * Handle the disconnection immediately when DISCONNECT
2938           packet is received in server.  Affected file silcd/server.c.
2939
2940         * Primary router now waits a short time (10 seconds) for
2941           backup router connection before accepting any other
2942           connection (except local).  Affected file silcd/server.c,
2943           serverconfig.[ch].
2944
2945         * Fixed a crash in client libary in NICK_CHANGE notify when
2946           NICK_CHANGE arrived for client entry we are resolving
2947           currently.  Affected file lib/silcclient/client_notify.c.
2948
2949         * Call the sconn->callback completion even if error had
2950           occurred.  Start reconnecting always if connection to
2951           primary router fails during backup router protocol.
2952           Affected files silcd/server.c and server_backup.c.
2953
2954 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2955
2956         * Added functions silc_server_send_opers and
2957           silc_server_send_opers_notify to send packets stricly
2958           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
2959           to send variable argument notify to operators.
2960           Affected files silcd/packet_send.[ch] and silcd/server.h.
2961
2962         * Removed UMODE rights checking with UMODE_CHANGE notify.
2963           Affected file silcd/packet_receive.c.
2964
2965         * Server/router operator now receives notify when network
2966           switches to backup router and when it resumes the use of
2967           primary router.  Affected file silcd/server.c and
2968           silcd/server_backup.c.
2969
2970         * Fixed the updating of client information after backup
2971           resuming protocol is over; update all except local clients
2972           to the new primary router.  The affected file is
2973           silcd/server_util.c.
2974
2975         * Added support for closing active connections in rehash
2976           that were unconfigured by the user.  Supports currently
2977           closing server and router connections.  Affected file
2978           silcd/server.c.
2979
2980         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
2981
2982 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2983
2984         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
2985           is NULL since seems that on some platforms NULL is allowed
2986           and on some it's not.  Fallback encoding is used instead.
2987           Affected file lib/silcutil/silcstrutil.c.
2988
2989         * Fixed statistics updating for incoming server connection
2990           which could cause problems when re-connecting.  Affected
2991           file silcd/server.c.
2992
2993         * Preliminary backup router support for standalone router
2994           added.  Affected files in silcd/.
2995
2996         * Mark server connections in backup router disabled before
2997           and after backup protocol.  Affected file is
2998           silcd/server_backup.c.
2999
3000         * Added support for reconnecting to remote server connection
3001           even if the protocol fails, and if the configuration wants
3002           us to keep trying to connect anyway.
3003
3004           Server connection is not allowed to backup router if
3005           backup router does not have connection to primary router yet.
3006
3007           Affected file is silcd/server.c.
3008
3009 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3010
3011         * Added silc_client_udpate_server function to update changed
3012           server info.  Affected file lib/silcclient/idlist.[ch].
3013
3014         * Added check for server entries that are being resolved when
3015           notify is received.  If being resolved, handle the received
3016           notify only after it's resolved so that all notifys are
3017           handled in same order as received from the server.
3018
3019           Added similar resolver check to channel entries.  Every
3020           notify that cause resolving of any information that affects
3021           channel entry marks the channel entry in waiting state.
3022           After whatever resolving is over the waiters are signalled
3023           and only then the notifys are handled in the same order
3024           as delivered from the server.
3025
3026           Affected files are lib/silcclient/idlist.[ch], and
3027           client_notify.c.
3028
3029         * Fixed KILLED notify handling in normal server.  Affected
3030           file silcd/packet_receive.c.
3031
3032         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
3033           is locally connected, or was locally connected (but may
3034           be detached and connection is not active).  Added also
3035           SILC_IS_LOCAL for checking this status.  Affected files
3036           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
3037           silcd/server.c and silcd/server_internal.h.
3038
3039 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3040
3041         * Don't send or handle TOPIC_SET if topic is already set and
3042           is same as being set.  Affected files silcd/command.c and
3043           silcd/packet_receive.c.
3044
3045         * Fixed CMODE change rights checking to work correctly when
3046           removing modes by operator.  Affected file is
3047           silcd/server_util.c.
3048
3049         * Fixed some handling with New Channel packet in router and
3050           fixed some CMODE_CHANGE notify handling in server and router.
3051           Affected file is silcd/packet_receive.c.
3052
3053         * Changed "disconnect" client operation to include the
3054           reason of the disconnection and optional disconnection
3055           message.  Affected file lib/silcclient/silcclient.h.
3056
3057         * Made the compilation of lib/contrib/ stuff conditional.
3058           Affected files configure.in.pre, lib/contrib/Makefile.am.
3059
3060 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3061
3062         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
3063           to the sender of the notify too, to avoid situation where two
3064           notifys are in the network at the same time going to oppsite
3065           directions.  Affected file silcd/packet_receice.c.
3066
3067 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3068
3069         * Delete the client from channel even if the cilent->id is
3070           NULL.  It was possible that client was deleted without
3071           removing from channels (theoretically at least).  Affected
3072           file silcd/server.c and silcd/server_util.c.
3073
3074         * Free the client data too when resuming is not successful.
3075           Affected file silcd/packet_receive.c.
3076
3077         * Merged some code from c0ffee's silc-plugin.  Affected files
3078           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
3079
3080         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
3081           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
3082           to the primary router connection, the other one returns
3083           TRUE if packet must be broadcasted to network.
3084
3085         * All notifys that are destined to primary router (to network)
3086           are now automatically sent to backup routers even if the
3087           router is standalone (and has backup router).  Affected files
3088           in silcd/.
3089
3090         * Added --without-irssi and --without-silcd configuration
3091           options for disabling the compilation of these applications.
3092           Affected file configure.in.pre and prepare.
3093
3094 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3095
3096         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
3097           UTF-8 encoding and decoding.  Added also new encodings
3098           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
3099
3100           Added also SILC_STRING_LANGUAGE which is language and charset
3101           specific encoder and decoer for those platforms that support
3102           iconv().  It can convert the UTF-8 to and from the locale
3103           specific character set.
3104
3105           Affected file lib/silcutil/silcstrutil.[ch].
3106
3107         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
3108
3109         * Added function silc_get_command_name to the file
3110           lib/silcutil/silcutil.[ch].
3111
3112         * Improved the server debug output a bit.  Affected files are
3113           in silcd/.
3114
3115 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3116
3117         * Save the channel passphrase when received succesful JOIN
3118           command reply from router, on normal server.  Otherwise
3119           joinig +a channels from normal server is not possible.
3120           Affected file silcd/command.c.
3121
3122         * Fixed a bug in TOPIC_SET notify handling.  The notifier
3123           may be other than client too, like server or channel.
3124           It expected it to always be only client and ignored the
3125           notify.  Affected file silcd/packet_recieve.c.
3126
3127         * Removed some (unnecessary) debug printing from
3128           lib/silccore/silcid.c and lib/silccore/silcargument.c.
3129
3130         * Do not force CMODE_CHANGE when server is announcing new
3131           channel.
3132
3133           Router announces stuff only after server reannounces channel
3134           after CHANNEL_CHANGE notify.
3135
3136           These fixes optimizes the announcing procedure, and perhaps
3137           fixes some problems too.  Affected file silcd/packet_receive.c.
3138
3139         * Fixed SERVER_SIGNOFF sending to local clients.  It was
3140           totally broken and sent the notify to all local clients,
3141           instead of only to those that was on same channel as the
3142           signing off clients.  Affected file silcd/server_util.c.
3143
3144         * Added -D option to server.  It can be used to give debug
3145           level.  The levels are from 0 - 99, and are predefined for
3146           smooth server debugging.  (see silcd.c for the predefined
3147           levels).  Affected file silcd/server.c.
3148
3149 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3150
3151         * Fixed a bug in Irssi SILC client to close the connection
3152           properly when disconnecting from server.  Affected file
3153           irssi/src/silc/core/client_ops.c.
3154
3155 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3156
3157         * When authenticating as founder during JOIN command, check
3158           that the one authenticating becomes the only founder on the
3159           channel.  Affected file silcd/command.c.
3160
3161         * Better checking for founder mode setting when CUMODE_CHANGE
3162           notify is received.  Affected file silcd/packet_receive.c.
3163
3164         * Close all connections when shutting down the server by sending
3165           DISCONNECT packet.  Close all listeners too when shutting
3166           down the server.  Affected file silcd/server.c.
3167
3168         * Handle DISCONNECT packet correctly in client library by
3169           calling the "disconnect" client operation.  Affected file
3170           lib/silcclient/client.c.
3171
3172         * Handle local errors correctly during resuming.  Affected
3173           file lib/silcclient/client.c.
3174
3175 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3176
3177         * The log file is not dupped internally anymore in
3178           lib/silcutil/silclog.c.  Fixed memory leaks too.
3179
3180         * The scheduler now dispatches all pending timeout tasks
3181           when it is uninitialized with silc_schedule_uninit.
3182           Affected file lib/silcutil/silcschedule.c.
3183
3184 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3185
3186         * Added --enable-stack-trace option to configure.  Added
3187           memory allocation stack trace support.  Added files
3188           lib/silcutil/stacktrace.[ch].  Affected files are
3189           lib/silcutil/silcmemory.[ch].
3190
3191         * Fixed memory leaks from libraries and server.  Affected
3192           files around the tree.
3193
3194         * Reverted back a fix made to CUMODE which broke it.
3195           Affected file silcd/command.c.
3196
3197 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3198
3199         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3200           core library, and implemented it.  All textual messages SHOULD
3201           use this flag and the message MUST be UTF-8 encoded.
3202           All text messages sent by Irssi SILC client are now UTF-8
3203           encoded (regardless whether the terminal supports UTF-8 or not).
3204           Affected files are lib/silccore/silcchannel.h,
3205           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3206           client_ops.c.
3207
3208 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3209
3210         * Added lots of new statistics updating that was missing from
3211           the server and router code.  Affected files in silcd/.
3212
3213         * Sending SIGUSR1 signal to server now dumps the current
3214           server statistics into /tmp directory.  Affected file is
3215           silcd/silcd.c.
3216
3217         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3218           the SILC Hash Interface also.  Added new functions
3219           silc_hash_get_name, silc_hash_init, silc_hash_update and
3220           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3221
3222 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3223
3224         * Added some better info printing for client during connecting.
3225           Affected file silcd/server_util.c.
3226
3227         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3228           to silence a user on a channel.  Affected files are
3229           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3230           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3231           and silcd/packet_receive.c.
3232
3233         * Fixed a fatal bug in handling of malformed command payload.
3234           Affected file silcd/command.c.
3235
3236         * Fixed a double free when announcing channel users to router.
3237           Affected file silcd/server.c.
3238
3239         * After successful authentication to channel founder mode, check
3240           that there isn't anyone else with founder mode on the channel.
3241           The one that authenticated will become founder and anyone
3242           else is demoted.  Affected file silcd/command.c.
3243
3244         * Added error printing of any error that has occurred during
3245           any command in client library.  Affected file is
3246           irssi/src/silc/core/client_ops.c.
3247
3248         * Removed some error printing from the client library and left
3249           it for the application to worry (from the error status it
3250           receives in 'command' client operation.  Affected file is
3251           lib/silcclient/command.c.
3252
3253 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3254
3255         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3256           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3257           Starting key agreement with itself is denied.  Affected file
3258           is lib/silcclient/client_keyagr.c.
3259
3260         * Fixed some error checkings from the SFTP library which caused
3261           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3262           and lib/silcsftp/sftp_util.c.
3263
3264         * Added new "debug" and "debug_string" settings to Irssi SILC
3265           client which can be used to print runtime debugging on the
3266           Irssi's screen.  Available when compiled with --enable-debug
3267           option.  Affected file irssi/src/silc/core/silc-core.c.
3268
3269 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3270
3271         * Fixed a missing variadic parameter in a function call that
3272           caused server crash when a non-allowed connection arrived.
3273           Reported by Richard Becker.  Affected file silcd/server.c.
3274
3275 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3276
3277         * Added WATCH list sending to backup routers from router.
3278           The WATCH command is sent by the router to the backup
3279           router.  Affected file silcd/command.c.
3280
3281         * Mark the backup_router flag for RouterConnection entry
3282           if the backup router stuff is defined in the config file.
3283           Affected file silcd/serverconfig.c.
3284
3285         * Fixed some backup data sending around the code to work better
3286           if the router is standalone router.  Not all places were fixed.
3287           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3288           silcd/server.c.
3289
3290         * Fixed the router connecting when connecting to multiple
3291           routers.  It ignored every other router except the first
3292           one.  Affected file silcd/server.c.
3293
3294 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3295
3296         * Made the private key generation after expiration optional.
3297           If not created after expiration the old key will re-expire
3298           at a later time (and thus key pair is not necessary to
3299           change).  Affected file irssi/src/silc/core/clientutil.c.
3300
3301 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3302
3303         * The length arguments in bind() and connect() were wrong
3304           and fixed now to used SIZEOF_SOCKADDR in the
3305           lib/silcutil/unix/silcunixutil.c.
3306
3307 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3308
3309         * Fixed detach timeout handling to use Client ID and not
3310           the actual client entry which may be freed in the callback.
3311           Affected file silcd/command.c.
3312
3313 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3314
3315         * Merged c0ffee's multiple interface support patch.
3316           Affected files in silcd/.
3317
3318 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3319
3320         * Cleanup keys properly.  Affected file is
3321           irssi/src/silc/core/clientutil.c.
3322
3323 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3324
3325         * Display the user mode on the status bar.  Affected file
3326           irssi/src/silc/core/silc-expandos.c.
3327
3328 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3329
3330         * If private message key is not set, but the flag is set in
3331           the packet, ignore the packet since it cannot be decrypted.
3332           Affected file lib/silcclient/client_prvmsg.c.
3333
3334 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3335
3336         * When resuming client, remove the old client entry from
3337           the watcher list too.  Affected file silcd/packet_receive.c.
3338
3339         * Do not allow normal server to force founder mode away
3340           from router if the founder mode is already set.  Affected
3341           file silcd/packet_receive.c.
3342
3343         * Remove the client entry with watch notify types with short
3344           timeout, and not directly, so that other notifys can be
3345           retrieved too.  Affected file lib/silcclient/client_notify.c.
3346
3347         * Display notification about data messages that cannot be
3348           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3349           irssi/src/fe-common/silc/module-formats.[ch].
3350
3351 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3352
3353         * Fixed the CHANNEL_CHANGE notify handling in client libary
3354           to not use freed memory.  Affected file is
3355           lib/silcclient/client_notify.c.
3356
3357         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3358           file silcd/packet_receive.c.
3359
3360         * Fixed USERS command to support empty channels.  Affected
3361           file silcd/command.c.
3362
3363 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3364
3365         * Allow multiple identical pending commands to be registered
3366           in client library.  Affected file is lib/silcclient/command.c.
3367
3368         * Call the completion for resolving client information only
3369           after all resolvers has finished.  This fixes a crash in
3370           the client.  Added support for checking when the resolvers
3371           are finished.  Affected file is lib/silcclient/idlist.c.
3372
3373         * Wait by default 3 seconds before reconnecting to the server
3374           after being disconnected.  Makes the /detach command a bit
3375           more usable.
3376
3377 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3378
3379         * Check the watcher list before sending signoff notifys
3380           when closing client connection.  Affected file is
3381           silcd/server.c.
3382
3383         * Added better CMODE command rights checking.  Affected file
3384           silcd/server_util.c.
3385
3386 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3387
3388         * Fixed watcher list checking during server signoff.  It
3389           crashed the server.  Affected file silcd/server_util.c.
3390
3391         * The JOIN command reply returns now the founder's public
3392           key.  Affected file is silcd/command.c.
3393
3394         * Announce the channel mode, and the mode properties with
3395           CMODE_CHANGE notify.  Affected file silcd/server.c.
3396
3397         * Mark new channels by default disabled, untill at least
3398           one user joins the channel.  Affected file is
3399           silcd/packet_receive.c.
3400
3401 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3402
3403         * The nickname argument to watch notify can be optional.
3404           Fixes a crash in server.  Affected file silcd/packet_send.c.
3405
3406         * Remove the client entry from cache if the WATCH notify type
3407           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
3408           lib/silcclient/client_notify.c.
3409
3410         * Check the watcher list before and after changing nickname
3411           when the NICK_CHANGE notify is received.  Affected file is
3412           silcd/idlist.c.
3413
3414         * Fixed a crash in OPER and SILCOPER command sending.  Empty
3415           passphrase caused the crash.  Affected file is
3416           lib/silcclient/command.c.
3417
3418 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3419
3420         * Merged with Irssi CVS for Irssi SILC client.
3421
3422 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3423
3424         * Completed the protocol specifications.
3425
3426 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3427
3428         * Merged with Irssi CVS for Irssi SILC client.
3429
3430 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3431
3432         * Added the founder's public key delivery to the
3433           CUMODE_CHANGE notify type as well.  Updated the protocol
3434           specs and the code.  Affected files are silcd/packet_send.[ch],
3435           silcd/packet_receive.c and silcd/command.c.
3436
3437 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3438
3439         * Added silc_pkcs_public_key_copy function into the
3440           lib/silccrypt/silcpkcs.[ch].
3441
3442         * Remove the `iv' from the SilcChannelEntry since we can
3443           live without it.  Affected files are silcd/idlist.h and
3444           silcd/packet_receive.c.
3445
3446         * Added support for sending the founder's public key in
3447           the CMODE_CHANGE notify packet in the server.  Affected
3448           files are silcd/packet_send.[ch], silcd/packet_receive.c,
3449           silcd/command.c and silcd/server.c.
3450
3451         * Changed the FOUNDER_AUTH authentication to use only
3452           public key authentication as defined by new protocol
3453           specs.  Passphrase authentication with that mode cannot
3454           be used anymore.  It is now possible to reclaim founder
3455           mode from any server in the network.  Affected files are
3456           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
3457
3458         * Added permanent channels support by making the channel
3459           permanent when FOUNDER_AUTH mode is set on the channel.
3460           The channel will not be destroyed even if channel is empty
3461           when that mode is set.  Protocol TODO #17.  Affected
3462           files are silcd/server.[ch], server_util.[ch],
3463           silcd/command.c, silcd/packet_receive.c and
3464           lib/silcclient/command.c.
3465
3466 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3467
3468         * Added reference counter to the command reply context in
3469           the client library.  Affected files are
3470           lib/silcclient/command_reply.[ch].
3471
3472 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3473
3474         * Fixed rekey protocol with PFS in the client library.
3475           Affected file is lib/silcclient/protocol.c.
3476
3477         * Added support for list of errors in client library
3478           command reply handling.  Affected file is
3479           lib/silcclient/command_reply.c.
3480
3481         * Defined that the WHOIS and IDENTIFY commands can send
3482           list of errors.  Updated the protocol specs.  Protocol
3483           TODO #2.
3484
3485         * Added support for sending list of errors to WHOIS and
3486           IDENTIFY commands in server.  Added support for receiving
3487           list of errors in server.  Affected files are
3488           silcd/command.c and silcd/command_reply.c.
3489
3490         * Fixed client info resolving on LEAVE command in client
3491           library to not crash.  Affected file is
3492           lib/silcclient/client_notify.c.
3493
3494 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3495
3496         * Defined that the NICK command replies with thew changed
3497           nickname too, to make the nickname changing simpler at
3498           the client's end.  Updated protocol specs and the code
3499           in client and server.  Affected files are
3500           silcd/command.c, lib/silcclient/command_reply.c and
3501           lib/silcclient/command.c.
3502
3503 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3504
3505         * Added `Compressed' packet flag to indicate that the packet
3506           payload is compressed by the sender.  Updated the protocol
3507           specs and the core library.  The compression still is not
3508           implemented in the sources.  Affected file is
3509           lib/silccore/silcpacket.h.
3510
3511 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3512
3513         * Remove pending command callbacks also if the connection
3514           to the server is destroyed.  Affected file is
3515           lib/silcclient/client.c.
3516
3517 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3518
3519         * Added new QUIET channel user mode that can be used to
3520           quiet a user in a channel.  Updated the protocol specs but
3521           it wasn't implemented yet.  Protocol TODO #27.  Affected
3522           file is lib/silccore/silcmode.h.
3523
3524 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3525
3526         * Added BLOCK_INVITE user mode to be able to block incoming
3527           invite notifications.  Protoocol TODO #26.  Affected files
3528           are lib/silccore/silcmode.h, lib/silcclient/command.c and
3529           silcd/command.c.
3530
3531         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
3532           the protocol specs and the code.  Affected file is
3533           lib/silccrypt/silcpkcs.c.
3534
3535 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3536
3537         * Disconnect Payload includes now the status type.  Updated
3538           the protocol specs and the code.  Protocol TODO #25.
3539           Affected files are silcd/server.c, lib/silcclient/client.c.
3540
3541         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
3542           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
3543           Moved the silc_client_command_status_messages table to the
3544           lib/silcutil/silcutil.c and added new funtion
3545           silc_get_status_message, which deprecates function
3546           silc_client_status_message.  Affected files are
3547           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
3548           lib/silcutil/silcutil.[ch].
3549
3550 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3551
3552         * Defined that the nickname hash in Client ID MUST be from
3553           lowercase nickname.  This effectively changes nicknames in
3554           SILC to case-insensitive.  Updated the protocol specs and
3555           the code.  Affected files are lib/silcutil/silcutil.[ch],
3556           silcd/serverid.c, and silcd/idlist.c.
3557
3558         * Added new channel user modes BLOCK_MESSAGES_USERS and
3559           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
3560           code.  Affected files are lib/silccore/silcmode.h,
3561           lib/silcclient/command.c, and silcd/packet_send.c.
3562
3563         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
3564           specs and code.  Affected file lib/silccore/silcstatus.h.
3565
3566         * Added support for watch list.  It is possible to add nicknames
3567           to be watched, and when they come to network, leave network
3568           or user mode changes the watcher will be notified of this
3569           change.  Added SILC_COMMAND_WATCH command, added new
3570           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
3571           notifications.  Updated the protocol specs and implemented
3572           this to library, client and server.  Protocol TODO #21.
3573           Affected files are lib/silccore/silccomand.h,
3574           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
3575           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
3576           silcd/packet_send.[ch], silcd/packet_receive.c, and
3577           irssi/src/silc/core/client_ops.c.
3578
3579         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
3580           somebody watching you.  Updated the protocol specs and the
3581           code.  Affected files are lib/silccore/silcmode.h, and
3582           lib/silcclient/command.c.
3583
3584 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3585
3586         * Added service support to SILC protocol.  Added new command
3587           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
3588           core library.  Services are not implemented in server or
3589           client for now.  Protocol TODO #20.  Affected files are
3590           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
3591
3592         * Added SilcStatus argument to `command' client operation
3593           to return the error status when command sending fails
3594           locally.  Changed all command in client library to return
3595           correct command status.  Affected files are
3596           lib/silcclient/command.c, lib/silcclient/silcclient.h and
3597           irssi/src/silc/core/client_ops.c.
3598
3599 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3600
3601         * Added silc_mime_parse function to parse MIME headers.
3602           Affected files are lib/silcutil/silcstruti.[ch].
3603
3604         * Added MIME header parsing in Irssi SILC Client.  It displays
3605           all textual MIME objects, others it ignores.  Affected file
3606           is irssi/src/silc/core/clien_ops.c.
3607
3608 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3609
3610         * Fixed a bug in the pid writing function, which couldn't be
3611           written in a root-owned directory.
3612
3613 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3614
3615         * Defined that channel message to unknown Channel ID must
3616           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
3617           Updated the protocol specs and the code in server.  The
3618           affected file is silcd/packet_receive.c.
3619
3620 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3621
3622         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
3623           that it is used to send error notifys if error occurs during
3624           some SILC packet processing, except commands.  The error
3625           types are same as for command reply types.  Defined that
3626           if private message is sent to unknown Client ID the error
3627           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
3628           Updated the protocol specs and code.  Affected files are
3629           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
3630           lib/silcclient/client_notify.c, silcd/packet_receive.c,
3631           and irssi/src/silc/core/client_ops.c.  Renamed the
3632           SilcCommandStatus to SilcStatus.
3633
3634         * Defined the use of extra WHOIS attributes in WHOIS command.
3635           The <Requested Attributes> (defined in a separate document)
3636           can be used to request additional information about user
3637           not returned by standard WHOIS command.  Defined that server
3638           can send WHOIS command directly to client.  Client provides
3639           the requested attributes to the server.  Updated the protocol
3640           specs.  Protocol TODO #4.  Implementation is not done yet
3641           (Protocol TODO #24).
3642
3643         * Renamed function silc_client_command_status_message to
3644           silc_client_status_message.  Affected files are
3645           lib/silcclient/command_reply.[ch].
3646
3647 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3648
3649         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
3650           32 bit integers.  Updated the protcol specs and the code.
3651           Affected files are silcd/command.c and
3652           lib/silcclient/command.c.
3653
3654 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3655
3656         * Fixed a bug in library where sending a bogus authentication
3657           payload would lead to a crash.  Affected file is
3658           lib/silccore/silcauth.c.
3659
3660 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3661
3662         * Added detach_disabled and detach_timeout server config
3663           options to the server.  Affected files silcd/serverconfig.[ch],
3664           silcd/command.c and silcd/packet_receive.c.
3665
3666 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3667
3668         * Added resolve_cmd_ident field to the SilcClientEntry structure
3669           too so that if the entry is for example being resolved so
3670           another command may attach to the same pending command reply
3671           without requiring to resolve the same entry again.  Added
3672           support for adding multiple pending commands for one
3673           command idenfier.  Affected files lib/silcclient/command.[ch],
3674           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
3675
3676 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3677
3678         * Defined that server receives WHOIS command reply for private
3679           and secret channels too.  Updated protocol specs and the
3680           code in server.  Affected file silcd/command.c.
3681
3682         * Defined <channel user mode list> argument to WHOIS command
3683           reply for returning user modes on the channels.  The
3684           channel list now doesn't include the user mode anymore but the
3685           actual channel mode.  Updated protocol specs and the code in
3686           client and server.  Affected files are silcd/command_reply.c,
3687           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
3688           and lib/silcclient/command_reply.c.
3689
3690         * Save the channels list in WHOIS command reply in normal server
3691           so that WHOIS always shows joined channels also in normal
3692           server and not just on router.  Affected file is
3693           silcd/command_reply.c.
3694
3695 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3696
3697         * Defined that server receives USERS command reply for private
3698           and secret channels too.  Updated protocol specs and the
3699           code in server.  Affected file silcd/command.c.
3700
3701 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3702
3703         * Changed the UMODE's mode mask argument to be optional.  If
3704           not provided then the command merely returns the current mode
3705           mask to the client.  Updated protocol specs and the server.
3706           Affected file is silcd/command.c.
3707
3708         * Added SILC session detachment/resuming support.  It is possible
3709           to detach by closing the network connection and then re-connect
3710           and resume to the old client session.  Added DETACHED user
3711           mode that server will set for detached client.  Added new
3712           packet RESUME_CLIENT which is used to perform the resuming
3713           process.  Added DETACH command.  Updated the protocol specs,
3714           core library, client and server.  Protocol TODO #22.  Very
3715           many affected files around the tree.
3716
3717 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3718
3719         * Changed the CMODE's mode mask argument to be optional.  If
3720           not provided then the command merely returns the current mode
3721           mask to the client.  Updated protocol specs and the server.
3722           Affected file is silcd/command.c.
3723
3724         * Changed the Killer's Client ID in KILLED notify to be just
3725           any ID payload since router server is allowed to kill as well.
3726           Updated protocol specs, client libary and server.  Affected
3727           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
3728           and irssi/src/silc/core/client_ops.c.
3729
3730 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3731
3732         * Added new user modes ANONYMOUS for special anonymous servers
3733           that may set the mode for client, and BLOCK_PRIVMSG which
3734           client may set to block incoming private messages unless the
3735           Private Message Key flag is set (using private keys to protect
3736           private messages).  Updated protocol specs and code in client
3737           and server and core library.  Protocol TODO #23.  Affected
3738           files are lib/silccore/silcmode.h, silcd/server.[ch],
3739           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
3740           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
3741
3742         * Added new channel user mode BLOCK_MESSAGES which the client
3743           may set to itself to tell server not send channel messages.
3744           Other packets such as channel key packets are still sent.
3745           Protocol TODO #23.  Updated the protocol specs, client and
3746           server.  Affected files are lib/silccore/silcmode.h,
3747           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
3748           lib/silcutil/silcutil.c, silcd/command.c, and
3749           silcd/packet_send.c.
3750
3751 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3752
3753         * Redefined the Status Payload to include now two 8 bit fields,
3754           instead of one 16 bit field.  This now makes it possible to
3755           send list of errors.  Updated the protocol specs and the code
3756           in core library, client library and server.  Protocol TODO #1.
3757           Affected files are lib/silccore/silccommand.[ch],
3758           lib/silcclient/command_reply.[ch], silcd/command.c,
3759           silcd/command_reply.c and silcd/packet_receive.[ch].
3760
3761 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3762
3763         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
3764           must be handled by the application and should tell the application
3765           that an error message was already printed, and it should print the
3766           config coords (line, filename, ...).  Affected files are
3767           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
3768
3769         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
3770           server config parsing code more readable.
3771
3772           Fixed a bug in the fetch_logging() config callback.
3773
3774           Affected files is silcd/serverconfig.c.
3775
3776         * Drop root privileges when started in foreground.  Don't drop them
3777           if debugging also.  Affected file is silcd/silcd.c.
3778
3779 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3780
3781         * Added more IM-like features by introducing new user modes
3782           for setting various presence information.  Added new modes:
3783           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
3784           specs and code.  Protocol TODO #19. Affected files are
3785           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
3786           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
3787
3788 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3789
3790         * Added STATS command to the protocol after all, to return
3791           various statistical information about the network.  It can
3792           be used by clients to retrieve statistical information, and
3793           servers may use it to to fetch cell and network wide
3794           statistics from router.  Updated the protocol specs and
3795           implemented it to the server.  Protocol TODO #16.
3796           Affected files are lib/silccore/silccommand, silcd/command.[ch],
3797           silcd/command_reply.[ch].
3798
3799 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3800
3801         * The LIST command reply in client libary now adds new channel
3802           entry if the returned channel doesn't exist yet in cache,
3803           and returns the channel entry to the application in the
3804           command_reply client operation.  Affected file is
3805           lib/silcclient/command_reply.c.
3806
3807         * Changed the channel message payload's MAC generation to
3808           include the IV in the MAC as well.  This way all relevant
3809           parts of the channel message payload are authenticated also
3810           with the channel message MAC (and not only by packet MAC).
3811           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
3812           Affected file is lib/silccore/silcchannel.c.
3813
3814         * Fixed the SKE to save the remote version, since the
3815           silc_ske_parse_version mistakenly checked wrong version,
3816           after it replaced the start payload.  Affected files are
3817           lib/silcske/silcske.[ch].
3818
3819 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3820
3821         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
3822           string utility functions.  Added there also new functions
3823           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
3824           Affected files lib/silcutil/silcstrutil.[ch].
3825
3826         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
3827           files are lib/silcutil/silcstrutil.[ch].
3828
3829         * Defined that the security property fields in SKE SHOULD be
3830           UTF-8 encoded, defined that version string MUST be US-ASCII
3831           encoded, defined that passphrases sent in connection
3832           authentication protocol MUST be UTF-8 encoded.  Implemented
3833           these to the client and server.  Defined also that other
3834           passphrases sent in the protocol MUST be UTF-8 encoded.
3835           Affected files are lib/silcske/silcske.c,
3836           lib/silcclient/protocol.c, silcd/protocol.c,
3837           silcd/serverconfig.c, and lib/silccore/silcauth.c.
3838
3839         * Changed the silc_client_close_connection interface to not
3840           need the SilcSocketConnection which should not be visible
3841           to application.  Affected files are lib/silcclient/client.c
3842           and lib/silcclient/silcclient.h.
3843
3844         * Rewrote the text for Private Message Key Payload in the
3845           protocol specification.  Protocol TODO #11.
3846
3847 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3848
3849         * Upgraded the protocol version to 1.1, updated protocol specs
3850           and software.
3851
3852         * Added the nickname as new argument to NICK_CHANGE notify and
3853           added it to protocol specs and implemented it to client and
3854           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
3855           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
3856           lib/silcclient/client_notify.c.
3857
3858         * Added the killer's client ID to the KILLED notify and added
3859           it to protocol specs and implemented it to client and server.
3860           Protocol TODO #13.  Affected files are silcd/command.c,
3861           silcd/packet_receive.c, packet_send.[ch],
3862           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
3863           The killer's client entry is now returned to application in
3864           the `notify' client operation.
3865
3866         * Fixed the Max Argument fields that had too large value set
3867           in the protocol specs.  Protocol TODO #14.
3868
3869         * Added the LEAVE command reply to return the ID of parted
3870           channel.  Updated protocol specs and implemented it to the
3871           client and server.  Protocol TODO #15.  Affected files are
3872           silcd/command.c, lib/silcclient/command_reply.c.  The channel
3873           entry is now returned to application in the `command_reply'
3874           client operation.
3875
3876         * Rewrote the version SKE version checking in client libary
3877           and in server to use the silc_parse_version_string.  Affected
3878           files are lib/silcclient/protocol.c, silcd/protocol.c.
3879
3880         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
3881           commands that was missing it, and updated protocol specs and
3882           the server implementation.  Protocol TODO #10.  The affected
3883           file is silcd/command.c.
3884
3885         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
3886           generic reply to a generic request (REQUEST flag), and
3887           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
3888           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
3889           to define the payload for DATA flag.  Added the flags to
3890           the implementation.  Protocol TODO #9.  Affected file is
3891           lib/silccore/silcchannel.h.
3892
3893           Changed the client library to return the message length
3894           to application as well in the channel_message and private_message
3895           client operations.  Affected files are
3896           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
3897           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
3898           and lib/silcclient/client_ops_example.c.
3899
3900         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
3901           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
3902           the channel.  Updated protocol specs and impelemented this
3903           to client and server.  Protocol TODO #6.  Affected files are
3904           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
3905           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
3906
3907           Added new options m and M to CMODE command in Irssi SILC
3908           client to set these modes.
3909
3910         * Deprecated all administrative commands from SILC protocol
3911           since they are highly implementation specific commands.
3912           Updated protocol specs.  Moved the old commands in
3913           implementations to private range of command types.  Affected
3914           files are silcd/command.c, lib/silcclient/command.c and
3915           lib/silcclient/command_reply.c.  Protocol TODO #8.
3916
3917         * Fixed a bug in server where sending unknown command crashes
3918           the server.  Affected file silcd/command.c.
3919
3920 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3921
3922         * Added SILC_PROTOCOLVERSION macro to check protocol version
3923           of a socket connection.  The affected file is
3924           lib/silcutil/silcsockconn.h.
3925
3926         * Added better error logging in rekey protocol.  Affected file
3927           silcd/protocol.c.
3928
3929         * Do not check public key types in SKE during rekey.  Affected
3930           file lib/silcske/payload.c.
3931
3932         * Fixed the rekey protocol with PFS, which was totally broken.
3933           Affected file silcd/protocol.c.
3934
3935 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3936
3937         * Some client implementations quit network by doing first LEAVE
3938           and then immediately SIGNOFF (like Bombyx).  We now do check
3939           after a short time after LEAVE notify and check whether the
3940           client is still valid after LEAVE, and if not we remove it from
3941           cache.  Affected file is lib/silcclient/client_notify.c.
3942
3943 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3944
3945         * Merged version 1.1.4 of zlib. Even if it not currently in use,
3946           it's good not to have security holes here.
3947
3948         * Fixed a negative refcount situtuation for the config context.
3949           Affected file is silcd/serverconfig.c.
3950
3951 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3952
3953         * ROBOdoc documented lib/silcutil/silcutil.h.
3954
3955 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3956
3957         * Optimized even more the SilcPacketContext structure.  Now
3958           totally saved 16 bytes of memory per context after optimization.
3959           Affected files are lib/silccore/silcpacket.[ch].
3960
3961         * Made strict checks for valid SILC IDs.  Affected file is
3962           lib/silccore/silcid.c.
3963
3964 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3965
3966         * Changed the object argument for silc_cipher_register,
3967           silc_hash_register, silc_hmac_register and silc_pkcs_register
3968           to const.  Affected files are lib/silccrypt/silccipher.[ch],
3969           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
3970
3971         * Changed the silc_get_username and silc_get_real_name to
3972           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
3973
3974         * Fixed the Irssi SILC Client to use the silc_get_username and
3975           silc_get_real_name insted of glib routines since the glib
3976           routines only corrupt stack.  Fixes the Irssi SILC to work in
3977           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
3978
3979         * Fixed the Irssi to not use g_get_home_dir since it crashes
3980           or returns garbage on cygwin and corrupts stack.  Added function
3981           get_home_dir to Irssi routines.  Affected files are
3982           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
3983
3984 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3985
3986         * Made some structure optimizations.  SFTP memory FS MemFSEntry
3987           entry structure.  Optimized SilcTask structure.  Optimized
3988           SilcPacketContext structure.
3989
3990           Affected files lib/silcsftp/sftp_fs_memory.c,
3991           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
3992
3993 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3994
3995         * And yet again reverted back the config thing since Johnny
3996           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
3997           and silcd.c.
3998
3999         * Fixed memory leaks from config object.  Affected files are
4000           silcd/serverconfig.[ch].
4001
4002         * Added support for adding new connections to the server in rehash.
4003           After rehash they take effect.
4004
4005           Added support for changing the maximum allowed connections in
4006           rehash.  The number can grow but going smaller is not supported.
4007
4008           Added function silc_server_num_sockets_by_remote to the
4009           silcd/server_util.[ch].
4010
4011           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
4012
4013 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
4014
4015         * Added preliminary checking during config parsing for a valid
4016           public/private key and removed further checks in the code.
4017           Affected files are silcd/serverconfig.[ch], server.c.
4018
4019         * Moved functions silc_server_drop() and silc_server_daemonise()
4020           from server.c to silcd.c since they are stricly related to
4021           the application activity.
4022
4023         * Reverted a small part of the automatic ref/unref since
4024           it caused a double unref in some situations.  Affected
4025           files are silcd/silcd.[ch], server.c, serverconfig.c.
4026
4027         * Added some .cvsignore files in the lib directory.
4028
4029 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4030
4031         * Fixed silc_net_gethostbyaddr to correctly resolve by
4032           address.  Affected file lib/silcutil/silcnet.c.
4033
4034         * Fixed the notify relaying to client.  The HMAC to be used
4035           with relayed packets ws wrong and caused decryption failure
4036           at the client end.  Affected file is silcd/packet_receive.c.
4037
4038 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4039
4040         * Created new branch silc_protocol_1_0_branch.
4041
4042         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
4043
4044         * Changed the silc_server_config_* routines to be SilcServer
4045           independent.  They are now officially application specific code
4046           and not part of generic server implementation.  Affected files
4047           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
4048
4049 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4050
4051         * Added automatic referencing of config context in the
4052           silc_server_config_alloc, and automatic unreferencing in the
4053           silc_server_config_destroy.  Affected files are
4054           silcd/serverconfig.[ch], silcd/silcd.c.
4055
4056         * Fixed the silc_log_quick handling in the logging routines.
4057           It didn't log quickly when it was TRUE.  Affected file is
4058           lib/silcutil/silclog.c.  Also the flush delay was set even
4059           if it was 0 in config file.  Affected file is
4060           silcd/serverconfig.c.
4061
4062         * Added support for changing key pair of the server in rehash.
4063           Affected file silcd/server.c.
4064
4065 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4066
4067         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
4068           too early, before getting the channel entry.  Affected file
4069           is silcd/packet_receive.c.
4070
4071 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4072
4073         * Added functions silc_server_config_[ref/unref], these are used
4074           to prevent that the config object is destroyed.
4075
4076           No longer directly affect global variables silc_log_quick and
4077           silc_log_delay, they are first cached inside the config object
4078           and then applied with silc_server_config_setlogfiles().
4079
4080           silc_server_config_set_defaults() is now internal to
4081           serverconfig.c, there are no reasons to show this internal stuff
4082           to the server.
4083
4084           Affected files are silcd/serverconfig.[ch].
4085
4086         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
4087           fprintf's to stderr, since some code may be executed again after
4088           the server went into the background.  Affected files are
4089           silcd/server.[ch].
4090
4091         * Added rehash support. Added function silc_server_rehash() that
4092           will perform all the basic tasks of the rehashing procedure.
4093
4094         * Added command line option `-x, --hexdump'. This will enable the
4095           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
4096           The option `--hexdump' implies `--debug'.
4097
4098         * Fixed a bad bug in the logging APIs (silcutil library) where
4099           the application would crash after calling silc_log_reset_all().
4100
4101 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4102
4103         * Fixed the KICKED notify handling in client library to
4104           correctly remove the channel and all entries from the
4105           channel when I was kicked.  This bug crashed the client.
4106
4107           Fixed yet another but in KICKED notify handling to remove
4108           the kicked client correctly from the channel.
4109
4110           Affected file is lib/silcclient/client_notify.c.
4111
4112         * Fixed a minor bug in looking up correct client entry
4113           in KICKED notify in server.  Affected file is
4114           silcd/packet_receive.c.
4115
4116         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
4117           sources correctly to distribution.  Fixes --with-gmp option.
4118
4119         * Removed the manual rehashing from ID Cache, and changed it
4120           to use the SILC Hash Table's auto rehash feature.  Affected
4121           file is lib/silccore/silcidcache.c.
4122
4123 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4124
4125         * Fixed a bug in the silc_client_nickname_format function that
4126           handles the multiple same nickname formatting.  Two clients
4127           with same nickname caused problems after the first one left
4128           and rejoined.  It didn't format the nickname correctly.
4129           Affected file is lib/silcclient/idlist.c.
4130
4131 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4132
4133         * Don't change the topic if olod topic is same as new one.
4134           Affected file is silcd/packet_receive.c.
4135
4136 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4137
4138         * Added cross-reference support to the SILC Documentation
4139           generator.  All types across all HTML files are now cross-
4140           referenced.  Affected files util/robodoc/generator.c and
4141           scripts/silcdoc/silcdoc.
4142
4143         * Added file lib/silcutil/silctypes.h to include all the
4144           arithmetic type definitions and some macros.  Removed
4145           includes/bitmove.h and moved macros to silctypes.h.
4146
4147 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4148
4149         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
4150
4151 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4152
4153         * Added `type' argument to silc_id_payload_parse_id function which
4154           now returns the type of the ID to the sent pointer.  Affected
4155           file is lib/silccore/silcid.[ch].
4156
4157         * Added check for CMODE_CHANGE notify type that mode change is
4158           allowed by the sender.  Affected file silcd/packet_receive.c.
4159
4160         * Added check for CUMODE_CHANGE notify type that mode change is
4161           allowed by the sender.  Affected file silcd/packet_receive.c.
4162           Added the ID type as CUMODE_CHANGE notify type as argument
4163           to the `notify' client operation.  Affected files are
4164           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4165
4166         * Added function silc_client_add_server to the client library.
4167           Added support for resolving also channel and server info when
4168           received unknown entity in notify packet.  Affected files are
4169           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4170
4171         * Added function silc_command_get_status to return the command
4172           status from the command reply's argument payload.  Affected files
4173           are lib/silccore/silccommand.[ch].
4174
4175         * Added check for KICKED notify type that the kicking is
4176           allowed by the client.  Affected file silcd/packet_receive.c.
4177
4178         * Created function silc_get_input which can be used to get input
4179           (echo on or off) from user on command line.  Affected files are
4180           lib/silcutil/silcutil.[ch].
4181
4182 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4183
4184         * Optimized silc_server_packet_relay_to_channel function.
4185           Added new function silc_channel_message_payload_encrypt which
4186           can be called directly if channel message payload needs to
4187           be encrypted and is already encoded (no need to call _encode
4188           function).  Packet relaying is now done by router without any
4189           extra memory allocations.  Affected files are
4190           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4191           silcd/packet_send.c.
4192
4193         * Fixed the INVITE notify handling.  It took wrong arguments
4194           as invite list and invite delete.  Affected file is
4195           silcd/packet_receive.c.
4196
4197         * Added check for TOPIC_SET notify type that the topic change is
4198           allowed by the client.  Affected file silcd/packet_receive.c.
4199
4200         * Added check for INVITE notify type that inviting is allowed by
4201           the client.  Affected file silcd/packet_receive.c.
4202
4203         * Changed the silc_server_client_on_channel to return the
4204           SilcChannelClientEntry as well.  Moved the function
4205           silc_server_check_cmode_rights to server_util.[ch].
4206           Affected files are silcd/server_util.[ch], silcd/command.c.
4207
4208         * Added function silc_server_check_umode_rights to check whether
4209           changing client's user mode is allowed.  Added check for
4210           UMODE_CHANGE notify type that the umode change is allowed
4211           by the client.  Affected files are silcd/server_util.[ch],
4212           silcd/packet_receive.c and silcd/command.c.
4213
4214 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4215
4216         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4217           ID length.  It ignored that ID can be IPv6 based as well.
4218           Affected file lib/silccore/silcpacket.h.
4219
4220         * Fixed the silc_id_id2str and silc_id_str2id to take the
4221           IPv6 address offset's into consideration.  Affecte file is
4222           lib/silccore/silcid.c.
4223
4224 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4225
4226         * Fixed the internal Unix scheduler functions to check for
4227           NULL context they may receive.  The affected file is
4228           lib/silcutil/unix/silcunixschedule.c.
4229
4230 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4231
4232         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4233           can specify different directory with --home command line
4234           parameter. Affected files irssi/src/silc/core/client_ops.c,
4235           clientutil.c
4236
4237         * SILC-specific commands aren't now executed if the active server
4238           isn't of SILC-type, so there won't be problems with having
4239           IRC and SILC protocol support in same client. Affected files
4240           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4241           silc-commands.h
4242
4243 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4244
4245         * Improved the signal support in SILC Schedule.  Added new
4246           function silc_schedule_signal_call which is used by application
4247           to mark a signal to be called.  It is now safe to perform
4248           any kind of tasks in signal callbacks since it is guaranteed
4249           that the application specified signal callback is called
4250           after the signal is over.  Affected files are
4251           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4252
4253 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4254
4255         * Added `name' field to SilcChannelPrivateKey to represent
4256           application given name for the key.  Moved also the context from
4257           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4258           Added the `name' argument also to the function
4259           silc_client_add_channel_private_key.
4260
4261           Added function silc_client_current_channel_private_key to set the
4262           current channel private key in use.
4263
4264           Added "change" command to KEY command which can be used to change
4265           the current channel private key.  Bound the command also to
4266           alt+K (Alt+Shift+k).
4267
4268           Also affected files lib/silcclient/client_channel.c,
4269           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4270
4271 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4272
4273         * Added silc_rng_get_byte_fast function in to the
4274           lib/silccrypt/silcrng.[ch].
4275
4276         * Changed the interface of silc_packet_assemble and the
4277           silc_packet_send_prepare.  If silc_packet_assmble is now
4278           called the application does not call silc_packet_send_prepare
4279           because the library will call it automatically.  These
4280           interfaces now also return a reference to the outgoing buffer
4281           which includes the assembled packet, which the application can
4282           use to encrypt the packet.
4283
4284           Affected files are lib/silccore/silcpacket.[ch],
4285           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4286           silcd/packet_send.c, server_backup.c and packet_receive.c.
4287
4288         * Fixed a packet sending bug on very high load, where outgoing
4289           packet queue wasn't handled correctly and packets got corrupted.
4290           Affected files are lib/silcutil/*/silc*sockconn.c,
4291           lib/silcclient/client.c and silcd/server.c.
4292
4293 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4294
4295         * Added macro SILC_PACKET_DATALEN which can be used during
4296           packet assembling to check whether the data to be added to
4297           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4298           len is truncated until it fits it.
4299
4300           Added checks for maximum length of channel message payload and
4301           private message payload also.
4302
4303           Added checks for maximum packet length in server and in
4304           client library.
4305
4306           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4307           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4308           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4309           lib/silcclient/client_prvmsg.c.
4310
4311 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4312
4313         * Added silc_server_packet_queue_purge call to the
4314           silc_server_disconnect_remote to assure that all data in the
4315           queue before disconnecting is sent to the network.  Affected
4316           file silcd/server.c.
4317
4318 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4319
4320         * Added the deleting of server's own ID cache entry to the
4321           silc_server_free function.  Free also everything else that
4322           has been allocated in silc_server_init.  The affected file
4323           is silcd/server.c.
4324
4325 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4326
4327         * Added functions silc_parse_version_string, silc_version_to_num,
4328           and silc_ske_parse_version to parse SILC protocol style version
4329           strings.  Affected files lib/silcutil/silcutil.[ch] and
4330           lib/silcske/silcske.[ch].
4331
4332         * Added new configuration params: version_protocol, version_software
4333           and version_software_vendor to specify what version the remote
4334           host must at least be to be able to connect to server.  The vendor
4335           string can be regex matched too.  Added new function
4336           silc_server_connection_allowed to check maximum number of allowed
4337           connections, and allowed versions for incoming connections.
4338           Affected files are silcd/server.c, server_util.[ch] and
4339           serverconfig.[ch].
4340
4341 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4342
4343         * Added preliminary support for signals in scheduler.  The
4344           signals we care about are now blocked always when the scheduler
4345           is locked.  This way we can synchronise the use of signal with
4346           scheduler.  It is guaranteed that when signal occurs the scheduler
4347           is not locked, and thus new tasks can be safely added to the
4348           scheduler.
4349
4350           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4351           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4352           Added new platform specific routines
4353           silc_schedule_internal_signals_[un]block and
4354           silc_schedule_internal_signal_[un]register.
4355
4356           Added new functions to SILC Schedule API:
4357           silc_schedule_signal_[un]register.  Each signal that application
4358           is going to use should be registered to the scheduler.
4359
4360           Affected files are lib/silcutil/silcschedule.[ch],
4361           lib/silcutil/*/silc*schedule.c.
4362
4363 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4364
4365         * Check for unauthenticated client and server in the
4366           silc_server_new_client and silc_server_new_server functions.
4367           Affected file silcd/packet_receive.c.
4368
4369         * Added function silc_string_is_ascii to check whether given
4370           string is 7-bit ASCII string.  Affected files are
4371           lib/silcutil/silcutil.[ch].
4372
4373         * Added function silc_id_is_valid_server_id into the
4374           silcd/serverid.c and added checking for valid Server ID's in
4375           silc_server_new_server.  The Server ID must always be based
4376           on the server's public IP address.
4377
4378         * Added logging of DISCONNECT packet message in the server.
4379           Affected file silcd/server.c.
4380
4381 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4382
4383         * Changed all library interfaces that use Global RNG to also
4384           accept SilcRng as argument.  Affected files are
4385           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4386           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4387           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4388           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4389           lib/silccrypt/rsa.c.
4390
4391         * Added function silc_pkcs_generate_key to the
4392           lib/silccrypt/silcpkcs.[ch] for applications so that they
4393           don't need to do pkcs->pkcs->init calls anymore.
4394
4395         * Remove SilcSocketConnection from the SFTP API since it really
4396           wasn't needed there.  The application has the information
4397           saved in its contexts anyway and the SFTP layer doesn't need
4398           know about it.  Affected files lib/silcsft/silcsftp.h and
4399           lib/silcsftp/sftp_[server/client].c.
4400
4401         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
4402           The SilcSimContext is not SilcSim.
4403
4404         * Fixed possible buffer overflows in silc_id_render in the
4405           lib/silcutil/silcutil.c.
4406
4407         * On EPOC the global crypto module lists are not used at all
4408           in the crypto library.  Added support for using the constant
4409           algorithm list on EPOC.  Affected files are
4410           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
4411           silcpkcs.c.
4412
4413         * Fixed the handling of third parameter of KICKED notify, since
4414           it was mistakenly updated to SILC Protocol 1.0 even though it
4415           is to be included in 1.1.  Since it is not in 1.0 it is not
4416           mandatory, and this fix now handles it only if it is provided,
4417           and it is not error if it is not provided.  Affected file
4418           lib/silcclient/client_notify.c.
4419
4420 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4421
4422         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
4423           client.  Affected file irssi/src/silc/core/client_ops.c.
4424
4425         * Merged with Irssi 0.8.4 from irssi.org CVS.
4426
4427 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4428
4429         * Check for valid socket connection in client entries before
4430           sending any messages.  Fixes a crash, but doesn't fix some
4431           other underlaying bug that is lurking there.  Affected
4432           file silcd/packet_send.c.
4433
4434 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
4435
4436         * $usermode, $cumode and $cumode_space expandos shouldn't do
4437           anything with non-SILC server records. Affected file
4438           irssi/src/silc/core/silc-expandos.c
4439
4440 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4441
4442         * Fixed the silc_net_check_[host/local]_by_sock to support
4443           IPv6 bound sockets as well.  Now they can return IPv6 addresses
4444           as well.  Affected file lib/silcutil/silcnet.c.
4445
4446         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
4447           Affected lib/silcutil/unix/silcunixnet.c.
4448
4449         * Fixed ID rendering (at least on some platforms, not NetBSD)
4450           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
4451
4452 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4453
4454         * Added silc_hash_public_key and silc_hash_public_key_compare
4455           functions to be used with SilcHashTable.  They can be used to
4456           hash public keys and compare public keys in hash table.  Affected
4457           file lib/silcutil/silcutil.[ch].
4458
4459         * Added support for specifying multiple public keys for Client
4460           connection section in server configuration file.  This makes it
4461           possible to accept multiple public keys from same host, or to
4462           make a section that accepts any incoming host, and have the
4463           accepted public keys listed in the section.
4464
4465           Added functions silc_sever_[find/get]_public_key,  added the
4466           support for this actually to all connection sections but only
4467           the Client section is currently allowed to specify multiple
4468           public keys.
4469
4470           Affected files are silcd/server.c, server_internal.h,
4471           command.c, protocol.c, server_util.[ch], packet_receive.c.
4472
4473 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4474
4475         * Merged Irssi 0.8.2 from irssi.org CVS.
4476
4477 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4478
4479         * If silc_debug is TRUE, also output standard logging messages
4480           to stderr with the debug output.
4481
4482           Made silc_log_reset_all() flushing all channels before returning.
4483           Also fixed some documentation typos.
4484
4485           Affected files are lib/silcutil/silclog.[ch].
4486
4487 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4488
4489         * Fixed the server to check correctly the amount of connections
4490           from single host, by checking also the type of the connection.
4491           Fixed also the comparison of number of connections and number
4492           of allowed connections.  Affected files are silcd/server.c,
4493           server_util.[ch].
4494
4495 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4496
4497         * Fixed the USERS command reply to save the user's mode on the
4498           channel as well.  Fixed JOIN command reply to check whether a
4499           client is on channel already and not join it twice.  Affected
4500           file lib/silcclient/command_reply.c.
4501
4502         * Added new file silc-expandos.c into irssi/silc/core/ to return
4503           various stuff for various signal for the statusbar etc. updating.
4504           Now Irssi SILC client prints channel user modes etc. on the
4505           statusbar.
4506
4507         * The user mode (like server/router operator changes) is now shown
4508           on the Irssi SILC client's statusbar.  The affected files are
4509           irssi/src/silc/core/client_ops.c, silc-expandos.c.
4510
4511 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4512
4513         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
4514           to SILC_SCHEDULE_[UN]LOCK macros.
4515
4516         * Added more error printing to logs in server code.  Affected
4517           files silcd/server.c and silcd/protocol.c.
4518
4519         * Fixed -S option parsing in Irssi SILC Client.  Affected file
4520           irssi/src/silc/core/silc-core.c.
4521
4522         * Added silc_buffer_alloc_size function.  Affected file is
4523           lib/silcutil/silcbuffer.h.
4524
4525 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4526
4527         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
4528           constants.  Affected files in
4529           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
4530           silccipher.[ch].
4531
4532         * Changed the internal SFTP Memory FS table to const.  Affected
4533           file lib/silcsftp/sftp_fs_memory.c.
4534
4535 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4536
4537         * Fixed the buffer formatting and unformatting routines to
4538           check the size of 64 bits types with sizeof().  Affected
4539           file is lib/silcutil/silcbuffmt.c.
4540
4541 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4542
4543         * Removed 0.6.x backwards support.
4544
4545 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4546
4547         * Changed all integer type names:
4548           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
4549           to avoid collisions with other libraries using same type names
4550           as we did.
4551
4552 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4553
4554         * Added `prefer_ipv6' argument to the functions
4555           silc_net_gethostbyname[_async].  If it is TRUE it will return
4556           IPv6 address over IPv4.  If FALSE IPv4 address is returned
4557           even if IPv6 address was found.  Affected files
4558           lib/silcutil/silcnet.[ch].
4559
4560         * Added support silc_net_create_connection[_async] to fallback
4561           to IPv4 address if IPv6 address could not be used (like if
4562           it doesn't work on a specific system).  Affected file in
4563           lib/silcutil/unix/silcunixnet.c.
4564
4565 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4566
4567         * Added silc_schedule_reinit function to do the enlarging
4568           of the max tasks handling capabilities of the scheduler.
4569           Affected files lib/silcutil/silcschedule.[ch].
4570
4571 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4572
4573         * Added automatic extern "C" { ... } for C++ compilers so the
4574           application does not need to define them.  Affected file
4575           includes/silcincludes.h.
4576
4577         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
4578           old name went against naming convention.  Applications now
4579           include "silcclient.h" instead of "clientlibincludes.h".
4580           Removed includes/clientlibincludes.h, it is redundant now.
4581
4582         * Renamed includes/version.h to silcversion.h.
4583
4584         * Added really preliminary support for OS/2 into the util
4585           library.  Only thread & mutex API is implemented, others
4586           are still to be implemented.  Created the lib/silcutil/os2/
4587           directory.  Created also file includes/silcos2.h.
4588
4589 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4590
4591         * Added preliminary BeOS support into the util library.
4592           Created lib/silcutil/beos/, and implemented all the needed
4593           functions to support SILC on BeOS.  Created also file
4594           includes/silcbeos.h.
4595
4596 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
4597
4598         * Added proper initializations to silc's irssi code, so it's
4599           now possible to load it as module.  Affected files
4600           irssi/src/silc/core/silc-core.c,
4601           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
4602
4603 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4604
4605         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
4606           the SILC tree.
4607
4608         * Fixed the silcdoc document generator to correct generate
4609           docs from all kinds of filenames.  Affected files are
4610           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
4611
4612         * ROBOdoc documented lib/silcutil/silcmemory.h.
4613           Added also new function silc_memdup.
4614
4615         * Removed lib/silcutil/silcbufutil.h and moved those routines
4616           to the lib/silcutil/silcbuffer.h.
4617
4618 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4619
4620         * Added `user_count' to the SilcChannelEntry which now tells the
4621           number of users on the channel.  The user count is now saved
4622           in normal server of global channels as well.  Affected files
4623           silcd/server.c, idlist.h, packet_receive.c and command.c.
4624
4625         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
4626           include file utility functions.
4627
4628         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
4629           instead of calling directly OS routines.
4630
4631         * Fixed NICK change printing in Irssi SILC Client. Fixed
4632           KICKED notify printing in Irssi SILC Client.  Affected file
4633           irssi/src/silc/core/client_ops.c.
4634
4635         * Fixed a NICK change bug in client library, to not recreate the
4636           client_entry->channels hash table everytime nick is changed.
4637           Affected file lib/silcclient/client.c.
4638
4639 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4640
4641         * ROBOdoc documented the lib/silcske/silcske.h, and improved
4642           the SKE interface a bit.
4643
4644         * Fixed padding problem in PKCS#1. The padding was not actually
4645           random since the random number generator was used incorrectly.
4646           This security bug affects only when encrypting with PKCS#1, and
4647           it is not currently used at all in SILC. SILC only use signing
4648           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
4649
4650 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4651
4652         * Rewrote the notify handling in Irssi SILC client to not call
4653           the events as signals.  Fixes problems with Perl support.
4654           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
4655
4656         * Send the auto-nicking NICK command in client library with
4657           little timeout after connecting.  The affected file is
4658           lib/silcclient/client.c.
4659
4660         * Added following new config file settings:
4661           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
4662           key_exchange_timeout, conn_auth_timeout, connections_max,
4663           links_max.
4664
4665           Implemented all the new config settings handling in the server.
4666
4667           Optimized the use of SKE Mutual flag usage.  Use it only
4668           if connection authentication protocol is not based in public
4669           key authentication.
4670
4671           Renamed all SilcServerConfigSection* to SilcServerConfig*
4672           to have a bit shorter names.
4673
4674           Affected files silcd/serverconfig.[ch], server.[ch], and
4675           protocol.[ch].
4676
4677 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4678
4679         * Cleaned up the listening sockets code, preparing for the rehash
4680           support.  Affected file is silcd/server.c.
4681
4682         * Fixed some output messages.  Affected files are silcd/silcd.c,
4683           and silcd/server.c.
4684
4685 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4686
4687         * Create lib/doc/silcrng_intro.html document as introduction
4688           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
4689
4690 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4691
4692         * Fixes to the silcd config template.  Affected file is
4693           doc/example_silcd.conf.in.
4694
4695         * Removed type casts from silc_calloc(), conforming to the
4696           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
4697
4698         * Removed param_name member from client, server, and router
4699           section structs, now identifying the param directly.
4700
4701           Added CONFIG_FREE_AUTH macro in config file parsing.
4702
4703           Affected files are silcd/serverconfig.[ch].
4704
4705 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
4706
4707         * Fixed command line parameter handling. All SILC initialization
4708           is now done in silc_core_init() which also fixes autoconnecting
4709           to servers.
4710
4711           Affected files irssi/src/silc/core/silc-core.c,
4712           irssi/src/fe-text/silc.c.
4713
4714 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4715
4716         * Added new configuration options and blocks:
4717           keepalive_secs, reconnect_count, reconnect_interval,
4718           reconnect_interval_max, reconnect_keep_trying and
4719           require_reverser_lookup.  Added ConnectionParam block, and
4720           implemented the connection parameters when connecting as
4721           initiator and when accepting connections as responder.
4722
4723           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
4724           whether given configuration value has been given already.
4725
4726           Affected files silcd/serverconfig.[c], server.[c].
4727
4728         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
4729           algorithm parts and created new file silcalgs.conf, that
4730           is now included from the example_silcd.conf.in.
4731
4732         * Optimized the silc_server_connect_to_router_second to take
4733           the connection configuration object from the SilcServerConnection
4734           object instead of finding it during the connecting phase.
4735           Added the configuration object to SilcServerConnection struct.
4736           Affected files silcd/server_internal.h, server.c.
4737
4738 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4739
4740         * Add the client on channel after it was resolved at the
4741           channel message receiving, and it was not already on the
4742           channel.  Affected file lib/silcclient/client_channel.c.
4743
4744 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4745
4746         * Fixed the public key authentication to allocate always the
4747           destination signature buffer instead of using static buffer.
4748           Affected file silcd/protocol.c.
4749
4750 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4751
4752         * Unified the serverconfig.[ch]'s helper function interface.
4753           Affected file silcd/serverconfig.[ch].
4754
4755         * Removed doc/example_silc.conf.in since it is redundant.
4756           The make install will now install irssi/silc.conf file.
4757
4758         * Added new Passphrase and Publickey authentication methods to
4759           config file, allowing both public key and passphrase based
4760           authentication to be set at the same time.
4761
4762           Added `prefer_passphrase_auth' setting in config file which
4763           can be used to set to prefer passwd auth if both passwd and
4764           public key is set.  If not set, public key is preferred.
4765           This has effect only when being initiator (responder will try
4766           both anyway).
4767
4768           Added support for authentication with passphrase and public key
4769           at the same time.  The passphrase is tried first always since
4770           it is faster to check.
4771
4772           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
4773
4774 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4775
4776         * Merged the new SILC Config library, with the server parsing
4777           support.  Read the header file silcconfig.h or the toolkit
4778           documentation for the news.  Affected files are
4779           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
4780           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
4781           silcd/protocol.c silcd/server.c silcd/server_backup.c
4782           silcd/serverconfig.[ch] silcd/silcd.c.
4783
4784         * Fixed some silclog documentation.  Affected file is
4785           lib/silcutil/silclog.h.
4786
4787 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4788
4789         * The silc_cipher_register, silc_hash_register and
4790           silc_hmac_register now checks if the object to be registered
4791           is registered already.  Affected files are
4792           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
4793
4794 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4795
4796         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
4797
4798 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4799
4800         * Allow zero length channel messages inside the Channel Message
4801           Payload.  Affected file lib/silccore/silcchannel.c.
4802
4803         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
4804           as header filenames.
4805
4806         * Removed lib/silcclient/README and created HTML file
4807           lib/silcclient/silcclient_using.html, which is now included
4808           as part of Toolkit documentation.
4809
4810 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4811
4812         * Fixed CUMODE_CHANGE notify handling to change the mode of
4813           correct client.  Affected file lib/silcclient/client_notify.c.
4814
4815         * Make silc_rng_alloc fail if it cannot allocate the sha1
4816           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
4817
4818 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4819
4820         * Fixed the file transfer's key agreement payload to include
4821           zero port also if the hostname is NULL because it could not
4822           be bound.
4823
4824           Call file transfer monitor callback now also if error occurs
4825           during key agreement protocol.
4826
4827           Changed the silc_client_file_send interface to return the
4828           SilcClientFileError instead of session id.  The session ID
4829           is returned into pointer provided as argument.
4830
4831           Check that the file exists locally before sending the
4832           file transfer request at all.
4833
4834           Affected file lib/silcclient/client_ftp.c, silcapi.h.
4835
4836         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
4837           error than can occur while key agreement protocol.  Affected
4838           file lib/silcclient/silcapi.h.
4839
4840         * Fixed the event_mode CMODE handler to not crash when mode
4841           is changed and +k mode is set in the channel.  Affected file
4842           irssi/src/silc/core/silc-channels.c.
4843
4844         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
4845           SILC_LOG_WARNING to give out Warning and not Error.  Affected
4846           file lib/silcutil/silclog.c.
4847
4848         * Fixed the channel message payload decryption in the function
4849           silc_channel_message_payload_decrypt to not modify the original
4850           buffer before it is verified that the message decrypted
4851           correctly.  Otherwise, next time it is called with correct
4852           channel key it won't encrypt since the payload is corrupted.
4853           Affected file lib/silccore/silcchannel.c.
4854
4855 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4856
4857         * Do not constantly resize the window.  A fix patch by cras.
4858           Affected file irssi/src/fe-text/screen.c.
4859
4860 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4861
4862         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
4863           Affected file lib/silcutil/silcnet.c.
4864
4865 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4866
4867         * Fixed a bug in hash table internal routine for traversing
4868           the table with foreach callback.  The current entry may
4869           become invalid in the callback but it was referenced after
4870           the callback returned.
4871
4872           Do not allow auto rehashing of hash table during the
4873           silc_hash_table_foreach operation, for same reasons as it is
4874           not allowed for SilcHashTableList.  Affected files are
4875           lib/silcutil/silchashtable.[ch].
4876
4877 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4878
4879         * Defined DLLAPI into silcincludes.h and silcwin32.h for
4880           Win32 DLL.  extern's in header files are now declared with
4881           DLLAPI.
4882
4883 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4884
4885         * Fixed private message handling.  It used some old code that
4886           caused the client to crash.  Affecte file is
4887           lib/silcclient/client_prvmsg.c.
4888
4889 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4890
4891         * Added function silc_client_add_channel,
4892           silc_client_replace_channel_id, and removed functions
4893           silc_client_new_channel_id and silc_idlist_get_channel_by_id
4894           from client library.
4895
4896         * Added cross reference of the joined channels to the
4897           SilcClientEntry, and changed the SilcChannelEntry's
4898           users list to SilcHashTable.  The affected files are
4899           lib/silcclient/idlist.[ch].
4900
4901         * Fixed a bug in hash table tarversing.  While the hash table
4902           is traversed with SilcHashTableList the table must not be
4903           rehashed.  It is now guaranteed that auto rehashable tables
4904           are not rehashed while tarversing the list.  Also defined that
4905           silc_hash_table_rehash must not be called while tarversing
4906           the table.  Added function silc_hash_table_list_reset that must
4907           be called after the tarversing is over.  The affected files are
4908           lib/silcutil/silchashtable.[ch].
4909
4910         * Changed all hash table traversing to call the new
4911           silc_hash_table_list_reset in server and in client library.
4912
4913         * Added function silc_client_on_channel to return the
4914           SilcChannelUser entry if the specified client entry is joined
4915           on the specified channel.  This is exported to application as
4916           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
4917
4918 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4919
4920         * Fixed founder regaining problem with JOIN command on normal
4921           server.  The notify for mode change must be sent always and
4922           not only if !cmd->pending.  Affected file silcd/command.c.
4923
4924         * Fixed the WHOWAS command's reply sending to support the
4925           lists correctly.  Affected file silcd/command.c.
4926
4927 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4928
4929         * When sending JOIN command to router for processing the
4930           sender's old command identifier was not saved back to the
4931           sender's command context, fixed now.  The affected file is
4932           silcd/command.c.
4933
4934         * Create the key in JOIN command of the router did not return
4935           the channel key, added check for this.  Affected file is
4936           silcd/command.c.
4937
4938         * Fixed a channel ID update bug in JOIN command reply.  Do
4939           not directly upgrade the ID but call the function
4940           silc_idlist_replace_channel_id if the ID was changed.
4941           Affected file silcd/command_reply.c.
4942
4943         * Fixed memory leaks from command calling if it would fail.
4944           Affected file silcd/command.c.
4945
4946 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4947
4948         * Applied patches from cras:
4949
4950           Memory leak fixes around libaries, irssi window resize fix,
4951           new silclist.h and silcdlist.h, all extern inline changed to
4952           static inline.
4953
4954         * Removed dotconf from lib/dotconf, not needed anymore.
4955
4956         * Removed TRQ from lib/trq, not needed anymore.
4957
4958         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
4959           with server connections.  Later this will be configurable
4960           in config file after new config file is done.  Affected file
4961           silcd/server.c.
4962
4963 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4964
4965         * Fixed a crash in server related to channel announcements.
4966           Affected file silcd/server.c.
4967
4968 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4969
4970         * Fixed memory leaks in silc_server_create_new_channel*
4971           functions.  Affected file silcd/server.c.
4972
4973         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
4974           which ID was changed.  This way the router will send the
4975           user list for the channel again, and server won't be in
4976           desync in some rare circumstances.  Affected file is
4977           silcd/packet_receive.c.
4978
4979 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4980
4981         * Check for NULL socket pointer in the function
4982           silc_server_packet_send_to_channel_real.  Affected file
4983           silcd/packet_send.c.
4984
4985         * Fixed the BAN notify handling to correctly remove ban
4986           list.  Affected file silcd/packet_receive.c.
4987
4988 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4989
4990         * Fixed some header addition to Toolkit distribution in
4991           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
4992
4993         * Added lib/silcclient/client_ops_example.h as an template
4994           file for application programmers to quickly start using
4995           the SilcClientOperation functions in their application.
4996           Updated the lib/silcclient/README as well to tell about this
4997           nice file made available.
4998
4999 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5000
5001         * Call silc_server_remove_from_channels when removing client
5002           entry when NO_SUCH_CLIENT_ID was received.  Affected file
5003           is silcd/command_reply.c.
5004
5005 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5006
5007         * Added server & router operator statistics updating.  Affected
5008           file silcd/packet_receive.c and silcd/command.c.
5009
5010         * Fixed the SERVER_SIGNOFF notify handling on normal server
5011           not to save the history information for clients.  Same was
5012           fixed earlier in remove_clients_by_server function, but not
5013           here.  Affected file silcd/packet_receive.c.
5014
5015         * Raised the default connection-retry count from 4 to 7 in
5016           server.  Affected file silcd/server.h.
5017
5018         * Cancel any possible reconnect timeouts when we start the
5019           key exchange.  Affected file silcd/server.c.
5020
5021         * Do not reconnect on connection failure when SCONNECT was
5022           given.  Affected files silcd/server.[ch].
5023
5024 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5025
5026         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
5027
5028         * Fixed the NICK command to always give the unformatted
5029           nickname to the one giving the NICK command.  If unformatted
5030           nickname is cached already it will be formatted and the
5031           local entry will always get the unformatted nickname.
5032           Affected file lib/silcclient/idlist.c.
5033
5034         * Fixed some double frees from client library commands.
5035           Affected file is lib/silcclient/command.c.
5036
5037         * Fixed CUMODE command in server to assure that no one can
5038           change founder's mode than the founder itself, there was a
5039           little bug.  Affected file silcd/command.c.
5040
5041 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5042
5043         * Removed the SilcClientCommandDestructor from the client
5044           libary, it is not needed anymore.  Affected files are
5045           lib/silcclient/silcapi.h, command[_reply].[ch],
5046           client_notify, idlist.c.
5047
5048         * Fixed GETKEY command to first resolve client, and then
5049           resolve the server only if the client was not found, instead
5050           of resolving both at the same time.  Affected file is
5051           lib/silcclient/command.c.
5052
5053         * Added silc_client_start_key_exchange_cb and lookup the
5054           remote hostname and IP address before starting the key
5055           exchange with server.  The affected file is
5056           lib/silcclient/client.c.
5057
5058         * The server's public key is now saved using the IP address
5059           of the server and not the servername for the filename.
5060           The hostname public key filename is checked as an fall back
5061           method if the IP address based filename is not found.
5062
5063           Fixed the GETKEY command to save the fetched server key
5064           in correct filename.
5065
5066           Print the remote server's hostname now when new key is
5067           received during connection process.  Affected file is
5068           irssi/src/silc/core/client_ops.c.
5069
5070         * Return always our own public key to the client if it asks
5071           for it with GETKEY command.  Affected file silcd/command.c.
5072
5073         * Removed the use_auto_addr variable from default config
5074           file since it was in wrong section.  Affected file is
5075           irssi/src/config.
5076
5077         * Fixed TOPIC_CHANGE notification to not route it when it
5078           was sent using silc_server_send_notify_to_channel function.
5079           Affected file silcd/command.c.
5080
5081         * Fixed silc_server_send_notify_kicked to send the kicker's
5082           Client ID also, it was missing.  Affected files are
5083           silcd/command.c, silcd/packet_send.[ch].
5084
5085 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5086
5087         * Do not save client history information in SERVER_SIGNOFF.
5088           Fixes the bug in normal server that it does not detect
5089           the client becoming valid after the server becomes back
5090           online.  Affected file silcd/server_util.c.
5091
5092         * Added `sock_error' field  into the SilcSocketConnection
5093           context.  When error occurs during socket operation (read
5094           or write) the error is saved.  Added also new function
5095           silc_socket_get_error to return human readable socket error
5096           message.  Affected files are lib/silcutil/silcsockconn.[ch],
5097           lib/silcutil/unix/silcunixsockconn.c, and
5098           lib/silcutil/win32/silcwin32sockconn.c.
5099
5100         * The server now prints the socket error message in the
5101           signoff for client.  Affected file silcd/server.c.
5102
5103         * Fixed the `created' channel information sending from router
5104           to server in JOIN command.  Checks now whether the channel
5105           really was created or not and set it according that.
5106
5107           Fixed the JOIN command to use the client entry's current
5108           ID during the joining procedure instead of the one it sent
5109           in the command (it is checked though), since it can change
5110           between the packet processing and command processing, and
5111           would just case unnecessary pain in the client end.  Affected
5112           file silcd/command.c.
5113
5114         * Fixed a channel key payload sending to use correct channel
5115           ID when the server was forced to change the channel's ID by
5116           router.  Router sent the key payload with the old Channel ID.
5117           Affected file silcd/packet_receive.c.
5118
5119 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5120
5121         * Call silc_server_save_channel_key only if the key payload
5122           was provided in the JOIN command's command reply.  Affected
5123           file silcd/command_reply.c.
5124
5125 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5126
5127         * Fixed silc_mp_sizeinbase to return the value correctly with
5128           MPI.  Affected file lib/silcmath/mp_mpi.c.
5129
5130         * Fixed the stop_server signal to correctly stop the scheduler
5131           and gracefully stop the server when SIGTERM or SIGINT signals
5132           are received.  Affected file silcd/silcd.c.
5133
5134 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5135
5136         * Simple handling of TERM and HUP signals. Also added some log
5137           flushing call around.  Affected file is
5138           silcd/silcd.c.
5139
5140         * Fixed small bugs in silclog.c. Now buffering output will take
5141           effect after 10 seconds since startup: This will ensure that
5142           no important startup messages are lost. Also output redirection
5143           will preserve original format ([Date] [Type] message).
5144           Affected file is lib/silcutil/silclog.c.
5145
5146         * Added two options to the config file, in the logging section:
5147           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
5148           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
5149
5150 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5151
5152         * Do not print the warning about log files not being initialized
5153           more than once to avoid excess logging.  Affected file is
5154           lib/silcutil/silclog.c.
5155
5156         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5157           the SIM copying in make install in Makefile.am.pre.
5158
5159 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5160
5161         * Rewritten silclog APIs. Globally interesting changes follows:
5162           silc_log_set_files() changed to silc_log_set_file().
5163           silc_log_set_callbacks() changed to silc_log_set_callback().
5164           ROBOdoc documented silclog header file.
5165           SilcLogCb now returns bool to wether inihibit the default
5166           handler or not (to keep the old behaviour return always TRUE).
5167           The new APIs should also fix the problem of the
5168           silcd_error.log file that was written in the current directory.
5169
5170           New features:
5171           Log files streams will remain opened after silc_log_set_file()
5172           call, means less CPU usage notably on high traffic servers.
5173           File streams are now full buffered, and flushed to the disk
5174           every 5 minutes, lesses HD activity and CPU usage.
5175           Messages can be redirected, allowing admins to configure
5176           one single logfile for all server messages.
5177           the silc_log_quick global variable to activate fast-logging.
5178           Affected files lib/silcutil/silclog.[ch]
5179
5180         * Changed some code to conform new silclog APIs. Affected
5181           files are doc/example_silcd.conf.in, silcd/server.c
5182           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5183           silcd/silcd.c.
5184
5185         * Fixed a memory leak that could occur in some situations.
5186           Affected file silcd/serverconfig.c.
5187
5188 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5189
5190         * Added the silc_client_del_client to remove the client from
5191           all channels as well.  Affected file lib/silcclient/idlist.c.
5192
5193         * Fixed the client library to correctly remove the client
5194           from all channels when the client entry is being destroyed.
5195           Affected file lib/silcclient/client_notify.c, command.c.
5196
5197         * Added auto-nicking support to the client library.  If the
5198           applicatio now sets client->nickname it will be sent to the
5199           server after connecting by the library.  This way for example
5200           SILCNICK (or IRCNICK) environment variables will have effect
5201           and always change the nickname automatically to whatever
5202           it is wanted.  Affected file lib/silcclient/client.[ch].
5203
5204         * Renamed silc_server_command_bad_chars to the
5205           silc_server_name_bad_chars and moved it to the
5206           silcd/server_util.[ch].  Added also new function
5207           silc_server_name_modify_bad to return nickname that
5208           includes bad characters as new nickname without those
5209           bad characters.  This check and modify is now used in
5210           silc_server_new_client when the username is initially set
5211           as nickname, so it must be checked to be valid nickname.
5212           Affected file silcd/packet_receive.c.
5213
5214         * The nickname length is now taken from the packet for real
5215           and not trusted to strlen() since it clearly can return
5216           wrong length for nickname including bad characters.  This
5217           also applies to channel names.  Affected file silcd/command.c.
5218
5219         * Removed the lib/silcsilm/modules directory.  Modules are now
5220           compiled into the lib/silcsim.  Fixed the copying of the
5221           modules to follow symbolic links in Makefile.am.pre.
5222
5223 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5224
5225         * Fixed silc_string_regexify list creation.  Fixes bugs with
5226           BAN and INVITE commands in server.  The affected file is
5227           lib/silcutil/unix/silcunixutil.c.
5228
5229 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5230
5231         * Removed the command destructor entirely from the server's
5232           command and command reply routines.  It is not needed, and
5233           its usage was buggy and caused crashes.  Affected files are
5234           silcd/command[_reply].[ch].
5235
5236 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5237
5238         * Cancel protocol and NULL sock->protocol if timeout
5239           occurred during protocol.  Affected file silcd/server.c.
5240
5241         * Cancel protocol timeouts always before calling the final
5242           callback, to assure that after final callback is called
5243           no other state will be called for the protocol anymore.
5244           Affected file silcd/protocol.c.
5245
5246         * Print error log if incoming connection configuration could
5247           not be found.  Affected file silcd/server.c.
5248
5249         * Fixed JOIN command to correctly save the founder mode
5250           to the client on normal SILC server, when the channel
5251           was created by the router.  Affected file silcd/command.c.
5252
5253         * Fixed LIST command (hopefully) to send correct reply
5254           packets.  Affected file silcd/command.c.
5255
5256 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5257
5258         * The silc_packet_receive_process now returns FALSE if the
5259           read data was invalid packet, and TRUE if it was ok.
5260
5261           The server now checks that if unauthenticated connection
5262           sends data and its processing fails the server will close
5263           the connection since it could be a malicious flooder.
5264
5265           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5266
5267 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5268
5269         * Make sure the warning about error opening a log file is
5270           printed only once and not everytime it fails (produces
5271           too much useless log).  Affected file lib/silcutil/silclog.c.
5272
5273 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5274
5275         * Made the silc_server_daemonise() function more readable.
5276           Affected file silcd/server.c.
5277
5278         * Pid file is now optional, the user may comment it out from
5279           the config file. Removed define SILC_SERVER_PID_FILE, we
5280           don't need a default any longer.  Affected file
5281           configure.in.pre, lib/Makefile.am.pre.
5282
5283         * Make some use of the pid file. The server now dies at startup
5284           if it detects a valid pid file on his path. The server would
5285           die anyway in this circumstance, because of the bind() failure.
5286           Affected file silcd/silcd.c.
5287
5288         * No longer compiling lib/dotconf.
5289
5290 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5291
5292         * Fixed JOIN command parsing not to crash.  Affected file
5293           lib/silcclient/command.c.
5294
5295         * Fied the NICK_CHANGE notify to add the new client entry
5296           even it is resolved.  This removes an <[unknown]> nick
5297           thingy bug in the client.  Affected file is
5298           lib/silcclient/client_notify.c.
5299
5300         * Do not try to allocate 0 bytes (efence does not like it)
5301           in lib/silccore/silccomand.c when encoding payload.
5302
5303         * Do not take IRCNICK as nickname in Irssi SILC client since
5304           it is not possible to set nickname before hand connecting
5305           the server (TODO has an entry about adding auto-nicking
5306           support).
5307
5308         * Changed the silc_server_command_pending to check whether
5309           there already exists an pending entry with the specified
5310           command, command identifier and pending callback.  This is
5311           to fix IDENTIFY and WHOIS related crashes that may register
5312           multiple pending commands with same identifier.  Affected
5313           file silcd/command.c.
5314
5315         * Fixed the server to reconnect to the router even if it
5316           was already reconnecting and EOF was received.  This to
5317           fix a possibility that the server wouldn't ever try to
5318           auto-reconnect to the router.  Affected file silcd/server.c.
5319
5320 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5321
5322         * Fixed the server's password authentication to use the
5323           length of the locally saved password, and not the one
5324           sent in the packet.  Affected file silcd/protocol.c.
5325
5326         * Fixed same password authentication problem in the
5327           Authentication Payload handling routines in
5328           lib/silccore/silcauth.c.
5329
5330         * Yet another password authentication problem fixed with
5331           channel password handling in silcd/command.c.
5332
5333 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5334
5335         * If first character of string in silc_parse_userfqdn is '@'
5336           then do not parse it.  Affected file is
5337           lib/silcutil/silcutil.c.
5338
5339 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5340
5341         * Fixed minor bug in IDENTIFY command reply sending, which
5342           caused various weird problems during JOIN when it was
5343           resolving names for users.  Affected file silcd/command.c.
5344
5345 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5346
5347         * Fixed the IDENTIFY command reply sending to chech better valid
5348           clients.  It was possible to send incomplete list of replies.
5349           Affected file silcd/command.c.
5350
5351 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5352
5353         * Added silc_client_command[s]_[un]register functions now to
5354           dynamically register the commands in client library.  Removed
5355           the static table of commands.  This allows the client library
5356           to call commands without causing the application to know about
5357           what commands library has called.
5358
5359           Removed the INFO command reply kludge to detect when the command
5360           was called by library.  Now library use its own command reply
5361           function for INFO command.
5362
5363           Added function silc_client_command_call to call a command.
5364           Application can use it to call command, not access the structure
5365           directly.
5366
5367           Now all commands that are sent by the client library (not
5368           explicitly sent by application) use own command reply functions.
5369
5370           Affected files around lib/silcclient/ and in
5371           irssi/src/silc/core/.
5372
5373         * Fixed the WHOIS command reply sending to chech better valid
5374           clients.  It was possible to send incomplete list of replies.
5375
5376           Fixed the WHOIS and IDENTIFY to send the request to router
5377           if normal server did not do it and did not find any results.
5378
5379           Affected file silcd/command.c.
5380
5381 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5382
5383         * Moved the internal data from SilcClient context into its
5384           own file, not accesible to application.  Affected files
5385           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5386           and other files in client library.
5387
5388 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5389
5390         * Added doc/examples installation target in Makefile.am.pre.
5391           A patch by salo.
5392
5393 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5394
5395         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
5396           commands the found client entry will be removed from the
5397           cache, after notifying application about the error.  Affected
5398           file lib/silcclient/command_reply.c.
5399
5400         * Changed the /MSG to check for exact nickname user gave, and
5401           not let `nick' match `nick@host' if it is only one found.  Now,
5402           user must type the exact nickname (like nick@host2) even if
5403           there are no more than one same nicks found.  This is to avoid
5404           a possibility of sending nickname to wrong nickname since
5405           `nick' could match `nick@host'.  Affected file is
5406           irssi/src/core/silc-servers.c.
5407
5408 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5409
5410         * Do not print "you are now server operator" or similar when
5411           giving /away command.  Affected files are
5412           irssi/src/silc/core/client_ops.c, silc-servers.h.
5413
5414         * Made the silc_server_command_pending_error_check to send
5415           the same command reply payload it received back to the
5416           original sender of the command.  This way all arguments
5417           that was received by the server will be received by the
5418           client too.  Affected file silcd/command.c.
5419
5420         * Added the silc_idcache_add to return the created cache entry
5421           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
5422
5423         * Add global clients to expire if they are not on any channel.
5424           This is because normal server will never know if they signoff
5425           if they are not on any channel.  The cache expiry will take
5426           case of these entries.  This is done by normal servers only.
5427           The affected files are silcd/command_reply.c,
5428           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
5429
5430         * If server receives invalid ID notification for WHOIS or
5431           IDENTIFY and the ID exists in the lists, it is removed.
5432           Affected file silcd/command_reply.c.
5433
5434         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
5435           in client then client entry that it matches is searched and
5436           the nickname is printed on the screen for user.  Affected
5437           file irssi/src/silc/core/client_ops.c.
5438
5439 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5440
5441         * Use cache entry expire time in the LIST command reply to
5442           purge old entries from the cache after the LIST command
5443           reply has been received.  This way we don't have non-existent
5444           entries in the cache for too long.  Affected file is
5445           silcd/command_reply.c.
5446
5447 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5448
5449         * If we are normal server, and we've not resolved client info
5450           in WHOIS or IDENTIFY from router, and it is global client,
5451           we'll check whether it is on some channel.  If it is not
5452           then we cannot be sure about its validity and will resolve it
5453           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
5454           file silcd/command.c.
5455
5456         * Search channel by name (if possible) rather than by ID
5457           in IDENTIFY command's command reply.  Affected file is
5458           silcd/command_reply.c.
5459
5460 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5461
5462         * Distribute to the channel passphrase in CMODE_CHANGE notify.
5463           Updated specs and implemented it.  Affected file silcd/command.c,
5464           silcd/packet_send.c and silcd/packet_receive.c.
5465
5466         * Implemented the <founder auth> payload handling in the JOIN
5467           command.  If provided all conditions for channel joining
5468           except requirement to provide correct passphrase can be
5469           overrided by the channel founder.  Updated the protocol specs.
5470           Affected file silcd/command.c.
5471
5472           Added support for founder auth in JOIN command in client
5473           library.  Fixed the parsing of the JOIN command now to support
5474           all options as they should be.  The affected file is
5475           lib/silcclient/command.c.
5476
5477         * Optimized the WHOIS and IDENTIFY commands to send the request
5478           to router only if it includes nicknames or other names.  If
5479           they include only IDs then check the local cache first before
5480           routing.  Affected file is silcd/command.c.
5481
5482         * Added channels topic announcements.  Affected file is
5483           silcd/packet_receive.c and silcd/server.c.
5484
5485         * Fixed the silc_server_send_notify_topic_set to really destine
5486           the packet to channel.  Affected file silcd/packet_send.c.
5487
5488         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
5489           library.  Affected file lib/silcclient/client_notify.c.
5490
5491         * Added UMODE announcements.  Affected file silcd/server.c.
5492
5493 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5494
5495         * Memory leak fixes in:
5496
5497           lib/silcutil/silcsockconn.c
5498           lib/silcske/silcske.c
5499           lib/silcske/groups.c
5500           lib/silccrypt/rsa.c
5501           lib/silccrypt/silcpkcs.c
5502           lib/silccore/silccommand.c
5503           lib/silccore/silcidcache.c
5504           silcd/idlist.c
5505           silcd/packet_send.c
5506           silcd/command.c
5507
5508         * ROBOdoc documented the lib/silcske/groups.h file and a
5509           bit changed the interface for better.
5510
5511 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5512
5513         * Update the client entry context in the ID cache after
5514           nick change.  Affected file lib/silcclient/command.c.
5515           Fixes the CUMODE command when regaining founder privileges,
5516           and a little WHOIS problem.
5517
5518         * Fixed silc_net_gethostbyname to correctly call the
5519           inet_ntop.  Affected file lib/silcutil/silcnet.c.
5520
5521 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5522
5523         * Added IPv6 support checking to the configure.in.pre, added
5524           also --enable-ipv6 option to override the check.  Affected
5525           file configure.in.pre.
5526
5527         * The silc_thread_create now calls the start function
5528           directly if threads support is not compiled in.  Removes
5529           ugly #ifdef's from generic code.  Affected files are
5530           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
5531
5532         * Added silc_net_gethostby[name/addr]_async to asynchronously
5533           resolve.  Affected files are lib/silcutil/silcnet.[ch].
5534
5535         * Added support for rendering IPv6 based server, client and
5536           channel IDs.  Affected file lib/silcutil/silcutil.c.
5537
5538         * Added support for creating IPv6 based server IDs.  Affected
5539           file is silcd/serverid.c.
5540
5541 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5542
5543         * Added silc_net_gethostby[addr/name] into the
5544           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
5545           routines.  Added silc_net_is_ip[4/6].  Affected file is
5546           lib/silcutil/unix/silcunixnet.c.  All routines that take
5547           address as argument now supports both IPv4 and IPv6 addresses.
5548
5549 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5550
5551         * Fixed LIST command reply sending in server.  Affected file
5552           silcd/command.c.
5553
5554         * Server now sends the kicker's client ID in the KICK notify
5555           to the kicked client.  Affected file silcd/command.c.
5556
5557         * The client library now parses the kickers client ID and
5558           UI displays it.  Affected files lib/silcclient/client_notify.c
5559           and irssi/src/silc/core/silc-channels.c, module-formats.c.
5560
5561         * Made all payload parsing function prototypes consistent.
5562           They all take now const unsigned char * and uint32 pair as
5563           the payload data instead of SilcBuffer.  Changes all around
5564           the source tree.  Other unsigned char* -> const unsigned char*
5565           changes around the tree as well.
5566
5567         * Optimized SFTP client and server packet sending not to
5568           allocate new buffer for each packet but to recycle the
5569           first allocated buffer.  Affected files are
5570           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
5571
5572         * Optimized the SFTP client to use SilcList instead of
5573           SilcDList for requests, because it is faster.  Affected file
5574           is lib/silcsftp/sftp_client.c.
5575
5576         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
5577           into lib/silccore/silcid.[ch].
5578
5579           Renamed silcpayload.[ch] into silcargument.[ch].
5580
5581 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5582
5583         * If client entry is deleted with active key agreement
5584           session, abort the session.
5585
5586           The silc_client_abort_key_agreement now calls the completion
5587           callback with new SILC_KEY_AGREEMENT_ABORTED status.
5588
5589           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
5590           idlist.c.
5591
5592 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5593
5594         * Don't use __restrict in older GCC's.  Affected file is
5595           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
5596
5597         * silc_net_localhost now attempts to reverse lookup the
5598           IP/hostname.  Affected file lib/silcutil/silcnet.c.
5599
5600         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
5601           command.  It can be used to gain founder privileges at
5602           the same time when joining the channel.
5603
5604           Defined that the SILC_NOTIFY_TYPE_KICKED send the
5605           kicker's client ID as well.  Updated protocol specs.
5606
5607           Defined that the server must send SILC_COMMAND_IDENTIFY
5608           command reply with error status to client who sent
5609           private message with invalid client ID.
5610
5611           Updated the protocol specification.
5612
5613         * Added silc_server_send_command_reply to send any
5614           command reply.  Affected file silcd/packet_send.[ch].
5615
5616         * Added silc_id_payload_encode_data to encode ID payload
5617           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
5618
5619         * The server now send IDENTIFY command reply with error
5620           status if client ID in private message is invalid.  Affected
5621           file silcd/packet_receive.c.
5622
5623         * Save the server key file with server's IP address in
5624           the filename instead of hostname.  The affected file is
5625           irssi/src/silc/core/client_ops.c.
5626
5627 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5628
5629         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
5630           A patch by Sunfall.
5631
5632         * Added libtool support for compiling shared objects in
5633           lib/silcsim.  Affected file configure.in.pre and
5634           lib/silcsim/Makefile.am.  Original patch by cras.
5635
5636 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5637
5638         * Pid file configuration, and server's config file fixes
5639           patch by toma.  Updated CREDITS file.
5640
5641 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5642
5643         * Fixed silc_client_channel_message to not try to decrypt
5644           the message twice if it resolved the destination client
5645           information.  This could cause of dropping one channel
5646           message.  Affected file lib/silcclient/client_channel.c.
5647
5648 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5649
5650         * Added silc_client_run_one into lib/silcclient/silcapi.h and
5651           lib/silcclient/client.c. This function is used when the SILC
5652           Client is run under some other scheduler, or event loop or
5653           main loop.  On GUI applications, for example this may be
5654           desired to used to run the client under the GUI application's
5655           main loop.  Typically the GUI application would register an
5656           idle task that calls this function multiple times in a second
5657           to quickly process the SILC specific data.
5658
5659 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5660
5661         * Fixed silc_server_drop() for dropping the supplementary
5662           groups as well, this could cause a security hole on some
5663           systems.
5664
5665 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5666
5667         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
5668           johnny.
5669
5670         * Write PID file after dropping privileges.  Added -F option
5671           to run server on foreground.  A patch by debolaz.
5672           Affected files silcd/server.c, silcd/silcd.c.
5673
5674         * Fixed MOTD to return the MOTD file server name.  Affected
5675           file silcd/command.c.
5676
5677         * Added INFO command reply handling to the Irssi SILC Client.
5678           Affected file irssi/src/silc/core/client_ops.c.
5679
5680 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5681
5682         * Fixed the silc_idcache_list_* routines to really support
5683           the dynamic list.  Fixes a crash.  Affected file is
5684           lib/silccore/silcidcache.c.
5685
5686         * Fixed the LIST command reply to really call LIST command's
5687           pending callbacks.  Affected file silcd/command_reply.c.
5688
5689 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5690
5691         * Update conn->local_entry->nickname after giving NICK
5692           command.  Affected file lib/silcclient/command.c.
5693
5694 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
5695
5696         * Added the [pid] option to the silcd configuration file
5697
5698           Affected files: serverconfig.[ch] and silcd.c
5699
5700 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5701
5702         * Save fingerprint in WHOIS command reply in server.
5703           Affected file silcd/command_reply.c.
5704
5705         * Fixed NICK commands pending callback registration.
5706           Affected file lib/silcclient/command.c.
5707
5708 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5709
5710         * Use ++server->cmd_ident when sending commands in server,
5711           instead of random number.  Affected file silcd/command.c.
5712
5713         * Fixed GETKEY command reply to call actually GETKEY pending
5714           command callbacks.  Affected file silcd/command_reply.c.
5715
5716         * A bit stricter check for nicknames.  Check for same nickname
5717           in NICK command also.  Affected file silcd/command.c.
5718
5719         * Do not call INFO command everytime client ID changes, only
5720           during first connecting.  Affected file lib/silcclient/client.c.
5721
5722         * Set the new nickname only after successful command reply for
5723           NICK command is returned by server.  Affected file
5724           lib/silcclient/command.c.
5725
5726         * Remove nicknames from nicklist during server_signoff notify.
5727           Should fix /NAMES bit more.  The affected file is
5728           irssi/src/silc/core/silc-channels.c.
5729
5730         * Added `fingerprint' field to the SilcIDListData in the
5731           silcd/idlist.h to hold the fingerprint of the client's
5732           public key.
5733
5734           Send the fingerprint of the client's public key in WHOIS
5735           command reply.
5736
5737           Affected files silcd/command.c, and silcd/idlist.[ch].
5738
5739         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
5740           create fingerprint from given data.
5741
5742         * Show the fingerprint of the client's public key in WHOIS.
5743           Affected files irssi/src/module-formats.[ch] and
5744           irssi/src/silc/core/client_ops.c.
5745
5746         * Format the multiple same nicknames also during JOIN and
5747           NICK_CHANGE notifys.  Affected file is
5748           lib/silcclient/client_notify.c.
5749
5750         * Do not print error on screen for invalid private message
5751           payload since it can come if someone is sending private
5752           messages with wrong key.  Affected file
5753           lib/silccore/silcprivate.c.
5754
5755         * Fixed multiple concurrent /PING crash.  Affected file
5756           lib/silcclient/command.c.
5757
5758         * Changed the wrong ID encoding.  All IP addresses must be
5759           in MSB first order in encoded format.  They were encoded
5760           wrong and was in LSB format.  Affected files are
5761           silcd/serverid.c, lib/silcutil/silcutil.c.
5762
5763         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
5764
5765         * Call the `connect' client operation through the scheduler
5766           in case of error.  Affected file lib/silcclient/client.c.
5767
5768         * Call the `failure' client operation even if the error
5769           occurred locally during a protocol.  Affected file is
5770           lib/silcclient/protocol.c.
5771
5772         * Added support of sending LIST command to router from normal
5773           server.  This way normal server can get list of all channels
5774           in the network too.  Fixed the channel list sending in the
5775           server too.  Affected files are silcd/command.c, and
5776           silcd/command_reply.[ch].
5777
5778         * Added silc_server_update_channels_by_server and
5779           silc_server_remove_channels_by_server.  They are used during
5780           disconnection of primary router and in backup router protocol.
5781           Affected file silcd/server_util.[ch], silcd/server.c and
5782           silcd/server_backup.c.
5783
5784         * Fixed channel adding to global list in IDENTIFY command
5785           reply in server.  Affected file silcd/command_reply.c.
5786
5787 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5788
5789         * If the incoming packet type is REKEY or REKEY_DONE process
5790           that packet always synchronously.  Fixes yet another MAC
5791           failed error on slow (dialup) connections.  Affected file
5792           lib/silcclient/client.c and silcd/server.c.
5793
5794 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5795
5796         * Call check_version SKE callback for initiator too.  Affected
5797           file lib/silcske/silcske.c.
5798
5799         * Implemented fix for security hole found in the SKE that was
5800           fixed in the specification few days back; the initiator's
5801           public key is now added to the HASH value computation.
5802           Added backwards support for the old way of doing it too, for
5803           old clients and old servers.  Affected file is
5804           lib/silcske/silcske.c.
5805
5806         * Enabled mutual authentication by default in SKE.  If initiator
5807           is not providing mutual authentication the responder will
5808           force it.  This will provide the proof of posession of the
5809           private key for responder.  The affected files are
5810           lib/silcclient/protocol.c and silcd/protocol.c.
5811
5812         * Do not cache anymore the server's public key during SKE.
5813           We do mutual authentication so the proof of posession of
5814           private key is done, and if the server is authenticated in
5815           conn auth protocol with public key we must have the public
5816           key already.  Affected file silcd/protocol.c.
5817
5818         * Added new global debug variable: silc_debug_hexdump.  If
5819           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
5820           file lib/silcutil/silclog.[ch].
5821
5822         * Fixed compilation warning due to char * -> const char *.
5823           Affected files lib/silcutil/silcnet.h, and
5824           lib/silccore/silcauth.[ch].
5825
5826 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5827
5828         * Fixed CMODE command when new channel key was created.  If
5829           the creation failed the old key was removed.  Next time giving
5830           same command would crash the server since the old key was
5831           freed already.  Affected file silcd/command.c.
5832
5833         * Fixed the silc_server_announce_get_channels to not crash
5834           on reconnect.  Affected file silcd/server.c.
5835
5836 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5837
5838         * Added silc_log_set_debug_string function to set a regex
5839           string to match for debug output.  Only the function names,
5840           or filenames matching the given debug string is actually
5841           printed.  This way it is possible to filter out those debug
5842           strings that user is not interested in.
5843
5844           Fixed a bug in silc_string_regexify.
5845
5846           Affected files lib/silcutil/silclog.[ch], and
5847           lib/silcutil/unix/silcunixutil.c.
5848
5849         * Changed the -d options in both server and Irssi SILC client
5850           to take the debug string as argument.  Affected files
5851           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
5852
5853 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5854
5855         * Added silc_hash_babbleprint to create a Bubble Babble
5856           Encoded fingerprint.  The encoding is developed by Antti
5857           Huima (draft-huima-babble-01.txt), and it creates human
5858           readable strings out of binary data.  Affected file
5859           lib/silccrypt/silchash.[ch].
5860
5861         * Print the babble print now in addition of fingerprint as well
5862           in Irssi SILC client.  Affected files are
5863           irssi/src/fe-common/silc/module-formats.[ch],
5864           irssi/src/fe-common/silc/core/client_ops.c.
5865
5866 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5867
5868         * Fixed a security problem found in SKE.  The initiator's
5869           public key too is now added to the HASH hash value creation
5870           which is signed by the responder to create the SIGN value.
5871           This will prevent anyone in the middle to lie to the responder
5872           about the initiator's public key.  If this is done now, the
5873           man in the middle will get caught.  Updated the protocol
5874           specification.
5875
5876 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5877
5878         * Better installation directory handling.  Configure module
5879           paths and other paths automatically to example_silc* files
5880           in doc/.  A patch by toma.
5881
5882         * Fixed compiler warning from MPI library, and from SILC RNG.
5883           A patch by johnny.
5884
5885         * Added SILC_SERVER_PID_FILE to define the pid file for server.
5886           It can be configured with ./configure.  A patch by toma.
5887
5888 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5889
5890         * Find correct make to use in prepare-clean.  A patch by
5891           toma.  Affected file prepare-clean.
5892
5893 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
5894
5895         * Added irssi variables use_auto_addr, auto_bind_ip,
5896           auto_bind_port and auto_public_ip.
5897
5898         * Changed the interface for silc_client_send_key_agreement
5899           in lib/silcclient/silcapi.h
5900
5901         Affected files:
5902
5903          irssi/src/silc/core/silc-core.c
5904          irssi/config
5905          lib/silcclient/silcapi.h
5906          irssi/src/silc/core/silc-channels.c
5907          lib/silcclient/client_keyagr.c
5908          irssi/docs/help/key
5909
5910 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5911
5912         * Added silc_pkcs_public_key_compare to compare two
5913           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
5914
5915         * Check that the client who set the founder mode on the
5916           channel is the same client that is giving the founder
5917           mode to itself.  It is done by comparing the saved public
5918           key (it is saved even in the authentication is passphrase).
5919           Affected file silcd/command.c.
5920
5921 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5922
5923         * Do not process packet for disconnected socket connection.
5924           Affected file lib/silccore/silcpacket.c.
5925
5926         * Process the DISCONNECT packet through scheduler in the
5927           client library.  Affected file lib/silcclient/client.c.
5928
5929         * Fixed the silc_client_packet_parse to not to increase
5930           the packet sequence number if the conn->sock and the
5931           current socket connection is not same.  This can happen
5932           for example during key agreement when the conn includes
5933           multiple socket connections (listeners).  Affected file
5934           lib/silcclient/client.c.
5935
5936         * The sender of the file transfer request now provides also
5937           the pointer (listener) for the key exchange protocol.  If
5938           the listener cannot be created then it sends empty key
5939           agreement and lets the receiver provide the listener.
5940
5941           Added `local_ip' and `local_port' arguments to the
5942           silc_client_file_send.  If they are provided they are used,
5943           if not then it will attempt to find local IP address, if
5944           not found or bind fails then the remote client will provide
5945           the listener.
5946
5947           Affected files are lib/silcclient/client_ftp.c and
5948           lib/silcclient/silcapi.h.
5949
5950         * Extended the FILE SEND command to support defining the
5951           local IP and port for key exchange listener.  They are
5952           optional.  Affected file irssi/src/silc/core/silc-servers.c.
5953
5954 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5955
5956         * Defined to WHOIS command reply the sending of fingerprint
5957           of the client's public key (if the proof of posession of the
5958           corresponding private key is verified by the server).
5959           Updated to the protocol specification.
5960
5961         * Added support of receiving the client's public key's
5962           fingerprint in command reply in client library.  Affected
5963           file is lib/silcclient/command_reply.c, and
5964           lib/silcclient/idlist.[ch].
5965
5966 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5967
5968         * Do not send over 128 chars long nickname to the server
5969           in NICK command.  Affected file lib/silcclient/command.c.
5970
5971         * Do not send over 256 chars long channel names to the server
5972           in JOIN command.  Affected file lib/silcclient/command.c.
5973
5974 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5975
5976         * Assure that silc_server_close_connection cannot be called
5977           twice for same socket context.  Affected file is
5978           silcd/server.c.
5979
5980 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5981
5982         * Send error message to application if opening file for
5983           writing during file transfer fails.  Affected file is
5984           lib/silcclient/client_ftp.c.
5985
5986           Remove all file transfer sessions for a client that we're
5987           removing from ID cache.
5988
5989           Affected file is lib/silcclient/client_ftp.c.
5990
5991         * Fixed silc_net_addr2bin to return correct address.  Affected
5992           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
5993
5994         * Fixed file transfer session removing on signoff notify.
5995           Affected file irssi/src/silc/core/silc-servers.c.
5996
5997         * Added the SilcClientFileError to be returned in the monitor
5998           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
5999           Affected file lib/silcclient/silcapi.h.
6000
6001 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6002
6003         * Fixed a crash in silc_client_ftp_free_sessions and
6004           silc_client_ftp_session_free_client.  Affected file
6005           lib/silcclient/client_ftp.c.
6006
6007         * Added `disabled' field in the SilcChannelEntry in the server
6008           to indicate if the server entry is disabled.  Affected file
6009           silcd/idlist.h, silcd/command[_reply].c.
6010
6011         * SILC server adds now /var/run/silcd.pid everytime it is
6012           started.  Affected file silcd/silcd.c.
6013
6014         * Added silc_server_packet_send_clients to send a packet to
6015           the provided table of client entries.  Affected file
6016           silcd/packet_send.[ch].
6017
6018         * Fixed a crash in client resolving in client_prvmsg.c in
6019           client library.  Affected file lib/silcclient/client_prvmsg.c.
6020
6021         * Do not actually remove the client directly from ID cache
6022           during SERVER_SIGNOFF, but invalidate it.  This way we
6023           preserve the WHOWAS info for the client.  Affected file
6024           silcd/server_util.c.
6025
6026         * Fixed SERVER_SIGNOFF notify handling in the server.  The
6027           server is now able to process incoming SERVER_SIGNOFF notify
6028           for a server that it doesn't even know about.  It will remove
6029           the clients provided in the notify.  Affected file
6030           silcd/packet_receive.c.
6031
6032         * Check for partial packet in data queue after every packet that
6033           was found from the queue.  Return and wait for more data if
6034           there is partial data in queue.  Affected file is
6035           lib/silccore/silcpacket.c.
6036
6037 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6038
6039         * Added SilcClietFileError enum to indicate error in
6040           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
6041           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
6042           Affected files lib/silcclient/silcapi.h and
6043           lib/silcclient/client_ftp.c.
6044
6045         * Check that newsize in silc_buffer_realloc is larger than
6046           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
6047
6048         * Added better monitor of file transfers.  It now monitors
6049           key agreement protocol during the file transfer too.  Added
6050           error reporting too.  Affected files
6051           irssi/src/silc/core/silc-servers.c,
6052           irssi/src/fe-common/silc/module-formats.[ch].
6053
6054         * Wrote a help file for FILE command.
6055
6056         * Added silc_rng_global_get_byte_fast to get not-so-secure
6057           random data as fast as possible.  Random data is read from
6058           /dev/urandom if available and from the SILC RNG if not
6059           available.  It is used in padding generation.  Affected file
6060           lib/silccrypt/silcrng.[ch].
6061
6062         * All packets in client library are now processed synchronously.
6063           Optimized packet processing a lot.  Affected file
6064           lib/silcclient/client.c.
6065
6066         * All server connection packets are processing synchronously
6067           now in server, to optimize packet processing.  Affected file
6068           silcd/server.c.
6069
6070         * Include files are installed now only in Toolkit distribution
6071           if make install is given.  Affected files: all Makefile.am's.
6072
6073 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6074
6075         * Assure that silc_client_notify_by_server_resolve does not
6076           resolve the client information multiple times.  If it cannot
6077           be found by the first it cannot be found at all.  Affected
6078           file lib/silcclient/client_notify.c.
6079
6080         * Fixed WHOWAS command reply calling.  Affected file
6081           lib/silcclient/command_reply.c.
6082
6083         * Removed all references to silc_idlist_get_client from the
6084           Irssi SILC client since that call is internal call used by
6085           the library.  The Irssi SILC client will use now client
6086           retrieval functions found in silcapi.h.
6087
6088         * Fixed a bug in resolving nickname info before sending
6089           private message.  It used freed memory.  Affected file
6090           irssi/src/silc/core/silc-servers.c.
6091
6092 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6093
6094         * Assure my_channels statistics cannot go negative in server.
6095           Affected files silcd/server.c, silcd/server_util.c.
6096
6097 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6098
6099         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
6100
6101 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6102
6103         * Win32 Toolkit changes.  Affected files
6104           win32/silc.dsw, win32/libsilc/libsilc.def,
6105           win32/libsilcclient/libsilc.def,
6106           lib/silcutil/silcutil.c, and
6107           lib/sftp/sftp_fs_memory.c.
6108
6109 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6110
6111         * Added silc_net_localip to return local host's IP address.
6112           Affected file lib/silcutil/silcnet.[ch].
6113
6114         * If key exchange or rekey protocol is active for a connection
6115           parse all packets syncronously since there might be packets
6116           in packet queue that we are not able to process without first
6117           processing packets before them.  Affected file silcd/server,
6118           lib/silcclient/client.c.
6119
6120         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
6121           whether library should continue processing the packet.
6122           Affected file lib/silccore/silcpacket.h.
6123
6124         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
6125           SilcSFTPMonitorData to SFTP server to monitor various
6126           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
6127           lib/silcsftp/sftp_server.c.
6128
6129         * Added silc_file_size to return file size.  Affected file
6130           lib/silcutil/silcutil.[ch].
6131
6132         * Implemented the file transfer support for the client library.
6133           Added preliminary support for simple client to client one-file
6134           transmission.  Affected file lib/silcclient/client_ftp.c,
6135           lib/silccilent/client.[ch].
6136
6137         * Added new local command FILE to the Irssi SILC Client.
6138           It is used to perform the file transfer.  It has subcommands
6139           SEND, RECEIVE, SHOW and CLOSE.  Affected files
6140           irssi/src/silc/core/client_ops.c,
6141           irssi/src/silc/core/silc-server.[ch].
6142
6143 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6144
6145         * Relay the SILC_PACKET_FTP in the server.  Affected files
6146           silcd/server.c and silcd/packet_receive.c.
6147
6148 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6149
6150         * Renamed silc_file_read and silc_file_write to functions
6151           silc_file_readfile and silc_file_writefile.  Added function
6152           silc_file_open and silc_file_close.  Affected files
6153           lib/silcutil/silcutil.[ch].
6154
6155 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6156
6157         * Resolve the client info when received private message or
6158           channel message for a client which nickname we don't know.
6159           Affected files lib/silcclient/client_prvmsg.c and
6160           lib/silcclient/client_channel.c.
6161
6162         * Do not crash in /KEY if client is not connected.  Affected
6163           file irssi/src/silc/core/silc-channels.c.
6164
6165         * Added SilcClientStatus field to the SilcClientEntry in the
6166           lib/silcclient/idlist.h.
6167
6168           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6169           is incomplete and is being resolved, it won't be resolved
6170           twice.
6171
6172           Make sure also that USERS command reply does not resolve
6173           twice information.  Affected file is
6174           lib/silcclient/command_reply.c.
6175
6176           Make sure that silc_client_get_clients_by_list does not
6177           resolve twice same information.
6178
6179         * Check for valid client->id in the silc_server_free_client_data.
6180           Affected file silcd/server.c.
6181
6182         * Fixed /GETKEY nick@server not to crash if the server entry
6183           is not found.  Affected file lib/silcclient/command.c.
6184
6185         * Fixed the silc_server_check_cmode_rights to check the
6186           requested modes correctly.  Affected file silcd/command.c.
6187
6188 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6189
6190         * Better checks for non-printable chars in nick added.
6191           Affected file silcd/command.c.
6192
6193 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6194
6195         * Call the silc_server_udpate_servers_by_server in the
6196           primary router that comes back online in the backup resuming
6197           protocol.  Otherwise it routes packets wrong.  Affected file
6198           silcd/server_util.[ch], silcd/server_backup.c.
6199
6200 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6201
6202         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6203           lib/silcutil/silcbuffmt.[ch].
6204
6205         * Redefined the SILC packet header to include the padding
6206           length.  Affected file lib/silccore/silcpacket.[ch].
6207
6208         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6209           length for maximum padding up to 128 bytes).  Affected
6210           file lib/silccore/silcpacket.h.
6211
6212         * Removed all backwards support for old 0.5.x MAC thingies.
6213           The SILC packet header change makes it impossible to be
6214           backwards compatible.
6215
6216         * Send the ENDING packet with timeout in the backup resuming
6217           protocol.  This is to assure that all routers has connected
6218           to the primary router.  Affected file silcd/server_backup.c.
6219
6220         * Changed the RNG to take the first IV from random data.  It
6221           used to take it from zero actually.  Changed the RNG also
6222           to use /dev/urandom during session.  /dev/random is used
6223           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6224
6225 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6226
6227         * Changed the SILC packet header to have the first two bytes
6228           (the packet length) encrypted.  Affected files aroung the
6229           code tree, lib/silccore/silcpacket.[ch].  Removed the
6230           SilcPacketCheckDecrypt callback.  It is not needed anymore
6231           since the silc_packet_receive_process will determine now
6232           whether the packet is normal or special.
6233
6234         * Implemented the unidirectional MAC keys.  Affected files
6235           lib/silcske/silcske.c, silcd/protocol.c and
6236           lib/silcclient/protocol.c.
6237
6238         * Implemented the packet sequence number to the MAC computation.
6239           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6240           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6241           lib/silcclient/protocol.c.
6242
6243 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6244
6245         * Allow backup router to announce servers.  All servers
6246           announced by backup router are added to the global list
6247           automatically.  Update hte server's socket to our primary
6248           router also when backup router announces a server.
6249           Affected file silcd/packet_receive.c.
6250
6251         * Do not update the client->router in the function
6252           silc_server_udpate_clients_by_server if the client is on
6253           global list.  We might fail to find any specific server
6254           for locally connected clients and local cell clients.  They
6255           should still use the `from' and not `to' as client->router.
6256           This fixes backup router resuming protocol.  Affected file
6257           silcd/server_util.c.
6258
6259         * Decrease channel statistics count only if the channel
6260           deletion worked.  Affected files are silcd/server.c and
6261           silcd/server_util.c.
6262
6263         * Added silc_server_update_servers_by_server to update origin
6264           of all server entries.  Used during backup router protocol.
6265           Affected files silcd/server_util.[ch], silcd/server.c. and
6266           silcd/backup_router.c.
6267
6268         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6269           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6270           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6271           lib/silccrypt/silchmac.c.
6272
6273 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6274
6275         * Assure that router cannot reroute the same channel message
6276           to the sender.  Affected file silcd/packet_receive.c.
6277
6278 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6279
6280         * Made better checks that the channel message is not sent
6281           to the router it came from.  Affected file is
6282           silcd/packet_send.c.  Fixed memory leak too.
6283
6284         * Announce informations for incoming router connection, but
6285           only after checking if it is replaced by backup router.
6286           Affected file silcd/packet_receive.c.
6287
6288 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6289
6290         * Fixed the backup resuming protocol to work in multiple
6291           router environment.  Affected file silcd/server_backup.c.
6292
6293         * Route packet only to one router in the function
6294           silc_server_packet_send_to_channel.  Affected file is
6295           silcd/packet_send.c.
6296
6297         * Fixed silc_server_send_notify_dest to set the broadcast
6298           flag.  Fixed the silc_server_send_notify_topic to actually
6299           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6300           Affected file silcd/packet_send.c.
6301
6302         * Changed the SFTP Filesystem interface.  Changed the
6303           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6304           the filesystem operation function.  The SilcSFTPFilesystem
6305           is now a context that is allocated by all filesystem allocation
6306           functions and it already includes the operations structure
6307           and filesystem specific context.  It is given as argument
6308           now to the silc_sftp_server_start.  This made the interface
6309           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6310           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6311
6312 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6313
6314         * Changed the backup router adding and getting interfaces
6315           in the server.  The router that will be replaced by the
6316           specified backup router is now sent as argument.  Affected
6317           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6318           silcd/server.c.
6319
6320         * Added silc_net_addr2bin_ne to return the binary form of
6321           the IP address in network byte order.  Affected files
6322           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6323
6324 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6325
6326         * Check for existing server ID in silc_server_new_server
6327           and in silc_server_connect_to_router_final and remove the
6328           old entry if it exists.  Affected file silcd/packet_receive.c,
6329           silcd/server.c.
6330
6331         * Send the channel message always to only one router, either
6332           in upstream or downstream.  Affected file is
6333           silcd/packet_send.c.
6334
6335 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6336
6337         * Wrote the definition of the backup resuming protocol to the
6338           protocol specification.
6339
6340         * Removed one redundant channel key generation from normal
6341           server during joining procedure.  Removed one redundant
6342           channel key sending from server to router during joining
6343           procedure.  Affected file silcd/command.c.
6344
6345         * Made minor bugfixes to the backup router resuming protocol.
6346           Affected file silcd/server_backup.c, server.c.
6347
6348 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6349
6350         * Added --disable-asm configuration option.  Affected files
6351           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6352           by salo.
6353
6354         * Implemented the backup resuming protocol that is used to
6355           resume the primary router position in the cell after the
6356           primary router comes back online.  Affected files
6357           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6358           and silcd/server_util.[ch].
6359
6360 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6361
6362         * Sleep two (2) seconds after sending QUIT command to server.
6363           Affected file lib/silcclient/command.c.
6364
6365         * Assure that if outgoing data buffer is pending do not force
6366           send any data.  Affected file silcd/packet_send.c.
6367
6368         * Assure that if outgoing data buffer is pending do not force
6369           send any data.  Affected file lib/silcclient/client.c.
6370
6371         * Implemented the backup router support when the primary router
6372           goes down.  The servers and routers can now use the backup
6373           router as new primary router without loosing connectivity.
6374
6375 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6376
6377         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6378           in the server to indicate disabled entry.  All data read
6379           from the connection will be ignored and no data is sent
6380           for entry that is disabled.  Affected files are
6381           silcd/idlist.h, silcd/server.c.
6382
6383 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6384
6385         * Created SFTP client and server test programs in the
6386           lib/silcsftp/tests directory.
6387
6388 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6389
6390         * Implemented memory filesystem (virtual filesystem) for
6391           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
6392           sftp_fs_memory.c.
6393
6394 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6395
6396         * Implemented the SFTP (SSH File Transfer Protocol) to the
6397           lib/silcsftp.  It includes SFTP client and SFTP server
6398           implementations.
6399
6400 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6401
6402         * Moved lib/silccore/silcprotocol.[ch] to the
6403           lib/silcutil library.
6404
6405         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
6406           take variable argument list pointer as argument.  Affected
6407           file lib/silcutil/silcbuffmt.[ch].
6408
6409         * Added silc_buffer_set function that is used to set data
6410           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
6411           Affected file lib/silcutil/silcbuffer.h.
6412
6413         * Changed various routines in the core library to use the new
6414           silc_buffer_set instead of allocating new buffer only for
6415           temporary purposes.
6416
6417         * Added 64-bit value formatting and unformatting support to the
6418           silc_buffer_[un]format routines.  Affected file is
6419           lib/silcutil/silcbuffmt.[ch].
6420
6421           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
6422           to includes/bitmove.h.
6423
6424 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6425
6426         * Fixed channel user mode saving in client library.  Affected
6427           file lib/silcclient/command[_reply].c.
6428
6429 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6430
6431         * Defined the file transfer to the SILC Protocol.  Added
6432           new packet type SILC_PACKET_FTP and defined File Transfer
6433           Payload.  The mandatory file transfer protocol is SFTP
6434           (SSH File Transfer Protocol).  Affected file in addition
6435           of the internet draft is lib/silccore/silcpacket.h.
6436
6437         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
6438           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
6439           is used as part of backup router protocol when the primary
6440           router of the cell is back online and wishes to resume
6441           the position as primary router.
6442
6443         * Redefined the MAC generation keys in the protocol.  The
6444           same key is not used anymore in both direction.  Both
6445           direction will now use different keys for sending and
6446           receiving.  This fixes a potential security flaw.  This
6447           change causes incompatibilities in the protocol.
6448
6449         * Redefined also the MAC computation from the packet.
6450           An packet sequence number is now added to the MAC
6451           computation.  This prevents possible replay attacks against
6452           the protocol.  This change too causes incompatibilities
6453           in the protocol.
6454
6455           Added `sequence' field to the SilcPacketContext to hold
6456           the current sequence number for the packet.
6457
6458 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6459
6460         * Added `created' field to the SilcIDListData in the file
6461           silcd/idlist.h to indicate the time when the entry was
6462           created.
6463
6464         * Added `created' field to the SilcChannelEntry too.  Affected
6465           file silcd/idlist.h.
6466
6467         * Added `creation_time' aguments to all the announcement functions
6468           in the server.  If it is provided then only the entries that
6469           was created after the provided time frame are actually
6470           announced.  Affected file silcd/server.[ch].
6471
6472         * The protocol says that the Channel ID's IP address must be
6473           based on the router's IP address.  Added check for this in
6474           the silc_server_new_channel when processing incoming New Channel
6475           Payload.  Affected file silcd/packet_receive.c.
6476
6477         * Print out the correct version with --version in SILC client.
6478           Affected file irssi/src/silc/core/silc-core.c.
6479
6480 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6481
6482         * Fixed WHOWAS command to check for completnes of the client
6483           entry always, not just when the command is coming from client.
6484           Affected file silcd/command.c.
6485
6486         * Added new function silc_server_packet_queue_purge to purge the
6487           outgoing data queue to the network.  After the function returns
6488           it is guaranteed that the outgoing packet queue is empty.
6489           Affected file silcd/packet_send.[ch].
6490
6491         * Purge the outgoing packet queue in the rekey protocol's final
6492           callback to assure that all rekey packets go to the network
6493           before quitting the protocol.  Affected file silcd/server.c.
6494
6495         * Added silc_client_packet_queue_parse as similar function as
6496           in server to the client library.  The affected file is
6497           lib/silcclient/client.c.
6498
6499 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6500
6501         * Splitted silcd/server.c and created silcd/server_util.[ch]
6502           for utility functions.
6503
6504         * Added new socket flag SILC_SF_DISABLED to indicate that the
6505           connection is open but nothing can be sent to or received from
6506           the connection.  Affected file lib/silcutil/silsockconn.[ch].
6507           The checking for disabled socket is checked in the low level
6508           silc_socket_write and silc_socket_read functions.
6509
6510 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6511
6512         * Allow only nicknames and channel names that fits into the
6513           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
6514
6515 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6516
6517         * When processing JOIN command reply in server check that if
6518           the channel exists in our global list we'll move it the local
6519           list.  Affected file silcd/command_reply.c.
6520
6521         * Fixed the check whether client is joined on the channel already
6522           in JOIN command.  Affected file lib/silcclient/command.c.
6523
6524         * Fixed the JOIN command reply to check whether the channel
6525           already exists.  Affected file lib/silcclient/command_reply.c.
6526
6527 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6528
6529         * Added silc_ske_status_string to map the SKE error numbers
6530           to readable strings.  The affected files are
6531           lib/silcske/silcske[_status].[ch].
6532
6533 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6534
6535         * Do not show the private channels on the WHOIS channel list
6536           as it is not allowed by the protocol.  The affected file is
6537           silcd/server.c.
6538
6539 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6540
6541         * Assure that the packet length digged from the actual packet
6542           is something sensible in the silc_packet_decrypt_rest_special
6543           in lib/silccrypt/silcpacket.c.
6544
6545         * Free and NULL the allocated pointer in silc_hmac_alloc if
6546           the HMAC allocation fails.  The affected file is
6547           lib/silccrypt/silchmac.c.
6548
6549         * Print the selected security properties to the log files in
6550           the server.  Affected file silcd/protocol.c.
6551
6552         * Add SKE's reference counter even if calling the completion
6553           callback manually.  Otherwise it goes negative, although it
6554           does not cause any problems.  The affected file is
6555           lib/silcske/silcske.c.
6556
6557         * Remove the client entry with short timeout after giving the
6558           KILL command.  Affected file lib/silcclient/command.c.
6559
6560         * Fixed to send error reply in WHOIS and IDENTIFY commands in
6561           case all found clients are already disconnected (WHOWAS would
6562           found them) in the server.  Affected file silcd/command.c.
6563
6564         * Update the last_receive (time of last data received) to be
6565           updated only when received private or channel message so that
6566           the idle time showed in WHOIS makes more sense.
6567
6568         * Added boolean field `valid' in to the SilcClientEntry in the
6569           client library to indicate whether the entry is valid or not.
6570           This fixes the nickname change bug on channel when changing
6571           the nickname to be same than the old (like nick to Nick) the
6572           nickname formatter doesn't set the new nick anymore to Nick@host.
6573           Affected file lib/silcclient/idlist.[ch].
6574
6575         * Now actually fixed the nickname changing on disconnection.
6576           Added new function silc_change_nick to the Irssi SILC Client.
6577           Affected file irssi/src/silc/core/client_ops.c,
6578           irssi/src/silc/core/silc-nicklist.[ch].
6579
6580 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6581
6582         * Check that the public key exists in the GETKEY command before
6583           trying to encode it.  Affected file silcd/command.c.
6584
6585         * Print some notifications on received public keys with GETKEY
6586           command in the Irssi SILC Client.  Affected files are
6587           irssi/src/fe-common/silc/module-formats.[ch],
6588           irssi/src/silc/core/client_ops.c.
6589
6590         * Use IDENTIFY command to resolve the server information in the
6591           GETKEY command instead of INFO command.  Affected file
6592           lib/silcclient/command.c.
6593
6594         * All command reply functions in the client library now calls
6595           the pending command reply callbacks even if an error has
6596           occurred.  The server has done this a long time and now it was
6597           time to move the client library to this as well.  Now all
6598           errors can be delivered back to the pending command reply
6599           callbacks if necessary.  Affected files are
6600           lib/silcclient/command[_reply].[ch].
6601
6602         * Change the nickname on disconnection back to the username
6603           because in reconnect the server will enforce it to it anyway.
6604           Affected file irssi/src/silc/core/silc-servers.c.
6605
6606         * Fixed a config file parsing bug in the Irssi SILC client.
6607           Affected file irssi/src/silc/core/clientconfig.c.
6608
6609 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6610
6611         * When printing the channel mode on JOIN, verify that the
6612           channel key and channel's HMAC are valid.  Affected file
6613           irssi/src/silc/core/client_ops.c.
6614
6615 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6616
6617         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
6618           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
6619           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
6620
6621         * Removed channel key rekey task deleting from the function
6622           silc_server_save_channel_key.  Affected file silcd/server.c.
6623           Added explicit timeout task context instead that is used to
6624           delete the task if we are registering a new task before the
6625           new task has elapsed.
6626
6627         * When channel key rekey occurs the client library now saves
6628           the old channel key for a short period of time (10 seconds) and
6629           is able to use it in case some is still sending channel
6630           messages encrypted with the old key after the rekey.  Affected
6631           file lib/silcclient/[idlist.h|client_channel.c].
6632
6633 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6634
6635         * Added check to the silc_server_new_id_real to not accept
6636           new ID if it is the sender's own ID.  Affected file is
6637           silcd/packet_receive.c.
6638
6639         * Assure that we do not announce ourself or the one we've
6640           sending our announcements when we're router and are announcing
6641           servers to our primary router.  Affected file silcd/server.c.
6642
6643         * Fixed silc_server_command_identify_check_client to assemble
6644           correct WHOIS packet.  It send corrupted WHOIS packet and
6645           caused problem with router to router connections.  Affected
6646           file silcd/command.c.
6647
6648           Fixed also silc_server_command_whois_check the same way
6649           as for the IDENTIFY command.
6650
6651         * Added new SilcIDListStatus to the server in the SilcIDListData
6652           structure.   The status now includes the current status of
6653           the entry (like registered, resolved etc.).  Affected file
6654           silcd/idlist.[ch].  Defined a bunch of different status types
6655           as well.  This replaced the old boolean registered field as well.
6656
6657           Added resolve_cmd_ident field to the SilcClientEntry structure
6658           too so that if the entry is for example being resolved so
6659           another command may attach to the same pending command reply
6660           without requiring to resolve the same entry again.  This concept
6661           should optimize the WHOIS and the IDENTIFY resolving under
6662           heavy load by taking away unnecessary resolving for entries
6663           that are being resolved already.
6664
6665           Added support for adding multiple pending commands for one
6666           command idenfier.  Affected file silcd/command[_reply].[ch].
6667
6668         * Fixed WHOIS and IDENTIFY save to remove the cache entry
6669           before deleting the data.  Otherwise the hash table will have
6670           freed data in comparison functions.  Affected file is
6671           silcd/command_reply.c.
6672
6673         * Fixed silc_idlist_replace_client_id to add the new entry to
6674           the cache with NULL nickname.  Otherwise there will be invalid
6675           memory as the nickname after the nickname is freed.  Affected
6676           file silcd/packet_receive.c.
6677
6678         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
6679           saved into wrong slots because the previous number of entries
6680           was not taken into account.  Affected file silcd/idlist.c.
6681           Fixed same thing in silc_idlist_get_clients_by_nickname too.
6682
6683         * If we are router and we receive JOIN notify to a channel that
6684           does not have any users then notified client is marked as the
6685           channel founder, as it is it.  The affected file is
6686           silcd/packet_receive.c
6687
6688         * Added to the extended hash table API's table_del_*ext functions
6689           the destructor as argument too, so that the caller can decide
6690           which destructor to use or whether to use destructor at all.
6691           Affected file lib/silcutil/silchashtable.[ch].
6692
6693         * Fixed ID Cache purging.  It actually deleted the entries from
6694           the hash table after the data was freed.  The hash table ended
6695           up comparing freed memory.  The affected file is
6696           lib/silccore/silcidcache.c.
6697
6698 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6699
6700         * Fixed Irssi SILC client's KILL command's HELP syntax.
6701
6702         * The USERS command now resolves the detailed user information
6703           if the userinfo field is missing.  Affected file is
6704           lib/silcclient/command_reply.c.
6705
6706         * Do not print error in silc_file_read if the read file does
6707           not exist.  Just silently return NULL.  Affected file is
6708           lib/silcutil/silcutil.c.
6709
6710         * Fixed the silc_log_output to not wine about NULL filename
6711           and to not create some bogus " " filename.  Affected file is
6712           lib/silcutil/silclog.c.
6713
6714 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6715
6716         * Fixed various printing bugs on the user interface in the
6717           Irssi SILC Client.  Minor changes that were forgotten from
6718           the release.
6719
6720 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6721
6722         * Fixed the configure.in.pre and the compilation and distribution
6723           environment to support the new autoconf 2.52.  That version is
6724           now required to compile the CVS trunk.
6725
6726 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6727
6728         * Renamed function silc_parse_nickname to silc_parse_userfqdn
6729           to generally parse user@fqdn format strings.  Affected file
6730           lib/silcutil/silcutil.c.
6731
6732         * Added nickname_format and nickname_force_format fields to the
6733           SilcClientParams structure.  The first one defines the format
6734           for the nicknames that the library will enforce if the receives
6735           multiple same nicknames.  The second one is boolean value and
6736           can be used to force the library to always enforce the format
6737           to the nicknames regardles whether there are multiple nicknames
6738           or not.  This configurable formatting was employed to flexibly
6739           support accessing multiple nicknames from the user interface.
6740           The userinterface can now set the nicknames to what ever format
6741           they prefer.  Affected file lib/silcclient/silcapi.h.
6742
6743           Added function silc_client_nickname_format to the file
6744           lib/silcclient/idlist.c.  It performs the nickname formatting.
6745
6746           Added new field `hostname´ to the SilcClientEntry context.
6747           It holds the hostname of the client.  Affected file is
6748           lib/silcclient/idlist.h.
6749
6750         * Irssi SILC Client sets the nicknames in nick@hostn format.
6751           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
6752           irssi/src/silc/core/silc-core.c.
6753
6754           The WHOIS printing now also shows both the real nickname and
6755           the formatted nickname so that user knows how to access the
6756           user if there are multiple same nicknames cached.  Affected
6757           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
6758           printing formatting too to take the hostname now as a separate
6759           argument.  The Affected file is
6760           irssi/src/fe-common/silc/modules-formats.[ch].
6761
6762         * Changed the silc_client_get_clients_local to accept the formatted
6763           nickname as argument.  It accepts the real nickname too but the
6764           formatted nickname can be used to find the true entry from
6765           multiple entries.  Affected file lib/silcclient/silcapi.h and
6766           lib/silcclient/idlist.c.
6767
6768         * Added nickname_format_parse field to the SilcClientParams.
6769           It is a callback function provided by the application to parse
6770           the nickname out of the formatted nickname string. The library
6771           calls it to get the nickname from the formatted string. Since
6772           the application generally knows better the format of the nickname
6773           string it parses it instead of the library, even though library
6774           encodes the formatted string.  If the callback function is not
6775           provided then the library will use the string as is.  The
6776           affected file is lib/silcclient/silcapi.h.
6777
6778         * All the nickname strings passed to the client library in
6779           commands are now expected to be formatted nickname strings.
6780           If the command does not support the formatted nickname string
6781           it will assume that the sent string is the actual nickname.
6782           Affected file lib/silcclient/command.c.
6783
6784 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6785
6786         * Added public key authentication support to OPER and SILCOPER
6787           commands in the client library.  Affected file is
6788           lib/silcclient/command.c.
6789
6790 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6791
6792         * Changed the get_auth_methdod client operation to be asynchronous.
6793           It can be async if the application resolves the authentication
6794           method from the server during the negotiation.  Added new
6795           SilcGetAuthMeth completion callback that the application will
6796           call after resolving the authentication method.
6797
6798           Added function silc_client_request_authentication_method that
6799           the application can use to resolve the authentication method
6800           from the server.  Added also SilcConnectionAuthRequest callback
6801           that the library will call after the server has replied.  The
6802           application can call this function if it does not know the
6803           current authentication method.
6804
6805           Affected files are lib/silcclient/client.c and
6806           lib/silcclient/silcapi.h.
6807
6808         * The Irssi SILC client now automatically resolves the authentication
6809           method incase any configuration information is not present (and
6810           currently there never is).  The affected file is
6811           irssi/src/silc/core/client_ops.c.
6812
6813         * Fixed public key authentication from the client library.
6814           Affected file lib/silcclient/protocol.c.  Changed also the
6815           protocol specification about the public key authentication in
6816           the connection authentication protocol.  The actual data to be
6817           signed is now computed with a hash function before signing.
6818
6819         * Fixed the public key authentication from the server as well.
6820           Affected file silcd/protocol.c.
6821
6822         * Removed the mlock()'s from the memory allocation routines.
6823           Affected file lib/silcutil/silcmemory.c.  The ./configure does
6824           not check anymore for the mlock().  Affected file is
6825           configure.in.pre.
6826
6827         * Fixed USERS command in server to allow the execution of the
6828           command for private and secret channels if the client sending
6829           the command is on the channel.  Affected file silcd/command.c.
6830
6831         * Fixed silc_client_get_clients_local to return the clients
6832           count correctly.  It could return wrong value.  Affected file
6833           lib/silcclient/idlist.c.
6834
6835 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6836
6837         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
6838           types.  The assembler optimizations seemed not to like 64-bit
6839           data types.  The assmebler optimizations thus are now enabled
6840           also for BSD systems as opposed to only enable them for Linux.
6841
6842         * Do not check for threads at all on BSD systems.  Affected
6843           file configure.in.pre.
6844
6845         * Removed -n and -h options from the Irssi SILC Client since
6846           they are not used in silc.
6847
6848         * Fixed the prime generation to assure that the first digit
6849           of the generated random number is not zero since our conversion
6850           routines does not like number strings that starts with zero
6851           digit.  If zero digit is seen the random number is regenerated.
6852           This caused some corrupted RSA keys when the zero first digit
6853           was met.  Affected file lib/silcmath/silcprimegen.c.
6854
6855 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6856
6857         * Fixed WIN32 configuration in the ./configure script.
6858           Fixed to include xti.h on environments that has it.
6859           Patches by Carsten Ilchmann and andrew.
6860
6861 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6862
6863         * Changed the silc_id_create_client_id to be collision
6864           resistant.  It is now assured that there cannot be created
6865           two same client ID's.  I suspect that some weird bugs in
6866           the server were actually caused by duplicate Client IDs.
6867           Affected file silcd/serverid.[ch].  A router receiving
6868           new ID now also assures and informs the sending server
6869           if the ID caused collision.
6870
6871         * Changed the silc_id_create_channel_id to also assure that
6872           there are no collisions.
6873
6874 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6875
6876         * Statement about ignoring the Mutual Authentication flag when
6877           performing rekey with PFS was a bit misleading.  It is ignored
6878           if it was set in the initial negotiation, it cannot be even
6879           set in the rekey.  Fixed in the ke-auth draft.  Started the
6880           new versions of the protocol drafts in the doc/.
6881
6882 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6883
6884         * Fixed a bug in silc_client_command_identify_save when saving
6885           new channel information.  The channel name was no duplicated
6886           and caused crash on exit.  Affected file is
6887           lib/silcclient/command_reply.c.
6888
6889 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6890
6891         * Fixed the getkey command handling in the server.  Send just
6892           empty OK reply to the sender if the key could not be fetched
6893           (but everything else was ok, like the key just was not available).
6894           Changed the public key parameter to optional in the protocol
6895           specs so that empty OK reply can be sent.  Affected file
6896           silcd/command.c.
6897
6898           Added a message to Irssi SILC client to tell to user if the
6899           server did not return a public key.
6900
6901 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6902
6903         * Fixed a channel key regeneration bug.  It registered new
6904           timeout tasks exponentially until all system resources were
6905           used.  Affected file silcd/server.c.
6906
6907 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6908
6909         * Added the SILC Document generator to the scripts/silcdoc.
6910           It can be used to generate the Toolkit Reference Manual out
6911           of the source tree.  Internally it will also use the RoboDoc
6912           generator now imported in util/robodoc.
6913
6914 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6915
6916         * Added couple of return's in rekey protocol if error orccurred
6917           during the protocol.  The execution must be terminated.
6918           Affected file silcd/protocol.c.  Also, terminate the protocol
6919           always with timeout.
6920
6921 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6922
6923         * The client's Client ID was created initally from the wrong
6924           nickname (it could have been in format nick@host) in the
6925           silc_server_new_client.  Affected file silcd/packet_receive.c
6926
6927 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6928
6929         * Added some SILC_LOG_ERROR's to various error conditions
6930           if client could not be added to ID cache.  Affected files
6931           silcd/packet_receive.c and silcd/server.c.
6932
6933         * When client's sock->user_data is freed, NULL also the
6934           client->router and client->connection pointers.  Added check
6935           for these pointers being NULL to various places around the
6936           code.  Affected file silcd/server.c.
6937
6938         * Added client->data.registered == TRUE checks to various
6939           places around the code to assure that unregistered client's
6940           are not handled when it is not allowed.  Affected file
6941           silcd/server.c.
6942
6943         * Added `bool registered' fields to all
6944           silc_idlist_[server|client]_get_* routines to indicate whether
6945           the fetched client needs to be registered or not.  Affected
6946           file silcd/idlist.[ch].
6947
6948         * Add your own entry as registered to the ID cache in the
6949           server.  Affected file server.c.
6950
6951         * Fixed a bug in silc_server_new_server.  The SilcServer was
6952           set as the new server's context instead of SilcServerEntry.
6953           This naturally caused some weird bugs.
6954
6955         * Added "updated" field the SilcChannelEntry which indicates
6956           the time since the channel entry was last accessed.  This
6957           can be used to determine whether it is necessary to
6958           announce the channel after backup resuming protocol.
6959           Affected files silcd/idlist.[ch].
6960
6961 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6962
6963         * Do not delete the channel rekey task when adding it
6964           for in silc_server_create_channel_key.
6965
6966         * Changed the silc_server_create_channel_key to return
6967           TRUE or FALSE to indicate the success of the channel key
6968           creation.
6969
6970 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6971
6972         * Fixed MSVC++ project files and added missing files to
6973           Makefiles under win32/.
6974
6975 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6976
6977         * Do not add TCP_NODELAY flag if the operating system
6978           does not have it defined.  Affected files are
6979           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6980
6981         * Fixed buffer overflow from Irssi SILC Client.  Affected
6982           file irssi/src/fe-common/core/themes.c.
6983
6984         * Fixed double free in client library in the file
6985           lib/silcclient/client.c when disconnecting from server.
6986
6987         * Applied double free patch from cras to Irssi SILC client.
6988           Affected files irssi/src/core/[modules/expandos].c
6989
6990         * Fixed the disconnection handling to Irssi SILC Client.
6991           The application must call silc_client_close_connection
6992           in ops->connect client operation in case of failure of
6993           the connection.  Affected file is
6994           irssi/src/silc/core/client_ops.c.
6995
6996         * Do not set sock->protocol to NULL in the function
6997           silc_client_close_connection after executing the protocol's
6998           final callback since the sock might not be valid anymore.
6999           Affected file lib/silcclient/client.c.
7000
7001 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7002
7003         * Do not enable SILC_THREADS if the linking with libpthread
7004           did not happen.  Affected file configure.in.pre.
7005
7006         * Added notion to protocol specification that server must
7007           verify the sent authentication payload with CMODE when
7008           setting the channel founder key.  Implemented it to the
7009           server.  Affected file silcd/command.c.
7010
7011 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7012
7013         * Added _EXTRA_DIST SILC distribution variable to the
7014           distributions file.  It is used to conditionally add extra
7015           files or directories to the specific distribution.  Affected
7016           files ./prepare, Makefile.am.pre and distributions.
7017
7018           Removed the `_' from the start of the distribution names.
7019           It is redundant.
7020
7021         * Added README.WIN32 for instructions to compile the Toolkit
7022           under WIN32.
7023
7024 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7025
7026         * Fixed a double free in disconnection in the server.  Affected
7027           file is silcd/server.c.
7028
7029         * Fixed the lib/silcske/groups.c to work now also with GMP
7030           MP library.  The string conversion did not work when using
7031           specific base and the base is indicated in the string as well.
7032
7033         * Created win32/ directory which now includes MSVC++ specific
7034           stuff so that toolkit (DLLs) may be compiled with MSVC++.
7035           It will appear only in the toolkit distribution
7036
7037 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7038
7039         * Changed the key material distribution function in case when
7040           the hash output is too short.  The data is now concatenated
7041           a bit differently than it used to.  Made the change to the
7042           SKE protocol specification.
7043
7044         * Added better GMP detection to configure.in.pre.  A patch
7045           by salo.
7046
7047 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7048
7049         * Fixed a minor bug in SKE that might cause some problem on
7050           some platforms.  Affected file lib/silcske/silcske.c.
7051
7052         * Added the cookie checking for initiator in the SKE.  It checks
7053           that the responder returns the sent cookie unmodified.  The
7054           affected file is lib/silcske/silcske.c.  Added new SKE
7055           error type INVALID_COOKIE that can be sent during the
7056           negotiation.  Fixed some memory leaks as well.
7057
7058         * Added the "invalid cookie" error message to Irssi SILC client's
7059           message formats.
7060
7061 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7062
7063         * Added `task_max' field to the SilcClientParams to indicate
7064           the maximum tasks the scheduler can handle.  If set to zero,
7065           default values are used.  Affected file lib/silcclient/silcapi.h.
7066
7067         * Fixed memory leaks in silc_client_close_connection.  Affected
7068           file lib/silcclient/client.c.
7069
7070         * Added silc_client_del_client_entry to client library to free
7071           all memory of given client entry.  Affected file is
7072           lib/silcclient/idlist.[ch].
7073
7074         * Added new functions silc_client_del_channel and
7075           silc_client_del_server to delete channel and server entries.
7076           Affected file lib/silcclient/[silcapi.h/idlist.c].
7077
7078         * Removed silc_client_del_client_by_id from silcapi.h.
7079
7080         * Fixed the INFO command to return the server's own info
7081           correctly when querying by Server ID.  Affected file is
7082           silcd/command.c.
7083
7084 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7085
7086         * Removed the non-blocking settings in WIN32 code in the
7087           silc_sock_[read/write] and added SleepEx instead.  Affected
7088           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
7089           of input data is now checked with FIONREAD and ioctlsocket.
7090
7091 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7092
7093         * Call silc_schedule_task_del_by_context in the
7094           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
7095           Affected file lib/silccore/silcprotocol.c.
7096
7097         * Call silc_protocol_cancel for active protocols in the
7098           silc_server_close_connection if the funtion
7099           silc_server_free_sock_user_data has not been called.
7100           Affected file silcd/server.c.
7101
7102         * Generic tasks cannot be deleted using the del_by_fd
7103           task deleting function since generic tasks does not match
7104           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
7105
7106         * Added a notion to SILCOPER help file that the SILCOPER works
7107           only on router server, not on normal server.
7108
7109 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7110
7111         * Added for WIN32 support for the new scheduler as well.
7112           Affected file lib/silcutil/win32/silcwin32schedule.c.
7113
7114         * Fixed the SHA1 implementation to work on various platforms.
7115
7116 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7117
7118         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
7119           API.  It is part of the scheduler now.  Everything else is
7120           as previously but some functions has changed their names.
7121           Checkout the lib/silcutil/silcschedule.h for the interface.
7122           Updated all applications to use the new interface.  Affected
7123           files are lib/silcutil/silcschedule.[ch].
7124
7125 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7126
7127         * Found a bug in the SKE implementation.  The HASH value,
7128           specified by the protocol, was not computed correctly.  The
7129           public key of the responder was not added to the computation
7130           even though it is mandatory.  Affected file lib/silcske/silcske.c.
7131           This unfortunately causes incompatibilities with older
7132           clients and servers.
7133
7134         * Added WIN32 specific network init and uninit functions:
7135           silc_net_win32_init and silc_net_win32_uninit to init and uninit
7136           the Winsock2.  Affected file lib/silcutil/silcnet.h and
7137           lib/silcutil/win32/silcwin32net.c.
7138
7139         * Set the socket always to nonblocking mode on WIN32 after
7140           reading data or writing data.  Affected file is
7141           lib/silcutil/win32/silcwin32sockconn.c.
7142
7143 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7144
7145         * Fixed various compilation problems under WIN32.  Affected
7146           files lib/silcutil/win32/silcwin32thread.c and
7147           lib/silcutil/win32/silcwin32schedule.c.
7148
7149         * Removed all _internal.h #includes from public header
7150           files.  Internal headers must never be included from
7151           public headers.
7152
7153           Removed also the lib/silcske/payload_internal.h file.
7154
7155         * All include files that may be needed (public and some others
7156           included by the public headers) by application developers are
7157           now copied to the ./includes directory.  It does not copy any
7158           internal headers.  Affected file Makefile.defines.pre and all
7159           Makefile.am's under lib/ and subdirs.
7160
7161 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7162
7163         * Do not change the ~/.silc directory's permissions automatically.
7164           Affected file irssi/src/silc/core/clientutil.c.
7165
7166 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7167
7168         * Do not cancel the protocol in silc_server_close_connection
7169           it might cause recursion.  Now cancelled in the function
7170           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7171
7172         * Fixed the silc_server_remove_clients_by_server to regenerate
7173           the channel keys correctly finally.  Added also new function
7174           silc_server_remove_clients_channels to actually do it.
7175           Affected file silcd/server.c.
7176
7177         * Fixed the silc_server_new_channel to not crash by giving
7178           wrong router to the new channel.  Affected file is
7179           silcd/packet_receive.c.
7180
7181 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7182
7183         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7184           which is given as argument to the silc_client_alloc now.
7185           It can be used to configure the client and set various parameters
7186           that affect the function of the client.
7187
7188         * The USERS command in server did not check whether the channel
7189           is private or secret.  Affected file silcd/command.c.
7190
7191         * Added new argument to the USERS command in protocol specification.
7192           The USERS command now can take the channel name as argument
7193           as well.  Added support for this in client and server and
7194           updated the protocol specs.
7195
7196         * Completed the GETKEY command in client. It can be now used
7197           to fetch also servers public key not only some clients.
7198           Affected files lib/silcclient/command[_reply].c.
7199
7200         * Added silc_client_get_server to return server entry by the
7201           server name.  Affected files lib/silcclient/silcapi.h and
7202           idlist.c.
7203
7204         * Redefined the IDENTIFY command in protocol specification to be
7205           more generic.  It now can be used to query information about
7206           any entity in the SILC Network, including clients, servers and
7207           channels.  The query may be based either the entity's name
7208           or the ID.  Added support for this in both client and server.
7209
7210           Affected files silcd/command.c and lib/silcclient/command.c
7211           and command_reply.c.
7212
7213         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7214           the _from_client and _from_server functions.  Affected file
7215           silcd/command.c.
7216
7217         * Added silc_client_get_channel_by_id_resolve to the file
7218           lib/silcclient/silcapi.h to resolve channel information by
7219           its ID.  Added also silc_client_get_channel_by_id that
7220           does not resolve it from the server.
7221
7222 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7223
7224         * Added SilcServerEntry context into the client library
7225           to represent one server.  The INFO command now allocates
7226           these to save the resolved server info.  For now on the
7227           client library will also keep information about servers,
7228           connected and resolved with INFO.
7229
7230           The INFO command now allocates the SilcServerEntry context
7231           and saves the server info there.  The COMMAND_REPLY in
7232           the INFO now returns the parameters to application in
7233           same order as defined in the protocol specification.
7234
7235           The entries are cached in the client->server_cache.
7236
7237         * The INFO command is now issued after received the Client ID
7238           from the server.  Affected file lib/silcclient/client.c.
7239
7240         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7241           to the application as the mode changer might be server.
7242           It is guaranteed that NULL is not returned anymore to the
7243           application.  Affected file lib/silcclient/client_notify.c.
7244
7245           The ID Type is now also passed to the application so that
7246           it can check whether the returned entry is SilcClientEntry
7247           or SilcServerEntry.
7248
7249           Added new function silc_client_get_server_by_id to return
7250           the server entry by ID.  Affected files are the
7251           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7252
7253         * Do not create the channel in the Irssi SILC Client when issuing
7254           the JOIN command but when received the sucessful JOIN command
7255           reply.  Otherwise the channel might get created even though we
7256           could not join it.  The Affected file is
7257           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7258
7259         * Fixed a channel joining bug in router.  The router must also
7260           check the channel modes, invite and ban lists etc. when serving
7261           the JOIN command sent by normal server.  Affected file is
7262           silcd/command.c.  The router now resolves the client's
7263           information from the server who sent the JOIN command if it
7264           does not know it, and processes the JOIN command only after
7265           that.
7266
7267         * Changed the SilcCommandCb to take new argument; void *context2.
7268           Affected file lib/silccore/silccommand.h
7269
7270           The second argument in the command callbacks in the server now
7271           includes the SilcServerCommandReplyContext if the command was
7272           called as pending command callback from the command reply.
7273           Otherwise it is NULL. When called as pending the status of the
7274           command reply will be checked and if it was erronous the
7275           error will be sent to the original sender of the command.
7276           This way the client always receives the error messages even
7277           though the server was actually the one who received the error
7278           when it resent the command to router, for example.  Affected
7279           files silcd/command[_reply].[ch].
7280
7281         * Fixed sending WHOWAS command's error message to client if
7282           the requested client could not be found.  It was missing.
7283           silcd/command.c.
7284
7285         * Changed the CMODE and CUMODE commands reply arguments in the
7286           protocol specification.  The Channel ID is now sent in both
7287           of the commands to identify the channel.  Implemented this
7288           new feature to the client and server.  Affected files
7289           lib/silcclient/command_reply.c and silcd/command.c.
7290
7291         * Made better checks for invite and ban lists in the JOIN
7292           command in server.  Affected file silcd/command.c.
7293
7294 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7295
7296         * The server now performs the incoming host IP/DNS lookup
7297           using the silc_socket_host_lookup and thus does not block
7298           the server anymore.  Affected file silcd/server.c.
7299
7300         * Completed the multi-thread support for SILC Scheduler in
7301           the lib/silcutil/silcschedule.c.
7302
7303         * Fixed the configure.in.pre to detect the pthread correctly
7304           on various systems.
7305
7306         * Fixed a deadlock in silc_task_queue_wakeup in the file
7307           lib/silcutil/silctask.c.
7308
7309 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7310
7311         * Added new function silc_schedule_wakeup that is used in
7312           multi-threaded environment to wakeup the main thread's
7313           schduler. It needs to be used when a thread adds a new task
7314           or removes a task from task queues. After waking up, the
7315           scheduler will detect the task queue changes. If threads
7316           support is not compiled in this function has no effect.
7317           Implemented the wakeup mechanism to both Unix and WIN32
7318           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7319           lib/silcutil/unix/silcunixschedule.c and the
7320           lib/silcutil/win32/silcwin32schedule.c.
7321
7322         * Added new function silc_task_queue_wakeup to wakeup the
7323           scheduler by the specified task queue.  Affected file
7324           lib/silcutil/silctask.[ch].
7325
7326         * The silc_socket_host_lookup_start now wakes up the scheduler
7327           after adding the timeout task.  Affected file is
7328           lib/silcutil/silcsockconn.c.
7329
7330         * The silc_socket_host_lookup is synchronous now if the threads
7331           support is not compiled in.  However, the callback is still
7332           called asyncronously through the scheduler, anyway.  Affected
7333           file lib/silcutil/silcsockconn.c.
7334
7335 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7336
7337         * Added new function silc_socket_host_lookup to perform
7338           asynchronous IP and FQDN lookups for the socket connection.
7339           Affected files lib/silcutil/silcsockconn.[ch].
7340
7341 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7342
7343         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7344           that may or may not compile the mutex support in.
7345
7346           Changed the silc_mutex_alloc interface. It allocates the
7347           mutex now to the sent pointer and returns TRUE or FALSE.
7348
7349           Affected file lib/silcutil/silcmutex.h.
7350
7351         * Wrote the SILC Task Queue interface to support multi-threads.
7352           Affected file lib/silcutil/silctask.[ch].
7353
7354         * Wrote the SILC Scheduler to support multi-threads.  Affected
7355           file lib/silcutil/silcschedule.c.
7356
7357 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7358
7359         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7360           in lib/silcutil/win32/.
7361
7362 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7363
7364         * Defined SILC Mutex API and SILC Thread API and implemented
7365           them for Unix.  Affected files are
7366           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7367           lib/silcutil/unix/silcunixmutex.c and
7368           lib/silcutil/unix/silcunixthread.c.
7369
7370 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7371
7372         * Fixed the silc_server_remove_clients_by_server's channel
7373           key re-generation.  The hash table handling was incorrect
7374           and would not work with many channels.  Affected file is
7375           silcd/server.c.
7376
7377         * Fixed some memory leaks around the server code.
7378
7379         * Rewrote the silc_server_get_users_on_channel to support IPv6
7380           based Client ID's.  Affected file silcd/server.c.
7381
7382         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7383           specification.  However, a separate document must be written
7384           to define the detailed signing procedure and the payload
7385           associated with the flag.  Defined the flag to the
7386           lib/silccore/silcchannel.h as well.
7387
7388 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7389
7390         * Changed the dynamic tables to static size tables in the
7391           lib/silccrypt/silchmac.c.
7392
7393         * Removed GCC dependencies from the code.  A patch by cras.
7394
7395 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7396
7397         * Do not show the error "Error receiving packet bla bla"
7398           in server if it really was not an error (-2 means that reading
7399           is pending).  Affected file silcd/server.c.
7400
7401 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7402
7403         * Fixed a possible crash in silc_server_remove_clients_by_server
7404           in silcd/server.c.  Fixed there also some memory leaks.
7405
7406         * Fixed the silc_idlist_replace_client_id.  It could replace
7407           wrong key in the hash table.  Affected file silcd/idlist.c.
7408
7409         * Do not check whether there are global users on the channel
7410           if the channel->global_users is FALSE.  Affected functions
7411           silc_server_remove_from_one_channel and
7412           silc_server_remove_from_channels in silcd/server.c.  Also,
7413           do not check if the removed client is local as we can be
7414           sure that global client was not removed from the channel
7415           and checking for global users is not needed.
7416
7417         * The silc_server_remove_clients_by_server now re-generates
7418           the channel keys correctly for those channels that had
7419           clients removed from them.  Affected file silcd/server.c.
7420
7421 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7422
7423         * Found the reason of random crashes in the server.  We weren't
7424           ignoring the SIGPIPE signal (which can be sent in write())
7425           and it crashed the server.  Affected file silcd/silcd.c.
7426
7427 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7428
7429         * Assure that sock->user_data is not NULL in the function
7430           silc_server_packet_send in silcd/packet_send.c.
7431
7432         * Disconnect the remote connection if it could not be added
7433           to any ID lists in the server.  The affected file is
7434           silcd/server.c.
7435
7436         * Check in silc_server_packet_send[_real/dest] that the
7437           socket is not disconnecting and ignore the data if it is.
7438           Affected file silcd/packet_send.c.
7439
7440         * Define inline to __inline on native WIN32 compilation.
7441           Affected file includes/silcwin32.h.
7442
7443         * Added some explicit type casts for inline code since MSVC
7444           require them.  Affected files lib/silcutil/silcbuffer.h,
7445           lib/trq/silcdlist.h and lib/trq/silclist.h.
7446
7447         * Print warning in log files from now on if the packet
7448           decryption fails.  Affected file silcd/server.c.
7449
7450 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7451
7452         * Changed the `say' client operation's interface to accept
7453           new `type' argument to indicate the type of the message sent
7454           by the library.  The application may filter the library's
7455           messages according the type.  The affected file is the
7456           lib/silcclient/silcapi.h.
7457
7458         * Added two new functions to lib/silcclient/silcapi.h:
7459           silc_client_del_client and silc_client_del_client_by_id.
7460           Affected file lib/silcclient/idlist.c.
7461
7462         * Moved the clientincludes.h from includes/ to silc/ and
7463           serverincludes.h from includes/ to silcd/.
7464
7465         * The modes for the CMODE and CUMODE are now passed as
7466           uint32 for application with COMMAND_REPLY.  The affected
7467           file is lib/silcclient/command_reply.c.
7468
7469 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7470
7471         * /WHOIS without arguments shows client's own information.
7472           Affected file lib/silcclient/command.c.
7473
7474         * Changed PING to not accept any arguments.  The specs
7475           says that client can ping only the connected server so
7476           requiring an argument is not needed.  Affected file is
7477           lib/silcclient/command.c.
7478
7479 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7480
7481         * Fixed a fatal bug in private message sending and reception
7482           encryption and decryption when using private message keys.
7483           The implementation was incorrect and did not follow the
7484           specification.  It causd that some of the message were
7485           lost since it did not use the sending and receiving keys
7486           as the protocol suggests.  This has been fixed and will cause
7487           incompatibilities with older clients when sending private
7488           message encrypted with private message keys.  Affected files
7489           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
7490           and various other in Irssi SILC Client.
7491
7492           Added `responder' boolean argument to the functions
7493           silc_client_add_private_message_key[_ske] to indicate when
7494           the key is added as responder or initiator of the key
7495           negotiation.
7496
7497 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7498
7499         * Removed the silc_ske_check_version function and created
7500           a SilcSKECheckVersion callback.  Added also a function
7501           silc_ske_set_callbacks that is now used to set all SKE
7502           callbacks.  The callback functions are not given to
7503           the SKE functions anymore, but this function is used to
7504           set the callbacks.
7505
7506         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
7507
7508         * Added `silc_version' argument to the silc_client_alloc
7509           to define the version of the application for the library.
7510           The library will use the version string to compare it
7511           against the remote host's (usually a server) version
7512           string.  Affected file lib/silcclient/silcapi.h
7513
7514         * Added the KE protocol context to Key Agreement context
7515           in client library so that we can abort the SKE if it
7516           is in process when we get timeout.  Affected file is
7517           lib/silcclient/client_keyagr.c.
7518
7519         * Do not resolve the client ID forever if it returns in the
7520           first time that such client does not exist.  This was done
7521           for example with private message.  Affected file is
7522           lib/silcclient/client_prvmsg.c.
7523
7524 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7525
7526         * Do not add regex.h for WIN32.  The affected file
7527           includes/silcincludes.h.
7528
7529         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
7530           not work yet 100%.  It generates the DLL's automatically
7531           when compiling with --with-win32 under cygwin.
7532
7533 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7534
7535         * lib/contrib/regex.c is not compiled on WIN32.
7536
7537         * Added silc_net_get_socket_opt function to the
7538           lib/silcutil/silcnet.h.
7539
7540         * Added includes/silcwin32.h for WIN32 specific includes
7541           and definitions.
7542
7543         * Do not use ptime structure or any of the posix process
7544           functions on WIN32 in lib/silccrypt/silrng.c.
7545
7546         * Added silc_gettimeofday to provide generic function
7547           for struct timeval on all platforms.  Added the function
7548           to lib/silcutil/silcutil.h.
7549
7550 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7551
7552         * Moved the lib/silccore/silcsockconn.[ch] to the utility
7553           library as they clearly belong there.  As a plus side we
7554           can make the actual socket connection routines platform
7555           specific.
7556
7557           Added also new generic function silc_socket_read and
7558           silc_socket_write (that used to be silc_packet_[read/write].
7559           The implementation of these are platform specific.
7560
7561         * Added WIN32 specific routines of silc_socket_[read/write]
7562           to lib/silcutil/win32/silcwin32sockconn.c.
7563
7564 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7565
7566         * Added preliminary support for native WIN32 compilation under
7567           cygwin (using the -mno-cygwin option for GCC) to the
7568           ./configure.in.pre.  The --with-win32 now prepares the
7569           compilation for native WIN32.
7570
7571         * Rewrote the SILC Scheduler interface in the file
7572           lib/silcutil/silcschedule.h.  The scheduler is now context
7573           based and does not have anymore any global static scheduler.
7574           Moved the Unix scheduler to the lib/silcutil/unix/ directory
7575           and created lib/silcutil/win32 directory for WIN32 based
7576           scheduler.
7577
7578         * Added Unix specific network routines to the
7579           lib/silcutil/unix/silcunixnet.c and the old
7580           lib/silcutil/silcnet.c includes now only generic routines.
7581
7582           Added WIN32 specific network routines to the
7583           lib/silcutil/win32/silcwin32net.c.
7584
7585         * Added Unix specific utility functions from the
7586           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
7587
7588         * Added WIN32 SILC Scheduler to the file
7589           lib/silcutil/win32/silcwin32schedule.c. The code is of course
7590           untested.
7591
7592 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7593
7594         * Do not handle JOIN notify in the server if the target client
7595           is not registered (idata->registered == FALSE).  The affected
7596           file is silcd/packet_receive.c.
7597
7598         * Update the nickrec->founder in event_cumode in the Irssi SILC
7599           client.  Affected file irssi/src/silc/core/silc-channels.c.
7600
7601         * Fixed the CUMODE_CHANGE notify handling in the server when
7602           server and router are announcing their clients on channels.
7603           Now the mode changes are saved and notified correctly.  The
7604           affected file is /silcd/packet_receive.c.
7605
7606         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
7607           They really did not replace the cache entry in the ID Cache.
7608           Now they do that.  Affected file silcd/idlist.c.
7609
7610         * Fixed the KICK notify handling in the Irssi SILC client to
7611           update the channel records so that the kicked client does not
7612           appear to be on the channel.  The affected file is
7613           irssi/src/silc/core/silc-channels.c.
7614
7615         * Always update the conn->current_channel when executing command
7616           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
7617
7618         * Fixed the KILL notify handling in Irssi SILC client to remove
7619           the killed client on all channels.
7620
7621 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7622
7623         * Fixed the silc_parse_command_line to remove extra spaces
7624           from the start and end of the arguments.  Affected file is
7625           lib/silcutil/silcutil.c.
7626
7627         * Cancel and free any active protocol in the function
7628           silc_server_close_connection.  Affected file silcd/server.c.
7629
7630         * Cancel and free any active protocol in the function
7631           silc_client_close_connction.  Affected file is
7632           lib/silcclient/client.c.
7633
7634         * Do not execute the KILL command for clients that are in
7635           history (ie. they are not in the network).  Affected file is
7636           silcd/command.c.
7637
7638         * Fixed KILL notify handling, client does not crash anymore.
7639           Affected file irssi/src/silc/core/silc-channels.c.
7640
7641         * Reduced the default packet buffer size from 2048 to 1024 in
7642           lib/silccore/silcpacket.c.
7643
7644         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
7645           counter to the SKE context that is incresed when the SKE library
7646           performs async operation outside the library.  If the outside
7647           process frees the SKE context and FREED status will be set
7648           and the library will detect after the sync operation that the
7649           libary is freed.  The affected files are
7650           lib/silcske/silcske[_status].[ch].
7651
7652         * Resolve the client entry information in the function
7653           silc_client_channel_message to assure that NULL pointer is not
7654           passed as client entry to the application. */
7655
7656         * Fixed the task timeout calculation to assure that there is
7657           never negative timeouts.  The affected file is
7658           lib/silcutil/silcschedule.c.
7659
7660         * Fixed the channel user mode notification sending in server.
7661           It was sent point-to-point to the router (or to server by router)
7662           but it needs to be destined to a channel.  The routines now
7663           supports sending the channel user mode notifys to the channels
7664           when announcing clients and channels.  Affected files are
7665           silcd/server.c and silcd/packet_receive.c.
7666
7667         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
7668           It did not actually replace the old channel entry in the cache.
7669           Affected file lib/silcclient/client_notify.c.
7670
7671 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7672
7673         * Fixed a possible crash in silc_packet_send_prepare.  It now
7674           assures always that there is enough space in the buffer and
7675           at the tail area of the buffer (for MAC).
7676
7677           Fixed the inbound buffer reallocation in silc_packet_read.
7678           It was old code and did not handle the reallocation correctly.
7679           Affected
7680
7681           The affected file is lib/silccore/silcpacket.c.
7682
7683         * Fixed buffer overflow in silc_parse_nickname in the file
7684           lib/silcutil/silcutil.c.
7685
7686 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7687
7688         * make install generates new server keys only if there is not
7689           keys already.
7690
7691 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7692
7693         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
7694           Added check that if the NOREPLY is set then we will not send
7695           the away message.  This avoids infinite loop of away messages
7696           if both clients are away.  The affected file is
7697           lib/silcclient/client_prvmsg.c.
7698
7699         * Fixed client crash if /NICK was given without arguments.
7700           Affected file lib/silcclient/command.c.
7701
7702         * Server does not send the invite list in INVITE command back
7703           to the client if the list was not altered.  Added this notion
7704           to the protocol spec as well.  Affected file silcd/command.c.
7705
7706           Fixed possible crash in INVITE command by checking the
7707           value of silc_server_get_client_route command.
7708
7709         * Fixed the INVITE notify type handling.  The arguments are now
7710           taken in correct order and client does not crash.  The affected
7711           file is irssi/src/silc/core/silc-channels.c.
7712
7713           Removed the "Inviting xxx to channel" message from the
7714           client library away and let the application handle it.
7715           Affected file lib/silcclient/command.c.  Added that message
7716           to Irssi SILC client's message formats.
7717
7718         * Fixed CMODE command crash in client.  It now checks the
7719           amount of arguments correctly and does not crash.  The affected
7720           file is lib/silcclient/command.c.
7721
7722         * Do not create new channel automatically in silc_channels_join
7723           but check whether the channel by that name already exists.
7724           Affected file irssi/silc/core/silc-channels.c.
7725
7726         * Do not send the SERVER_SIGNOFF to router if the disconnected
7727           entity was the router.  Affected file silcd/server.c.
7728
7729         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
7730           SILC client as it was missing from there.
7731
7732           Added the handling of the KICK notify to the Irssi SILC client
7733           as it was missing.  Added "you have been kicked" message to
7734           Irssi SILC client's message modules formats.
7735
7736           Added the handing of the KILL notify to the Irssi SILC client
7737           as it was missing.  Added the kill message module formats
7738           as well.
7739
7740           The affected file is irssi/src/silc/core/silc-channels.c.
7741
7742         * The router did not save the channel mode the server announced.
7743           Affected file silcd/packet_receive.c.
7744
7745         * Fixed a possible crash in INFO command in server.  If the
7746           server did not provide the server info it crashed.  Affected
7747           file silcd/command.c.
7748
7749 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7750
7751         * Fixed the GETKEY command in the server to check also the
7752           global list.  Otherwise the GETKEY would not work correctly
7753           in normal SILC server.  Affected file silcd/command.c.
7754
7755 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7756
7757         * Fixed GETKEY crash, it crashed if the command did not succseed.
7758
7759 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7760
7761         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
7762           is now real and not just an macro interface to GMP.
7763
7764           Removed the entire GMP from the source tree and imported new
7765           NSS MPI library instead.  Reason for removing GMP is that it is
7766           extremely large and compiles extremely slow.  The NSS MPI
7767           is only a few files and compiles in less than 10 seconds.
7768           The speed is also about the same as GMP.  The MPI is imported
7769           to lib/silcmath/mpi.
7770
7771           If the system has GMP installed we will still use the GMP.
7772           If it is not then the NSS MPI will be compiled.
7773
7774 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7775
7776         * Merged a long nickname (127 characters long) crash bugfix from
7777           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
7778
7779         * Merged a freed memory reference bugfix from Irssi CVS tree.
7780           Affected file irssi/src/core/commands.c.
7781
7782 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7783
7784         * Added the server's public key sving and verification to the
7785           server when performing the SKE.  This was missing and the
7786           remote server's (or router's) public key was accepted without
7787           checking whether we have it previously or trust it at all.
7788           Affected file silcd/protocol.c.
7789
7790 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7791
7792         * Check in the silc_server_timeout_remote if protocol is active
7793           and make sure that the protocol's final callback is called so
7794           that all memory if freed.  Affected file silcd/server.c.
7795
7796 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7797
7798         * silc_server_whois_send_reply crashed the server if the nickname
7799           was 127 characters long.  Affected file silcd/command.c.
7800
7801 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7802
7803         * Added sanity check to the silc_server_new_client. If the hostname
7804           is provided inside username then check that the provided hostname
7805           really is the same as the resolved one.  If the hostname was not
7806           resolved then check it from the public key.  Affected file is
7807           silcd/packet_receive.c.
7808
7809         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
7810           if the server disconnected us and the connection is not valid
7811           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
7812
7813         * Moved the silc_client_[chmode|chumode|chumode_char] away from
7814           the library to the lib/silcutil/silcutil.[ch].
7815
7816 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7817
7818         * Close log file after open.  Affected file
7819           lib/silcutil/silclog.c.
7820
7821         * Check whether sock == NULL in silc_client_send_packet and return
7822           if it is.  Affected file lib/silcclient/silcclient.c.
7823
7824         * Check rec->entry == NULL in the Irssi SILC Client before
7825           sending the channel message.  Affecte file is
7826           irssi/src/silc/core/silc-servers.c.
7827
7828 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7829
7830         * Merged a splitted window bugfix from Irssi CVS tree.  The
7831           affected file is irssi/src/fe-text/textbuffer-view.c.
7832
7833         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
7834           It did not print nickname.
7835
7836         * Improved the distributions system a bit.
7837
7838 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7839
7840         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
7841           irssi/src/fe-text/gui-window.c.
7842
7843         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
7844           to in-active server.  The affected file is
7845           irssi/src/silc/core/client_ops.c.
7846
7847         * Resolve the client in USERS command reply if the entry does
7848           not have username resolved.  The affected file is
7849           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
7850           command to WHOIS command to really resolve stuff.  The USERS
7851           is not used any more in any critical section so WHOIS can
7852           be used even though it might be slower than IDENTIFY.
7853
7854         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
7855           format.
7856
7857 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7858
7859         * Changed the protocol API a bit more consistent in the
7860           lib/silccore/silcprotocol.[ch].
7861
7862         * Changed the following headers to ROBODoc format:
7863
7864                 lib/silccore/silcpayload.h
7865                 lib/silccore/silcprotocol.h
7866                 lib/silccore/silcsockconn.h
7867
7868           All core library headers are now formatted.
7869
7870 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7871
7872         * Fixed a bug in Irssi SILC client; do not show that you are
7873           server/router operator if you really are not.  Affected file is
7874           irssi/src/silc/core/client_ops.c.
7875
7876         * Renamed silc_command_free_payload to silc_command_payload_free.
7877           Affected file lib/silccore/silccommand.h
7878
7879         * Added silcmath.h to include the prototoypes of various routines
7880           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
7881           silcprimegen.h.
7882
7883         * Changed the following headers to ROBODoc format:
7884
7885                 lib/silccore/silcchannel.h
7886                 lib/silccore/silccommand.h
7887                 lib/silccore/silcid.h
7888                 lib/silccore/silcidcache.h
7889                 lib/silccore/silcmode.h
7890                 lib/silccore/silcnotify.h
7891                 lib/silccore/silcpacket.h
7892                 lib/silcmath/silcmath.h
7893
7894 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7895
7896         * Added checking to the server code not to start the server if
7897           ciphers and stuff are not configured properly.  Affected files
7898           silcd/serverconfig.[h] and silcd/server.c.
7899
7900         * Changed the layout of the header files of the public interfaces
7901           in the SILC libraries.  The new layout supports ROBODoc
7902           documentation tool (and some others) so that it is easy to create
7903           a library reference manual.  All the other headers and source
7904           code must still follow the CodingStyle document.  Also source
7905           code must not include these ROBODoc stuffs, only the headers.
7906           Furthermore, all public interface headers must now be named
7907           by using `silc' prefix, example: silcapi.h, silccipher.h.
7908           Some files were renamed due to this.  All the other headers
7909           must not be used as public interfaces.  I will update the
7910           CodingStyle document later.  Changed following headers, so far:
7911
7912                 lib/silcclient/silcapi.h
7913                 lib/silccore/silcauth.h
7914                 lib/silccore/silcprivate.h
7915                 lib/silccrypt/silcdh.h
7916
7917 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7918
7919         * Updated TODO.
7920
7921         * Removed silc_client_packet_send_flush from the client library
7922           as it is not needed.  Affected file lib/silcclient/client.[ch].
7923
7924         * Added printing of message of unresolved authentication method
7925           to the Irssi SILC client.  Added it to the module formats.
7926           Removed the same message from the client library.
7927
7928 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7929
7930         * Added new distribution feature, DISTLABEL.  Every distribution
7931           can define own preprocessor label that can be used in the
7932           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
7933           file distributions, acconfig.h.pre and prepare.
7934
7935 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7936
7937         * Added Makefile.defines_int to include the actual definitions
7938           for Makefile.defines.in.  Tested the new distribution system,
7939           created distributions and tested installation.
7940
7941         * Added AWAY message printing to the Irssi SILC client.  Added
7942           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
7943
7944         * Added SCONNECT command to call the SILC's CONNECT command.
7945           Cannot use CONNECT directly since Irssi uses that internally.
7946           Affected file irssi/src/silc/core/silc-servers.c.
7947
7948           Added ACTION local command.  It is same as ME command but takes
7949           the channel as mandatory argument.
7950
7951           Rewrote some of the Irssi's help files to suite for SILC
7952           protocol.
7953
7954 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7955
7956         * Added Makefile.defines[.in] that should for now on be included
7957           in all Makefile.am file in the source tree.  That file includes
7958           all common compilation definitions for SILC source tree.
7959
7960 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7961
7962         * Minor changes to the ./prepare script to change the package
7963           name according the distribution name to the configure.in.
7964
7965 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7966
7967         * Created new distribution system.  Added file `distributions'
7968           that defines all the distributions that can be created out of
7969           the SILC source tree.  The ./prepare script now reads that
7970           file to determine how to prepare the distributions.  The
7971           first argument to the ./prepare is the name of the distribution
7972           and second is the version of the distribution.  If given
7973           without arguments it creates the default (toolkit) distribution
7974           with the default version (defined in ./prepare).
7975
7976           All Makefile.am files that are subject to the distributions
7977           are now named as Makefile.am.pre.  These are ./Makefile.am
7978           and lib/Makefile.am.  Others may be changed later.
7979
7980 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7981
7982         * Added invite list, ban list, some key management and connection
7983           error message printing to module formats in the Irssi SILC client.
7984
7985         * Added new silc_client_set_away_message to set the away message
7986           that is back to the person who sent private message.  The
7987           affected file lib/silcclient/silcapi.h and the
7988           lib/silcclient/client_prvmsg.c.
7989
7990 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7991
7992         * Fixed the private message sending in the Irssi SILC client,
7993           added local command KEY to the Irssi SILC client.
7994
7995           Added key management and key agreement message formats to the
7996           irssi/src/fe-common/silc/module-formats.[ch].
7997
7998           Added USERS (alias WHO) printing, server/router operator
7999           indication and LIST command printing to the module formats.
8000
8001 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8002
8003         * Fixed channel joining notify handling, cumode notify handling
8004           from Irssi SILC client.
8005
8006         * Added SILC specific module-formats to the Irssi SILC client so
8007           that SILC specific message hilighting, colors etc is possible.
8008           Affected file irssi/src/fe-common/silc/module-formats.[ch].
8009
8010           Added channel mode, channel user mode, actions, notices,
8011           whois and whowas printing to the the module-formats.c.
8012
8013         * Fixed a bug in channel deletion in the server.  The channel
8014           is not left to the cache even if the channel founder auth mode
8015           is set when there are no users anymore on the channel.  Affected
8016           file silcd/server.c.
8017
8018         * The silc_net_localhost now resolves the entire hostname including
8019           the domain name.  Affected file lib/silcutil/silcnet.c.
8020
8021 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8022
8023         * Changed the ask_passphrase client operation to be ascynchronous.
8024           It has now a completion callback and a context that the
8025           application must call after it has got the passphrase from
8026           the user.  Affected files lib/silcclient/silcapi.h,
8027           lib/silcclient/protocol.c, lib/silcclient/command.c and
8028           silc/client_ops.c.
8029
8030           Added SilcAskPassphrase callback that the application calls
8031           to deliver the passphrase to the library.
8032
8033         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
8034           The public key verification and especially a certificate
8035           verification is asynchronous procedure.
8036
8037           Added new SILC_SKE_STATUS_PENDING status to indicate the
8038           request is pending and a callback will be called to finalize
8039           the request.
8040
8041           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
8042           indicate that remote end did not send its public key (or
8043           certificate), even though we require it.  Added check for this
8044           condition in the SKE.  This was a security bug, now fixed.
8045
8046           Defined new SilcSKEVerifyCbCompletion callback that is called
8047           when the verification process is completed.
8048
8049           The affected files lib/silcske/silcske_status.h and
8050           lib/silcske/silcske.[ch].
8051
8052         * Changed the verify_public_key client operation to be async
8053           as well.  Defined SilcVerifyPublicKey callback that is used to
8054           indicate the success of the public key verification process.
8055
8056           Changed the server and client to use the new async client
8057           operations.
8058
8059         * Changed the Irssi SILC client's internal scheduler to be called
8060           twice as many times as it used to be.  As a result the client
8061           should be a bit faster now.  Affected file is
8062           irssi/src/silc/core/silc-core.c.
8063
8064         * Added support to Irssi SILC client of asynchronous public key
8065           verification and passphrase inquiry.  Affected file is
8066           irssi/src/silc/core/silc-core.c.
8067
8068 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8069
8070         * Do not say "You have left channel %s" in client library.
8071           Moved it to the application.  Affected files are
8072           lib/silcclient/command.c and silc/client_ops.c.
8073
8074         * Fixed silc_client_get_clients.  Command context was not
8075           duplicated and was freed memory in the callback.  Affected
8076           file lib/silcclient/idlist.c.
8077
8078         * Do not say "you are now talking..." on JOIN command in the
8079           client library.  The appliation must handle it.
8080
8081         * Do not say ".. changed topic to" in command reply in the
8082           client libary.  The application must handle it.
8083
8084         * Fixed TOPIC command sending in the client library.
8085
8086         * Fixed a memory leak in silc_client_command_free in the file
8087           lib/silcclient/command.c.
8088
8089 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8090
8091         * Imported a modified version of Irssi client to the source tree.
8092           The Irssi will be used to create a new client called
8093           Irssi SILC.  Imported to irssi/.
8094
8095           Added silc_core_init_finish function to the Irssi.  Affected
8096           file irssi/configure.in.
8097
8098           A lot changes in the Makefile.ams around the irssi tree.
8099
8100 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8101
8102         * Do not rehash if the new size is same as the old size of the
8103           hash table, in the silc_hash_table_rehash*.  The affected file
8104           lib/silcutil/silchashtable.c.
8105
8106         * Replaced hash_table_del_by_context calls from the server
8107           (when channel->user_list and client->channels) to the
8108           hash_table_del as it is sufficient and faster.
8109
8110 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8111
8112         * Added silc_hash_table_list, silc_hash_table_get and the
8113           SilcHashTableList structure to provide an alternative way to
8114           traverse the hash table.  The affected files are
8115           lib/silcutil/silchashtable.[ch].
8116
8117         * Changed the server's idlist routines to use the hash table
8118           routines to optimize the code.
8119
8120 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8121
8122         * Replaced the client entry's `channel' list and channel entry's
8123           `user_list' list to hash tables for optimized lookup.  Changed
8124           the code to use the hash table interface around the code.
8125           Affected file lib/silcd/idlist.[ch].
8126
8127         * Added `auto_rehash' boolean argument to the function
8128           silc_hash_table_alloc to indicate whether the hash table should
8129           auto-rehash when it thinks is appropriate time.  It will
8130           increase the hash table size if the there is twice as much
8131           entries in the table than the size of the table, and will
8132           decrease the size if there are twice as less entries than
8133           the size of the table.
8134
8135 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8136
8137         * Fixed silc_xxx_get_supported to not crash at some circumstances.
8138
8139 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8140
8141         * silc_idcache_purge_by_context deletes the entry now by context
8142           as it is supposed to do.  Affected file lib/silccore/idcache.c.
8143
8144         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
8145           client is not anymore valid (WHOWAS givens the info) and not
8146           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
8147
8148 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8149
8150         * Removed the `data' and `data_len' arguments from the ID Cache
8151           interfaces and added `name' argument.  ID Cache does not handle
8152           anymore the binary data only a names associated with given ID.
8153
8154         * When hashing a Client ID with silc_hash_id the entire ID is
8155           not hashed anymore, instead only the hash of the Client ID is
8156           hashed.  This way we can access the Client ID from the cache
8157           with Client ID but with the hash of the ID (which is a hash of
8158           the nickname) as well without any difference in performance.
8159
8160           Added also silc_idcache_find_by_id_one_ext to do one on one
8161           searching when we have the actual ID.  Added also function
8162           silc_hash_client_id_compare.  The affected files are
8163           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8164
8165         * When hashing the name associated with a ID it is always done
8166           in lowercase.  This way we can access the cache without worrying
8167           about case-sensitivity, even though, for example nicknames are
8168           case sensitive.
8169
8170         * Fixed a bug in server with channel message sending.  It put
8171           wrong ID type as destination ID.  The affected file
8172           silcd/packet_send.c.
8173
8174         * silc_idcache_del_by_context now deletes from all hash tables
8175           by context.  Affected file lib/silccore/idcache.c.
8176
8177 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8178
8179         * Changed the client library to use the new ID Cache interface.
8180           Changes around the source tree.
8181
8182         * Added silc_hash_table_rehash_ext to rehash with specific
8183           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8184
8185         * Added silc_hash_string_compare to compare two strings in the
8186           hash table.  Affected file lib/silcutil/silcutil.[ch].
8187
8188 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8189
8190         * Added new function silc_idcache_del_by_context into the
8191           lib/silccore/idcache.[ch].
8192
8193         * Changed the server's ID list routines to use the new ID Cache
8194           interface.  Changes around the source tree.
8195
8196 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8197
8198         * Added silc_hash_table_del[_by_context]_ext functions in to the
8199           lib/silcutil/silchashtable.[ch].
8200
8201           Removed silc_hash_table_find_all* routines and added new
8202           silc_hash_table_find_foreach to replace them.
8203
8204           Added silc_hash_table_replace_ext function as extended
8205           replacing function.  Separated the simple hash table interface
8206           from the extended hash table interface in the file
8207           lib/silcutil/silchashtable.h.
8208
8209         * Fixed minor bugs and changed it to use some of the new
8210           hash table functions in lib/silccore/idcache.c
8211
8212 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8213
8214         * Added new function silc_hash_table_find_all to return all keys
8215           in the hash table by the specified key.  As the hash table is
8216           collision resistant it also makes it possible to have several
8217           duplicate keys in the hash table.  This function may be used to
8218           find all of the keys from the hash.
8219
8220           Added user_context arguments to the SilcHashFunction,
8221           SilcHashCompare and SilcHashDestructor to deliver user specified
8222           context.
8223
8224           Added new fuctions silc_hash_table_find[_all]_ext to do
8225           extended lookup with specified hash and compare functions and
8226           specified user contexts.
8227
8228           Added new function silc_hash_table_add_ext to add the key
8229           with specified hash function and user context.
8230
8231           Added new function silc_hash_table_foreach to traverse all
8232           entrys in the hash table.  Added SilcHashForeach callback
8233           function.
8234
8235           Added new function silc_hash_table_del_by_context to delete
8236           the entry only if the context associated with the key matches.
8237
8238           Affected files are lib/silcutil/silchashtable.[ch].
8239
8240         * Removed silc_hash_[server/client/channel]_id and added just
8241           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8242           silc_hash_id_compare to compare two ID's using as the hash table
8243           comparison function.  Added also silc_hash_data to hash
8244           binary data and silc_hash_data_compare to compare it.
8245
8246         * Removed silc_idlist_find_client_by_hash as it is not needed
8247           anymore.  Affected file silcd/idlist.[ch].
8248
8249         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8250           to use internally the SilcHashTable.  The new ID Cache is a lot
8251           faster than the old one.  Some of the ID Cache interface was also
8252           rewritten and obsolete and stupid functions were removed.
8253
8254 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8255
8256         * Added entry_count field to the SilcHashTable to keep the number
8257           of the entries in the table.  Implemented the function
8258           silc_hash_table_rehash.  Added new function
8259           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8260
8261           Fixed a minor bug in silc_hash_table_free.
8262
8263         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8264           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8265           into the lib/silcutil/silcutil.[ch].
8266
8267 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8268
8269         * Implemented a collision resistant hash table into the
8270           lib/silcutil/silchashtable[ch].  See the header and the source
8271           for the SilcHashTable API.
8272
8273 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8274
8275         * Merged dotconf version 1.0.2 into lib/dotconf.
8276
8277 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8278
8279         * Do not compile anything in lib/silcsim/* if the SIM support
8280           is not enabled.  The tree should now compile without problems
8281           under cygwin.
8282
8283 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8284
8285         * Compiled the SILC under cygwin.  Compiled and tested briefly
8286           without problems.  More tests needed.  The SIMs didn't compile
8287           though.
8288
8289         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8290
8291         * Fixed possible crash in silc_get_username in the
8292           lib/silcutil/silcutil.c.
8293
8294 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8295
8296         * Fixed a va_arg in silc/client_ops.c.
8297
8298         * Oops, RC5 routines were named AES and caused some problems
8299           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8300
8301 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8302
8303         * Added new SilcIDIP structure into the lib/silccore/id.h and
8304           replaced the old `ip' fields from all SILC ID's to that type.
8305           This is a step towards IPv6 support.
8306
8307           The silc_id_get_len takes now the ID as an extra argument.
8308           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8309           both IPv4 and IPv6 based ID's.
8310
8311           The affected files are lib/silccore/id.[ch] and other files
8312           around the tree using these routines.
8313
8314         * Removed the ID length arguments in server from various
8315           silc_server_send_notify_* routines -> they are not needed
8316           anymore.
8317
8318 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8319
8320         * Fixed memory leak in silc_encode_pem_file in the file
8321           lib/silcutil/silcutil.c.
8322
8323 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8324
8325         * Check minor version as well in the SKE.  Affected files are
8326           silcd/protocol.c and lib/silcclient/protocol.c.
8327
8328         * Added --identifier option to the server so that an identifier
8329           can be when creating the public key for the server.  Affected
8330           file is silcd/silcd.c.
8331
8332         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8333           lib/silccrypt/silcpkcs.c.
8334
8335 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8336
8337         * Register default ciphers and stuff when using -C option with
8338           the server.  Affected file sildc/silcd.c.
8339
8340         * Put back the servers public key filename format, it is better
8341           than the new one.  For now, the client keys are saved with the
8342           new filename format.  The affected file silc/client_ops.c.
8343
8344         * Implemented the Cipher API for the rest of the ciphers that
8345           did not implement it or implemented it the wrong way.
8346
8347 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8348
8349         * Register default ciphers and stuff when using the -S option
8350           in the client.  Affected file silc/silc.c.  Same also when
8351           creating new key pair with -C option.
8352
8353 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8354
8355         * Fixed the silc_verify_public_key client operation function to
8356           save the public keys differently.  The fingerprint is now
8357           used as filename and not the hostname.  This way also the
8358           client keys are saved uniquely and not with hostnames.  The
8359           affected file is silc/client_ops.c.
8360
8361         * Trimmed the silc_hash_fingerprint function to remove extra
8362           whitespaces from the end of the fingerprint.  The affected
8363           file is lib/silccrypt/silchash.c.
8364
8365         * Updated TODO.
8366
8367         * Added silc_cipher_register_default function to register all
8368           default ciphers.  It can be used when configuration files
8369           does not exist and the application does not want any specific
8370           ciphers in any specific order.
8371
8372           The SilcDList is now used as silc_cipher_list dynamically
8373           allocated cipher list.  Removed the static list all together
8374           and now all ciphers must be allocated to the dynamic list.
8375           The silc_cipher_alloc routine was changed to check only the
8376           dynamic list.
8377
8378           All silc_cipher_* routines that used to return int returns
8379           now bool.
8380
8381           The affected files lib/silccrypt/silccrypt.[ch].
8382
8383         * The same thing was done to silc_hash_* as for silc_cipher_*
8384           routines.  Affected files lib/silccrypt/silchash.[ch].
8385
8386         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8387           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8388           Added also silc_pkcs_[un]register[_default] functions.
8389           Removed the data_context from the PKCS API.
8390
8391         * Added silc_hmac_register_default function to register default
8392           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
8393           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
8394           to unregister all hmacs at once.
8395
8396         * Register the default ciphers, hash functions, PKCSs and HMACs
8397           if client's configuration file does not exist.  The affected
8398           file silc/silc.c.
8399
8400         * The client did not load the hash functions from the SIM
8401           modules at all.  Added support for this.  Affected file is
8402           silc/clientconfig.c.
8403
8404         * When decoding public key with silc_pkcs_public_key_decode, check
8405           the supported algorithm only if PKCS are registered.  Affected
8406           file lib/silccrypt/silcpkcs.c.  The same was done with the
8407           silc_pkcs_private_key_decode.
8408
8409         * Fixed the SILC List routines to keep the list always in order.
8410           It used to change the list's order when traversing the list but
8411           not it preserves the order.  Affected file lib/trq/silclist.h.
8412
8413 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8414
8415         * Added the client library to use the SilcSocketConnection's
8416           reference counter (by silc_socket_dup) to prevent the bug that
8417           the socket object may be freed underneath async operation.
8418
8419         * The name resolv library checking fixes in the configure.in.pre.
8420           The patch by salo.
8421
8422         * Created new version of the protocol drafts for future
8423           development. The -03 drafts are the ones that will be changed
8424           in the trunk now and the -02 will remain as they are.
8425
8426         * Send list of CUMODE notifys to the router when announcing
8427           the channel users to the router.  Affected file silcd/server.c.
8428           If the router receiving channel founder CUMODE for a channel
8429           that already has channel founder it will send CUMODE notify
8430           to the sender to remove the channel founder rights from the
8431           announced client.  Affected file silcd/packet_receive.c.
8432
8433         * The CUMODE notify may now use Server ID as well as the entity
8434           who changes the mode.  Updated protocool specs.
8435
8436         * Updated INSTALL and README files.
8437
8438 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8439
8440         * New web pages in the http://silc.pspt.fi.  The pages was
8441           designed by salo.
8442
8443         * Updated CREDITS.
8444
8445 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8446
8447         * Implemented the [DenyConnectin] config section in the server.
8448           Added silc_server_config_denied_conn to check whether incoming
8449           connection is denied.  Affected file silcd/serverconfig.[ch].
8450
8451         * Do not check the ports when checking the incoming configuration
8452           data if the port is 0, meaning any.  Affected file is
8453           silcd/serverconfig.c.
8454
8455 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8456
8457         * Fixed buffer overflow in silc_string_compare in the file
8458           lib/silcutil/silcutil.c.
8459
8460         * Fixed double free in silc_server_command_leave in the file
8461           silcd/command.c.
8462
8463 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8464
8465         * Fixed the version checking in the server.  Affected file is
8466           silcd/protocol.c.
8467
8468 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8469
8470         * Fixed the configuration data fetching when accepting new
8471           connections in the server.  Affected file silcd/server.c.
8472
8473 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8474
8475         * Added `sender_entry' argument to the function
8476           silc_server_packet_relay_to_channel so that we can check
8477           whether some destination actually belongs to the same route
8478           the sender belongs (ie, we must not resend the packet to the
8479           sender).  Affected file silcd/packet_send.[ch].
8480
8481         * Added `servername' field to the SilcClientEntry in the server
8482           to hold the name of the server where client is from.  Affected
8483           file is silcd/idlist.h.
8484
8485 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8486
8487         * Moved the channel message encrypting in the router betwen
8488           router connections from silc_server_channel_message to the
8489           silc_server_packet_relay_to_channel since we want to check
8490           whether we have anybody channel before encrypting anything.
8491           Affected files silcd/packet_[receive/send].c.
8492
8493 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8494
8495         * Fixed the [AdminConnection] server config section to support
8496           multiple entries.  Affected file silcd/serverconfig.c.
8497
8498         * Added support into the server to check the validity of the
8499           incoming connection before executing any KE or authentication
8500           protocols.
8501
8502         * The connection configuration is now saved to the KE and
8503           connection auth protocol contexts and not fetched anymore in
8504           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
8505
8506         * The local hosts listenning address and port is also resolved
8507           now when starting the server.  We want to have the socket object
8508           to include the real address and port for the listener.  Added
8509           new function silc_net_check_local_by_sock into the files
8510           lib/silcutil/silcnet.[ch].
8511
8512         * Fixed a broadcast bug in server -> do not broadcast if we
8513           are standalone.
8514
8515         * Fixed a routing bug.  Do not route broadcast packets ever.
8516           Broadcast packets must be processed always and not routed since
8517           they may be destined to some other host than yourself and thus
8518           would get routed without no good reason.  Affected file is
8519           silcd/server.c.
8520
8521         * Added function silc_server_config_is_primary_route to check
8522           whether primary router connection has been configured (a router
8523           configuration that we are initiating).  If there is not, we
8524           will assume that there is only two routers in the SILC network
8525           and we will use the incoming router connection as our primary
8526           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
8527
8528         * Changed the order of the broadcasting.  Broadcast _after_ the
8529           packet has been processed not before.  Affected file is
8530           silcd/server.c.
8531
8532         * Fixed a [ClientConnection] parsing bug.  The port was never
8533           parsed correctly thus resulting to port 0.  Affected file
8534           silcd/serverconfig.c.
8535
8536         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
8537           argument and did not set the broadcast packet flag.  Affected
8538           file silcd/packet_send.c.  Fixed same bug in the function
8539           silc_server_send_notify as well.
8540
8541         * If we receive NEW_ID packet for our own ID in the server, ignore
8542           the packet.
8543
8544 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8545
8546         * Updated TODO.
8547
8548         * Removed the nickname from the Private Message Payload.
8549           Updated the code and the protocol specs.
8550
8551         * Updated protocol specs for submitting to the IETF.
8552
8553         * Tweaked the Random Number Generator a bit.  Affected file
8554           lib/silccrypt/silcrng.c.  Exported a new function
8555           silc_rng_[global]_add_noise which can be used to add more
8556           noise to the RNG.
8557
8558 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8559
8560         * Do not parse packets with different timeout when protocol
8561           is active -> may cause problem with rekey.  Affected file
8562           silcd/server.c.
8563
8564         * When server receives signoff notify it must not create
8565           new channel key if the client is on any channels since the
8566           sender of the signoff notify will create it.
8567
8568 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8569
8570         * Added printing of error messages during SKE protocol from the
8571           failure packet sent by server during SKE.  Affected file
8572           silc/client_ops.c.
8573
8574         * Removed the client's failure_callback handling with timeout
8575           and handle it immediately when received.
8576
8577         * The SKE library returned wrong type in SUCCESS and FAILURE
8578           packets.  They must be 32 bit MSB not 16 bit MSB.
8579
8580 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8581
8582         * Ok, rewrote the logic of the re-key and now it seems to work.
8583           I tested it on high traffic with frequent re-keys without
8584           problems.  Added hmac_receive (and renamed hmac to hmac_send)
8585           in SilcClientConnection in lib/silcclient/client.h and
8586           in SilcIDListData in silcd/idlist.h.  Also, removed the
8587           SilcPacketParserContext's cipher and hmac fields as they are
8588           not needed anymore and actually caused some problems when
8589           the ciphers and hmac's changed underneath the packet parser.
8590
8591 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8592
8593         * If re-key protocol is active then process the incoming packets
8594           synchronously since we must assure that icoming packets encrypted
8595           with the old key is processed before the new keys is set to
8596           use.  This is true other packets than for REKEY packets.
8597           Affected file silcd/server.c.  The same was done to client library
8598           as well, affected file lib/silcclient/client.c.
8599
8600 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8601
8602         * Fixed bug in client and server to accept the force send if
8603           the packet is send from silc_[server/client]_packet_process
8604           function.  Otherwise the packets are never delivered, oops.
8605
8606 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8607
8608         * Disable force sending of packets when REKEY protocol is active.
8609           We must assure that no packet is sent directly when rekey is
8610           performed.  All packets must be sent through packet queue.
8611           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
8612           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
8613           function is silc_[server/client]_packet_send_real to check
8614           the situation.
8615
8616         * Replaced the SIM paths from example config files to
8617           /usr/local/modules.  Also, make install creates now
8618           /usr/local/silc/logs directory to hold all the SILC server
8619           logs.
8620
8621 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8622
8623         * Made the configure.in.pre work on Solaris.  Patch by salo.
8624
8625         * Made all ciphers compatible with non-x86 machines.  Defined
8626           CBC mode macros into lib/silccrypt/ciphers_def.h.
8627
8628 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8629
8630         * Fixed the make install.
8631
8632 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8633
8634         * When MAC computation fails the silc_packet_decrypt returned 0
8635           even though it was supposed to return -1.  Fixed this.  The
8636           affected file is lib/silccore/silcpacket.c.
8637
8638         * Do not replace the config files in /etc/silc (in make install)
8639           if they already exist.  Affected file ./Makefile.am.
8640
8641         * Do not send re-key packets immediately but through packet queue.
8642           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
8643
8644         * Changed silc_net_check_host_by_sock to return FALSE if the
8645           IP/DNS could not be resolved.  Though, it returns the IP address
8646           now even if it could not resolve it (but returns also FALSE).
8647           Affected file lib/silcutil/silcnet.[ch].
8648
8649 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8650
8651         * Added silc_pkcs_decode_identifier to decode the public key's
8652           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
8653           Added also silc_pkcs_free_identifier.  Added also new context
8654           SilcPublicKeyIdentifier.
8655
8656         * Added -S option to the silc client.  It is used to dump the
8657           contents of the specified public key file.
8658
8659         * Changed the PKCS api to return the public key length when
8660           setting the public key.
8661
8662         * Fixed a fatal bug in the public and private key file loading.
8663           Affected file lib/silccrypt/silcpkcs.c.
8664
8665         * Execute the packet parsing for client with zero (0) timeout
8666           if the protocol is active.  Affected file silcd/server.c.
8667
8668 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8669
8670         * Made the key generation options to the silcd program.  Added
8671           -C option, equivalent to client's option.
8672
8673         * Added new [ServerKeys] config section to the server.  It
8674           configures the server's public and private key.
8675
8676         * Defined generic Public Key Payload into the protocol
8677           specification to send specific type of public keys and
8678           certificates.
8679
8680         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
8681           public key or certificate.
8682
8683         * Implemented the GETKEY command to the server and to the
8684           client library and on user interface.
8685
8686 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8687
8688         * Made preliminary `make install' work.
8689
8690 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8691
8692         * Added SilcServerRekey context into silcd/idlist.h.
8693
8694         * Added the PFS support as defined in the specification to the
8695           SKE protocol.  Affected files lib/silcske/*.c.
8696
8697         * Added `ske_group' field to the SilcServerRekey context to hold
8698           the number of the SKE group that is used with PFS in re-key.
8699           Affected file silcd/idlist.h.
8700
8701         * Added PFS re-key support to the server.  Affected file is
8702           silcd/protocol.c.
8703
8704         * Added silc_protocol_cancel to cancel execution of the next
8705           state of the protocol.  Affected file is
8706           lib/silccore/silcprotocol.[ch].
8707
8708         * Added the re-key support with and without PFS to the client
8709           library.  Re-key is performed once in an hour, by default.
8710
8711           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
8712           Added silc_client_rekey_callback and silc_client_rekey_final.
8713           Affected files are lib/silcclient/protocol.[ch] and
8714           lib/silcclient/client.[ch].
8715
8716         * Removed the `hmac_key' and `hmac_key_len' fields from the
8717           SilcClientConnection structure; not needed.  Affected file is
8718           lib/silcclient/client.h.
8719
8720         * Updated TODO.
8721
8722 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8723
8724         * Do not ask whether user wants to use the negotiated private key
8725           for private messages, just use it.  Affected file is
8726           silc/local_command.c.
8727
8728         * Added `send_enc_key' and `enc_key_len' fields to the
8729           SilcIDListData structure since they are needed in the re-key
8730           phase.  Affected file is silcd/idlist.[ch].
8731
8732         * Implemented the simple re-key protocol into the server.
8733           Affected files silcd/server.c and silcd/protocol.[ch].  The
8734           re-key will be performed once in an hour, by default.
8735
8736           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
8737           Added silc_server_rekey, silc_server_rekey_callback and
8738           silc_server_rekey_final.
8739
8740         * Removed Tunneled flag from the protocol.  Updated the code
8741           and the specifications.
8742
8743         * Adde `pfs' field to the SilcIDListData to indicate whether
8744           the PFS is to be performed in the re-key.  Affected file is
8745           silcd/idlist.h.
8746
8747 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8748
8749         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
8750           int64 of at least the xintXX size.  If void * is less that 4
8751           bytes uint32 * will be used.  Defined bool as boolean.
8752
8753         * Changed _ALL_ unsigned long and unsigned int to uint32,
8754           unsgined short to uint16 in the source tree.
8755
8756         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
8757           not handle clients that has entry->data.registered == FALSE.
8758           They are not in the network anymore.  Affected file is
8759           silcd/server.c.
8760
8761 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8762
8763         * Implemented the sending of the SERVER_SIGNOFF notify in the
8764           server.  Affected file is silcd/server.c.
8765
8766         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
8767           Added also silc_notify_payload_encode_args into the
8768           lib/silccore/silcnotify.[ch].
8769
8770         * Implemented ther SERVER_SIGNOFF notify handling in the server.
8771           Affected file silcd/packet_receive.c.
8772
8773         * Implemented the SERVER_SIGNOFF notify handling in the client
8774           library.  Affected file lib/silcclient/client_notify.c.  Also,
8775           implemnted the printing of the SERVER_SIGNOFF info to the
8776           application.  Affected file silc/client_ops.c.
8777
8778         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
8779           if the deleting was successful.  Affected file silcd/idlist.[ch].
8780
8781         * Added support for public key authentication in the connection
8782           authentication protocol in the client library.  Affected file
8783           lib/silcclient/protocol.c.
8784
8785         * Changed the server's silc_idlist_get_clients_by_* interface
8786           to support already allocated array so that new entries may be
8787           added to pre-allocated array.  Affected file silcd/idlist.[ch].
8788           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
8789           and command replies.
8790
8791         * All command reply functions in the server now calls the
8792           pending command callback even if error occured.  This way the
8793           error will be delivered to the client as well.  Affected files
8794           silcd/command.c and silcd/command_reply.c.
8795
8796         * Fixed INFO command to return local server's info if no server
8797           was provided.  Affected file lib/silcclient/command.c.
8798
8799         * Removed RESTART command for good.  Updated the code and the
8800           protocol specs.
8801
8802         * Rewrote parts of the task system.  It is a bit simpler now.
8803           Removed unsued task priorities. The affected files are
8804           lib/silcutil/silctask.[ch].
8805
8806 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8807
8808         * Moved the USERS printing from the library to the application.
8809           Affected files lib/silcclient/command.c and silc/client_ops.c.
8810
8811 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8812
8813         * Updated TODO.
8814
8815         * Added channel key re-key support.  The re-key is perfomed
8816           only by the router and is done once in an hour.  Added `rekey'
8817           field to the SilcChannelEntry in the server.  Affected files
8818           silcd/server.c and silcd/idlist.h.
8819
8820         * Added silc_task_unregister_by_context into the file
8821           lib/silcutil/silctask.[ch].
8822
8823 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8824
8825         * Added SILC_UMODE_GONE mode to indicate when the client is not
8826           present in the SILC network.  Added also support to the local
8827           command AWAY that will set this mode.  Added support of showing
8828           "xxx is gone" in WHOIS command.  The USERS command shows the
8829           gone status as well.
8830
8831         * Fixed setting server and router operator privileges in the
8832           server's UMODE command.  Affected file silcd/command.c.
8833
8834         * Merged the SKE KE1 and KE2 payloads into one payload.  The
8835           new KE payload is equivalent to the old KE2 payload.
8836
8837           Cleaned up the SKE Start Payload parsing.  It now uses the
8838           simple buffer unformatting to do the parsing.  A lot faster
8839           now.
8840
8841           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
8842           to the SKE that is used to indicate whether both of the SKE
8843           parties should perform authentication.  By default only the
8844           responder performs authentication.  By setting this flag also
8845           the initiator must do authentication.  By default it is unset
8846           since in normal SKE case, client to server connection, only
8847           the responder should do authentication.  When doing SKE between
8848           two clients both should perform authentication.  Updated the
8849           code and the protocol specs.
8850
8851         * A little fix to IDENTIFY command in the server.  Search the
8852           client first by hash not nickname.  Affected file is
8853           silcd/command.c.
8854
8855         * Fixed the silc_client_close_connection to support closing
8856           the client to client connections wihtout deleting too much
8857           data.  Affected file lib/silcclient/client.c.
8858
8859         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
8860           are received if protocol used to be active but is not anymore
8861           the application would crash due to NULL pointer dereference.
8862           Affected files silcd/server.c and lib/silcclient/client.c.
8863
8864         * Added `hash' field to the SilcClientConnection to include
8865           the hash function negotiated in the SKE protocol.
8866
8867         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
8868           to set the channel founder authentication data.  A client can
8869           claim the founder rights later by providing the authentication
8870           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
8871           This way the channel founder can regain the channel founder
8872           privileges even it is left the channel.  This works only on
8873           local server and the client must be connected to the same
8874           server to be able to regain the founder rights.  Updated the
8875           protocol specs accordingly.
8876
8877           Added support to the CMODE command in the client to set the
8878           founder auth data.  Read the README to see how to set it.
8879
8880           Added support to the CUMODE command to claim the founder
8881           rights.  Read the README to see how to do it.
8882
8883           Added support for the founder authentication to the Channel
8884           Entry in the server.  Affected file silcd/idlist.h.
8885
8886           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
8887           server's CMODE command.  Affected file silcd/command.c.
8888
8889         * Added the following new functions into lib/silccore/silcauth.[ch]:
8890           silc_auth_get_method and silc_auth_get_data.
8891
8892         * The server now saves the remote hosts public key to the
8893           SilcIDListData pointer.  Affected file silcd/protocol.c.
8894
8895         * The normal server now does not remove the channel entry from
8896           the cache if the founder authentication data is set.  It used
8897           to remove it if the founder was the last one on the channel on
8898           the server and left the channel.  The auth data is saved and
8899           if the channel is re-joined later the old entry is used with
8900           the old auth data.  Affected files silcd/command_reply.c and
8901           silcd/server.c.
8902
8903         * Removed the `pkcs' field from the SilcIDListData structure
8904           in the server; it is not used.  Affected file silcd/idlist.h.
8905
8906 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8907
8908         * Fixed packet processing on slow links.  Partial packets were
8909           never re-processed because the incoming data buffer was cleared
8910           by the application.  Application must not directly clear the
8911           sock->inbuf, the packet processing routines handle it.  Fixed
8912           this in client library and in server.
8913
8914 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8915
8916         * Fixed the WHOIS and IDENTIFY send reply function to really
8917           check whether to send list or just one entry.  Affected file
8918           silcd/command.c.
8919
8920         * Cleaned up the LEAVE command's channel key distribution.  The
8921           affected file silcd/command.c.
8922
8923         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
8924           can enforce the channel mode as well.  In that case the ID
8925           includes the ID of the server.  The code now enforces the
8926           mode change if the router have different mode than the server.
8927
8928         * The notify client operation with CMODE_CHANGE notify can now
8929           return NULL client_entry pointer if the CMODE was not changed
8930           by client.  Application must check for this.
8931
8932         * Added <Server ID> argument to INFO command to support server
8933           info fetching by Server ID.
8934
8935         * Added silc_server_announce_get_channel_users to get assembled
8936           packets of channel users of the specified channel.  Affected
8937           file silcd/server.[ch].
8938
8939         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
8940           was freed underneath the ID Cache.
8941
8942         * Re-announce clients when the server received CHANNEL_CHANGE
8943           notify from the router.  Affected file silcd/packet_send.c.
8944
8945 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8946
8947         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
8948           crashed since it did not handle the fact that there is no cipher
8949           called "3" and didn't check the error condition.  Now fixed.
8950
8951         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
8952           flag.  It can be used to send message requests.
8953
8954 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8955
8956         * Implemented the RESTART command in the client.
8957
8958         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
8959           notice type messages.  Added notice printing to the user
8960           interface.
8961
8962         * The channel keys are not re-generated if the channel's mode
8963           is PRIVKEY, ie private key on the channel exists.  Affected
8964           files silcd/server.c and silcd/command.c.
8965
8966         * Fixed a little bug in channel message delivery when channel
8967           private keys are set in the server.  Affected file is
8968           silcd/packet_send.c.
8969
8970         * Changed the setting on channel->on_channel = TRUE from the
8971           silc_client_save_channel_key to the JOIN command reply.  The
8972           key payload is not received if the private channel key is set.
8973           Affected file lib/silcclient/command_reply.c and the
8974           lib/silcclient/client_channel.c.
8975
8976         * When the CMODE_CHANGE notify is sent and the channel private
8977           key mode is removed the channel key must be re-generated in
8978           other cells as well.  Added this support for the router in the
8979           silcd/packet_receive.c.
8980
8981         * Added new local command NOTICE to send notice message on
8982           channel.  Affected file silc/local_command.[ch].
8983
8984 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8985
8986         * Added new local command ME to the client.  It is used to send
8987           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
8988           some action.  Affected file silc/local_command.[ch].
8989
8990         * Changed channel_message and private_message client operations
8991           to deliver the message flags to the application.  Added also
8992           the `flags' arguments to the silc_client_send_channel_message
8993           and silc_client_send_private_message functions.  Affected file
8994           silcapi.h.
8995
8996 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8997
8998         * Redefined the Private Message Payload to support private message
8999           keys and to support the new private message flags.  Updated
9000           the protocol specs.  Flags makes it possible to have for example
9001           CTCP style messages.
9002
9003         * Added new type SilcPrivateMessagePayload and defined an API
9004           for it in the lib/silcclient/silcprivate.[ch].
9005
9006         * Tested private message private keys successfully.  Tested the
9007           private message key set, unset and list commands with the new
9008           KEY command.
9009
9010         * Redefined the Channel Message Payload to include the channel
9011           message flags (equal with private message flags) to support
9012           for example CTCP style messages.
9013
9014         * Defined some of the message (for channel and private message)
9015           flags.  Updated the protocol specs and added the flags to the
9016           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
9017
9018 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9019
9020         * Added SilcKeyAgreementStatus type to the key agreement routines
9021           to indicate the current status and error if one occured.
9022           The status types are defined in the lib/silcclient/silcapi.h.
9023
9024         * Added new local command KEY that is used to set and unset private
9025           keys for channels, set and unset private keys for private messages
9026           with remote clients and to send key agreement requests and
9027           negotiate the key agreement protocol with remote client.  The
9028           key agreement is supported only to negotiate private message keys,
9029           it currently cannot be used to negotiate private keys for channels,
9030           as it is not convenient for that purpose.
9031
9032         * Fixed a minor pending callback setting bug in the function
9033           silc_client_get_client_by_id_resolve, now the function works.
9034           Affected file lib/silcclient/idlist.c.
9035
9036         * Added function silc_net_get_local_port to get local bound
9037           port by socket.  Added to lib/silcutil/silcnet.[ch].
9038
9039         * Added `sockets' and `sockets_count' fields to the SilcClient
9040           object.  They hold the sockets of the listenning sockets in
9041           the client.  Listenning sockets may be for example the key
9042           agreement server.  Affected file lib/silcclient/client.[ch].
9043           Added functions the silc_client_add_socket and the
9044           silc_client_del_socket.  They are exported to the application
9045           as well.
9046
9047         * Added ~./silc/clientkeys to support other client's public keys.
9048
9049         * Renamed verify_server_key client operation to verify_public_key
9050           and added one argument to indicate the type of the connection
9051           (server, client etc.).
9052
9053 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9054
9055         * Added silc_server_connection_auth_request to handle the
9056           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
9057           silcd/packet_receive.[ch].
9058
9059         * Added silc_server_send_connection_auth_request into the
9060           silcd/packet_send.c to send the connection auth request packet.
9061
9062         * Cleaned up the silcd/protocol.c a bit and fixed some memory
9063           leaks.
9064
9065         * Fixed the public key authentication in responder side in the
9066           server.  The `auth_data' pointer includes the SilcPublicKey
9067           not the path to the public key.  Affected file silcd/protocol.c.
9068
9069         * Implemented the public key authentication in the initiator side
9070           in the server.  Affected file silcd/protocol.c.
9071
9072         * Removed the [RedirectClient] config section from the server
9073           configuration.  Is not needed and I don't want to implement it.
9074
9075 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9076
9077         * Cleaned up the CMODE command in the server.  It now works
9078           correctly and supports all the modes defined in the protocol.
9079           Affected file is silcd/command.c.
9080
9081         * Added `hmac_name' field to the SilcChannelEntry in the server
9082           to hold the default HMAC of the channel.  It can be set when
9083           creating the channel (with JOIN command).  Affected files
9084           silcd/idlist.[ch].
9085
9086         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
9087           type to indicate the change of the current cipher and hmac
9088           on the channel.  Client can safely ignore the <cipher> argument
9089           (if it chooses to do so) since the CHANNEL_KEY packet will
9090           force the channel key change anyway.  The <hmac> argument is
9091           important since the client is responsible of setting the new
9092           HMAC and the hmac key into use.
9093
9094         * Fixed the CMODE command in the client library as well.
9095
9096         * Tested CMODE command in router environment successfully.
9097
9098 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9099
9100         * Show the version of the remote client (or server) when connecting
9101           to the server.  It is logged to the log file.  Affected file
9102           is silcd/protocol.c.
9103
9104         * Fixed the KILLED notify handling in the client library.  The
9105           client must be removed from all channels when receiving the
9106           KILLED notify.
9107
9108           Also, do not remove the client entry when giving the KILL
9109           command but when the KILLED notify is received.
9110
9111         * Removed silc_idlist_find_client_by_nickname from the server.
9112           Not needed anymore.  Affected files silcd/idlist.[ch].
9113
9114         * Implemented the CHANNEL_CHANGE notify type handling to the
9115           server.  Affected file silcd/server.c.
9116
9117         * Updated TODO.
9118
9119 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9120
9121         * Added silc_server_send_notify_invite to send the INVITE
9122           notify between routers.
9123
9124         * Implemented the INVITE command correctly to the server.
9125
9126         * Implemented the INVITE notify type handling in the server.
9127
9128         * Implemented the INVITE command to the client library and on the
9129           user interface.
9130
9131 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9132
9133         * Added function silc_server_get_client_resolve to find the
9134           client entry by ID from all ID lists and then resolve it
9135           (using WHOIS) if it cannot be found.  Affected file is
9136           silcd/server.[ch].
9137
9138 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9139
9140         * Implemented the BAN command to the client library.
9141
9142         * The JOIN command in the server now checks the invite list
9143           and the ban list.
9144
9145         * Changed the silc_command_reply_payload_encode_va and the
9146           silc_command_payload_encode_va to support that if argument is
9147           NULL it ignores and checks the next argument.  Affected file
9148           lib/silccore/silccommand.c.
9149
9150         * Added silc_server_send_notify_ban to send the BAN notify
9151           type between routers.
9152
9153         * Chaned the silc_notify_payload_encode to support that if
9154           argument is NULL it ignores and checks the next argument.
9155           Affected file lib/silccore/silcnotify.c.
9156
9157         * Tested ban lists in router environment successfully.
9158
9159 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9160
9161         * Implemented BAN command to the server, in silcd/command.[ch].
9162
9163         * Removed the BAN and INVITE_LIST modes from the CMODE command
9164           in the server code.
9165
9166         * Added function silc_string_match to regex match two strings.
9167           Affected files lib/silcutil/silcutil.[ch].
9168
9169 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9170
9171         * Redefined parts of the SilcChannelEntry in the server to support
9172           the new ban and invite lists.
9173
9174 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9175
9176         * Redefined the INVITE command.  The same command can be used to
9177           invite individuals to the channel but also to manage the invite
9178           list of the channel (to add to and remove from the invite list).
9179           Updated the protocol specs.
9180
9181         * Added new command SILC_COMMAND_BAN that can be used to manage
9182           the ban list of the channel.  Updated the protocol specs.
9183
9184         * Removed the channel modes: the SILC_CMODE_BAN and the
9185           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9186           in the CMODE command.  The equivalent features are now available
9187           using INVITE and BAN commands.  Updated the protocol specs.
9188
9189         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9190           in the network about change in the current ban list.  The notify
9191           type is not used by the client.
9192
9193         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9194           support the invite lists.
9195
9196 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9197
9198         * Added new function silc_string_regexify that converts string
9199           including wildcard characters into regex string that can
9200           be used by the GNU regex library.  Added into the file
9201           lib/silcutil/silcutil.[ch].
9202
9203           Added silc_string_regex_combine to combine to regex strings
9204           into one so that they can be used as one regex string by
9205           the GNU regex library.  Added into the file
9206           lib/silcutil/silcutil.[ch].
9207
9208           Added silc_string_regex_match to match two strings.  It returns
9209           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9210
9211 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9212
9213         * Imported GNU regex to the soruce tree into lib/contrib.
9214           Fixed some compiler warning from the regex.c.
9215
9216 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9217
9218         * Fixed MOTD command in the server to work in router environment.
9219
9220         * Fixed the MOTD command in the client library to support
9221           the server argument in the command.
9222
9223         * Added `nickname_len' argument to the silc_idlist_add_client
9224           in the server, as the `nickname' argument may be binary data
9225           (it may be hash).
9226
9227         * Added silc_idlist_get_channels to return all channels from
9228           the ID list.
9229
9230         * Implemented LIST command to the server.  Affected file is
9231           silcd/command.c.
9232
9233         * Implemented the LIST command to the client library and on the
9234           user interface.
9235
9236         * Added [<user count>] argument to the LIST command reply.
9237           With private channels the user count is not shown.
9238
9239         * Updated TODO and README.
9240
9241 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9242
9243         * The client entry's data.registered must be TRUE even with
9244           global client entry on global client list.  The data.registered
9245           is used to check whether the client is anymore in the network,
9246           for example with WHOWAS command so it must be valid.
9247
9248         * Fixed the WHOWAS command in the server.  It now actually works
9249           in router environment.  Added function into silcd/command_reply.c
9250           silc_server_command_reply_whowas_save.
9251
9252         * Added silc_idlist_purge function to the silcd/idlist.c
9253           to periodically purge the ID Cache.
9254
9255         * Fixed INFO command in the server.  It works now in router
9256           environment.  Added <server name> argument to the INFO command
9257           reply.  Updated the protocol specs.
9258
9259         * Fixed minor bug in silc_idcache_purge to not purge if the
9260           expire value is zero.
9261
9262         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9263           they were buggy because of the WHOWAS information.
9264
9265         * Fixed local command MSG to handle the async resolving of
9266           the remote client properly.  It used to fail the first MSG.
9267           Affected file silc/local_command.c.
9268
9269         * Added `data_len' field to SilcIDCache context.
9270
9271 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9272
9273         * Update TODO.  Todo in commands in the server.
9274
9275 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9276
9277         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9278           used by routers as broadcast packet to inform other routers
9279           about the changed user mode.
9280
9281           Implemented the notify handling in the server.  Affected file is
9282           silcd/packet_receive.c.  Added the function
9283           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9284
9285         * Added new generic Channel Payload and deprecated the New Channel
9286           Payload.  The New Channel Payload is now the generic Channel
9287           Payload.
9288
9289         * Added new argument `mode' to the silc_server_send_new_channel
9290           as it is required in the Channel Payload now.
9291
9292         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9293           and created a new and real SilChannelPayload to represent the
9294           new generic Channel Payload.  Implemented the encode/decode
9295           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9296
9297         * Added silc_server_get_client_channel_list to return the list
9298           of channels the client has joined for WHOIS command reply.
9299           Affected file silcd/server.[ch].
9300
9301         * Implemented the channel list sending in the WHOIS command reply
9302           in server and in the client.
9303
9304           Implemented the channel list displaying on the user interface
9305           as well.  Affected file silc/client_ops.c.
9306
9307         * Added silc_channel_payload_parse_list to parse list of Channel
9308           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9309           Client for example can use this function to parse the list of
9310           channels it receives in the WHOIS command reply.  The caller
9311           must free the list by calling silc_channel_payload_list_free.
9312           Affected files lib/silccore/silcchannel.[ch].
9313
9314 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9315
9316         * Added one new argument <user mode> to the WHOIS command reply
9317           to return the mode of the user in SILC.  Updated the protocol
9318           specs.
9319
9320           Implemented it to the server and client.
9321
9322 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9323
9324         * Fixed the mode printing on the user interface on joining.
9325           Affected file silc/client_ops.c.
9326
9327         * Implemented the UMODE command and user modes in general to the
9328           client library and to the user interface.
9329
9330         * Implemented the UMODE command to the server.
9331
9332         * The server now sends UNKNOWN_COMMAND error status if client sends
9333           unknown command.  Affected file silcd/command.c.
9334
9335         * All server commands now handle the command identifier the right
9336           way when sending the command reply to the client.  The client can
9337           use to identify the command replies with the identifier.
9338
9339 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9340
9341         * Added silc_server_get_client_route to resolve the route to
9342           the client indicated by the client ID.  Affected file is
9343           silcd/server.[ch].
9344
9345         * Added silc_server_relay_packet as general function to relay
9346           packet to arbitrary destination.  This deprecates functions
9347           like _send_private_message_key, _relay_notify etc.  Affected
9348           file is silcd/packet_send.[ch].
9349
9350           Removed silc_server_send_key_agreement,
9351           silc_server_send_private_message_key and
9352           silc_server_packet_relay_notify functions from the file
9353           silcd/packet_send.[ch].
9354
9355         * Updated TODO.
9356
9357         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9358           server.  Affected file silcd/packet_receive.[ch].
9359
9360         * Implemented the KILL command to the client.  Implemented the
9361           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9362           Affected files lib/silcclient/command[_reply].c and
9363           lib/silcclient/client_notify.c.  Implemented the KILL notify
9364           printing in the user inteface.
9365
9366         * Fixed a lot silc_parse_nick memory leaks from the client
9367           library in the file lib/silcclient/command.c.
9368
9369         * Changed the silc_server_send_notify_on_channels's `sender'
9370           argument from SilcSocketConnection to SilcClientEntry to
9371           check the sender as entry and not as connection object and not
9372           to send to the client provided as argument.  The affected file
9373           is silcd/packet_send.[ch].
9374
9375         * The notify packets that are destined directly to the client used
9376           to not to be processed by the server.  Now changed that and the
9377           server processes all notify packets.  After relaying the packet
9378           to the client the notify packet is processed in the server.
9379
9380         * The silc_server_free_client_data now checks whether there is
9381           pending outgoing traffic for the client and purges the data to
9382           the network before removing the client entry.
9383
9384 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9385
9386         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9387           an client is killed from the SILC Network.  Updated the protocol
9388           specs accordingly.
9389
9390           Added new function silc_server_send_notify_killed to the
9391           silcd/packet_send.[ch].
9392
9393         * Added function silc_server_packet_relay_notify to relay notify
9394           packets that are destined directly to a client.  In this case
9395           the server does not process the notify packets but merely relays
9396           it to the client.  Affected file silcd/packet_send.[ch].
9397
9398           Added also silc_server_packet_process_relay_notify to check
9399           whereto relay the notify.  Affected file is
9400           silcd/packet_receive.[ch].
9401
9402         * Implemented the KILL command to the server.
9403
9404         * Updated TODO.
9405
9406         * Added the backup schema desgined last fall to the protocol
9407           specs for everyone to see.  The specification is in the
9408           *-spec-xx.txt draft and the packet type definitions for the
9409           backup routers is in *-pp-xx.txt draft.  Thusly, added also
9410           new packet type SILC_PACKET_CELL_ROUTERS.
9411
9412         * A big security problem in the implementation discovered.  The
9413           signoff of an client did not cause new channel key generation
9414           which it of course should've done.  The channel keys must be
9415           always re-generated when client leaves (or signoffs) the channel.
9416           The silc_server_remove_from_channels funtion now handles
9417           the channel key re-generation.
9418
9419         * Added `sender' argument to the silc_server_send_notify_on_channels
9420           to not to send the client provided as argument.  Affected file
9421           silcd/packet_send.[ch].
9422
9423 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9424
9425         * Implemented OPER and SILCOPER commands into the server and
9426           the client library.
9427
9428         * Added silc_auth_verify and silc_auth_verify_data to verify
9429           the authentication directly from the authentication payload.
9430           It supports verifying both passphrase and public key based
9431           authentication.  Affected file lib/silccore/silcauth.[ch].
9432
9433         * Added `hash' field to the SilcIDListData structure.  It is the
9434           hash negotiated in the SKE protocol.  Affected file is
9435           silcd/idlist.[ch].
9436
9437         * Slight redesigning of the SilcAuthPayload handling routines.
9438           Do not send SilcPKCS but SilcPublicKey as argument.
9439
9440         * Implemented the public key authentication support to the
9441           serverconfig.  The public key is loaded from the provided path
9442           and saved as authentication data to void * pointer.  Thus,
9443           changed the unsigned char *auth_data to void *auth_data;
9444
9445         * Fixed SHUTDOWN command to send the reply before the server
9446           is shutdown. :)  Affected file silcd/command.c.
9447
9448         * Fixed fatal bug in CONNECT command.  The hostname was invalid
9449           memory and server crashed.  Affected file silcd/command.c.
9450
9451         * Fixed fatal bug in CLOSE command.  The server_entry became
9452           invalid but was referenced later in the command.  Affected file
9453           silcd/command.c.
9454
9455 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9456
9457         * Fixed fatal bug in failure packet handling.  Server ignored
9458           the failure and thus crashed when it came.
9459
9460         * Updated TODO.
9461
9462 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9463
9464         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
9465           that the command may be executed only once in (about) 2 seconds.
9466           The old SILC_CF_LAG flag is same but allows command bursts up
9467           to five before limiting.
9468
9469           Added the support for CF_LAG and CF_LAG_STRICT flags to the
9470           server code.  Various commands now includes the CF_LAG_STRICT
9471           flag to disallow any kind of miss-use of the command.
9472
9473         * Fixed the silc_buffer_unformat to not to allocate any data
9474           if the length of the data is zero.  It used to allocate the
9475           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
9476
9477 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9478
9479         * Changed the format of AdminConnection configuration section
9480           in the server.  Added username of the admin to the format.
9481           Affected files silcd/serverconfig.[ch].
9482
9483           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
9484           to return admin configuration data by host, username and/or
9485           nickname.
9486
9487 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9488
9489         * Implemented WHOWAS command to the server.  Added the functions:
9490
9491           silc_server_command_whowas_parse,
9492           silc_server_command_whowas_send_reply,
9493           silc_server_command_whowas_from_client and
9494           silc_server_command_whowas_from_server
9495
9496         * Added <Client ID> argument to the WHOWAS command reply.  Updated
9497           the protocol specs accordingly.
9498
9499         * Implemented WHOWAS command and command_reply to the client
9500           library.
9501
9502           Implemented the WHOWAS printing on the user interface.
9503
9504 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9505
9506         * Added new argument to the WHOWAS command reply, the real name.
9507           It is an optional argument.  Updated the protocol specs.
9508
9509         * Added SilcIDCacheDestructor callback that is registered when
9510           the SilcIDCache is allocated.  The callback is called when
9511           an cache entry in the ID Cache expires, or is purged from the
9512           cache.  Added into lib/silccore/idcache.[ch].
9513
9514           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
9515           to destruct the client entries when the cache entry expires.
9516           Other ID Cache's in server and in the client library ignores
9517           the destructor.
9518
9519         * If the ID Cache entry's `expire' field is zero then the entry
9520           never expires.  Added boolean `expire' argument to the
9521           silc_idcache_add function in the lib/silccore/idcache.[ch].
9522           If it is TRUE the default expiry value is used.
9523
9524         * Added silc_server_free_client_data_timeout that is registered
9525           when client disconnects.  By default for 5 minutes we preserve
9526           the client entry for history - for WHOWAS command.
9527
9528 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9529
9530         * Added support to the server to enforce that commands are not
9531           executed more than once in 2 seconds.  If server receives
9532           commands from client more frequently, timeout is registered
9533           to process the commands.  Affected file silcd/command.c.
9534           Added new function silc_server_command_process_timeout.
9535
9536         * Changed NICK_NOTIFY handling in client library to check that
9537           if the client's nickname was changed, so there is no need to
9538           resolve anything from the server.
9539
9540         * Removed error printing from the WHOIS and IDENTIFY commands.
9541           If error occurs then it is ignored silently in the client library.
9542           The application, however, may map the received error to
9543           human readable error string.  The application currently maps
9544           the NO_SUCH_NICKNAME error to string.
9545
9546         * Made the command status message public to the application.  Moved
9547           them from lib/silcclient/command_reply.c to
9548           lib/silcclient/command_reply.h.  The application can map the
9549           received command status to the string with the
9550           silc_client_command_status_message function.
9551
9552         * Added check to the server to check that client's ID is same
9553           as the Source ID in the packet the client sent.  They must
9554           match.
9555
9556 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9557
9558         * Added dist-bzip hook to the Makefile.am to make bzip2
9559           compressed distributions.
9560
9561 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9562
9563         * Server now enforces the maximum length for the nickname and
9564           the channel as protocol specification dictates.  128 bytes for
9565           nickname and 256 bytes for channel name.
9566
9567         * Moved the WHOIS printing to the application.  The client libary
9568           does not print out the WHOIS information anymore, the application
9569           must do it.  Renamed silc_client_command_reply_whois_print to
9570           the silc_client_command_reply_whois_save.
9571
9572           The client's idle time is also sent to the application now, and
9573           the idle is shown on screen.
9574
9575         * Added silc_client_command_reply_identify_save to save the
9576           received IDENTIFY entries.
9577
9578         * Do not check for channel private keys in message sending and
9579           reception if the channel does not have the PRIVKEY mode set.
9580           Affected file lib/silclient/client_channel.c.
9581
9582 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9583
9584         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
9585           just surfaced after chaning the JOIN procedure.
9586
9587 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9588
9589         * Added silc_client_get_clients_by_list to get client entries
9590           from Client ID list, that is returned for example by JOIN
9591           and USERS command replies.  The application should use this
9592           function for example when JOIN command reply is received to
9593           resolve the clients already on the channel (library does not
9594           do that anymore as USERS command reply is not used in the JOIN
9595           procedure anymore).  Affected files lib/silcclient/silcapi.h and
9596           lib/silcclient/idlist.c.
9597
9598         * JOIN command reply and USERS command reply returns now SilcBuffer
9599           pointers instead of unsigned char pointers when returning
9600           the client list and mode list.
9601
9602         * Added <Client ID> argument to the JOIN command reply, mainly
9603           for the server to identify for which client the command was
9604           originally sent.  Updated protocol specs accordingly.
9605
9606         * Added SilcDlist private_key pointer to the SilcChannelEntry
9607           in the client to support the channel private keys.  Affected
9608           file is lib/silcclient/idlist.h.
9609
9610         * Added SilcChannelPrivateKey argument to the function
9611           silc_client_send_channel_message so that application can choose
9612           to use specific private ke if it wants to.  If it is not provided,
9613           the normal channel key is used, unless private keys are set.
9614           In this case the first (key that was added first) is used
9615           as the encryption key.
9616
9617         * Implemented the support for channel private key handling.
9618           Implemented the following functions:
9619
9620           silc_client_add_channel_private_key,
9621           silc_client_del_channel_private_keys,
9622           silc_client_del_channel_private_key,
9623           silc_client_list_channel_private_keys and
9624           silc_client_free_channel_private_keys
9625
9626           Affected file lib/silcclient/client_channel.c.
9627
9628         * Added the support for the private keys in the channel message
9629           sending and encryption and in the message reception and
9630           decryption.  Affected funtions are
9631           silc_client_send_channel_message and silc_client_channel_message.
9632
9633 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9634
9635         * Added SKE's key verify callback to the client library's
9636           KE protocol context. Affected files lib/silcclient/protocol.[ch].
9637
9638         * Removed the statement that server (or router) must send USERS
9639           command reply when joining to the channel so that the client
9640           knows who are on the channel.  Instead, the client list and
9641           client's mode list is now sent in the JOIN command reply to the
9642           client who joined channel.  This is better solution.
9643
9644         * Added function silc_server_get_users_on_channel and function
9645           silc_server_save_users_on_channel to the silcd/server.[ch].
9646
9647         * Removed function silc_server_command_send_users from the
9648           silcd/command.c.
9649
9650         * Do not show topic on the client library anymore.  The topic is
9651           sent in the command reply notify to the application and the
9652           application must show the topic now.
9653
9654 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9655
9656         * Added client searching by nickname hash into the IDENTIFY and
9657           WHOIS commands in the server as they were clearly missing from
9658           them.  Affected file is silcd/command.c.
9659
9660         * Fixed a bug in private message receiving in the client library.
9661           The remote ID was freed and it wasn't supposed, now it is
9662           duplicated.
9663
9664 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9665
9666         * Minor fix to the channel payload; allocate the data area, as it
9667           needs to be of specific length.
9668
9669         * If the key agreement port is zero then the operating
9670           system will define the bound port.  Affected files are
9671           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
9672
9673         * Added new function silc_channel_payload_decrypt into the file
9674           lib/silccore/silcchannel.[ch].
9675
9676         * Moved the channel message etc, check from silc_packet_decrypt
9677           to applications.  The library calls now a generic
9678           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
9679           when the packet is either normal or special.  This was done to
9680           allow more wide range of checking that was not allowed when
9681           the code was in library.  Now applications can do virtually any
9682           checks to the packet and return to the library the decision how
9683           the packet should be processed.  Affected files are
9684           lib/silccore/silcpacket.[ch].
9685
9686           Added silc_server_packet_decrypt_check to the server and
9687           silc_client_packet_decrypt_check to the client library.
9688
9689         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
9690           to send with specified source and destination information.
9691
9692         * Channel message delivery between routers was broken after the
9693           channel key distribution was fixed earlier.  The channel key
9694           was used be to distributed to other routers as well which is not
9695           allowed by the protocol.  Now this is fixed and channel keys
9696           really are cell specific and the channel message delivery between
9697           routers comply with the protocol specification.
9698
9699         * Fixed various commands in server to check also the global list
9700           for the channel entry and not just the local list.  The affected
9701           file silcd/command.c.
9702
9703 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9704
9705         * Added assert()s to buffer formatting and unformatting routines
9706           to assert (if --enable-debug) when error occurs.  Affected
9707           file: lib/silcutil/silcbuffmt.c.
9708
9709         * Changed to auto-reconnect to check whether the remote host is
9710           router and register the re-connect timeout if it is.  It used
9711           to check that whether we are normal server, but router must do
9712           auto-reconnect with another router as well.  Affected file
9713           silcd/server.c.
9714
9715         * Removed the [<key len>] option from CMODE command as the cipher
9716           name decides the key length, nowadays.  See the defined ciphers
9717           from the protocol specification.
9718
9719         * Added [<hmac>] option to the CMODE command to define the HMAC
9720           for the channel.  Added SILC_CMODE_HMAC channel mode.
9721
9722         * Added [<hmac>] option for the JOIN command so that user can
9723           select which HMAC is used to compute the MACs of the channel
9724           messages.
9725
9726         * Added Hmac field to the Channel Message Payload.  The integrity
9727           of plaintext channel messages are now protected by computing
9728           MAC of the message and attaching the MAC to the payload.  The
9729           MAC is encrypted.  Now, it is clear that this causes some
9730           overhead to the size of the packet but rationale for this is that
9731           now the receiver can verify whether the channel message decrypted
9732           correctly and also when private keys are set for the channel the
9733           receiver can decrypt the packet with several keys and check from
9734           the MAC which key decrypted the message correctly.
9735
9736         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
9737           lib/silccrypt/silccipher.[ch].
9738
9739         * Added silc_hash_len to return the digest length into the
9740           lib/silcrypt/silchash.[ch].
9741
9742         * Rewrote parts of Silc Channel Payload interface in the
9743           lib/silccore/silcchannel.[ch].  The encode function now also
9744           encrypts the packet and parse function decrypts it.
9745
9746 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9747
9748         * Fixed a minor formatting bug in the SKE's key material processing.
9749           It actually might have processed the keys wrong way resulting
9750           into wrong keys.
9751
9752         * Redefined the mandatory HMAC algorithms and added new algorithms.
9753           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
9754           and hmac-md5 truncated to 96 bits.  The mandatory is now
9755           hmac-sha1-96.  Rest are optional (including the one that used
9756           to be mandatory).  Rationale for this is that the truncated HMAC
9757           length is sufficient from security point of view and can actually
9758           make the attack against the HMAC harder.  Also, the truncated
9759           HMAC causes less overhead to the packets.  See the RFC2104 for
9760           more information.
9761
9762         * Added new [hmac] configuration section.  The SKE used to use
9763           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
9764           is of course wrong.  The official names that must be proposed in
9765           the SKE are the ones defined in the protocol specification
9766           (hmac-sha1-96 for example).  The user can configure any hmac
9767           using any hash function configured in the [hash] section.  At
9768           least, the mandatory must be configured.
9769
9770           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
9771
9772         * Added HMAC list to the SKE proposal list.  It has now both
9773           hash algorithm list and HMAC list.  This makes the protocol
9774           incompatible with previous versions.  The SKE now seems to work
9775           the way it is supposed to work, for the first time actually.
9776
9777         * Defined plain Hash algorithms to the protocol specification.
9778           Added sha1 and md5.
9779
9780 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9781
9782         * Implemented support for key agreement packets into the server.
9783           Added functions silc_server_key_agreement and
9784           silc_server_send_key_agreement.  Other than these functions,
9785           server has nothing to do with this packet.
9786
9787         * Added support for private message key packets into the server.
9788           Added functions silc_server_private_message_key and
9789           silc_server_send_private_message_key.
9790
9791         * Updated TODO.
9792
9793         * Changed the silc_[client|server]_protocol_ke_set_keys to be
9794           called in the protocol's final callback instead in the END
9795           protocol state.  This makes a little more sense and in the same
9796           time in client we can use the same protocol routines for normal
9797           key exchange and to key agreement packet handling as well.
9798
9799         * Added to both client's and server's KE protocol context the
9800           SilcSKEKeyMaterial pointer to save the key material.  We will
9801           bring the key material to the protocol's final callback by doing
9802           this.  The final callback must free the key material.
9803
9804         * Added SKE's packet_send callback into client's KE protocol
9805           context so that the caller can choose what packet sending function
9806           is used.  This way we can use different packet sending when
9807           doing normal SKE when doing key agreement packet handling (in
9808           the key agreement packet handling we do not want to encrypt
9809           the packets).
9810
9811         * Implemented the responder side of the key agreement routines
9812           in the client.  The client can now bind to specified port and
9813           accept incoming key negotiation.  The key material is passed
9814           to the application after the protocol is over.
9815
9816         * Implemented the processing of incoming Key Agreement packet
9817           in the client.  Added function silc_client_key_agreement to
9818           process the packet.
9819
9820         * Implemented the intiator side of the key agreement routines
9821           in the client.  The client can now initiate key agreement with
9822           another remote client.  The key material is passed to the
9823           application after the protocol is over.
9824
9825         * Created client_keyagr.c to include all the key agreement
9826           routines.
9827
9828         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
9829           SILC_TASK_CALLBACK except that it is not static.
9830
9831         * Created client_notify.c and moved the Notify packet handling
9832           from the client.[ch] into that file.
9833
9834         * Created client_prvmsg.c and moved all private message and
9835           private message key routines from the client.[ch] into that file.
9836
9837         * Create client_channel.c and moved all channel message and
9838           channel private key routines from the client.[ch] into that file.
9839
9840         * Changed silc_client_get_client_by_id_resolve to resolve with
9841           WHOIS command instead of IDENTIFY command, in the file
9842           lib/silclient/idlist.c.
9843
9844 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9845
9846         * Implemented the SKE's responder side to the Client library.
9847
9848         * When FAILURE is received to the protocol do not trust it
9849           blindly.  Register a timeout to wait whether the remote closes
9850           the connection as it should do it, only after that process the
9851           actual failure.  This was changed to both client and server.
9852
9853         * Added client_internal.h to include some of the structures
9854           there instead of client.h in lib/silcclient/.
9855
9856         * Added function silc_task_unregister_by_callback to unregister
9857           timeouts by the callback function.
9858
9859 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9860
9861         * Some "Incomplete WHOIS info" errors has been appearing on the
9862           log files.  Took away the entry->userinfo check from WHOIS
9863           reply sending.  The entry->userinfo is now " " if client did not
9864           provide one.  I thought this was fixed earlier but something
9865           is wrong still.  Let's see if the error still appears.
9866
9867 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9868
9869         * Fixed a minor bug in the login when the channel key is
9870           re-generated in the server.  It used to generate the key in
9871           wrong order and thus caused problems in the channel traffic.
9872
9873         * Fixed a minor bug in channel key distsribution after
9874           KICK command.  The key was not sent to the router even though
9875           it should've been.
9876
9877 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9878
9879         * Added silc_ske_process_key_material_data as generic routine
9880           to process any key material as the SILC protocol dictates.  The
9881           function is used by the actual SKE library but can be used by
9882           applications as well.  This relates to the private message keys
9883           and the channel private keys since they must be processed the
9884           same way the normal SILC session keys.  The protocol dictates
9885           this.  Affected files: lib/silcske/silcske.[ch].
9886
9887           Added also silc_ske_free_key_material to free the
9888           SilcSKEKeyMaterial structure.
9889
9890         * Defined silc_cipher_set_key function to set the key for
9891           cipher without using the object's method function.  The affected
9892           files: lib/silccrypt/silccipher.[ch].
9893
9894         * Implemented silc silc_client_add_private_message_key,
9895           silc_client_add_private_message_key_ske,
9896           silc_client_del_private_message_key,
9897           silc_client_list_private_message_keys and
9898           silc_client_free_private_message_keys functions in the
9899           client library.
9900
9901           Added functions silc_client_send_private_message_key to send
9902           the Private Message Key payload and silc_client_private_message_key
9903           to handle incoming Private Message Key payload.
9904
9905         * Added Cipher field to the Private Message Key payload to set
9906           the cipher to be used.  If ignored, the default cipher defined
9907           in the SILC protocol (aes-256-cbc) is used.
9908
9909 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9910
9911         * Removed lib/silcclient/ops.h file.
9912
9913           Redefined parts of the SILC Client Library API. Created new
9914           file silcapi.h that deprecates the ops.h file and defines the
9915           published Client Library API.  Defined also private message key
9916           API and channel private key API into the file.
9917
9918           This is the file that the application must include from the
9919           SILC Client Library.  Other files need not be included by
9920           the application anymore.
9921
9922         * Added new key_agreement client operation callback and also
9923           defined the Key Agreement library API for the application.
9924
9925 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9926
9927         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
9928           is used by clients to request key negotiation  between another
9929           client in the SILC network.  If the negotiation is started it
9930           is performed using the SKE protocol.  The result of the
9931           negotiation, the secret key material, can be used for example
9932           as private message key.
9933
9934           Implemented the Key Agreement payload into the files
9935           lib/silccore/silauth.[ch].
9936
9937 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9938
9939         * Redefined ciphers for the SILC protocol.  Added some new ciphers
9940           and defined the key lengths for the algorithms.  Changed the
9941           code accordingly.  The default key length is now 256 bits.
9942
9943         * Fixed SKE key distribution function silc_ske_process_key_material
9944           when the key length is more than 128 bits.  The default key
9945           length in SILC is now 256 bits.
9946
9947         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
9948           to indicate unsupported algorithm.
9949
9950         * Renamed rijndael.c to aes.c and all functions as well.
9951
9952         * Fixed a long standing channel key setting bug in client library.
9953           Weird that it has never surfaced before.
9954
9955         * Fixed bug in channel deletion.  If the entire channel is removed
9956           then it must also delete the references of the channel entry
9957           from the client's channel list as the client's channel entry and
9958           the channel's client entry share same memory.
9959
9960 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9961
9962         * Implemented CONNECT and SHUTDOWN commands in the client.
9963
9964         * Implemented CLOSE command to the client.
9965
9966         * Added the function silc_idlist_find_server_by_name into the
9967           files silcd/idlist.[ch].
9968
9969           Added the function silc_idlist_find_server_by_conn into the
9970           files silcd/idlist.[ch].
9971
9972 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9973
9974         * DIE command was renamed to SHUTDOWN.  Updated the both code
9975           and protocol specs.
9976
9977         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
9978           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
9979
9980         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
9981           side.
9982
9983         * Added function silc_server_create_connection function to create
9984           connection to remote router.  My server implementation actually
9985           does not allow router to connect to normal server (it expects
9986           that normal server always initiates the connection to the router)
9987           so the CONNECT command is only good for connecting to another
9988           router.
9989
9990 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9991
9992         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
9993           or some other client was kicked from the channel.
9994
9995           Implemented the handling of the notify type to both client
9996           and server.
9997
9998           Implemented silc_server_send_notify_kicked to send the KICKED
9999           notify.  It is used to send it to the server's primary router.
10000
10001         * Implemented the KICK command into server and client.
10002
10003         * Added `query' argument to the silc_idlist_get_client function
10004           to indicate whether to query the client from server or not if
10005           it was not found.
10006
10007         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
10008           to indicate that the client is not channel founder.
10009
10010         * Updated TODO.
10011
10012 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10013
10014         * Removed the rng context from SilcPacketContext structure and
10015           changed that the packet routine uses the Global RNG API.
10016
10017 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10018
10019         * Added support for quit message that client can "leave" on the
10020           channel when it quits the SILC.  It is ditributed inside the
10021           SILC_NOTIFY_TYPE_SIGNOFF notify type.
10022
10023           Added silc_server_free_client_data that will take the
10024           signoff message as argument.
10025
10026         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
10027
10028 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10029
10030         * Updated parts of the protocol specification to keep it up
10031           to date.
10032
10033 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10034
10035         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
10036           payloads in one packet.
10037
10038         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
10039           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
10040           use now the new List flag.
10041
10042         * Also deprecated the following packet types: REPLACE_ID,
10043           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
10044
10045         * Added list support for Notify packet in server.
10046
10047         * Added silc_server_send_notify_channel_change to send the
10048           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
10049           the silc_server_send_replace_id.
10050
10051         * Added silc_server_send_notify_nick_change to send the
10052           NICK_CHANGE notify type.  Deprecates the function
10053           silc_server_send_replace_id.
10054
10055         * Added silc_server_send_notify_join to send the JOIN notify type.
10056           Deprecates the function silc_server_send_new_channel_user.
10057
10058         * Added silc_server_send_notify_leave to send LEAVE notify type.
10059           Deprecates the function silc_server_send_remove_channel_user.
10060
10061         * Added silc_server_send_notify_cmode and
10062           silc_server_send_notify_cumode to send CMODE and CUMODE notify
10063           types.  Deprecates the silc_server_send_set_mode function.
10064
10065         * Added SERVER_SIGNOFF notify type to indicate that server has
10066           quit.  This means that all clients on the channel from that
10067           server will drop.  This can be also used when netsplit happens.
10068
10069           Deprecated REMOVE_ID packet type since it is not needed anymore
10070           even from server.
10071
10072           Added silc_server_send_notify_server_signoff to send the
10073           SERVER_SIGNOFF notify type.  Deprecates the function
10074           silc_server_send_remove_id.
10075
10076           Added also silc_server_send_notify_signoff to send the
10077           SIGNOFF notify type.
10078
10079         * Employed the PKCS #1. It is the mandatory way to do RSA in the
10080           SILC protocol from this day on.  Changed the protocol
10081           specification as well.
10082
10083         * Added silc_server_send_notify_topic_set to send TOPIC_SET
10084           notify type.  It is used between routers to notify about
10085           topic changes on a channel.
10086
10087         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
10088           ID data.
10089
10090         * Partly updated the protocol specification to comply with the
10091           changes now made.  It is still though a bit outdated.
10092
10093         * The JOIN notify type now takes one extra argument <Channel ID>.
10094           The packet used to be destined to the channel but now the
10095           JOIN type may be sent as list thus it is impossible to
10096           destine it to any specific channel.  By adding this argument
10097           it is again possible.
10098
10099 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10100
10101         * Added CREDITS file.  The CHANGES and CREDITS file will appear
10102           in the distribution as well.
10103
10104 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10105
10106         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
10107           types in the server's silcd/packet_receive.c.
10108
10109         * Implemented CMODE and CUMODE to work in router environment.
10110
10111         * Fixed minor encoding and decoding buglet from the
10112           lib/silccore/silcmode.c.
10113
10114         * Fixed buffer overflow from lib/silcclient/command.c in USERS
10115           command parsing.
10116
10117 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
10118
10119         * Changed all SilcConfigServer* and silc_config_server* to
10120           SilcServerConfig* and silc_server_config*, respectively.
10121           Patch by Bostik.
10122
10123 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10124
10125         * Associated the ID (client or server ID) to the Authentication
10126           Payload to avoid any possibility of forging.  Updated the
10127           protocol specification and the code accordingly.
10128
10129 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10130
10131         * The RSA key length is now save to the RsaKey context in the
10132           key generation process in lib/silccrypt/rsa.c.  The key length
10133           is now used to figure out the maximum size of the block allowed
10134           to be encrypted/signed.
10135
10136         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
10137           is equivalent to the silc_mp_mp2bin but does not allocate any
10138           memory.
10139
10140         * Changed silc_mp_mp2bin API to take length argument.  If it is
10141           non-zero then the buffer is allocated that large.  If zero, then
10142           the size is approximated using silc_mp_sizeinbase, which however
10143           is not relieable.
10144
10145         * Created Global RNG API which is global RNG that application can
10146           initialize.  After initializing, any routine anywhere in the
10147           code (including library) can use RNG without allocating a new
10148           RNG object.  This was done to allow this sort of use of the
10149           RNG in code that has no chance to allocate RNG object.  All
10150           applications currently allocate this and many routines in the
10151           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10152
10153         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10154           it to use the Global RNG API.
10155
10156         * Defined Authentication Payload into protocol specification that
10157           is used during SILC session to authenticate entities.  It is
10158           used for example by client to authenticate itself to the server
10159           to obtain server operator privileges.
10160
10161           Implemented this payload into the lib/silccore/silcauth.[ch].
10162           Implemented also routines for public key based authentication
10163           as the new protocol specification dictates.
10164
10165           Moved definitions of different authentication methods from
10166           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10167
10168         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10169           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10170           silc_pkcs_verify_with_hash functions into the file
10171           lib/silccrypt/silcpkcs.[ch].
10172
10173 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10174
10175         * The client entry's userinfo pointer must be always valid.
10176           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10177           will fail since it requires the userinfo.  Now, the userinfo
10178           is allocated as "" if actual userinfo does not exist.  Actually,
10179           it must exist and it is totally Ok to drop client connections
10180           that does not announce the userinfo.  However, we will make
10181           this workaround for now.
10182
10183         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10184           to return the remote port by socket.
10185
10186 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10187
10188         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10189           SILC_SERVER_PENDING_EXEC and added an new macro
10190           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10191           data or when error occurs while processing the pending command.
10192
10193           Added new argument `destructor' into silc_server_command_pending
10194           and to the SilcServerCommandPending object.  This destructor is
10195           now called after calling the pending callback or if error occurs
10196           immediately.  If error occurs the actual pending callback won't
10197           be called at all - only the destructor.  The destructor may be
10198           NULL if destructor is not needed.
10199
10200           All this applies for client library code as well.  Similar
10201           changes were made there as well for the pending commands.
10202
10203           In the client, the application must now allocate the
10204           SilcClientCommandContext with the silc_client_command_alloc
10205           function.
10206
10207         * Added reference counter to the SilcServerCommandContext.  Added
10208           function silc_server_command_alloc and silc_server_command_dup
10209           functions.
10210
10211           Same type of functions added to the client library for the same
10212           purpose as well.
10213
10214         * Removed the cmd_ident from IDListData away since it is now
10215           global for all connections.  It is the command identifier used
10216           in command sending and with pending commands.  The affected file
10217           is silcd/idlist.h.
10218
10219         * Added reference counter to the SilcSocketConnection objecet to
10220           indicate the usage count of the object.  The object won't be
10221           freed untill the reference counter hits zero.  Currently only
10222           server uses this, and client ignores it.  The client must be
10223           set to use this too later.  The affected files are
10224           lib/silccore/silcsockconn.[ch].  Added also the function
10225           silc_socket_dup to increase the reference counter.
10226
10227           This was mainly added because it is possible that the socket
10228           is removed underneath of pending command or other async
10229           operation.  Now it won't be free'd and proper DISCONNECTING
10230           flags, etc. can be set to avoid sending data to connection that
10231           is not valid anymore.
10232
10233         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10234           the connection.  After that it sets SILC_SET_DISCONNECTED.
10235           It is, however, possible that the socket data is not still freed.
10236           The silc_server_packet_process now checks that data is not
10237           read or written to connection that is DISCONNECTED.  The socket
10238           get's freed when the reference counter hits zero.
10239
10240 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10241
10242         * Changed the client operation API: channel_message operation's
10243           `sender' is now the client entry of the sender, not the nickname
10244           and the `channel' is the channel entry, not the channel name.
10245
10246           In the private_message operation the `sender' is now also the
10247           client entry of the sender not the nickname.
10248
10249           Affected file is lib/silcclient/ops.h and all applications
10250           using the client operations.
10251
10252 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10253
10254         * Moved the calling of ops->connect() from connect_to_server_final
10255           into receive_new_id functin since that is the point when the
10256           client is actually allowed to send traffic to network.  The
10257           affected file is lib/silcclient/client.c.
10258
10259 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10260
10261         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10262           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10263           (if needs broadcasting) instead of broadcasting the packets one
10264           by one which would make a burst in the network traffic.
10265
10266         * Added `broadcast' argument to the functions in silcd/server.[ch]
10267           silc_server_create_new_channel[_with_id] to indicate whether
10268           to send New Channel packet to primary router.
10269
10270 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10271
10272         * Added new function into the silcd/server.[ch] files:
10273           silc_server_create_new_channel_with_id to create new channel with
10274           already existing Channel ID.
10275
10276         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10277           lib/silccore/silcpacket.h.  This packet is used t send list of
10278           Set Mode payloads inside one packet.  Server uses this to set
10279           the modes for the channels and clients on those channels, that it
10280           announced to the router when it connected to it.  The protocol
10281           specification has been updated accordingly.
10282
10283         * The silc_server_new_channel did not handle the packet coming
10284           from normal server as it normally does not send that.  However,
10285           when it announces its channels it does send it.  Implemented
10286           the support for that.
10287
10288         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10289           into the file lib/silccore/id.h.
10290
10291 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10292
10293         * Fixed memory leaks in the functions silc_idlist_del_client,
10294           silc_idlist_del_channel and silc_idlist_del_server in the file
10295           silcd/idlist.c.  All of those leaked like a sieve.
10296
10297         * Fixed some small memory leaks in the client's function
10298           silc_client_notify_by_server.
10299
10300         * Added functions into silcd/server.c: silc_server_announce_clients,
10301           silc_server_announce_channels and silc_server_announce_server.
10302           These functions are used by normal and router server to announce
10303           to its primary router about clients, channels and servers (when
10304           router) that we own.  This is done after we've connected to the
10305           router.
10306
10307           These functions effectively implements the following packet types:
10308           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10309           and SILC_PACKET_NEW_ID_LIST.
10310
10311         * Added new functions into the silcd/packet_receive.[ch]:
10312           silc_server_new_id_list, silc_server_new_channel_list and
10313           silc_server_new_channel_user_list to handle the incoming
10314           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10315
10316         * Added support of changing Channel ID in the function
10317           silc_server_replace_id.  If the server that announces a channel
10318           to the router already exists in the router (with same name but
10319           with different Channel ID), router is responsible to send
10320           Replace ID packet to the server and force the server to change
10321           the Channel ID to the one router has.
10322
10323         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10324           client that the Channel ID has been changed by the router.  The
10325           normal server sends this to the client.  Client must start using
10326           the new Channel ID as the channel's ID.
10327
10328           Implemented handling of this new type into lib/silcclient/client.c
10329           into the function silc_client_notify_by_server.
10330
10331         * Added new function silc_idlist_replace_channel_id into the files
10332           silcd/idlist.[ch] to replace the Channel ID.
10333
10334 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10335
10336         * Call silc_server_command_identify_check always when processing
10337           the IDENTIFY command in silcd/command.c
10338
10339 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10340
10341         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10342           send keepalive packets.  The packet can be sent by clients,
10343           servers and routers.
10344
10345           Added function silc_socket_set_heartbeat into the file
10346           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10347           If not set, the heartbeat is not performed.  The actual
10348           heartbeat is implemented in the low level socket connection
10349           library.  However, application is responsible of actually
10350           sending the packet.
10351
10352           Added silc_server_send_heartbeat to send the actual heartbeat
10353           packet into silcd/packet_send.[ch].  Server now performs
10354           keepalive with all connections.
10355
10356         * Added silc_task_get_first function into lib/silcutil/silctask.c
10357           to return the timeout task with shortest timeout.  There was a bug
10358           in task unregistration that caused problems.  TODO has been
10359           updated to include that task system must be rewritten.
10360
10361         * The client library will now resolve the client information when
10362           receiving JOIN notify from server for client that we know but
10363           have incomplete information.
10364
10365         * Rewrote parts of silc_server_remove_from_channels and
10366           silc_server_remove_from_one_channel as they did not remove the
10367           channel in some circumstances even though they should've.
10368
10369         * Encryption problem encountered in server:
10370
10371           The LEAVE command used to send the Channel Key packet to the
10372           router immediately after generating it.  However, the code
10373           had earlier sent Remove Channel user packet but not immediately,
10374           ie. it was put to queue.  The order of packets in the router
10375           was that Channel Key packet was first and Remove Channel User
10376           packet was second, even though they were encrypted in the
10377           reverse order.  For this reason, MAC check failed.  Now, this
10378           is fixed by not sending the Channel Key packet immediately but
10379           putting it to queue.  However, this is more fundamental problem:
10380           packets that are in queue should actually not be encrypted
10381           because packets that are sent immediately gets encrypted
10382           actually with wrong IV (and thus MAC check fails).  So, packets
10383           that are in queue should be encrypted when they are sent to
10384           the wire and not when they put to the queue.
10385
10386           However, the problem is that the current system has not been
10387           designed to work that way.  Instead, the packet is encrypted
10388           as soon as possible and left to the queue.  The queue is then
10389           just purged into wire.  There won't be any fixes for this
10390           any time soon.  So, the current semantic for packet sending
10391           is as follows:
10392
10393           o If you send packet to remote host and do not force the send
10394           (the packet will be in queue) then all subsequent packets to the
10395           same remote host must also be put to the queue.  Only after the
10396           queue has been purged is it safe again to force the packet
10397           send immediately.
10398
10399           o If you send all packets immediately then it safe to send
10400           any of subsequent packets through the queue, however, after
10401           the first packet is put to queue then any subsequent packets
10402           must also be put to the queue.
10403
10404           Follow these rules and everything works fine.
10405
10406 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10407
10408         * Added new function silc_server_remove_clients_by_server to
10409           remove all client entries from ID list when the server connection
10410           is lost.  In this case it is also important to invalidate all
10411           client entires as they hold the invalid server entry.  This
10412           fixes fatal bug when server has lost connection and will reconnect
10413           again.
10414
10415 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10416
10417         * Made some sanity checks to silc_server_daemonise like to check
10418           whether the requested user and group actually exists.
10419
10420         * Added sanity check to SKE's silc_ske_responder_finish to check
10421           that the public and private key actually is valid.
10422
10423         * Invalidate the client's nickname when receiving Replace ID
10424           packet and the Client ID is being replaced.  This means that the
10425           server will query the nickname if someone needs it (client)
10426           a bit later.
10427
10428         * Sort the ID Cache in client library when the ID Cache data
10429           has changed (needs sorting).
10430
10431         * Do not allow for SILC client to create several connections to
10432           several servers.  The client does not support windows right now
10433           and generating multiple connections causes weird behaviour.
10434
10435           Irssi-silc client does support windows and can handle several
10436           connections without problems, see: www.irssi.org and SILC plugin.
10437
10438         * Fixed some places where client was added to the IDList.  The
10439           rule of thumb is following (in order to get everything right):
10440           If the client is directly connected local client then the
10441           `connection' argument must be set and `router' argument must be
10442           NULL to silc_idlist_add_client function.  If the client is not
10443           directly connected client then the `router' argument must
10444           bet set and the `connection' argument must be NULL to the
10445           silc_idlist_add_client function.
10446
10447         * The funtion silc_server_packet_send_local_channel actually did
10448           not check whether the client was locally connected or not.  It
10449           does that now.  Fixed a bug related to LEAVE command.
10450
10451         * Fixed Remove Channel User payload parsing bug in server's
10452           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
10453
10454         * The server's silc_server_save_channel_key now checks also the
10455           global ID list for the channel as it might not be in the local
10456           list.  Fixed a bug related to LEAVE command.
10457
10458         * Is this the end of the [<unknown>] buglet that has been lurking
10459           around for a long time?  A little for loop fix in server's
10460           silc_server_command_whois_parse that is used by both IDENTIFY
10461           and WHOIS command.  At least, this was a clear bug and a cause
10462           of one type of [<unknown>] buglet.
10463
10464         * WHOIS and IDENTIFY commands call the function
10465           silc_server_command_[whois/identify]_check function even if
10466           we are not router server.
10467
10468 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10469
10470         * Added --with-gmp configuration option.  If set the GMP
10471           is always compiled in the SILC source tree.  If not set then
10472           it is checked whether the system has the GMP3 installed.  If
10473           it has then the GMP won't be compiled (the system's headers
10474           and library is used), if it doesn't have it then the GMP is
10475           compiled in the SILC source tree.
10476
10477 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10478
10479         * Changed RSA private exponent generation to what PKCS #1
10480           suggests.  We try to find the smallest possible d by doing
10481           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
10482           not security fix but optimization.
10483
10484 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10485
10486         * Added new config entry [Identity] to fork the server and run
10487           it as specific user and group.  A patch from Bostik.
10488
10489         * Imported Dotconf configuration library into lib/dotconf.
10490           This will be used to create the SILC configuration files later.
10491           It will appear in the distsribution after this commit.
10492
10493 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10494
10495         * A big code auditing weekend happening.  Auditing code for
10496           obvious mistakes, bugs and errors.  Also, removing any code
10497           that is obsolete.
10498
10499           Removed files for being obsolete:
10500
10501           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
10502           inline in the file lib/silcutil/silcbuffer.h)
10503
10504           o lib/silcutil/silcbufutil.c (the header has inline versions)
10505
10506           Changed code to fix possible error conditions:
10507
10508           o The buffer formatting routines now check that the destination
10509           buffer really has enough space to add the data.  This applies for
10510           both buffer formatting and unformatting
10511           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
10512           unformatting was changed to accomodate following rules:
10513           XXX_*STRING_ALLOC will allocate space for the data into the pointer
10514           sent to the function while XXX_*STRING will not allocate or copy
10515           the data into the buffer.  Instead it sets the pointer from the
10516           buffer into the pointer sent as argument (XXX_*STRING used to
10517           require that the pointer must be allocated already).  This change
10518           makes this whole thing a bit more consistent and more optimized
10519           (note that the data returned in the unformatting with XXX_*STRING
10520           must not be freed now).  The routines return now -1 on error.
10521
10522           o Tried to find all code that use buffer_format and buffer_unformat
10523           and added return value checking to prevent formatting and
10524           especially unformatting errors and possible subsequent fatal
10525           errors.
10526
10527           o Changed ske->x and ske->KEY to mallocated pointers in
10528           lib/silcske/silcske.h.  Fixed possible data and memory leak.
10529
10530           o Added return value checking to all *_parse* functions.  Fixed
10531           many memory leaks as well.
10532
10533           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
10534           so that buffer overflows would not happen.  All code now also
10535           checks the return value as it can fail.
10536
10537 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10538
10539         * Added reconnection support to server if the normal server looses
10540           its connection to the router (for example if router is rebooted).
10541           The server performs normal reconnection strategy implemented
10542           to the server.  Affected file silcd/server.c.
10543
10544 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10545
10546         * Added new packet type SILC_PACKET_SET_MODE that is used to
10547           distribute the information about changed modes (for clients,
10548           channels and clients channel modes) to all routers in the
10549           network.  Updated the protocol specification accordingly.
10550
10551           Added functions into silcd/packet_send.c and
10552           silcd/packet_receive.c: silc_server_send_set_mode,
10553           silc_server_set_mode.
10554
10555           Added new files silcmode.[ch] into lib/silccore that implements
10556           the encoding and decoding of Set Mode Payload.  Added new type
10557           SilcSetModePayload.  Moved the definitions of different modes
10558           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
10559
10560 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10561
10562         * Oops, a little mistake in server's connection authentication
10563           protocol.  The protocol is not ended with FAILURE but with
10564           SUCCESS if the authentication is Ok. :)  Affected file is
10565           silcd/protocol.c.
10566
10567         * Implemented NICK_CHANGE notify handling in server in the file
10568           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
10569           the local clients on the channel.  After the changing nickname
10570           in router environment snhould work and the [<unknown>] nickname
10571           should appear no more.
10572
10573           The silc_server_replace_id function that receives the Replace ID
10574           payload now sends the NICK_CHANGE notify type also in the file
10575           silcd/packet_receive.c
10576
10577         * Changed WHOIS and IDENTIFY command to support the maximum amount
10578           of arguments defined in protocol specs (3328 arguments).  This
10579           fixed a bug that caused problems when there were more than three
10580           users on a channel.
10581
10582 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10583
10584         * Added extra parameter, command identifier, to the
10585           silc_client_send_command so that explicit command identifier
10586           can be defined.
10587
10588           Changed that ID list routines uses specific command identifier
10589           when sending WHOIS/IDENTIFY requests to the server so that they
10590           can be identified when the reply comes back.
10591
10592           Affected files lib/silcclient/command.[ch],
10593           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
10594
10595         * Added `sender' argument to silc_server_packet_send_to_channel
10596           to indicaet the sender who originally sent the packet to us
10597           that we are now re-sending.  Ignored if NULL.  Affected file
10598           silcd/packet_send.[ch].
10599
10600         * Added some server statistics support in silcd/server_internal.h
10601           SilcServerStatistics structure and around the server code.  Also
10602           send some nice statistics information when client is connecting
10603           to the client.
10604
10605 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10606
10607         * Fixed channel ID decoding in server's JOIN command reply in
10608           silcd/command_reply.c
10609
10610         * Fixed braodcasting of replace ID payload to not to send it if
10611           we are standalone server in silcd/packet_receive.c.
10612
10613         * Fixed all channel message sending routines to not to send
10614           packets to clients that has router set, since they are routed
10615           separately in the same function earlier.  Affects file
10616           silcd/packet_send.c and all channel packet sending functions.
10617
10618         * In USERS reply, res_argv[i] are not allocated, the table
10619           is allocated.  Thus changed that free the table, not its
10620           internals.
10621
10622         * In server's whois_check and identify_check if the client is
10623           locally connected do not send any WHOIS commands - they are not
10624           needed.
10625
10626 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10627
10628         * Fixed some minor bugs in client when sending WHOIS command.  The
10629           arguments was in wrong order.
10630
10631         * Removed statis function add_to_channel from server in
10632           silcd/command.c that was previously used with the joining but
10633           is obsolete now.
10634
10635         * Tested USERS command in router environment successfully with two
10636           routers, two servers and two clients.
10637
10638 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10639
10640         * Reorganized the USERS command and command reply in client library
10641           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
10642           When the command is given by user we register a pending command
10643           callback that will reprocess the command after the reply has been
10644           received from the server.  When reprocessing the packet we then
10645           display the information.  Thus, the USERS information is displayed
10646           now in the command callback instead of in the command reply
10647           callback.  The processing of the command is same as previously
10648           when server has sent the command reply in the JOINing process.
10649
10650         * Added to USERS command in silcd/command_reply.c to join the client,
10651           we didn't use to know about, to the channel after we've created
10652           a client entry for it.  Also, for clienet we did know already still
10653           check whether it is on the channel or not and add it if not.
10654
10655         * Removed silc_server_command_join_notify as the function and its
10656           use was obsolete.
10657
10658 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10659
10660         * Changed the client's pending command handling to the same as the
10661           server's pending command handling.  It is also now possible to
10662           execute command reply functions from other command reply
10663           function as the function callbacks for commands and command
10664           replies are one and same.  The pending commands are not static
10665           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
10666           in client connection context.  Thus, pending commands are server
10667           connection specific as it is convenient.
10668
10669           Changed the function silc_client_command_pending and
10670           silc_client_command_pending_del and added new function
10671           silc_client_command_pending_check.  Removed the
10672           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
10673           macros.
10674
10675         * Added cmd_ident, current command identifier, to the client
10676           connection context in lib/silcclient/client.h to keep track on
10677           command identifiers used in command sending.  Client's command reply
10678           function handling now supports the mandatory command identifiers.
10679
10680         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
10681           funtions in client to fully support pending command callbacks.
10682
10683         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
10684           as one of the arguments to the application in the command reply
10685           client operation.
10686
10687         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
10688           before first releasing SILC but came back.  Now it is removed again
10689           and should come back nomore.  The FORWARDED flag was used only
10690           by the JOINing procedure by forwarding the command packet to router.
10691           Now, the JOINing procedure has been changed to more generic (due
10692           to various router environment issues) and FORWARDED is not needed
10693           anymore for anything.  The protocol specification is yet to be
10694           updated.
10695
10696           Now, removed silc_server_packet_forward from server and the flag
10697           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
10698
10699 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10700
10701         * Renamed NAMES command to USERS command.  The NAMES was named that
10702           due to historical reasons.  Now it is renamed.  Also, rewrote
10703           parts of the USERS command.  The nickname list is not sent anymore
10704           by the server.  Only Client ID and mode lists are sent in the USERS
10705           command.  Changed this also to the protocol specification.
10706
10707           The client now resolves the names and stuff after it receives
10708           the USERS list from the server when joining to the channel.
10709
10710         * WHOIS and IDENTIFY commands has been changed to support multiple
10711           Client ID's per command.  One can now search for multiple users
10712           in the network by sending only one WHOIS or IDENTIFY command.
10713           Changed the code and the protocol specifications.
10714
10715         * Removed silc_server_command_identify_parse and changed that IDENTIFY
10716           uses silc_server_command_whois_parse to parse the request. */
10717
10718         * If normal server, do not parse the WHOIS and IDENTIFY requests
10719           before sending it to the router.  Saves some time.
10720
10721 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10722
10723         * Fixed JOIN command on client library.  Wrong number of arguments
10724           used to crash the client.
10725
10726         * Added silc_server_channel_has_global function to check whether
10727           channel has global users or not.
10728
10729         * Added silc_server_channel_has_local function to check whether channel
10730           has locally connected clients on the channel.
10731
10732         * The silc_server_remove_from_one_channel now checks whether the
10733           channel has global users or not after given client was removed from
10734           the channel.  It also checks whether the channel has local clients
10735           on the channel anymore.  If it does not have then the channel entry
10736           is removed as it is not needed anymore.
10737
10738         * The silc_server_notify now checks on JOIN notify whether the joining
10739           client is one of locally connected or global.  If it is global then
10740           the channel has now global users on the channel and that is marked
10741           to the channel entry.  Also, it now saves the global client to
10742           global list who is joining and JOINs it to the channel.  This is
10743           for normal server, that is.
10744
10745           Changed silc_server_send_notify_on_channel,
10746           silc_server_packet_relay_to_channel and
10747           silc_server_packet_send_to_channel check if we are normal server
10748           and client has router set (ie. global client) do not send the
10749           message to that client, as it is already routed to our router.
10750
10751         * Implemented LEAVE notify type handling in silc_server_notify
10752           function.
10753
10754         * Tested LEAVE command in router environment successfully.  Tested
10755           with two routers, two servers and two clients.
10756
10757         * Updated TODO.
10758
10759         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
10760
10761         * Implemented SIGNOFF notify type handling in silc_server_notify
10762           function.
10763
10764         * silc_server_remove_id now removes the client entry from all channels
10765           it has joined and thusly sends SIGNOFF notify type.
10766
10767         * Rewrote the NAMES list generation in server by removing two excess
10768           loops.  The lists are created now inside one loop.
10769
10770 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10771
10772         * silc_server_remove_channel_user checks now also global list
10773           for channel and client.
10774
10775         * silc_server_new_channel_user checks now both local and global
10776           list for channel and client.  Fixed a bug in client id decoding.
10777           Used to decode wrong buffer.
10778
10779         * silc_server_channel_message checks now both local and global
10780           list for channel entry.
10781
10782         * Tested channel joining (hence JOIN) in router environment
10783           successfully.  Tested with two routers, two servers and two
10784           clients.
10785
10786         * Tested channel message sending in router environment successfully.
10787
10788 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10789
10790         * Added silc_server_save_channel_key into server.[ch] to save the
10791           received channel key in Channel Key payload processing. It is
10792           also used in JOIN command reply handling.
10793
10794           Equivalent function silc_client_save_channel_key added into
10795           client.[ch] into client library.
10796
10797         * Changed JOIN command reply to send information whether the channel
10798           was created or not (is existing already) and the channel key
10799           payload.  Changed protocol specs accordingly.
10800
10801         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
10802           the request was sent by ID and not by nickname.  Crashed on
10803           NULL dereference.
10804
10805 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10806
10807         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
10808           now correctly save the received data.
10809
10810         * silc_server_free_sock_user_data now notifies routers in the
10811           network about entities leaving the network.
10812
10813           At the same time implemented functions silc_server_remove_id
10814           and silc_server_send_remove_id to receive and send REMOVE_ID
10815           packets.  The packet is used to notify routers in the network
10816           about leaving entities.  The ID removed will become invalid in
10817           the network.
10818
10819         * Added function silc_idlist_del_server into server. Removes and
10820           free's server entry from ID list.
10821
10822         * silc_server_private_message function now checks, if we are router,
10823           that the destination ID really is valid ID, naturally.
10824
10825         * In router when NEW_ID packet is received (for new client) the
10826           hash of the Client ID is saved in the ID Cache but the
10827           client->nickname is set to NULL, instead of putting the hash
10828           to it as well.
10829
10830           IDENTIFY command now also checks that client->nickname must be
10831           valid. If it is not if will request the data from the server who
10832           owns the client.  Added new function
10833           silc_server_command_identify_check.
10834
10835         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
10836           to set the command to already allocated Command Payload.
10837
10838         * Tested private message sending in router environment with two
10839           routers, two servers and two clients.  Fixed minor bugs and now
10840           it works fine.
10841
10842         * Fixed segfault from client's NAMES command. Used to crash if
10843           not on any channel.
10844
10845         * Forwarded packets must not be routed even if it is not destined
10846           to the receiver.  Changed server code comply with this.
10847
10848 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10849
10850         * Added `require_reverse_mapping' boolean value to ServerParams
10851           structure. If TRUE (not default) the server will require that
10852           the connecting host has fully qualified domain name.
10853
10854           If the reverse mapping is not required and hostname could not be
10855           found the IP address is used as hostname.
10856
10857 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10858
10859         * Implemented version string checking to both client and server.
10860           The check is incomplete currently due to the abnormal version
10861           strings used in development version of SILC.
10862
10863         * Changed all command functions in server to use the new
10864           CHECK_ARGS macro.
10865
10866 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10867
10868         * Changed char *data to unsigned char *data in ID Cache system to
10869           support binary data as ID Cache data. Changed code to support
10870           binary data in lib/silccore/idcache.c.
10871
10872         * Renamed silc_server_packet_relay_command_reply to
10873           silc_server_command_reply as it is normal packet receiving
10874           function. Rewrote the function to accept command replys for
10875           servers and not only for clients.
10876
10877         * Mark remote router always as registered server if we are connecting
10878           to it.  Otherwise, commands sent by the router to us are ignored.
10879
10880         * All ID List find routines now returns the ID Cache Entry pointer
10881           as well if requested.
10882
10883         * WHOIS command works now in router environment, tested with two
10884           routers, two servers and two clients.
10885
10886         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
10887           in router environment (as it is almost equivalent to WHOIS) but
10888           hasn't been tested thoroughly.  Added new functions:
10889
10890           silc_server_command_identify_parse
10891           silc_server_command_identify_send_reply
10892           silc_server_command_identify_from_client
10893           silc_server_command_identify_from_server
10894
10895         * Disabled route cache adding because adding two different ID's with
10896           same IP replaces the old cache entry thus giving wrong route.
10897           The entry->router->connection is always the fastest route anyway
10898           so route cache may not be needed.  Of course, new routes maybe
10899           established after receiving the ID when the entry->router->connection
10900           might not be anymore the most optimal.
10901
10902 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10903
10904         * Add route cache for received ID for fast routing.
10905
10906         * Added silc_server_packet_route to route received packet on router
10907           that is not destined to us.
10908
10909         * Renamed silc_server_get_route to silc_server_route_get.
10910
10911         * Added id_string and id_string_len fields into SilcServer to
10912           include encoded ServerID for fast comparing without excess
10913           encoding of the ID's.
10914
10915         * Cleaned up WHOIS command on server side. Added following static
10916           functions:
10917
10918           silc_server_command_whois_parse
10919           silc_server_command_whois_check
10920           silc_server_command_whois_send_reply
10921           silc_server_command_whois_from_client
10922           silc_server_command_whois_from_server
10923
10924         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
10925           arguments in command replies. All command functions should be
10926           updated to use this macro.
10927
10928 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10929
10930         * Minor typo fixes on command reply handling on server.
10931
10932 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10933
10934         * Added silc_server_command_add_to_channel internal routine to add
10935           the client to the channel after router has created the channel and
10936           sent command reply to the server.
10937
10938         * Added generic silc_server_send_command to send any command from
10939           server.
10940
10941         * Use static buffer with ID rendering instead of duplicating data.
10942
10943 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10944
10945         * Fixed a channel user mode bug when joining to a channel server gave
10946           everybody channel founder rights, oops.
10947
10948         * We mark ourselves as the router of the incoming server connection
10949           if we are router ourselves.  This way we can check in some packet
10950           sending functions whether it is locally connected server.  For
10951           incoming router connections we put NULL.
10952
10953         * For router sending packets locally means now always sending the
10954           packet cell wide; to local clients and local servers.  For normal
10955           server sending packet locally means sending it to only local
10956           clients.
10957
10958         * Fixed the JOIN command to really work in router environment.  If the
10959           channel is created it is always created by the router.  Router is
10960           also responsible of making the initial joining to the channel,
10961           sending JOIN notify to the sending server and distributing
10962           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
10963           does not exist server doesn't do anything else but forward the
10964           command to the router which performs everything.
10965
10966         * Added silc_server_send_channel_key function to send the Channel Key
10967           payload.
10968
10969         * Added silc_server_create_channel_key to create new channel key.  The
10970           channel key is now re-generated everytime someone joins or leaves
10971           a channel, as protocol dictates.  Note: channel->key_len is the
10972           key length in bits.
10973
10974 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10975
10976         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
10977           packet_receive.[ch] to separate packet sending and receiving
10978           routines.  The server.[ch] now includes everything else including
10979           actual packet processing (writing and reading data) and other
10980           server issues.
10981
10982           Renamed silc_server_private_message_send_internal to
10983           silc_server_send_private_message.  The routine is still though
10984           used only to relay private messages as server does not send
10985           private messages itself.
10986
10987           Renamed silc_server_new_channel to silc_server_create_new_channel
10988           and added new function sicl_server_new_channel that handles the
10989           incoming New Channel packet.  Added also new sending function
10990           silc_server_send_new_channel to send New Channel Payload.
10991
10992         * Added new function silc_server_notify to process incoming notify
10993           packet to the server/router. Server may then relay the notify
10994           to clients if needed.
10995
10996         * Added new function silc_server_new_channel_user to process incoming
10997           New Channel User packet.  Router will redistribute the packet and
10998           send JOIN notify to its local clients and locally connected servers
10999           if needed.  Normal server will send JOIN notify to its local client
11000           on same channel when received this packet.  Added also corresponding
11001           sending function silc_server_send_new_channel_user to sent the
11002           payload.
11003
11004         * Added boolean route argument to send_notif_to_channel and
11005           packet_send_to_channel functions to attempt to route the packet
11006           if it is TRUE and send only locally if it is FALSE.
11007
11008 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11009
11010         * silc_server_replace_id now broadcasts the received replace ID
11011           packet if it is not broadcast packet already. The router must
11012           broadcast to inform other routers about changed ID.
11013
11014         * Added backpointer to server's router into SilcServer context in
11015           silcd/server_internal.h.
11016
11017         * Fixed silc_server_packet_broadcast to send correct broadcast
11018           packets.
11019
11020         * The channel key is now distributed to the local client as soon
11021           as it is received from the router (in router environment) so that
11022           no other packet may be sent for the channel until client has
11023           received the key.
11024
11025         * silc_server_remove_channel_user now broadcasts the received
11026           Remove Channel User packet if it is not broadcast packet already.
11027           The router must broadcast to inform other routers about removed
11028           channel user.
11029
11030         * Added users field into SilcPacketContext that is a reference count
11031           of the context.  One can increase the reference count by calling
11032           silc_packet_context_dup which is now changed to just increase the
11033           reference count instead of duplicating the data.  The reference
11034           count is decresed by calling silc_packet_context_free that will
11035           free the data after the reference count hits zero.
11036
11037           For now on the packet context and everything allocated into it
11038           (including the raw packet from network) must be freed by calling
11039           the new silc_packet_context_free function.  Added also new function
11040           silc_packet_context_alloc that must be used now to allocate the
11041           context.  This also means that if a routine is asynchronous from
11042           silc_[client/server]_packet_parse_type the packet context must
11043           be duplicated by calling silc_packet_context_dup.  Otherwise it
11044           gets free'd after silc_[client/server]_packet_parse_type returns.
11045           Also, one must remember that if packet is duplicated then its
11046           reference count must be decresed by calling the free function as
11047           many times as it was duplicated.
11048
11049         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
11050           from both client and server.
11051
11052 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11053
11054         * Made joining to a channel working in router environment.
11055
11056         * Cleaned up JOIN command on server side and create function
11057           silc_server_command_join_channel internal routine to make the
11058           joining happen.
11059
11060 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11061
11062         * Changed silc_command_pending list to SilcDList.  Also, added
11063           `ident' field to SilcServerCommandPending structure to identify
11064           the reply and to call correct callback.
11065
11066           Added silc_server_command_pending_check function to replace the
11067           corresnponding macro.  The silc_command_pending list is not
11068           extern anymore.
11069
11070         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
11071           to set identifier to previously allocated Command Payload.  It
11072           is used to set identifier for command when resending Command
11073           Payload.
11074
11075         * Added silc_command_payload_encode_payload to encode Command
11076           Payload buffer from SilcCommandPayload structure.
11077
11078         * Added silc_argument_payload_encode_payload to encode Argument
11079           payload buffer from SilcArgumentPayload structure.
11080
11081 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11082
11083         * Changed WHOIS command to support router connection on server side.
11084           The whois request is always sent to router unless the server is
11085           standalone server.  After server has received the reply from the
11086           router will it send the reply to the client.
11087
11088         * Added silc_server_packet_broadcast into silcd/server.[ch] to
11089           broadcast received broadcast packet.  The function is used only
11090           by router.  The broadcast packet is always sent to the router's
11091           primary route.
11092
11093         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
11094           render given ID to printable string, for log files for example.
11095
11096 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11097
11098         * Made basic router to router connections working.  At least they
11099           can now connect to each other but nothing really works the way
11100           they are supposed - yet.
11101
11102         * Added new initiator token to RouterConnection configuration
11103           file in silcd/serverconfig.[ch].  It is used to tell whether we
11104           are the initiator to the remote router or whether we'll expect
11105           the other end to connect.
11106
11107         * Moved registering of listener task to silc_server_init, hence
11108           the server starts listenning as soon as it is run, even if it
11109           does not have connections to other routers.  Let's see how well
11110           this will work.
11111
11112         * Changed default connection retry timeouts for more suitable in
11113           silcd/server.h.
11114
11115         * Removed cipher and such arguments from silc_idlist_add_client
11116           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
11117           Added new function silc_idlist_add_data to add the keys and stuff
11118           to any ID entry.
11119
11120         * Added SilcIDListData structure and added it to SilcClientEntry
11121           and SilcServerEntry as their first field in the structure.  This
11122           way we can explicitly cast the ID entries to the SilcIDListData
11123           structure and get common data for the entries.  In past, we had
11124           to first check what type of connection it is and then cast it to
11125           correct ID entry type.  Now, we can directly cast the opaque
11126           pointer to the SilcIDListData (no matter what ID entry it actually
11127           is) and get the data needed.
11128
11129 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11130
11131         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
11132           in some circumstances even if threre were timeout tasks, though not
11133           IO tasks, but tasks anyway.  Now fixed.
11134
11135         * Defined SilcServerConnection structure to hold connection specific
11136           stuff about directly connected servers and routers.  The definition
11137           is currently in silcd/server_internal.h.  I thought about having
11138           a bit more important role fro this struct but for now it is used
11139           only when connecting to other server (or router actually).
11140
11141         * Added connecting retry support in server when connecting to
11142           router(s).  The retry feature implement exponential backoff
11143           algorithm.  Also, added SilcServerParams structure to hold default
11144           parameters for server.  For now, it include these retry settings
11145           and are hard coded.  After server is moded to be as Silc Server
11146           Library this structure will be more important.
11147
11148 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11149
11150         * Changed client librarys channel->clients table to SilcList and
11151           changed code accordingly.
11152
11153 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11154
11155         * Changed client's channel table to SilcList and changed code
11156           accordingly.  Also changed SilcChannelClientEntry to include back-
11157           pointer to the channel so that client entry can use that structure
11158           as list as well and we have fast cross-reference to the channel.
11159           This change dramatically decreased the complexity of channel
11160           handling with client entry and vice versa (removed one extra
11161           loop when searching for channel entry from many functions).
11162
11163         * Changed server->sim from table to SilcDList and changed code
11164           accordingly.
11165
11166         * NAMES command can now be used from user interface.  It will show
11167           the user list on the channel, neatly.
11168
11169         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11170           Code now saves realname of the user if it becomes available.
11171
11172         * Renamed configure.in to configure.in.pre and made ./prepare
11173           script to automatically add correct version string to
11174           configure.in which it creates from configure.in.pre.
11175
11176 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11177
11178         * NAMES command reply now shows users mode with the nickname when
11179           joining to channel.
11180
11181         * Moved silc_client_ch[u]mode[_char] functions from
11182           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11183           place sucks, they are utility functions and should be in some
11184           other file.
11185
11186         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11187
11188         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11189           cras.
11190
11191 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11192
11193         * Updated README.
11194
11195         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11196           a very good list library that is currently used in the SILC.  Defined
11197           SilcList API over the library because I didn't like the API very
11198           much.  See lib/trq/silclist.h for the API and examples of how to
11199           use the API.  Fixed various places in the code to use the new
11200           SilcList API. The SilcList is meant for lists that has a structure
11201           already defined as a list.  It is not suitable to add just some
11202           context to the list (in TRQ, the context is the list actually).
11203
11204           So, I defined SilcDList that can be used for the purpose where
11205           predefined list structure does not exit.  This can be used as
11206           such list.  Now some context just can be added to the SilcDList.
11207           Currently this list is not used in the SILC just yet, though there
11208           are a lot places where this can replace dynamically allocated
11209           tables and I will fix these places, later, to use SilcDList.
11210           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11211           and use TRQ internally).
11212
11213           Also fixed some annoying warning messages that the original TRQ
11214           code generated.  Also minor changes to TRQ's Makefile.in.
11215
11216         * Added support for querying by Client ID to both WHOIS and
11217           IDENTIFY commands into server, as required by the protocol.
11218
11219         * Removed method function pointers from SilcBuffer structure. They
11220           weren't used to anything and just increased the context size for
11221           no good reason.  This change also made silc_buffer_alloc and
11222           silc_buffer_free functions inline functions.
11223
11224         * Disabled command flooding detection support until it's fixed so
11225           that it accepts commands in but does not execute them more than once
11226           in two seconds.
11227
11228         * Added silc_net_localhost(), to return local hostname, into
11229           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11230           that must be initialized before calling silc_client_init.
11231
11232         * Added new function: silc_server_send_notify_on_channels to send
11233           notify messages to all channels client has joined.  It is assured
11234           that the message is sent only once per client.
11235
11236         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11237           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11238           function is generic and is used by server as well, not only by
11239           the logging routines.
11240
11241         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11242           the provided version string was not acceptable.  Added new function:
11243           silc_ske_check_version into lib/silcske/silcske.h.  The function
11244           must be implemented by the application (client or server) and it
11245           does not reside in the SKE library.  The function checks the version
11246           string remote end sent.
11247
11248         * Added back pointers (to opaque context and to SilcSocketConnection)
11249           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11250
11251         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11252           duplicate packet context structure.
11253
11254         * Changed `notify' client operation to send same arguments as client
11255           receives from server except for ID's.  ID's are mapped to correct
11256           ID entry and that is returned.  Also, if channel entry is not sent
11257           by server but the notify is for channel the channel entry is sent
11258           to application (otherwise application doesn't know that it is for
11259           channel (library gets it from packet's Destination ID)).
11260
11261         * Added silc_client_remove_from_channels into client library to
11262           remove a client from all channels it has joined to.  Used when
11263           received SIGNOFF notify from server.  Added also new function
11264           silc_client_replace_from_channels to replace old ID entry with
11265           new ID entry on all channels.  Used when received NICK_CHANGE
11266           notify from server.
11267
11268         * Fixed ID Cache list handling in silc_idlist_get_client in
11269           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11270           to get (or query) client by ID.
11271
11272         * Updated TODO list.
11273
11274         * Added connection authentication status message defined by the
11275           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11276           support for these into the code in client and server side.
11277
11278         * Added generic function silc_client_send_command to send any command
11279           with variable argument list.  Application should use this function
11280           to send commands if the command functions provided by the library
11281           does not suite for the application's user interface needs.
11282
11283         * Added new `failure' client operation.  Application is notified about
11284           received failure packet if client is executing a protocol.  In this
11285           case the protocol's execution has failed.
11286
11287         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11288           is required by the protocol.
11289
11290         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11291           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11292           error at our end.
11293
11294         * Added status flag to SilcSKE object to indicate realtime status
11295           of the SKE protocol.
11296
11297         * Application receives now exactly same command reply arguments as
11298           the library receives from server.  However, if ID is received the
11299           corresponding ID entry is returned to the application (eg. Client
11300           ID is mapped to correct SilcClientEntry entry and that is returned).
11301           Changed command_reply client operation due to this change.
11302
11303         * Changed all ID's in commands and in command replys as ID Payloads.
11304           Change affected both client and server side codes.
11305
11306           All ID's sent in SILC network (with execption of ID's in SILC
11307           Packet header) are sent in ID Payload to support variable length
11308           ID's.
11309
11310         * Server now notifies nick changes and notifies all clients on
11311           the channels about the new nickname (about the new Client ID,
11312           actually).
11313
11314         * Implemented CMODE command to change channel modes. Supports all
11315           channel modes defined by the protocol specs except ban and invite
11316           lists. (Also, private channel key mode is supported but support for
11317           setting private channel key in client is missing, thus, this mode
11318           has no effect on client side (except that server requires that the
11319           client uses private channel key and normal channel traffic does not
11320           work anymore)).
11321
11322           Also, invite mode works per se, but INVITE command does not work
11323           yet correctly, so you can set channel as invite only channel but
11324           inviting clients to the channel does not work (it is yet to be
11325           thought what's the best way to do it).
11326
11327         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11328           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11329           Implemented CUMODE command to change user's mode on the channel.
11330           Supports all modes defined by the protocol specs.
11331
11332         * Added NAMES command reply to return users modes on the channel.
11333
11334         * Removed unnecessary and slow ciphers from lib/silccrypt.
11335
11336         * Set SO_KEEPALIVE option to connection sockets by default.
11337
11338         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11339
11340         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11341           redefined the Notify Payload into protocol specs.
11342
11343         * Added silc_id_payload_parse_id to get ID directly from raw
11344           ID payload data.
11345
11346 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11347
11348         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11349           accept searching by Client ID as well.
11350
11351         * Added support for LEAVE and SIGNOFF notify types in client library.
11352
11353         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11354           to parse ID Payload from raw data.
11355
11356 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11357
11358         * Added flags parameter into silc_ske_assemble_security_properties
11359           function in lib/silcske/silcske.[ch].
11360
11361         * Changed notify client operation to fit better for notify messages
11362           sent by server.  The notify payload received from server is now
11363           passed to the application (after parsing it to SilcNotifyPayload).
11364           It is application's responsibility to retrieve the arguments
11365           from the payload and show the message the way it wants.  The message
11366           sent by server is implementation specific.
11367
11368         * Changed public keys to comply with the protocol specification.
11369           Old public keys are not supported anymore and are not compatible.
11370
11371         * Removed nickname from Channel Payload as the latest draft removed
11372           it.  The client must resolve the nickname from the NAMES command
11373           reply received when it joined the channel.
11374
11375           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11376
11377 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11378
11379         * Fixed some errors in protocol specification drafts.
11380
11381         * Created lib/silccore/silcnotify.c to implement Notify Payload
11382           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11383           generic payloads described by protocol specifications.  The file
11384           includes implementations for ID Payload and Argument Payload.
11385
11386         * Changed Command Payload implementation to use the new Argument
11387           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11388           to comply with SILC coding conventions.
11389
11390         * Added suppport for Argument Payload handling in Notify Payload
11391           implementation as protocol requires it.  Added the new support
11392           into server and client lib as well.
11393
11394 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11395
11396         * Added support for multiple nicknames on same channel.  [n] is
11397           added locally to the nickname if there are more than one same
11398           nicknames on the channel.
11399
11400         * Server now sends all nicknames that matched WHOIS request.
11401           Client also shows the list received from server.
11402
11403         * Added TOPIC command to client side.  User can now set and show
11404           current topic on channel.
11405
11406         * Added MOTD command to client and server.  Also, server sends the
11407           motd when client connects to the server.
11408
11409         * Changed version strings to comply ISO 8601.
11410
11411 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11412
11413         * Fixed protocol error handling in client library.  It should now
11414           cope even if the SKE fails for some reason.
11415
11416         * Made new protocol specification drafts for submitting to IETF.
11417
11418         * Implemented TOPIC command to server in silcd/command.c.
11419
11420         * Added two new notify types into lib/silccore/silcnotify.h:
11421           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
11422           notify nickname change and topic setting/change on a channel.
11423
11424         * API change of command_reply operation in client library.  The
11425           application gets now the status type received from server as well.
11426
11427 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11428
11429         * Removed the function just added to lib/silcutil/silcschedule.[ch].
11430
11431         * Cras fixed and optimized the packet handling even further and
11432           it should work now.  Minor change to the prototype of function
11433           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
11434
11435 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11436
11437         * Added new function into lib/silcutil/silcschedule.[ch]:
11438           silc_schedule_with_fd to select() a specified fd.  The function
11439           returns after timeout expires or data arrives or goes.  The
11440           function is used by packet routines to wait that all data is
11441           received from network.
11442
11443         * Fixed data reading from network in lib/silccore/silcpacket.c.
11444           The code now assures that all data is read from the fd and then
11445           continues packet processing.  This was a bug fix since the code
11446           used to drop some data in some circumstances.
11447
11448         * Added new function into lib/silcclient/client.[ch]:
11449           silc_client_start_key_exchange to start key exchange after
11450           connection has been established to server.  The code internally
11451           now uses this funtion but its main purpose was to provide it
11452           for applications that perform their own connecting.  After
11453           application has created a connection it merely calls this
11454           function to start the key exchange between client and server.
11455           The library takes care of everything else after that.
11456
11457           Updated also lib/silcclient/README to explain the usage of
11458           this new function.
11459
11460         * Do not send to application information that connection has
11461           been established.  Application gets notified it by connect
11462           operation anyway.
11463
11464 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11465
11466         * Applied cras's patch to add silc_schedule_one function.  The
11467           function runs scheduler once and returns.
11468
11469         * Fixed the scheduler after cras messed it up.  The timeout
11470           handling works now as it's supposed to work.
11471
11472         * Added into lib/silccore/ silcnotify.h to include notify
11473           message types support.  Changed silc_server_send_notify*
11474           functions, in server.[ch], to support those new notify types.
11475           Added the support for the notify types into client library,
11476           as well.  Added new notify client operation into ops.h in
11477           lib/silcclient/.
11478
11479         * Changed silc_server_packet_send_to_channel to send normal
11480           packets instead of just channel message packets.  The function
11481           is now used to send the notify packets to channels.  It is not
11482           used to send channel message packets anymore, as server never
11483           sends them anymore.
11484
11485         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
11486           va_arg()s as it seems to require it nowadays.  I guess, if SILC
11487           is compiled with older va_arg() the new code should work anyway.
11488
11489 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11490
11491         * Splitted core library.  Core library (lib/silccore) includes
11492           now only SILC protocol specific core (and common) components.
11493           Created new utility library (lib/silcutil) that includes more
11494           generic purpose stuff.  The stuff for util library was taken
11495           from the old core library.  This was minor and easy split.
11496
11497         * Created SILC Client Library (lib/silcclient) that includes
11498           implementation of the SILC client without user interface.  This
11499           was major move from silc/ directory.  The code has been changed
11500           so that it is transparent towards the user interface.  The
11501           silc/ directory includes now the same user interface as before
11502           and it uses the new client library.  Read lib/silcclient/README.
11503           Basicly, the client library performs everything else related
11504           to SILC except user interface handling.  Also, configuration
11505           files are considered to be part of user interface and library
11506           does not handle them.
11507
11508           This change also changed a lot of structures, function naming etc.
11509           Most important change was that SilcClientWindow object was
11510           renamed to SilcClientConnection in the client library.  Created
11511           also new file lib/silcclient/ops.h.  Also added new files
11512           silc/local_command.[ch] and silc/client_ops.[ch].
11513
11514           All these changes were made to make it easier for user interface
11515           designers to create what ever user interface for the SILC client
11516           they want.
11517
11518           It is also expected that the server will be moved to lib
11519           directory as well and SILC Server Library will be created;
11520           sometimes in the future.
11521
11522         * Removed Local commands from lib/silccore/silccommand.h as
11523           they are application specific and new client library does not
11524           handle any of those anymore.
11525
11526         * Several functions moved to lib/silcutil/silcutilc.[ch] from
11527           old client implementation in silc/.
11528
11529         * Added support for callback functions in SILC_LOG_* macros.
11530           Application can now set its own callbacks that will be called
11531           instead of using the default functions that will always print
11532           the debug messages to stderr (or stdout).  Also, debugging can
11533           now be disabled by setting silc_debug to FALSE and re-enabled by
11534           setting it to TRUE.  Note, that logging will still work even
11535           if debugging is disabled.
11536
11537           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
11538           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
11539           silc_log_reset_debug_callbacks.
11540
11541         * To enable debugging in silc client one must give now -d
11542           option on command line.
11543
11544         * Changed silc_schedule_init to automatically allocate task queues
11545           if they are not allocated before calling it.
11546
11547 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11548
11549         * Added GMP 3.1 into math library.
11550
11551 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11552
11553         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
11554           a channel in SILC network.  The packet is used by servers and
11555           routers to notify other routers that user has left a channel.
11556           This little feature was missing until now.  Added the feature
11557           to protocol specification as well.
11558
11559           Added functions: silc_server_send_remove_channel_user and
11560           silc_server_remove_channel_user into server.[ch].
11561
11562         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
11563           lib/silccore/silcpacket.h.  However, they are not implemented
11564           yet.
11565
11566 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11567
11568         * Fixed joining to a channel and sending channel messages
11569           between server and router.  The channel message sending should
11570           now work inside a cell.
11571
11572 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11573
11574         * Fixed the private message sending between server and router.
11575           The private message sending should now work inside a cell.
11576
11577         * Added silc_server_replace_id into server.[ch] to replace
11578           existing ID in the SILC network.
11579
11580         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
11581           and silc_idlist_replace_server_id into idlist.[ch] in server.
11582
11583 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11584
11585         * Fixed the server to server connections.  Server can again now
11586           connect to router.  Router to router connections probably does
11587           not work just yet.
11588
11589 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11590
11591         * Added dynamic protocol registering support.  Now protocols can
11592           registered and unregistered on the fly.  Patch by cras.
11593
11594 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11595
11596         * Added lib/contrib directory to hold routines that some platforms
11597           don't have but are needed by SILC.
11598
11599         * Added getopt.c, getopt1.c and getopt.h from GNU C library
11600           into lin/contrib to provide getopt() and getopt_long() for
11601           those who don't have it.
11602
11603 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11604
11605         * Added AWAY command to client.  When away message is set and
11606           client receives a private message packet the client automatically
11607           replies to the sender with the away message.
11608
11609         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
11610           bug seemed to be the cause of recent problems when compiling
11611           with gcc-2.95.
11612
11613         * Added version detection support to SKE protocol specification
11614           and added the new changes to the SKE implementation as well.
11615           There were other minor changes in the SKE protocol as well.
11616
11617           Many changes in lib/silcske/silcske.[ch] and in
11618           lib/silcske/payload.[ch].
11619
11620         * Added ^U functionality, clear input line.  Patch from cras.
11621
11622 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11623
11624         * Mainly small bugfixes on core library.  Fixed some debugging
11625           logging and buffer overflow in silclog.c.
11626
11627         * Updated config.sub and config.guess on the distribution tree.
11628
11629 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11630
11631         * Added command lagging support in server. Client may execute
11632           commands now only once in two seconds.
11633
11634 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11635
11636         * Optimized packet reception. MAC computation and checking is now
11637           also more optimized.  A lot previously duplicated code is now
11638           used as generic by both client and server.
11639
11640         * Fixed key pair generation in clientutil.c
11641
11642 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11643
11644         * Added into lib/silccore/silcbufutil.[ch] new function;
11645           silc_buffer_realloc.
11646
11647         * Moved generic packet sending/encryption functions to
11648           lib/silccore/silcpacket.[ch] from client and server.  Some
11649           rewriting of the functions.
11650
11651         * Moved all generic packet reception/decryption functions to
11652           lib/silccore/silcpacket.[ch] from client and server.  The
11653           packet processing is now much cleaner in both client and server.
11654           These were major changes in both client and server.
11655
11656         * Created many common functions in server to do packet sending.
11657           Previously code were duplicated a lot, this has been removed
11658           with these changes.
11659
11660 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11661
11662         * Rewrote major parts of the ID cache system.  Don't know
11663           whether it is better now or not but at least the API is more
11664           cleaner now.
11665
11666         * Major rewrite on ID cache stuff on client because of the ID
11667           cache API changes.  Added idlist.c to client.
11668
11669         * Also major rewrite on ID cache stuff on server as well.
11670           Major rewrite of idlist.[ch]. SilcXXXList's are now named
11671           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
11672           in hand, instead they are all put into the ID cache system now.
11673           All server_idlist_* routines uses ID cache now instead of
11674           traversing its own lists (those lists does not exist anymore).
11675           SilcIDList though still exists.  Also, SilcXXXEntry's are
11676           now pointers.
11677
11678 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11679
11680         * Finally made the SKE implementation compliant to the protocol
11681           specification.  All mp integers are now binary encoded as
11682           opposed being HEX encoded.
11683
11684         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
11685           from binary data.
11686
11687         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
11688           functions: silc_[encode/decode]_pem.  Also added function
11689           silc_encode_pem_file to PEM encode with newlines ('\n') for
11690           saving into a file.
11691
11692         * SILC public keys are now encoded either PEM or binary.  Same
11693           option is for private keys as well.  By default private keys
11694           are binary encoded and public keys PEM encoded.  Silly HEX
11695           encoding were removed.
11696
11697         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
11698           function to create fingerprints.
11699
11700         * Fixed a bug in SHA1; does not change the original data anymore.
11701
11702         * Partly implemented INFO command on client and server side.
11703           Fixed CLEAR command.  Changes to SERVER command; show current
11704           server(s) when giving command without arguments.  Added
11705           VERSION command to client.
11706
11707         * Added check to server that unregistered connections cannot
11708           execute commands (unless it is specificly allowed).
11709
11710 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11711
11712         * Fixed screen refresh.
11713
11714         * Fixed channel joining bug from client.  On some circumstances
11715           client tried to join to a channel it had already joined.
11716
11717         * Added public key verification process into client's protocol.c.
11718           The client now verifies the public key from user and saves
11719           it into ~./silc/serverkeys/ directory.
11720
11721           Added into: clientutil.[ch]: silc_client_verify_server_key.
11722
11723         * Changed SKE protocol's silc_ske_initiator_finish function
11724           to accept callback function that verifies the received public
11725           key.  Removed old silc_ske_verify_public_key function.
11726
11727 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11728
11729         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
11730           silc_pkcs_private_key[_data]_set.
11731
11732         * Made the password and public authentication more cleaner in
11733           server's protocol.c.
11734
11735         * Removed historic and obsolete protocol `channel_auth' from
11736           both client and server.
11737
11738         * Removed wrong way of sending command status messages from
11739           server to client in server's command.c.  The old way violated
11740           protocol specification.
11741
11742           Changes to silccore/silccommand.[ch]: removed
11743           silc_command_encode_status_payload -> not needed anymore,
11744           changed silc_command_encode_payload_va to accept extra
11745           argument on variable argument list.  The argument type must
11746           now be provided to the function.  Also, added new function:
11747           silc_command_encode_reply_payload_va which is same as
11748           normal command_encode_payload_va except command status type
11749           is provided as extra argument.
11750
11751 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11752
11753         * Added ~./silc directory handling.  The directory includes the
11754           public and private keys for the client.
11755
11756           Added silc_client_check_silc_dir, silc_client_create_identifier
11757           and silc_client_load_keys.
11758
11759         * Implemented SILC protocol compliant public key.  Added public
11760           and private key saving to and loading from files.
11761
11762           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
11763           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
11764           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
11765           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
11766           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
11767
11768           Implemented: silc_pkcs_save_[public/private]_key[_data] and
11769           silc_pkcs_load_[public/private]_key.
11770
11771 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11772
11773         * Added silc_server_get_route (route.[ch]) to get connection
11774           data for the fastest route for given ID.
11775
11776         * Implemented INVITE command on client and server.  The command
11777           were re-defined in the SILC Protocol Specification and the
11778           implementation now complies with the specification.
11779
11780         * Implemented PING command on client and server.
11781
11782         * Implemented NAMES command on client and server.  The server side
11783           supports currently only normal server not router server yet.
11784           Some changes to NAMES definition in SILC protocol specification.
11785
11786 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11787
11788         * Implemented LEAVE command on client and server.
11789
11790         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
11791           again.  This change was made to the protocol as well.  Server
11792           should not violate the protocol specification anymore.
11793
11794 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11795
11796         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
11797           was tested.  SOCKS4 was not but should work anyway.